@tachybase/plugin-ocr-convert 1.5.1 → 1.6.1

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.
@@ -48,7 +48,7 @@ var i=r(3106);var n=r(2454);var s=r(4587);var Tar=function(e){if(!(this instance
48
48
  */
49
49
  var i=r(3974);var n=r(4587);var Zip=function(e){if(!(this instanceof Zip)){return new Zip(e)}e=this.options=n.defaults(e,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new i(e)};Zip.prototype.append=function(e,t,r){this.engine.entry(e,t,r)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};e.exports=Zip},5990:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";function apply(e,...t){return(...r)=>e(...t,...r)}function initialParams(e){return function(...t){var r=t.pop();return e.call(this,t,r)}}var t=typeof queueMicrotask==="function"&&queueMicrotask;var r=typeof setImmediate==="function"&&setImmediate;var i=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return(t,...r)=>e((()=>t(...r)))}var n;if(t){n=queueMicrotask}else if(r){n=setImmediate}else if(i){n=process.nextTick}else{n=fallback}var s=wrap(n);function asyncify(e){if(isAsync(e)){return function(...t){const r=t.pop();const i=e.apply(this,t);return handlePromise(i,r)}}return initialParams((function(t,r){var i;try{i=e.apply(this,t)}catch(e){return r(e)}if(i&&typeof i.then==="function"){return handlePromise(i,r)}else{r(null,i)}}))}function handlePromise(e,t){return e.then((e=>{invokeCallback(t,null,e)}),(e=>{invokeCallback(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function invokeCallback(e,t,r){try{e(t,r)}catch(e){s((e=>{throw e}),e)}}function isAsync(e){return e[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(e){return typeof e[Symbol.asyncIterator]==="function"}function wrapAsync(e){if(typeof e!=="function")throw new Error("expected a function");return isAsync(e)?asyncify(e):e}function awaitify(e,t){if(!t)t=e.length;if(!t)throw new Error("arity is undefined");function awaitable(...r){if(typeof r[t-1]==="function"){return e.apply(this,r)}return new Promise(((i,n)=>{r[t-1]=(e,...t)=>{if(e)return n(e);i(t.length>1?t:t[0])};e.apply(this,r)}))}return awaitable}function applyEach$1(e){return function applyEach(t,...r){const i=awaitify((function(i){var n=this;return e(t,((e,t)=>{wrapAsync(e).apply(n,r.concat(t))}),i)}));return i}}function _asyncMap(e,t,r,i){t=t||[];var n=[];var s=0;var o=wrapAsync(r);return e(t,((e,t,r)=>{var i=s++;o(e,((e,t)=>{n[i]=t;r(e)}))}),(e=>{i(e,n)}))}function isArrayLike(e){return e&&typeof e.length==="number"&&e.length>=0&&e.length%1===0}const o={};function once(e){function wrapper(...t){if(e===null)return;var r=e;e=null;r.apply(this,t)}Object.assign(wrapper,e);return wrapper}function getIterator(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function createArrayIterator(e){var t=-1;var r=e.length;return function next(){return++t<r?{value:e[t],key:t}:null}}function createES2015Iterator(e){var t=-1;return function next(){var r=e.next();if(r.done)return null;t++;return{value:r.value,key:t}}}function createObjectIterator(e){var t=e?Object.keys(e):[];var r=-1;var i=t.length;return function next(){var n=t[++r];if(n==="__proto__"){return next()}return r<i?{value:e[n],key:n}:null}}function createIterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var t=getIterator(e);return t?createES2015Iterator(t):createObjectIterator(e)}function onlyOnce(e){return function(...t){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,t)}}function asyncEachOfLimit(e,t,r,i){let n=false;let s=false;let c=false;let h=0;let p=0;function replenish(){if(h>=t||c||n)return;c=true;e.next().then((({value:e,done:t})=>{if(s||n)return;c=false;if(t){n=true;if(h<=0){i(null)}return}h++;r(e,p,iterateeCallback);p++;replenish()})).catch(handleError)}function iterateeCallback(e,t){h-=1;if(s)return;if(e)return handleError(e);if(e===false){n=true;s=true;return}if(t===o||n&&h<=0){n=true;return i(null)}replenish()}function handleError(e){if(s)return;c=false;n=true;i(e)}replenish()}var eachOfLimit$2=e=>(t,r,i)=>{i=once(i);if(e<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!t){return i(null)}if(isAsyncGenerator(t)){return asyncEachOfLimit(t,e,r,i)}if(isAsyncIterable(t)){return asyncEachOfLimit(t[Symbol.asyncIterator](),e,r,i)}var n=createIterator(t);var s=false;var c=false;var h=0;var p=false;function iterateeCallback(e,t){if(c)return;h-=1;if(e){s=true;i(e)}else if(e===false){s=true;c=true}else if(t===o||s&&h<=0){s=true;return i(null)}else if(!p){replenish()}}function replenish(){p=true;while(h<e&&!s){var t=n();if(t===null){s=true;if(h<=0){i(null)}return}h+=1;r(t.value,t.key,onlyOnce(iterateeCallback))}p=false}replenish()};function eachOfLimit(e,t,r,i){return eachOfLimit$2(t)(e,wrapAsync(r),i)}var c=awaitify(eachOfLimit,4);function eachOfArrayLike(e,t,r){r=once(r);var i=0,n=0,{length:s}=e,c=false;if(s===0){r(null)}function iteratorCallback(e,t){if(e===false){c=true}if(c===true)return;if(e){r(e)}else if(++n===s||t===o){r(null)}}for(;i<s;i++){t(e[i],i,onlyOnce(iteratorCallback))}}function eachOfGeneric(e,t,r){return c(e,Infinity,t,r)}function eachOf(e,t,r){var i=isArrayLike(e)?eachOfArrayLike:eachOfGeneric;return i(e,wrapAsync(t),r)}var h=awaitify(eachOf,3);function map(e,t,r){return _asyncMap(h,e,t,r)}var p=awaitify(map,3);var g=applyEach$1(p);function eachOfSeries(e,t,r){return c(e,1,t,r)}var y=awaitify(eachOfSeries,3);function mapSeries(e,t,r){return _asyncMap(y,e,t,r)}var v=awaitify(mapSeries,3);var b=applyEach$1(v);const _=Symbol("promiseCallback");function promiseCallback(){let e,t;function callback(r,...i){if(r)return t(r);e(i.length>1?i:i[0])}callback[_]=new Promise(((r,i)=>{e=r,t=i}));return callback}function auto(e,t,r){if(typeof t!=="number"){r=t;t=null}r=once(r||promiseCallback());var i=Object.keys(e).length;if(!i){return r(null)}if(!t){t=i}var n={};var s=0;var o=false;var c=false;var h=Object.create(null);var p=[];var g=[];var y={};Object.keys(e).forEach((t=>{var r=e[t];if(!Array.isArray(r)){enqueueTask(t,[r]);g.push(t);return}var i=r.slice(0,r.length-1);var n=i.length;if(n===0){enqueueTask(t,r);g.push(t);return}y[t]=n;i.forEach((s=>{if(!e[s]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+i.join(", "))}addListener(s,(()=>{n--;if(n===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,t){p.push((()=>runTask(e,t)))}function processQueue(){if(o)return;if(p.length===0&&s===0){return r(null,n)}while(p.length&&s<t){var e=p.shift();e()}}function addListener(e,t){var r=h[e];if(!r){r=h[e]=[]}r.push(t)}function taskComplete(e){var t=h[e]||[];t.forEach((e=>e()));processQueue()}function runTask(e,t){if(c)return;var i=onlyOnce(((t,...i)=>{s--;if(t===false){o=true;return}if(i.length<2){[i]=i}if(t){var p={};Object.keys(n).forEach((e=>{p[e]=n[e]}));p[e]=i;c=true;h=Object.create(null);if(o)return;r(t,p)}else{n[e]=i;taskComplete(e)}}));s++;var p=wrapAsync(t[t.length-1]);if(t.length>1){p(n,i)}else{p(i)}}function checkForDeadlocks(){var e;var t=0;while(g.length){e=g.pop();t++;getDependents(e).forEach((e=>{if(--y[e]===0){g.push(e)}}))}if(t!==i){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(t){var r=[];Object.keys(e).forEach((i=>{const n=e[i];if(Array.isArray(n)&&n.indexOf(t)>=0){r.push(i)}}));return r}return r[_]}var w=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/;var x=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/;var S=/,/;var k=/(=.+)?(\s*)$/;function stripComments(e){let t="";let r=0;let i=e.indexOf("*/");while(r<e.length){if(e[r]==="/"&&e[r+1]==="/"){let t=e.indexOf("\n",r);r=t===-1?e.length:t}else if(i!==-1&&e[r]==="/"&&e[r+1]==="*"){let n=e.indexOf("*/",r);if(n!==-1){r=n+2;i=e.indexOf("*/",r)}else{t+=e[r];r++}}else{t+=e[r];r++}}return t}function parseParams(e){const t=stripComments(e.toString());let r=t.match(w);if(!r){r=t.match(x)}if(!r)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,i]=r;return i.replace(/\s/g,"").split(S).map((e=>e.replace(k,"").trim()))}function autoInject(e,t){var r={};Object.keys(e).forEach((t=>{var i=e[t];var n;var s=isAsync(i);var o=!s&&i.length===1||s&&i.length===0;if(Array.isArray(i)){n=[...i];i=n.pop();r[t]=n.concat(n.length>0?newTask:i)}else if(o){r[t]=i}else{n=parseParams(i);if(i.length===0&&!s&&n.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!s)n.pop();r[t]=n.concat(newTask)}function newTask(e,t){var r=n.map((t=>e[t]));r.push(t);wrapAsync(i)(...r)}}));return auto(r,t)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e}empty(){while(this.head)this.shift();return this}insertAfter(e,t){t.prev=e;t.next=e.next;if(e.next)e.next.prev=t;else this.tail=t;e.next=t;this.length+=1}insertBefore(e,t){t.prev=e.prev;t.next=e;if(e.prev)e.prev.next=t;else this.head=t;e.prev=t;this.length+=1}unshift(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)}push(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var e=this.head;while(e){yield e.data;e=e.next}}remove(e){var t=this.head;while(t){var{next:r}=t;if(e(t)){this.removeLink(t)}t=r}return this}}function setInitial(e,t){e.length=1;e.head=e.tail=t}function queue$1(e,t,r){if(t==null){t=1}else if(t===0){throw new RangeError("Concurrency must not be zero")}var i=wrapAsync(e);var n=0;var o=[];const c={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(e,t){c[e].push(t)}function once(e,t){const handleAndRemove=(...r)=>{off(e,handleAndRemove);t(...r)};c[e].push(handleAndRemove)}function off(e,t){if(!e)return Object.keys(c).forEach((e=>c[e]=[]));if(!t)return c[e]=[];c[e]=c[e].filter((e=>e!==t))}function trigger(e,...t){c[e].forEach((e=>e(...t)))}var h=false;function _insert(e,t,r,i){if(i!=null&&typeof i!=="function"){throw new Error("task callback must be a function")}g.started=true;var n,o;function promiseCallback(e,...t){if(e)return r?o(e):n();if(t.length<=1)return n(t[0]);n(t)}var c=g._createTaskItem(e,r?promiseCallback:i||promiseCallback);if(t){g._tasks.unshift(c)}else{g._tasks.push(c)}if(!h){h=true;s((()=>{h=false;g.process()}))}if(r||!i){return new Promise(((e,t)=>{n=e;o=t}))}}function _createCB(e){return function(t,...r){n-=1;for(var i=0,s=e.length;i<s;i++){var c=e[i];var h=o.indexOf(c);if(h===0){o.shift()}else if(h>0){o.splice(h,1)}c.callback(t,...r);if(t!=null){trigger("error",t,c.data)}}if(n<=g.concurrency-g.buffer){trigger("unsaturated")}if(g.idle()){trigger("drain")}g.process()}}function _maybeDrain(e){if(e.length===0&&g.idle()){s((()=>trigger("drain")));return true}return false}const eventMethod=e=>t=>{if(!t){return new Promise(((t,r)=>{once(e,((e,i)=>{if(e)return r(e);t(i)}))}))}off(e);on(e,t)};var p=false;var g={_tasks:new DLL,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:t,payload:r,buffer:t/4,started:false,paused:false,push(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,false,false,t)))}return _insert(e,false,false,t)},pushAsync(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,false,true,t)))}return _insert(e,false,true,t)},kill(){off();g._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,true,false,t)))}return _insert(e,true,false,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,true,true,t)))}return _insert(e,true,true,t)},remove(e){g._tasks.remove(e)},process(){if(p){return}p=true;while(!g.paused&&n<g.concurrency&&g._tasks.length){var e=[],t=[];var r=g._tasks.length;if(g.payload)r=Math.min(r,g.payload);for(var s=0;s<r;s++){var c=g._tasks.shift();e.push(c);o.push(c);t.push(c.data)}n+=1;if(g._tasks.length===0){trigger("empty")}if(n===g.concurrency){trigger("saturated")}var h=onlyOnce(_createCB(e));i(t,h)}p=false},length(){return g._tasks.length},running(){return n},workersList(){return o},idle(){return g._tasks.length+n===0},pause(){g.paused=true},resume(){if(g.paused===false){return}g.paused=false;s(g.process)}};Object.defineProperties(g,{saturated:{writable:false,value:eventMethod("saturated")},unsaturated:{writable:false,value:eventMethod("unsaturated")},empty:{writable:false,value:eventMethod("empty")},drain:{writable:false,value:eventMethod("drain")},error:{writable:false,value:eventMethod("error")}});return g}function cargo$1(e,t){return queue$1(e,1,t)}function cargo(e,t,r){return queue$1(e,t,r)}function reduce(e,t,r,i){i=once(i);var n=wrapAsync(r);return y(e,((e,r,i)=>{n(t,e,((e,r)=>{t=r;i(e)}))}),(e=>i(e,t)))}var C=awaitify(reduce,4);function seq(...e){var t=e.map(wrapAsync);return function(...e){var r=this;var i=e[e.length-1];if(typeof i=="function"){e.pop()}else{i=promiseCallback()}C(t,e,((e,t,i)=>{t.apply(r,e.concat(((e,...t)=>{i(e,t)})))}),((e,t)=>i(e,...t)));return i[_]}}function compose(...e){return seq(...e.reverse())}function mapLimit(e,t,r,i){return _asyncMap(eachOfLimit$2(t),e,r,i)}var E=awaitify(mapLimit,4);function concatLimit(e,t,r,i){var n=wrapAsync(r);return E(e,t,((e,t)=>{n(e,((e,...r)=>{if(e)return t(e);return t(e,r)}))}),((e,t)=>{var r=[];for(var n=0;n<t.length;n++){if(t[n]){r=r.concat(...t[n])}}return i(e,r)}))}var R=awaitify(concatLimit,4);function concat(e,t,r){return R(e,Infinity,t,r)}var O=awaitify(concat,3);function concatSeries(e,t,r){return R(e,1,t,r)}var A=awaitify(concatSeries,3);function constant$1(...e){return function(...t){var r=t.pop();return r(null,...e)}}function _createTester(e,t){return(r,i,n,s)=>{var c=false;var h;const p=wrapAsync(n);r(i,((r,i,n)=>{p(r,((i,s)=>{if(i||i===false)return n(i);if(e(s)&&!h){c=true;h=t(true,r);return n(null,o)}n()}))}),(e=>{if(e)return s(e);s(null,c?h:t(false))}))}}function detect(e,t,r){return _createTester((e=>e),((e,t)=>t))(h,e,t,r)}var I=awaitify(detect,3);function detectLimit(e,t,r,i){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(t),e,r,i)}var P=awaitify(detectLimit,4);function detectSeries(e,t,r){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(1),e,t,r)}var N=awaitify(detectSeries,3);function consoleFunc(e){return(t,...r)=>wrapAsync(t)(...r,((t,...r)=>{if(typeof console==="object"){if(t){if(console.error){console.error(t)}}else if(console[e]){r.forEach((t=>console[e](t)))}}}))}var F=consoleFunc("dir");function doWhilst(e,t,r){r=onlyOnce(r);var i=wrapAsync(e);var n=wrapAsync(t);var s;function next(e,...t){if(e)return r(e);if(e===false)return;s=t;n(...t,check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...s);i(next)}return check(null,true)}var D=awaitify(doWhilst,3);function doUntil(e,t,r){const i=wrapAsync(t);return D(e,((...e)=>{const t=e.pop();i(...e,((e,r)=>t(e,!r)))}),r)}function _withoutIndex(e){return(t,r,i)=>e(t,i)}function eachLimit$2(e,t,r){return h(e,_withoutIndex(wrapAsync(t)),r)}var L=awaitify(eachLimit$2,3);function eachLimit(e,t,r,i){return eachOfLimit$2(t)(e,_withoutIndex(wrapAsync(r)),i)}var B=awaitify(eachLimit,4);function eachSeries(e,t,r){return B(e,1,t,r)}var M=awaitify(eachSeries,3);function ensureAsync(e){if(isAsync(e))return e;return function(...t){var r=t.pop();var i=true;t.push(((...e)=>{if(i){s((()=>r(...e)))}else{r(...e)}}));e.apply(this,t);i=false}}function every(e,t,r){return _createTester((e=>!e),(e=>!e))(h,e,t,r)}var j=awaitify(every,3);function everyLimit(e,t,r,i){return _createTester((e=>!e),(e=>!e))(eachOfLimit$2(t),e,r,i)}var z=awaitify(everyLimit,4);function everySeries(e,t,r){return _createTester((e=>!e),(e=>!e))(y,e,t,r)}var W=awaitify(everySeries,3);function filterArray(e,t,r,i){var n=new Array(t.length);e(t,((e,t,i)=>{r(e,((e,r)=>{n[t]=!!r;i(e)}))}),(e=>{if(e)return i(e);var r=[];for(var s=0;s<t.length;s++){if(n[s])r.push(t[s])}i(null,r)}))}function filterGeneric(e,t,r,i){var n=[];e(t,((e,t,i)=>{r(e,((r,s)=>{if(r)return i(r);if(s){n.push({index:t,value:e})}i(r)}))}),(e=>{if(e)return i(e);i(null,n.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function _filter(e,t,r,i){var n=isArrayLike(t)?filterArray:filterGeneric;return n(e,t,wrapAsync(r),i)}function filter(e,t,r){return _filter(h,e,t,r)}var H=awaitify(filter,3);function filterLimit(e,t,r,i){return _filter(eachOfLimit$2(t),e,r,i)}var X=awaitify(filterLimit,4);function filterSeries(e,t,r){return _filter(y,e,t,r)}var $=awaitify(filterSeries,3);function forever(e,t){var r=onlyOnce(t);var i=wrapAsync(ensureAsync(e));function next(e){if(e)return r(e);if(e===false)return;i(next)}return next()}var V=awaitify(forever,2);function groupByLimit(e,t,r,i){var n=wrapAsync(r);return E(e,t,((e,t)=>{n(e,((r,i)=>{if(r)return t(r);return t(r,{key:i,val:e})}))}),((e,t)=>{var r={};var{hasOwnProperty:n}=Object.prototype;for(var s=0;s<t.length;s++){if(t[s]){var{key:o}=t[s];var{val:c}=t[s];if(n.call(r,o)){r[o].push(c)}else{r[o]=[c]}}}return i(e,r)}))}var U=awaitify(groupByLimit,4);function groupBy(e,t,r){return U(e,Infinity,t,r)}function groupBySeries(e,t,r){return U(e,1,t,r)}var q=consoleFunc("log");function mapValuesLimit(e,t,r,i){i=once(i);var n={};var s=wrapAsync(r);return eachOfLimit$2(t)(e,((e,t,r)=>{s(e,t,((e,i)=>{if(e)return r(e);n[t]=i;r(e)}))}),(e=>i(e,n)))}var G=awaitify(mapValuesLimit,4);function mapValues(e,t,r){return G(e,Infinity,t,r)}function mapValuesSeries(e,t,r){return G(e,1,t,r)}function memoize(e,t=e=>e){var r=Object.create(null);var i=Object.create(null);var n=wrapAsync(e);var o=initialParams(((e,o)=>{var c=t(...e);if(c in r){s((()=>o(null,...r[c])))}else if(c in i){i[c].push(o)}else{i[c]=[o];n(...e,((e,...t)=>{if(!e){r[c]=t}var n=i[c];delete i[c];for(var s=0,o=n.length;s<o;s++){n[s](e,...t)}}))}}));o.memo=r;o.unmemoized=e;return o}var Z;if(i){Z=process.nextTick}else if(r){Z=setImmediate}else{Z=fallback}var Y=wrap(Z);var K=awaitify(((e,t,r)=>{var i=isArrayLike(t)?[]:{};e(t,((e,t,r)=>{wrapAsync(e)(((e,...n)=>{if(n.length<2){[n]=n}i[t]=n;r(e)}))}),(e=>r(e,i)))}),3);function parallel(e,t){return K(h,e,t)}function parallelLimit(e,t,r){return K(eachOfLimit$2(t),e,r)}function queue(e,t){var r=wrapAsync(e);return queue$1(((e,t)=>{r(e[0],t)}),t,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(e){let t;while(e>0&&smaller(this.heap[e],this.heap[t=parent(e)])){let r=this.heap[e];this.heap[e]=this.heap[t];this.heap[t]=r;e=t}}percDown(e){let t;while((t=leftChi(e))<this.heap.length){if(t+1<this.heap.length&&smaller(this.heap[t+1],this.heap[t])){t=t+1}if(smaller(this.heap[e],this.heap[t])){break}let r=this.heap[e];this.heap[e]=this.heap[t];this.heap[t]=r;e=t}}push(e){e.pushCount=++this.pushCount;this.heap.push(e);this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;this.heap[0]=this.heap[this.heap.length-1];this.heap.pop();this.percDown(0);return e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++){yield this.heap[e].data}}remove(e){let t=0;for(let r=0;r<this.heap.length;r++){if(!e(this.heap[r])){this.heap[t]=this.heap[r];t++}}this.heap.splice(t);for(let e=parent(this.heap.length-1);e>=0;e--){this.percDown(e)}return this}}function leftChi(e){return(e<<1)+1}function parent(e){return(e+1>>1)-1}function smaller(e,t){if(e.priority!==t.priority){return e.priority<t.priority}else{return e.pushCount<t.pushCount}}function priorityQueue(e,t){var r=queue(e,t);var{push:i,pushAsync:n}=r;r._tasks=new Heap;r._createTaskItem=({data:e,priority:t},r)=>({data:e,priority:t,callback:r});function createDataItems(e,t){if(!Array.isArray(e)){return{data:e,priority:t}}return e.map((e=>({data:e,priority:t})))}r.push=function(e,t=0,r){return i(createDataItems(e,t),r)};r.pushAsync=function(e,t=0,r){return n(createDataItems(e,t),r)};delete r.unshift;delete r.unshiftAsync;return r}function race(e,t){t=once(t);if(!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var r=0,i=e.length;r<i;r++){wrapAsync(e[r])(t)}}var Q=awaitify(race,2);function reduceRight(e,t,r,i){var n=[...e].reverse();return C(n,t,r,i)}function reflect(e){var t=wrapAsync(e);return initialParams((function reflectOn(e,r){e.push(((e,...t)=>{let i={};if(e){i.error=e}if(t.length>0){var n=t;if(t.length<=1){[n]=t}i.value=n}r(null,i)}));return t.apply(this,e)}))}function reflectAll(e){var t;if(Array.isArray(e)){t=e.map(reflect)}else{t={};Object.keys(e).forEach((r=>{t[r]=reflect.call(this,e[r])}))}return t}function reject$2(e,t,r,i){const n=wrapAsync(r);return _filter(e,t,((e,t)=>{n(e,((e,r)=>{t(e,!r)}))}),i)}function reject(e,t,r){return reject$2(h,e,t,r)}var J=awaitify(reject,3);function rejectLimit(e,t,r,i){return reject$2(eachOfLimit$2(t),e,r,i)}var ee=awaitify(rejectLimit,4);function rejectSeries(e,t,r){return reject$2(y,e,t,r)}var te=awaitify(rejectSeries,3);function constant(e){return function(){return e}}const re=5;const ie=0;function retry(e,t,r){var i={times:re,intervalFunc:constant(ie)};if(arguments.length<3&&typeof e==="function"){r=t||promiseCallback();t=e}else{parseTimes(i,e);r=r||promiseCallback()}if(typeof t!=="function"){throw new Error("Invalid arguments for async.retry")}var n=wrapAsync(t);var s=1;function retryAttempt(){n(((e,...t)=>{if(e===false)return;if(e&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(e))){setTimeout(retryAttempt,i.intervalFunc(s-1))}else{r(e,...t)}}))}retryAttempt();return r[_]}function parseTimes(e,t){if(typeof t==="object"){e.times=+t.times||re;e.intervalFunc=typeof t.interval==="function"?t.interval:constant(+t.interval||ie);e.errorFilter=t.errorFilter}else if(typeof t==="number"||typeof t==="string"){e.times=+t||re}else{throw new Error("Invalid arguments for async.retry")}}function retryable(e,t){if(!t){t=e;e=null}let r=e&&e.arity||t.length;if(isAsync(t)){r+=1}var i=wrapAsync(t);return initialParams(((t,n)=>{if(t.length<r-1||n==null){t.push(n);n=promiseCallback()}function taskFn(e){i(...t,e)}if(e)retry(e,taskFn,n);else retry(taskFn,n);return n[_]}))}function series(e,t){return K(y,e,t)}function some(e,t,r){return _createTester(Boolean,(e=>e))(h,e,t,r)}var ne=awaitify(some,3);function someLimit(e,t,r,i){return _createTester(Boolean,(e=>e))(eachOfLimit$2(t),e,r,i)}var se=awaitify(someLimit,4);function someSeries(e,t,r){return _createTester(Boolean,(e=>e))(y,e,t,r)}var ae=awaitify(someSeries,3);function sortBy(e,t,r){var i=wrapAsync(t);return p(e,((e,t)=>{i(e,((r,i)=>{if(r)return t(r);t(r,{value:e,criteria:i})}))}),((e,t)=>{if(e)return r(e);r(null,t.sort(comparator).map((e=>e.value)))}));function comparator(e,t){var r=e.criteria,i=t.criteria;return r<i?-1:r>i?1:0}}var oe=awaitify(sortBy,3);function timeout(e,t,r){var i=wrapAsync(e);return initialParams(((n,s)=>{var o=false;var c;function timeoutCallback(){var t=e.name||"anonymous";var i=new Error('Callback function "'+t+'" timed out.');i.code="ETIMEDOUT";if(r){i.info=r}o=true;s(i)}n.push(((...e)=>{if(!o){s(...e);clearTimeout(c)}}));c=setTimeout(timeoutCallback,t);i(...n)}))}function range(e){var t=Array(e);while(e--){t[e]=e}return t}function timesLimit(e,t,r,i){var n=wrapAsync(r);return E(range(e),t,n,i)}function times(e,t,r){return timesLimit(e,Infinity,t,r)}function timesSeries(e,t,r){return timesLimit(e,1,t,r)}function transform(e,t,r,i){if(arguments.length<=3&&typeof t==="function"){i=r;r=t;t=Array.isArray(e)?[]:{}}i=once(i||promiseCallback());var n=wrapAsync(r);h(e,((e,r,i)=>{n(t,e,r,i)}),(e=>i(e,t)));return i[_]}function tryEach(e,t){var r=null;var i;return M(e,((e,t)=>{wrapAsync(e)(((e,...n)=>{if(e===false)return t(e);if(n.length<2){[i]=n}else{i=n}r=e;t(e?null:{})}))}),(()=>t(r,i)))}var le=awaitify(tryEach);function unmemoize(e){return(...t)=>(e.unmemoized||e)(...t)}function whilst(e,t,r){r=onlyOnce(r);var i=wrapAsync(t);var n=wrapAsync(e);var s=[];function next(e,...t){if(e)return r(e);s=t;if(e===false)return;n(check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...s);i(next)}return n(check)}var ue=awaitify(whilst,3);function until(e,t,r){const i=wrapAsync(e);return ue((e=>i(((t,r)=>e(t,!r)))),t,r)}function waterfall(e,t){t=once(t);if(!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function nextTask(t){var i=wrapAsync(e[r++]);i(...t,onlyOnce(next))}function next(i,...n){if(i===false)return;if(i||r===e.length){return t(i,...n)}nextTask(n)}nextTask([])}var fe=awaitify(waterfall);var ce={apply:apply,applyEach:g,applyEachSeries:b,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:O,concatLimit:R,concatSeries:A,constant:constant$1,detect:I,detectLimit:P,detectSeries:N,dir:F,doUntil:doUntil,doWhilst:D,each:L,eachLimit:B,eachOf:h,eachOfLimit:c,eachOfSeries:y,eachSeries:M,ensureAsync:ensureAsync,every:j,everyLimit:z,everySeries:W,filter:H,filterLimit:X,filterSeries:$,forever:V,groupBy:groupBy,groupByLimit:U,groupBySeries:groupBySeries,log:q,map:p,mapLimit:E,mapSeries:v,mapValues:mapValues,mapValuesLimit:G,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:Y,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:Q,reduce:C,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:J,rejectLimit:ee,rejectSeries:te,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:s,some:ne,someLimit:se,someSeries:ae,sortBy:oe,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:le,unmemoize:unmemoize,until:until,waterfall:fe,whilst:ue,all:j,allLimit:z,allSeries:W,any:ne,anyLimit:se,anySeries:ae,find:I,findLimit:P,findSeries:N,flatMap:O,flatMapLimit:R,flatMapSeries:A,forEach:L,forEachSeries:M,forEachLimit:B,forEachOf:h,forEachOfSeries:y,forEachOfLimit:c,inject:C,foldl:C,foldr:reduceRight,select:H,selectLimit:X,selectSeries:$,wrapSync:asyncify,during:ue,doDuring:D};e.all=j;e.allLimit=z;e.allSeries=W;e.any=ne;e.anyLimit=se;e.anySeries=ae;e.apply=apply;e.applyEach=g;e.applyEachSeries=b;e.asyncify=asyncify;e.auto=auto;e.autoInject=autoInject;e.cargo=cargo$1;e.cargoQueue=cargo;e.compose=compose;e.concat=O;e.concatLimit=R;e.concatSeries=A;e.constant=constant$1;e.default=ce;e.detect=I;e.detectLimit=P;e.detectSeries=N;e.dir=F;e.doDuring=D;e.doUntil=doUntil;e.doWhilst=D;e.during=ue;e.each=L;e.eachLimit=B;e.eachOf=h;e.eachOfLimit=c;e.eachOfSeries=y;e.eachSeries=M;e.ensureAsync=ensureAsync;e.every=j;e.everyLimit=z;e.everySeries=W;e.filter=H;e.filterLimit=X;e.filterSeries=$;e.find=I;e.findLimit=P;e.findSeries=N;e.flatMap=O;e.flatMapLimit=R;e.flatMapSeries=A;e.foldl=C;e.foldr=reduceRight;e.forEach=L;e.forEachLimit=B;e.forEachOf=h;e.forEachOfLimit=c;e.forEachOfSeries=y;e.forEachSeries=M;e.forever=V;e.groupBy=groupBy;e.groupByLimit=U;e.groupBySeries=groupBySeries;e.inject=C;e.log=q;e.map=p;e.mapLimit=E;e.mapSeries=v;e.mapValues=mapValues;e.mapValuesLimit=G;e.mapValuesSeries=mapValuesSeries;e.memoize=memoize;e.nextTick=Y;e.parallel=parallel;e.parallelLimit=parallelLimit;e.priorityQueue=priorityQueue;e.queue=queue;e.race=Q;e.reduce=C;e.reduceRight=reduceRight;e.reflect=reflect;e.reflectAll=reflectAll;e.reject=J;e.rejectLimit=ee;e.rejectSeries=te;e.retry=retry;e.retryable=retryable;e.select=H;e.selectLimit=X;e.selectSeries=$;e.seq=seq;e.series=series;e.setImmediate=s;e.some=ne;e.someLimit=se;e.someSeries=ae;e.sortBy=oe;e.timeout=timeout;e.times=times;e.timesLimit=timesLimit;e.timesSeries=timesSeries;e.transform=transform;e.tryEach=le;e.unmemoize=unmemoize;e.until=until;e.waterfall=fe;e.whilst=ue;e.wrapSync=asyncify;Object.defineProperty(e,"__esModule",{value:true})}))},127:function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var i=range(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var i,n,s,o,c;var h=r.indexOf(e);var p=r.indexOf(t,h+1);var g=h;if(h>=0&&p>0){if(e===t){return[h,p]}i=[];s=r.length;while(g>=0&&!c){if(g==h){i.push(g);h=r.indexOf(e,g+1)}else if(i.length==1){c=[i.pop(),p]}else{n=i.pop();if(n<s){s=n;o=p}p=r.indexOf(t,g+1)}g=h<p&&h>=0?h:p}if(i.length){c=[s,o]}}return c}},3256:function(e,t,r){e=r.nmd(e);var i=function(e){"use strict";var t=1e7,r=7,n=9007199254740992,s=smallToArray(n),o="0123456789abcdefghijklmnopqrstuvwxyz";var c=typeof BigInt==="function";function Integer(e,t,r,i){if(typeof e==="undefined")return Integer[0];if(typeof t!=="undefined")return+t===10&&!r?parseValue(e):parseBase(e,t,r,i);return parseValue(e)}function BigInteger(e,t){this.value=e;this.sign=t;this.isSmall=false}BigInteger.prototype=Object.create(Integer.prototype);function SmallInteger(e){this.value=e;this.sign=e<0;this.isSmall=true}SmallInteger.prototype=Object.create(Integer.prototype);function NativeBigInt(e){this.value=e}NativeBigInt.prototype=Object.create(Integer.prototype);function isPrecise(e){return-n<e&&e<n}function smallToArray(e){if(e<1e7)return[e];if(e<1e14)return[e%1e7,Math.floor(e/1e7)];return[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function arrayToSmall(e){trim(e);var r=e.length;if(r<4&&compareAbs(e,s)<0){switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}}return e}function trim(e){var t=e.length;while(e[--t]===0);e.length=t+1}function createArray(e){var t=new Array(e);var r=-1;while(++r<e){t[r]=0}return t}function truncate(e){if(e>0)return Math.floor(e);return Math.ceil(e)}function add(e,r){var i=e.length,n=r.length,s=new Array(i),o=0,c=t,h,p;for(p=0;p<n;p++){h=e[p]+r[p]+o;o=h>=c?1:0;s[p]=h-o*c}while(p<i){h=e[p]+o;o=h===c?1:0;s[p++]=h-o*c}if(o>0)s.push(o);return s}function addAny(e,t){if(e.length>=t.length)return add(e,t);return add(t,e)}function addSmall(e,r){var i=e.length,n=new Array(i),s=t,o,c;for(c=0;c<i;c++){o=e[c]-s+r;r=Math.floor(o/s);n[c]=o-r*s;r+=1}while(r>0){n[c++]=r%s;r=Math.floor(r/s)}return n}BigInteger.prototype.add=function(e){var t=parseValue(e);if(this.sign!==t.sign){return this.subtract(t.negate())}var r=this.value,i=t.value;if(t.isSmall){return new BigInteger(addSmall(r,Math.abs(i)),this.sign)}return new BigInteger(addAny(r,i),this.sign)};BigInteger.prototype.plus=BigInteger.prototype.add;SmallInteger.prototype.add=function(e){var t=parseValue(e);var r=this.value;if(r<0!==t.sign){return this.subtract(t.negate())}var i=t.value;if(t.isSmall){if(isPrecise(r+i))return new SmallInteger(r+i);i=smallToArray(Math.abs(i))}return new BigInteger(addSmall(i,Math.abs(r)),r<0)};SmallInteger.prototype.plus=SmallInteger.prototype.add;NativeBigInt.prototype.add=function(e){return new NativeBigInt(this.value+parseValue(e).value)};NativeBigInt.prototype.plus=NativeBigInt.prototype.add;function subtract(e,r){var i=e.length,n=r.length,s=new Array(i),o=0,c=t,h,p;for(h=0;h<n;h++){p=e[h]-o-r[h];if(p<0){p+=c;o=1}else o=0;s[h]=p}for(h=n;h<i;h++){p=e[h]-o;if(p<0)p+=c;else{s[h++]=p;break}s[h]=p}for(;h<i;h++){s[h]=e[h]}trim(s);return s}function subtractAny(e,t,r){var i;if(compareAbs(e,t)>=0){i=subtract(e,t)}else{i=subtract(t,e);r=!r}i=arrayToSmall(i);if(typeof i==="number"){if(r)i=-i;return new SmallInteger(i)}return new BigInteger(i,r)}function subtractSmall(e,r,i){var n=e.length,s=new Array(n),o=-r,c=t,h,p;for(h=0;h<n;h++){p=e[h]+o;o=Math.floor(p/c);p%=c;s[h]=p<0?p+c:p}s=arrayToSmall(s);if(typeof s==="number"){if(i)s=-s;return new SmallInteger(s)}return new BigInteger(s,i)}BigInteger.prototype.subtract=function(e){var t=parseValue(e);if(this.sign!==t.sign){return this.add(t.negate())}var r=this.value,i=t.value;if(t.isSmall)return subtractSmall(r,Math.abs(i),this.sign);return subtractAny(r,i,this.sign)};BigInteger.prototype.minus=BigInteger.prototype.subtract;SmallInteger.prototype.subtract=function(e){var t=parseValue(e);var r=this.value;if(r<0!==t.sign){return this.add(t.negate())}var i=t.value;if(t.isSmall){return new SmallInteger(r-i)}return subtractSmall(i,Math.abs(r),r>=0)};SmallInteger.prototype.minus=SmallInteger.prototype.subtract;NativeBigInt.prototype.subtract=function(e){return new NativeBigInt(this.value-parseValue(e).value)};NativeBigInt.prototype.minus=NativeBigInt.prototype.subtract;BigInteger.prototype.negate=function(){return new BigInteger(this.value,!this.sign)};SmallInteger.prototype.negate=function(){var e=this.sign;var t=new SmallInteger(-this.value);t.sign=!e;return t};NativeBigInt.prototype.negate=function(){return new NativeBigInt(-this.value)};BigInteger.prototype.abs=function(){return new BigInteger(this.value,false)};SmallInteger.prototype.abs=function(){return new SmallInteger(Math.abs(this.value))};NativeBigInt.prototype.abs=function(){return new NativeBigInt(this.value>=0?this.value:-this.value)};function multiplyLong(e,r){var i=e.length,n=r.length,s=i+n,o=createArray(s),c=t,h,p,g,y,v;for(g=0;g<i;++g){y=e[g];for(var b=0;b<n;++b){v=r[b];h=y*v+o[g+b];p=Math.floor(h/c);o[g+b]=h-p*c;o[g+b+1]+=p}}trim(o);return o}function multiplySmall(e,r){var i=e.length,n=new Array(i),s=t,o=0,c,h;for(h=0;h<i;h++){c=e[h]*r+o;o=Math.floor(c/s);n[h]=c-o*s}while(o>0){n[h++]=o%s;o=Math.floor(o/s)}return n}function shiftLeft(e,t){var r=[];while(t-- >0)r.push(0);return r.concat(e)}function multiplyKaratsuba(e,t){var r=Math.max(e.length,t.length);if(r<=30)return multiplyLong(e,t);r=Math.ceil(r/2);var i=e.slice(r),n=e.slice(0,r),s=t.slice(r),o=t.slice(0,r);var c=multiplyKaratsuba(n,o),h=multiplyKaratsuba(i,s),p=multiplyKaratsuba(addAny(n,i),addAny(o,s));var g=addAny(addAny(c,shiftLeft(subtract(subtract(p,c),h),r)),shiftLeft(h,2*r));trim(g);return g}function useKaratsuba(e,t){return-.012*e-.012*t+15e-6*e*t>0}BigInteger.prototype.multiply=function(e){var r=parseValue(e),i=this.value,n=r.value,s=this.sign!==r.sign,o;if(r.isSmall){if(n===0)return Integer[0];if(n===1)return this;if(n===-1)return this.negate();o=Math.abs(n);if(o<t){return new BigInteger(multiplySmall(i,o),s)}n=smallToArray(o)}if(useKaratsuba(i.length,n.length))return new BigInteger(multiplyKaratsuba(i,n),s);return new BigInteger(multiplyLong(i,n),s)};BigInteger.prototype.times=BigInteger.prototype.multiply;function multiplySmallAndArray(e,r,i){if(e<t){return new BigInteger(multiplySmall(r,e),i)}return new BigInteger(multiplyLong(r,smallToArray(e)),i)}SmallInteger.prototype._multiplyBySmall=function(e){if(isPrecise(e.value*this.value)){return new SmallInteger(e.value*this.value)}return multiplySmallAndArray(Math.abs(e.value),smallToArray(Math.abs(this.value)),this.sign!==e.sign)};BigInteger.prototype._multiplyBySmall=function(e){if(e.value===0)return Integer[0];if(e.value===1)return this;if(e.value===-1)return this.negate();return multiplySmallAndArray(Math.abs(e.value),this.value,this.sign!==e.sign)};SmallInteger.prototype.multiply=function(e){return parseValue(e)._multiplyBySmall(this)};SmallInteger.prototype.times=SmallInteger.prototype.multiply;NativeBigInt.prototype.multiply=function(e){return new NativeBigInt(this.value*parseValue(e).value)};NativeBigInt.prototype.times=NativeBigInt.prototype.multiply;function square(e){var r=e.length,i=createArray(r+r),n=t,s,o,c,h,p;for(c=0;c<r;c++){h=e[c];o=0-h*h;for(var g=c;g<r;g++){p=e[g];s=2*(h*p)+i[c+g]+o;o=Math.floor(s/n);i[c+g]=s-o*n}i[c+r]=o}trim(i);return i}BigInteger.prototype.square=function(){return new BigInteger(square(this.value),false)};SmallInteger.prototype.square=function(){var e=this.value*this.value;if(isPrecise(e))return new SmallInteger(e);return new BigInteger(square(smallToArray(Math.abs(this.value))),false)};NativeBigInt.prototype.square=function(e){return new NativeBigInt(this.value*this.value)};function divMod1(e,r){var i=e.length,n=r.length,s=t,o=createArray(r.length),c=r[n-1],h=Math.ceil(s/(2*c)),p=multiplySmall(e,h),g=multiplySmall(r,h),y,v,b,_,w,x,S;if(p.length<=i)p.push(0);g.push(0);c=g[n-1];for(v=i-n;v>=0;v--){y=s-1;if(p[v+n]!==c){y=Math.floor((p[v+n]*s+p[v+n-1])/c)}b=0;_=0;x=g.length;for(w=0;w<x;w++){b+=y*g[w];S=Math.floor(b/s);_+=p[v+w]-(b-S*s);b=S;if(_<0){p[v+w]=_+s;_=-1}else{p[v+w]=_;_=0}}while(_!==0){y-=1;b=0;for(w=0;w<x;w++){b+=p[v+w]-s+g[w];if(b<0){p[v+w]=b+s;b=0}else{p[v+w]=b;b=1}}_+=b}o[v]=y}p=divModSmall(p,h)[0];return[arrayToSmall(o),arrayToSmall(p)]}function divMod2(e,r){var i=e.length,n=r.length,s=[],o=[],c=t,h,p,g,y,v;while(i){o.unshift(e[--i]);trim(o);if(compareAbs(o,r)<0){s.push(0);continue}p=o.length;g=o[p-1]*c+o[p-2];y=r[n-1]*c+r[n-2];if(p>n){g=(g+1)*c}h=Math.ceil(g/y);do{v=multiplySmall(r,h);if(compareAbs(v,o)<=0)break;h--}while(h);s.push(h);o=subtract(o,v)}s.reverse();return[arrayToSmall(s),arrayToSmall(o)]}function divModSmall(e,r){var i=e.length,n=createArray(i),s=t,o,c,h,p;h=0;for(o=i-1;o>=0;--o){p=h*s+e[o];c=truncate(p/r);h=p-c*r;n[o]=c|0}return[n,h|0]}function divModAny(e,r){var i,n=parseValue(r);if(c){return[new NativeBigInt(e.value/n.value),new NativeBigInt(e.value%n.value)]}var s=e.value,o=n.value;var h;if(o===0)throw new Error("Cannot divide by zero");if(e.isSmall){if(n.isSmall){return[new SmallInteger(truncate(s/o)),new SmallInteger(s%o)]}return[Integer[0],e]}if(n.isSmall){if(o===1)return[e,Integer[0]];if(o==-1)return[e.negate(),Integer[0]];var p=Math.abs(o);if(p<t){i=divModSmall(s,p);h=arrayToSmall(i[0]);var g=i[1];if(e.sign)g=-g;if(typeof h==="number"){if(e.sign!==n.sign)h=-h;return[new SmallInteger(h),new SmallInteger(g)]}return[new BigInteger(h,e.sign!==n.sign),new SmallInteger(g)]}o=smallToArray(p)}var y=compareAbs(s,o);if(y===-1)return[Integer[0],e];if(y===0)return[Integer[e.sign===n.sign?1:-1],Integer[0]];if(s.length+o.length<=200)i=divMod1(s,o);else i=divMod2(s,o);h=i[0];var v=e.sign!==n.sign,b=i[1],_=e.sign;if(typeof h==="number"){if(v)h=-h;h=new SmallInteger(h)}else h=new BigInteger(h,v);if(typeof b==="number"){if(_)b=-b;b=new SmallInteger(b)}else b=new BigInteger(b,_);return[h,b]}BigInteger.prototype.divmod=function(e){var t=divModAny(this,e);return{quotient:t[0],remainder:t[1]}};NativeBigInt.prototype.divmod=SmallInteger.prototype.divmod=BigInteger.prototype.divmod;BigInteger.prototype.divide=function(e){return divModAny(this,e)[0]};NativeBigInt.prototype.over=NativeBigInt.prototype.divide=function(e){return new NativeBigInt(this.value/parseValue(e).value)};SmallInteger.prototype.over=SmallInteger.prototype.divide=BigInteger.prototype.over=BigInteger.prototype.divide;BigInteger.prototype.mod=function(e){return divModAny(this,e)[1]};NativeBigInt.prototype.mod=NativeBigInt.prototype.remainder=function(e){return new NativeBigInt(this.value%parseValue(e).value)};SmallInteger.prototype.remainder=SmallInteger.prototype.mod=BigInteger.prototype.remainder=BigInteger.prototype.mod;BigInteger.prototype.pow=function(e){var t=parseValue(e),r=this.value,i=t.value,n,s,o;if(i===0)return Integer[1];if(r===0)return Integer[0];if(r===1)return Integer[1];if(r===-1)return t.isEven()?Integer[1]:Integer[-1];if(t.sign){return Integer[0]}if(!t.isSmall)throw new Error("The exponent "+t.toString()+" is too large.");if(this.isSmall){if(isPrecise(n=Math.pow(r,i)))return new SmallInteger(truncate(n))}s=this;o=Integer[1];while(true){if(i&1===1){o=o.times(s);--i}if(i===0)break;i/=2;s=s.square()}return o};SmallInteger.prototype.pow=BigInteger.prototype.pow;NativeBigInt.prototype.pow=function(e){var t=parseValue(e);var r=this.value,i=t.value;var n=BigInt(0),s=BigInt(1),o=BigInt(2);if(i===n)return Integer[1];if(r===n)return Integer[0];if(r===s)return Integer[1];if(r===BigInt(-1))return t.isEven()?Integer[1]:Integer[-1];if(t.isNegative())return new NativeBigInt(n);var c=this;var h=Integer[1];while(true){if((i&s)===s){h=h.times(c);--i}if(i===n)break;i/=o;c=c.square()}return h};BigInteger.prototype.modPow=function(e,t){e=parseValue(e);t=parseValue(t);if(t.isZero())throw new Error("Cannot take modPow with modulus 0");var r=Integer[1],i=this.mod(t);if(e.isNegative()){e=e.multiply(Integer[-1]);i=i.modInv(t)}while(e.isPositive()){if(i.isZero())return Integer[0];if(e.isOdd())r=r.multiply(i).mod(t);e=e.divide(2);i=i.square().mod(t)}return r};NativeBigInt.prototype.modPow=SmallInteger.prototype.modPow=BigInteger.prototype.modPow;function compareAbs(e,t){if(e.length!==t.length){return e.length>t.length?1:-1}for(var r=e.length-1;r>=0;r--){if(e[r]!==t[r])return e[r]>t[r]?1:-1}return 0}BigInteger.prototype.compareAbs=function(e){var t=parseValue(e),r=this.value,i=t.value;if(t.isSmall)return 1;return compareAbs(r,i)};SmallInteger.prototype.compareAbs=function(e){var t=parseValue(e),r=Math.abs(this.value),i=t.value;if(t.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return-1};NativeBigInt.prototype.compareAbs=function(e){var t=this.value;var r=parseValue(e).value;t=t>=0?t:-t;r=r>=0?r:-r;return t===r?0:t>r?1:-1};BigInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=parseValue(e),r=this.value,i=t.value;if(this.sign!==t.sign){return t.sign?1:-1}if(t.isSmall){return this.sign?-1:1}return compareAbs(r,i)*(this.sign?-1:1)};BigInteger.prototype.compareTo=BigInteger.prototype.compare;SmallInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=parseValue(e),r=this.value,i=t.value;if(t.isSmall){return r==i?0:r>i?1:-1}if(r<0!==t.sign){return r<0?-1:1}return r<0?1:-1};SmallInteger.prototype.compareTo=SmallInteger.prototype.compare;NativeBigInt.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=this.value;var r=parseValue(e).value;return t===r?0:t>r?1:-1};NativeBigInt.prototype.compareTo=NativeBigInt.prototype.compare;BigInteger.prototype.equals=function(e){return this.compare(e)===0};NativeBigInt.prototype.eq=NativeBigInt.prototype.equals=SmallInteger.prototype.eq=SmallInteger.prototype.equals=BigInteger.prototype.eq=BigInteger.prototype.equals;BigInteger.prototype.notEquals=function(e){return this.compare(e)!==0};NativeBigInt.prototype.neq=NativeBigInt.prototype.notEquals=SmallInteger.prototype.neq=SmallInteger.prototype.notEquals=BigInteger.prototype.neq=BigInteger.prototype.notEquals;BigInteger.prototype.greater=function(e){return this.compare(e)>0};NativeBigInt.prototype.gt=NativeBigInt.prototype.greater=SmallInteger.prototype.gt=SmallInteger.prototype.greater=BigInteger.prototype.gt=BigInteger.prototype.greater;BigInteger.prototype.lesser=function(e){return this.compare(e)<0};NativeBigInt.prototype.lt=NativeBigInt.prototype.lesser=SmallInteger.prototype.lt=SmallInteger.prototype.lesser=BigInteger.prototype.lt=BigInteger.prototype.lesser;BigInteger.prototype.greaterOrEquals=function(e){return this.compare(e)>=0};NativeBigInt.prototype.geq=NativeBigInt.prototype.greaterOrEquals=SmallInteger.prototype.geq=SmallInteger.prototype.greaterOrEquals=BigInteger.prototype.geq=BigInteger.prototype.greaterOrEquals;BigInteger.prototype.lesserOrEquals=function(e){return this.compare(e)<=0};NativeBigInt.prototype.leq=NativeBigInt.prototype.lesserOrEquals=SmallInteger.prototype.leq=SmallInteger.prototype.lesserOrEquals=BigInteger.prototype.leq=BigInteger.prototype.lesserOrEquals;BigInteger.prototype.isEven=function(){return(this.value[0]&1)===0};SmallInteger.prototype.isEven=function(){return(this.value&1)===0};NativeBigInt.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};BigInteger.prototype.isOdd=function(){return(this.value[0]&1)===1};SmallInteger.prototype.isOdd=function(){return(this.value&1)===1};NativeBigInt.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};BigInteger.prototype.isPositive=function(){return!this.sign};SmallInteger.prototype.isPositive=function(){return this.value>0};NativeBigInt.prototype.isPositive=SmallInteger.prototype.isPositive;BigInteger.prototype.isNegative=function(){return this.sign};SmallInteger.prototype.isNegative=function(){return this.value<0};NativeBigInt.prototype.isNegative=SmallInteger.prototype.isNegative;BigInteger.prototype.isUnit=function(){return false};SmallInteger.prototype.isUnit=function(){return Math.abs(this.value)===1};NativeBigInt.prototype.isUnit=function(){return this.abs().value===BigInt(1)};BigInteger.prototype.isZero=function(){return false};SmallInteger.prototype.isZero=function(){return this.value===0};NativeBigInt.prototype.isZero=function(){return this.value===BigInt(0)};BigInteger.prototype.isDivisibleBy=function(e){var t=parseValue(e);if(t.isZero())return false;if(t.isUnit())return true;if(t.compareAbs(2)===0)return this.isEven();return this.mod(t).isZero()};NativeBigInt.prototype.isDivisibleBy=SmallInteger.prototype.isDivisibleBy=BigInteger.prototype.isDivisibleBy;function isBasicPrime(e){var t=e.abs();if(t.isUnit())return false;if(t.equals(2)||t.equals(3)||t.equals(5))return true;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return false;if(t.lesser(49))return true}function millerRabinTest(e,t){var r=e.prev(),n=r,s=0,o,c,h,p;while(n.isEven())n=n.divide(2),s++;e:for(h=0;h<t.length;h++){if(e.lesser(t[h]))continue;p=i(t[h]).modPow(n,e);if(p.isUnit()||p.equals(r))continue;for(o=s-1;o!=0;o--){p=p.square().mod(e);if(p.isUnit())return false;if(p.equals(r))continue e}return false}return true}BigInteger.prototype.isPrime=function(t){var r=isBasicPrime(this);if(r!==e)return r;var n=this.abs();var s=n.bitLength();if(s<=64)return millerRabinTest(n,[2,3,5,7,11,13,17,19,23,29,31,37]);var o=Math.log(2)*s.toJSNumber();var c=Math.ceil(t===true?2*Math.pow(o,2):o);for(var h=[],p=0;p<c;p++){h.push(i(p+2))}return millerRabinTest(n,h)};NativeBigInt.prototype.isPrime=SmallInteger.prototype.isPrime=BigInteger.prototype.isPrime;BigInteger.prototype.isProbablePrime=function(t,r){var n=isBasicPrime(this);if(n!==e)return n;var s=this.abs();var o=t===e?5:t;for(var c=[],h=0;h<o;h++){c.push(i.randBetween(2,s.minus(2),r))}return millerRabinTest(s,c)};NativeBigInt.prototype.isProbablePrime=SmallInteger.prototype.isProbablePrime=BigInteger.prototype.isProbablePrime;BigInteger.prototype.modInv=function(e){var t=i.zero,r=i.one,n=parseValue(e),s=this.abs(),o,c,h;while(!s.isZero()){o=n.divide(s);c=t;h=n;t=r;n=s;r=c.subtract(o.multiply(r));s=h.subtract(o.multiply(s))}if(!n.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");if(t.compare(0)===-1){t=t.add(e)}if(this.isNegative()){return t.negate()}return t};NativeBigInt.prototype.modInv=SmallInteger.prototype.modInv=BigInteger.prototype.modInv;BigInteger.prototype.next=function(){var e=this.value;if(this.sign){return subtractSmall(e,1,this.sign)}return new BigInteger(addSmall(e,1),this.sign)};SmallInteger.prototype.next=function(){var e=this.value;if(e+1<n)return new SmallInteger(e+1);return new BigInteger(s,false)};NativeBigInt.prototype.next=function(){return new NativeBigInt(this.value+BigInt(1))};BigInteger.prototype.prev=function(){var e=this.value;if(this.sign){return new BigInteger(addSmall(e,1),true)}return subtractSmall(e,1,this.sign)};SmallInteger.prototype.prev=function(){var e=this.value;if(e-1>-n)return new SmallInteger(e-1);return new BigInteger(s,true)};NativeBigInt.prototype.prev=function(){return new NativeBigInt(this.value-BigInt(1))};var h=[1];while(2*h[h.length-1]<=t)h.push(2*h[h.length-1]);var p=h.length,g=h[p-1];function shift_isSmall(e){return Math.abs(e)<=t}BigInteger.prototype.shiftLeft=function(e){var t=parseValue(e).toJSNumber();if(!shift_isSmall(t)){throw new Error(String(t)+" is too large for shifting.")}if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;while(t>=p){r=r.multiply(g);t-=p-1}return r.multiply(h[t])};NativeBigInt.prototype.shiftLeft=SmallInteger.prototype.shiftLeft=BigInteger.prototype.shiftLeft;BigInteger.prototype.shiftRight=function(e){var t;var r=parseValue(e).toJSNumber();if(!shift_isSmall(r)){throw new Error(String(r)+" is too large for shifting.")}if(r<0)return this.shiftLeft(-r);var i=this;while(r>=p){if(i.isZero()||i.isNegative()&&i.isUnit())return i;t=divModAny(i,g);i=t[1].isNegative()?t[0].prev():t[0];r-=p-1}t=divModAny(i,h[r]);return t[1].isNegative()?t[0].prev():t[0]};NativeBigInt.prototype.shiftRight=SmallInteger.prototype.shiftRight=BigInteger.prototype.shiftRight;function bitwise(e,t,r){t=parseValue(t);var n=e.isNegative(),s=t.isNegative();var o=n?e.not():e,c=s?t.not():t;var h=0,p=0;var y=null,v=null;var b=[];while(!o.isZero()||!c.isZero()){y=divModAny(o,g);h=y[1].toJSNumber();if(n){h=g-1-h}v=divModAny(c,g);p=v[1].toJSNumber();if(s){p=g-1-p}o=y[0];c=v[0];b.push(r(h,p))}var _=r(n?1:0,s?1:0)!==0?i(-1):i(0);for(var w=b.length-1;w>=0;w-=1){_=_.multiply(g).add(i(b[w]))}return _}BigInteger.prototype.not=function(){return this.negate().prev()};NativeBigInt.prototype.not=SmallInteger.prototype.not=BigInteger.prototype.not;BigInteger.prototype.and=function(e){return bitwise(this,e,(function(e,t){return e&t}))};NativeBigInt.prototype.and=SmallInteger.prototype.and=BigInteger.prototype.and;BigInteger.prototype.or=function(e){return bitwise(this,e,(function(e,t){return e|t}))};NativeBigInt.prototype.or=SmallInteger.prototype.or=BigInteger.prototype.or;BigInteger.prototype.xor=function(e){return bitwise(this,e,(function(e,t){return e^t}))};NativeBigInt.prototype.xor=SmallInteger.prototype.xor=BigInteger.prototype.xor;var y=1<<30,v=(t&-t)*(t&-t)|y;function roughLOB(e){var r=e.value,i=typeof r==="number"?r|y:typeof r==="bigint"?r|BigInt(y):r[0]+r[1]*t|v;return i&-i}function integerLogarithm(e,t){if(t.compareTo(e)<=0){var r=integerLogarithm(e,t.square(t));var n=r.p;var s=r.e;var o=n.multiply(t);return o.compareTo(e)<=0?{p:o,e:s*2+1}:{p:n,e:s*2}}return{p:i(1),e:0}}BigInteger.prototype.bitLength=function(){var e=this;if(e.compareTo(i(0))<0){e=e.negate().subtract(i(1))}if(e.compareTo(i(0))===0){return i(0)}return i(integerLogarithm(e,i(2)).e).add(i(1))};NativeBigInt.prototype.bitLength=SmallInteger.prototype.bitLength=BigInteger.prototype.bitLength;function max(e,t){e=parseValue(e);t=parseValue(t);return e.greater(t)?e:t}function min(e,t){e=parseValue(e);t=parseValue(t);return e.lesser(t)?e:t}function gcd(e,t){e=parseValue(e).abs();t=parseValue(t).abs();if(e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;var r=Integer[1],i,n;while(e.isEven()&&t.isEven()){i=min(roughLOB(e),roughLOB(t));e=e.divide(i);t=t.divide(i);r=r.multiply(i)}while(e.isEven()){e=e.divide(roughLOB(e))}do{while(t.isEven()){t=t.divide(roughLOB(t))}if(e.greater(t)){n=t;t=e;e=n}t=t.subtract(e)}while(!t.isZero());return r.isUnit()?e:e.multiply(r)}function lcm(e,t){e=parseValue(e).abs();t=parseValue(t).abs();return e.divide(gcd(e,t)).multiply(t)}function randBetween(e,r,i){e=parseValue(e);r=parseValue(r);var n=i||Math.random;var s=min(e,r),o=max(e,r);var c=o.subtract(s).add(1);if(c.isSmall)return s.add(Math.floor(n()*c));var h=toBase(c,t).value;var p=[],g=true;for(var y=0;y<h.length;y++){var v=g?h[y]+(y+1<h.length?h[y+1]/t:0):t;var b=truncate(n()*v);p.push(b);if(b<h[y])g=false}return s.add(Integer.fromArray(p,t,false))}var parseBase=function(e,t,r,i){r=r||o;e=String(e);if(!i){e=e.toLowerCase();r=r.toLowerCase()}var n=e.length;var s;var c=Math.abs(t);var h={};for(s=0;s<r.length;s++){h[r[s]]=s}for(s=0;s<n;s++){var p=e[s];if(p==="-")continue;if(p in h){if(h[p]>=c){if(p==="1"&&c===1)continue;throw new Error(p+" is not a valid digit in base "+t+".")}}}t=parseValue(t);var g=[];var y=e[0]==="-";for(s=y?1:0;s<e.length;s++){var p=e[s];if(p in h)g.push(parseValue(h[p]));else if(p==="<"){var v=s;do{s++}while(e[s]!==">"&&s<e.length);g.push(parseValue(e.slice(v+1,s)))}else throw new Error(p+" is not a valid character")}return parseBaseFromArray(g,t,y)};function parseBaseFromArray(e,t,r){var i=Integer[0],n=Integer[1],s;for(s=e.length-1;s>=0;s--){i=i.add(e[s].times(n));n=n.times(t)}return r?i.negate():i}function stringify(e,t){t=t||o;if(e<t.length){return t[e]}return"<"+e+">"}function toBase(e,t){t=i(t);if(t.isZero()){if(e.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:false};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return{value:[].concat.apply([],r),isNegative:false}}var n=false;if(e.isNegative()&&t.isPositive()){n=true;e=e.abs()}if(t.isUnit()){if(e.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n}}var s=[];var o=e,c;while(o.isNegative()||o.compareAbs(t)>=0){c=o.divmod(t);o=c.quotient;var h=c.remainder;if(h.isNegative()){h=t.minus(h).abs();o=o.next()}s.push(h.toJSNumber())}s.push(o.toJSNumber());return{value:s.reverse(),isNegative:n}}function toBaseString(e,t,r){var i=toBase(e,t);return(i.isNegative?"-":"")+i.value.map((function(e){return stringify(e,r)})).join("")}BigInteger.prototype.toArray=function(e){return toBase(this,e)};SmallInteger.prototype.toArray=function(e){return toBase(this,e)};NativeBigInt.prototype.toArray=function(e){return toBase(this,e)};BigInteger.prototype.toString=function(t,r){if(t===e)t=10;if(t!==10||r)return toBaseString(this,t,r);var i=this.value,n=i.length,s=String(i[--n]),o="0000000",c;while(--n>=0){c=String(i[n]);s+=o.slice(c.length)+c}var h=this.sign?"-":"";return h+s};SmallInteger.prototype.toString=function(t,r){if(t===e)t=10;if(t!=10||r)return toBaseString(this,t,r);return String(this.value)};NativeBigInt.prototype.toString=SmallInteger.prototype.toString;NativeBigInt.prototype.toJSON=BigInteger.prototype.toJSON=SmallInteger.prototype.toJSON=function(){return this.toString()};BigInteger.prototype.valueOf=function(){return parseInt(this.toString(),10)};BigInteger.prototype.toJSNumber=BigInteger.prototype.valueOf;SmallInteger.prototype.valueOf=function(){return this.value};SmallInteger.prototype.toJSNumber=SmallInteger.prototype.valueOf;NativeBigInt.prototype.valueOf=NativeBigInt.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function parseStringValue(e){if(isPrecise(+e)){var t=+e;if(t===truncate(t))return c?new NativeBigInt(BigInt(t)):new SmallInteger(t);throw new Error("Invalid integer: "+e)}var i=e[0]==="-";if(i)e=e.slice(1);var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(n.length===2){var s=n[1];if(s[0]==="+")s=s.slice(1);s=+s;if(s!==truncate(s)||!isPrecise(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var o=n[0];var h=o.indexOf(".");if(h>=0){s-=o.length-h-1;o=o.slice(0,h)+o.slice(h+1)}if(s<0)throw new Error("Cannot include negative exponent part for integers");o+=new Array(s+1).join("0");e=o}var p=/^([0-9][0-9]*)$/.test(e);if(!p)throw new Error("Invalid integer: "+e);if(c){return new NativeBigInt(BigInt(i?"-"+e:e))}var g=[],y=e.length,v=r,b=y-v;while(y>0){g.push(+e.slice(b,y));b-=v;if(b<0)b=0;y-=v}trim(g);return new BigInteger(g,i)}function parseNumberValue(e){if(c){return new NativeBigInt(BigInt(e))}if(isPrecise(e)){if(e!==truncate(e))throw new Error(e+" is not an integer.");return new SmallInteger(e)}return parseStringValue(e.toString())}function parseValue(e){if(typeof e==="number"){return parseNumberValue(e)}if(typeof e==="string"){return parseStringValue(e)}if(typeof e==="bigint"){return new NativeBigInt(e)}return e}for(var b=0;b<1e3;b++){Integer[b]=parseValue(b);if(b>0)Integer[-b]=parseValue(-b)}Integer.one=Integer[1];Integer.zero=Integer[0];Integer.minusOne=Integer[-1];Integer.max=max;Integer.min=min;Integer.gcd=gcd;Integer.lcm=lcm;Integer.isInstance=function(e){return e instanceof BigInteger||e instanceof SmallInteger||e instanceof NativeBigInt};Integer.randBetween=randBetween;Integer.fromArray=function(e,t,r){return parseBaseFromArray(e.map(parseValue),parseValue(t||10),r)};return Integer}();if(true&&e.hasOwnProperty("exports")){e.exports=i}if(typeof define==="function"&&define.amd){define((function(){return i}))}},8592:function(e,t,r){var i=r(5769);var n=r(4434).EventEmitter;var s=r(8688);var o=r(4185);var c=r(2203).Stream;t=e.exports=function(e,r){if(Buffer.isBuffer(e)){return t.parse(e)}var i=t.stream();if(e&&e.pipe){e.pipe(i)}else if(e){e.on(r||"data",(function(e){i.write(e)}));e.on("end",(function(){i.end()}))}return i};t.stream=function(e){if(e)return t.apply(null,arguments);var r=null;function getBytes(e,t,i){r={bytes:e,skip:i,cb:function(e){r=null;t(e)}};dispatch()}var h=null;function dispatch(){if(!r){if(b)v=true;return}if(typeof r==="function"){r()}else{var e=h+r.bytes;if(g.length>=e){var t;if(h==null){t=g.splice(0,e);if(!r.skip){t=t.slice()}}else{if(!r.skip){t=g.slice(h,e)}h=e}if(r.skip){r.cb()}else{r.cb(t)}}}}function builder(e){function next(){if(!v)e.next()}var t=words((function(e,t){return function(r){getBytes(e,(function(e){y.set(r,t(e));next()}))}}));t.tap=function(t){e.nest(t,y.store)};t.into=function(t,r){if(!y.get(t))y.set(t,{});var i=y;y=o(i.get(t));e.nest((function(){r.apply(this,arguments);this.tap((function(){y=i}))}),y.store)};t.flush=function(){y.store={};next()};t.loop=function(t){var r=false;e.nest(false,(function loop(){this.vars=y.store;t.call(this,(function(){r=true;next()}),y.store);this.tap(function(){if(r)e.next();else loop.call(this)}.bind(this))}),y.store)};t.buffer=function(e,t){if(typeof t==="string"){t=y.get(t)}getBytes(t,(function(t){y.set(e,t);next()}))};t.skip=function(e){if(typeof e==="string"){e=y.get(e)}getBytes(e,(function(){next()}))};t.scan=function find(e,t){if(typeof t==="string"){t=new Buffer(t)}else if(!Buffer.isBuffer(t)){throw new Error("search must be a Buffer or a string")}var i=0;r=function(){var n=g.indexOf(t,h+i);var s=n-h-i;if(n!==-1){r=null;if(h!=null){y.set(e,g.slice(h,h+i+s));h+=i+s+t.length}else{y.set(e,g.slice(0,i+s));g.splice(0,i+s+t.length)}next();dispatch()}else{s=Math.max(g.length-t.length-h-i,0)}i+=s};dispatch()};t.peek=function(t){h=0;e.nest((function(){t.call(this,y.store);this.tap((function(){h=null}))}))};return t}var p=i.light(builder);p.writable=true;var g=s();p.write=function(e){g.push(e);dispatch()};var y=o();var v=false,b=false;p.end=function(){b=true};p.pipe=c.prototype.pipe;Object.getOwnPropertyNames(n.prototype).forEach((function(e){p[e]=n.prototype[e]}));return p};t.parse=function parse(e){var t=words((function(n,s){return function(o){if(r+n<=e.length){var c=e.slice(r,r+n);r+=n;i.set(o,s(c))}else{i.set(o,null)}return t}}));var r=0;var i=o();t.vars=i.store;t.tap=function(e){e.call(t,i.store);return t};t.into=function(e,r){if(!i.get(e)){i.set(e,{})}var n=i;i=o(n.get(e));r.call(t,i.store);i=n;return t};t.loop=function(e){var r=false;var ender=function(){r=true};while(r===false){e.call(t,ender,i.store)}return t};t.buffer=function(n,s){if(typeof s==="string"){s=i.get(s)}var o=e.slice(r,Math.min(e.length,r+s));r+=s;i.set(n,o);return t};t.skip=function(e){if(typeof e==="string"){e=i.get(e)}r+=e;return t};t.scan=function(n,s){if(typeof s==="string"){s=new Buffer(s)}else if(!Buffer.isBuffer(s)){throw new Error("search must be a Buffer or a string")}i.set(n,null);for(var o=0;o+r<=e.length-s.length+1;o++){for(var c=0;c<s.length&&e[r+o+c]===s[c];c++);if(c===s.length)break}i.set(n,e.slice(r,r+o));r+=o+s.length;return t};t.peek=function(e){var n=r;e.call(t,i.store);r=n;return t};t.flush=function(){i.store={};return t};t.eof=function(){return r>=e.length};return t};function decodeLEu(e){var t=0;for(var r=0;r<e.length;r++){t+=Math.pow(256,r)*e[r]}return t}function decodeBEu(e){var t=0;for(var r=0;r<e.length;r++){t+=Math.pow(256,e.length-r-1)*e[r]}return t}function decodeBEs(e){var t=decodeBEu(e);if((e[0]&128)==128){t-=Math.pow(256,e.length)}return t}function decodeLEs(e){var t=decodeLEu(e);if((e[e.length-1]&128)==128){t-=Math.pow(256,e.length)}return t}function words(e){var t={};[1,2,4,8].forEach((function(r){var i=r*8;t["word"+i+"le"]=t["word"+i+"lu"]=e(r,decodeLEu);t["word"+i+"ls"]=e(r,decodeLEs);t["word"+i+"be"]=t["word"+i+"bu"]=e(r,decodeBEu);t["word"+i+"bs"]=e(r,decodeBEs)}));t.word8=t.word8u=t.word8be;t.word8s=t.word8bs;return t}},4185:function(e){e.exports=function(e){function getset(e,r){var i=t.store;var n=e.split(".");n.slice(0,-1).forEach((function(e){if(i[e]===undefined)i[e]={};i=i[e]}));var s=n[n.length-1];if(arguments.length==1){return i[s]}else{return i[s]=r}}var t={get:function(e){return getset(e)},set:function(e,t){return getset(e,t)},store:e||{}};return t}},6411:function(e,t,r){"use strict";const{Buffer:i}=r(181);const n=Symbol.for("BufferList");function BufferList(e){if(!(this instanceof BufferList)){return new BufferList(e)}BufferList._init.call(this,e)}BufferList._init=function _init(e){Object.defineProperty(this,n,{value:true});this._bufs=[];this.length=0;if(e){this.append(e)}};BufferList.prototype._new=function _new(e){return new BufferList(e)};BufferList.prototype._offset=function _offset(e){if(e===0){return[0,0]}let t=0;for(let r=0;r<this._bufs.length;r++){const i=t+this._bufs[r].length;if(e<i||r===this._bufs.length-1){return[r,e-t]}t=i}};BufferList.prototype._reverseOffset=function(e){const t=e[0];let r=e[1];for(let e=0;e<t;e++){r+=this._bufs[e].length}return r};BufferList.prototype.get=function get(e){if(e>this.length||e<0){return undefined}const t=this._offset(e);return this._bufs[t[0]][t[1]]};BufferList.prototype.slice=function slice(e,t){if(typeof e==="number"&&e<0){e+=this.length}if(typeof t==="number"&&t<0){t+=this.length}return this.copy(null,0,e,t)};BufferList.prototype.copy=function copy(e,t,r,n){if(typeof r!=="number"||r<0){r=0}if(typeof n!=="number"||n>this.length){n=this.length}if(r>=this.length){return e||i.alloc(0)}if(n<=0){return e||i.alloc(0)}const copy=!!e;const s=this._offset(r);const o=n-r;let c=o;let h=copy&&t||0;let p=s[1];if(r===0&&n===this.length){if(!copy){return this._bufs.length===1?this._bufs[0]:i.concat(this._bufs,this.length)}for(let t=0;t<this._bufs.length;t++){this._bufs[t].copy(e,h);h+=this._bufs[t].length}return e}if(c<=this._bufs[s[0]].length-p){return copy?this._bufs[s[0]].copy(e,t,p,p+c):this._bufs[s[0]].slice(p,p+c)}if(!copy){e=i.allocUnsafe(o)}for(let t=s[0];t<this._bufs.length;t++){const r=this._bufs[t].length-p;if(c>r){this._bufs[t].copy(e,h,p);h+=r}else{this._bufs[t].copy(e,h,p,p+c);h+=r;break}c-=r;if(p){p=0}}if(e.length>h)return e.slice(0,h);return e};BufferList.prototype.shallowSlice=function shallowSlice(e,t){e=e||0;t=typeof t!=="number"?this.length:t;if(e<0){e+=this.length}if(t<0){t+=this.length}if(e===t){return this._new()}const r=this._offset(e);const i=this._offset(t);const n=this._bufs.slice(r[0],i[0]+1);if(i[1]===0){n.pop()}else{n[n.length-1]=n[n.length-1].slice(0,i[1])}if(r[1]!==0){n[0]=n[0].slice(r[1])}return this._new(n)};BufferList.prototype.toString=function toString(e,t,r){return this.slice(t,r).toString(e)};BufferList.prototype.consume=function consume(e){e=Math.trunc(e);if(Number.isNaN(e)||e<=0)return this;while(this._bufs.length){if(e>=this._bufs[0].length){e-=this._bufs[0].length;this.length-=this._bufs[0].length;this._bufs.shift()}else{this._bufs[0]=this._bufs[0].slice(e);this.length-=e;break}}return this};BufferList.prototype.duplicate=function duplicate(){const e=this._new();for(let t=0;t<this._bufs.length;t++){e.append(this._bufs[t])}return e};BufferList.prototype.append=function append(e){if(e==null){return this}if(e.buffer){this._appendBuffer(i.from(e.buffer,e.byteOffset,e.byteLength))}else if(Array.isArray(e)){for(let t=0;t<e.length;t++){this.append(e[t])}}else if(this._isBufferList(e)){for(let t=0;t<e._bufs.length;t++){this.append(e._bufs[t])}}else{if(typeof e==="number"){e=e.toString()}this._appendBuffer(i.from(e))}return this};BufferList.prototype._appendBuffer=function appendBuffer(e){this._bufs.push(e);this.length+=e.length};BufferList.prototype.indexOf=function(e,t,r){if(r===undefined&&typeof t==="string"){r=t;t=undefined}if(typeof e==="function"||Array.isArray(e)){throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.')}else if(typeof e==="number"){e=i.from([e])}else if(typeof e==="string"){e=i.from(e,r)}else if(this._isBufferList(e)){e=e.slice()}else if(Array.isArray(e.buffer)){e=i.from(e.buffer,e.byteOffset,e.byteLength)}else if(!i.isBuffer(e)){e=i.from(e)}t=Number(t||0);if(isNaN(t)){t=0}if(t<0){t=this.length+t}if(t<0){t=0}if(e.length===0){return t>this.length?this.length:t}const n=this._offset(t);let s=n[0];let o=n[1];for(;s<this._bufs.length;s++){const t=this._bufs[s];while(o<t.length){const r=t.length-o;if(r>=e.length){const r=t.indexOf(e,o);if(r!==-1){return this._reverseOffset([s,r])}o=t.length-e.length+1}else{const t=this._reverseOffset([s,o]);if(this._match(t,e)){return t}o++}}o=0}return-1};BufferList.prototype._match=function(e,t){if(this.length-e<t.length){return false}for(let r=0;r<t.length;r++){if(this.get(e+r)!==t[r]){return false}}return true};(function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e){(function(t){if(e[t]===null){BufferList.prototype[t]=function(e,r){return this.slice(e,e+r)[t](0,r)}}else{BufferList.prototype[t]=function(r=0){return this.slice(r,r+e[t])[t](0)}}})(t)}})();BufferList.prototype._isBufferList=function _isBufferList(e){return e instanceof BufferList||BufferList.isBufferList(e)};BufferList.isBufferList=function isBufferList(e){return e!=null&&e[n]};e.exports=BufferList},739:function(e,t,r){"use strict";const i=r(1643).Duplex;const n=r(4070);const s=r(6411);function BufferListStream(e){if(!(this instanceof BufferListStream)){return new BufferListStream(e)}if(typeof e==="function"){this._callback=e;const t=function piper(e){if(this._callback){this._callback(e);this._callback=null}}.bind(this);this.on("pipe",(function onPipe(e){e.on("error",t)}));this.on("unpipe",(function onUnpipe(e){e.removeListener("error",t)}));e=null}s._init.call(this,e);i.call(this)}n(BufferListStream,i);Object.assign(BufferListStream.prototype,s.prototype);BufferListStream.prototype._new=function _new(e){return new BufferListStream(e)};BufferListStream.prototype._write=function _write(e,t,r){this._appendBuffer(e);if(typeof r==="function"){r()}};BufferListStream.prototype._read=function _read(e){if(!this.length){return this.push(null)}e=Math.min(e,this.length);this.push(this.slice(0,e));this.consume(e)};BufferListStream.prototype.end=function end(e){i.prototype.end.call(this,e);if(this._callback){this._callback(null,this.slice());this._callback=null}};BufferListStream.prototype._destroy=function _destroy(e,t){this._bufs.length=0;this.length=0;t(e)};BufferListStream.prototype._isBufferList=function _isBufferList(e){return e instanceof BufferListStream||e instanceof s||BufferListStream.isBufferList(e)};BufferListStream.isBufferList=s.isBufferList;e.exports=BufferListStream;e.exports.BufferListStream=BufferListStream;e.exports.BufferList=s},3016:function(e){"use strict";e.exports=function(e){var t=e._SomePromiseArray;function any(e){var r=new t(e);var i=r.promise();r.setHowMany(1);r.setUnwrap();r.init();return i}e.any=function(e){return any(e)};e.prototype.any=function(){return any(this)}}},7718:function(e,t,r){"use strict";var i;try{throw new Error}catch(e){i=e}var n=r(2453);var s=r(8205);var o=r(7292);function Async(){this._customScheduler=false;this._isTickUsed=false;this._lateQueue=new s(16);this._normalQueue=new s(16);this._haveDrainedQueues=false;this._trampolineEnabled=true;var e=this;this.drainQueues=function(){e._drainQueues()};this._schedule=n}Async.prototype.setScheduler=function(e){var t=this._schedule;this._schedule=e;this._customScheduler=true;return t};Async.prototype.hasCustomScheduler=function(){return this._customScheduler};Async.prototype.enableTrampoline=function(){this._trampolineEnabled=true};Async.prototype.disableTrampolineIfNecessary=function(){if(o.hasDevTools){this._trampolineEnabled=false}};Async.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Async.prototype.fatalError=function(e,t){if(t){process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n");process.exit(2)}else{this.throwLater(e)}};Async.prototype.throwLater=function(e,t){if(arguments.length===1){t=e;e=function(){throw t}}if(typeof setTimeout!=="undefined"){setTimeout((function(){e(t)}),0)}else try{this._schedule((function(){e(t)}))}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}};function AsyncInvokeLater(e,t,r){this._lateQueue.push(e,t,r);this._queueTick()}function AsyncInvoke(e,t,r){this._normalQueue.push(e,t,r);this._queueTick()}function AsyncSettlePromises(e){this._normalQueue._pushOne(e);this._queueTick()}if(!o.hasDevTools){Async.prototype.invokeLater=AsyncInvokeLater;Async.prototype.invoke=AsyncInvoke;Async.prototype.settlePromises=AsyncSettlePromises}else{Async.prototype.invokeLater=function(e,t,r){if(this._trampolineEnabled){AsyncInvokeLater.call(this,e,t,r)}else{this._schedule((function(){setTimeout((function(){e.call(t,r)}),100)}))}};Async.prototype.invoke=function(e,t,r){if(this._trampolineEnabled){AsyncInvoke.call(this,e,t,r)}else{this._schedule((function(){e.call(t,r)}))}};Async.prototype.settlePromises=function(e){if(this._trampolineEnabled){AsyncSettlePromises.call(this,e)}else{this._schedule((function(){e._settlePromises()}))}}}Async.prototype._drainQueue=function(e){while(e.length()>0){var t=e.shift();if(typeof t!=="function"){t._settlePromises();continue}var r=e.shift();var i=e.shift();t.call(r,i)}};Async.prototype._drainQueues=function(){this._drainQueue(this._normalQueue);this._reset();this._haveDrainedQueues=true;this._drainQueue(this._lateQueue)};Async.prototype._queueTick=function(){if(!this._isTickUsed){this._isTickUsed=true;this._schedule(this.drainQueues)}};Async.prototype._reset=function(){this._isTickUsed=false};e.exports=Async;e.exports.firstLineError=i},5971:function(e){"use strict";e.exports=function(e,t,r,i){var n=false;var rejectThis=function(e,t){this._reject(t)};var targetRejected=function(e,t){t.promiseRejectionQueued=true;t.bindingPromise._then(rejectThis,rejectThis,null,this,e)};var bindingResolved=function(e,t){if((this._bitField&50397184)===0){this._resolveCallback(t.target)}};var bindingRejected=function(e,t){if(!t.promiseRejectionQueued)this._reject(e)};e.prototype.bind=function(s){if(!n){n=true;e.prototype._propagateFrom=i.propagateFromFunction();e.prototype._boundValue=i.boundValueFunction()}var o=r(s);var c=new e(t);c._propagateFrom(this,1);var h=this._target();c._setBoundTo(o);if(o instanceof e){var p={promiseRejectionQueued:false,promise:c,target:h,bindingPromise:o};h._then(t,targetRejected,undefined,c,p);o._then(bindingResolved,bindingRejected,undefined,c,p);c._setOnCancel(o)}else{c._resolveCallback(h)}return c};e.prototype._setBoundTo=function(e){if(e!==undefined){this._bitField=this._bitField|2097152;this._boundTo=e}else{this._bitField=this._bitField&~2097152}};e.prototype._isBound=function(){return(this._bitField&2097152)===2097152};e.bind=function(t,r){return e.resolve(r).bind(t)}}},9571:function(e,t,r){"use strict";var i;if(typeof Promise!=="undefined")i=Promise;function noConflict(){try{if(Promise===n)Promise=i}catch(e){}return n}var n=r(4447)();n.noConflict=noConflict;e.exports=n},6991:function(e,t,r){"use strict";var i=Object.create;if(i){var n=i(null);var s=i(null);n[" size"]=s[" size"]=0}e.exports=function(e){var t=r(7292);var i=t.canEvaluate;var o=t.isIdentifier;var c;var h;if(true){var makeMethodCaller=function(e){return new Function("ensureMethod"," \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g,e))(ensureMethod)};var makeGetter=function(e){return new Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",e))};var getCompiled=function(e,t,r){var i=r[e];if(typeof i!=="function"){if(!o(e)){return null}i=t(e);r[e]=i;r[" size"]++;if(r[" size"]>512){var n=Object.keys(r);for(var s=0;s<256;++s)delete r[n[s]];r[" size"]=n.length-256}}return i};c=function(e){return getCompiled(e,makeMethodCaller,n)};h=function(e){return getCompiled(e,makeGetter,s)}}function ensureMethod(r,i){var n;if(r!=null)n=r[i];if(typeof n!=="function"){var s="Object "+t.classString(r)+" has no method '"+t.toString(i)+"'";throw new e.TypeError(s)}return n}function caller(e){var t=this.pop();var r=ensureMethod(e,t);return r.apply(e,this)}e.prototype.call=function(e){var t=arguments.length;var r=new Array(Math.max(t-1,0));for(var n=1;n<t;++n){r[n-1]=arguments[n]}if(true){if(i){var s=c(e);if(s!==null){return this._then(s,undefined,undefined,r,undefined)}}}r.push(e);return this._then(caller,undefined,undefined,r,undefined)};function namedGetter(e){return e[this]}function indexedGetter(e){var t=+this;if(t<0)t=Math.max(0,t+e.length);return e[t]}e.prototype.get=function(e){var t=typeof e==="number";var r;if(!t){if(i){var n=h(e);r=n!==null?n:namedGetter}else{r=namedGetter}}else{r=indexedGetter}return this._then(r,undefined,undefined,e,undefined)}}},2782:function(e,t,r){"use strict";e.exports=function(e,t,i,n){var s=r(7292);var o=s.tryCatch;var c=s.errorObj;var h=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!n.cancellation())return this._warn("cancellation is disabled");var e=this;var t=e;while(e._isCancellable()){if(!e._cancelBy(t)){if(t._isFollowing()){t._followee().cancel()}else{t._cancelBranched()}break}var r=e._cancellationParent;if(r==null||!r._isCancellable()){if(e._isFollowing()){e._followee().cancel()}else{e._cancelBranched()}break}else{if(e._isFollowing())e._followee().cancel();e._setWillBeCancelled();t=e;e=r}}};e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--};e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===undefined||this._branchesRemainingToCancel<=0};e.prototype._cancelBy=function(e){if(e===this){this._branchesRemainingToCancel=0;this._invokeOnCancel();return true}else{this._branchHasCancelled();if(this._enoughBranchesHaveCancelled()){this._invokeOnCancel();return true}}return false};e.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled()){this._cancel()}};e.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled();h.invoke(this._cancelPromises,this,undefined)};e.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()};e.prototype._unsetOnCancel=function(){this._onCancelField=undefined};e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()};e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()};e.prototype._doInvokeOnCancel=function(e,t){if(s.isArray(e)){for(var r=0;r<e.length;++r){this._doInvokeOnCancel(e[r],t)}}else if(e!==undefined){if(typeof e==="function"){if(!t){var i=o(e).call(this._boundValue());if(i===c){this._attachExtraTrace(i.e);h.throwLater(i.e)}}}else{e._resultCancelled(this)}}};e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel();h.invoke(this._doInvokeOnCancel,this,e)};e.prototype._invokeInternalOnCancel=function(){if(this._isCancellable()){this._doInvokeOnCancel(this._onCancel(),true);this._unsetOnCancel()}};e.prototype._resultCancelled=function(){this.cancel()}}},2142:function(e,t,r){"use strict";e.exports=function(e){var t=r(7292);var i=r(5341).keys;var n=t.tryCatch;var s=t.errorObj;function catchFilter(r,o,c){return function(h){var p=c._boundValue();e:for(var g=0;g<r.length;++g){var y=r[g];if(y===Error||y!=null&&y.prototype instanceof Error){if(h instanceof y){return n(o).call(p,h)}}else if(typeof y==="function"){var v=n(y).call(p,h);if(v===s){return v}else if(v){return n(o).call(p,h)}}else if(t.isObject(h)){var b=i(y);for(var _=0;_<b.length;++_){var w=b[_];if(y[w]!=h[w]){continue e}}return n(o).call(p,h)}}return e}}return catchFilter}},9501:function(e){"use strict";e.exports=function(e){var t=false;var r=[];e.prototype._promiseCreated=function(){};e.prototype._pushContext=function(){};e.prototype._popContext=function(){return null};e._peekContext=e.prototype._peekContext=function(){};function Context(){this._trace=new Context.CapturedTrace(peekContext())}Context.prototype._pushContext=function(){if(this._trace!==undefined){this._trace._promiseCreated=null;r.push(this._trace)}};Context.prototype._popContext=function(){if(this._trace!==undefined){var e=r.pop();var t=e._promiseCreated;e._promiseCreated=null;return t}return null};function createContext(){if(t)return new Context}function peekContext(){var e=r.length-1;if(e>=0){return r[e]}return undefined}Context.CapturedTrace=null;Context.create=createContext;Context.deactivateLongStackTraces=function(){};Context.activateLongStackTraces=function(){var r=e.prototype._pushContext;var i=e.prototype._popContext;var n=e._peekContext;var s=e.prototype._peekContext;var o=e.prototype._promiseCreated;Context.deactivateLongStackTraces=function(){e.prototype._pushContext=r;e.prototype._popContext=i;e._peekContext=n;e.prototype._peekContext=s;e.prototype._promiseCreated=o;t=false};t=true;e.prototype._pushContext=Context.prototype._pushContext;e.prototype._popContext=Context.prototype._popContext;e._peekContext=e.prototype._peekContext=peekContext;e.prototype._promiseCreated=function(){var e=this._peekContext();if(e&&e._promiseCreated==null)e._promiseCreated=this}};return Context}},3984:function(e,t,r){"use strict";e.exports=function(e,t){var i=e._getDomain;var n=e._async;var s=r(7799).Warning;var o=r(7292);var c=o.canAttachTrace;var h;var p;var g=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/;var y=/\((?:timers\.js):\d+:\d+\)/;var v=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/;var b=null;var _=null;var w=false;var x;var S=!!(o.env("BLUEBIRD_DEBUG")!=0&&(false||o.env("BLUEBIRD_DEBUG")||o.env("NODE_ENV")==="development"));var k=!!(o.env("BLUEBIRD_WARNINGS")!=0&&(S||o.env("BLUEBIRD_WARNINGS")));var C=!!(o.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(S||o.env("BLUEBIRD_LONG_STACK_TRACES")));var E=o.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(k||!!o.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=e._bitField&~1048576|524288};e.prototype._ensurePossibleRejectionHandled=function(){if((this._bitField&524288)!==0)return;this._setRejectionIsUnhandled();n.invokeLater(this._notifyUnhandledRejection,this,undefined)};e.prototype._notifyUnhandledRejectionIsHandled=function(){fireRejectionEvent("rejectionHandled",h,undefined,this)};e.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456};e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0};e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified();fireRejectionEvent("unhandledRejection",p,e,this)}};e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144};e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&~262144};e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0};e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576};e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&~1048576;if(this._isUnhandledRejectionNotified()){this._unsetUnhandledRejectionIsNotified();this._notifyUnhandledRejectionIsHandled()}};e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0};e.prototype._warn=function(e,t,r){return warn(e,t,r||this)};e.onPossiblyUnhandledRejection=function(e){var t=i();p=typeof e==="function"?t===null?e:o.domainBind(t,e):undefined};e.onUnhandledRejectionHandled=function(e){var t=i();h=typeof e==="function"?t===null?e:o.domainBind(t,e):undefined};var disableLongStackTraces=function(){};e.longStackTraces=function(){if(n.haveItemsQueued()&&!F.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}if(!F.longStackTraces&&longStackTracesIsSupported()){var r=e.prototype._captureStackTrace;var i=e.prototype._attachExtraTrace;F.longStackTraces=true;disableLongStackTraces=function(){if(n.haveItemsQueued()&&!F.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}e.prototype._captureStackTrace=r;e.prototype._attachExtraTrace=i;t.deactivateLongStackTraces();n.enableTrampoline();F.longStackTraces=false};e.prototype._captureStackTrace=longStackTracesCaptureStackTrace;e.prototype._attachExtraTrace=longStackTracesAttachExtraTrace;t.activateLongStackTraces();n.disableTrampolineIfNecessary()}};e.hasLongStackTraces=function(){return F.longStackTraces&&longStackTracesIsSupported()};var R=function(){try{if(typeof CustomEvent==="function"){var e=new CustomEvent("CustomEvent");o.global.dispatchEvent(e);return function(e,t){var r=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:true});return!o.global.dispatchEvent(r)}}else if(typeof Event==="function"){var e=new Event("CustomEvent");o.global.dispatchEvent(e);return function(e,t){var r=new Event(e.toLowerCase(),{cancelable:true});r.detail=t;return!o.global.dispatchEvent(r)}}else{var e=document.createEvent("CustomEvent");e.initCustomEvent("testingtheevent",false,true,{});o.global.dispatchEvent(e);return function(e,t){var r=document.createEvent("CustomEvent");r.initCustomEvent(e.toLowerCase(),false,true,t);return!o.global.dispatchEvent(r)}}}catch(e){}return function(){return false}}();var O=function(){if(o.isNode){return function(){return process.emit.apply(process,arguments)}}else{if(!o.global){return function(){return false}}return function(e){var t="on"+e.toLowerCase();var r=o.global[t];if(!r)return false;r.apply(o.global,[].slice.call(arguments,1));return true}}}();function generatePromiseLifecycleEventObject(e,t){return{promise:t}}var A={promiseCreated:generatePromiseLifecycleEventObject,promiseFulfilled:generatePromiseLifecycleEventObject,promiseRejected:generatePromiseLifecycleEventObject,promiseResolved:generatePromiseLifecycleEventObject,promiseCancelled:generatePromiseLifecycleEventObject,promiseChained:function(e,t,r){return{promise:t,child:r}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,r){return{reason:t,promise:r}},rejectionHandled:generatePromiseLifecycleEventObject};var activeFireEvent=function(e){var t=false;try{t=O.apply(null,arguments)}catch(e){n.throwLater(e);t=true}var r=false;try{r=R(e,A[e].apply(null,arguments))}catch(e){n.throwLater(e);r=true}return r||t};e.config=function(t){t=Object(t);if("longStackTraces"in t){if(t.longStackTraces){e.longStackTraces()}else if(!t.longStackTraces&&e.hasLongStackTraces()){disableLongStackTraces()}}if("warnings"in t){var r=t.warnings;F.warnings=!!r;E=F.warnings;if(o.isObject(r)){if("wForgottenReturn"in r){E=!!r.wForgottenReturn}}}if("cancellation"in t&&t.cancellation&&!F.cancellation){if(n.haveItemsQueued()){throw new Error("cannot enable cancellation after promises are in use")}e.prototype._clearCancellationData=cancellationClearCancellationData;e.prototype._propagateFrom=cancellationPropagateFrom;e.prototype._onCancel=cancellationOnCancel;e.prototype._setOnCancel=cancellationSetOnCancel;e.prototype._attachCancellationCallback=cancellationAttachCancellationCallback;e.prototype._execute=cancellationExecute;I=cancellationPropagateFrom;F.cancellation=true}if("monitoring"in t){if(t.monitoring&&!F.monitoring){F.monitoring=true;e.prototype._fireEvent=activeFireEvent}else if(!t.monitoring&&F.monitoring){F.monitoring=false;e.prototype._fireEvent=defaultFireEvent}}return e};function defaultFireEvent(){return false}e.prototype._fireEvent=defaultFireEvent;e.prototype._execute=function(e,t,r){try{e(t,r)}catch(e){return e}};e.prototype._onCancel=function(){};e.prototype._setOnCancel=function(e){};e.prototype._attachCancellationCallback=function(e){};e.prototype._captureStackTrace=function(){};e.prototype._attachExtraTrace=function(){};e.prototype._clearCancellationData=function(){};e.prototype._propagateFrom=function(e,t){};function cancellationExecute(e,t,r){var i=this;try{e(t,r,(function(e){if(typeof e!=="function"){throw new TypeError("onCancel must be a function, got: "+o.toString(e))}i._attachCancellationCallback(e)}))}catch(e){return e}}function cancellationAttachCancellationCallback(e){if(!this._isCancellable())return this;var t=this._onCancel();if(t!==undefined){if(o.isArray(t)){t.push(e)}else{this._setOnCancel([t,e])}}else{this._setOnCancel(e)}}function cancellationOnCancel(){return this._onCancelField}function cancellationSetOnCancel(e){this._onCancelField=e}function cancellationClearCancellationData(){this._cancellationParent=undefined;this._onCancelField=undefined}function cancellationPropagateFrom(e,t){if((t&1)!==0){this._cancellationParent=e;var r=e._branchesRemainingToCancel;if(r===undefined){r=0}e._branchesRemainingToCancel=r+1}if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}function bindingPropagateFrom(e,t){if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}var I=bindingPropagateFrom;function boundValueFunction(){var t=this._boundTo;if(t!==undefined){if(t instanceof e){if(t.isFulfilled()){return t.value()}else{return undefined}}}return t}function longStackTracesCaptureStackTrace(){this._trace=new CapturedTrace(this._peekContext())}function longStackTracesAttachExtraTrace(e,t){if(c(e)){var r=this._trace;if(r!==undefined){if(t)r=r._parent}if(r!==undefined){r.attachExtraTrace(e)}else if(!e.__stackCleaned__){var i=parseStackAndMessage(e);o.notEnumerableProp(e,"stack",i.message+"\n"+i.stack.join("\n"));o.notEnumerableProp(e,"__stackCleaned__",true)}}}function checkForgottenReturns(e,t,r,i,n){if(e===undefined&&t!==null&&E){if(n!==undefined&&n._returnedNonUndefined())return;if((i._bitField&65535)===0)return;if(r)r=r+" ";var s="";var o="";if(t._trace){var c=t._trace.stack.split("\n");var h=cleanStack(c);for(var p=h.length-1;p>=0;--p){var g=h[p];if(!y.test(g)){var b=g.match(v);if(b){s="at "+b[1]+":"+b[2]+":"+b[3]+" "}break}}if(h.length>0){var _=h[0];for(var p=0;p<c.length;++p){if(c[p]===_){if(p>0){o="\n"+c[p-1]}break}}}}var w="a promise was created in a "+r+"handler "+s+"but was not returned from it, "+"see http://goo.gl/rRqMUw"+o;i._warn(w,true,t)}}function deprecated(e,t){var r=e+" is deprecated and will be removed in a future version.";if(t)r+=" Use "+t+" instead.";return warn(r)}function warn(t,r,i){if(!F.warnings)return;var n=new s(t);var o;if(r){i._attachExtraTrace(n)}else if(F.longStackTraces&&(o=e._peekContext())){o.attachExtraTrace(n)}else{var c=parseStackAndMessage(n);n.stack=c.message+"\n"+c.stack.join("\n")}if(!activeFireEvent("warning",n)){formatAndLogError(n,"",true)}}function reconstructStack(e,t){for(var r=0;r<t.length-1;++r){t[r].push("From previous event:");t[r]=t[r].join("\n")}if(r<t.length){t[r]=t[r].join("\n")}return e+"\n"+t.join("\n")}function removeDuplicateOrEmptyJumps(e){for(var t=0;t<e.length;++t){if(e[t].length===0||t+1<e.length&&e[t][0]===e[t+1][0]){e.splice(t,1);t--}}}function removeCommonRoots(e){var t=e[0];for(var r=1;r<e.length;++r){var i=e[r];var n=t.length-1;var s=t[n];var o=-1;for(var c=i.length-1;c>=0;--c){if(i[c]===s){o=c;break}}for(var c=o;c>=0;--c){var h=i[c];if(t[n]===h){t.pop();n--}else{break}}t=i}}function cleanStack(e){var t=[];for(var r=0;r<e.length;++r){var i=e[r];var n=" (No stack trace)"===i||b.test(i);var s=n&&shouldIgnore(i);if(n&&!s){if(w&&i.charAt(0)!==" "){i=" "+i}t.push(i)}}return t}function stackFramesAsArray(e){var t=e.stack.replace(/\s+$/g,"").split("\n");for(var r=0;r<t.length;++r){var i=t[r];if(" (No stack trace)"===i||b.test(i)){break}}if(r>0&&e.name!="SyntaxError"){t=t.slice(r)}return t}function parseStackAndMessage(e){var t=e.stack;var r=e.toString();t=typeof t==="string"&&t.length>0?stackFramesAsArray(e):[" (No stack trace)"];return{message:r,stack:e.name=="SyntaxError"?t:cleanStack(t)}}function formatAndLogError(e,t,r){if(typeof console!=="undefined"){var i;if(o.isObject(e)){var n=e.stack;i=t+_(n,e)}else{i=t+String(e)}if(typeof x==="function"){x(i,r)}else if(typeof console.log==="function"||typeof console.log==="object"){console.log(i)}}}function fireRejectionEvent(e,t,r,i){var s=false;try{if(typeof t==="function"){s=true;if(e==="rejectionHandled"){t(i)}else{t(r,i)}}}catch(e){n.throwLater(e)}if(e==="unhandledRejection"){if(!activeFireEvent(e,r,i)&&!s){formatAndLogError(r,"Unhandled rejection ")}}else{activeFireEvent(e,i)}}function formatNonError(e){var t;if(typeof e==="function"){t="[function "+(e.name||"anonymous")+"]"}else{t=e&&typeof e.toString==="function"?e.toString():o.toString(e);var r=/\[object [a-zA-Z0-9$_]+\]/;if(r.test(t)){try{var i=JSON.stringify(e);t=i}catch(e){}}if(t.length===0){t="(empty array)"}}return"(<"+snip(t)+">, no stack trace)"}function snip(e){var t=41;if(e.length<t){return e}return e.substr(0,t-3)+"..."}function longStackTracesIsSupported(){return typeof N==="function"}var shouldIgnore=function(){return false};var P=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function parseLineInfo(e){var t=e.match(P);if(t){return{fileName:t[1],line:parseInt(t[2],10)}}}function setBounds(e,t){if(!longStackTracesIsSupported())return;var r=e.stack.split("\n");var i=t.stack.split("\n");var n=-1;var s=-1;var o;var c;for(var h=0;h<r.length;++h){var p=parseLineInfo(r[h]);if(p){o=p.fileName;n=p.line;break}}for(var h=0;h<i.length;++h){var p=parseLineInfo(i[h]);if(p){c=p.fileName;s=p.line;break}}if(n<0||s<0||!o||!c||o!==c||n>=s){return}shouldIgnore=function(e){if(g.test(e))return true;var t=parseLineInfo(e);if(t){if(t.fileName===o&&(n<=t.line&&t.line<=s)){return true}}return false}}function CapturedTrace(e){this._parent=e;this._promisesCreated=0;var t=this._length=1+(e===undefined?0:e._length);N(this,CapturedTrace);if(t>32)this.uncycle()}o.inherits(CapturedTrace,Error);t.CapturedTrace=CapturedTrace;CapturedTrace.prototype.uncycle=function(){var e=this._length;if(e<2)return;var t=[];var r={};for(var i=0,n=this;n!==undefined;++i){t.push(n);n=n._parent}e=this._length=i;for(var i=e-1;i>=0;--i){var s=t[i].stack;if(r[s]===undefined){r[s]=i}}for(var i=0;i<e;++i){var o=t[i].stack;var c=r[o];if(c!==undefined&&c!==i){if(c>0){t[c-1]._parent=undefined;t[c-1]._length=1}t[i]._parent=undefined;t[i]._length=1;var h=i>0?t[i-1]:this;if(c<e-1){h._parent=t[c+1];h._parent.uncycle();h._length=h._parent._length+1}else{h._parent=undefined;h._length=1}var p=h._length+1;for(var g=i-2;g>=0;--g){t[g]._length=p;p++}return}}};CapturedTrace.prototype.attachExtraTrace=function(e){if(e.__stackCleaned__)return;this.uncycle();var t=parseStackAndMessage(e);var r=t.message;var i=[t.stack];var n=this;while(n!==undefined){i.push(cleanStack(n.stack.split("\n")));n=n._parent}removeCommonRoots(i);removeDuplicateOrEmptyJumps(i);o.notEnumerableProp(e,"stack",reconstructStack(r,i));o.notEnumerableProp(e,"__stackCleaned__",true)};var N=function stackDetection(){var e=/^\s*at\s*/;var v8stackFormatter=function(e,t){if(typeof e==="string")return e;if(t.name!==undefined&&t.message!==undefined){return t.toString()}return formatNonError(t)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6;b=e;_=v8stackFormatter;var t=Error.captureStackTrace;shouldIgnore=function(e){return g.test(e)};return function(e,r){Error.stackTraceLimit+=6;t(e,r);Error.stackTraceLimit-=6}}var r=new Error;if(typeof r.stack==="string"&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0){b=/@/;_=v8stackFormatter;w=true;return function captureStackTrace(e){e.stack=(new Error).stack}}var i;try{throw new Error}catch(e){i="stack"in e}if(!("stack"in r)&&i&&typeof Error.stackTraceLimit==="number"){b=e;_=v8stackFormatter;return function captureStackTrace(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}}_=function(e,t){if(typeof e==="string")return e;if((typeof t==="object"||typeof t==="function")&&t.name!==undefined&&t.message!==undefined){return t.toString()}return formatNonError(t)};return null}([]);if(typeof console!=="undefined"&&typeof console.warn!=="undefined"){x=function(e){console.warn(e)};if(o.isNode&&process.stderr.isTTY){x=function(e,t){var r=t?"":"";console.warn(r+e+"\n")}}else if(!o.isNode&&typeof(new Error).stack==="string"){x=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}}}var F={warnings:k,longStackTraces:false,cancellation:false,monitoring:false};if(C)e.longStackTraces();return{longStackTraces:function(){return F.longStackTraces},warnings:function(){return F.warnings},cancellation:function(){return F.cancellation},monitoring:function(){return F.monitoring},propagateFromFunction:function(){return I},boundValueFunction:function(){return boundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:setBounds,warn:warn,deprecated:deprecated,CapturedTrace:CapturedTrace,fireDomEvent:R,fireGlobalEvent:O}}},7842:function(e){"use strict";e.exports=function(e){function returner(){return this.value}function thrower(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(t){if(t instanceof e)t.suppressUnhandledRejections();return this._then(returner,undefined,undefined,{value:t},undefined)};e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(thrower,undefined,undefined,{reason:e},undefined)};e.prototype.catchThrow=function(e){if(arguments.length<=1){return this._then(undefined,thrower,undefined,{reason:e},undefined)}else{var t=arguments[1];var handler=function(){throw t};return this.caught(e,handler)}};e.prototype.catchReturn=function(t){if(arguments.length<=1){if(t instanceof e)t.suppressUnhandledRejections();return this._then(undefined,returner,undefined,{value:t},undefined)}else{var r=arguments[1];if(r instanceof e)r.suppressUnhandledRejections();var handler=function(){return r};return this.caught(t,handler)}}}},4349:function(e){"use strict";e.exports=function(e,t){var r=e.reduce;var i=e.all;function promiseAllThis(){return i(this)}function PromiseMapSeries(e,i){return r(e,i,t,t)}e.prototype.each=function(e){return r(this,e,t,0)._then(promiseAllThis,undefined,undefined,this,undefined)};e.prototype.mapSeries=function(e){return r(this,e,t,t)};e.each=function(e,i){return r(e,i,t,0)._then(promiseAllThis,undefined,undefined,e,undefined)};e.mapSeries=PromiseMapSeries}},7799:function(e,t,r){"use strict";var i=r(5341);var n=i.freeze;var s=r(7292);var o=s.inherits;var c=s.notEnumerableProp;function subError(e,t){function SubError(r){if(!(this instanceof SubError))return new SubError(r);c(this,"message",typeof r==="string"?r:t);c(this,"name",e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{Error.call(this)}}o(SubError,Error);return SubError}var h,p;var g=subError("Warning","warning");var y=subError("CancellationError","cancellation error");var v=subError("TimeoutError","timeout error");var b=subError("AggregateError","aggregate error");try{h=TypeError;p=RangeError}catch(e){h=subError("TypeError","type error");p=subError("RangeError","range error")}var _=("join pop push shift unshift slice filter forEach some "+"every map indexOf lastIndexOf reduce reduceRight sort reverse").split(" ");for(var w=0;w<_.length;++w){if(typeof Array.prototype[_[w]]==="function"){b.prototype[_[w]]=Array.prototype[_[w]]}}i.defineProperty(b.prototype,"length",{value:0,configurable:false,writable:true,enumerable:true});b.prototype["isOperational"]=true;var x=0;b.prototype.toString=function(){var e=Array(x*4+1).join(" ");var t="\n"+e+"AggregateError of:"+"\n";x++;e=Array(x*4+1).join(" ");for(var r=0;r<this.length;++r){var i=this[r]===this?"[Circular AggregateError]":this[r]+"";var n=i.split("\n");for(var s=0;s<n.length;++s){n[s]=e+n[s]}i=n.join("\n");t+=i+"\n"}x--;return t};function OperationalError(e){if(!(this instanceof OperationalError))return new OperationalError(e);c(this,"name","OperationalError");c(this,"message",e);this.cause=e;this["isOperational"]=true;if(e instanceof Error){c(this,"message",e.message);c(this,"stack",e.stack)}else if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}o(OperationalError,Error);var S=Error["__BluebirdErrorTypes__"];if(!S){S=n({CancellationError:y,TimeoutError:v,OperationalError:OperationalError,RejectionError:OperationalError,AggregateError:b});i.defineProperty(Error,"__BluebirdErrorTypes__",{value:S,writable:false,enumerable:false,configurable:false})}e.exports={Error:Error,TypeError:h,RangeError:p,CancellationError:S.CancellationError,OperationalError:S.OperationalError,TimeoutError:S.TimeoutError,AggregateError:S.AggregateError,Warning:g}},5341:function(e){var t=function(){"use strict";return this===undefined}();if(t){e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:t,propertyIsWritable:function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!!(!r||r.writable||r.set)}}}else{var r={}.hasOwnProperty;var i={}.toString;var n={}.constructor.prototype;var ObjectKeys=function(e){var t=[];for(var i in e){if(r.call(e,i)){t.push(i)}}return t};var ObjectGetDescriptor=function(e,t){return{value:e[t]}};var ObjectDefineProperty=function(e,t,r){e[t]=r.value;return e};var ObjectFreeze=function(e){return e};var ObjectGetPrototypeOf=function(e){try{return Object(e).constructor.prototype}catch(e){return n}};var ArrayIsArray=function(e){try{return i.call(e)==="[object Array]"}catch(e){return false}};e.exports={isArray:ArrayIsArray,keys:ObjectKeys,names:ObjectKeys,defineProperty:ObjectDefineProperty,getDescriptor:ObjectGetDescriptor,freeze:ObjectFreeze,getPrototypeOf:ObjectGetPrototypeOf,isES5:t,propertyIsWritable:function(){return true}}}},4046:function(e){"use strict";e.exports=function(e,t){var r=e.map;e.prototype.filter=function(e,i){return r(this,e,i,t)};e.filter=function(e,i,n){return r(e,i,n,t)}}},3741:function(e,t,r){"use strict";e.exports=function(e,t){var i=r(7292);var n=e.CancellationError;var s=i.errorObj;function PassThroughHandlerContext(e,t,r){this.promise=e;this.type=t;this.handler=r;this.called=false;this.cancelPromise=null}PassThroughHandlerContext.prototype.isFinallyHandler=function(){return this.type===0};function FinallyHandlerCancelReaction(e){this.finallyHandler=e}FinallyHandlerCancelReaction.prototype._resultCancelled=function(){checkCancel(this.finallyHandler)};function checkCancel(e,t){if(e.cancelPromise!=null){if(arguments.length>1){e.cancelPromise._reject(t)}else{e.cancelPromise._cancel()}e.cancelPromise=null;return true}return false}function succeed(){return finallyHandler.call(this,this.promise._target()._settledValue())}function fail(e){if(checkCancel(this,e))return;s.e=e;return s}function finallyHandler(r){var i=this.promise;var o=this.handler;if(!this.called){this.called=true;var c=this.isFinallyHandler()?o.call(i._boundValue()):o.call(i._boundValue(),r);if(c!==undefined){i._setReturnedNonUndefined();var h=t(c,i);if(h instanceof e){if(this.cancelPromise!=null){if(h._isCancelled()){var p=new n("late cancellation observer");i._attachExtraTrace(p);s.e=p;return s}else if(h.isPending()){h._attachCancellationCallback(new FinallyHandlerCancelReaction(this))}}return h._then(succeed,fail,undefined,this,undefined)}}}if(i.isRejected()){checkCancel(this);s.e=r;return s}else{checkCancel(this);return r}}e.prototype._passThrough=function(e,t,r,i){if(typeof e!=="function")return this.then();return this._then(r,i,undefined,new PassThroughHandlerContext(this,t,e),undefined)};e.prototype.lastly=e.prototype["finally"]=function(e){return this._passThrough(e,0,finallyHandler,finallyHandler)};e.prototype.tap=function(e){return this._passThrough(e,1,finallyHandler)};return PassThroughHandlerContext}},5546:function(e,t,r){"use strict";e.exports=function(e,t,i,n,s,o){var c=r(7799);var h=c.TypeError;var p=r(7292);var g=p.errorObj;var y=p.tryCatch;var v=[];function promiseFromYieldHandler(t,r,i){for(var s=0;s<r.length;++s){i._pushContext();var o=y(r[s])(t);i._popContext();if(o===g){i._pushContext();var c=e.reject(g.e);i._popContext();return c}var h=n(o,i);if(h instanceof e)return h}return null}function PromiseSpawn(t,r,n,s){if(o.cancellation()){var c=new e(i);var h=this._finallyPromise=new e(i);this._promise=c.lastly((function(){return h}));c._captureStackTrace();c._setOnCancel(this)}else{var p=this._promise=new e(i);p._captureStackTrace()}this._stack=s;this._generatorFunction=t;this._receiver=r;this._generator=undefined;this._yieldHandlers=typeof n==="function"?[n].concat(v):v;this._yieldedPromise=null;this._cancellationPhase=false}p.inherits(PromiseSpawn,s);PromiseSpawn.prototype._isResolved=function(){return this._promise===null};PromiseSpawn.prototype._cleanup=function(){this._promise=this._generator=null;if(o.cancellation()&&this._finallyPromise!==null){this._finallyPromise._fulfill();this._finallyPromise=null}};PromiseSpawn.prototype._promiseCancelled=function(){if(this._isResolved())return;var t=typeof this._generator["return"]!=="undefined";var r;if(!t){var i=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=i;this._promise._attachExtraTrace(i);this._promise._pushContext();r=y(this._generator["throw"]).call(this._generator,i);this._promise._popContext()}else{this._promise._pushContext();r=y(this._generator["return"]).call(this._generator,undefined);this._promise._popContext()}this._cancellationPhase=true;this._yieldedPromise=null;this._continue(r)};PromiseSpawn.prototype._promiseFulfilled=function(e){this._yieldedPromise=null;this._promise._pushContext();var t=y(this._generator.next).call(this._generator,e);this._promise._popContext();this._continue(t)};PromiseSpawn.prototype._promiseRejected=function(e){this._yieldedPromise=null;this._promise._attachExtraTrace(e);this._promise._pushContext();var t=y(this._generator["throw"]).call(this._generator,e);this._promise._popContext();this._continue(t)};PromiseSpawn.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null;t.cancel()}};PromiseSpawn.prototype.promise=function(){return this._promise};PromiseSpawn.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver);this._receiver=this._generatorFunction=undefined;this._promiseFulfilled(undefined)};PromiseSpawn.prototype._continue=function(t){var r=this._promise;if(t===g){this._cleanup();if(this._cancellationPhase){return r.cancel()}else{return r._rejectCallback(t.e,false)}}var i=t.value;if(t.done===true){this._cleanup();if(this._cancellationPhase){return r.cancel()}else{return r._resolveCallback(i)}}else{var s=n(i,this._promise);if(!(s instanceof e)){s=promiseFromYieldHandler(s,this._yieldHandlers,this._promise);if(s===null){this._promiseRejected(new h("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",i)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));return}}s=s._target();var o=s._bitField;if((o&50397184)===0){this._yieldedPromise=s;s._proxy(this,null)}else if((o&33554432)!==0){e._async.invoke(this._promiseFulfilled,this,s._value())}else if((o&16777216)!==0){e._async.invoke(this._promiseRejected,this,s._reason())}else{this._promiseCancelled()}}};e.coroutine=function(e,t){if(typeof e!=="function"){throw new h("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n")}var r=Object(t).yieldHandler;var i=PromiseSpawn;var n=(new Error).stack;return function(){var t=e.apply(this,arguments);var s=new i(undefined,undefined,r,n);var o=s.promise();s._generator=t;s._promiseFulfilled(undefined);return o}};e.coroutine.addYieldHandler=function(e){if(typeof e!=="function"){throw new h("expecting a function but got "+p.classString(e))}v.push(e)};e.spawn=function(r){o.deprecated("Promise.spawn()","Promise.coroutine()");if(typeof r!=="function"){return t("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n")}var i=new PromiseSpawn(r,this);var n=i.promise();i._run(e.spawn);return n}}},9352:function(e,t,r){"use strict";e.exports=function(e,t,i,n,s,o){var c=r(7292);var h=c.canEvaluate;var p=c.tryCatch;var g=c.errorObj;var y;if(true){if(h){var thenCallback=function(e){return new Function("value","holder"," \n 'use strict'; \n holder.pIndex = value; \n holder.checkFulfillment(this); \n ".replace(/Index/g,e))};var promiseSetter=function(e){return new Function("promise","holder"," \n 'use strict'; \n holder.pIndex = promise; \n ".replace(/Index/g,e))};var generateHolderClass=function(t){var r=new Array(t);for(var i=0;i<r.length;++i){r[i]="this.p"+(i+1)}var n=r.join(" = ")+" = null;";var o="var promise;\n"+r.map((function(e){return" \n promise = "+e+"; \n if (promise instanceof Promise) { \n promise.cancel(); \n } \n "})).join("\n");var c=r.join(", ");var h="Holder$"+t;var y="return function(tryCatch, errorObj, Promise, async) { \n 'use strict'; \n function [TheName](fn) { \n [TheProperties] \n this.fn = fn; \n this.asyncNeeded = true; \n this.now = 0; \n } \n \n [TheName].prototype._callFunction = function(promise) { \n promise._pushContext(); \n var ret = tryCatch(this.fn)([ThePassedArguments]); \n promise._popContext(); \n if (ret === errorObj) { \n promise._rejectCallback(ret.e, false); \n } else { \n promise._resolveCallback(ret); \n } \n }; \n \n [TheName].prototype.checkFulfillment = function(promise) { \n var now = ++this.now; \n if (now === [TheTotal]) { \n if (this.asyncNeeded) { \n async.invoke(this._callFunction, this, promise); \n } else { \n this._callFunction(promise); \n } \n \n } \n }; \n \n [TheName].prototype._resultCancelled = function() { \n [CancellationCode] \n }; \n \n return [TheName]; \n }(tryCatch, errorObj, Promise, async); \n ";y=y.replace(/\[TheName\]/g,h).replace(/\[TheTotal\]/g,t).replace(/\[ThePassedArguments\]/g,c).replace(/\[TheProperties\]/g,n).replace(/\[CancellationCode\]/g,o);return new Function("tryCatch","errorObj","Promise","async",y)(p,g,e,s)};var v=[];var b=[];var _=[];for(var w=0;w<8;++w){v.push(generateHolderClass(w+1));b.push(thenCallback(w+1));_.push(promiseSetter(w+1))}y=function(e){this._reject(e)}}}e.join=function(){var r=arguments.length-1;var s;if(r>0&&typeof arguments[r]==="function"){s=arguments[r];if(true){if(r<=8&&h){var p=new e(n);p._captureStackTrace();var g=v[r-1];var w=new g(s);var x=b;for(var S=0;S<r;++S){var k=i(arguments[S],p);if(k instanceof e){k=k._target();var C=k._bitField;if((C&50397184)===0){k._then(x[S],y,undefined,p,w);_[S](k,w);w.asyncNeeded=false}else if((C&33554432)!==0){x[S].call(p,k._value(),w)}else if((C&16777216)!==0){p._reject(k._reason())}else{p._cancel()}}else{x[S].call(p,k,w)}}if(!p._isFateSealed()){if(w.asyncNeeded){var E=o();if(E!==null){w.fn=c.domainBind(E,w.fn)}}p._setAsyncGuaranteed();p._setOnCancel(w)}return p}}}var R=arguments.length;var O=new Array(R);for(var A=0;A<R;++A){O[A]=arguments[A]}if(s)O.pop();var p=new t(O).promise();return s!==undefined?p.spread(s):p}}},7192:function(e,t,r){"use strict";e.exports=function(e,t,i,n,s,o){var c=e._getDomain;var h=r(7292);var p=h.tryCatch;var g=h.errorObj;var y=e._async;function MappingPromiseArray(e,t,r,i){this.constructor$(e);this._promise._captureStackTrace();var n=c();this._callback=n===null?t:h.domainBind(n,t);this._preservedValues=i===s?new Array(this.length()):null;this._limit=r;this._inFlight=0;this._queue=[];y.invoke(this._asyncInit,this,undefined)}h.inherits(MappingPromiseArray,t);MappingPromiseArray.prototype._asyncInit=function(){this._init$(undefined,-2)};MappingPromiseArray.prototype._init=function(){};MappingPromiseArray.prototype._promiseFulfilled=function(t,r){var i=this._values;var s=this.length();var c=this._preservedValues;var h=this._limit;if(r<0){r=r*-1-1;i[r]=t;if(h>=1){this._inFlight--;this._drainQueue();if(this._isResolved())return true}}else{if(h>=1&&this._inFlight>=h){i[r]=t;this._queue.push(r);return false}if(c!==null)c[r]=t;var y=this._promise;var v=this._callback;var b=y._boundValue();y._pushContext();var _=p(v).call(b,t,r,s);var w=y._popContext();o.checkForgottenReturns(_,w,c!==null?"Promise.filter":"Promise.map",y);if(_===g){this._reject(_.e);return true}var x=n(_,this._promise);if(x instanceof e){x=x._target();var S=x._bitField;if((S&50397184)===0){if(h>=1)this._inFlight++;i[r]=x;x._proxy(this,(r+1)*-1);return false}else if((S&33554432)!==0){_=x._value()}else if((S&16777216)!==0){this._reject(x._reason());return true}else{this._cancel();return true}}i[r]=_}var k=++this._totalResolved;if(k>=s){if(c!==null){this._filter(i,c)}else{this._resolve(i)}return true}return false};MappingPromiseArray.prototype._drainQueue=function(){var e=this._queue;var t=this._limit;var r=this._values;while(e.length>0&&this._inFlight<t){if(this._isResolved())return;var i=e.pop();this._promiseFulfilled(r[i],i)}};MappingPromiseArray.prototype._filter=function(e,t){var r=t.length;var i=new Array(r);var n=0;for(var s=0;s<r;++s){if(e[s])i[n++]=t[s]}i.length=n;this._resolve(i)};MappingPromiseArray.prototype.preservedValues=function(){return this._preservedValues};function map(t,r,n,s){if(typeof r!=="function"){return i("expecting a function but got "+h.classString(r))}var o=0;if(n!==undefined){if(typeof n==="object"&&n!==null){if(typeof n.concurrency!=="number"){return e.reject(new TypeError("'concurrency' must be a number but it is "+h.classString(n.concurrency)))}o=n.concurrency}else{return e.reject(new TypeError("options argument must be an object but it is "+h.classString(n)))}}o=typeof o==="number"&&isFinite(o)&&o>=1?o:0;return new MappingPromiseArray(t,r,o,s).promise()}e.prototype.map=function(e,t){return map(this,e,t,null)};e.map=function(e,t,r,i){return map(e,t,r,i)}}},2509:function(e,t,r){"use strict";e.exports=function(e,t,i,n,s){var o=r(7292);var c=o.tryCatch;e.method=function(r){if(typeof r!=="function"){throw new e.TypeError("expecting a function but got "+o.classString(r))}return function(){var i=new e(t);i._captureStackTrace();i._pushContext();var n=c(r).apply(this,arguments);var o=i._popContext();s.checkForgottenReturns(n,o,"Promise.method",i);i._resolveFromSyncValue(n);return i}};e.attempt=e["try"]=function(r){if(typeof r!=="function"){return n("expecting a function but got "+o.classString(r))}var i=new e(t);i._captureStackTrace();i._pushContext();var h;if(arguments.length>1){s.deprecated("calling Promise.try with more than 1 argument");var p=arguments[1];var g=arguments[2];h=o.isArray(p)?c(r).apply(g,p):c(r).call(g,p)}else{h=c(r)()}var y=i._popContext();s.checkForgottenReturns(h,y,"Promise.try",i);i._resolveFromSyncValue(h);return i};e.prototype._resolveFromSyncValue=function(e){if(e===o.errorObj){this._rejectCallback(e.e,false)}else{this._resolveCallback(e,true)}}}},96:function(e,t,r){"use strict";var i=r(7292);var n=i.maybeWrapAsError;var s=r(7799);var o=s.OperationalError;var c=r(5341);function isUntypedError(e){return e instanceof Error&&c.getPrototypeOf(e)===Error.prototype}var h=/^(?:name|message|stack|cause)$/;function wrapAsOperationalError(e){var t;if(isUntypedError(e)){t=new o(e);t.name=e.name;t.message=e.message;t.stack=e.stack;var r=c.keys(e);for(var n=0;n<r.length;++n){var s=r[n];if(!h.test(s)){t[s]=e[s]}}return t}i.markAsOriginatingFromRejection(e);return e}function nodebackForPromise(e,t){return function(r,i){if(e===null)return;if(r){var s=wrapAsOperationalError(n(r));e._attachExtraTrace(s);e._reject(s)}else if(!t){e._fulfill(i)}else{var o=arguments.length;var c=new Array(Math.max(o-1,0));for(var h=1;h<o;++h){c[h-1]=arguments[h]}e._fulfill(c)}e=null}}e.exports=nodebackForPromise},2827:function(e,t,r){"use strict";e.exports=function(e){var t=r(7292);var i=e._async;var n=t.tryCatch;var s=t.errorObj;function spreadAdapter(e,r){var o=this;if(!t.isArray(e))return successAdapter.call(o,e,r);var c=n(r).apply(o._boundValue(),[null].concat(e));if(c===s){i.throwLater(c.e)}}function successAdapter(e,t){var r=this;var o=r._boundValue();var c=e===undefined?n(t).call(o,null):n(t).call(o,null,e);if(c===s){i.throwLater(c.e)}}function errorAdapter(e,t){var r=this;if(!e){var o=new Error(e+"");o.cause=e;e=o}var c=n(t).call(r._boundValue(),e);if(c===s){i.throwLater(c.e)}}e.prototype.asCallback=e.prototype.nodeify=function(e,t){if(typeof e=="function"){var r=successAdapter;if(t!==undefined&&Object(t).spread){r=spreadAdapter}this._then(r,errorAdapter,undefined,this,e)}return this}}},4447:function(e,t,r){"use strict";e.exports=function(){var makeSelfResolutionError=function(){return new p("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")};var reflectHandler=function(){return new Promise.PromiseInspection(this._target())};var apiRejection=function(e){return Promise.reject(new p(e))};function Proxyable(){}var t={};var i=r(7292);var n;if(i.isNode){n=function(){var e=process.domain;if(e===undefined)e=null;return e}}else{n=function(){return null}}i.notEnumerableProp(Promise,"_getDomain",n);var s=r(5341);var o=r(7718);var c=new o;s.defineProperty(Promise,"_async",{value:c});var h=r(7799);var p=Promise.TypeError=h.TypeError;Promise.RangeError=h.RangeError;var g=Promise.CancellationError=h.CancellationError;Promise.TimeoutError=h.TimeoutError;Promise.OperationalError=h.OperationalError;Promise.RejectionError=h.OperationalError;Promise.AggregateError=h.AggregateError;var INTERNAL=function(){};var y={};var v={};var b=r(6594)(Promise,INTERNAL);var _=r(7457)(Promise,INTERNAL,b,apiRejection,Proxyable);var w=r(9501)(Promise);var x=w.create;var S=r(3984)(Promise,w);var k=S.CapturedTrace;var C=r(3741)(Promise,b);var E=r(2142)(v);var R=r(96);var O=i.errorObj;var A=i.tryCatch;function check(e,t){if(typeof t!=="function"){throw new p("expecting a function but got "+i.classString(t))}if(e.constructor!==Promise){throw new p("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}}function Promise(e){this._bitField=0;this._fulfillmentHandler0=undefined;this._rejectionHandler0=undefined;this._promise0=undefined;this._receiver0=undefined;if(e!==INTERNAL){check(this,e);this._resolveFromExecutor(e)}this._promiseCreated();this._fireEvent("promiseCreated",this)}Promise.prototype.toString=function(){return"[object Promise]"};Promise.prototype.caught=Promise.prototype["catch"]=function(e){var t=arguments.length;if(t>1){var r=new Array(t-1),n=0,s;for(s=0;s<t-1;++s){var o=arguments[s];if(i.isObject(o)){r[n++]=o}else{return apiRejection("expecting an object but got "+"A catch statement predicate "+i.classString(o))}}r.length=n;e=arguments[s];return this.then(undefined,E(r,e,this))}return this.then(undefined,e)};Promise.prototype.reflect=function(){return this._then(reflectHandler,reflectHandler,undefined,this,undefined)};Promise.prototype.then=function(e,t){if(S.warnings()&&arguments.length>0&&typeof e!=="function"&&typeof t!=="function"){var r=".then() only accepts functions but was passed: "+i.classString(e);if(arguments.length>1){r+=", "+i.classString(t)}this._warn(r)}return this._then(e,t,undefined,undefined,undefined)};Promise.prototype.done=function(e,t){var r=this._then(e,t,undefined,undefined,undefined);r._setIsFinal()};Promise.prototype.spread=function(e){if(typeof e!=="function"){return apiRejection("expecting a function but got "+i.classString(e))}return this.all()._then(e,undefined,undefined,y,undefined)};Promise.prototype.toJSON=function(){var e={isFulfilled:false,isRejected:false,fulfillmentValue:undefined,rejectionReason:undefined};if(this.isFulfilled()){e.fulfillmentValue=this.value();e.isFulfilled=true}else if(this.isRejected()){e.rejectionReason=this.reason();e.isRejected=true}return e};Promise.prototype.all=function(){if(arguments.length>0){this._warn(".all() was passed arguments but it does not take any")}return new _(this).promise()};Promise.prototype.error=function(e){return this.caught(i.originatesFromRejection,e)};Promise.getNewLibraryCopy=e.exports;Promise.is=function(e){return e instanceof Promise};Promise.fromNode=Promise.fromCallback=function(e){var t=new Promise(INTERNAL);t._captureStackTrace();var r=arguments.length>1?!!Object(arguments[1]).multiArgs:false;var i=A(e)(R(t,r));if(i===O){t._rejectCallback(i.e,true)}if(!t._isFateSealed())t._setAsyncGuaranteed();return t};Promise.all=function(e){return new _(e).promise()};Promise.cast=function(e){var t=b(e);if(!(t instanceof Promise)){t=new Promise(INTERNAL);t._captureStackTrace();t._setFulfilled();t._rejectionHandler0=e}return t};Promise.resolve=Promise.fulfilled=Promise.cast;Promise.reject=Promise.rejected=function(e){var t=new Promise(INTERNAL);t._captureStackTrace();t._rejectCallback(e,true);return t};Promise.setScheduler=function(e){if(typeof e!=="function"){throw new p("expecting a function but got "+i.classString(e))}return c.setScheduler(e)};Promise.prototype._then=function(e,t,r,s,o){var h=o!==undefined;var p=h?o:new Promise(INTERNAL);var y=this._target();var v=y._bitField;if(!h){p._propagateFrom(this,3);p._captureStackTrace();if(s===undefined&&(this._bitField&2097152)!==0){if(!((v&50397184)===0)){s=this._boundValue()}else{s=y===this?undefined:this._boundTo}}this._fireEvent("promiseChained",this,p)}var b=n();if(!((v&50397184)===0)){var _,w,x=y._settlePromiseCtx;if((v&33554432)!==0){w=y._rejectionHandler0;_=e}else if((v&16777216)!==0){w=y._fulfillmentHandler0;_=t;y._unsetRejectionIsUnhandled()}else{x=y._settlePromiseLateCancellationObserver;w=new g("late cancellation observer");y._attachExtraTrace(w);_=t}c.invoke(x,y,{handler:b===null?_:typeof _==="function"&&i.domainBind(b,_),promise:p,receiver:s,value:w})}else{y._addCallbacks(e,t,p,s,b)}return p};Promise.prototype._length=function(){return this._bitField&65535};Promise.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0};Promise.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864};Promise.prototype._setLength=function(e){this._bitField=this._bitField&-65536|e&65535};Promise.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432;this._fireEvent("promiseFulfilled",this)};Promise.prototype._setRejected=function(){this._bitField=this._bitField|16777216;this._fireEvent("promiseRejected",this)};Promise.prototype._setFollowing=function(){this._bitField=this._bitField|67108864;this._fireEvent("promiseResolved",this)};Promise.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304};Promise.prototype._isFinal=function(){return(this._bitField&4194304)>0};Promise.prototype._unsetCancelled=function(){this._bitField=this._bitField&~65536};Promise.prototype._setCancelled=function(){this._bitField=this._bitField|65536;this._fireEvent("promiseCancelled",this)};Promise.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608};Promise.prototype._setAsyncGuaranteed=function(){if(c.hasCustomScheduler())return;this._bitField=this._bitField|134217728};Promise.prototype._receiverAt=function(e){var r=e===0?this._receiver0:this[e*4-4+3];if(r===t){return undefined}else if(r===undefined&&this._isBound()){return this._boundValue()}return r};Promise.prototype._promiseAt=function(e){return this[e*4-4+2]};Promise.prototype._fulfillmentHandlerAt=function(e){return this[e*4-4+0]};Promise.prototype._rejectionHandlerAt=function(e){return this[e*4-4+1]};Promise.prototype._boundValue=function(){};Promise.prototype._migrateCallback0=function(e){var r=e._bitField;var i=e._fulfillmentHandler0;var n=e._rejectionHandler0;var s=e._promise0;var o=e._receiverAt(0);if(o===undefined)o=t;this._addCallbacks(i,n,s,o,null)};Promise.prototype._migrateCallbackAt=function(e,r){var i=e._fulfillmentHandlerAt(r);var n=e._rejectionHandlerAt(r);var s=e._promiseAt(r);var o=e._receiverAt(r);if(o===undefined)o=t;this._addCallbacks(i,n,s,o,null)};Promise.prototype._addCallbacks=function(e,t,r,n,s){var o=this._length();if(o>=65535-4){o=0;this._setLength(0)}if(o===0){this._promise0=r;this._receiver0=n;if(typeof e==="function"){this._fulfillmentHandler0=s===null?e:i.domainBind(s,e)}if(typeof t==="function"){this._rejectionHandler0=s===null?t:i.domainBind(s,t)}}else{var c=o*4-4;this[c+2]=r;this[c+3]=n;if(typeof e==="function"){this[c+0]=s===null?e:i.domainBind(s,e)}if(typeof t==="function"){this[c+1]=s===null?t:i.domainBind(s,t)}}this._setLength(o+1);return o};Promise.prototype._proxy=function(e,t){this._addCallbacks(undefined,undefined,t,e,null)};Promise.prototype._resolveCallback=function(e,t){if((this._bitField&117506048)!==0)return;if(e===this)return this._rejectCallback(makeSelfResolutionError(),false);var r=b(e,this);if(!(r instanceof Promise))return this._fulfill(e);if(t)this._propagateFrom(r,2);var i=r._target();if(i===this){this._reject(makeSelfResolutionError());return}var n=i._bitField;if((n&50397184)===0){var s=this._length();if(s>0)i._migrateCallback0(this);for(var o=1;o<s;++o){i._migrateCallbackAt(this,o)}this._setFollowing();this._setLength(0);this._setFollowee(i)}else if((n&33554432)!==0){this._fulfill(i._value())}else if((n&16777216)!==0){this._reject(i._reason())}else{var c=new g("late cancellation observer");i._attachExtraTrace(c);this._reject(c)}};Promise.prototype._rejectCallback=function(e,t,r){var n=i.ensureErrorObject(e);var s=n===e;if(!s&&!r&&S.warnings()){var o="a promise was rejected with a non-error: "+i.classString(e);this._warn(o,true)}this._attachExtraTrace(n,t?s:false);this._reject(e)};Promise.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace();this._pushContext();var r=true;var i=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,r)}));r=false;this._popContext();if(i!==undefined){t._rejectCallback(i,true)}};Promise.prototype._settlePromiseFromHandler=function(e,t,r,n){var s=n._bitField;if((s&65536)!==0)return;n._pushContext();var o;if(t===y){if(!r||typeof r.length!=="number"){o=O;o.e=new p("cannot .spread() a non-array: "+i.classString(r))}else{o=A(e).apply(this._boundValue(),r)}}else{o=A(e).call(t,r)}var c=n._popContext();s=n._bitField;if((s&65536)!==0)return;if(o===v){n._reject(r)}else if(o===O){n._rejectCallback(o.e,false)}else{S.checkForgottenReturns(o,c,"",n,this);n._resolveCallback(o)}};Promise.prototype._target=function(){var e=this;while(e._isFollowing())e=e._followee();return e};Promise.prototype._followee=function(){return this._rejectionHandler0};Promise.prototype._setFollowee=function(e){this._rejectionHandler0=e};Promise.prototype._settlePromise=function(e,t,r,i){var n=e instanceof Promise;var s=this._bitField;var o=(s&134217728)!==0;if((s&65536)!==0){if(n)e._invokeInternalOnCancel();if(r instanceof C&&r.isFinallyHandler()){r.cancelPromise=e;if(A(t).call(r,i)===O){e._reject(O.e)}}else if(t===reflectHandler){e._fulfill(reflectHandler.call(r))}else if(r instanceof Proxyable){r._promiseCancelled(e)}else if(n||e instanceof _){e._cancel()}else{r.cancel()}}else if(typeof t==="function"){if(!n){t.call(r,i,e)}else{if(o)e._setAsyncGuaranteed();this._settlePromiseFromHandler(t,r,i,e)}}else if(r instanceof Proxyable){if(!r._isResolved()){if((s&33554432)!==0){r._promiseFulfilled(i,e)}else{r._promiseRejected(i,e)}}}else if(n){if(o)e._setAsyncGuaranteed();if((s&33554432)!==0){e._fulfill(i)}else{e._reject(i)}}};Promise.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler;var r=e.promise;var i=e.receiver;var n=e.value;if(typeof t==="function"){if(!(r instanceof Promise)){t.call(i,n,r)}else{this._settlePromiseFromHandler(t,i,n,r)}}else if(r instanceof Promise){r._reject(n)}};Promise.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)};Promise.prototype._settlePromise0=function(e,t,r){var i=this._promise0;var n=this._receiverAt(0);this._promise0=undefined;this._receiver0=undefined;this._settlePromise(i,e,n,t)};Promise.prototype._clearCallbackDataAtIndex=function(e){var t=e*4-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=undefined};Promise.prototype._fulfill=function(e){var t=this._bitField;if((t&117506048)>>>16)return;if(e===this){var r=makeSelfResolutionError();this._attachExtraTrace(r);return this._reject(r)}this._setFulfilled();this._rejectionHandler0=e;if((t&65535)>0){if((t&134217728)!==0){this._settlePromises()}else{c.settlePromises(this)}}};Promise.prototype._reject=function(e){var t=this._bitField;if((t&117506048)>>>16)return;this._setRejected();this._fulfillmentHandler0=e;if(this._isFinal()){return c.fatalError(e,i.isNode)}if((t&65535)>0){c.settlePromises(this)}else{this._ensurePossibleRejectionHandled()}};Promise.prototype._fulfillPromises=function(e,t){for(var r=1;r<e;r++){var i=this._fulfillmentHandlerAt(r);var n=this._promiseAt(r);var s=this._receiverAt(r);this._clearCallbackDataAtIndex(r);this._settlePromise(n,i,s,t)}};Promise.prototype._rejectPromises=function(e,t){for(var r=1;r<e;r++){var i=this._rejectionHandlerAt(r);var n=this._promiseAt(r);var s=this._receiverAt(r);this._clearCallbackDataAtIndex(r);this._settlePromise(n,i,s,t)}};Promise.prototype._settlePromises=function(){var e=this._bitField;var t=e&65535;if(t>0){if((e&16842752)!==0){var r=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,r,e);this._rejectPromises(t,r)}else{var i=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,i,e);this._fulfillPromises(t,i)}this._setLength(0)}this._clearCancellationData()};Promise.prototype._settledValue=function(){var e=this._bitField;if((e&33554432)!==0){return this._rejectionHandler0}else if((e&16777216)!==0){return this._fulfillmentHandler0}};function deferResolve(e){this.promise._resolveCallback(e)}function deferReject(e){this.promise._rejectCallback(e,false)}Promise.defer=Promise.pending=function(){S.deprecated("Promise.defer","new Promise");var e=new Promise(INTERNAL);return{promise:e,resolve:deferResolve,reject:deferReject}};i.notEnumerableProp(Promise,"_makeSelfResolutionError",makeSelfResolutionError);r(2509)(Promise,INTERNAL,b,apiRejection,S);r(5971)(Promise,INTERNAL,b,S);r(2782)(Promise,_,apiRejection,S);r(7842)(Promise);r(8816)(Promise);r(9352)(Promise,_,b,INTERNAL,c,n);Promise.Promise=Promise;Promise.version="3.4.7";r(7192)(Promise,_,apiRejection,b,INTERNAL,S);r(6991)(Promise);r(4470)(Promise,apiRejection,b,x,INTERNAL,S);r(8178)(Promise,INTERNAL,S);r(5546)(Promise,apiRejection,INTERNAL,b,Proxyable,S);r(2827)(Promise);r(5086)(Promise,INTERNAL);r(3700)(Promise,_,b,apiRejection);r(833)(Promise,INTERNAL,b,apiRejection);r(1286)(Promise,_,apiRejection,b,INTERNAL,S);r(8867)(Promise,_,S);r(6164)(Promise,_,apiRejection);r(4046)(Promise,INTERNAL);r(4349)(Promise,INTERNAL);r(3016)(Promise);i.toFastProperties(Promise);i.toFastProperties(Promise.prototype);function fillTypes(e){var t=new Promise(INTERNAL);t._fulfillmentHandler0=e;t._rejectionHandler0=e;t._promise0=e;t._receiver0=e}fillTypes({a:1});fillTypes({b:2});fillTypes({c:3});fillTypes(1);fillTypes((function(){}));fillTypes(undefined);fillTypes(false);fillTypes(new Promise(INTERNAL));S.setBounds(o.firstLineError,i.lastLineError);return Promise}},7457:function(e,t,r){"use strict";e.exports=function(e,t,i,n,s){var o=r(7292);var c=o.isArray;function toResolutionValue(e){switch(e){case-2:return[];case-3:return{}}}function PromiseArray(r){var i=this._promise=new e(t);if(r instanceof e){i._propagateFrom(r,3)}i._setOnCancel(this);this._values=r;this._length=0;this._totalResolved=0;this._init(undefined,-2)}o.inherits(PromiseArray,s);PromiseArray.prototype.length=function(){return this._length};PromiseArray.prototype.promise=function(){return this._promise};PromiseArray.prototype._init=function init(t,r){var s=i(this._values,this._promise);if(s instanceof e){s=s._target();var c=s._bitField;this._values=s;if((c&50397184)===0){this._promise._setAsyncGuaranteed();return s._then(init,this._reject,undefined,this,r)}else if((c&33554432)!==0){s=s._value()}else if((c&16777216)!==0){return this._reject(s._reason())}else{return this._cancel()}}s=o.asArray(s);if(s===null){var h=n("expecting an array or an iterable object but got "+o.classString(s)).reason();this._promise._rejectCallback(h,false);return}if(s.length===0){if(r===-5){this._resolveEmptyArray()}else{this._resolve(toResolutionValue(r))}return}this._iterate(s)};PromiseArray.prototype._iterate=function(t){var r=this.getActualLength(t.length);this._length=r;this._values=this.shouldCopyValues()?new Array(r):this._values;var n=this._promise;var s=false;var o=null;for(var c=0;c<r;++c){var h=i(t[c],n);if(h instanceof e){h=h._target();o=h._bitField}else{o=null}if(s){if(o!==null){h.suppressUnhandledRejections()}}else if(o!==null){if((o&50397184)===0){h._proxy(this,c);this._values[c]=h}else if((o&33554432)!==0){s=this._promiseFulfilled(h._value(),c)}else if((o&16777216)!==0){s=this._promiseRejected(h._reason(),c)}else{s=this._promiseCancelled(c)}}else{s=this._promiseFulfilled(h,c)}}if(!s)n._setAsyncGuaranteed()};PromiseArray.prototype._isResolved=function(){return this._values===null};PromiseArray.prototype._resolve=function(e){this._values=null;this._promise._fulfill(e)};PromiseArray.prototype._cancel=function(){if(this._isResolved()||!this._promise._isCancellable())return;this._values=null;this._promise._cancel()};PromiseArray.prototype._reject=function(e){this._values=null;this._promise._rejectCallback(e,false)};PromiseArray.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var r=++this._totalResolved;if(r>=this._length){this._resolve(this._values);return true}return false};PromiseArray.prototype._promiseCancelled=function(){this._cancel();return true};PromiseArray.prototype._promiseRejected=function(e){this._totalResolved++;this._reject(e);return true};PromiseArray.prototype._resultCancelled=function(){if(this._isResolved())return;var t=this._values;this._cancel();if(t instanceof e){t.cancel()}else{for(var r=0;r<t.length;++r){if(t[r]instanceof e){t[r].cancel()}}}};PromiseArray.prototype.shouldCopyValues=function(){return true};PromiseArray.prototype.getActualLength=function(e){return e};return PromiseArray}},5086:function(e,t,r){"use strict";e.exports=function(e,t){var i={};var n=r(7292);var s=r(96);var o=n.withAppended;var c=n.maybeWrapAsError;var h=n.canEvaluate;var p=r(7799).TypeError;var g="Async";var y={__isPromisified__:true};var v=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"];var b=new RegExp("^(?:"+v.join("|")+")$");var defaultFilter=function(e){return n.isIdentifier(e)&&e.charAt(0)!=="_"&&e!=="constructor"};function propsFilter(e){return!b.test(e)}function isPromisified(e){try{return e.__isPromisified__===true}catch(e){return false}}function hasPromisified(e,t,r){var i=n.getDataPropertyOrDefault(e,t+r,y);return i?isPromisified(i):false}function checkValid(e,t,r){for(var i=0;i<e.length;i+=2){var n=e[i];if(r.test(n)){var s=n.replace(r,"");for(var o=0;o<e.length;o+=2){if(e[o]===s){throw new p("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}}}}function promisifiableMethods(e,t,r,i){var s=n.inheritedDataKeys(e);var o=[];for(var c=0;c<s.length;++c){var h=s[c];var p=e[h];var g=i===defaultFilter?true:defaultFilter(h,p,e);if(typeof p==="function"&&!isPromisified(p)&&!hasPromisified(e,h,t)&&i(h,p,e,g)){o.push(h,p)}}checkValid(o,t,r);return o}var escapeIdentRegex=function(e){return e.replace(/([$])/,"\\$")};var _;if(true){var switchCaseArgumentOrder=function(e){var t=[e];var r=Math.max(0,e-1-3);for(var i=e-1;i>=r;--i){t.push(i)}for(var i=e+1;i<=3;++i){t.push(i)}return t};var argumentSequence=function(e){return n.filledRange(e,"_arg","")};var parameterDeclaration=function(e){return n.filledRange(Math.max(e,3),"_arg","")};var parameterCount=function(e){if(typeof e.length==="number"){return Math.max(Math.min(e.length,1023+1),0)}return 0};_=function(r,h,p,g,y,v){var b=Math.max(0,parameterCount(g)-1);var _=switchCaseArgumentOrder(b);var w=typeof r==="string"||h===i;function generateCallForArgumentCount(e){var t=argumentSequence(e).join(", ");var r=e>0?", ":"";var i;if(w){i="ret = callback.call(this, {{args}}, nodeback); break;\n"}else{i=h===undefined?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n"}return i.replace("{{args}}",t).replace(", ",r)}function generateArgumentSwitchCase(){var e="";for(var t=0;t<_.length;++t){e+="case "+_[t]+":"+generateCallForArgumentCount(_[t])}e+=" \n default: \n var args = new Array(len + 1); \n var i = 0; \n for (var i = 0; i < len; ++i) { \n args[i] = arguments[i]; \n } \n args[i] = nodeback; \n [CodeForCall] \n break; \n ".replace("[CodeForCall]",w?"ret = callback.apply(this, args);\n":"ret = callback.apply(receiver, args);\n");return e}var x=typeof r==="string"?"this != null ? this['"+r+"'] : fn":"fn";var S="'use strict'; \n var ret = function (Parameters) { \n 'use strict'; \n var len = arguments.length; \n var promise = new Promise(INTERNAL); \n promise._captureStackTrace(); \n var nodeback = nodebackForPromise(promise, "+v+"); \n var ret; \n var callback = tryCatch([GetFunctionCode]); \n switch(len) { \n [CodeForSwitchCase] \n } \n if (ret === errorObj) { \n promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n } \n if (!promise._isFateSealed()) promise._setAsyncGuaranteed(); \n return promise; \n }; \n notEnumerableProp(ret, '__isPromisified__', true); \n return ret; \n ".replace("[CodeForSwitchCase]",generateArgumentSwitchCase()).replace("[GetFunctionCode]",x);S=S.replace("Parameters",parameterDeclaration(b));return new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",S)(e,g,h,o,c,s,n.tryCatch,n.errorObj,n.notEnumerableProp,t)}}function makeNodePromisifiedClosure(r,h,p,g,y,v){var b=function(){return this}();var _=r;if(typeof _==="string"){r=g}function promisified(){var n=h;if(h===i)n=this;var p=new e(t);p._captureStackTrace();var g=typeof _==="string"&&this!==b?this[_]:r;var y=s(p,v);try{g.apply(n,o(arguments,y))}catch(e){p._rejectCallback(c(e),true,true)}if(!p._isFateSealed())p._setAsyncGuaranteed();return p}n.notEnumerableProp(promisified,"__isPromisified__",true);return promisified}var w=h?_:makeNodePromisifiedClosure;function promisifyAll(e,t,r,s,o){var c=new RegExp(escapeIdentRegex(t)+"$");var h=promisifiableMethods(e,t,c,r);for(var p=0,g=h.length;p<g;p+=2){var y=h[p];var v=h[p+1];var b=y+t;if(s===w){e[b]=w(y,i,y,v,t,o)}else{var _=s(v,(function(){return w(y,i,y,v,t,o)}));n.notEnumerableProp(_,"__isPromisified__",true);e[b]=_}}n.toFastProperties(e);return e}function promisify(e,t,r){return w(e,t,undefined,e,null,r)}e.promisify=function(e,t){if(typeof e!=="function"){throw new p("expecting a function but got "+n.classString(e))}if(isPromisified(e)){return e}t=Object(t);var r=t.context===undefined?i:t.context;var s=!!t.multiArgs;var o=promisify(e,r,s);n.copyDescriptors(e,o,propsFilter);return o};e.promisifyAll=function(e,t){if(typeof e!=="function"&&typeof e!=="object"){throw new p("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n")}t=Object(t);var r=!!t.multiArgs;var i=t.suffix;if(typeof i!=="string")i=g;var s=t.filter;if(typeof s!=="function")s=defaultFilter;var o=t.promisifier;if(typeof o!=="function")o=w;if(!n.isIdentifier(i)){throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n")}var c=n.inheritedDataKeys(e);for(var h=0;h<c.length;++h){var y=e[c[h]];if(c[h]!=="constructor"&&n.isClass(y)){promisifyAll(y.prototype,i,s,o,r);promisifyAll(y,i,s,o,r)}}return promisifyAll(e,i,s,o,r)}}},3700:function(e,t,r){"use strict";e.exports=function(e,t,i,n){var s=r(7292);var o=s.isObject;var c=r(5341);var h;if(typeof Map==="function")h=Map;var p=function(){var e=0;var t=0;function extractEntry(r,i){this[e]=r;this[e+t]=i;e++}return function mapToEntries(r){t=r.size;e=0;var i=new Array(r.size*2);r.forEach(extractEntry,i);return i}}();var entriesToMap=function(e){var t=new h;var r=e.length/2|0;for(var i=0;i<r;++i){var n=e[r+i];var s=e[i];t.set(n,s)}return t};function PropertiesPromiseArray(e){var t=false;var r;if(h!==undefined&&e instanceof h){r=p(e);t=true}else{var i=c.keys(e);var n=i.length;r=new Array(n*2);for(var s=0;s<n;++s){var o=i[s];r[s]=e[o];r[s+n]=o}}this.constructor$(r);this._isMap=t;this._init$(undefined,-3)}s.inherits(PropertiesPromiseArray,t);PropertiesPromiseArray.prototype._init=function(){};PropertiesPromiseArray.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var r=++this._totalResolved;if(r>=this._length){var i;if(this._isMap){i=entriesToMap(this._values)}else{i={};var n=this.length();for(var s=0,o=this.length();s<o;++s){i[this._values[s+n]]=this._values[s]}}this._resolve(i);return true}return false};PropertiesPromiseArray.prototype.shouldCopyValues=function(){return false};PropertiesPromiseArray.prototype.getActualLength=function(e){return e>>1};function props(t){var r;var s=i(t);if(!o(s)){return n("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}else if(s instanceof e){r=s._then(e.props,undefined,undefined,undefined,undefined)}else{r=new PropertiesPromiseArray(s).promise()}if(s instanceof e){r._propagateFrom(s,2)}return r}e.prototype.props=function(){return props(this)};e.props=function(e){return props(e)}}},8205:function(e){"use strict";function arrayMove(e,t,r,i,n){for(var s=0;s<n;++s){r[s+i]=e[s+t];e[s+t]=void 0}}function Queue(e){this._capacity=e;this._length=0;this._front=0}Queue.prototype._willBeOverCapacity=function(e){return this._capacity<e};Queue.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1);var r=this._front+t&this._capacity-1;this[r]=e;this._length=t+1};Queue.prototype.push=function(e,t,r){var i=this.length()+3;if(this._willBeOverCapacity(i)){this._pushOne(e);this._pushOne(t);this._pushOne(r);return}var n=this._front+i-3;this._checkCapacity(i);var s=this._capacity-1;this[n+0&s]=e;this[n+1&s]=t;this[n+2&s]=r;this._length=i};Queue.prototype.shift=function(){var e=this._front,t=this[e];this[e]=undefined;this._front=e+1&this._capacity-1;this._length--;return t};Queue.prototype.length=function(){return this._length};Queue.prototype._checkCapacity=function(e){if(this._capacity<e){this._resizeTo(this._capacity<<1)}};Queue.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var r=this._front;var i=this._length;var n=r+i&t-1;arrayMove(this,0,this,t,n)};e.exports=Queue},833:function(e,t,r){"use strict";e.exports=function(e,t,i,n){var s=r(7292);var raceLater=function(e){return e.then((function(t){return race(t,e)}))};function race(r,o){var c=i(r);if(c instanceof e){return raceLater(c)}else{r=s.asArray(r);if(r===null)return n("expecting an array or an iterable object but got "+s.classString(r))}var h=new e(t);if(o!==undefined){h._propagateFrom(o,3)}var p=h._fulfill;var g=h._reject;for(var y=0,v=r.length;y<v;++y){var b=r[y];if(b===undefined&&!(y in r)){continue}e.cast(b)._then(p,g,undefined,h,null)}return h}e.race=function(e){return race(e,undefined)};e.prototype.race=function(){return race(this,undefined)}}},1286:function(e,t,r){"use strict";e.exports=function(e,t,i,n,s,o){var c=e._getDomain;var h=r(7292);var p=h.tryCatch;function ReductionPromiseArray(t,r,i,n){this.constructor$(t);var o=c();this._fn=o===null?r:h.domainBind(o,r);if(i!==undefined){i=e.resolve(i);i._attachCancellationCallback(this)}this._initialValue=i;this._currentCancellable=null;if(n===s){this._eachValues=Array(this._length)}else if(n===0){this._eachValues=null}else{this._eachValues=undefined}this._promise._captureStackTrace();this._init$(undefined,-5)}h.inherits(ReductionPromiseArray,t);ReductionPromiseArray.prototype._gotAccum=function(e){if(this._eachValues!==undefined&&this._eachValues!==null&&e!==s){this._eachValues.push(e)}};ReductionPromiseArray.prototype._eachComplete=function(e){if(this._eachValues!==null){this._eachValues.push(e)}return this._eachValues};ReductionPromiseArray.prototype._init=function(){};ReductionPromiseArray.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==undefined?this._eachValues:this._initialValue)};ReductionPromiseArray.prototype.shouldCopyValues=function(){return false};ReductionPromiseArray.prototype._resolve=function(e){this._promise._resolveCallback(e);this._values=null};ReductionPromiseArray.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();if(this._isResolved())return;this._resultCancelled$();if(this._currentCancellable instanceof e){this._currentCancellable.cancel()}if(this._initialValue instanceof e){this._initialValue.cancel()}};ReductionPromiseArray.prototype._iterate=function(t){this._values=t;var r;var i;var n=t.length;if(this._initialValue!==undefined){r=this._initialValue;i=0}else{r=e.resolve(t[0]);i=1}this._currentCancellable=r;if(!r.isRejected()){for(;i<n;++i){var s={accum:null,value:t[i],index:i,length:n,array:this};r=r._then(gotAccum,undefined,undefined,s,undefined)}}if(this._eachValues!==undefined){r=r._then(this._eachComplete,undefined,undefined,this,undefined)}r._then(completed,completed,undefined,r,this)};e.prototype.reduce=function(e,t){return reduce(this,e,t,null)};e.reduce=function(e,t,r,i){return reduce(e,t,r,i)};function completed(e,t){if(this.isFulfilled()){t._resolve(e)}else{t._reject(e)}}function reduce(e,t,r,n){if(typeof t!=="function"){return i("expecting a function but got "+h.classString(t))}var s=new ReductionPromiseArray(e,t,r,n);return s.promise()}function gotAccum(t){this.accum=t;this.array._gotAccum(t);var r=n(this.value,this.array._promise);if(r instanceof e){this.array._currentCancellable=r;return r._then(gotValue,undefined,undefined,this,undefined)}else{return gotValue.call(this,r)}}function gotValue(t){var r=this.array;var i=r._promise;var n=p(r._fn);i._pushContext();var s;if(r._eachValues!==undefined){s=n.call(i._boundValue(),t,this.index,this.length)}else{s=n.call(i._boundValue(),this.accum,t,this.index,this.length)}if(s instanceof e){r._currentCancellable=s}var c=i._popContext();o.checkForgottenReturns(s,c,r._eachValues!==undefined?"Promise.each":"Promise.reduce",i);return s}}},2453:function(e,t,r){"use strict";var i=r(7292);var n;var noAsyncScheduler=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};var s=i.getNativePromise();if(i.isNode&&typeof MutationObserver==="undefined"){var o=global.setImmediate;var c=process.nextTick;n=i.isRecentNode?function(e){o.call(global,e)}:function(e){c.call(process,e)}}else if(typeof s==="function"&&typeof s.resolve==="function"){var h=s.resolve();n=function(e){h.then(e)}}else if(typeof MutationObserver!=="undefined"&&!(typeof window!=="undefined"&&window.navigator&&(window.navigator.standalone||window.cordova))){n=function(){var e=document.createElement("div");var t={attributes:true};var r=false;var i=document.createElement("div");var n=new MutationObserver((function(){e.classList.toggle("foo");r=false}));n.observe(i,t);var scheduleToggle=function(){if(r)return;r=true;i.classList.toggle("foo")};return function schedule(r){var i=new MutationObserver((function(){i.disconnect();r()}));i.observe(e,t);scheduleToggle()}}()}else if(typeof setImmediate!=="undefined"){n=function(e){setImmediate(e)}}else if(typeof setTimeout!=="undefined"){n=function(e){setTimeout(e,0)}}else{n=noAsyncScheduler}e.exports=n},8867:function(e,t,r){"use strict";e.exports=function(e,t,i){var n=e.PromiseInspection;var s=r(7292);function SettledPromiseArray(e){this.constructor$(e)}s.inherits(SettledPromiseArray,t);SettledPromiseArray.prototype._promiseResolved=function(e,t){this._values[e]=t;var r=++this._totalResolved;if(r>=this._length){this._resolve(this._values);return true}return false};SettledPromiseArray.prototype._promiseFulfilled=function(e,t){var r=new n;r._bitField=33554432;r._settledValueField=e;return this._promiseResolved(t,r)};SettledPromiseArray.prototype._promiseRejected=function(e,t){var r=new n;r._bitField=16777216;r._settledValueField=e;return this._promiseResolved(t,r)};e.settle=function(e){i.deprecated(".settle()",".reflect()");return new SettledPromiseArray(e).promise()};e.prototype.settle=function(){return e.settle(this)}}},6164:function(e,t,r){"use strict";e.exports=function(e,t,i){var n=r(7292);var s=r(7799).RangeError;var o=r(7799).AggregateError;var c=n.isArray;var h={};function SomePromiseArray(e){this.constructor$(e);this._howMany=0;this._unwrap=false;this._initialized=false}n.inherits(SomePromiseArray,t);SomePromiseArray.prototype._init=function(){if(!this._initialized){return}if(this._howMany===0){this._resolve([]);return}this._init$(undefined,-5);var e=c(this._values);if(!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()){this._reject(this._getRangeError(this.length()))}};SomePromiseArray.prototype.init=function(){this._initialized=true;this._init()};SomePromiseArray.prototype.setUnwrap=function(){this._unwrap=true};SomePromiseArray.prototype.howMany=function(){return this._howMany};SomePromiseArray.prototype.setHowMany=function(e){this._howMany=e};SomePromiseArray.prototype._promiseFulfilled=function(e){this._addFulfilled(e);if(this._fulfilled()===this.howMany()){this._values.length=this.howMany();if(this.howMany()===1&&this._unwrap){this._resolve(this._values[0])}else{this._resolve(this._values)}return true}return false};SomePromiseArray.prototype._promiseRejected=function(e){this._addRejected(e);return this._checkOutcome()};SomePromiseArray.prototype._promiseCancelled=function(){if(this._values instanceof e||this._values==null){return this._cancel()}this._addRejected(h);return this._checkOutcome()};SomePromiseArray.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var e=new o;for(var t=this.length();t<this._values.length;++t){if(this._values[t]!==h){e.push(this._values[t])}}if(e.length>0){this._reject(e)}else{this._cancel()}return true}return false};SomePromiseArray.prototype._fulfilled=function(){return this._totalResolved};SomePromiseArray.prototype._rejected=function(){return this._values.length-this.length()};SomePromiseArray.prototype._addRejected=function(e){this._values.push(e)};SomePromiseArray.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e};SomePromiseArray.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()};SomePromiseArray.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new s(t)};SomePromiseArray.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function some(e,t){if((t|0)!==t||t<0){return i("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n")}var r=new SomePromiseArray(e);var n=r.promise();r.setHowMany(t);r.init();return n}e.some=function(e,t){return some(e,t)};e.prototype.some=function(e){return some(this,e)};e._SomePromiseArray=SomePromiseArray}},8816:function(e){"use strict";e.exports=function(e){function PromiseInspection(e){if(e!==undefined){e=e._target();this._bitField=e._bitField;this._settledValueField=e._isFateSealed()?e._settledValue():undefined}else{this._bitField=0;this._settledValueField=undefined}}PromiseInspection.prototype._settledValue=function(){return this._settledValueField};var t=PromiseInspection.prototype.value=function(){if(!this.isFulfilled()){throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n")}return this._settledValue()};var r=PromiseInspection.prototype.error=PromiseInspection.prototype.reason=function(){if(!this.isRejected()){throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n")}return this._settledValue()};var i=PromiseInspection.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0};var n=PromiseInspection.prototype.isRejected=function(){return(this._bitField&16777216)!==0};var s=PromiseInspection.prototype.isPending=function(){return(this._bitField&50397184)===0};var o=PromiseInspection.prototype.isResolved=function(){return(this._bitField&50331648)!==0};PromiseInspection.prototype.isCancelled=function(){return(this._bitField&8454144)!==0};e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536};e.prototype._isCancelled=function(){return this._target().__isCancelled()};e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0};e.prototype.isPending=function(){return s.call(this._target())};e.prototype.isRejected=function(){return n.call(this._target())};e.prototype.isFulfilled=function(){return i.call(this._target())};e.prototype.isResolved=function(){return o.call(this._target())};e.prototype.value=function(){return t.call(this._target())};e.prototype.reason=function(){var e=this._target();e._unsetRejectionIsUnhandled();return r.call(e)};e.prototype._value=function(){return this._settledValue()};e.prototype._reason=function(){this._unsetRejectionIsUnhandled();return this._settledValue()};e.PromiseInspection=PromiseInspection}},6594:function(e,t,r){"use strict";e.exports=function(e,t){var i=r(7292);var n=i.errorObj;var s=i.isObject;function tryConvertToPromise(r,i){if(s(r)){if(r instanceof e)return r;var o=getThen(r);if(o===n){if(i)i._pushContext();var c=e.reject(o.e);if(i)i._popContext();return c}else if(typeof o==="function"){if(isAnyBluebirdPromise(r)){var c=new e(t);r._then(c._fulfill,c._reject,undefined,c,null);return c}return doThenable(r,o,i)}}return r}function doGetThen(e){return e.then}function getThen(e){try{return doGetThen(e)}catch(e){n.e=e;return n}}var o={}.hasOwnProperty;function isAnyBluebirdPromise(e){try{return o.call(e,"_promise0")}catch(e){return false}}function doThenable(r,s,o){var c=new e(t);var h=c;if(o)o._pushContext();c._captureStackTrace();if(o)o._popContext();var p=true;var g=i.tryCatch(s).call(r,resolve,reject);p=false;if(c&&g===n){c._rejectCallback(g.e,true,true);c=null}function resolve(e){if(!c)return;c._resolveCallback(e);c=null}function reject(e){if(!c)return;c._rejectCallback(e,p,true);c=null}return h}return tryConvertToPromise}},8178:function(e,t,r){"use strict";e.exports=function(e,t,i){var n=r(7292);var s=e.TimeoutError;function HandleWrapper(e){this.handle=e}HandleWrapper.prototype._resultCancelled=function(){clearTimeout(this.handle)};var afterValue=function(e){return o(+this).thenReturn(e)};var o=e.delay=function(r,n){var s;var o;if(n!==undefined){s=e.resolve(n)._then(afterValue,null,null,r,undefined);if(i.cancellation()&&n instanceof e){s._setOnCancel(n)}}else{s=new e(t);o=setTimeout((function(){s._fulfill()}),+r);if(i.cancellation()){s._setOnCancel(new HandleWrapper(o))}s._captureStackTrace()}s._setAsyncGuaranteed();return s};e.prototype.delay=function(e){return o(e,this)};var afterTimeout=function(e,t,r){var i;if(typeof t!=="string"){if(t instanceof Error){i=t}else{i=new s("operation timed out")}}else{i=new s(t)}n.markAsOriginatingFromRejection(i);e._attachExtraTrace(i);e._reject(i);if(r!=null){r.cancel()}};function successClear(e){clearTimeout(this.handle);return e}function failureClear(e){clearTimeout(this.handle);throw e}e.prototype.timeout=function(e,t){e=+e;var r,n;var s=new HandleWrapper(setTimeout((function timeoutTimeout(){if(r.isPending()){afterTimeout(r,t,n)}}),e));if(i.cancellation()){n=this.then();r=n._then(successClear,failureClear,undefined,s,undefined);r._setOnCancel(s)}else{r=this._then(successClear,failureClear,undefined,s,undefined)}return r}}},4470:function(e,t,r){"use strict";e.exports=function(e,t,i,n,s,o){var c=r(7292);var h=r(7799).TypeError;var p=r(7292).inherits;var g=c.errorObj;var y=c.tryCatch;var v={};function thrower(e){setTimeout((function(){throw e}),0)}function castPreservingDisposable(e){var t=i(e);if(t!==e&&typeof e._isDisposable==="function"&&typeof e._getDisposer==="function"&&e._isDisposable()){t._setDisposable(e._getDisposer())}return t}function dispose(t,r){var n=0;var o=t.length;var c=new e(s);function iterator(){if(n>=o)return c._fulfill();var s=castPreservingDisposable(t[n++]);if(s instanceof e&&s._isDisposable()){try{s=i(s._getDisposer().tryDispose(r),t.promise)}catch(e){return thrower(e)}if(s instanceof e){return s._then(iterator,thrower,null,null,null)}}iterator()}iterator();return c}function Disposer(e,t,r){this._data=e;this._promise=t;this._context=r}Disposer.prototype.data=function(){return this._data};Disposer.prototype.promise=function(){return this._promise};Disposer.prototype.resource=function(){if(this.promise().isFulfilled()){return this.promise().value()}return v};Disposer.prototype.tryDispose=function(e){var t=this.resource();var r=this._context;if(r!==undefined)r._pushContext();var i=t!==v?this.doDispose(t,e):null;if(r!==undefined)r._popContext();this._promise._unsetDisposable();this._data=null;return i};Disposer.isDisposer=function(e){return e!=null&&typeof e.resource==="function"&&typeof e.tryDispose==="function"};function FunctionDisposer(e,t,r){this.constructor$(e,t,r)}p(FunctionDisposer,Disposer);FunctionDisposer.prototype.doDispose=function(e,t){var r=this.data();return r.call(e,e,t)};function maybeUnwrapDisposer(e){if(Disposer.isDisposer(e)){this.resources[this.index]._setDisposable(e);return e.promise()}return e}function ResourceList(e){this.length=e;this.promise=null;this[e-1]=null}ResourceList.prototype._resultCancelled=function(){var t=this.length;for(var r=0;r<t;++r){var i=this[r];if(i instanceof e){i.cancel()}}};e.using=function(){var r=arguments.length;if(r<2)return t("you must pass at least 2 arguments to Promise.using");var n=arguments[r-1];if(typeof n!=="function"){return t("expecting a function but got "+c.classString(n))}var s;var h=true;if(r===2&&Array.isArray(arguments[0])){s=arguments[0];r=s.length;h=false}else{s=arguments;r--}var p=new ResourceList(r);for(var v=0;v<r;++v){var b=s[v];if(Disposer.isDisposer(b)){var _=b;b=b.promise();b._setDisposable(_)}else{var w=i(b);if(w instanceof e){b=w._then(maybeUnwrapDisposer,null,null,{resources:p,index:v},undefined)}}p[v]=b}var x=new Array(p.length);for(var v=0;v<x.length;++v){x[v]=e.resolve(p[v]).reflect()}var S=e.all(x).then((function(e){for(var t=0;t<e.length;++t){var r=e[t];if(r.isRejected()){g.e=r.error();return g}else if(!r.isFulfilled()){S.cancel();return}e[t]=r.value()}k._pushContext();n=y(n);var i=h?n.apply(undefined,e):n(e);var s=k._popContext();o.checkForgottenReturns(i,s,"Promise.using",k);return i}));var k=S.lastly((function(){var t=new e.PromiseInspection(S);return dispose(p,t)}));p.promise=k;k._setOnCancel(p);return k};e.prototype._setDisposable=function(e){this._bitField=this._bitField|131072;this._disposer=e};e.prototype._isDisposable=function(){return(this._bitField&131072)>0};e.prototype._getDisposer=function(){return this._disposer};e.prototype._unsetDisposable=function(){this._bitField=this._bitField&~131072;this._disposer=undefined};e.prototype.disposer=function(e){if(typeof e==="function"){return new FunctionDisposer(e,this,n())}throw new h}}},7292:function(module,__unused_webpack_exports,__nccwpck_require__){"use strict";var es5=__nccwpck_require__(5341);var canEvaluate=typeof navigator=="undefined";var errorObj={e:{}};var tryCatchTarget;var globalObject=typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this!==undefined?this:null;function tryCatcher(){try{var e=tryCatchTarget;tryCatchTarget=null;return e.apply(this,arguments)}catch(e){errorObj.e=e;return errorObj}}function tryCatch(e){tryCatchTarget=e;return tryCatcher}var inherits=function(e,t){var r={}.hasOwnProperty;function T(){this.constructor=e;this.constructor$=t;for(var i in t.prototype){if(r.call(t.prototype,i)&&i.charAt(i.length-1)!=="$"){this[i+"$"]=t.prototype[i]}}}T.prototype=t.prototype;e.prototype=new T;return e.prototype};function isPrimitive(e){return e==null||e===true||e===false||typeof e==="string"||typeof e==="number"}function isObject(e){return typeof e==="function"||typeof e==="object"&&e!==null}function maybeWrapAsError(e){if(!isPrimitive(e))return e;return new Error(safeToString(e))}function withAppended(e,t){var r=e.length;var i=new Array(r+1);var n;for(n=0;n<r;++n){i[n]=e[n]}i[n]=t;return i}function getDataPropertyOrDefault(e,t,r){if(es5.isES5){var i=Object.getOwnPropertyDescriptor(e,t);if(i!=null){return i.get==null&&i.set==null?i.value:r}}else{return{}.hasOwnProperty.call(e,t)?e[t]:undefined}}function notEnumerableProp(e,t,r){if(isPrimitive(e))return e;var i={value:r,configurable:true,enumerable:false,writable:true};es5.defineProperty(e,t,i);return e}function thrower(e){throw e}var inheritedDataKeys=function(){var e=[Array.prototype,Object.prototype,Function.prototype];var isExcludedProto=function(t){for(var r=0;r<e.length;++r){if(e[r]===t){return true}}return false};if(es5.isES5){var t=Object.getOwnPropertyNames;return function(e){var r=[];var i=Object.create(null);while(e!=null&&!isExcludedProto(e)){var n;try{n=t(e)}catch(e){return r}for(var s=0;s<n.length;++s){var o=n[s];if(i[o])continue;i[o]=true;var c=Object.getOwnPropertyDescriptor(e,o);if(c!=null&&c.get==null&&c.set==null){r.push(o)}}e=es5.getPrototypeOf(e)}return r}}else{var r={}.hasOwnProperty;return function(t){if(isExcludedProto(t))return[];var i=[];e:for(var n in t){if(r.call(t,n)){i.push(n)}else{for(var s=0;s<e.length;++s){if(r.call(e[s],n)){continue e}}i.push(n)}}return i}}}();var thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(e){try{if(typeof e==="function"){var t=es5.names(e.prototype);var r=es5.isES5&&t.length>1;var i=t.length>0&&!(t.length===1&&t[0]==="constructor");var n=thisAssignmentPattern.test(e+"")&&es5.names(e).length>0;if(r||i||n){return true}}return false}catch(e){return false}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var l=8;while(l--)new FakeConstructor;return obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(e){return rident.test(e)}function filledRange(e,t,r){var i=new Array(e);for(var n=0;n<e;++n){i[n]=t+n+r}return i}function safeToString(e){try{return e+""}catch(e){return"[no string representation]"}}function isError(e){return e!==null&&typeof e==="object"&&typeof e.message==="string"&&typeof e.name==="string"}function markAsOriginatingFromRejection(e){try{notEnumerableProp(e,"isOperational",true)}catch(e){}}function originatesFromRejection(e){if(e==null)return false;return e instanceof Error["__BluebirdErrorTypes__"].OperationalError||e["isOperational"]===true}function canAttachTrace(e){return isError(e)&&es5.propertyIsWritable(e,"stack")}var ensureErrorObject=function(){if(!("stack"in new Error)){return function(e){if(canAttachTrace(e))return e;try{throw new Error(safeToString(e))}catch(e){return e}}}else{return function(e){if(canAttachTrace(e))return e;return new Error(safeToString(e))}}}();function classString(e){return{}.toString.call(e)}function copyDescriptors(e,t,r){var i=es5.names(e);for(var n=0;n<i.length;++n){var s=i[n];if(r(s)){try{es5.defineProperty(t,s,es5.getDescriptor(e,s))}catch(e){}}}}var asArray=function(e){if(es5.isArray(e)){return e}return null};if(typeof Symbol!=="undefined"&&Symbol.iterator){var ArrayFrom=typeof Array.from==="function"?function(e){return Array.from(e)}:function(e){var t=[];var r=e[Symbol.iterator]();var i;while(!(i=r.next()).done){t.push(i.value)}return t};asArray=function(e){if(es5.isArray(e)){return e}else if(e!=null&&typeof e[Symbol.iterator]==="function"){return ArrayFrom(e)}return null}}var isNode=typeof process!=="undefined"&&classString(process).toLowerCase()==="[object process]";var hasEnvVariables=typeof process!=="undefined"&&typeof process.env!=="undefined";function env(e){return hasEnvVariables?process.env[e]:undefined}function getNativePromise(){if(typeof Promise==="function"){try{var e=new Promise((function(){}));if({}.toString.call(e)==="[object Promise]"){return Promise}}catch(e){}}}function domainBind(e,t){return e.bind(t)}var ret={isClass:isClass,isIdentifier:isIdentifier,inheritedDataKeys:inheritedDataKeys,getDataPropertyOrDefault:getDataPropertyOrDefault,thrower:thrower,isArray:es5.isArray,asArray:asArray,notEnumerableProp:notEnumerableProp,isPrimitive:isPrimitive,isObject:isObject,isError:isError,canEvaluate:canEvaluate,errorObj:errorObj,tryCatch:tryCatch,inherits:inherits,withAppended:withAppended,maybeWrapAsError:maybeWrapAsError,toFastProperties:toFastProperties,filledRange:filledRange,toString:safeToString,canAttachTrace:canAttachTrace,ensureErrorObject:ensureErrorObject,originatesFromRejection:originatesFromRejection,markAsOriginatingFromRejection:markAsOriginatingFromRejection,classString:classString,copyDescriptors:copyDescriptors,hasDevTools:typeof chrome!=="undefined"&&chrome&&typeof chrome.loadTimes==="function",isNode:isNode,hasEnvVariables:hasEnvVariables,env:env,global:globalObject,getNativePromise:getNativePromise,domainBind:domainBind};ret.isRecentNode=ret.isNode&&function(){var e=process.versions.node.split(".").map(Number);return e[0]===0&&e[1]>10||e[0]>0}();if(ret.isNode)ret.toFastProperties(process);try{throw new Error}catch(e){ret.lastLineError=e}module.exports=ret},5612:function(e,t,r){var i=r(8401);var n=r(127);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var c="\0CLOSE"+Math.random()+"\0";var h="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(c).split("\\,").join(h).split("\\.").join(p)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(c).join("}").split(h).join(",").split(p).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var s=r.body;var o=r.post;var c=i.split(",");c[c.length-1]+="{"+s+"}";var h=parseCommaParts(o);if(o.length){c[c.length-1]+=h.shift();c.push.apply(c,h)}t.push.apply(t,c);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=n("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var p=o||h;var g=s.body.indexOf(",")>=0;if(!p&&!g){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+c+s.post;return expand(e)}return[e]}var y;if(p){y=s.body.split(/\.\./)}else{y=parseCommaParts(s.body);if(y.length===1){y=expand(y[0],false).map(embrace);if(y.length===1){var v=s.post.length?expand(s.post,false):[""];return v.map((function(e){return s.pre+y[0]+e}))}}}var b=s.pre;var v=s.post.length?expand(s.post,false):[""];var _;if(p){var w=numeric(y[0]);var x=numeric(y[1]);var S=Math.max(y[0].length,y[1].length);var k=y.length==3?Math.abs(numeric(y[2])):1;var C=lte;var E=x<w;if(E){k*=-1;C=gte}var R=y.some(isPadded);_=[];for(var O=w;C(O,x);O+=k){var A;if(h){A=String.fromCharCode(O);if(A==="\\")A=""}else{A=String(O);if(R){var I=S-A.length;if(I>0){var P=new Array(I+1).join("0");if(O<0)A="-"+P+A.slice(1);else A=P+A}}}_.push(A)}}else{_=i(y,(function(e){return expand(e,false)}))}for(var N=0;N<_.length;N++){for(var F=0;F<v.length;F++){var D=b+_[N]+v[F];if(!t||p||D)r.push(D)}}return r}},6083:function(e,t,r){var i=r(127);e.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var h="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(h)}function unescapeBraces(e){return e.split(n).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(h).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var o=r.post;var c=n.split(",");c[c.length-1]+="{"+s+"}";var h=parseCommaParts(o);if(o.length){c[c.length-1]+=h.shift();c.push.apply(c,h)}t.push.apply(t,c);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var n=i("{","}",e);if(!n)return[e];var s=n.pre;var c=n.post.length?expand(n.post,false):[""];if(/\$$/.test(n.pre)){for(var h=0;h<c.length;h++){var p=s+"{"+n.body+"}"+c[h];r.push(p)}}else{var g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var v=g||y;var b=n.body.indexOf(",")>=0;if(!v&&!b){if(n.post.match(/,.*\}/)){e=n.pre+"{"+n.body+o+n.post;return expand(e)}return[e]}var _;if(v){_=n.body.split(/\.\./)}else{_=parseCommaParts(n.body);if(_.length===1){_=expand(_[0],false).map(embrace);if(_.length===1){return c.map((function(e){return n.pre+_[0]+e}))}}}var w;if(v){var x=numeric(_[0]);var S=numeric(_[1]);var k=Math.max(_[0].length,_[1].length);var C=_.length==3?Math.abs(numeric(_[2])):1;var E=lte;var R=S<x;if(R){C*=-1;E=gte}var O=_.some(isPadded);w=[];for(var A=x;E(A,S);A+=C){var I;if(y){I=String.fromCharCode(A);if(I==="\\")I=""}else{I=String(A);if(O){var P=k-I.length;if(P>0){var N=new Array(P+1).join("0");if(A<0)I="-"+N+I.slice(1);else I=N+I}}}w.push(I)}}else{w=[];for(var F=0;F<_.length;F++){w.push.apply(w,expand(_[F],false))}}for(var F=0;F<w.length;F++){for(var h=0;h<c.length;h++){var p=s+w[F]+c[h];if(!t||v||p)r.push(p)}}}return r}},7064:function(e,t,r){var i=r(181).Buffer;var n=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){n=new Int32Array(n)}function ensureBuffer(e){if(i.isBuffer(e)){return e}var t=typeof i.alloc==="function"&&typeof i.from==="function";if(typeof e==="number"){return t?i.alloc(e):new i(e)}else if(typeof e==="string"){return t?i.from(e):new i(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,t){e=ensureBuffer(e);if(i.isBuffer(t)){t=t.readUInt32BE(0)}var r=~~t^-1;for(var s=0;s<e.length;s++){r=n[(r^e[s])&255]^r>>>8}return r^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},2503:function(e,t,r){"use strict";var i=r(2594);if(!Buffer.prototype.indexOf){Buffer.prototype.indexOf=function(e,t){t=t||0;if(typeof e==="string"||e instanceof String){e=i(e)}else if(typeof e==="number"||e instanceof Number){e=i([e])}var r=e.length;for(var n=t;n<=this.length-r;n++){var s=false;for(var o=0;o<r;o++){if(this[n+o]!=e[o]){s=true;break}}if(!s){return n}}return-1}}function bufferLastIndexOf(e,t){if(typeof e==="string"||e instanceof String){e=i(e)}else if(typeof e==="number"||e instanceof Number){e=i([e])}var r=e.length;t=t||this.length-r;for(var n=t;n>=0;n--){var s=false;for(var o=0;o<r;o++){if(this[n+o]!=e[o]){s=true;break}}if(!s){return n}}return-1}if(Buffer.prototype.lastIndexOf){if(i("ABC").lastIndexOf("ABC")===-1)Buffer.prototype.lastIndexOf=bufferLastIndexOf}else{Buffer.prototype.lastIndexOf=bufferLastIndexOf}},2594:function(e){e.exports=function initBuffer(e){var t=process&&process.version?process.version:"v5.0.0";var r=t.split(".")[0].replace("v","");return r<6?new Buffer(e):Buffer.from(e)}},8688:function(e){e.exports=Buffers;function Buffers(e){if(!(this instanceof Buffers))return new Buffers(e);this.buffers=e||[];this.length=this.buffers.reduce((function(e,t){return e+t.length}),0)}Buffers.prototype.push=function(){for(var e=0;e<arguments.length;e++){if(!Buffer.isBuffer(arguments[e])){throw new TypeError("Tried to push a non-buffer")}}for(var e=0;e<arguments.length;e++){var t=arguments[e];this.buffers.push(t);this.length+=t.length}return this.length};Buffers.prototype.unshift=function(){for(var e=0;e<arguments.length;e++){if(!Buffer.isBuffer(arguments[e])){throw new TypeError("Tried to unshift a non-buffer")}}for(var e=0;e<arguments.length;e++){var t=arguments[e];this.buffers.unshift(t);this.length+=t.length}return this.length};Buffers.prototype.copy=function(e,t,r,i){return this.slice(r,i).copy(e,t,0,i-r)};Buffers.prototype.splice=function(e,t){var r=this.buffers;var i=e>=0?e:this.length-e;var n=[].slice.call(arguments,2);if(t===undefined){t=this.length-i}else if(t>this.length-i){t=this.length-i}for(var e=0;e<n.length;e++){this.length+=n[e].length}var s=new Buffers;var o=0;var c=0;for(var h=0;h<r.length&&c+r[h].length<i;h++){c+=r[h].length}if(i-c>0){var p=i-c;if(p+t<r[h].length){s.push(r[h].slice(p,p+t));var g=r[h];var y=new Buffer(p);for(var e=0;e<p;e++){y[e]=g[e]}var v=new Buffer(g.length-p-t);for(var e=p+t;e<g.length;e++){v[e-t-p]=g[e]}if(n.length>0){var b=n.slice();b.unshift(y);b.push(v);r.splice.apply(r,[h,1].concat(b));h+=b.length;n=[]}else{r.splice(h,1,y,v);h+=2}}else{s.push(r[h].slice(p));r[h]=r[h].slice(0,p);h++}}if(n.length>0){r.splice.apply(r,[h,0].concat(n));h+=n.length}while(s.length<t){var _=r[h];var w=_.length;var x=Math.min(w,t-s.length);if(x===w){s.push(_);r.splice(h,1)}else{s.push(_.slice(0,x));r[h]=r[h].slice(x)}}this.length-=s.length;return s};Buffers.prototype.slice=function(e,t){var r=this.buffers;if(t===undefined)t=this.length;if(e===undefined)e=0;if(t>this.length)t=this.length;var i=0;for(var n=0;n<r.length&&i+r[n].length<=e;n++){i+=r[n].length}var s=new Buffer(t-e);var o=0;for(var c=n;o<t-e&&c<r.length;c++){var h=r[c].length;var p=o===0?e-i:0;var g=o+h>=t-e?Math.min(p+(t-e)-o,h):h;r[c].copy(s,o,p,g);o+=g-p}return s};Buffers.prototype.pos=function(e){if(e<0||e>=this.length)throw new Error("oob");var t=e,r=0,i=null;for(;;){i=this.buffers[r];if(t<i.length){return{buf:r,offset:t}}else{t-=i.length}r++}};Buffers.prototype.get=function get(e){var t=this.pos(e);return this.buffers[t.buf].get(t.offset)};Buffers.prototype.set=function set(e,t){var r=this.pos(e);return this.buffers[r.buf].set(r.offset,t)};Buffers.prototype.indexOf=function(e,t){if("string"===typeof e){e=new Buffer(e)}else if(e instanceof Buffer){}else{throw new Error("Invalid type for a search string")}if(!e.length){return 0}if(!this.length){return-1}var r=0,i=0,n=0,s,o=0;if(t){var c=this.pos(t);r=c.buf;i=c.offset;o=t}for(;;){while(i>=this.buffers[r].length){i=0;r++;if(r>=this.buffers.length){return-1}}var h=this.buffers[r][i];if(h==e[n]){if(n==0){s={i:r,j:i,pos:o}}n++;if(n==e.length){return s.pos}}else if(n!=0){r=s.i;i=s.j;o=s.pos;n=0}i++;o++}};Buffers.prototype.toBuffer=function(){return this.slice()};Buffers.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)}},5769:function(e,t,r){var i=r(532);var n=r(4434).EventEmitter;e.exports=Chainsaw;function Chainsaw(e){var t=Chainsaw.saw(e,{});var r=e.call(t.handlers,t);if(r!==undefined)t.handlers=r;t.record();return t.chain()}Chainsaw.light=function ChainsawLight(e){var t=Chainsaw.saw(e,{});var r=e.call(t.handlers,t);if(r!==undefined)t.handlers=r;return t.chain()};Chainsaw.saw=function(e,t){var r=new n;r.handlers=t;r.actions=[];r.chain=function(){var e=i(r.handlers).map((function(t){if(this.isRoot)return t;var i=this.path;if(typeof t==="function"){this.update((function(){r.actions.push({path:i,args:[].slice.call(arguments)});return e}))}}));process.nextTick((function(){r.emit("begin");r.next()}));return e};r.pop=function(){return r.actions.shift()};r.next=function(){var e=r.pop();if(!e){r.emit("end")}else if(!e.trap){var t=r.handlers;e.path.forEach((function(e){t=t[e]}));t.apply(r.handlers,e.args)}};r.nest=function(t){var i=[].slice.call(arguments,1);var n=true;if(typeof t==="boolean"){var n=t;t=i.shift()}var s=Chainsaw.saw(e,{});var o=e.call(s.handlers,s);if(o!==undefined)s.handlers=o;if("undefined"!==typeof r.step){s.record()}t.apply(s.chain(),i);if(n!==false)s.on("end",r.next)};r.record=function(){upgradeChainsaw(r)};["trap","down","jump"].forEach((function(e){r[e]=function(){throw new Error("To use the trap, down and jump features, please "+"call record() first to start recording actions.")}}));return r};function upgradeChainsaw(e){e.step=0;e.pop=function(){return e.actions[e.step++]};e.trap=function(t,r){var i=Array.isArray(t)?t:[t];e.actions.push({path:i,step:e.step,cb:r,trap:true})};e.down=function(t){var r=(Array.isArray(t)?t:[t]).join("/");var i=e.actions.slice(e.step).map((function(t){if(t.trap&&t.step<=e.step)return false;return t.path.join("/")==r})).indexOf(true);if(i>=0)e.step+=i;else e.step=e.actions.length;var n=e.actions[e.step-1];if(n&&n.trap){e.step=n.step;n.cb()}else e.next()};e.jump=function(t){e.step=t;e.next()}}},2806:function(e){var t=e.exports=function(){};t.prototype.getName=function(){};t.prototype.getSize=function(){};t.prototype.getLastModifiedDate=function(){};t.prototype.isDirectory=function(){}},9682:function(e,t,r){var i=r(9023).inherits;var n=r(1643).Transform;var s=r(2806);var o=r(9244);var c=e.exports=function(e){if(!(this instanceof c)){return new c(e)}n.call(this,e);this.offset=0;this._archive={finish:false,finished:false,processing:false}};i(c,n);c.prototype._appendBuffer=function(e,t,r){};c.prototype._appendStream=function(e,t,r){};c.prototype._emitErrorCallback=function(e){if(e){this.emit("error",e)}};c.prototype._finish=function(e){};c.prototype._normalizeEntry=function(e){};c.prototype._transform=function(e,t,r){r(null,e)};c.prototype.entry=function(e,t,r){t=t||null;if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}if(!(e instanceof s)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(e);this._entry=e;t=o.normalizeInputSource(t);if(Buffer.isBuffer(t)){this._appendBuffer(e,t,r)}else if(o.isStream(t)){this._appendStream(e,t,r)}else{this._archive.processing=false;r(new Error("input source must be valid Stream or Buffer instance"));return}return this};c.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};c.prototype.getBytesWritten=function(){return this.offset};c.prototype.write=function(e,t){if(e){this.offset+=e.length}return n.prototype.write.call(this,e,t)}},3468:function(e){e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},4032:function(e,t,r){var i=r(4885);var n=1<<3;var s=1<<0;var o=1<<2;var c=1<<1;var h=1<<6;var p=1<<11;var g=e.exports=function(){if(!(this instanceof g)){return new g}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};g.prototype.encode=function(){return i.getShortBytes((this.descriptor?n:0)|(this.utf8?p:0)|(this.encryption?s:0)|(this.strongEncryption?h:0))};g.prototype.parse=function(e,t){var r=i.getShortBytesValue(e,t);var y=new g;y.useDataDescriptor((r&n)!==0);y.useUTF8ForNames((r&p)!==0);y.useStrongEncryption((r&h)!==0);y.useEncryption((r&s)!==0);y.setSlidingDictionarySize((r&c)!==0?8192:4096);y.setNumberOfShannonFanoTrees((r&o)!==0?3:2);return y};g.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e};g.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};g.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e};g.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};g.prototype.useDataDescriptor=function(e){this.descriptor=e};g.prototype.usesDataDescriptor=function(){return this.descriptor};g.prototype.useEncryption=function(e){this.encryption=e};g.prototype.usesEncryption=function(){return this.encryption};g.prototype.useStrongEncryption=function(e){this.strongEncryption=e};g.prototype.usesStrongEncryption=function(){return this.strongEncryption};g.prototype.useUTF8ForNames=function(e){this.utf8=e};g.prototype.usesUTF8ForNames=function(){return this.utf8}},8050:function(e){e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},4885:function(e){var t=e.exports={};t.dateToDos=function(e,t){t=t||false;var r=t?e.getFullYear():e.getUTCFullYear();if(r<1980){return 2162688}else if(r>=2044){return 2141175677}var i={year:r,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};t.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)};t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))};t.getEightBytes=function(e){var t=Buffer.alloc(8);t.writeUInt32LE(e%4294967296,0);t.writeUInt32LE(e/4294967296|0,4);return t};t.getShortBytes=function(e){var t=Buffer.alloc(2);t.writeUInt16LE((e&65535)>>>0,0);return t};t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)};t.getLongBytes=function(e){var t=Buffer.alloc(4);t.writeUInt32LE((e&4294967295)>>>0,0);return t};t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)};t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},6580:function(e,t,r){var i=r(9023).inherits;var n=r(4527);var s=r(2806);var o=r(4032);var c=r(8050);var h=r(3468);var p=r(4885);var g=e.exports=function(e){if(!(this instanceof g)){return new g(e)}s.call(this);this.platform=h.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new o;this.crc=0;this.time=-1;this.minver=h.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(e){this.setName(e)}};i(g,s);g.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};g.prototype.getComment=function(){return this.comment!==null?this.comment:""};g.prototype.getCompressedSize=function(){return this.csize};g.prototype.getCrc=function(){return this.crc};g.prototype.getExternalAttributes=function(){return this.exattr};g.prototype.getExtra=function(){return this.extra!==null?this.extra:h.EMPTY};g.prototype.getGeneralPurposeBit=function(){return this.gpb};g.prototype.getInternalAttributes=function(){return this.inattr};g.prototype.getLastModifiedDate=function(){return this.getTime()};g.prototype.getLocalFileDataExtra=function(){return this.getExtra()};g.prototype.getMethod=function(){return this.method};g.prototype.getName=function(){return this.name};g.prototype.getPlatform=function(){return this.platform};g.prototype.getSize=function(){return this.size};g.prototype.getTime=function(){return this.time!==-1?p.dosToDate(this.time):-1};g.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};g.prototype.getUnixMode=function(){return this.platform!==h.PLATFORM_UNIX?0:this.getExternalAttributes()>>h.SHORT_SHIFT&h.SHORT_MASK};g.prototype.getVersionNeededToExtract=function(){return this.minver};g.prototype.setComment=function(e){if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=e};g.prototype.setCompressedSize=function(e){if(e<0){throw new Error("invalid entry compressed size")}this.csize=e};g.prototype.setCrc=function(e){if(e<0){throw new Error("invalid entry crc32")}this.crc=e};g.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};g.prototype.setExtra=function(e){this.extra=e};g.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof o)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=e};g.prototype.setInternalAttributes=function(e){this.inattr=e};g.prototype.setMethod=function(e){if(e<0){throw new Error("invalid entry compression method")}this.method=e};g.prototype.setName=function(e,t=false){e=n(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(t){e=`/${e}`}if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=e};g.prototype.setPlatform=function(e){this.platform=e};g.prototype.setSize=function(e){if(e<0){throw new Error("invalid entry size")}this.size=e};g.prototype.setTime=function(e,t){if(!(e instanceof Date)){throw new Error("invalid entry time")}this.time=p.dateToDos(e,t)};g.prototype.setUnixMode=function(e){e|=this.isDirectory()?h.S_IFDIR:h.S_IFREG;var t=0;t|=e<<h.SHORT_SHIFT|(this.isDirectory()?h.S_DOS_D:h.S_DOS_A);this.setExternalAttributes(t);this.mode=e&h.MODE_MASK;this.platform=h.PLATFORM_UNIX};g.prototype.setVersionNeededToExtract=function(e){this.minver=e};g.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};g.prototype.isUnixSymlink=function(){return(this.getUnixMode()&c.FILE_TYPE_FLAG)===c.LINK_FLAG};g.prototype.isZip64=function(){return this.csize>h.ZIP64_MAGIC||this.size>h.ZIP64_MAGIC}},4724:function(e,t,r){var i=r(9023).inherits;var n=r(7064);var{CRC32Stream:s}=r(655);var{DeflateCRC32Stream:o}=r(655);var c=r(9682);var h=r(6580);var p=r(4032);var g=r(3468);var y=r(9244);var v=r(4885);var b=e.exports=function(e){if(!(this instanceof b)){return new b(e)}e=this.options=this._defaults(e);c.call(this,e);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};i(b,c);b.prototype._afterAppend=function(e){this._entries.push(e);if(e.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(e)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};b.prototype._appendBuffer=function(e,t,r){if(t.length===0){e.setMethod(g.METHOD_STORED)}var i=e.getMethod();if(i===g.METHOD_STORED){e.setSize(t.length);e.setCompressedSize(t.length);e.setCrc(n.unsigned(t))}this._writeLocalFileHeader(e);if(i===g.METHOD_STORED){this.write(t);this._afterAppend(e);r(null,e);return}else if(i===g.METHOD_DEFLATED){this._smartStream(e,r).end(t);return}else{r(new Error("compression method "+i+" not implemented"));return}};b.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(e);var i=this._smartStream(e,r);t.once("error",(function(e){i.emit("error",e);i.end()}));t.pipe(i)};b.prototype._defaults=function(e){if(typeof e!=="object"){e={}}if(typeof e.zlib!=="object"){e.zlib={}}if(typeof e.zlib.level!=="number"){e.zlib.level=g.ZLIB_BEST_SPEED}e.forceZip64=!!e.forceZip64;e.forceLocalTime=!!e.forceLocalTime;return e};b.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};b.prototype._normalizeEntry=function(e){if(e.getMethod()===-1){e.setMethod(g.METHOD_DEFLATED)}if(e.getMethod()===g.METHOD_DEFLATED){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR)}if(e.getTime()===-1){e.setTime(new Date,this._archive.forceLocalTime)}e._offsets={file:0,data:0,contents:0}};b.prototype._smartStream=function(e,t){var r=e.getMethod()===g.METHOD_DEFLATED;var i=r?new o(this.options.zlib):new s;var n=null;function handleStuff(){var r=i.digest().readUInt32BE(0);e.setCrc(r);e.setSize(i.size());e.setCompressedSize(i.size(true));this._afterAppend(e);t(n,e)}i.once("end",handleStuff.bind(this));i.once("error",(function(e){n=e}));i.pipe(this,{end:false});return i};b.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length;var t=this._archive.centralLength;var r=this._archive.centralOffset;if(this.isZip64()){e=g.ZIP64_MAGIC_SHORT;t=g.ZIP64_MAGIC;r=g.ZIP64_MAGIC}this.write(v.getLongBytes(g.SIG_EOCD));this.write(g.SHORT_ZERO);this.write(g.SHORT_ZERO);this.write(v.getShortBytes(e));this.write(v.getShortBytes(e));this.write(v.getLongBytes(t));this.write(v.getLongBytes(r));var i=this.getComment();var n=Buffer.byteLength(i);this.write(v.getShortBytes(n));this.write(i)};b.prototype._writeCentralDirectoryZip64=function(){this.write(v.getLongBytes(g.SIG_ZIP64_EOCD));this.write(v.getEightBytes(44));this.write(v.getShortBytes(g.MIN_VERSION_ZIP64));this.write(v.getShortBytes(g.MIN_VERSION_ZIP64));this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(v.getEightBytes(this._entries.length));this.write(v.getEightBytes(this._entries.length));this.write(v.getEightBytes(this._archive.centralLength));this.write(v.getEightBytes(this._archive.centralOffset));this.write(v.getLongBytes(g.SIG_ZIP64_EOCD_LOC));this.write(g.LONG_ZERO);this.write(v.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(v.getLongBytes(1))};b.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var i=e._offsets;var n=e.getSize();var s=e.getCompressedSize();if(e.isZip64()||i.file>g.ZIP64_MAGIC){n=g.ZIP64_MAGIC;s=g.ZIP64_MAGIC;e.setVersionNeededToExtract(g.MIN_VERSION_ZIP64);var o=Buffer.concat([v.getShortBytes(g.ZIP64_EXTRA_ID),v.getShortBytes(24),v.getEightBytes(e.getSize()),v.getEightBytes(e.getCompressedSize()),v.getEightBytes(i.file)],28);e.setExtra(o)}this.write(v.getLongBytes(g.SIG_CFH));this.write(v.getShortBytes(e.getPlatform()<<8|g.VERSION_MADEBY));this.write(v.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(v.getShortBytes(r));this.write(v.getLongBytes(e.getTimeDos()));this.write(v.getLongBytes(e.getCrc()));this.write(v.getLongBytes(s));this.write(v.getLongBytes(n));var c=e.getName();var h=e.getComment();var p=e.getCentralDirectoryExtra();if(t.usesUTF8ForNames()){c=Buffer.from(c);h=Buffer.from(h)}this.write(v.getShortBytes(c.length));this.write(v.getShortBytes(p.length));this.write(v.getShortBytes(h.length));this.write(g.SHORT_ZERO);this.write(v.getShortBytes(e.getInternalAttributes()));this.write(v.getLongBytes(e.getExternalAttributes()));if(i.file>g.ZIP64_MAGIC){this.write(v.getLongBytes(g.ZIP64_MAGIC))}else{this.write(v.getLongBytes(i.file))}this.write(c);this.write(p);this.write(h)};b.prototype._writeDataDescriptor=function(e){this.write(v.getLongBytes(g.SIG_DD));this.write(v.getLongBytes(e.getCrc()));if(e.isZip64()){this.write(v.getEightBytes(e.getCompressedSize()));this.write(v.getEightBytes(e.getSize()))}else{this.write(v.getLongBytes(e.getCompressedSize()));this.write(v.getLongBytes(e.getSize()))}};b.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var i=e.getName();var n=e.getLocalFileDataExtra();if(e.isZip64()){t.useDataDescriptor(true);e.setVersionNeededToExtract(g.MIN_VERSION_ZIP64)}if(t.usesUTF8ForNames()){i=Buffer.from(i)}e._offsets.file=this.offset;this.write(v.getLongBytes(g.SIG_LFH));this.write(v.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(v.getShortBytes(r));this.write(v.getLongBytes(e.getTimeDos()));e._offsets.data=this.offset;if(t.usesDataDescriptor()){this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(g.LONG_ZERO)}else{this.write(v.getLongBytes(e.getCrc()));this.write(v.getLongBytes(e.getCompressedSize()));this.write(v.getLongBytes(e.getSize()))}this.write(v.getShortBytes(i.length));this.write(v.getShortBytes(n.length));this.write(i);this.write(n);e._offsets.contents=this.offset};b.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};b.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>g.ZIP64_MAGIC_SHORT||this._archive.centralLength>g.ZIP64_MAGIC||this._archive.centralOffset>g.ZIP64_MAGIC};b.prototype.setComment=function(e){this._archive.comment=e}},7288:function(e,t,r){e.exports={ArchiveEntry:r(2806),ZipArchiveEntry:r(6580),ArchiveOutputStream:r(9682),ZipArchiveOutputStream:r(4724)}},9244:function(e,t,r){var i=r(2203).Stream;var n=r(1643).PassThrough;var s=e.exports={};s.isStream=function(e){return e instanceof i};s.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(s.isStream(e)&&!e._readableState){var t=new n;e.pipe(t);return t}return e}},8401:function(e){e.exports=function(e,r){var i=[];for(var n=0;n<e.length;n++){var s=r(e[n],n);if(t(s))i.push.apply(i,s);else i.push(s)}return i};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},9810:function(e,t,r){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=r(181).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},3778:function(e,t){
50
50
  /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
51
- var r;(function(e){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){e(t)}else{}}else{e(r={})}})((function(e){e.version="1.2.2";function signed_crc_table(){var e=0,t=new Array(256);for(var r=0;r!=256;++r){e=r;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;t[r]=e}return typeof Int32Array!=="undefined"?new Int32Array(t):t}var t=signed_crc_table();function slice_by_16_tables(e){var t=0,r=0,i=0,n=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(i=0;i!=256;++i)n[i]=e[i];for(i=0;i!=256;++i){r=e[i];for(t=256+i;t<4096;t+=256)r=n[t]=r>>>8^e[r&255]}var s=[];for(i=1;i!=16;++i)s[i-1]=typeof Int32Array!=="undefined"?n.subarray(i*256,i*256+256):n.slice(i*256,i*256+256);return s}var r=slice_by_16_tables(t);var i=r[0],n=r[1],s=r[2],o=r[3],c=r[4];var h=r[5],p=r[6],g=r[7],y=r[8],v=r[9];var b=r[10],_=r[11],w=r[12],x=r[13],S=r[14];function crc32_bstr(e,r){var i=r^-1;for(var n=0,s=e.length;n<s;)i=i>>>8^t[(i^e.charCodeAt(n++))&255];return~i}function crc32_buf(e,r){var k=r^-1,C=e.length-15,E=0;for(;E<C;)k=S[e[E++]^k&255]^x[e[E++]^k>>8&255]^w[e[E++]^k>>16&255]^_[e[E++]^k>>>24]^b[e[E++]]^v[e[E++]]^y[e[E++]]^g[e[E++]]^p[e[E++]]^h[e[E++]]^c[e[E++]]^o[e[E++]]^s[e[E++]]^n[e[E++]]^i[e[E++]]^t[e[E++]];C+=15;while(E<C)k=k>>>8^t[(k^e[E++])&255];return~k}function crc32_str(e,r){var i=r^-1;for(var n=0,s=e.length,o=0,c=0;n<s;){o=e.charCodeAt(n++);if(o<128){i=i>>>8^t[(i^o)&255]}else if(o<2048){i=i>>>8^t[(i^(192|o>>6&31))&255];i=i>>>8^t[(i^(128|o&63))&255]}else if(o>=55296&&o<57344){o=(o&1023)+64;c=e.charCodeAt(n++)&1023;i=i>>>8^t[(i^(240|o>>8&7))&255];i=i>>>8^t[(i^(128|o>>2&63))&255];i=i>>>8^t[(i^(128|c>>6&15|(o&3)<<4))&255];i=i>>>8^t[(i^(128|c&63))&255]}else{i=i>>>8^t[(i^(224|o>>12&15))&255];i=i>>>8^t[(i^(128|o>>6&63))&255];i=i>>>8^t[(i^(128|o&63))&255]}}return~i}e.table=t;e.bstr=crc32_bstr;e.buf=crc32_buf;e.str=crc32_str}))},8341:function(e,t,r){"use strict";const{Transform:i}=r(1643);const n=r(3778);class CRC32Stream extends i{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(e,t,r){if(e){this.checksum=n.buf(e,this.checksum)>>>0;this.rawSize+=e.length}r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}e.exports=CRC32Stream},559:function(e,t,r){"use strict";const{DeflateRaw:i}=r(3106);const n=r(3778);class DeflateCRC32Stream extends i{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(e,t){if(e){this.compressedSize+=e.length}return super.push(e,t)}_transform(e,t,r){if(e){this.checksum=n.buf(e,this.checksum)>>>0;this.rawSize+=e.length}super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=false){if(e){return this.compressedSize}else{return this.rawSize}}}e.exports=DeflateCRC32Stream},655:function(e,t,r){"use strict";e.exports={CRC32Stream:r(8341),DeflateCRC32Stream:r(559)}},1742:function(e){!function(t,r){true?e.exports=r():0}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var r,i=o.meridiem;if(i){for(var n=1;n<=24;n+=1)if(e.indexOf(i(n,0,t))>-1){r=n>12;break}}else r=e===(t?"pm":"PM");return r},h={A:[s,function(e){this.afternoon=d(e,!1)}],a:[s,function(e){this.afternoon=d(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*+e}],SS:[i,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,f("seconds")],ss:[n,f("seconds")],m:[n,f("minutes")],mm:[n,f("minutes")],H:[n,f("hours")],h:[n,f("hours")],HH:[n,f("hours")],hh:[n,f("hours")],D:[n,f("day")],DD:[i,f("day")],Do:[s,function(e){var t=o.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],w:[n,f("week")],ww:[i,f("week")],M:[n,f("month")],MM:[i,f("month")],MMM:[s,function(e){var t=u("months"),r=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[s,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(e){this.year=a(e)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function l(r){var i,n;i=r,n=o&&o.formats;for(var s=(r=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var s=i&&i.toUpperCase();return r||n[i]||e[i]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(t),c=s.length,p=0;p<c;p+=1){var g=s[p],y=h[g],v=y&&y[0],b=y&&y[1];s[p]=b?{regex:v,parser:b}:g.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,i=0;r<c;r+=1){var n=s[r];if("string"==typeof n)i+=n.length;else{var o=n.regex,h=n.parser,p=e.slice(i),g=o.exec(p)[0];h.call(t,g),e=e.replace(g,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var i=t.prototype,n=i.parse;i.parse=function(e){var t=e.date,i=e.utc,s=e.args;this.$u=i;var c=s[1];if("string"==typeof c){var h=!0===s[2],p=!0===s[3],g=h||p,y=s[2];p&&(y=s[2]),o=this.$locale(),!h&&y&&(o=r.Ls[y]),this.$d=function(e,t,r,i){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=l(t)(e),s=n.year,o=n.month,c=n.day,h=n.hours,p=n.minutes,g=n.seconds,y=n.milliseconds,v=n.zone,b=n.week,_=new Date,w=c||(s||o?1:_.getDate()),x=s||_.getFullYear(),S=0;s&&!o||(S=o>0?o-1:_.getMonth());var k,C=h||0,E=p||0,R=g||0,O=y||0;return v?new Date(Date.UTC(x,S,w,C,E,R,O+60*v.offset*1e3)):r?new Date(Date.UTC(x,S,w,C,E,R,O)):(k=new Date(x,S,w,C,E,R,O),b&&(k=i(k).week(b).toDate()),k)}catch(e){return new Date("")}}(t,c,i,r),this.init(),y&&!0!==y&&(this.$L=this.locale(y).$L),g&&t!=this.format(c)&&(this.$d=new Date("")),o={}}else if(c instanceof Array)for(var v=c.length,b=1;b<=v;b+=1){s[1]=c[b-1];var _=r.apply(this,s);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}b===v&&(this.$d=new Date(""))}else n.call(this,e)}}}))},4713:function(e){!function(t,r){true?e.exports=r():0}(this,(function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(i,n,s){var o=n.prototype;s.utc=function(e){var t={date:e,utc:!0,args:arguments};return new n(t)},o.utc=function(t){var r=s(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),c.call(this,e)};var h=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else h.call(this)};var p=o.utcOffset;o.utcOffset=function(i,n){var s=this.$utils().u;if(s(i))return this.$u?0:s(this.$offset)?p.call(this):this.$offset;if("string"==typeof i&&(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var n=(""+i[0]).match(r)||["-",0,0],s=n[0],o=60*+n[1]+ +n[2];return 0===o?0:"+"===s?o:-o}(i),null===i))return this;var o=Math.abs(i)<=16?60*i:i,c=this;if(n)return c.$offset=o,c.$u=0===i,c;if(0!==i){var h=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(c=this.local().add(o+h,e)).$offset=o,c.$x.$localOffset=h}else c=this.utc();return c};var g=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var y=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var v=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return v.call(this,e,t,r);var i=this.local(),n=s(e).local();return v.call(i,n,t,r)}}}))},9109:function(e,t,r){"use strict";var i=r(1397);function DuplexWrapper(e,t,r){if(typeof r==="undefined"){r=t;t=e;e=null}i.Duplex.call(this,e);if(typeof r.read!=="function"){r=new i.Readable(e).wrap(r)}this._writable=t;this._readable=r;this._waiting=false;var n=this;t.once("finish",(function(){n.end()}));this.once("finish",(function(){t.end()}));r.on("readable",(function(){if(n._waiting){n._waiting=false;n._read()}}));r.once("end",(function(){n.push(null)}));if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",(function(e){n.emit("error",e)}));r.on("error",(function(e){n.emit("error",e)}))}}DuplexWrapper.prototype=Object.create(i.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,r){this._writable.write(e,t,r)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,r){return new DuplexWrapper(e,t,r)};e.exports.DuplexWrapper=DuplexWrapper},5859:function(e,t,r){var i=r(8068);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=i(r||noop);var n=e._writableState;var s=e._readableState;var o=t.readable||t.readable!==false&&e.readable;var c=t.writable||t.writable!==false&&e.writable;var h=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){c=false;if(!o)r.call(e)};var onend=function(){o=false;if(!c)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(h)return;if(o&&!(s&&(s.ended&&!s.destroyed)))return r.call(e,new Error("premature close"));if(c&&!(n&&(n.ended&&!n.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(c&&!n){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){h=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},985:function(e,t,r){if(parseInt(process.versions.node.split(".")[0],10)<10){throw new Error("For node versions older than 10, please use the ES5 Import: https://github.com/exceljs/exceljs#es5-imports")}e.exports=r(6181)},1589:function(e,t,r){const i=r(9896);const n=r(1067);const s=r(1742);const o=r(4713);const c=r(7127).extend(s).extend(o);const h=r(6);const{fs:{exists:p}}=r(9145);const g={true:true,false:false,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};class CSV{constructor(e){this.workbook=e;this.worksheet=null}async readFile(e,t){t=t||{};if(!await p(e)){throw new Error(`File not found: ${e}`)}const r=i.createReadStream(e);const n=await this.read(r,t);r.close();return n}read(e,t){t=t||{};return new Promise(((r,i)=>{const s=this.workbook.addWorksheet(t.sheetName);const o=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"];const h=t.map||function(e){if(e===""){return null}const t=Number(e);if(!Number.isNaN(t)&&t!==Infinity){return t}const r=o.reduce(((t,r)=>{if(t){return t}const i=c(e,r,true);if(i.isValid()){return i}return null}),null);if(r){return new Date(r.valueOf())}const i=g[e];if(i!==undefined){return i}return e};const p=n.parse(t.parserOptions).on("data",(e=>{s.addRow(e.map(h))})).on("end",(()=>{p.emit("worksheet",s)}));p.on("worksheet",r).on("error",i);e.pipe(p)}))}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise(((r,i)=>{t=t||{};const s=this.workbook.getWorksheet(t.sheetName||t.sheetId);const o=n.format(t.formatterOptions);e.on("finish",(()=>{r()}));o.on("error",i);o.pipe(e);const{dateFormat:h,dateUTC:p}=t;const g=t.map||(e=>{if(e){if(e.text||e.hyperlink){return e.hyperlink||e.text||""}if(e.formula||e.result){return e.result||""}if(e instanceof Date){if(h){return p?c.utc(e).format(h):c(e).format(h)}return p?c.utc(e).format():c(e).format()}if(e.error){return e.error}if(typeof e==="object"){return JSON.stringify(e)}}return e});const y=t.includeEmptyRows===undefined||t.includeEmptyRows;let v=1;if(s){s.eachRow(((e,t)=>{if(y){while(v++<t-1){o.write([])}}const{values:r}=e;r.shift();o.write(r.map(g));v=t}))}o.end()}))}writeFile(e,t){t=t||{};const r={encoding:t.encoding||"utf8"};const n=i.createWriteStream(e,r);return this.write(n,t)}async writeBuffer(e){const t=new h;await this.write(t,e);return t.read()}}e.exports=CSV},5110:function(e,t,r){"use strict";const i=r(6289);class Anchor{constructor(e,t,r=0){this.worksheet=e;if(!t){this.nativeCol=0;this.nativeColOff=0;this.nativeRow=0;this.nativeRowOff=0}else if(typeof t==="string"){const e=i.decodeAddress(t);this.nativeCol=e.col+r;this.nativeColOff=0;this.nativeRow=e.row+r;this.nativeRowOff=0}else if(t.nativeCol!==undefined){this.nativeCol=t.nativeCol||0;this.nativeColOff=t.nativeColOff||0;this.nativeRow=t.nativeRow||0;this.nativeRowOff=t.nativeRowOff||0}else if(t.col!==undefined){this.col=t.col+r;this.row=t.row+r}else{this.nativeCol=0;this.nativeColOff=0;this.nativeRow=0;this.nativeRowOff=0}}static asInstance(e){return e instanceof Anchor||e==null?e:new Anchor(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e);this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e);this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(this.worksheet.getColumn(this.nativeCol+1).width*1e4):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(this.worksheet.getRow(this.nativeRow+1).height*1e4):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol;this.nativeColOff=e.nativeColOff;this.nativeRow=e.nativeRow;this.nativeRowOff=e.nativeRowOff}}e.exports=Anchor},1903:function(e,t,r){const i=r(6289);const n=r(2563);const s=r(4041);const{slideFormula:o}=r(5408);const c=r(9983);class Cell{constructor(e,t,r){if(!e||!t){throw new Error("A Cell needs a Row")}this._row=e;this._column=t;i.validateAddress(r);this._address=r;this._value=h.create(Cell.Types.Null,this);this.style=this._mergeStyle(e.style,t.style,{});this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style;delete this._value;delete this._row;delete this._column;delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,r){const i=e&&e.numFmt||t&&t.numFmt;if(i)r.numFmt=i;const n=e&&e.font||t&&t.font;if(n)r.font=n;const s=e&&e.alignment||t&&t.alignment;if(s)r.alignment=s;const o=e&&e.border||t&&t.border;if(o)r.border=o;const c=e&&e.fill||t&&t.fill;if(c)r.fill=c;const h=e&&e.protection||t&&t.protection;if(h)r.protection=h;return r}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===Cell.Types.Merge}merge(e,t){this._value.release();this._value=h.create(Cell.Types.Merge,this,e);if(!t){this.style=e.style}}unmerge(){if(this.type===Cell.Types.Merge){this._value.release();this._value=h.create(Cell.Types.Null,this);this.style=this._mergeStyle(this._row.style,this._column.style,{})}}isMergedTo(e){if(this._value.type!==Cell.Types.Merge)return false;return this._value.isMergedTo(e)}get master(){if(this.type===Cell.Types.Merge){return this._value.master}return this}get isHyperlink(){return this._value.type===Cell.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){if(this.type===Cell.Types.Merge){this._value.master.value=e;return}this._value.release();this._value=h.create(h.getType(e),this,e)}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new c(e)}get text(){return this._value.toString()}get html(){return n.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){if(this.type===Cell.Types.String){this._value=h.create(Cell.Types.Hyperlink,this,{text:this._value.value,hyperlink:e})}}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress);e.forEach((e=>{t.addEx(this.fullAddress,e)}))}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;e.style=this.style;if(this._comment){e.comment=this._comment.model}return e}set model(e){this._value.release();this._value=h.create(e.type,this);this._value.model=e;if(e.comment){switch(e.comment.type){case"note":this._comment=c.fromModel(e.comment);break}}if(e.style){this.style=e.style}else{this.style={}}}}Cell.Types=s.ValueType;class NullValue{constructor(e){this.model={address:e.address,type:Cell.Types.Null}}get value(){return null}set value(e){}get type(){return Cell.Types.Null}get effectiveType(){return Cell.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}class NumberValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Number}get effectiveType(){return Cell.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class StringValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.String}get effectiveType(){return Cell.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}class RichTextValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map((e=>e.text)).join("")}get type(){return Cell.Types.RichText}get effectiveType(){return Cell.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}class DateValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Date}get effectiveType(){return Cell.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}class HyperlinkValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Hyperlink,text:t?t.text:undefined,hyperlink:t?t.hyperlink:undefined};if(t&&t.tooltip){this.model.tooltip=t.tooltip}}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};if(this.model.tooltip){e.tooltip=this.model.tooltip}return e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink};if(e.tooltip){this.model.tooltip=e.tooltip}}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return Cell.Types.Hyperlink}get effectiveType(){return Cell.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}class MergeValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Merge,master:t?t.address:undefined};this._master=t;if(t){t.addMergeRef()}}get value(){return this._master.value}set value(e){if(e instanceof Cell){if(this._master){this._master.releaseMergeRef()}e.addMergeRef();this._master=e}else{this._master.value=e}}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return Cell.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}class FormulaValue{constructor(e,t){this.cell=e;this.model={address:e.address,type:Cell.Types.Formula,shareType:t?t.shareType:undefined,ref:t?t.ref:undefined,formula:t?t.formula:undefined,sharedFormula:t?t.sharedFormula:undefined,result:t?t.result:undefined}}_copyModel(e){const t={};const cp=r=>{const i=e[r];if(i){t[r]=i}};cp("formula");cp("result");cp("ref");cp("shareType");cp("sharedFormula");return t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(h.getType(e)){case Cell.Types.Null:case Cell.Types.String:case Cell.Types.Number:case Cell.Types.Date:break;case Cell.Types.Hyperlink:case Cell.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){const e=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g);const t=this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g);return{ranges:e,cells:t}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){if(this.model.formula){return s.FormulaType.Master}if(this.model.sharedFormula){return s.FormulaType.Shared}return s.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return Cell.Types.Formula}get effectiveType(){const e=this.model.result;if(e===null||e===undefined){return s.ValueType.Null}if(e instanceof String||typeof e==="string"){return s.ValueType.String}if(typeof e==="number"){return s.ValueType.Number}if(e instanceof Date){return s.ValueType.Date}if(e.text&&e.hyperlink){return s.ValueType.Hyperlink}if(e.formula){return s.ValueType.Formula}return s.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell;const t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&o(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}class SharedStringValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.SharedString}get effectiveType(){return Cell.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class BooleanValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Boolean}get effectiveType(){return Cell.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}class ErrorValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Error}get effectiveType(){return Cell.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}class JSONValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e;this.model.value=JSON.stringify(e)}get type(){return Cell.Types.String}get effectiveType(){return Cell.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}const h={getType(e){if(e===null||e===undefined){return Cell.Types.Null}if(e instanceof String||typeof e==="string"){return Cell.Types.String}if(typeof e==="number"){return Cell.Types.Number}if(typeof e==="boolean"){return Cell.Types.Boolean}if(e instanceof Date){return Cell.Types.Date}if(e.text&&e.hyperlink){return Cell.Types.Hyperlink}if(e.formula||e.sharedFormula){return Cell.Types.Formula}if(e.richText){return Cell.Types.RichText}if(e.sharedString){return Cell.Types.SharedString}if(e.error){return Cell.Types.Error}return Cell.Types.JSON},types:[{t:Cell.Types.Null,f:NullValue},{t:Cell.Types.Number,f:NumberValue},{t:Cell.Types.String,f:StringValue},{t:Cell.Types.Date,f:DateValue},{t:Cell.Types.Hyperlink,f:HyperlinkValue},{t:Cell.Types.Formula,f:FormulaValue},{t:Cell.Types.Merge,f:MergeValue},{t:Cell.Types.JSON,f:JSONValue},{t:Cell.Types.SharedString,f:SharedStringValue},{t:Cell.Types.RichText,f:RichTextValue},{t:Cell.Types.Boolean,f:BooleanValue},{t:Cell.Types.Error,f:ErrorValue}].reduce(((e,t)=>{e[t.t]=t.f;return e}),[]),create(e,t,r){const i=this.types[e];if(!i){throw new Error(`Could not create Value of type ${e}`)}return new i(t,r)}};e.exports=Cell},6793:function(e,t,r){"use strict";const i=r(2563);const n=r(4041);const s=r(6289);const o=9;class Column{constructor(e,t,r){this._worksheet=e;this._number=t;if(r!==false){this.defn=r}}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==undefined&&this.width!==o}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){if(e){this.key=e.key;this.width=e.width!==undefined?e.width:o;this.outlineLevel=e.outlineLevel;if(e.style){this.style=e.style}else{this.style={}}this.header=e.header;this._hidden=!!e.hidden}else{delete this._header;delete this._key;delete this.width;this.style={};this.outlineLevel=0}}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){if(e!==undefined){this._header=e;this.headers.forEach(((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e}))}else{this._header=undefined}}get key(){return this._key}set key(e){const t=this._key&&this._worksheet.getColumnKey(this._key);if(t===this){this._worksheet.deleteColumnKey(this._key)}this._key=e;if(e){this._worksheet.setColumnKey(this._key,this)}}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:undefined})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&i.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth){return false}if(this.hidden){return false}if(this.outlineLevel){return false}const e=this.style;if(e&&(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)){return false}return true}get headerCount(){return this.headers.length}eachCell(e,t){const r=this.number;if(!t){t=e;e=null}this._worksheet.eachRow(e,((e,i)=>{t(e.getCell(r),i)}))}get values(){const e=[];this.eachCell(((t,r)=>{if(t&&t.type!==n.ValueType.Null){e[r]=t.value}}));return e}set values(e){if(!e){return}const t=this.number;let r=0;if(e.hasOwnProperty("0")){r=1}e.forEach(((e,i)=>{this._worksheet.getCell(i+r,t).value=e}))}_applyStyle(e,t){this.style[e]=t;this.eachCell((r=>{r[e]=t}));return t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let r=null;if(e){e.forEach(((e,i)=>{if(e.isDefault){if(r){r=null}}else if(!r||!e.equivalentTo(r)){r={min:i+1,max:i+1,width:e.width!==undefined?e.width:o,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed};t.push(r)}else{r.max=i+1}}))}return t.length?t:undefined}static fromModel(e,t){t=t||[];const r=[];let i=1;let n=0;t=t.sort((function(e,t){return e.min-t.min}));while(n<t.length){const s=t[n++];while(i<s.min){r.push(new Column(e,i++))}while(i<=s.max){r.push(new Column(e,i++,s))}}return r.length?r:null}}e.exports=Column},2910:function(e){class DataValidations{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=undefined}}e.exports=DataValidations},7707:function(e,t,r){"use strict";const i=r(2563);const n=r(6289);const s=r(7410);const o=r(2514);const c=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;class DefinedNames{constructor(){this.matrixMap={}}getMatrix(e){const t=this.matrixMap[e]||(this.matrixMap[e]=new s);return t}add(e,t){const r=n.decodeEx(e);this.addEx(r,t)}addEx(e,t){const r=this.getMatrix(t);if(e.top){for(let t=e.left;t<=e.right;t++){for(let i=e.top;i<=e.bottom;i++){const s={sheetName:e.sheetName,address:n.n2l(t)+i,row:i,col:t};r.addCellEx(s)}}}else{r.addCellEx(e)}}remove(e,t){const r=n.decodeEx(e);this.removeEx(r,t)}removeEx(e,t){const r=this.getMatrix(t);r.removeCellEx(e)}removeAllNames(e){i.each(this.matrixMap,(t=>{t.removeCellEx(e)}))}forEach(e){i.each(this.matrixMap,((t,r)=>{t.forEach((t=>{e(r,t)}))}))}getNames(e){return this.getNamesEx(n.decodeEx(e))}getNamesEx(e){return i.map(this.matrixMap,((t,r)=>t.findCellEx(e)&&r)).filter(Boolean)}_explore(e,t){t.mark=false;const{sheetName:r}=t;const i=new o(t.row,t.col,t.row,t.col,r);let n;let s;function vGrow(n,s){const o=e.findCellAt(r,n,t.col);if(!o||!o.mark){return false}i[s]=n;o.mark=false;return true}for(s=t.row-1;vGrow(s,"top");s--);for(s=t.row+1;vGrow(s,"bottom");s++);function hGrow(t,n){const o=[];for(s=i.top;s<=i.bottom;s++){const i=e.findCellAt(r,s,t);if(i&&i.mark){o.push(i)}else{return false}}i[n]=t;for(let e=0;e<o.length;e++){o[e].mark=false}return true}for(n=t.col-1;hGrow(n,"left");n--);for(n=t.col+1;hGrow(n,"right");n++);return i}getRanges(e,t){t=t||this.matrixMap[e];if(!t){return{name:e,ranges:[]}}t.forEach((e=>{e.mark=true}));const r=t.map((e=>e.mark&&this._explore(t,e))).filter(Boolean).map((e=>e.$shortRange));return{name:e,ranges:r}}normaliseMatrix(e,t){e.forEachInSheet(t,((e,t,r)=>{if(e){if(e.row!==t||e.col!==r){e.row=t;e.col=r;e.address=n.n2l(r)+t}}}))}spliceRows(e,t,r,n){i.each(this.matrixMap,(i=>{i.spliceRows(e,t,r,n);this.normaliseMatrix(i,e)}))}spliceColumns(e,t,r,n){i.each(this.matrixMap,(i=>{i.spliceColumns(e,t,r,n);this.normaliseMatrix(i,e)}))}get model(){return i.map(this.matrixMap,((e,t)=>this.getRanges(t,e))).filter((e=>e.ranges.length))}set model(e){const t=this.matrixMap={};e.forEach((e=>{const r=t[e.name]=new s;e.ranges.forEach((e=>{if(c.test(e.split("!").pop()||"")){r.addCell(e)}}))}))}}e.exports=DefinedNames},4041:function(e){"use strict";e.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},5210:function(e,t,r){const i=r(6289);const n=r(5110);class Image{constructor(e,t){this.worksheet=e;this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model({type:e,imageId:t,range:r,hyperlinks:s}){this.type=e;this.imageId=t;if(e==="image"){if(typeof r==="string"){const e=i.decode(r);this.range={tl:new n(this.worksheet,{col:e.left,row:e.top},-1),br:new n(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else{this.range={tl:new n(this.worksheet,r.tl,0),br:r.br&&new n(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:s||r.hyperlinks}}}}}e.exports=Image},7275:function(e,t,r){"use strict";const i=r(8117);class ModelContainer{constructor(e){this.model=e}get xlsx(){if(!this._xlsx){this._xlsx=new i(this)}return this._xlsx}}e.exports=ModelContainer},9983:function(e,t,r){const i=r(2563);class Note{constructor(e){this.note=e}get model(){let e=null;switch(typeof this.note){case"string":e={type:"note",note:{texts:[{text:this.note}]}};break;default:e={type:"note",note:this.note};break}return i.deepMerge({},Note.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e;const{texts:r}=t;if(r.length===1&&Object.keys(r[0]).length===1){this.note=r[0].text}else{this.note=t}}static fromModel(e){const t=new Note;t.model=e;return t}}Note.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}};e.exports=Note},2514:function(e,t,r){const i=r(6289);class Range{constructor(){this.decode(arguments)}setTLBR(e,t,r,n,s){if(arguments.length<4){const n=i.decodeAddress(e);const o=i.decodeAddress(t);this.model={top:Math.min(n.row,o.row),left:Math.min(n.col,o.col),bottom:Math.max(n.row,o.row),right:Math.max(n.col,o.col),sheetName:r};this.setTLBR(n.row,n.col,o.row,o.col,s)}else{this.model={top:Math.min(e,r),left:Math.min(t,n),bottom:Math.max(e,r),right:Math.max(t,n),sheetName:s}}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof Range){this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName}}else if(t instanceof Array){this.decode(t)}else if(t.top&&t.left&&t.bottom&&t.right){this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName}}else{const e=i.decodeEx(t);if(e.top){this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}}else{this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error(`Invalid number of arguments to _getDimensions() - ${e.length}`)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;if(e){if(/^[a-zA-Z0-9]*$/.test(e)){return`${e}!`}return`'${e}'!`}return""}expand(e,t,r,i){if(!this.model.top||e<this.top)this.top=e;if(!this.model.left||t<this.left)this.left=t;if(!this.model.bottom||r>this.bottom)this.bottom=r;if(!this.model.right||i>this.right)this.right=i}expandRow(e){if(e){const{dimensions:t,number:r}=e;if(t){this.expand(r,t.min,r,t.max)}}}expandToAddress(e){const t=i.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return i.n2l(this.left)+this.top}get $t$l(){return`$${i.n2l(this.left)}$${this.top}`}get br(){return i.n2l(this.right)+this.bottom}get $b$r(){return`$${i.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){if(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName)return false;if(e.bottom<this.top)return false;if(e.top>this.bottom)return false;if(e.right<this.left)return false;if(e.left>this.right)return false;return true}contains(e){const t=i.decodeEx(e);return this.containsEx(t)}containsEx(e){if(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName)return false;return e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++){for(let r=this.top;r<=this.bottom;r++){e(i.encodeAddress(r,t),r,t)}}}}e.exports=Range},7767:function(e,t,r){"use strict";const i=r(2563);const n=r(4041);const s=r(6289);const o=r(1903);class Row{constructor(e,t){this._worksheet=e;this._number=t;this._cells=[];this.style={};this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet;delete this._cells;delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const r=this._worksheet.getColumn(e.col);t=new o(this,r,e.address);this._cells[e.col-1]=t}return t}getCell(e){if(typeof e==="string"){const t=this._worksheet.getColumnKey(e);if(t){e=t.number}else{e=s.l2n(e)}}return this._cells[e-1]||this.getCellEx({address:s.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t,...r){const i=e+t;const n=r.length-t;const s=this._cells.length;let o;let c;let h;if(n<0){for(o=e+r.length;o<=s;o++){h=this._cells[o-1];c=this._cells[o-n-1];if(c){h=this.getCell(o);h.value=c.value;h.style=c.style;h._comment=c._comment}else if(h){h.value=null;h.style={};h._comment=undefined}}}else if(n>0){for(o=s;o>=i;o--){c=this._cells[o-1];if(c){h=this.getCell(o+n);h.value=c.value;h.style=c.style;h._comment=c._comment}else{this._cells[o+n-1]=undefined}}}for(o=0;o<r.length;o++){h=this.getCell(e+o);h.value=r[o];h.style={};h._comment=undefined}}eachCell(e,t){if(!t){t=e;e=null}if(e&&e.includeEmpty){const e=this._cells.length;for(let r=1;r<=e;r++){t(this.getCell(r),r)}}else{this._cells.forEach(((e,r)=>{if(e&&e.type!==n.ValueType.Null){t(e,r+1)}}))}}addPageBreak(e,t){const r=this._worksheet;const i=Math.max(0,e-1)||0;const n=Math.max(0,t-1)||16838;const s={id:this._number,max:n,man:1};if(i)s.min=i;r.rowBreaks.push(s)}get values(){const e=[];this._cells.forEach((t=>{if(t&&t.type!==n.ValueType.Null){e[t.col]=t.value}}));return e}set values(e){this._cells=[];if(!e){}else if(e instanceof Array){let t=0;if(e.hasOwnProperty("0")){t=1}e.forEach(((e,r)=>{if(e!==undefined){this.getCellEx({address:s.encodeAddress(this._number,r+t),row:this._number,col:r+t}).value=e}}))}else{this._worksheet.eachColumnKey(((t,r)=>{if(e[r]!==undefined){this.getCellEx({address:s.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[r]}}))}}get hasValues(){return i.some(this._cells,(e=>e&&e.type!==n.ValueType.Null))}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;this.eachCell((()=>{e++}));return e}get dimensions(){let e=0;let t=0;this._cells.forEach((r=>{if(r&&r.type!==n.ValueType.Null){if(!e||e>r.col){e=r.col}if(t<r.col){t=r.col}}}));return e>0?{min:e,max:t}:null}_applyStyle(e,t){this.style[e]=t;this._cells.forEach((r=>{if(r){r[e]=t}}));return t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0;let r=0;this._cells.forEach((i=>{if(i){const n=i.model;if(n){if(!t||t>i.col){t=i.col}if(r<i.col){r=i.col}e.push(n)}}}));return this.height||e.length?{cells:e,number:this.number,min:t,max:r,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number){throw new Error("Invalid row number in model")}this._cells=[];let t;e.cells.forEach((e=>{switch(e.type){case o.Types.Merge:break;default:{let r;if(e.address){r=s.decodeAddress(e.address)}else if(t){const{row:e}=t;const i=t.col+1;r={row:e,col:i,address:s.encodeAddress(e,i),$col$row:`$${s.n2l(i)}$${e}`}}t=r;const i=this.getCellEx(r);i.model=e;break}}}));if(e.height){this.height=e.height}else{delete this.height}this.hidden=e.hidden;this.outlineLevel=e.outlineLevel||0;this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}e.exports=Row},6983:function(e,t,r){const i=r(6289);class Column{constructor(e,t,r){this.table=e;this.column=t;this.index=r}_set(e,t){this.table.cacheState();this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}class Table{constructor(e,t){this.worksheet=e;if(t){this.table=t;this.validate();this.store()}}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error(`Invalid Totals Row Function: ${e.totalsRowFunction}`)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:e}=this;const assign=(e,t,r)=>{if(e[t]===undefined){e[t]=r}};assign(e,"headerRow",true);assign(e,"totalsRow",false);assign(e,"style",{});assign(e.style,"theme","TableStyleMedium2");assign(e.style,"showFirstColumn",false);assign(e.style,"showLastColumn",false);assign(e.style,"showRowStripes",false);assign(e.style,"showColumnStripes",false);const assert=(e,t)=>{if(!e){throw new Error(t)}};assert(e.ref,"Table must have ref");assert(e.columns,"Table must have column definitions");assert(e.rows,"Table must have row definitions");e.tl=i.decodeAddress(e.ref);const{row:t,col:r}=e.tl;assert(t>0,"Table must be on valid row");assert(r>0,"Table must be on valid col");const{width:n,filterHeight:s,tableHeight:o}=this;e.autoFilterRef=i.encode(t,r,t+s-1,r+n-1);e.tableRef=i.encode(t,r,t+o-1,r+n-1);e.columns.forEach(((e,t)=>{assert(e.name,`Column ${t} must have a name`);if(t===0){assign(e,"totalsRowLabel","Total")}else{assign(e,"totalsRowFunction","none");e.totalsRowFormula=this.getFormula(e)}}))}store(){const assignStyle=(e,t)=>{if(t){Object.keys(t).forEach((r=>{e[r]=t[r]}))}};const{worksheet:e,table:t}=this;const{row:r,col:i}=t.tl;let n=0;if(t.headerRow){const s=e.getRow(r+n++);t.columns.forEach(((e,t)=>{const{style:r,name:n}=e;const o=s.getCell(i+t);o.value=n;assignStyle(o,r)}))}t.rows.forEach((s=>{const o=e.getRow(r+n++);s.forEach(((e,r)=>{const n=o.getCell(i+r);n.value=e;assignStyle(n,t.columns[r].style)}))}));if(t.totalsRow){const s=e.getRow(r+n++);t.columns.forEach(((e,t)=>{const r=s.getCell(i+t);if(t===0){r.value=e.totalsRowLabel}else{const t=this.getFormula(e);if(t){r.value={formula:e.totalsRowFormula,result:e.totalsRowResult}}else{r.value=null}}assignStyle(r,e.style)}))}}load(e){const{table:t}=this;const{row:r,col:i}=t.tl;let n=0;if(t.headerRow){const s=e.getRow(r+n++);t.columns.forEach(((e,t)=>{const r=s.getCell(i+t);r.value=e.name}))}t.rows.forEach((t=>{const s=e.getRow(r+n++);t.forEach(((e,t)=>{const r=s.getCell(i+t);r.value=e}))}));if(t.totalsRow){const s=e.getRow(r+n++);t.columns.forEach(((e,t)=>{const r=s.getCell(i+t);if(t===0){r.value=e.totalsRowLabel}else{const t=this.getFormula(e);if(t){r.value={formula:e.totalsRowFormula,result:e.totalsRowResult}}}}))}}get model(){return this.table}set model(e){this.table=e}cacheState(){if(!this._cache){this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight}}}commit(){if(!this._cache){return}this.validate();const e=i.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref){for(let t=0;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++){const i=r.getCell(e.col+t);i.value=null}}}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++){const i=r.getCell(e.col+t);i.value=null}}for(let t=0;t<this.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++){const i=r.getCell(e.col+t);i.value=null}}}this.store()}addRow(e,t){this.cacheState();if(t===undefined){this.table.rows.push(e)}else{this.table.rows.splice(t,0,e)}}removeRows(e,t=1){this.cacheState();this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new Column(this,t,e)}addColumn(e,t,r){this.cacheState();if(r===undefined){this.table.columns.push(e);this.table.rows.forEach(((e,r)=>{e.push(t[r])}))}else{this.table.columns.splice(r,0,e);this.table.rows.forEach(((e,i)=>{e.splice(r,0,t[i])}))}}removeColumns(e,t=1){this.cacheState();this.table.columns.splice(e,t);this.table.rows.forEach((r=>{r.splice(e,t)}))}_assign(e,t,r){this.cacheState();e[t]=r}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}e.exports=Table},6171:function(e,t,r){"use strict";const i=r(3867);const n=r(7707);const s=r(8117);const o=r(1589);class Workbook{constructor(){this.category="";this.company="";this.created=new Date;this.description="";this.keywords="";this.manager="";this.modified=this.created;this.properties={};this.calcProperties={};this._worksheets=[];this.subject="";this.title="";this.views=[];this.media=[];this._definedNames=new n}get xlsx(){if(!this._xlsx)this._xlsx=new s(this);return this._xlsx}get csv(){if(!this._csv)this._csv=new o(this);return this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++){if(!this._worksheets[e]){return e}}return this._worksheets.length||1}addWorksheet(e,t){const r=this.nextId;if(t){if(typeof t==="string"){console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }');t={properties:{tabColor:{argb:t}}}}else if(t.argb||t.theme||t.indexed){console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }");t={properties:{tabColor:t}}}}const n=this._worksheets.reduce(((e,t)=>(t&&t.orderNo)>e?t.orderNo:e),0);const s=Object.assign({},t,{id:r,name:e,orderNo:n+1,workbook:this});const o=new i(s);this._worksheets[r]=o;return o}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);if(t){t.destroy()}}getWorksheet(e){if(e===undefined){return this._worksheets.find(Boolean)}if(typeof e==="number"){return this._worksheets[e]}if(typeof e==="string"){return this._worksheets.find((t=>t&&t.name===e))}return undefined}get worksheets(){return this._worksheets.slice(1).sort(((e,t)=>e.orderNo-t.orderNo)).filter(Boolean)}eachSheet(e){this.worksheets.forEach((t=>{e(t,t.id)}))}get definedNames(){return this._definedNames}clearThemes(){this._themes=undefined}addImage(e){const t=this.media.length;this.media.push(Object.assign({},e,{type:"image"}));return t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((e=>e.model)),sheets:this.worksheets.map((e=>e.model)).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator;this.lastModifiedBy=e.lastModifiedBy;this.lastPrinted=e.lastPrinted;this.created=e.created;this.modified=e.modified;this.company=e.company;this.manager=e.manager;this.title=e.title;this.subject=e.subject;this.keywords=e.keywords;this.category=e.category;this.description=e.description;this.language=e.language;this.revision=e.revision;this.contentStatus=e.contentStatus;this.properties=e.properties;this.calcProperties=e.calcProperties;this._worksheets=[];e.worksheets.forEach((t=>{const{id:r,name:n,state:s}=t;const o=e.sheets&&e.sheets.findIndex((e=>e.id===r));const c=this._worksheets[r]=new i({id:r,name:n,orderNo:o,state:s,workbook:this});c.model=t}));this._definedNames.model=e.definedNames;this.views=e.views;this._themes=e.themes;this.media=e.media||[]}}e.exports=Workbook},3867:function(e,t,r){const i=r(2563);const n=r(6289);const s=r(2514);const o=r(7767);const c=r(6793);const h=r(4041);const p=r(5210);const g=r(6983);const y=r(2910);const v=r(1924);const{copyStyle:b}=r(7307);class Worksheet{constructor(e){e=e||{};this._workbook=e.workbook;this.id=e.id;this.orderNo=e.orderNo;this.name=e.name;this.state=e.state||"visible";this._rows=[];this._columns=null;this._keys={};this._merges={};this.rowBreaks=[];this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties);this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!(e.pageSetup&&(e.pageSetup.fitToWidth||e.pageSetup.fitToHeight)&&!e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:false,draft:false,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:undefined,showRowColHeaders:false,showGridLines:false,firstPageNumber:undefined,horizontalCentered:false,verticalCentered:false,rowBreaks:null,colBreaks:null},e.pageSetup);this.headerFooter=Object.assign({},{differentFirst:false,differentOddEven:false,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter);this.dataValidations=new y;this.views=e.views||[];this.autoFilter=e.autoFilter||null;this._media=[];this.sheetProtection=null;this.tables={};this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(e===undefined){e=`sheet${this.id}`}if(this._name===e)return;if(typeof e!=="string"){throw new Error("The name has to be a string.")}if(e===""){throw new Error("The name can't be empty.")}if(e==="History"){throw new Error('The name "History" is protected. Please use a different name.')}if(/[*?:/\\[\]]/.test(e)){throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`)}if(/(^')|('$)/.test(e)){throw new Error(`The first or last character of worksheet name cannot be a single quotation mark: ${e}`)}if(e&&e.length>31){console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`);e=e.substring(0,31)}if(this._workbook._worksheets.find((t=>t&&t.name.toLowerCase()===e.toLowerCase()))){throw new Error(`Worksheet name already exists: ${e}`)}this._name=e}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new s;this._rows.forEach((t=>{if(t){const r=t.dimensions;if(r){e.expand(t.number,r.min,t.number,r.max)}}}));return e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=t.header&&1||t.headers&&t.headers.length||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const i=new c(this,t++,false);r.push(i);i.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){i.each(this._keys,e)}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t)return t;e=n.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new c(this,t++))}}return this._columns[e-1]}spliceColumns(e,t,...r){const i=this._rows;const n=i.length;if(r.length>0){for(let i=0;i<n;i++){const n=[e,t];r.forEach((e=>{n.push(e[i]||null)}));const s=this.getRow(i+1);s.splice.apply(s,n)}}else{this._rows.forEach((r=>{if(r){r.splice(e,t)}}))}const s=r.length-t;const o=e+t;const c=this._columns.length;if(s<0){for(let t=e+r.length;t<=c;t++){this.getColumn(t).defn=this.getColumn(t-s).defn}}else if(s>0){for(let e=c;e>=o;e--){this.getColumn(e+s).defn=this.getColumn(e).defn}}for(let t=e;t<e+r.length;t++){this.getColumn(t).defn=null}this.workbook.definedNames.spliceColumns(this.name,e,t,r.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;this.eachRow((t=>{e=Math.max(e,t.cellCount)}));return e}get actualColumnCount(){const e=[];let t=0;this.eachRow((r=>{r.eachCell((({col:r})=>{if(!e[r]){e[r]=true;t++}}))}));return t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;while(t>0&&e[t-1]===undefined){t--}return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length){return this._rows[this._rows.length-1]}return undefined}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;this.eachRow((()=>{e++}));return e}getRow(e){let t=this._rows[e-1];if(!t){t=this._rows[e-1]=new o(this,e)}return t}getRows(e,t){if(t<1)return undefined;const r=[];for(let i=e;i<e+t;i++){r.push(this.getRow(i))}return r}addRow(e,t="n"){const r=this._nextRow;const i=this.getRow(r);i.values=e;this._setStyleOption(r,t[0]==="i"?t:"n");return i}addRows(e,t="n"){const r=[];e.forEach((e=>{r.push(this.addRow(e,t))}));return r}insertRow(e,t,r="n"){this.spliceRows(e,0,t);this._setStyleOption(e,r);return this.getRow(e)}insertRows(e,t,r="n"){this.spliceRows(e,0,...t);if(r!=="n"){for(let i=0;i<t.length;i++){if(r[0]==="o"&&this.findRow(t.length+e+i)!==undefined){this._copyStyle(t.length+e+i,e+i,r[1]==="+")}else if(r[0]==="i"&&this.findRow(e-1)!==undefined){this._copyStyle(e-1,e+i,r[1]==="+")}}}return this.getRows(e,t.length)}_setStyleOption(e,t="n"){if(t[0]==="o"&&this.findRow(e+1)!==undefined){this._copyStyle(e+1,e,t[1]==="+")}else if(t[0]==="i"&&this.findRow(e-1)!==undefined){this._copyStyle(e-1,e,t[1]==="+")}}_copyStyle(e,t,r=false){const i=this.getRow(e);const n=this.getRow(t);n.style=b(i.style);i.eachCell({includeEmpty:r},((e,t)=>{n.getCell(t).style=b(e.style)}));n.height=i.height}duplicateRow(e,t,r=false){const i=this._rows[e-1];const n=new Array(t).fill(i.values);this.spliceRows(e+1,r?0:t,...n);for(let r=0;r<t;r++){const t=this._rows[e+r];t.style=i.style;t.height=i.height;i.eachCell({includeEmpty:true},((e,r)=>{t.getCell(r).style=e.style}))}}spliceRows(e,t,...r){const i=e+t;const n=r.length;const s=n-t;const o=this._rows.length;let c;let h;if(s<0){if(e===o){this._rows[o-1]=undefined}for(c=i;c<=o;c++){h=this._rows[c-1];if(h){const e=this.getRow(c+s);e.values=h.values;e.style=h.style;e.height=h.height;h.eachCell({includeEmpty:true},((t,r)=>{e.getCell(r).style=t.style}));this._rows[c-1]=undefined}else{this._rows[c+s-1]=undefined}}}else if(s>0){for(c=o;c>=i;c--){h=this._rows[c-1];if(h){const e=this.getRow(c+s);e.values=h.values;e.style=h.style;e.height=h.height;h.eachCell({includeEmpty:true},((t,r)=>{e.getCell(r).style=t.style;if(t._value.constructor.name==="MergeValue"){const e=this.getRow(t._row._number+n).getCell(r);const i=t._value._master;const s=this.getRow(i._row._number+n).getCell(i._column._number);e.merge(s)}}))}else{this._rows[c+s-1]=undefined}}}for(c=0;c<n;c++){const t=this.getRow(e+c);t.style={};t.values=r[c]}this.workbook.definedNames.spliceRows(this.name,e,t,n)}eachRow(e,t){if(!t){t=e;e=undefined}if(e&&e.includeEmpty){const e=this._rows.length;for(let r=1;r<=e;r++){t(this.getRow(r),r)}}else{this._rows.forEach((e=>{if(e&&e.hasValues){t(e,e.number)}}))}}getSheetValues(){const e=[];this._rows.forEach((t=>{if(t){e[t.number]=t.values}}));return e}findCell(e,t){const r=n.getAddress(e,t);const i=this._rows[r.row-1];return i?i.findCell(r.col):undefined}getCell(e,t){const r=n.getAddress(e,t);const i=this.getRow(r.row);return i.getCellEx(r)}mergeCells(...e){const t=new s(e);this._mergeCellsInternal(t)}mergeCellsWithoutStyle(...e){const t=new s(e);this._mergeCellsInternal(t,true)}_mergeCellsInternal(e,t){i.each(this._merges,(t=>{if(t.intersects(e)){throw new Error("Cannot merge already merged cells")}}));const r=this.getCell(e.top,e.left);for(let i=e.top;i<=e.bottom;i++){for(let n=e.left;n<=e.right;n++){if(i>e.top||n>e.left){this.getCell(i,n).merge(r,t)}}}this._merges[r.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++){for(let r=t.left;r<=t.right;r++){this.getCell(e,r).unmerge()}}delete this._merges[e.address]}}get hasMerges(){return i.some(this._merges,Boolean)}unMergeCells(...e){const t=new s(e);for(let e=t.top;e<=t.bottom;e++){for(let r=t.left;r<=t.right;r++){const t=this.findCell(e,r);if(t){if(t.type===h.ValueType.Merge){this._unMergeMaster(t.master)}else if(this._merges[t.address]){this._unMergeMaster(t)}}}}}fillFormula(e,t,r,i="shared"){const s=n.decode(e);const{top:o,left:c,bottom:h,right:p}=s;const g=p-c+1;const y=n.encodeAddress(o,c);const v=i==="shared";let b;if(typeof r==="function"){b=r}else if(Array.isArray(r)){if(Array.isArray(r[0])){b=(e,t)=>r[e-o][t-c]}else{b=(e,t)=>r[(e-o)*g+(t-c)]}}else{b=()=>undefined}let _=true;for(let r=o;r<=h;r++){for(let n=c;n<=p;n++){if(_){this.getCell(r,n).value={shareType:i,formula:t,ref:e,result:b(r,n)};_=false}else{this.getCell(r,n).value=v?{sharedFormula:y,result:b(r,n)}:b(r,n)}}}}addImage(e,t){const r={type:"image",imageId:e,range:t};this._media.push(new p(this,r))}getImages(){return this._media.filter((e=>e.type==="image"))}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new p(this,t))}getBackgroundImageId(){const e=this._media.find((e=>e.type==="background"));return e&&e.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:true};if(t&&"spinCount"in t){t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5}if(e){this.sheetProtection.algorithmName="SHA-512";this.sheetProtection.saltValue=v.randomBytes(16).toString("base64");this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5;this.sheetProtection.hashValue=v.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)}if(t){this.sheetProtection=Object.assign(this.sheetProtection,t);if(!e&&"spinCount"in t){delete this.sheetProtection.spinCount}}r()}))}unprotect(){this.sheetProtection=null}addTable(e){const t=new g(this,e);this.tables[e.name]=t;return t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){if(typeof e==="number"){this.conditionalFormattings.splice(e,1)}else if(e instanceof Function){this.conditionalFormattings=this.conditionalFormattings.filter(e)}else{this.conditionalFormattings=[]}}get tabColor(){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor");return this.properties.tabColor}set tabColor(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor");this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((e=>e.model)),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((e=>e.model)),conditionalFormattings:this.conditionalFormattings};e.cols=c.toModel(this.columns);const t=e.rows=[];const r=e.dimensions=new s;this._rows.forEach((e=>{const i=e&&e.model;if(i){r.expand(i.number,i.min,i.number,i.max);t.push(i)}}));e.merges=[];i.each(this._merges,(t=>{e.merges.push(t.range)}));return e}_parseRows(e){this._rows=[];e.rows.forEach((e=>{const t=new o(this,e.number);this._rows[t.number-1]=t;t.model=e}))}_parseMergeCells(e){i.each(e.mergeCells,(e=>{this.mergeCellsWithoutStyle(e)}))}set model(e){this.name=e.name;this._columns=c.fromModel(this,e.cols);this._parseRows(e);this._parseMergeCells(e);this.dataValidations=new y(e.dataValidations);this.properties=e.properties;this.pageSetup=e.pageSetup;this.headerFooter=e.headerFooter;this.views=e.views;this.autoFilter=e.autoFilter;this._media=e.media.map((e=>new p(this,e)));this.sheetProtection=e.sheetProtection;this.tables=e.tables.reduce(((e,t)=>{const r=new g;r.model=t;e[t.name]=r;return e}),{});this.conditionalFormattings=e.conditionalFormattings}}e.exports=Worksheet},6181:function(e,t,r){const i={Workbook:r(6171),ModelContainer:r(7275),stream:{xlsx:{WorkbookWriter:r(479),WorkbookReader:r(6623)}}};Object.assign(i,r(4041));e.exports=i},953:function(e,t,r){const{EventEmitter:i}=r(4434);const n=r(4354);const s=r(4041);const o=r(8496);class HyperlinkReader extends i{constructor({workbook:e,id:t,iterator:r,options:i}){super();this.workbook=e;this.id=t;this.iterator=r;this.options=i}get count(){return this.hyperlinks&&this.hyperlinks.length||0}each(e){return this.hyperlinks.forEach(e)}async read(){const{iterator:e,options:t}=this;let r=false;let i=null;switch(t.hyperlinks){case"emit":r=true;break;case"cache":this.hyperlinks=i={};break;default:break}if(!r&&!i){this.emit("finished");return}try{for await(const t of n(e)){for(const{eventType:e,value:n}of t){if(e==="opentag"){const e=n;if(e.name==="Relationship"){const t=e.attributes.Id;switch(e.attributes.Type){case o.Hyperlink:{const n={type:s.RelationshipType.Styles,rId:t,target:e.attributes.Target,targetMode:e.attributes.TargetMode};if(r){this.emit("hyperlink",n)}else{i[n.rId]=n}}break;default:break}}}}}this.emit("finished")}catch(e){this.emit("error",e)}}}e.exports=HyperlinkReader},7643:function(e,t,r){const i=r(8674);const n=r(8496);const s=r(6289);const o=r(2781);const c=r(2007);class SheetCommentsWriter{constructor(e,t,r){this.id=r.id;this.count=0;this._worksheet=e;this._workbook=r.workbook;this._sheetRelsWriter=t}get commentsStream(){if(!this._commentsStream){this._commentsStream=this._workbook._openStream(`/xl/comments${this.id}.xml`)}return this._commentsStream}get vmlStream(){if(!this._vmlStream){this._vmlStream=this._workbook._openStream(`xl/drawings/vmlDrawing${this.id}.vml`)}return this._vmlStream}_addRelationships(){const e={Type:n.Comments,Target:`../comments${this.id}.xml`};this._sheetRelsWriter.addRelationship(e);const t={Type:n.VmlDrawing,Target:`../drawings/vmlDrawing${this.id}.vml`};this.vmlRelId=this._sheetRelsWriter.addRelationship(t)}_addCommentRefs(){this._workbook.commentRefs.push({commentName:`comments${this.id}`,vmlDrawing:`vmlDrawing${this.id}`})}_writeOpen(){this.commentsStream.write('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+'<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">'+"<authors><author>Author</author></authors>"+"<commentList>");this.vmlStream.write('<?xml version="1.0" encoding="UTF-8"?>'+'<xml xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">'+'<o:shapelayout v:ext="edit">'+'<o:idmap v:ext="edit" data="1" />'+"</o:shapelayout>"+'<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">'+'<v:stroke joinstyle="miter" />'+'<v:path gradientshapeok="t" o:connecttype="rect" />'+"</v:shapetype>")}_writeComment(e,t){const r=new o;const n=new i;r.render(n,e);this.commentsStream.write(n.xml);const s=new c;const h=new i;s.render(h,e,t);this.vmlStream.write(h.xml)}_writeClose(){this.commentsStream.write("</commentList></comments>");this.vmlStream.write("</xml>")}addComments(e){if(e&&e.length){if(!this.startedData){this._worksheet.comments=[];this._writeOpen();this._addRelationships();this._addCommentRefs();this.startedData=true}e.forEach((e=>{e.refAddress=s.decodeAddress(e.ref)}));e.forEach((e=>{this._writeComment(e,this.count);this.count+=1}))}}commit(){if(this.count){this._writeClose();this.commentsStream.end();this.vmlStream.end()}}}e.exports=SheetCommentsWriter},1393:function(e,t,r){const i=r(9145);const n=r(8496);class HyperlinksProxy{constructor(e){this.writer=e}push(e){this.writer.addHyperlink(e)}}class SheetRelsWriter{constructor(e){this.id=e.id;this.count=0;this._hyperlinks=[];this._workbook=e.workbook}get stream(){if(!this._stream){this._stream=this._workbook._openStream(`/xl/worksheets/_rels/sheet${this.id}.xml.rels`)}return this._stream}get length(){return this._hyperlinks.length}each(e){return this._hyperlinks.forEach(e)}get hyperlinksProxy(){return this._hyperlinksProxy||(this._hyperlinksProxy=new HyperlinksProxy(this))}addHyperlink(e){const t={Target:e.target,Type:n.Hyperlink,TargetMode:"External"};const r=this._writeRelationship(t);this._hyperlinks.push({rId:r,address:e.address})}addMedia(e){return this._writeRelationship(e)}addRelationship(e){return this._writeRelationship(e)}commit(){if(this.count){this._writeClose();this.stream.end()}}_writeOpen(){this.stream.write(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">`)}_writeRelationship(e){if(!this.count){this._writeOpen()}const t=`rId${++this.count}`;if(e.TargetMode){this.stream.write(`<Relationship Id="${t}"`+` Type="${e.Type}"`+` Target="${i.xmlEncode(e.Target)}"`+` TargetMode="${e.TargetMode}"`+"/>")}else{this.stream.write(`<Relationship Id="${t}" Type="${e.Type}" Target="${e.Target}"/>`)}return t}_writeClose(){this.stream.write("</Relationships>")}}e.exports=SheetRelsWriter},6623:function(e,t,r){const i=r(9896);const{EventEmitter:n}=r(4434);const{PassThrough:s,Readable:o}=r(1643);const c=r(2203);const h=r(4274);const p=r(7928);const g=r(6247);const y=r(4354);const v=r(458);const b=r(9312);const _=r(7861);const w=r(543);const x=r(953);p.setGracefulCleanup();class WorkbookReader extends n{constructor(e,t={}){super();this.input=e;this.options={worksheets:"emit",sharedStrings:"cache",hyperlinks:"ignore",styles:"ignore",entries:"ignore",...t};this.styles=new v;this.styles.init()}_getStream(e){if(e instanceof c.Readable||e instanceof o){return e}if(typeof e==="string"){return i.createReadStream(e)}throw new Error(`Could not recognise input: ${e}`)}async read(e,t){try{for await(const{eventType:r,value:i}of this.parse(e,t)){switch(r){case"shared-strings":this.emit(r,i);break;case"worksheet":this.emit(r,i);await i.read();break;case"hyperlinks":this.emit(r,i);break}}this.emit("end");this.emit("finished")}catch(e){this.emit("error",e)}}async*[Symbol.asyncIterator](){for await(const{eventType:e,value:t}of this.parse()){if(e==="worksheet"){yield t}}}async*parse(e,t){if(t)this.options=t;const r=this.stream=this._getStream(e||this.input);const n=h.Parse({forceStream:true});r.pipe(n);const o=[];for await(const e of g(n)){let t;let r;switch(e.path){case"_rels/.rels":break;case"xl/_rels/workbook.xml.rels":await this._parseRels(e);break;case"xl/workbook.xml":await this._parseWorkbook(e);break;case"xl/sharedStrings.xml":yield*this._parseSharedStrings(e);break;case"xl/styles.xml":await this._parseStyles(e);break;default:if(e.path.match(/xl\/worksheets\/sheet\d+[.]xml/)){t=e.path.match(/xl\/worksheets\/sheet(\d+)[.]xml/);r=t[1];if(this.sharedStrings&&this.workbookRels){yield*this._parseWorksheet(g(e),r)}else{await new Promise(((t,n)=>{p.file(((s,c,h,p)=>{if(s){return n(s)}o.push({sheetNo:r,path:c,tempFileCleanupCallback:p});const g=i.createWriteStream(c);g.on("error",n);e.pipe(g);return g.on("finish",(()=>t()))}))}))}}else if(e.path.match(/xl\/worksheets\/_rels\/sheet\d+[.]xml.rels/)){t=e.path.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/);r=t[1];yield*this._parseHyperlinks(g(e),r)}break}e.autodrain()}for(const{sheetNo:e,path:t,tempFileCleanupCallback:r}of o){let n=i.createReadStream(t);if(!n[Symbol.asyncIterator]){n=n.pipe(new s)}yield*this._parseWorksheet(n,e);r()}}_emitEntry(e){if(this.options.entries==="emit"){this.emit("entry",e)}}async _parseRels(e){const t=new _;this.workbookRels=await t.parseStream(g(e))}async _parseWorkbook(e){this._emitEntry({type:"workbook"});const t=new b;await t.parseStream(g(e));this.properties=t.map.workbookPr;this.model=t.model}async*_parseSharedStrings(e){this._emitEntry({type:"shared-strings"});switch(this.options.sharedStrings){case"cache":this.sharedStrings=[];break;case"emit":break;default:return}let t=null;let r=[];let i=0;let n=null;for await(const s of y(g(e))){for(const{eventType:e,value:o}of s){if(e==="opentag"){const e=o;switch(e.name){case"b":n=n||{};n.bold=true;break;case"charset":n=n||{};n.charset=parseInt(e.attributes.charset,10);break;case"color":n=n||{};n.color={};if(e.attributes.rgb){n.color.argb=e.attributes.argb}if(e.attributes.val){n.color.argb=e.attributes.val}if(e.attributes.theme){n.color.theme=e.attributes.theme}break;case"family":n=n||{};n.family=parseInt(e.attributes.val,10);break;case"i":n=n||{};n.italic=true;break;case"outline":n=n||{};n.outline=true;break;case"rFont":n=n||{};n.name=e.value;break;case"si":n=null;r=[];t=null;break;case"sz":n=n||{};n.size=parseInt(e.attributes.val,10);break;case"strike":break;case"t":t=null;break;case"u":n=n||{};n.underline=true;break;case"vertAlign":n=n||{};n.vertAlign=e.attributes.val;break}}else if(e==="text"){t=t?t+o:o}else if(e==="closetag"){const e=o;switch(e.name){case"r":r.push({font:n,text:t});n=null;t=null;break;case"si":if(this.options.sharedStrings==="cache"){this.sharedStrings.push(r.length?{richText:r}:t)}else if(this.options.sharedStrings==="emit"){yield{index:i++,text:r.length?{richText:r}:t}}r=[];n=null;t=null;break}}}}}async _parseStyles(e){this._emitEntry({type:"styles"});if(this.options.styles==="cache"){this.styles=new v;await this.styles.parseStream(g(e))}}*_parseWorksheet(e,t){this._emitEntry({type:"worksheet",id:t});const r=new w({workbook:this,id:t,iterator:e,options:this.options});const i=(this.workbookRels||[]).find((e=>e.Target===`worksheets/sheet${t}.xml`));const n=i&&(this.model.sheets||[]).find((e=>e.rId===i.Id));if(n){r.id=n.id;r.name=n.name;r.state=n.state}if(this.options.worksheets==="emit"){yield{eventType:"worksheet",value:r}}}*_parseHyperlinks(e,t){this._emitEntry({type:"hyperlinks",id:t});const r=new x({workbook:this,id:t,iterator:e,options:this.options});if(this.options.hyperlinks==="emit"){yield{eventType:"hyperlinks",value:r}}}}WorkbookReader.Options={worksheets:["emit","ignore"],sharedStrings:["cache","emit","ignore"],hyperlinks:["cache","emit","ignore"],styles:["cache","ignore"],entries:["emit","ignore"]};e.exports=WorkbookReader},479:function(e,t,r){const i=r(9896);const n=r(1538);const s=r(6);const o=r(8496);const c=r(458);const h=r(6212);const p=r(7707);const g=r(9505);const y=r(7861);const v=r(5919);const b=r(7661);const _=r(9312);const w=r(2647);const x=r(4047);const S=r(2260);class WorkbookWriter{constructor(e){e=e||{};this.created=e.created||new Date;this.modified=e.modified||this.created;this.creator=e.creator||"ExcelJS";this.lastModifiedBy=e.lastModifiedBy||"ExcelJS";this.lastPrinted=e.lastPrinted;this.useSharedStrings=e.useSharedStrings||false;this.sharedStrings=new h;this.styles=e.useStyles?new c(true):new c.Mock(true);this._definedNames=new p;this._worksheets=[];this.views=[];this.zipOptions=e.zip;this.media=[];this.commentRefs=[];this.zip=n("zip",this.zipOptions);if(e.stream){this.stream=e.stream}else if(e.filename){this.stream=i.createWriteStream(e.filename)}else{this.stream=new s}this.zip.pipe(this.stream);this.promise=Promise.all([this.addThemes(),this.addOfficeRels()])}get definedNames(){return this._definedNames}_openStream(e){const t=new s({bufSize:65536,batch:true});this.zip.append(t,{name:e});t.on("finish",(()=>{t.emit("zipped")}));return t}_commitWorksheets(){const commitWorksheet=function(e){if(!e.committed){return new Promise((t=>{e.stream.on("zipped",(()=>{t()}));e.commit()}))}return Promise.resolve()};const e=this._worksheets.map(commitWorksheet);if(e.length){return Promise.all(e)}return Promise.resolve()}async commit(){await this.promise;await this.addMedia();await this._commitWorksheets();await Promise.all([this.addContentTypes(),this.addApp(),this.addCore(),this.addSharedStrings(),this.addStyles(),this.addWorkbookRels()]);await this.addWorkbook();return this._finalize()}get nextId(){let e;for(e=1;e<this._worksheets.length;e++){if(!this._worksheets[e]){return e}}return this._worksheets.length||1}addImage(e){const t=this.media.length;const r=Object.assign({},e,{type:"image",name:`image${t}.${e.extension}`});this.media.push(r);return t}getImage(e){return this.media[e]}addWorksheet(e,t){t=t||{};const r=t.useSharedStrings!==undefined?t.useSharedStrings:this.useSharedStrings;if(t.tabColor){console.trace("tabColor option has moved to { properties: tabColor: {...} }");t.properties=Object.assign({tabColor:t.tabColor},t.properties)}const i=this.nextId;e=e||`sheet${i}`;const n=new x({id:i,name:e,workbook:this,useSharedStrings:r,properties:t.properties,state:t.state,pageSetup:t.pageSetup,views:t.views,autoFilter:t.autoFilter,headerFooter:t.headerFooter});this._worksheets[i]=n;return n}getWorksheet(e){if(e===undefined){return this._worksheets.find((()=>true))}if(typeof e==="number"){return this._worksheets[e]}if(typeof e==="string"){return this._worksheets.find((t=>t&&t.name===e))}return undefined}addStyles(){return new Promise((e=>{this.zip.append(this.styles.xml,{name:"xl/styles.xml"});e()}))}addThemes(){return new Promise((e=>{this.zip.append(S,{name:"xl/theme/theme1.xml"});e()}))}addOfficeRels(){return new Promise((e=>{const t=new y;const r=t.toXml([{Id:"rId1",Type:o.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:o.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:o.ExtenderProperties,Target:"docProps/app.xml"}]);this.zip.append(r,{name:"/_rels/.rels"});e()}))}addContentTypes(){return new Promise((e=>{const t={worksheets:this._worksheets.filter(Boolean),sharedStrings:this.sharedStrings,commentRefs:this.commentRefs,media:this.media};const r=new v;const i=r.toXml(t);this.zip.append(i,{name:"[Content_Types].xml"});e()}))}addMedia(){return Promise.all(this.media.map((e=>{if(e.type==="image"){const t=`xl/media/${e.name}`;if(e.filename){return this.zip.file(e.filename,{name:t})}if(e.buffer){return this.zip.append(e.buffer,{name:t})}if(e.base64){const r=e.base64;const i=r.substring(r.indexOf(",")+1);return this.zip.append(i,{name:t,base64:true})}}throw new Error("Unsupported media")})))}addApp(){return new Promise((e=>{const t={worksheets:this._worksheets.filter(Boolean)};const r=new b;const i=r.toXml(t);this.zip.append(i,{name:"docProps/app.xml"});e()}))}addCore(){return new Promise((e=>{const t=new g;const r=t.toXml(this);this.zip.append(r,{name:"docProps/core.xml"});e()}))}addSharedStrings(){if(this.sharedStrings.count){return new Promise((e=>{const t=new w;const r=t.toXml(this.sharedStrings);this.zip.append(r,{name:"/xl/sharedStrings.xml"});e()}))}return Promise.resolve()}addWorkbookRels(){let e=1;const t=[{Id:`rId${e++}`,Type:o.Styles,Target:"styles.xml"},{Id:`rId${e++}`,Type:o.Theme,Target:"theme/theme1.xml"}];if(this.sharedStrings.count){t.push({Id:`rId${e++}`,Type:o.SharedStrings,Target:"sharedStrings.xml"})}this._worksheets.forEach((r=>{if(r){r.rId=`rId${e++}`;t.push({Id:r.rId,Type:o.Worksheet,Target:`worksheets/sheet${r.id}.xml`})}}));return new Promise((e=>{const r=new y;const i=r.toXml(t);this.zip.append(i,{name:"/xl/_rels/workbook.xml.rels"});e()}))}addWorkbook(){const{zip:e}=this;const t={worksheets:this._worksheets.filter(Boolean),definedNames:this._definedNames.model,views:this.views,properties:{},calcProperties:{}};return new Promise((r=>{const i=new _;i.prepare(t);e.append(i.toXml(t),{name:"/xl/workbook.xml"});r()}))}_finalize(){return new Promise(((e,t)=>{this.stream.on("error",t);this.stream.on("finish",(()=>{e(this)}));this.zip.on("error",t);this.zip.finalize()}))}}e.exports=WorkbookWriter},543:function(e,t,r){const{EventEmitter:i}=r(4434);const n=r(4354);const s=r(2563);const o=r(9145);const c=r(6289);const h=r(2514);const p=r(7767);const g=r(6793);class WorksheetReader extends i{constructor({workbook:e,id:t,iterator:r,options:i}){super();this.workbook=e;this.id=t;this.iterator=r;this.options=i||{};this.name=`Sheet${this.id}`;this._columns=null;this._keys={};this._dimensions=new h}destroy(){throw new Error("Invalid Operation: destroy")}get dimensions(){return this._dimensions}get columns(){return this._columns}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t){return t}e=c.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new g(this,t++))}}return this._columns[e-1]}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){s.each(this._keys,e)}async read(){try{for await(const e of this.parse()){for(const{eventType:t,value:r}of e){this.emit(t,r)}}this.emit("finished")}catch(e){this.emit("error",e)}}async*[Symbol.asyncIterator](){for await(const e of this.parse()){for(const{eventType:t,value:r}of e){if(t==="row"){yield r}}}}async*parse(){const{iterator:e,options:t}=this;let r=false;let i=false;let s=null;switch(t.worksheets){case"emit":r=true;break;case"prep":break;default:break}switch(t.hyperlinks){case"emit":i=true;break;case"cache":this.hyperlinks=s={};break;default:break}if(!r&&!i&&!s){return}const{sharedStrings:h,styles:y,properties:v}=this.workbook;let b=false;let _=false;let w=false;let x=null;let S=null;let k=null;let C=null;for await(const t of n(e)){const e=[];for(const{eventType:n,value:E}of t){if(n==="opentag"){const t=E;if(r){switch(t.name){case"cols":b=true;x=[];break;case"sheetData":_=true;break;case"col":if(b){x.push({min:parseInt(t.attributes.min,10),max:parseInt(t.attributes.max,10),width:parseFloat(t.attributes.width),styleId:parseInt(t.attributes.style||"0",10)})}break;case"row":if(_){const e=parseInt(t.attributes.r,10);S=new p(this,e);if(t.attributes.ht){S.height=parseFloat(t.attributes.ht)}if(t.attributes.s){const e=parseInt(t.attributes.s,10);const r=y.getStyleModel(e);if(r){S.style=r}}}break;case"c":if(S){k={ref:t.attributes.r,s:parseInt(t.attributes.s,10),t:t.attributes.t}}break;case"f":if(k){C=k.f={text:""}}break;case"v":if(k){C=k.v={text:""}}break;case"is":case"t":if(k){C=k.v={text:""}}break;case"mergeCell":break;default:break}}if(i||s){switch(t.name){case"hyperlinks":w=true;break;case"hyperlink":if(w){const r={ref:t.attributes.ref,rId:t.attributes["r:id"]};if(i){e.push({eventType:"hyperlink",value:r})}else{s[r.ref]=r}}break;default:break}}}else if(n==="text"){if(r){if(C){C.text+=E}}}else if(n==="closetag"){const t=E;if(r){switch(t.name){case"cols":b=false;this._columns=g.fromModel(x);break;case"sheetData":_=false;break;case"row":this._dimensions.expandRow(S);e.push({eventType:"row",value:S});S=null;break;case"c":if(S&&k){const e=c.decodeAddress(k.ref);const t=S.getCell(e.col);if(k.s){const e=y.getStyleModel(k.s);if(e){t.style=e}}if(k.f){const e={formula:k.f.text};if(k.v){if(k.t==="str"){e.result=o.xmlDecode(k.v.text)}else{e.result=parseFloat(k.v.text)}}t.value=e}else if(k.v){switch(k.t){case"s":{const e=parseInt(k.v.text,10);if(h){t.value=h[e]}else{t.value={sharedString:e}}break}case"inlineStr":case"str":t.value=o.xmlDecode(k.v.text);break;case"e":t.value={error:k.v.text};break;case"b":t.value=parseInt(k.v.text,10)!==0;break;default:if(o.isDateFmt(t.numFmt)){t.value=o.excelToDate(parseFloat(k.v.text),v.model&&v.model.date1904)}else{t.value=parseFloat(k.v.text)}break}}if(s){const e=s[k.ref];if(e){t.text=t.value;t.value=undefined;t.hyperlink=e}}k=null}break;default:break}}if(i||s){switch(t.name){case"hyperlinks":w=false;break;default:break}}}}if(e.length>0){yield e}}}}e.exports=WorksheetReader},4047:function(e,t,r){const i=r(2563);const n=r(8496);const s=r(6289);const o=r(1924);const c=r(2514);const h=r(5471);const p=r(7767);const g=r(6793);const y=r(1393);const v=r(7643);const b=r(2910);const _=new h;const w=r(6422);const x=r(8700);const S=r(3305);const k=r(1731);const C=r(6004);const E=r(8858);const R=r(3248);const O=r(341);const A=r(6303);const I=r(5575);const P=r(4437);const N=r(1350);const F=r(3948);const D=r(7833);const L=r(6041);const B=r(5089);const M={dataValidations:new x,sheetProperties:new S,sheetFormatProperties:new k,columns:new w({tag:"cols",length:false,childXform:new C}),row:new E,hyperlinks:new w({tag:"hyperlinks",length:false,childXform:new R}),sheetViews:new w({tag:"sheetViews",length:false,childXform:new O}),sheetProtection:new A,pageMargins:new I,pageSeteup:new P,autoFilter:new N,picture:new F,conditionalFormattings:new D,headerFooter:new L,rowBreaks:new B};class WorksheetWriter{constructor(e){this.id=e.id;this.name=e.name||`Sheet${this.id}`;this.state=e.state||"visible";this._rows=[];this._columns=null;this._keys={};this._merges=[];this._merges.add=function(){};this._sheetRelsWriter=new y(e);this._sheetCommentsWriter=new v(this,this._sheetRelsWriter,e);this._dimensions=new c;this._rowZero=1;this.committed=false;this.dataValidations=new b;this._formulae={};this._siFormulae=0;this.conditionalFormatting=[];this.rowBreaks=[];this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties);this.headerFooter=Object.assign({},{differentFirst:false,differentOddEven:false,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter);this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!(e.pageSetup&&(e.pageSetup.fitToWidth||e.pageSetup.fitToHeight)&&!e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:false,draft:false,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:undefined,showRowColHeaders:false,showGridLines:false,horizontalCentered:false,verticalCentered:false,rowBreaks:null,colBreaks:null},e.pageSetup);this.useSharedStrings=e.useSharedStrings||false;this._workbook=e.workbook;this.hasComments=false;this._views=e.views||[];this.autoFilter=e.autoFilter||null;this._media=[];this.sheetProtection=null;this._writeOpenWorksheet();this.startedData=false}get workbook(){return this._workbook}get stream(){if(!this._stream){this._stream=this._workbook._openStream(`/xl/worksheets/sheet${this.id}.xml`);this._stream.pause()}return this._stream}destroy(){throw new Error("Invalid Operation: destroy")}commit(){if(this.committed){return}this._rows.forEach((e=>{if(e){this._writeRow(e)}}));this._rows=null;if(!this.startedData){this._writeOpenSheetData()}this._writeCloseSheetData();this._writeAutoFilter();this._writeMergeCells();this._writeHyperlinks();this._writeConditionalFormatting();this._writeDataValidations();this._writeSheetProtection();this._writePageMargins();this._writePageSetup();this._writeBackground();this._writeHeaderFooter();this._writeRowBreaks();this._writeLegacyData();this._writeCloseWorksheet();this.stream.end();this._sheetCommentsWriter.commit();this._sheetRelsWriter.commit();this.committed=true}get dimensions(){return this._dimensions}get views(){return this._views}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=t.header&&1||t.headers&&t.headers.length||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const i=new g(this,t++,false);r.push(i);i.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){i.each(this._keys,e)}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t)return t;e=s.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new g(this,t++))}}return this._columns[e-1]}get _nextRow(){return this._rowZero+this._rows.length}eachRow(e,t){if(!t){t=e;e=undefined}if(e&&e.includeEmpty){const e=this._nextRow;for(let r=this._rowZero;r<e;r++){t(this.getRow(r),r)}}else{this._rows.forEach((e=>{if(e.hasValues){t(e,e.number)}}))}}_commitRow(e){let t=false;while(this._rows.length&&!t){const r=this._rows.shift();this._rowZero++;if(r){this._writeRow(r);t=r.number===e.number;this._rowZero=r.number+1}}}get lastRow(){if(this._rows.length){return this._rows[this._rows.length-1]}return undefined}findRow(e){const t=e-this._rowZero;return this._rows[t]}getRow(e){const t=e-this._rowZero;if(t<0){throw new Error("Out of bounds: this row has been committed")}let r=this._rows[t];if(!r){this._rows[t]=r=new p(this,e)}return r}addRow(e){const t=new p(this,this._nextRow);this._rows[t.number-this._rowZero]=t;t.values=e;return t}findCell(e,t){const r=s.getAddress(e,t);const i=this.findRow(r.row);return i?i.findCell(r.column):undefined}getCell(e,t){const r=s.getAddress(e,t);const i=this.getRow(r.row);return i.getCellEx(r)}mergeCells(...e){const t=new c(e);this._merges.forEach((e=>{if(e.intersects(t)){throw new Error("Cannot merge already merged cells")}}));const r=this.getCell(t.top,t.left);for(let e=t.top;e<=t.bottom;e++){for(let i=t.left;i<=t.right;i++){if(e>t.top||i>t.left){this.getCell(e,i).merge(r)}}}this._merges.push(t)}addConditionalFormatting(e){this.conditionalFormatting.push(e)}removeConditionalFormatting(e){if(typeof e==="number"){this.conditionalFormatting.splice(e,1)}else if(e instanceof Function){this.conditionalFormatting=this.conditionalFormatting.filter(e)}else{this.conditionalFormatting=[]}}addBackgroundImage(e){this._background={imageId:e}}getBackgroundImageId(){return this._background&&this._background.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:true};if(t&&"spinCount"in t){t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5}if(e){this.sheetProtection.algorithmName="SHA-512";this.sheetProtection.saltValue=o.randomBytes(16).toString("base64");this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5;this.sheetProtection.hashValue=o.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)}if(t){this.sheetProtection=Object.assign(this.sheetProtection,t);if(!e&&"spinCount"in t){delete this.sheetProtection.spinCount}}r()}))}unprotect(){this.sheetProtection=null}_write(e){_.reset();_.addText(e);this.stream.write(_)}_writeSheetProperties(e,t,r){const i={outlineProperties:t&&t.outlineProperties,tabColor:t&&t.tabColor,pageSetup:r&&r.fitToPage?{fitToPage:r.fitToPage}:undefined};e.addText(M.sheetProperties.toXml(i))}_writeSheetFormatProperties(e,t){const r=t?{defaultRowHeight:t.defaultRowHeight,dyDescent:t.dyDescent,outlineLevelCol:t.outlineLevelCol,outlineLevelRow:t.outlineLevelRow}:undefined;if(t.defaultColWidth){r.defaultColWidth=t.defaultColWidth}e.addText(M.sheetFormatProperties.toXml(r))}_writeOpenWorksheet(){_.reset();_.addText('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');_.addText('<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"'+' xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"'+' xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"'+' mc:Ignorable="x14ac"'+' xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">');this._writeSheetProperties(_,this.properties,this.pageSetup);_.addText(M.sheetViews.toXml(this.views));this._writeSheetFormatProperties(_,this.properties);this.stream.write(_)}_writeColumns(){const e=g.toModel(this.columns);if(e){M.columns.prepare(e,{styles:this._workbook.styles});this.stream.write(M.columns.toXml(e))}}_writeOpenSheetData(){this._write("<sheetData>")}_writeRow(e){if(!this.startedData){this._writeColumns();this._writeOpenSheetData();this.startedData=true}if(e.hasValues||e.height){const{model:t}=e;const r={styles:this._workbook.styles,sharedStrings:this.useSharedStrings?this._workbook.sharedStrings:undefined,hyperlinks:this._sheetRelsWriter.hyperlinksProxy,merges:this._merges,formulae:this._formulae,siFormulae:this._siFormulae,comments:[]};M.row.prepare(t,r);this.stream.write(M.row.toXml(t));if(r.comments.length){this.hasComments=true;this._sheetCommentsWriter.addComments(r.comments)}}}_writeCloseSheetData(){this._write("</sheetData>")}_writeMergeCells(){if(this._merges.length){_.reset();_.addText(`<mergeCells count="${this._merges.length}">`);this._merges.forEach((e=>{_.addText(`<mergeCell ref="${e}"/>`)}));_.addText("</mergeCells>");this.stream.write(_)}}_writeHyperlinks(){this.stream.write(M.hyperlinks.toXml(this._sheetRelsWriter._hyperlinks))}_writeConditionalFormatting(){const e={styles:this._workbook.styles};M.conditionalFormattings.prepare(this.conditionalFormatting,e);this.stream.write(M.conditionalFormattings.toXml(this.conditionalFormatting))}_writeRowBreaks(){this.stream.write(M.rowBreaks.toXml(this.rowBreaks))}_writeDataValidations(){this.stream.write(M.dataValidations.toXml(this.dataValidations.model))}_writeSheetProtection(){this.stream.write(M.sheetProtection.toXml(this.sheetProtection))}_writePageMargins(){this.stream.write(M.pageMargins.toXml(this.pageSetup.margins))}_writePageSetup(){this.stream.write(M.pageSeteup.toXml(this.pageSetup))}_writeHeaderFooter(){this.stream.write(M.headerFooter.toXml(this.headerFooter))}_writeAutoFilter(){this.stream.write(M.autoFilter.toXml(this.autoFilter))}_writeBackground(){if(this._background){if(this._background.imageId!==undefined){const e=this._workbook.getImage(this._background.imageId);const t=this._sheetRelsWriter.addMedia({Target:`../media/${e.name}`,Type:n.Image});this._background={...this._background,rId:t}}this.stream.write(M.picture.toXml({rId:this._background.rId}))}}_writeLegacyData(){if(this.hasComments){_.reset();_.addText(`<legacyDrawing r:id="${this._sheetCommentsWriter.vmlRelId}"/>`);this.stream.write(_)}}_writeDimensions(){}_writeCloseWorksheet(){this._write("</worksheet>")}}e.exports=WorksheetWriter},4386:function(e,t){const r=typeof TextDecoder==="undefined"?null:new TextDecoder("utf-8");function bufferToString(e){if(typeof e==="string"){return e}if(r){return r.decode(e)}return e.toString()}t.bufferToString=bufferToString},1734:function(e,t,r){const i=typeof TextEncoder==="undefined"?null:new TextEncoder("utf-8");const{Buffer:n}=r(181);function stringToBuffer(e){if(typeof e!=="string"){return e}if(i){return n.from(i.encode(e).buffer)}return n.from(e)}t.stringToBuffer=stringToBuffer},7410:function(e,t,r){const i=r(2563);const n=r(6289);class CellMatrix{constructor(e){this.template=e;this.sheets={}}addCell(e){this.addCellEx(n.decodeEx(e))}getCell(e){return this.findCellEx(n.decodeEx(e),true)}findCell(e){return this.findCellEx(n.decodeEx(e),false)}findCellAt(e,t,r){const i=this.sheets[e];const n=i&&i[t];return n&&n[r]}addCellEx(e){if(e.top){for(let t=e.top;t<=e.bottom;t++){for(let r=e.left;r<=e.right;r++){this.getCellAt(e.sheetName,t,r)}}}else{this.findCellEx(e,true)}}getCellEx(e){return this.findCellEx(e,true)}findCellEx(e,t){const r=this.findSheet(e,t);const i=this.findSheetRow(r,e,t);return this.findRowCell(i,e,t)}getCellAt(e,t,r){const i=this.sheets[e]||(this.sheets[e]=[]);const s=i[t]||(i[t]=[]);const o=s[r]||(s[r]={sheetName:e,address:n.n2l(r)+t,row:t,col:r});return o}removeCellEx(e){const t=this.findSheet(e);if(!t){return}const r=this.findSheetRow(t,e);if(!r){return}delete r[e.col]}forEachInSheet(e,t){const r=this.sheets[e];if(r){r.forEach(((e,r)=>{if(e){e.forEach(((e,i)=>{if(e){t(e,r,i)}}))}}))}}forEach(e){i.each(this.sheets,((t,r)=>{this.forEachInSheet(r,e)}))}map(e){const t=[];this.forEach((r=>{t.push(e(r))}));return t}findSheet(e,t){const r=e.sheetName;if(this.sheets[r]){return this.sheets[r]}if(t){return this.sheets[r]=[]}return undefined}findSheetRow(e,t,r){const{row:i}=t;if(e&&e[i]){return e[i]}if(r){return e[i]=[]}return undefined}findRowCell(e,t,r){const{col:i}=t;if(e&&e[i]){return e[i]}if(r){return e[i]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t}return undefined}spliceRows(e,t,r,i){const n=this.sheets[e];if(n){const e=[];for(let t=0;t<i;t++){e.push([])}n.splice(t,r,...e)}}spliceColumns(e,t,r,n){const s=this.sheets[e];if(s){const e=[];for(let t=0;t<n;t++){e.push(null)}i.each(s,(i=>{i.splice(t,r,...e)}))}}}e.exports=CellMatrix},6289:function(e){const t=/^[A-Z]+\d+$/;const r={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level(e){if(e<=26){return 1}if(e<=26*26){return 2}return 3},_fill(e){let t;let r;let i;let n;let s;let o=1;if(e>=4){throw new Error("Out of bounds. Excel supports columns from 1 to 16384")}if(this._l2nFill<1&&e>=1){while(o<=26){t=this._dictionary[o-1];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=1}if(this._l2nFill<2&&e>=2){o=27;while(o<=26+26*26){r=o-(26+1);i=r%26;n=Math.floor(r/26);t=this._dictionary[n]+this._dictionary[i];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=2}if(this._l2nFill<3&&e>=3){o=26+26*26+1;while(o<=16384){r=o-(26*26+26+1);i=r%26;n=Math.floor(r/26)%26;s=Math.floor(r/(26*26));t=this._dictionary[s]+this._dictionary[n]+this._dictionary[i];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=3}},l2n(e){if(!this._l2n[e]){this._fill(e.length)}if(!this._l2n[e]){throw new Error(`Out of bounds. Invalid column letter: ${e}`)}return this._l2n[e]},n2l(e){if(e<1||e>16384){throw new Error(`${e} is out of bounds. Excel supports columns from 1 to 16384`)}if(!this._n2l[e]){this._fill(this._level(e))}return this._n2l[e]},_hash:{},validateAddress(e){if(!t.test(e)){throw new Error(`Invalid Address: ${e}`)}return true},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t){return t}let r=false;let i="";let n=0;let s=false;let o="";let c=0;for(let t=0,h;t<e.length;t++){h=e.charCodeAt(t);if(!s&&h>=65&&h<=90){r=true;i+=e[t];n=n*26+h-64}else if(h>=48&&h<=57){s=true;o+=e[t];c=c*10+h-48}else if(s&&r&&h!==36){break}}if(!r){n=undefined}else if(n>16384){throw new Error(`Out of bounds. Invalid column letter: ${i}`)}if(!s){c=undefined}e=i+o;const h={address:e,col:n,row:c,$col$row:`$${i}$${o}`};if(n<=100&&c<=100){this._hash[e]=h;this._hash[h.$col$row]=h}return h},getAddress(e,t){if(t){const r=this.n2l(t)+e;return this.decodeAddress(r)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(t.length===2){const e=this.decodeAddress(t[0]);const r=this.decodeAddress(t[1]);const i={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};i.tl=this.n2l(i.left)+i.top;i.br=this.n2l(i.right)+i.bottom;i.dimensions=`${i.tl}:${i.br}`;return i}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/);const r=t[1]||t[2];const i=t[3];const n=i.split(":");if(n.length>1){let e=this.decodeAddress(n[0]);let t=this.decodeAddress(n[1]);const i=Math.min(e.row,t.row);const s=Math.min(e.col,t.col);const o=Math.max(e.row,t.row);const c=Math.max(e.col,t.col);e=this.n2l(s)+i;t=this.n2l(c)+o;return{top:i,left:s,bottom:o,right:c,sheetName:r,tl:{address:e,col:s,row:i,$col$row:`$${this.n2l(s)}$${i}`,sheetName:r},br:{address:t,col:c,row:o,$col$row:`$${this.n2l(c)}$${o}`,sheetName:r},dimensions:`${e}:${t}`}}if(i.startsWith("#")){return r?{sheetName:r,error:i}:{error:i}}const s=this.decodeAddress(i);return r?{sheetName:r,...s}:s},encodeAddress(e,t){return r.n2l(t)+e},encode(){switch(arguments.length){case 2:return r.encodeAddress(arguments[0],arguments[1]);case 4:return`${r.encodeAddress(arguments[0],arguments[1])}:${r.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[r,i,,n,s]=e;const[o,c]=t;return o>=r&&o<=n&&c>=i&&c<=s}};e.exports=r},7307:function(e,t){const oneDepthCopy=(e,t)=>({...e,...t.reduce(((t,r)=>{if(e[r])t[r]={...e[r]};return t}),{})});const setIfExists=(e,t,r,i=[])=>{if(e[r])t[r]=oneDepthCopy(e[r],i)};const isEmptyObj=e=>Object.keys(e).length===0;const copyStyle=e=>{if(!e)return e;if(isEmptyObj(e))return{};const t={...e};setIfExists(e,t,"font",["color"]);setIfExists(e,t,"alignment");setIfExists(e,t,"protection");if(e.border){setIfExists(e,t,"border");setIfExists(e.border,t.border,"top",["color"]);setIfExists(e.border,t.border,"left",["color"]);setIfExists(e.border,t.border,"bottom",["color"]);setIfExists(e.border,t.border,"right",["color"]);setIfExists(e.border,t.border,"diagonal",["color"])}if(e.fill){setIfExists(e,t,"fill",["fgColor","bgColor","center"]);if(e.fill.stops){t.fill.stops=e.fill.stops.map((e=>oneDepthCopy(e,["color"])))}}return t};t.copyStyle=copyStyle},1924:function(e,t,r){"use strict";const i=r(6982);const n={hash(e,...t){const r=i.createHash(e);r.update(Buffer.concat(t));return r.digest()},convertPasswordToHash(e,t,r,n){t=t.toLowerCase();const s=i.getHashes();if(s.indexOf(t)<0){throw new Error(`Hash algorithm '${t}' not supported!`)}const o=Buffer.from(e,"utf16le");let c=this.hash(t,Buffer.from(r,"base64"),o);for(let e=0;e<n;e++){const r=Buffer.alloc(4);r.writeUInt32LE(e,0);c=this.hash(t,c,r)}return c.toString("base64")},randomBytes(e){return i.randomBytes(e)}};e.exports=n},6247:function(e){e.exports=async function*iterateStream(e){const t=[];e.on("data",(e=>t.push(e)));let r;const i=new Promise((e=>r=e));let n=false;e.on("end",(()=>{n=true;r()}));let s=false;e.on("error",(e=>{s=e;r()}));while(!n||t.length>0){if(t.length===0){e.resume();await Promise.race([once(e,"data"),i])}else{e.pause();const r=t.shift();yield r}if(s)throw s}r()};function once(e,t){return new Promise((r=>{let i=false;const handler=()=>{if(!i){i=true;e.removeListener(t,handler);r()}};e.addListener(t,handler)}))}},4354:function(e,t,r){const{SaxesParser:i}=r(8378);const{PassThrough:n}=r(1643);const{bufferToString:s}=r(4386);e.exports=async function*(e){if(e.pipe&&!e[Symbol.asyncIterator]){e=e.pipe(new n)}const t=new i;let r;t.on("error",(e=>{r=e}));let o=[];t.on("opentag",(e=>o.push({eventType:"opentag",value:e})));t.on("text",(e=>o.push({eventType:"text",value:e})));t.on("closetag",(e=>o.push({eventType:"closetag",value:e})));for await(const i of e){t.write(s(i));if(r)throw r;yield o;o=[]}}},5408:function(e,t,r){const i=r(6289);const n=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi;const s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function slideFormula(e,t,r){const o=i.decode(t);const c=i.decode(r);return e.replace(n,((e,t,r,n,h)=>{if(h){return e}const p=s.exec(n);if(p){const r=p[1];const n=p[2].toUpperCase();const s=p[3];const h=p[4];if(n.length>3||n.length===3&&n>"XFD"){return e}let g=i.l2n(n);let y=parseInt(h,10);if(!r){g+=c.col-o.col}if(!s){y+=c.row-o.row}const v=(t||"")+(r||"")+i.n2l(g)+(s||"")+y;return v}return e}))}e.exports={slideFormula:slideFormula}},6212:function(e){class SharedStrings{constructor(){this._values=[];this._totalRefs=0;this._hash=Object.create(null)}get count(){return this._values.length}get values(){return this._values}get totalRefs(){return this._totalRefs}getString(e){return this._values[e]}add(e){let t=this._hash[e];if(t===undefined){t=this._hash[e]=this._values.length;this._values.push(e)}this._totalRefs++;return t}}e.exports=SharedStrings},6:function(e,t,r){const i=r(1643);const n=r(9145);const s=r(5471);class StringChunk{constructor(e,t){this._data=e;this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,r,i){return this.toBuffer().copy(e,t,r,i)}toBuffer(){if(!this._buffer){this._buffer=Buffer.from(this._data,this._encoding)}return this._buffer}}class StringBufChunk{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,i){return this._data._buf.copy(e,t,r,i)}toBuffer(){return this._data.toBuffer()}}class BufferChunk{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,i){this._data.copy(e,t,r,i)}toBuffer(){return this._data}}class ReadWriteBuf{constructor(e){this.size=e;this.buffer=Buffer.alloc(e);this.iRead=0;this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size){return this.buffer}const e=Buffer.alloc(this.iWrite-this.iRead);this.buffer.copy(e,0,this.iRead,this.iWrite);return e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;if(e===0){return null}if(e===undefined||e>=this.length){t=this.toBuffer();this.iRead=this.iWrite;return t}t=Buffer.alloc(e);this.buffer.copy(t,0,this.iRead,e);this.iRead+=e;return t}write(e,t,r){const i=Math.min(r,this.size-this.iWrite);e.copy(this.buffer,this.iWrite,t,t+i);this.iWrite+=i;return i}}const StreamBuf=function(e){e=e||{};this.bufSize=e.bufSize||1024*1024;this.buffers=[];this.batch=e.batch||false;this.corked=false;this.inPos=0;this.outPos=0;this.pipes=[];this.paused=false;this.encoding=null};n.inherits(StreamBuf,i.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return Buffer.concat(this.buffers.map((e=>e.toBuffer())))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full){return e}}const e=new ReadWriteBuf(this.bufSize);this.buffers.push(e);return e},async _pipe(e){const write=function(t){return new Promise((r=>{t.write(e.toBuffer(),(()=>{r()}))}))};await Promise.all(this.pipes.map(write))},_writeToBuffers(e){let t=0;const r=e.length;while(t<r){const i=this._getWritableBuffer();t+=i.write(e,t,r-t)}},async write(e,t,r){if(t instanceof Function){r=t;t="utf8"}r=r||n.nop;let i;if(e instanceof s){i=new StringBufChunk(e)}else if(e instanceof Buffer){i=new BufferChunk(e)}else if(typeof e==="string"||e instanceof String||e instanceof ArrayBuffer){i=new StringChunk(e,t)}else{throw new Error("Chunk must be one of type String, Buffer or StringBuf.")}if(this.pipes.length){if(this.batch){this._writeToBuffers(i);while(!this.corked&&this.buffers.length>1){this._pipe(this.buffers.shift())}}else if(!this.corked){await this._pipe(i);r()}else{this._writeToBuffers(i);process.nextTick(r)}}else{if(!this.paused){this.emit("data",i.toBuffer())}this._writeToBuffers(i);this.emit("readable")}return true},cork(){this.corked=true},_flush(){if(this.pipes.length){while(this.buffers.length){this._pipe(this.buffers.shift())}}},uncork(){this.corked=false;this._flush()},end(e,t,r){const writeComplete=e=>{if(e){r(e)}else{this._flush();this.pipes.forEach((e=>{e.end()}));this.emit("finish")}};if(e){this.write(e,t,writeComplete)}else{writeComplete()}},read(e){let t;if(e){t=[];while(e&&this.buffers.length&&!this.buffers[0].eod){const r=this.buffers[0];const i=r.read(e);e-=i.length;t.push(i);if(r.eod&&r.full){this.buffers.shift()}}return Buffer.concat(t)}t=this.buffers.map((e=>e.toBuffer())).filter(Boolean);this.buffers=[];return Buffer.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=true},resume(){this.paused=false},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e);if(!this.paused&&this.buffers.length){this.end()}},unpipe(e){this.pipes=this.pipes.filter((t=>t!==e))},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}});e.exports=StreamBuf},5471:function(e){class StringBuf{constructor(e){this._buf=Buffer.alloc(e&&e.size||16384);this._encoding=e&&e.encoding||"utf8";this._inPos=0;this._buffer=undefined}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){if(!this._buffer){this._buffer=Buffer.alloc(this.length);this._buf.copy(this._buffer,0,0,this.length)}return this._buffer}reset(e){e=e||0;this._buffer=undefined;this._inPos=e}_grow(e){let t=this._buf.length*2;while(t<e){t*=2}const r=Buffer.alloc(t);this._buf.copy(r,0);this._buf=r}addText(e){this._buffer=undefined;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);while(t>=this._buf.length-4){this._grow(this._inPos+e.length);t=this._inPos+this._buf.write(e,this._inPos,this._encoding)}this._inPos=t}addStringBuf(e){if(e.length){this._buffer=undefined;if(this.length+e.length>this.capacity){this._grow(this.length+e.length)}e._buf.copy(this._buf,this._inPos,0,e.length);this._inPos+=e.length}}}e.exports=StringBuf},2563:function(e){const{toString:t}=Object.prototype;const r=/["&<>]/;const i={each:function each(e,t){if(e){if(Array.isArray(e)){e.forEach(t)}else{Object.keys(e).forEach((r=>{t(e[r],r)}))}}},some:function some(e,t){if(e){if(Array.isArray(e)){return e.some(t)}return Object.keys(e).some((r=>t(e[r],r)))}return false},every:function every(e,t){if(e){if(Array.isArray(e)){return e.every(t)}return Object.keys(e).every((r=>t(e[r],r)))}return true},map:function map(e,t){if(e){if(Array.isArray(e)){return e.map(t)}return Object.keys(e).map((r=>t(e[r],r)))}return[]},keyBy(e,t){return e.reduce(((e,r)=>{e[r[t]]=r;return e}),{})},isEqual:function isEqual(e,t){const r=typeof e;const n=typeof t;const s=Array.isArray(e);const o=Array.isArray(t);let c;if(r!==n){return false}switch(typeof e){case"object":if(s||o){if(s&&o){return e.length===t.length&&e.every(((e,r)=>{const n=t[r];return i.isEqual(e,n)}))}return false}if(e===null||t===null){return e===t}c=Object.keys(e);if(Object.keys(t).length!==c.length){return false}for(const e of c){if(!t.hasOwnProperty(e)){return false}}return i.every(e,((e,r)=>{const n=t[r];return i.isEqual(e,n)}));default:return e===t}},escapeHtml(e){const t=r.exec(e);if(!t)return e;let i="";let n="";let s=0;let o=t.index;for(;o<e.length;o++){switch(e.charAt(o)){case'"':n="&quot;";break;case"&":n="&amp;";break;case"'":n="&apos;";break;case"<":n="&lt;";break;case">":n="&gt;";break;default:continue}if(s!==o)i+=e.substring(s,o);s=o+1;i+=n}if(s!==o)return i+e.substring(s,o);return i},strcmp(e,t){if(e<t)return-1;if(e>t)return 1;return 0},isUndefined(e){return t.call(e)==="[object Undefined]"},isObject(e){return t.call(e)==="[object Object]"},deepMerge(){const e=arguments[0]||{};const{length:t}=arguments;let r,n,s;function assignValue(t,o){r=e[o];s=Array.isArray(t);if(i.isObject(t)||s){if(s){s=false;n=r&&Array.isArray(r)?r:[]}else{n=r&&i.isObject(r)?r:{}}e[o]=i.deepMerge(n,t)}else if(!i.isUndefined(t)){e[o]=t}}for(let e=0;e<t;e++){i.each(arguments[e],assignValue)}return e}};e.exports=i},9145:function(e,t,r){const i=r(9896);const inherits=function(e,t,r,i){e.super_=t;if(!i){i=r;r=null}if(r){Object.keys(r).forEach((t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}const n={constructor:{value:e,enumerable:false,writable:false,configurable:true}};if(i){Object.keys(i).forEach((e=>{n[e]=Object.getOwnPropertyDescriptor(i,e)}))}e.prototype=Object.create(t.prototype,n)};const n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/;const s={nop(){},promiseImmediate(e){return new Promise((t=>{if(global.setImmediate){setImmediate((()=>{t(e)}))}else{setTimeout((()=>{t(e)}),1)}}))},inherits:inherits,dateToExcel(e,t){return 25569+e.getTime()/(24*3600*1e3)-(t?1462:0)},excelToDate(e,t){const r=Math.round((e-25569+(t?1462:0))*24*3600*1e3);return new Date(r)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=s.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=n.exec(e);if(!t)return e;let r="";let i="";let s=0;let o=t.index;for(;o<e.length;o++){const t=e.charCodeAt(o);switch(t){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&apos;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;case 127:i="";break;default:{if(t<=31&&(t<=8||t>=11&&t!==13)){i="";break}continue}}if(s!==o)r+=e.substring(s,o);s=o+1;if(i)r+=i}if(s!==o)return r+e.substring(s,o);return r},xmlDecode(e){return e.replace(/&([a-z]*);/g,(e=>{switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}}))},validInt(e){const t=parseInt(e,10);return!Number.isNaN(t)?t:0},isDateFmt(e){if(!e){return false}e=e.replace(/\[[^\]]*]/g,"");e=e.replace(/"[^"]*"/g,"");const t=e.match(/[ymdhMsb]+/)!==null;return t},fs:{exists(e){return new Promise((t=>{i.access(e,i.constants.F_OK,(e=>{t(!e)}))}))}},toIsoDateString(e){return e.toIsoString().subsstr(0,10)},parseBoolean(e){return e===true||e==="true"||e===1||e==="1"}};e.exports=s},8674:function(e,t,r){const i=r(2563);const n=r(9145);const s="<";const o=">";const c="</";const h="/>";function pushAttribute(e,t,r){e.push(` ${t}="${n.xmlEncode(r.toString())}"`)}function pushAttributes(e,t){if(t){const r=[];i.each(t,((e,t)=>{if(e!==undefined){pushAttribute(r,t,e)}}));e.push(r.join(""))}}class XmlStream{constructor(){this._xml=[];this._stack=[];this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:undefined}get cursor(){return this._xml.length}openXml(e){const t=this._xml;t.push("<?xml");pushAttributes(t,e);t.push("?>\n")}openNode(e,t){const r=this.tos;const i=this._xml;if(r&&this.open){i.push(o)}this._stack.push(e);i.push(s);i.push(e);pushAttributes(i,t);this.leaf=true;this.open=true}addAttribute(e,t){if(!this.open){throw new Error("Cannot write attributes to node if it is not open")}if(t!==undefined){pushAttribute(this._xml,e,t)}}addAttributes(e){if(!this.open){throw new Error("Cannot write attributes to node if it is not open")}pushAttributes(this._xml,e)}writeText(e){const t=this._xml;if(this.open){t.push(o);this.open=false}this.leaf=false;t.push(n.xmlEncode(e.toString()))}writeXml(e){if(this.open){this._xml.push(o);this.open=false}this.leaf=false;this._xml.push(e)}closeNode(){const e=this._stack.pop();const t=this._xml;if(this.leaf){t.push(h)}else{t.push(c);t.push(e);t.push(o)}this.open=false;this.leaf=false}leafNode(e,t,r){this.openNode(e,t);if(r!==undefined){this.writeText(r)}this.closeNode()}closeAll(){while(this._stack.length){this.closeNode()}}addRollback(){this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open});return this.cursor}commit(){this._rollbacks.pop()}rollback(){const e=this._rollbacks.pop();if(this._xml.length>e.xml){this._xml.splice(e.xml,this._xml.length-e.xml)}if(this._stack.length>e.stack){this._stack.splice(e.stack,this._stack.length-e.stack)}this.leaf=e.leaf;this.open=e.open}get xml(){this.closeAll();return this._xml.join("")}}XmlStream.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"};e.exports=XmlStream},568:function(e,t,r){const i=r(4434);const n=r(5485);const s=r(6);const{stringToBuffer:o}=r(1734);class ZipWriter extends i.EventEmitter{constructor(e){super();this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e);this.zip=new n;this.stream=new s}append(e,t){if(t.hasOwnProperty("base64")&&t.base64){this.zip.file(t.name,e,{base64:true})}else{if(process.browser&&typeof e==="string"){e=o(e)}this.zip.file(t.name,e)}}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e);this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}e.exports={ZipWriter:ZipWriter}},5877:function(e){e.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},8496:function(e){"use strict";e.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},8287:function(e,t,r){const i=r(4354);const n=r(8674);class BaseXform{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null;if(this.map){Object.values(this.map).forEach((e=>{if(e instanceof BaseXform){e.reset()}else if(e.xform){e.xform.reset()}}))}}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e){for(const{eventType:e,value:r}of t){if(e==="opentag"){this.parseOpen(r)}else if(e==="text"){this.parseText(r)}else if(e==="closetag"){if(!this.parseClose(r.name)){return this.model}}}}return this.model}async parseStream(e){return this.parse(i(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new n;this.render(t,e);return t.xml}static toAttribute(e,t,r=false){if(e===undefined){if(r){return t}}else if(r||e!==t){return e.toString()}return undefined}static toStringAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toStringValue(e,t){return e===undefined?t:e}static toBoolAttribute(e,t,r=false){if(e===undefined){if(r){return t}}else if(r||e!==t){return e?"1":"0"}return undefined}static toBoolValue(e,t){return e===undefined?t:e==="1"}static toIntAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toIntValue(e,t){return e===undefined?t:parseInt(e,10)}static toFloatAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toFloatValue(e,t){return e===undefined?t:parseFloat(e)}}e.exports=BaseXform},6019:function(e,t,r){const i=r(8287);const n=r(6289);class DefinedNamesXform extends i{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId});e.writeText(t.ranges.join(","));e.closeNode()}parseOpen(e){switch(e.name){case"definedName":this._parsedName=e.attributes.name;this._parsedLocalSheetId=e.attributes.localSheetId;this._parsedText=[];return true;default:return false}}parseText(e){this._parsedText.push(e)}parseClose(){this.model={name:this._parsedName,ranges:extractRanges(this._parsedText.join(""))};if(this._parsedLocalSheetId!==undefined){this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)}return false}}function isValidRange(e){try{n.decodeEx(e);return true}catch(e){return false}}function extractRanges(e){const t=[];let r=false;let i="";e.split(",").forEach((e=>{if(!e){return}const n=(e.match(/'/g)||[]).length;if(!n){if(r){i+=`${e},`}else if(isValidRange(e)){t.push(e)}return}const s=n%2===0;if(!r&&s&&isValidRange(e)){t.push(e)}else if(r&&!s){r=false;if(isValidRange(i+e)){t.push(i+e)}i=""}else{r=true;i+=`${e},`}}));return t}e.exports=DefinedNamesXform},6995:function(e,t,r){const i=r(9145);const n=r(8287);class WorksheetXform extends n{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){if(e.name==="sheet"){this.model={name:i.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorksheetXform},5288:function(e,t,r){const i=r(8287);class WorkbookCalcPropertiesXform extends i{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:undefined})}parseOpen(e){if(e.name==="calcPr"){this.model={};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorkbookCalcPropertiesXform},9166:function(e,t,r){const i=r(8287);class WorksheetPropertiesXform extends i{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:undefined,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){if(e.name==="workbookPr"){this.model={date1904:e.attributes.date1904==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorksheetPropertiesXform},9258:function(e,t,r){const i=r(8287);class WorkbookViewXform extends i{render(e,t){const r={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};if(t.visibility&&t.visibility!=="visible"){r.visibility=t.visibility}e.leafNode("workbookView",r)}parseOpen(e){if(e.name==="workbookView"){const t=this.model={};const addS=function(e,r,i){const n=r!==undefined?t[e]=r:i;if(n!==undefined){t[e]=n}};const addN=function(e,r,i){const n=r!==undefined?t[e]=parseInt(r,10):i;if(n!==undefined){t[e]=n}};addN("x",e.attributes.xWindow,0);addN("y",e.attributes.yWindow,0);addN("width",e.attributes.windowWidth,25e3);addN("height",e.attributes.windowHeight,1e4);addS("visibility",e.attributes.visibility,"visible");addN("activeTab",e.attributes.activeTab,undefined);addN("firstSheet",e.attributes.firstSheet,undefined);return true}return false}parseText(){}parseClose(){return false}}e.exports=WorkbookViewXform},9312:function(e,t,r){const i=r(2563);const n=r(6289);const s=r(8674);const o=r(8287);const c=r(2216);const h=r(6422);const p=r(6019);const g=r(6995);const y=r(9258);const v=r(9166);const b=r(5288);class WorkbookXform extends o{constructor(){super();this.map={fileVersion:WorkbookXform.STATIC_XFORMS.fileVersion,workbookPr:new v,bookViews:new h({tag:"bookViews",count:false,childXform:new y}),sheets:new h({tag:"sheets",count:false,childXform:new g}),definedNames:new h({tag:"definedNames",count:false,childXform:new p}),calcPr:new b}}prepare(e){e.sheets=e.worksheets;const t=[];let r=0;e.sheets.forEach((e=>{if(e.pageSetup&&e.pageSetup.printArea){e.pageSetup.printArea.split("&&").forEach((i=>{const n=i.split(":");const s={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${n[0]}:$${n[1]}`],localSheetId:r};t.push(s)}))}if(e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const i=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");i.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");i.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const n={name:"_xlnm.Print_Titles",ranges:i,localSheetId:r};t.push(n)}r++}));if(t.length){e.definedNames=e.definedNames.concat(t)}(e.media||[]).forEach(((e,t)=>{e.name=e.type+(t+1)}))}render(e,t){e.openXml(s.StdDocAttributes);e.openNode("workbook",WorkbookXform.WORKBOOK_ATTRIBUTES);this.map.fileVersion.render(e);this.map.workbookPr.render(e,t.properties);this.map.bookViews.render(e,t.views);this.map.sheets.render(e,t.sheets);this.map.definedNames.render(e,t.definedNames);this.map.calcPr.render(e,t.calcProperties);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"workbook":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"workbook":this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}};if(this.map.definedNames.model){this.model.definedNames=this.map.definedNames.model}return false;default:return true}}reconcile(e){const t=(e.workbookRels||[]).reduce(((e,t)=>{e[t.Id]=t;return e}),{});const r=[];let s;let o=0;(e.sheets||[]).forEach((i=>{const n=t[i.rId];if(!n){return}s=e.worksheetHash[`xl/${n.Target.replace(/^(\s|\/xl\/)+/,"")}`];if(s){s.name=i.name;s.id=i.id;s.state=i.state;r[o++]=s}}));const c=[];i.each(e.definedNames,(e=>{if(e.name==="_xlnm.Print_Area"){s=r[e.localSheetId];if(s){if(!s.pageSetup){s.pageSetup={}}const t=n.decodeEx(e.ranges[0]);s.pageSetup.printArea=s.pageSetup.printArea?`${s.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if(e.name==="_xlnm.Print_Titles"){s=r[e.localSheetId];if(s){if(!s.pageSetup){s.pageSetup={}}const t=e.ranges.join(",");const r=/\$/g;const i=/\$\d+:\$\d+/;const n=t.match(i);if(n&&n.length){const e=n[0];s.pageSetup.printTitlesRow=e.replace(r,"")}const o=/\$[A-Z]+:\$[A-Z]+/;const c=t.match(o);if(c&&c.length){const e=c[0];s.pageSetup.printTitlesColumn=e.replace(r,"")}}}else{c.push(e)}}));e.definedNames=c;e.media.forEach(((e,t)=>{e.index=t}))}}WorkbookXform.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"};WorkbookXform.STATIC_XFORMS={fileVersion:new c({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})};e.exports=WorkbookXform},2781:function(e,t,r){const i=r(9573);const n=r(9145);const s=r(8287);const o=e.exports=function(e){this.model=e};n.inherits(o,s,{get tag(){return"r"},get richTextXform(){if(!this._richTextXform){this._richTextXform=new i}return this._richTextXform},render(e,t){t=t||this.model;e.openNode("comment",{ref:t.ref,authorId:0});e.openNode("text");if(t&&t.note&&t.note.texts){t.note.texts.forEach((t=>{this.richTextXform.render(e,t)}))}e.closeNode();e.closeNode()},parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"comment":this.model={type:"note",note:{texts:[]},...e.attributes};return true;case"r":this.parser=this.richTextXform;this.parser.parseOpen(e);return true;default:return false}},parseText(e){if(this.parser){this.parser.parseText(e)}},parseClose(e){switch(e){case"comment":return false;case"r":this.model.note.texts.push(this.parser.model);this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}})},9474:function(e,t,r){const i=r(8674);const n=r(9145);const s=r(8287);const o=r(2781);const c=e.exports=function(){this.map={comment:new o}};n.inherits(c,s,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model;e.openXml(i.StdDocAttributes);e.openNode("comments",c.COMMENTS_ATTRIBUTES);e.openNode("authors");e.leafNode("author",null,"Author");e.closeNode();e.openNode("commentList");t.comments.forEach((t=>{this.map.comment.render(e,t)}));e.closeNode();e.closeNode()},parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"commentList":this.model={comments:[]};return true;case"comment":this.parser=this.map.comment;this.parser.parseOpen(e);return true;default:return false}},parseText(e){if(this.parser){this.parser.parseText(e)}},parseClose(e){switch(e){case"commentList":return false;case"comment":this.model.comments.push(this.parser.model);this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}})},1711:function(e,t,r){const i=r(8287);class VmlPositionXform extends i{constructor(e){super();this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,r){if(t===r[2]){e.leafNode(this.tag)}else if(this.tag==="x:SizeWithCells"&&t===r[1]){e.leafNode(this.tag)}}parseOpen(e){switch(e.name){case this.tag:this.model={};this.model[this.tag]=true;return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=VmlPositionXform},4023:function(e,t,r){const i=r(8287);class VmlProtectionXform extends i{constructor(e){super();this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){switch(e.name){case this.tag:this.text="";return true;default:return false}}parseText(e){this.text=e}parseClose(){return false}}e.exports=VmlProtectionXform},8723:function(e,t,r){const i=r(8287);class VmlAnchorXform extends i{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left);const r=Math.floor((e.left-t)*68);const i=Math.floor(e.top);const n=Math.floor((e.top-i)*18);const s=Math.floor(e.right);const o=Math.floor((e.right-s)*68);const c=Math.floor(e.bottom);const h=Math.floor((e.bottom-c)*18);return[t,r,i,n,s,o,c,h]}getDefaultRect(e){const t=e.col;const r=6;const i=Math.max(e.row-2,0);const n=14;const s=t+2;const o=2;const c=i+4;const h=16;return[t,r,i,n,s,o,c,h]}render(e,t){const r=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,r.join(", "))}parseOpen(e){switch(e.name){case this.tag:this.text="";return true;default:return false}}parseText(e){this.text=e}parseClose(){return false}}e.exports=VmlAnchorXform},7972:function(e,t,r){const i=r(8287);const n=r(8723);const s=r(4023);const o=r(1711);const c=["twoCells","oneCells","absolute"];class VmlClientDataXform extends i{constructor(){super();this.map={"x:Anchor":new n,"x:Locked":new s({tag:"x:Locked"}),"x:LockText":new s({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:r,editAs:i}=t.note;e.openNode(this.tag,{ObjectType:"Note"});this.map["x:MoveWithCells"].render(e,i,c);this.map["x:SizeWithCells"].render(e,i,c);this.map["x:Anchor"].render(e,t);this.map["x:Locked"].render(e,r.locked);e.leafNode("x:AutoFill",null,"False");this.map["x:LockText"].render(e,r.lockText);e.leafNode("x:Row",null,t.refAddress.row-1);e.leafNode("x:Column",null,t.refAddress.col-1);e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset();this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.normalizeModel();return false;default:return true}}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model);const t=Object.keys(e).length;this.model.editAs=c[t];this.model.anchor=this.map["x:Anchor"].text;this.model.protection.locked=this.map["x:Locked"].text;this.model.protection.lockText=this.map["x:LockText"].text}}e.exports=VmlClientDataXform},5135:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(2007);class VmlNotesXform extends n{constructor(){super();this.map={"v:shape":new s}}get tag(){return"xml"}render(e,t){e.openXml(i.StdDocAttributes);e.openNode(this.tag,VmlNotesXform.DRAWING_ATTRIBUTES);e.openNode("o:shapelayout",{"v:ext":"edit"});e.leafNode("o:idmap",{"v:ext":"edit",data:1});e.closeNode();e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"});e.leafNode("v:stroke",{joinstyle:"miter"});e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"});e.closeNode();t.comments.forEach(((t,r)=>{this.map["v:shape"].render(e,t,r)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={comments:[]};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.comments.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}reconcile(e,t){e.anchors.forEach((e=>{if(e.br){this.map["xdr:twoCellAnchor"].reconcile(e,t)}else{this.map["xdr:oneCellAnchor"].reconcile(e,t)}}))}}VmlNotesXform.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"};e.exports=VmlNotesXform},2007:function(e,t,r){const i=r(8287);const n=r(3078);const s=r(7972);class VmlShapeXform extends i{constructor(){super();this.map={"v:textbox":new n,"x:ClientData":new s}}get tag(){return"v:shape"}render(e,t,r){e.openNode("v:shape",VmlShapeXform.V_SHAPE_ATTRIBUTES(t,r));e.leafNode("v:fill",{color2:"infoBackground [80]"});e.leafNode("v:shadow",{color:"none [81]",obscured:"t"});e.leafNode("v:path",{"o:connecttype":"none"});this.map["v:textbox"].render(e,t);this.map["x:ClientData"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset;this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection;this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor;this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs;return false;default:return true}}}VmlShapeXform.V_SHAPE_ATTRIBUTES=(e,t)=>({id:`_x0000_s${1025+t}`,type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode});e.exports=VmlShapeXform},3078:function(e,t,r){const i=r(8287);class VmlTextboxXform extends i{get tag(){return"v:textbox"}conversionUnit(e,t,r){return`${parseFloat(e)*t.toFixed(2)}${r}`}reverseConversionUnit(e){return(e||"").split(",").map((e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2))))}render(e,t){const r={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;if(Array.isArray(e)){e=e.map((e=>this.conversionUnit(e,10,"mm"))).join(",")}if(e){r.inset=e}}e.openNode("v:textbox",r);e.leafNode("div",{style:"text-align:left"});e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.model={inset:this.reverseConversionUnit(e.attributes.inset)};return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=VmlTextboxXform},8953:function(e,t,r){const i=r(8287);class CompositeXform extends i{createNewModel(e){return{}}parseOpen(e){this.parser=this.parser||this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}if(e.name===this.tag){this.model=this.createNewModel(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}onParserClose(e,t){this.model[e]=t.model}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.onParserClose(e,this.parser);this.parser=undefined}return true}return e!==this.tag}}e.exports=CompositeXform},9914:function(e,t,r){const i=r(8287);class AppHeadingPairsXform extends i{render(e,t){e.openNode("HeadingPairs");e.openNode("vt:vector",{size:2,baseType:"variant"});e.openNode("vt:variant");e.leafNode("vt:lpstr",undefined,"Worksheets");e.closeNode();e.openNode("vt:variant");e.leafNode("vt:i4",undefined,t.length);e.closeNode();e.closeNode();e.closeNode()}parseOpen(e){return e.name==="HeadingPairs"}parseText(){}parseClose(e){return e!=="HeadingPairs"}}e.exports=AppHeadingPairsXform},1572:function(e,t,r){const i=r(8287);class AppTitlesOfPartsXform extends i{render(e,t){e.openNode("TitlesOfParts");e.openNode("vt:vector",{size:t.length,baseType:"lpstr"});t.forEach((t=>{e.leafNode("vt:lpstr",undefined,t.name)}));e.closeNode();e.closeNode()}parseOpen(e){return e.name==="TitlesOfParts"}parseText(){}parseClose(e){return e!=="TitlesOfParts"}}e.exports=AppTitlesOfPartsXform},7661:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(9656);const o=r(9914);const c=r(1572);class AppXform extends n{constructor(){super();this.map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new c}}render(e,t){e.openXml(i.StdDocAttributes);e.openNode("Properties",AppXform.PROPERTY_ATTRIBUTES);e.leafNode("Application",undefined,"Microsoft Excel");e.leafNode("DocSecurity",undefined,"0");e.leafNode("ScaleCrop",undefined,"false");this.map.HeadingPairs.render(e,t.worksheets);this.map.TitleOfParts.render(e,t.worksheets);this.map.Company.render(e,t.company||"");this.map.Manager.render(e,t.manager);e.leafNode("LinksUpToDate",undefined,"false");e.leafNode("SharedDoc",undefined,"false");e.leafNode("HyperlinksChanged",undefined,"false");e.leafNode("AppVersion",undefined,"16.0300");e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"Properties":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"Properties":this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model};return false;default:return true}}}AppXform.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")};AppXform.DateAttrs={"xsi:type":"dcterms:W3CDTF"};AppXform.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"};e.exports=AppXform},5919:function(e,t,r){const i=r(8674);const n=r(8287);class ContentTypesXform extends n{render(e,t){e.openXml(i.StdDocAttributes);e.openNode("Types",ContentTypesXform.PROPERTY_ATTRIBUTES);const r={};(t.media||[]).forEach((t=>{if(t.type==="image"){const i=t.extension;if(!r[i]){r[i]=true;e.leafNode("Default",{Extension:i,ContentType:`image/${i}`})}}}));e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"});e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"});e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"});t.worksheets.forEach((t=>{const r=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:r,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}));e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"});e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"});const n=t.sharedStrings&&t.sharedStrings.count;if(n){e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"})}if(t.tables){t.tables.forEach((t=>{e.leafNode("Override",{PartName:`/xl/tables/${t.target}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}))}if(t.drawings){t.drawings.forEach((t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}))}if(t.commentRefs){e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});t.commentRefs.forEach((({commentName:t})=>{e.leafNode("Override",{PartName:`/xl/${t}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})}))}e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"});e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"});e.closeNode()}parseOpen(){return false}parseText(){}parseClose(){return false}}ContentTypesXform.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"};e.exports=ContentTypesXform},9505:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(4689);const o=r(9656);const c=r(8101);class CoreXform extends n{constructor(){super();this.map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new s({tag:"cp:lastPrinted",format:CoreXform.DateFormat}),"cp:revision":new c({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new s({tag:"dcterms:created",attrs:CoreXform.DateAttrs,format:CoreXform.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:CoreXform.DateAttrs,format:CoreXform.DateFormat})}}render(e,t){e.openXml(i.StdDocAttributes);e.openNode("cp:coreProperties",CoreXform.CORE_PROPERTY_ATTRIBUTES);this.map["dc:creator"].render(e,t.creator);this.map["dc:title"].render(e,t.title);this.map["dc:subject"].render(e,t.subject);this.map["dc:description"].render(e,t.description);this.map["dc:identifier"].render(e,t.identifier);this.map["dc:language"].render(e,t.language);this.map["cp:keywords"].render(e,t.keywords);this.map["cp:category"].render(e,t.category);this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy);this.map["cp:lastPrinted"].render(e,t.lastPrinted);this.map["cp:revision"].render(e,t.revision);this.map["cp:version"].render(e,t.version);this.map["cp:contentStatus"].render(e,t.contentStatus);this.map["cp:contentType"].render(e,t.contentType);this.map["dcterms:created"].render(e,t.created);this.map["dcterms:modified"].render(e,t.modified);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"cp:coreProperties":case"coreProperties":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"cp:coreProperties":case"coreProperties":this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model};return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}CoreXform.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")};CoreXform.DateAttrs={"xsi:type":"dcterms:W3CDTF"};CoreXform.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"};e.exports=CoreXform},7836:function(e,t,r){const i=r(8287);class RelationshipXform extends i{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){switch(e.name){case"Relationship":this.model=e.attributes;return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=RelationshipXform},7861:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(7836);class RelationshipsXform extends n{constructor(){super();this.map={Relationship:new s}}render(e,t){t=t||this._values;e.openXml(i.StdDocAttributes);e.openNode("Relationships",RelationshipsXform.RELATIONSHIPS_ATTRIBUTES);t.forEach((t=>{this.map.Relationship.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"Relationships":this.model=[];return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined}return true}switch(e){case"Relationships":return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}RelationshipsXform.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"};e.exports=RelationshipsXform},8447:function(e,t,r){const i=r(8287);class BaseCellAnchorXform extends i{parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={range:{editAs:e.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}reconcilePicture(e,t){if(e&&e.rId){const r=t.rels[e.rId];const i=r.Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(i){const e=i[1];const r=t.mediaIndex[e];return t.media[r]}}return undefined}}e.exports=BaseCellAnchorXform},2388:function(e,t,r){const i=r(8287);const n=r(9190);class BlipFillXform extends i{constructor(){super();this.map={"a:blip":new n}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag);this.map["a:blip"].render(e,t);e.openNode("a:stretch");e.leafNode("a:fillRect");e.closeNode();e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["a:blip"].model;return false;default:return true}}}e.exports=BlipFillXform},9190:function(e,t,r){const i=r(8287);class BlipXform extends i{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:embed"]};return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=BlipXform},6449:function(e,t,r){const i=r(8287);class CNvPicPrXform extends i{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag);e.leafNode("a:picLocks",{noChangeAspect:"1"});e.closeNode()}parseOpen(e){switch(e.name){case this.tag:return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=CNvPicPrXform},4290:function(e,t,r){const i=r(8287);const n=r(4358);const s=r(4686);class CNvPrXform extends i{constructor(){super();this.map={"a:hlinkClick":new n,"a:extLst":new s}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:`Picture ${t.index}`});this.map["a:hlinkClick"].render(e,t);this.map["a:extLst"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["a:hlinkClick"].model;return false;default:return true}}}e.exports=CNvPrXform},679:function(e,t,r){const i=r(8287);const n=r(8101);class CellPositionXform extends i{constructor(e){super();this.tag=e.tag;this.map={"xdr:col":new n({tag:"xdr:col",zero:true}),"xdr:colOff":new n({tag:"xdr:colOff",zero:true}),"xdr:row":new n({tag:"xdr:row",zero:true}),"xdr:rowOff":new n({tag:"xdr:rowOff",zero:true})}}render(e,t){e.openNode(this.tag);this.map["xdr:col"].render(e,t.nativeCol);this.map["xdr:colOff"].render(e,t.nativeColOff);this.map["xdr:row"].render(e,t.nativeRow);this.map["xdr:rowOff"].render(e,t.nativeRowOff);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model};return false;default:return true}}}e.exports=CellPositionXform},3057:function(e,t,r){const i=r(6289);const n=r(8674);const s=r(8287);const o=r(5050);const c=r(9716);function getAnchorType(e){const t=typeof e.range==="string"?i.decode(e.range):e.range;return t.br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}class DrawingXform extends s{constructor(){super();this.map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new c}}prepare(e){e.anchors.forEach(((e,t)=>{e.anchorType=getAnchorType(e);const r=this.map[e.anchorType];r.prepare(e,{index:t})}))}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(n.StdDocAttributes);e.openNode(this.tag,DrawingXform.DRAWING_ATTRIBUTES);t.anchors.forEach((t=>{const r=this.map[t.anchorType];r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={anchors:[]};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.anchors.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}reconcile(e,t){e.anchors.forEach((e=>{if(e.br){this.map["xdr:twoCellAnchor"].reconcile(e,t)}else{this.map["xdr:oneCellAnchor"].reconcile(e,t)}}))}}DrawingXform.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"};e.exports=DrawingXform},4686:function(e,t,r){const i=r(8287);class ExtLstXform extends i{get tag(){return"a:extLst"}render(e){e.openNode(this.tag);e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"});e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"});e.closeNode();e.closeNode()}parseOpen(e){switch(e.name){case this.tag:return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=ExtLstXform},5208:function(e,t,r){const i=r(8287);const n=9525;class ExtXform extends i{constructor(e){super();this.tag=e.tag;this.map={}}render(e,t){e.openNode(this.tag);const r=Math.floor(t.width*n);const i=Math.floor(t.height*n);e.addAttribute("cx",r);e.addAttribute("cy",i);e.closeNode()}parseOpen(e){if(e.name===this.tag){this.model={width:parseInt(e.attributes.cx||"0",10)/n,height:parseInt(e.attributes.cy||"0",10)/n};return true}return false}parseText(){}parseClose(){return false}}e.exports=ExtXform},4358:function(e,t,r){const i=r(8287);class HLinkClickXform extends i{get tag(){return"a:hlinkClick"}render(e,t){if(!(t.hyperlinks&&t.hyperlinks.rId)){return}e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){switch(e.name){case this.tag:this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}};return true;default:return true}}parseText(){}parseClose(){return false}}e.exports=HLinkClickXform},9313:function(e,t,r){const i=r(8287);const n=r(4290);const s=r(6449);class NvPicPrXform extends i{constructor(){super();this.map={"xdr:cNvPr":new n,"xdr:cNvPicPr":new s}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag);this.map["xdr:cNvPr"].render(e,t);this.map["xdr:cNvPicPr"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["xdr:cNvPr"].model;return false;default:return true}}}e.exports=NvPicPrXform},9716:function(e,t,r){const i=r(8447);const n=r(2216);const s=r(679);const o=r(5208);const c=r(3471);class OneCellAnchorXform extends i{constructor(){super();this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new c,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"});this.map["xdr:from"].render(e,t.range.tl);this.map["xdr:ext"].render(e,t.range.ext);this.map["xdr:pic"].render(e,t.picture);this.map["xdr:clientData"].render(e,{});e.closeNode()}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.range.tl=this.map["xdr:from"].model;this.model.range.ext=this.map["xdr:ext"].model;this.model.picture=this.map["xdr:pic"].model;return false;default:return true}}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}e.exports=OneCellAnchorXform},3471:function(e,t,r){const i=r(8287);const n=r(2216);const s=r(2388);const o=r(9313);const c=r(320);class PicXform extends i{constructor(){super();this.map={"xdr:nvPicPr":new o,"xdr:blipFill":new s,"xdr:spPr":new n(c)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag);this.map["xdr:nvPicPr"].render(e,t);this.map["xdr:blipFill"].render(e,t);this.map["xdr:spPr"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.mergeModel(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=PicXform},320:function(e){e.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},5050:function(e,t,r){const i=r(8447);const n=r(2216);const s=r(679);const o=r(3471);class TwoCellAnchorXform extends i{constructor(){super();this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"});this.map["xdr:from"].render(e,t.range.tl);this.map["xdr:to"].render(e,t.range.br);this.map["xdr:pic"].render(e,t.picture);this.map["xdr:clientData"].render(e,{});e.closeNode()}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.range.tl=this.map["xdr:from"].model;this.model.range.br=this.map["xdr:to"].model;this.model.picture=this.map["xdr:pic"].model;return false;default:return true}}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}e.exports=TwoCellAnchorXform},6422:function(e,t,r){const i=r(8287);class ListXform extends i{constructor(e){super();this.tag=e.tag;this.always=!!e.always;this.count=e.count;this.empty=e.empty;this.$count=e.$count||"count";this.$=e.$;this.childXform=e.childXform;this.maxItems=e.maxItems}prepare(e,t){const{childXform:r}=this;if(e){e.forEach(((e,i)=>{t.index=i;r.prepare(e,t)}))}}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$);if(this.count){e.addAttribute(this.$count,t&&t.length||0)}const{childXform:r}=this;(t||[]).forEach(((t,i)=>{r.render(e,t,i)}));e.closeNode()}else if(this.empty){e.leafNode(this.tag)}}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.model=[];return true;default:if(this.childXform.parseOpen(e)){this.parser=this.childXform;return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined;if(this.maxItems&&this.model.length>this.maxItems){throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`)}}return true}return false}reconcile(e,t){if(e){const{childXform:r}=this;e.forEach((e=>{r.reconcile(e,t)}))}}}e.exports=ListXform},1350:function(e,t,r){const i=r(6289);const n=r(8287);class AutoFilterXform extends n{get tag(){return"autoFilter"}render(e,t){if(t){if(typeof t==="string"){e.leafNode("autoFilter",{ref:t})}else{const getAddress=function(e){if(typeof e==="string"){return e}return i.getAddress(e.row,e.column).address};const r=getAddress(t.from);const n=getAddress(t.to);if(r&&n){e.leafNode("autoFilter",{ref:`${r}:${n}`})}}}}parseOpen(e){if(e.name==="autoFilter"){this.model=e.attributes.ref}}}e.exports=AutoFilterXform},150:function(e,t,r){const i=r(9145);const n=r(8287);const s=r(2514);const o=r(4041);const c=r(9573);function getValueType(e){if(e===null||e===undefined){return o.ValueType.Null}if(e instanceof String||typeof e==="string"){return o.ValueType.String}if(typeof e==="number"){return o.ValueType.Number}if(typeof e==="boolean"){return o.ValueType.Boolean}if(e instanceof Date){return o.ValueType.Date}if(e.text&&e.hyperlink){return o.ValueType.Hyperlink}if(e.formula){return o.ValueType.Formula}if(e.error){return o.ValueType.Error}throw new Error("I could not understand type of value")}function getEffectiveCellType(e){switch(e.type){case o.ValueType.Formula:return getValueType(e.result);default:return e.type}}class CellXform extends n{constructor(){super();this.richTextXForm=new c}get tag(){return"c"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{},getEffectiveCellType(e));if(r){e.styleId=r}if(e.comment){t.comments.push({...e.comment,ref:e.address})}switch(e.type){case o.ValueType.String:case o.ValueType.RichText:if(t.sharedStrings){e.ssId=t.sharedStrings.add(e.value)}break;case o.ValueType.Date:if(t.date1904){e.date1904=true}break;case o.ValueType.Hyperlink:if(t.sharedStrings&&e.text!==undefined&&e.text!==null){e.ssId=t.sharedStrings.add(e.text)}t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904){e.date1904=true}if(e.shareType==="shared"){e.si=t.siFormulae++}if(e.formula){t.formulae[e.address]=e}else if(e.sharedFormula){const r=t.formulae[e.sharedFormula];if(!r){throw new Error(`Shared Formula master must exist above and or left of clone for cell ${e.address}`)}if(r.si===undefined){r.shareType="shared";r.si=t.siFormulae++;r.range=new s(r.address,e.address)}else if(r.range){r.range.expandToAddress(e.address)}e.si=r.si}break;default:break}}renderFormula(e,t){let r=null;switch(t.shareType){case"shared":r={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":r={t:"array",ref:t.ref};break;default:if(t.si!==undefined){r={t:"shared",si:t.si}}break}switch(getValueType(t.result)){case o.ValueType.Null:e.leafNode("f",r,t.formula);break;case o.ValueType.String:e.addAttribute("t","str");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result);break;case o.ValueType.Number:e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result);break;case o.ValueType.Boolean:e.addAttribute("t","b");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result?1:0);break;case o.ValueType.Error:e.addAttribute("t","e");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result.error);break;case o.ValueType.Date:e.leafNode("f",r,t.formula);e.leafNode("v",null,i.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type===o.ValueType.Null&&!t.styleId){return}e.openNode("c");e.addAttribute("r",t.address);if(t.styleId){e.addAttribute("s",t.styleId)}switch(t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode("v",null,t.value);break;case o.ValueType.Boolean:e.addAttribute("t","b");e.leafNode("v",null,t.value?"1":"0");break;case o.ValueType.Error:e.addAttribute("t","e");e.leafNode("v",null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:if(t.ssId!==undefined){e.addAttribute("t","s");e.leafNode("v",null,t.ssId)}else if(t.value&&t.value.richText){e.addAttribute("t","inlineStr");e.openNode("is");t.value.richText.forEach((t=>{this.richTextXForm.render(e,t)}));e.closeNode("is")}else{e.addAttribute("t","str");e.leafNode("v",null,t.value)}break;case o.ValueType.Date:e.leafNode("v",null,i.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:if(t.ssId!==undefined){e.addAttribute("t","s");e.leafNode("v",null,t.ssId)}else{e.addAttribute("t","str");e.leafNode("v",null,t.text)}break;case o.ValueType.Formula:this.renderFormula(e,t);break;case o.ValueType.Merge:break;default:break}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"c":this.model={address:e.attributes.r};this.t=e.attributes.t;if(e.attributes.s){this.model.styleId=parseInt(e.attributes.s,10)}return true;case"f":this.currentNode="f";this.model.si=e.attributes.si;this.model.shareType=e.attributes.t;this.model.ref=e.attributes.ref;return true;case"v":this.currentNode="v";return true;case"t":this.currentNode="t";return true;case"r":this.parser=this.richTextXForm;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e);return}switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":if(this.model.value&&this.model.value.richText){this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e}else{this.model.value=this.model.value?this.model.value+e:e}break;default:break}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType){e.type=o.ValueType.Formula;if(e.value){if(this.t==="str"){e.result=i.xmlDecode(e.value)}else if(this.t==="b"){e.result=parseInt(e.value,10)!==0}else if(this.t==="e"){e.result={error:e.value}}else{e.result=parseFloat(e.value)}e.value=undefined}}else if(e.value!==undefined){switch(this.t){case"s":e.type=o.ValueType.String;e.value=parseInt(e.value,10);break;case"str":e.type=o.ValueType.String;e.value=i.xmlDecode(e.value);break;case"inlineStr":e.type=o.ValueType.String;break;case"b":e.type=o.ValueType.Boolean;e.value=parseInt(e.value,10)!==0;break;case"e":e.type=o.ValueType.Error;e.value={error:e.value};break;default:e.type=o.ValueType.Number;e.value=parseFloat(e.value);break}}else if(e.styleId){e.type=o.ValueType.Null}else{e.type=o.ValueType.Merge}return false}case"f":case"v":case"is":this.currentNode=undefined;return true;case"t":if(this.parser){this.parser.parseClose(e);return true}this.currentNode=undefined;return true;case"r":this.model.value=this.model.value||{};this.model.value.richText=this.model.value.richText||[];this.model.value.richText.push(this.parser.model);this.parser=undefined;this.currentNode=undefined;return true;default:if(this.parser){this.parser.parseClose(e);return true}return false}}reconcile(e,t){const r=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);if(r){e.style=r}if(e.styleId!==undefined){e.styleId=undefined}switch(e.type){case o.ValueType.String:if(typeof e.value==="number"){if(t.sharedStrings){e.value=t.sharedStrings.getString(e.value)}}if(e.value.richText){e.type=o.ValueType.RichText}break;case o.ValueType.Number:if(r&&i.isDateFmt(r.numFmt)){e.type=o.ValueType.Date;e.value=i.excelToDate(e.value,t.date1904)}break;case o.ValueType.Formula:if(e.result!==undefined&&r&&i.isDateFmt(r.numFmt)){e.result=i.excelToDate(e.result,t.date1904)}if(e.shareType==="shared"){if(e.ref){t.formulae[e.si]=e.address}else{e.sharedFormula=t.formulae[e.si];delete e.shareType}delete e.si}break;default:break}const n=t.hyperlinkMap[e.address];if(n){if(e.type===o.ValueType.Formula){e.text=e.result;e.result=undefined}else{e.text=e.value;e.value=undefined}e.type=o.ValueType.Hyperlink;e.hyperlink=n}const s=t.commentsMap&&t.commentsMap[e.address];if(s){e.comment=s}}}e.exports=CellXform},6657:function(e,t,r){const i=r(8287);class CfIconExtXform extends i{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen({attributes:e}){this.model={iconSet:e.iconSet,iconId:i.toIntValue(e.iconId)}}parseClose(e){return e!==this.tag}}e.exports=CfIconExtXform},7290:function(e,t,r){const{v4:i}=r(3342);const n=r(8287);const s=r(8953);const o=r(7873);const c=r(9976);const h={"3Triangles":true,"3Stars":true,"5Boxes":true};class CfRuleExtXform extends s{constructor(){super();this.map={"x14:dataBar":this.databarXform=new o,"x14:iconSet":this.iconSetXform=new c}}get tag(){return"x14:cfRule"}static isExt(e){if(e.type==="dataBar"){return o.isExt(e)}if(e.type==="iconSet"){if(e.custom||h[e.iconSet]){return true}}return false}prepare(e){if(CfRuleExtXform.isExt(e)){e.x14Id=`{${i()}}`.toUpperCase()}}render(e,t){if(!CfRuleExtXform.isExt(t)){return}switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t);break}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id});this.databarXform.render(e,t);e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${i()}}`});this.iconSetXform.render(e,t);e.closeNode()}createNewModel({attributes:e}){return{type:e.type,x14Id:e.id,priority:n.toIntValue(e.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=CfRuleExtXform},8694:function(e,t,r){const i=r(8953);const n=r(4838);class CfvoExtXform extends i{constructor(){super();this.map={"xm:f":this.fExtXform=new n}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type});if(t.value!==undefined){this.fExtXform.render(e,t.value)}e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){switch(e){case"xm:f":this.model.value=t.model?parseFloat(t.model):0;break}}}e.exports=CfvoExtXform},3416:function(e,t,r){const i=r(8953);const n=r(6021);const s=r(7290);class ConditionalFormattingExtXform extends i{constructor(){super();this.map={"xm:sqref":this.sqRef=new n,"x14:cfRule":this.cfRule=new s}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach((e=>{this.cfRule.prepare(e,t)}))}render(e,t){if(!t.rules.some(s.isExt)){return}e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"});t.rules.filter(s.isExt).forEach((t=>this.cfRule.render(e,t)));this.sqRef.render(e,t.ref);e.closeNode()}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model);break}}}e.exports=ConditionalFormattingExtXform},8997:function(e,t,r){const i=r(8953);const n=r(7290);const s=r(3416);class ConditionalFormattingsExtXform extends i{constructor(){super();this.map={"x14:conditionalFormatting":this.cfXform=new s}}get tag(){return"x14:conditionalFormattings"}hasContent(e){if(e.hasExtContent===undefined){e.hasExtContent=e.some((e=>e.rules.some(n.isExt)))}return e.hasExtContent}prepare(e,t){e.forEach((e=>{this.cfXform.prepare(e,t)}))}render(e,t){if(this.hasContent(t)){e.openNode(this.tag);t.forEach((t=>this.cfXform.render(e,t)));e.closeNode()}}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}e.exports=ConditionalFormattingsExtXform},7873:function(e,t,r){const i=r(8287);const n=r(8953);const s=r(767);const o=r(8694);class DatabarExtXform extends n{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new o,"x14:borderColor":this.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new s("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:i.toIntAttribute(t.minLength,0,true),maxLength:i.toIntAttribute(t.maxLength,100,true),border:i.toBoolAttribute(t.border,false),gradient:i.toBoolAttribute(t.gradient,true),negativeBarColorSameAsPositive:i.toBoolAttribute(t.negativeBarColorSameAsPositive,true),negativeBarBorderColorSameAsPositive:i.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,true),axisPosition:i.toAttribute(t.axisPosition,"auto"),direction:i.toAttribute(t.direction,"leftToRight")});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));this.borderColorXform.render(e,t.borderColor);this.negativeBorderColorXform.render(e,t.negativeBorderColor);this.negativeFillColorXform.render(e,t.negativeFillColor);this.axisColorXform.render(e,t.axisColor);e.closeNode()}createNewModel({attributes:e}){return{cfvo:[],minLength:i.toIntValue(e.minLength,0),maxLength:i.toIntValue(e.maxLength,100),border:i.toBoolValue(e.border,false),gradient:i.toBoolValue(e.gradient,true),negativeBarColorSameAsPositive:i.toBoolValue(e.negativeBarColorSameAsPositive,true),negativeBarBorderColorSameAsPositive:i.toBoolValue(e.negativeBarBorderColorSameAsPositive,true),axisPosition:i.toStringValue(e.axisPosition,"auto"),direction:i.toStringValue(e.direction,"leftToRight")}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;default:this.model[r]=t.model;break}}}e.exports=DatabarExtXform},4838:function(e,t,r){const i=r(8287);class FExtXform extends i{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=FExtXform},9976:function(e,t,r){const i=r(8287);const n=r(8953);const s=r(8694);const o=r(6657);class IconSetExtXform extends n{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new s,"x14:cfIcon":this.cfIconXform=new o}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:i.toStringAttribute(t.iconSet),reverse:i.toBoolAttribute(t.reverse,false),showValue:i.toBoolAttribute(t.showValue,true),custom:i.toBoolAttribute(t.icons,false)});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));if(t.icons){t.icons.forEach(((t,r)=>{t.iconId=r;this.cfIconXform.render(e,t)}))}e.closeNode()}createNewModel({attributes:e}){return{cfvo:[],iconSet:i.toStringValue(e.iconSet,"3TrafficLights"),reverse:i.toBoolValue(e.reverse,false),showValue:i.toBoolValue(e.showValue,true)}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":if(!this.model.icons){this.model.icons=[]}this.model.icons.push(t.model);break;default:this.model[r]=t.model;break}}}e.exports=IconSetExtXform},6021:function(e,t,r){const i=r(8287);class SqrefExtXform extends i{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=SqrefExtXform},8746:function(e,t,r){const i=r(8287);const n=r(8953);const s=r(2514);const o=r(2289);const c=r(8761);const h=r(1262);const p=r(9496);const g=r(1880);const y={"3Triangles":true,"3Stars":true,"5Boxes":true};const getTextFormula=e=>{if(e.formulae&&e.formulae[0]){return e.formulae[0]}const t=new s(e.ref);const{tl:r}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${r})))`;case"containsBlanks":return`LEN(TRIM(${r}))=0`;case"notContainsBlanks":return`LEN(TRIM(${r}))>0`;case"containsErrors":return`ISERROR(${r})`;case"notContainsErrors":return`NOT(ISERROR(${r}))`;default:return undefined}};const getTimePeriodFormula=e=>{if(e.formulae&&e.formulae[0]){return e.formulae[0]}const t=new s(e.ref);const{tl:r}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${r},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${r},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${r},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${r},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${r},1)=TODAY()-1`;case"today":return`FLOOR(${r},1)=TODAY()`;case"tomorrow":return`FLOOR(${r},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${r},1)<=6,FLOOR(${r},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0-1)),YEAR(${r})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${r})=MONTH(TODAY()),YEAR(${r})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0+1)),YEAR(${r})=YEAR(EDATE(TODAY(),0+1)))`;default:return undefined}};const opType=e=>{const{type:t,operator:r}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:r}}};class CfRuleXform extends n{constructor(){super();this.map={dataBar:this.databarXform=new o,extLst:this.extLstRefXform=new c,formula:this.formulaXform=new h,colorScale:this.colorScaleXform=new p,iconSet:this.iconSetXform=new g}}get tag(){return"cfRule"}static isPrimitive(e){if(e.type==="iconSet"){if(e.custom||y[e.iconSet]){return false}}return true}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t);break}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority});this.formulaXform.render(e,t.formulae[0]);e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator});t.formulae.forEach((t=>{this.formulaXform.render(e,t)}));e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:i.toBoolAttribute(t.percent,false),bottom:i.toBoolAttribute(t.bottom,false),rank:i.toIntValue(t.rank,10,true)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:i.toBoolAttribute(t.aboveAverage,true)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority});this.databarXform.render(e,t);this.extLstRefXform.render(e,t);e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority});this.colorScaleXform.render(e,t);e.closeNode()}renderIconSet(e,t){if(!CfRuleXform.isPrimitive(t)){return}e.openNode(this.tag,{type:"iconSet",priority:t.priority});this.iconSetXform.render(e,t);e.closeNode()}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:i.toStringAttribute(t.operator,"containsText")});const r=getTextFormula(t);if(r){this.formulaXform.render(e,r)}e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const r=getTimePeriodFormula(t);if(r){this.formulaXform.render(e,r)}e.closeNode()}createNewModel({attributes:e}){return{...opType(e),dxfId:i.toIntValue(e.dxfId),priority:i.toIntValue(e.priority),timePeriod:e.timePeriod,percent:i.toBoolValue(e.percent),bottom:i.toBoolValue(e.bottom),rank:i.toIntValue(e.rank),aboveAverage:i.toBoolValue(e.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[];this.model.formulae.push(t.model);break}}}e.exports=CfRuleXform},6870:function(e,t,r){const i=r(8287);class CfvoXform extends i{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:i.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}e.exports=CfvoXform},9496:function(e,t,r){const i=r(8953);const n=r(767);const s=r(6870);class ColorScaleXform extends i{constructor(){super();this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new n}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag);t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));t.color.forEach((t=>{this.colorXform.render(e,t)}));e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}e.exports=ColorScaleXform},2184:function(e,t,r){const i=r(8953);const n=r(8746);class ConditionalFormattingXform extends i{constructor(){super();this.map={cfRule:new n}}get tag(){return"conditionalFormatting"}render(e,t){if(!t.rules.some(n.isPrimitive)){return}e.openNode(this.tag,{sqref:t.ref});t.rules.forEach((r=>{if(n.isPrimitive(r)){r.ref=t.ref;this.map.cfRule.render(e,r)}}));e.closeNode()}createNewModel({attributes:e}){return{ref:e.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}e.exports=ConditionalFormattingXform},7833:function(e,t,r){const i=r(8287);const n=r(2184);class ConditionalFormattingsXform extends i{constructor(){super();this.cfXform=new n}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let r=e.reduce(((e,t)=>Math.max(e,...t.rules.map((e=>e.priority||0)))),1);e.forEach((e=>{e.rules.forEach((e=>{if(!e.priority){e.priority=r++}if(e.style){e.dxfId=t.styles.addDxfStyle(e.style)}}))}))}render(e,t){t.forEach((t=>{this.cfXform.render(e,t)}))}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"conditionalFormatting":this.parser=this.cfXform;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined;return false}return true}return false}reconcile(e,t){e.forEach((e=>{e.rules.forEach((e=>{if(e.dxfId!==undefined){e.style=t.styles.getDxfStyle(e.dxfId);delete e.dxfId}}))}))}}e.exports=ConditionalFormattingsXform},2289:function(e,t,r){const i=r(8953);const n=r(767);const s=r(6870);class DatabarXform extends i{constructor(){super();this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new n}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag);t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));this.colorXform.render(e,t.color);e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model;break}}}e.exports=DatabarXform},8761:function(e,t,r){const i=r(8287);const n=r(8953);class X14IdXform extends i{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class ExtXform extends n{constructor(){super();this.map={"x14:id":this.idXform=new X14IdXform}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"});this.idXform.render(e,t.x14Id);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}class ExtLstRefXform extends n{constructor(){super();this.map={ext:new ExtXform}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag);this.map.ext.render(e,t);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=ExtLstRefXform},1262:function(e,t,r){const i=r(8287);class FormulaXform extends i{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=FormulaXform},1880:function(e,t,r){const i=r(8287);const n=r(8953);const s=r(6870);class IconSetXform extends n{constructor(){super();this.map={cfvo:this.cfvoXform=new s}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:i.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:i.toBoolAttribute(t.reverse,false),showValue:i.toBoolAttribute(t.showValue,true)});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));e.closeNode()}createNewModel({attributes:e}){return{iconSet:i.toStringValue(e.iconSet,"3TrafficLights"),reverse:i.toBoolValue(e.reverse),showValue:i.toBoolValue(e.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}e.exports=IconSetXform},6004:function(e,t,r){const i=r(9145);const n=r(8287);class ColXform extends n{get tag(){return"col"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{});if(r){e.styleId=r}}render(e,t){e.openNode("col");e.addAttribute("min",t.min);e.addAttribute("max",t.max);if(t.width){e.addAttribute("width",t.width)}if(t.styleId){e.addAttribute("style",t.styleId)}if(t.hidden){e.addAttribute("hidden","1")}if(t.bestFit){e.addAttribute("bestFit","1")}if(t.outlineLevel){e.addAttribute("outlineLevel",t.outlineLevel)}if(t.collapsed){e.addAttribute("collapsed","1")}e.addAttribute("customWidth","1");e.closeNode()}parseOpen(e){if(e.name==="col"){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:e.attributes.width===undefined?undefined:parseFloat(e.attributes.width||"0")};if(e.attributes.style){t.styleId=parseInt(e.attributes.style,10)}if(i.parseBoolean(e.attributes.hidden)){t.hidden=true}if(i.parseBoolean(e.attributes.bestFit)){t.bestFit=true}if(e.attributes.outlineLevel){t.outlineLevel=parseInt(e.attributes.outlineLevel,10)}if(i.parseBoolean(e.attributes.collapsed)){t.collapsed=true}return true}return false}parseText(){}parseClose(){return false}reconcile(e,t){if(e.styleId){e.style=t.styles.getStyleModel(e.styleId)}}}e.exports=ColXform},8700:function(e,t,r){const i=r(2563);const n=r(9145);const s=r(6289);const o=r(8287);const c=r(2514);function assign(e,t,r,i){const n=t[r];if(n!==undefined){e[r]=n}else if(i!==undefined){e[r]=i}}function assignBool(e,t,r,i){const s=t[r];if(s!==undefined){e[r]=n.parseBoolean(s)}else if(i!==undefined){e[r]=i}}function optimiseDataValidations(e){const t=i.map(e,((e,t)=>({address:t,dataValidation:e,marked:false}))).sort(((e,t)=>i.strcmp(e.address,t.address)));const r=i.keyBy(t,"address");const matchCol=(t,r,n)=>{for(let o=0;o<r;o++){const r=s.encodeAddress(t.row+o,n);if(!e[r]||!i.isEqual(e[t.address],e[r])){return false}}return true};return t.map((t=>{if(!t.marked){const n=s.decodeEx(t.address);if(n.dimensions){r[n.dimensions].marked=true;return{...t.dataValidation,sqref:t.address}}let o=1;let c=s.encodeAddress(n.row+o,n.col);while(e[c]&&i.isEqual(t.dataValidation,e[c])){o++;c=s.encodeAddress(n.row+o,n.col)}let h=1;while(matchCol(n,o,n.col+h)){h++}for(let e=0;e<o;e++){for(let t=0;t<h;t++){c=s.encodeAddress(n.row+e,n.col+t);r[c].marked=true}}if(o>1||h>1){const e=n.row+(o-1);const r=n.col+(h-1);return{...t.dataValidation,sqref:`${t.address}:${s.encodeAddress(e,r)}`}}return{...t.dataValidation,sqref:t.address}}return null})).filter(Boolean)}class DataValidationsXform extends o{get tag(){return"dataValidations"}render(e,t){const r=optimiseDataValidations(t);if(r.length){e.openNode("dataValidations",{count:r.length});r.forEach((t=>{e.openNode("dataValidation");if(t.type!=="any"){e.addAttribute("type",t.type);if(t.operator&&t.type!=="list"&&t.operator!=="between"){e.addAttribute("operator",t.operator)}if(t.allowBlank){e.addAttribute("allowBlank","1")}}if(t.showInputMessage){e.addAttribute("showInputMessage","1")}if(t.promptTitle){e.addAttribute("promptTitle",t.promptTitle)}if(t.prompt){e.addAttribute("prompt",t.prompt)}if(t.showErrorMessage){e.addAttribute("showErrorMessage","1")}if(t.errorStyle){e.addAttribute("errorStyle",t.errorStyle)}if(t.errorTitle){e.addAttribute("errorTitle",t.errorTitle)}if(t.error){e.addAttribute("error",t.error)}e.addAttribute("sqref",t.sqref);(t.formulae||[]).forEach(((r,i)=>{e.openNode(`formula${i+1}`);if(t.type==="date"){e.writeText(n.dateToExcel(new Date(r)))}else{e.writeText(r)}e.closeNode()}));e.closeNode()}));e.closeNode()}}parseOpen(e){switch(e.name){case"dataValidations":this.model={};return true;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};if(e.attributes.type){assignBool(t,e.attributes,"allowBlank")}assignBool(t,e.attributes,"showInputMessage");assignBool(t,e.attributes,"showErrorMessage");switch(t.type){case"any":case"list":case"custom":break;default:assign(t,e.attributes,"operator","between");break}assign(t,e.attributes,"promptTitle");assign(t,e.attributes,"prompt");assign(t,e.attributes,"errorStyle");assign(t,e.attributes,"errorTitle");assign(t,e.attributes,"error");this._dataValidation=t;return true}case"formula1":case"formula2":this._formula=[];return true;default:return false}}parseText(e){if(this._formula){this._formula.push(e)}}parseClose(e){switch(e){case"dataValidations":return false;case"dataValidation":{if(!this._dataValidation.formulae||!this._dataValidation.formulae.length){delete this._dataValidation.formulae;delete this._dataValidation.operator}const e=this._address.split(/\s+/g)||[];e.forEach((e=>{if(e.includes(":")){const t=new c(e);t.forEachAddress((e=>{this.model[e]=this._dataValidation}))}else{this.model[e]=this._dataValidation}}));return true}case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=n.excelToDate(parseFloat(e));break;default:break}this._dataValidation.formulae.push(e);this._formula=undefined;return true}default:return true}}}e.exports=DataValidationsXform},2478:function(e,t,r){const i=r(8287);class DimensionXform extends i{get tag(){return"dimension"}render(e,t){if(t){e.leafNode("dimension",{ref:t})}}parseOpen(e){if(e.name==="dimension"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=DimensionXform},1056:function(e,t,r){const i=r(8287);class DrawingXform extends i{get tag(){return"drawing"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=DrawingXform},1251:function(e,t,r){const i=r(8953);const n=r(8997);class ExtXform extends i{constructor(){super();this.map={"x14:conditionalFormattings":this.conditionalFormattings=new n}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"});this.conditionalFormattings.render(e,t.conditionalFormattings);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}class ExtLstXform extends i{constructor(){super();this.map={ext:this.ext=new ExtXform}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){if(!this.hasContent(t)){return}e.openNode("extLst");this.ext.render(e,t);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=ExtLstXform},6041:function(e,t,r){const i=r(8287);class HeaderFooterXform extends i{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let r=false;e.openNode("headerFooter");if(t.differentFirst){e.addAttribute("differentFirst","1");r=true}if(t.differentOddEven){e.addAttribute("differentOddEven","1");r=true}if(t.oddHeader&&typeof t.oddHeader==="string"){e.leafNode("oddHeader",null,t.oddHeader);r=true}if(t.oddFooter&&typeof t.oddFooter==="string"){e.leafNode("oddFooter",null,t.oddFooter);r=true}if(t.evenHeader&&typeof t.evenHeader==="string"){e.leafNode("evenHeader",null,t.evenHeader);r=true}if(t.evenFooter&&typeof t.evenFooter==="string"){e.leafNode("evenFooter",null,t.evenFooter);r=true}if(t.firstHeader&&typeof t.firstHeader==="string"){e.leafNode("firstHeader",null,t.firstHeader);r=true}if(t.firstFooter&&typeof t.firstFooter==="string"){e.leafNode("firstFooter",null,t.firstFooter);r=true}if(r){e.closeNode();e.commit()}else{e.rollback()}}}parseOpen(e){switch(e.name){case"headerFooter":this.model={};if(e.attributes.differentFirst){this.model.differentFirst=parseInt(e.attributes.differentFirst,0)===1}if(e.attributes.differentOddEven){this.model.differentOddEven=parseInt(e.attributes.differentOddEven,0)===1}return true;case"oddHeader":this.currentNode="oddHeader";return true;case"oddFooter":this.currentNode="oddFooter";return true;case"evenHeader":this.currentNode="evenHeader";return true;case"evenFooter":this.currentNode="evenFooter";return true;case"firstHeader":this.currentNode="firstHeader";return true;case"firstFooter":this.currentNode="firstFooter";return true;default:return false}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e;break;default:break}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":this.currentNode=undefined;return true;default:return false}}}e.exports=HeaderFooterXform},3248:function(e,t,r){const i=r(8287);class HyperlinkXform extends i{get tag(){return"hyperlink"}render(e,t){if(this.isInternalLink(t)){e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target})}else{e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}}parseOpen(e){if(e.name==="hyperlink"){this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip};if(e.attributes.location){this.model.target=e.attributes.location}return true}return false}parseText(){}parseClose(){return false}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}e.exports=HyperlinkXform},6329:function(e,t,r){const i=r(8287);class MergeCellXform extends i{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){if(e.name==="mergeCell"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=MergeCellXform},40:function(e,t,r){const i=r(2563);const n=r(2514);const s=r(6289);const o=r(4041);class Merges{constructor(){this.merges={}}add(e){if(this.merges[e.master]){this.merges[e.master].expandToAddress(e.address)}else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new n(t)}}get mergeCells(){return i.map(this.merges,(e=>e.range))}reconcile(e,t){i.each(e,(e=>{const r=s.decode(e);for(let e=r.top;e<=r.bottom;e++){const i=t[e-1];for(let t=r.left;t<=r.right;t++){const n=i.cells[t-1];if(!n){i.cells[t]={type:o.ValueType.Null,address:s.encodeAddress(e,t)}}else if(n.type===o.ValueType.Merge){n.master=r.tl}}}}))}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}e.exports=Merges},6238:function(e,t,r){const i=r(8287);const isDefined=e=>typeof e!=="undefined";class OutlinePropertiesXform extends i{get tag(){return"outlinePr"}render(e,t){if(t&&(isDefined(t.summaryBelow)||isDefined(t.summaryRight))){e.leafNode(this.tag,{summaryBelow:isDefined(t.summaryBelow)?Number(t.summaryBelow):undefined,summaryRight:isDefined(t.summaryRight)?Number(t.summaryRight):undefined});return true}return false}parseOpen(e){if(e.name===this.tag){this.model={summaryBelow:isDefined(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):undefined,summaryRight:isDefined(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):undefined};return true}return false}parseText(){}parseClose(){return false}}e.exports=OutlinePropertiesXform},6132:function(e,t,r){const i=r(8287);class PageBreaksXform extends i{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){if(e.name==="brk"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=PageBreaksXform},5575:function(e,t,r){const i=r(2563);const n=r(8287);class PageMarginsXform extends n{get tag(){return"pageMargins"}render(e,t){if(t){const r={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};if(i.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PageMarginsXform},8669:function(e,t,r){const i=r(8287);class PageSetupPropertiesXform extends i{get tag(){return"pageSetUpPr"}render(e,t){if(t&&t.fitToPage){e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":undefined});return true}return false}parseOpen(e){if(e.name===this.tag){this.model={fitToPage:e.attributes.fitToPage==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=PageSetupPropertiesXform},4437:function(e,t,r){const i=r(2563);const n=r(8287);function booleanToXml(e){return e?"1":undefined}function pageOrderToXml(e){switch(e){case"overThenDown":return e;default:return undefined}}function cellCommentsToXml(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return undefined}}function errorsToXml(e){switch(e){case"dash":case"blank":case"NA":return e;default:return undefined}}function pageSizeToModel(e){return e!==undefined?parseInt(e,10):undefined}class PageSetupXform extends n{get tag(){return"pageSetup"}render(e,t){if(t){const r={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:pageOrderToXml(t.pageOrder),blackAndWhite:booleanToXml(t.blackAndWhite),draft:booleanToXml(t.draft),cellComments:cellCommentsToXml(t.cellComments),errors:errorsToXml(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:booleanToXml(t.firstPageNumber),usePrinterDefaults:booleanToXml(t.usePrinterDefaults),copies:t.copies};if(i.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={paperSize:pageSizeToModel(e.attributes.paperSize),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:e.attributes.blackAndWhite==="1",draft:e.attributes.draft==="1",cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:e.attributes.useFirstPageNumber==="1",usePrinterDefaults:e.attributes.usePrinterDefaults==="1",copies:parseInt(e.attributes.copies||"1",10)};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PageSetupXform},3948:function(e,t,r){const i=r(8287);class PictureXform extends i{get tag(){return"picture"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PictureXform},8986:function(e,t,r){const i=r(2563);const n=r(8287);function booleanToXml(e){return e?"1":undefined}class PrintOptionsXform extends n{get tag(){return"printOptions"}render(e,t){if(t){const r={headings:booleanToXml(t.showRowColHeaders),gridLines:booleanToXml(t.showGridLines),horizontalCentered:booleanToXml(t.horizontalCentered),verticalCentered:booleanToXml(t.verticalCentered)};if(i.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={showRowColHeaders:e.attributes.headings==="1",showGridLines:e.attributes.gridLines==="1",horizontalCentered:e.attributes.horizontalCentered==="1",verticalCentered:e.attributes.verticalCentered==="1"};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PrintOptionsXform},5089:function(e,t,r){"use strict";const i=r(6132);const n=r(6422);class RowBreaksXform extends n{constructor(){const e={tag:"rowBreaks",count:true,childXform:new i};super(e)}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$);if(this.count){e.addAttribute(this.$count,t.length);e.addAttribute("manualBreakCount",t.length)}const{childXform:r}=this;t.forEach((t=>{r.render(e,t)}));e.closeNode()}else if(this.empty){e.leafNode(this.tag)}}}e.exports=RowBreaksXform},8858:function(e,t,r){const i=r(8287);const n=r(9145);const s=r(150);class RowXform extends i{constructor(e){super();this.maxItems=e&&e.maxItems;this.map={c:new s}}get tag(){return"row"}prepare(e,t){const r=t.styles.addStyleModel(e.style);if(r){e.styleId=r}const i=this.map.c;e.cells.forEach((e=>{i.prepare(e,t)}))}render(e,t,r){e.openNode("row");e.addAttribute("r",t.number);if(t.height){e.addAttribute("ht",t.height);e.addAttribute("customHeight","1")}if(t.hidden){e.addAttribute("hidden","1")}if(t.min>0&&t.max>0&&t.min<=t.max){e.addAttribute("spans",`${t.min}:${t.max}`)}if(t.styleId){e.addAttribute("s",t.styleId);e.addAttribute("customFormat","1")}e.addAttribute("x14ac:dyDescent","0.25");if(t.outlineLevel){e.addAttribute("outlineLevel",t.outlineLevel)}if(t.collapsed){e.addAttribute("collapsed","1")}const i=this.map.c;t.cells.forEach((t=>{i.render(e,t,r)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name==="row"){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map((e=>parseInt(e,10))):[undefined,undefined];const r=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};if(e.attributes.s){r.styleId=parseInt(e.attributes.s,10)}if(n.parseBoolean(e.attributes.hidden)){r.hidden=true}if(n.parseBoolean(e.attributes.bestFit)){r.bestFit=true}if(e.attributes.ht){r.height=parseFloat(e.attributes.ht)}if(e.attributes.outlineLevel){r.outlineLevel=parseInt(e.attributes.outlineLevel,10)}if(n.parseBoolean(e.attributes.collapsed)){r.collapsed=true}return true}this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.cells.push(this.parser.model);if(this.maxItems&&this.model.cells.length>this.maxItems){throw new Error(`Max column count (${this.maxItems}) exceeded`)}this.parser=undefined}return true}return false}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{};if(e.styleId!==undefined){e.styleId=undefined}const r=this.map.c;e.cells.forEach((e=>{r.reconcile(e,t)}))}}e.exports=RowXform},1731:function(e,t,r){const i=r(2563);const n=r(8287);class SheetFormatPropertiesXform extends n{get tag(){return"sheetFormatPr"}render(e,t){if(t){const r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};if(t.defaultColWidth){r.defaultColWidth=t.defaultColWidth}if(!t.defaultRowHeight||t.defaultRowHeight!==15){r.customHeight="1"}if(i.some(r,(e=>e!==undefined))){e.leafNode("sheetFormatPr",r)}}}parseOpen(e){if(e.name==="sheetFormatPr"){this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)};if(e.attributes.defaultColWidth){this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)}return true}return false}parseText(){}parseClose(){return false}}e.exports=SheetFormatPropertiesXform},3305:function(e,t,r){const i=r(8287);const n=r(767);const s=r(8669);const o=r(6238);class SheetPropertiesXform extends i{constructor(){super();this.map={tabColor:new n("tabColor"),pageSetUpPr:new s,outlinePr:new o}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback();e.openNode("sheetPr");let r=false;r=this.map.tabColor.render(e,t.tabColor)||r;r=this.map.pageSetUpPr.render(e,t.pageSetup)||r;r=this.map.outlinePr.render(e,t.outlineProperties)||r;if(r){e.closeNode();e.commit()}else{e.rollback()}}}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name===this.tag){this.reset();return true}if(this.map[e.name]){this.parser=this.map[e.name];this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e);return true}return false}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model){this.model={};if(this.map.tabColor.model){this.model.tabColor=this.map.tabColor.model}if(this.map.pageSetUpPr.model){this.model.pageSetup=this.map.pageSetUpPr.model}if(this.map.outlinePr.model){this.model.outlineProperties=this.map.outlinePr.model}}else{this.model=null}return false}}e.exports=SheetPropertiesXform},6303:function(e,t,r){const i=r(2563);const n=r(8287);function booleanToXml(e,t){return e?t:undefined}function xmlToBoolean(e,t){return e===t?true:undefined}class SheetProtectionXform extends n{get tag(){return"sheetProtection"}render(e,t){if(t){const r={sheet:booleanToXml(t.sheet,"1"),selectLockedCells:t.selectLockedCells===false?"1":undefined,selectUnlockedCells:t.selectUnlockedCells===false?"1":undefined,formatCells:booleanToXml(t.formatCells,"0"),formatColumns:booleanToXml(t.formatColumns,"0"),formatRows:booleanToXml(t.formatRows,"0"),insertColumns:booleanToXml(t.insertColumns,"0"),insertRows:booleanToXml(t.insertRows,"0"),insertHyperlinks:booleanToXml(t.insertHyperlinks,"0"),deleteColumns:booleanToXml(t.deleteColumns,"0"),deleteRows:booleanToXml(t.deleteRows,"0"),sort:booleanToXml(t.sort,"0"),autoFilter:booleanToXml(t.autoFilter,"0"),pivotTables:booleanToXml(t.pivotTables,"0")};if(t.sheet){r.algorithmName=t.algorithmName;r.hashValue=t.hashValue;r.saltValue=t.saltValue;r.spinCount=t.spinCount;r.objects=booleanToXml(t.objects===false,"1");r.scenarios=booleanToXml(t.scenarios===false,"1")}if(i.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={sheet:xmlToBoolean(e.attributes.sheet,"1"),objects:e.attributes.objects==="1"?false:undefined,scenarios:e.attributes.scenarios==="1"?false:undefined,selectLockedCells:e.attributes.selectLockedCells==="1"?false:undefined,selectUnlockedCells:e.attributes.selectUnlockedCells==="1"?false:undefined,formatCells:xmlToBoolean(e.attributes.formatCells,"0"),formatColumns:xmlToBoolean(e.attributes.formatColumns,"0"),formatRows:xmlToBoolean(e.attributes.formatRows,"0"),insertColumns:xmlToBoolean(e.attributes.insertColumns,"0"),insertRows:xmlToBoolean(e.attributes.insertRows,"0"),insertHyperlinks:xmlToBoolean(e.attributes.insertHyperlinks,"0"),deleteColumns:xmlToBoolean(e.attributes.deleteColumns,"0"),deleteRows:xmlToBoolean(e.attributes.deleteRows,"0"),sort:xmlToBoolean(e.attributes.sort,"0"),autoFilter:xmlToBoolean(e.attributes.autoFilter,"0"),pivotTables:xmlToBoolean(e.attributes.pivotTables,"0")};if(e.attributes.algorithmName){this.model.algorithmName=e.attributes.algorithmName;this.model.hashValue=e.attributes.hashValue;this.model.saltValue=e.attributes.saltValue;this.model.spinCount=parseInt(e.attributes.spinCount,10)}return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=SheetProtectionXform},341:function(e,t,r){const i=r(6289);const n=r(8287);const s={frozen:"frozen",frozenSplit:"frozen",split:"split"};class SheetViewXform extends n{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal";break}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const add=function(t,r,i){if(i){e.addAttribute(t,r)}};add("rightToLeft","1",t.rightToLeft===true);add("tabSelected","1",t.tabSelected);add("showRuler","0",t.showRuler===false);add("showRowColHeaders","0",t.showRowColHeaders===false);add("showGridLines","0",t.showGridLines===false);add("zoomScale",t.zoomScale,t.zoomScale);add("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal);add("view",t.style,t.style);let r;let n;let s;let o;switch(t.state){case"frozen":n=t.xSplit||0;s=t.ySplit||0;r=t.topLeftCell||i.getAddress(s+1,n+1).address;o=t.xSplit&&t.ySplit&&"bottomRight"||t.xSplit&&"topRight"||"bottomLeft";e.leafNode("pane",{xSplit:t.xSplit||undefined,ySplit:t.ySplit||undefined,topLeftCell:r,activePane:o,state:"frozen"});e.leafNode("selection",{pane:o,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":if(t.activePane==="topLeft"){t.activePane=undefined}e.leafNode("pane",{xSplit:t.xSplit||undefined,ySplit:t.ySplit||undefined,topLeftCell:t.topLeftCell,activePane:t.activePane});e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":if(t.activeCell){e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}break;default:break}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:e.attributes.rightToLeft==="1",tabSelected:e.attributes.tabSelected==="1",showRuler:!(e.attributes.showRuler==="0"),showRowColHeaders:!(e.attributes.showRowColHeaders==="0"),showGridLines:!(e.attributes.showGridLines==="0"),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view};this.pane=undefined;this.selections={};return true;case"pane":this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state};return true;case"selection":{const t=e.attributes.pane||"topLeft";this.selections[t]={pane:t,activeCell:e.attributes.activeCell};return true}default:return false}}parseText(){}parseClose(e){let t;let r;switch(e){case"sheetView":if(this.sheetView&&this.pane){t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal};if(this.model.state==="split"){t.activePane=this.pane.activePane}r=this.selections[this.pane.activePane];if(r&&r.activeCell){t.activeCell=r.activeCell}if(this.sheetView.style){t.style=this.sheetView.style}}else{t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal};r=this.selections.topLeft;if(r&&r.activeCell){t.activeCell=r.activeCell}if(this.sheetView.style){t.style=this.sheetView.style}}return false;default:return true}}reconcile(){}}e.exports=SheetViewXform},6036:function(e,t,r){const i=r(8287);class TablePartXform extends i{get tag(){return"tablePart"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=TablePartXform},5478:function(e,t,r){const i=r(2563);const n=r(6289);const s=r(8674);const o=r(8496);const c=r(40);const h=r(8287);const p=r(6422);const g=r(8858);const y=r(6004);const v=r(2478);const b=r(3248);const _=r(6329);const w=r(8700);const x=r(3305);const S=r(1731);const k=r(341);const C=r(6303);const E=r(5575);const R=r(4437);const O=r(8986);const A=r(1350);const I=r(3948);const P=r(1056);const N=r(6036);const F=r(5089);const D=r(6041);const L=r(7833);const B=r(1251);const mergeRule=(e,t)=>{Object.keys(t).forEach((r=>{const i=e[r];const n=t[r];if(i===undefined&&n!==undefined){e[r]=n}}))};const mergeConditionalFormattings=(e,t)=>{if(!t||!t.length){return e}if(!e||!e.length){return t}const r={};const i={};e.forEach((e=>{r[e.ref]=e;e.rules.forEach((e=>{const{x14Id:t}=e;if(t){i[t]=e}}))}));t.forEach((t=>{t.rules.forEach((n=>{const s=i[n.x14Id];if(s){mergeRule(s,n)}else if(r[t.ref]){r[t.ref].rules.push(n)}else{e.push({ref:t.ref,rules:[n]})}}))}));return e};class WorkSheetXform extends h{constructor(e){super();const{maxRows:t,maxCols:r,ignoreNodes:i}=e||{};this.ignoreNodes=i||[];this.map={sheetPr:new x,dimension:new v,sheetViews:new p({tag:"sheetViews",count:false,childXform:new k}),sheetFormatPr:new S,cols:new p({tag:"cols",count:false,childXform:new y}),sheetData:new p({tag:"sheetData",count:false,empty:true,childXform:new g({maxItems:r}),maxItems:t}),autoFilter:new A,mergeCells:new p({tag:"mergeCells",count:true,childXform:new _}),rowBreaks:new F,hyperlinks:new p({tag:"hyperlinks",count:false,childXform:new b}),pageMargins:new E,dataValidations:new w,pageSetup:new R,headerFooter:new D,printOptions:new O,picture:new I,drawing:new P,sheetProtection:new C,tableParts:new p({tag:"tableParts",count:true,childXform:new N}),conditionalFormatting:new L,extLst:new B}}prepare(e,t){t.merges=new c;e.hyperlinks=t.hyperlinks=[];e.comments=t.comments=[];t.formulae={};t.siFormulae=0;this.map.cols.prepare(e.cols,t);this.map.sheetData.prepare(e.rows,t);this.map.conditionalFormatting.prepare(e.conditionalFormattings,t);e.mergeCells=t.merges.mergeCells;const r=e.rels=[];function nextRid(e){return`rId${e.length+1}`}e.hyperlinks.forEach((e=>{const t=nextRid(r);e.rId=t;r.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:"External"})}));if(e.comments.length>0){const i={Id:nextRid(r),Type:o.Comments,Target:`../comments${e.id}.xml`};r.push(i);const s={Id:nextRid(r),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};r.push(s);e.comments.forEach((e=>{e.refAddress=n.decodeAddress(e.ref)}));t.commentRefs.push({commentName:`comments${e.id}`,vmlDrawing:`vmlDrawing${e.id}`})}const i=[];let s;e.media.forEach((n=>{if(n.type==="background"){const i=nextRid(r);s=t.media[n.imageId];r.push({Id:i,Type:o.Image,Target:`../media/${s.name}.${s.extension}`});e.background={rId:i};e.image=t.media[n.imageId]}else if(n.type==="image"){let{drawing:c}=e;s=t.media[n.imageId];if(!c){c=e.drawing={rId:nextRid(r),name:`drawing${++t.drawingsCount}`,anchors:[],rels:[]};t.drawings.push(c);r.push({Id:c.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${c.name}.xml`})}let h=this.preImageId===n.imageId?i[n.imageId]:i[c.rels.length];if(!h){h=nextRid(c.rels);i[c.rels.length]=h;c.rels.push({Id:h,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${s.name}.${s.extension}`})}const p={picture:{rId:h},range:n.range};if(n.hyperlinks&&n.hyperlinks.hyperlink){const e=nextRid(c.rels);i[c.rels.length]=e;p.picture.hyperlinks={tooltip:n.hyperlinks.tooltip,rId:e};c.rels.push({Id:e,Type:o.Hyperlink,Target:n.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=n.imageId;c.anchors.push(p)}}));e.tables.forEach((e=>{const i=nextRid(r);e.rId=i;r.push({Id:i,Type:o.Table,Target:`../tables/${e.target}`});e.columns.forEach((e=>{const{style:r}=e;if(r){e.dxfId=t.styles.addDxfStyle(r)}}))}));this.map.extLst.prepare(e,t)}render(e,t){e.openXml(s.StdDocAttributes);e.openNode("worksheet",WorkSheetXform.WORKSHEET_ATTRIBUTES);const r=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:undefined;if(t.properties&&t.properties.defaultColWidth){r.defaultColWidth=t.properties.defaultColWidth}const i={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:undefined};const n=t.pageSetup&&t.pageSetup.margins;const c={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered};const h=t.sheetProtection;this.map.sheetPr.render(e,i);this.map.dimension.render(e,t.dimensions);this.map.sheetViews.render(e,t.views);this.map.sheetFormatPr.render(e,r);this.map.cols.render(e,t.cols);this.map.sheetData.render(e,t.rows);this.map.sheetProtection.render(e,h);this.map.autoFilter.render(e,t.autoFilter);this.map.mergeCells.render(e,t.mergeCells);this.map.conditionalFormatting.render(e,t.conditionalFormattings);this.map.dataValidations.render(e,t.dataValidations);this.map.hyperlinks.render(e,t.hyperlinks);this.map.printOptions.render(e,c);this.map.pageMargins.render(e,n);this.map.pageSetup.render(e,t.pageSetup);this.map.headerFooter.render(e,t.headerFooter);this.map.rowBreaks.render(e,t.rowBreaks);this.map.drawing.render(e,t.drawing);this.map.picture.render(e,t.background);this.map.tableParts.render(e,t.tables);this.map.extLst.render(e,t);if(t.rels){t.rels.forEach((t=>{if(t.Type===o.VmlDrawing){e.leafNode("legacyDrawing",{"r:id":t.Id})}}))}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name==="worksheet"){i.each(this.map,(e=>{e.reset()}));return true}if(this.map[e.name]&&!this.ignoreNodes.includes(e.name)){this.parser=this.map[e.name];this.parser.parseOpen(e)}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"worksheet":{const e=this.map.sheetFormatPr.model||{};if(this.map.sheetPr.model&&this.map.sheetPr.model.tabColor){e.tabColor=this.map.sheetPr.model.tabColor}if(this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties){e.outlineProperties=this.map.sheetPr.model.outlineProperties}const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||false,margins:this.map.pageMargins.model};const r=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model);const i=mergeConditionalFormattings(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:r,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:i};if(this.map.autoFilter.model){this.model.autoFilter=this.map.autoFilter.model}if(this.map.sheetProtection.model){this.model.sheetProtection=this.map.sheetProtection.model}return false}default:return true}}reconcile(e,t){const r=(e.relationships||[]).reduce(((r,i)=>{r[i.Id]=i;if(i.Type===o.Comments){e.comments=t.comments[i.Target].comments}if(i.Type===o.VmlDrawing&&e.comments&&e.comments.length){const r=t.vmlDrawings[i.Target].comments;e.comments.forEach(((e,t)=>{e.note=Object.assign({},e.note,r[t])}))}return r}),{});t.commentsMap=(e.comments||[]).reduce(((e,t)=>{if(t.ref){e[t.ref]=t}return e}),{});t.hyperlinkMap=(e.hyperlinks||[]).reduce(((e,t)=>{if(t.rId){e[t.address]=r[t.rId].Target}return e}),{});t.formulae={};e.rows=e.rows&&e.rows.filter(Boolean)||[];e.rows.forEach((e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]}));this.map.cols.reconcile(e.cols,t);this.map.sheetData.reconcile(e.rows,t);this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t);e.media=[];if(e.drawing){const i=r[e.drawing.rId];const n=i.Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(n){const r=n[1];const i=t.drawings[r];i.anchors.forEach((t=>{if(t.medium){const r={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(r)}}))}}const i=e.background&&r[e.background.rId];if(i){const r=i.Target.split("/media/")[1];const n=t.mediaIndex&&t.mediaIndex[r];if(n!==undefined){e.media.push({type:"background",imageId:n})}}e.tables=(e.tables||[]).map((e=>{const i=r[e.rId];return t.tables[i.Target]}));delete e.relationships;delete e.hyperlinks;delete e.comments}}WorkSheetXform.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"};e.exports=WorkSheetXform},2311:function(e,t,r){const i=r(8287);class BooleanXform extends i{constructor(e){super();this.tag=e.tag;this.attr=e.attr}render(e,t){if(t){e.openNode(this.tag);e.closeNode()}}parseOpen(e){if(e.name===this.tag){this.model=true}}parseText(){}parseClose(){return false}}e.exports=BooleanXform},4689:function(e,t,r){const i=r(8287);class DateXform extends i{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs;this._format=e.format||function(e){try{if(Number.isNaN(e.getTime()))return"";return e.toISOString()}catch(e){return""}};this._parse=e.parse||function(e){return new Date(e)}}render(e,t){if(t){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,this._format(t))}else{e.writeText(this._format(t))}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=this._parse(e.attributes[this.attr])}else{this.text=[]}}}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=this._parse(this.text.join(""))}return false}}e.exports=DateXform},8101:function(e,t,r){const i=r(8287);class IntegerXform extends i{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs;this.zero=e.zero}render(e,t){if(t||this.zero){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,t)}else{e.writeText(t)}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=parseInt(e.attributes[this.attr],10)}else{this.text=[]}return true}return false}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=parseInt(this.text.join("")||0,10)}return false}}e.exports=IntegerXform},9656:function(e,t,r){const i=r(8287);class StringXform extends i{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs}render(e,t){if(t!==undefined){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,t)}else{e.writeText(t)}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=e.attributes[this.attr]}else{this.text=[]}}}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=this.text.join("")}return false}}e.exports=StringXform},2216:function(e,t,r){const i=r(8287);const n=r(8674);function build(e,t){e.openNode(t.tag,t.$);if(t.c){t.c.forEach((t=>{build(e,t)}))}if(t.t){e.writeText(t.t)}e.closeNode()}class StaticXform extends i{constructor(e){super();this._model=e}render(e){if(!this._xml){const e=new n;build(e,this._model);this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return true}parseText(){}parseClose(e){switch(e){case this._model.tag:return false;default:return true}}}e.exports=StaticXform},9579:function(e,t,r){const i=r(4566);const n=r(9573);const s=r(8287);class PhoneticTextXform extends s{constructor(){super();this.map={r:new n,t:new i}}get tag(){return"rPh"}render(e,t){e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0});if(t&&t.hasOwnProperty("richText")&&t.richText){const{r:r}=this.map;t.richText.forEach((t=>{r.render(e,t)}))}else if(t){this.map.t.render(e,t.text)}e.closeNode()}parseOpen(e){const{name:t}=e;if(this.parser){this.parser.parseOpen(e);return true}if(t===this.tag){this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)};return true}this.parser=this.map[t];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;if(!e){e=this.model.richText=[]}e.push(this.parser.model);break}case"t":this.model.text=this.parser.model;break;default:break}this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=PhoneticTextXform},9573:function(e,t,r){const i=r(4566);const n=r(2381);const s=r(8287);class RichTextXform extends s{constructor(e){super();this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new i)}get fontXform(){return this._fontXform||(this._fontXform=new n(RichTextXform.FONT_OPTIONS))}render(e,t){t=t||this.model;e.openNode("r");if(t.font){this.fontXform.render(e,t.font)}this.textXform.render(e,t.text);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"r":this.model={};return true;case"t":this.parser=this.textXform;this.parser.parseOpen(e);return true;case"rPr":this.parser=this.fontXform;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){switch(e){case"r":return false;case"t":this.model.text=this.parser.model;this.parser=undefined;return true;case"rPr":this.model.font=this.parser.model;this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}}RichTextXform.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"};e.exports=RichTextXform},9126:function(e,t,r){const i=r(4566);const n=r(9573);const s=r(9579);const o=r(8287);class SharedStringXform extends o{constructor(e){super();this.model=e;this.map={r:new n,t:new i,rPh:new s}}get tag(){return"si"}render(e,t){e.openNode(this.tag);if(t&&t.hasOwnProperty("richText")&&t.richText){if(t.richText.length){t.richText.forEach((t=>{this.map.r.render(e,t)}))}else{this.map.t.render(e,"")}}else if(t!==undefined&&t!==null){this.map.t.render(e,t)}e.closeNode()}parseOpen(e){const{name:t}=e;if(this.parser){this.parser.parseOpen(e);return true}if(t===this.tag){this.model={};return true}this.parser=this.map[t];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;if(!e){e=this.model.richText=[]}e.push(this.parser.model);break}case"t":this.model=this.parser.model;break;default:break}this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=SharedStringXform},2647:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(9126);class SharedStringsXform extends n{constructor(e){super();this.model=e||{values:[],count:0};this.hash=Object.create(null);this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];if(t===undefined){t=this.hash[e]=this.model.values.length;this.model.values.push(e)}this.model.count++;return t}addRichText(e){const t=this.sharedStringXform.toXml(e);let r=this.rich[t];if(r===undefined){r=this.rich[t]=this.model.values.length;this.model.values.push(e)}this.model.count++;return r}render(e,t){t=t||this._values;e.openXml(i.StdDocAttributes);e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const r=this.sharedStringXform;t.values.forEach((t=>{r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"sst":return true;case"si":this.parser=this.sharedStringXform;this.parser.parseOpen(e);return true;default:throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.values.push(this.parser.model);this.model.count++;this.parser=undefined}return true}switch(e){case"sst":return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}e.exports=SharedStringsXform},4566:function(e,t,r){const i=r(8287);class TextXform extends i{get tag(){return"t"}render(e,t){e.openNode("t");if(/^\s|\n|\s$/.test(t)){e.addAttribute("xml:space","preserve")}e.writeText(t);e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}parseOpen(e){switch(e.name){case"t":this._text=[];return true;default:return false}}parseText(e){this._text.push(e)}parseClose(){return false}}e.exports=TextXform},2053:function(e,t,r){const i=r(4041);const n=r(9145);const s=r(8287);const o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(((e,t)=>{e[t]=true;return e}),{}),horizontal(e){return this.horizontalValues[e]?e:undefined},verticalValues:["top","middle","bottom","distributed","justify"].reduce(((e,t)=>{e[t]=true;return e}),{}),vertical(e){if(e==="middle")return"center";return this.verticalValues[e]?e:undefined},wrapText(e){return e?true:undefined},shrinkToFit(e){return e?true:undefined},textRotation(e){switch(e){case"vertical":return e;default:e=n.validInt(e);return e>=-90&&e<=90?e:undefined}},indent(e){e=n.validInt(e);return Math.max(0,e)},readingOrder(e){switch(e){case"ltr":return i.ReadingOrder.LeftToRight;case"rtl":return i.ReadingOrder.RightToLeft;default:return undefined}}};const c={toXml(e){e=o.textRotation(e);if(e){if(e==="vertical"){return 255}const t=Math.round(e);if(t>=0&&t<=90){return t}if(t<0&&t>=-90){return 90-t}}return undefined},toModel(e){const t=n.validInt(e);if(t!==undefined){if(t===255){return"vertical"}if(t>=0&&t<=90){return t}if(t>90&&t<=180){return 90-t}}return undefined}};class AlignmentXform extends s{get tag(){return"alignment"}render(e,t){e.addRollback();e.openNode("alignment");let r=false;function add(t,i){if(i){e.addAttribute(t,i);r=true}}add("horizontal",o.horizontal(t.horizontal));add("vertical",o.vertical(t.vertical));add("wrapText",o.wrapText(t.wrapText)?"1":false);add("shrinkToFit",o.shrinkToFit(t.shrinkToFit)?"1":false);add("indent",o.indent(t.indent));add("textRotation",c.toXml(t.textRotation));add("readingOrder",o.readingOrder(t.readingOrder));e.closeNode();if(r){e.commit()}else{e.rollback()}}parseOpen(e){const t={};let r=false;function add(e,i,n){if(e){t[i]=n;r=true}}add(e.attributes.horizontal,"horizontal",e.attributes.horizontal);add(e.attributes.vertical,"vertical",e.attributes.vertical==="center"?"middle":e.attributes.vertical);add(e.attributes.wrapText,"wrapText",n.parseBoolean(e.attributes.wrapText));add(e.attributes.shrinkToFit,"shrinkToFit",n.parseBoolean(e.attributes.shrinkToFit));add(e.attributes.indent,"indent",parseInt(e.attributes.indent,10));add(e.attributes.textRotation,"textRotation",c.toModel(e.attributes.textRotation));add(e.attributes.readingOrder,"readingOrder",e.attributes.readingOrder==="2"?"rtl":"ltr");this.model=r?t:null}parseText(){}parseClose(){return false}}e.exports=AlignmentXform},9134:function(e,t,r){const i=r(8287);const n=r(9145);const s=r(767);class EdgeXform extends i{constructor(e){super();this.name=e;this.map={color:new s}}get tag(){return this.name}render(e,t,r){const i=t&&t.color||r||this.defaultColor;e.openNode(this.name);if(t&&t.style){e.addAttribute("style",t.style);if(i){this.map.color.render(e,i)}}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.name:{const{style:t}=e.attributes;if(t){this.model={style:t}}else{this.model=undefined}return true}case"color":this.parser=this.map.color;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e===this.name){if(this.map.color.model){if(!this.model){this.model={}}this.model.color=this.map.color.model}}return false}validStyle(e){return EdgeXform.validStyleValues[e]}}EdgeXform.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(((e,t)=>{e[t]=true;return e}),{});class BorderXform extends i{constructor(){super();this.map={top:new EdgeXform("top"),left:new EdgeXform("left"),bottom:new EdgeXform("bottom"),right:new EdgeXform("right"),diagonal:new EdgeXform("diagonal")}}render(e,t){const{color:r}=t;e.openNode("border");if(t.diagonal&&t.diagonal.style){if(t.diagonal.up){e.addAttribute("diagonalUp","1")}if(t.diagonal.down){e.addAttribute("diagonalDown","1")}}function add(i,n){if(i&&!i.color&&t.color){i={...i,color:t.color}}n.render(e,i,r)}add(t.left,this.map.left);add(t.right,this.map.right);add(t.top,this.map.top);add(t.bottom,this.map.bottom);add(t.diagonal,this.map.diagonal);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"border":this.reset();this.diagonalUp=n.parseBoolean(e.attributes.diagonalUp);this.diagonalDown=n.parseBoolean(e.attributes.diagonalDown);return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e==="border"){const e=this.model={};const add=function(t,r,i){if(r){if(i){Object.assign(r,i)}e[t]=r}};add("left",this.map.left.model);add("right",this.map.right.model);add("top",this.map.top.model);add("bottom",this.map.bottom.model);add("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return false}}e.exports=BorderXform},767:function(e,t,r){const i=r(8287);class ColorXform extends i{constructor(e){super();this.name=e||"color"}get tag(){return this.name}render(e,t){if(t){e.openNode(this.name);if(t.argb){e.addAttribute("rgb",t.argb)}else if(t.theme!==undefined){e.addAttribute("theme",t.theme);if(t.tint!==undefined){e.addAttribute("tint",t.tint)}}else if(t.indexed!==undefined){e.addAttribute("indexed",t.indexed)}else{e.addAttribute("auto","1")}e.closeNode();return true}return false}parseOpen(e){if(e.name===this.name){if(e.attributes.rgb){this.model={argb:e.attributes.rgb}}else if(e.attributes.theme){this.model={theme:parseInt(e.attributes.theme,10)};if(e.attributes.tint){this.model.tint=parseFloat(e.attributes.tint)}}else if(e.attributes.indexed){this.model={indexed:parseInt(e.attributes.indexed,10)}}else{this.model=undefined}return true}return false}parseText(){}parseClose(){return false}}e.exports=ColorXform},7742:function(e,t,r){const i=r(8287);const n=r(2053);const s=r(9134);const o=r(9273);const c=r(2381);const h=r(2747);const p=r(5611);class DxfXform extends i{constructor(){super();this.map={alignment:new n,border:new s,fill:new o,font:new c,numFmt:new h,protection:new p}}get tag(){return"dxf"}render(e,t){e.openNode(this.tag);if(t.font){this.map.font.render(e,t.font)}if(t.numFmt&&t.numFmtId){const r={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,r)}if(t.fill){this.map.fill.render(e,t.fill)}if(t.alignment){this.map.alignment.render(e,t.alignment)}if(t.border){this.map.border.render(e,t.border)}if(t.protection){this.map.protection.render(e,t.protection)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e===this.tag){this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model};return false}return true}}e.exports=DxfXform},9273:function(e,t,r){const i=r(8287);const n=r(767);class StopXform extends i{constructor(){super();this.map={color:new n}}get tag(){return"stop"}render(e,t){e.openNode("stop");e.addAttribute("position",t.position);this.map.color.render(e,t.color);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"stop":this.model={position:parseFloat(e.attributes.position)};return true;case"color":this.parser=this.map.color;this.parser.parseOpen(e);return true;default:return false}}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.color=this.parser.model;this.parser=undefined}return true}return false}}class PatternFillXform extends i{constructor(){super();this.map={fgColor:new n("fgColor"),bgColor:new n("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill");e.addAttribute("patternType",t.pattern);if(t.fgColor){this.map.fgColor.render(e,t.fgColor)}if(t.bgColor){this.map.bgColor.render(e,t.bgColor)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"patternFill":this.model={type:"pattern",pattern:e.attributes.patternType};return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.parser.model){this.model[e]=this.parser.model}this.parser=undefined}return true}return false}}class GradientFillXform extends i{constructor(){super();this.map={stop:new StopXform}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){e.openNode("gradientFill");switch(t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path");if(t.center.left){e.addAttribute("left",t.center.left);if(t.center.right===undefined){e.addAttribute("right",t.center.left)}}if(t.center.right){e.addAttribute("right",t.center.right)}if(t.center.top){e.addAttribute("top",t.center.top);if(t.center.bottom===undefined){e.addAttribute("bottom",t.center.top)}}if(t.center.bottom){e.addAttribute("bottom",t.center.bottom)}break;default:break}const r=this.map.stop;t.stops.forEach((t=>{r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"gradientFill":{const t=this.model={stops:[]};if(e.attributes.degree){t.gradient="angle";t.degree=parseInt(e.attributes.degree,10)}else if(e.attributes.type==="path"){t.gradient="path";t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0};if(e.attributes.right!==e.attributes.left){t.center.right=e.attributes.right?parseFloat(e.attributes.right):0}if(e.attributes.bottom!==e.attributes.top){t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0}}return true}case"stop":this.parser=this.map.stop;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.stops.push(this.parser.model);this.parser=undefined}return true}return false}}class FillXform extends i{constructor(){super();this.map={patternFill:new PatternFillXform,gradientFill:new GradientFillXform}}get tag(){return"fill"}render(e,t){e.addRollback();e.openNode("fill");switch(t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:e.rollback();return}e.closeNode();e.commit()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"fill":this.model={};return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model=this.parser.model;this.model.type=this.parser.name;this.parser=undefined}return true}return false}validStyle(e){return FillXform.validPatternValues[e]}}FillXform.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(((e,t)=>{e[t]=true;return e}),{});FillXform.StopXform=StopXform;FillXform.PatternFillXform=PatternFillXform;FillXform.GradientFillXform=GradientFillXform;e.exports=FillXform},2381:function(e,t,r){"use strict";const i=r(767);const n=r(2311);const s=r(8101);const o=r(9656);const c=r(5028);const h=r(2563);const p=r(8287);class FontXform extends p{constructor(e){super();this.options=e||FontXform.OPTIONS;this.map={b:{prop:"bold",xform:new n({tag:"b",attr:"val"})},i:{prop:"italic",xform:new n({tag:"i",attr:"val"})},u:{prop:"underline",xform:new c},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new i},condense:{prop:"condense",xform:new n({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new n({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new n({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new o({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new o({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new n({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new n({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}};this.map[this.options.fontNameTag]={prop:"name",xform:new o({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:r}=this;e.openNode(this.options.tagName);h.each(this.map,((i,n)=>{r[n].xform.render(e,t[i.prop])}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(this.map[e.name]){this.parser=this.map[e.name].xform;return this.parser.parseOpen(e)}switch(e.name){case this.options.tagName:this.model={};return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];if(this.parser.model){this.model[t.prop]=this.parser.model}this.parser=undefined;return true}switch(e){case this.options.tagName:return false;default:return true}}}FontXform.OPTIONS={tagName:"font",fontNameTag:"name"};e.exports=FontXform},2747:function(e,t,r){const i=r(2563);const n=r(5877);const s=r(8287);function hashDefaultFormats(){const e={};i.each(n,((t,r)=>{if(t.f){e[t.f]=parseInt(r,10)}}));return e}const o=hashDefaultFormats();class NumFmtXform extends s{constructor(e,t){super();this.id=e;this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){switch(e.name){case"numFmt":this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")};return true;default:return false}}parseText(){}parseClose(){return false}}NumFmtXform.getDefaultFmtId=function getDefaultFmtId(e){return o[e]};NumFmtXform.getDefaultFmtCode=function getDefaultFmtCode(e){return n[e]&&n[e].f};e.exports=NumFmtXform},5611:function(e,t,r){const i=r(8287);const n={boolean(e,t){if(e===undefined){return t}return e}};class ProtectionXform extends i{get tag(){return"protection"}render(e,t){e.addRollback();e.openNode("protection");let r=false;function add(t,i){if(i!==undefined){e.addAttribute(t,i);r=true}}add("locked",n.boolean(t.locked,true)?undefined:"0");add("hidden",n.boolean(t.hidden,false)?"1":undefined);e.closeNode();if(r){e.commit()}else{e.rollback()}}parseOpen(e){const t={locked:!(e.attributes.locked==="0"),hidden:e.attributes.hidden==="1"};const r=!t.locked||t.hidden;this.model=r?t:null}parseText(){}parseClose(){return false}}e.exports=ProtectionXform},7189:function(e,t,r){const i=r(8287);const n=r(2053);const s=r(5611);class StyleXform extends i{constructor(e){super();this.xfId=!!(e&&e.xfId);this.map={alignment:new n,protection:new s}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0});if(this.xfId){e.addAttribute("xfId",t.xfId||0)}if(t.numFmtId){e.addAttribute("applyNumberFormat","1")}if(t.fontId){e.addAttribute("applyFont","1")}if(t.fillId){e.addAttribute("applyFill","1")}if(t.borderId){e.addAttribute("applyBorder","1")}if(t.alignment){e.addAttribute("applyAlignment","1")}if(t.protection){e.addAttribute("applyProtection","1")}if(t.alignment){this.map.alignment.render(e,t.alignment)}if(t.protection){this.map.protection.render(e,t.protection)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"xf":this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)};if(this.xfId){this.model.xfId=parseInt(e.attributes.xfId,10)}return true;case"alignment":this.parser=this.map.alignment;this.parser.parseOpen(e);return true;case"protection":this.parser=this.map.protection;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.map.protection===this.parser){this.model.protection=this.parser.model}else{this.model.alignment=this.parser.model}this.parser=undefined}return true}return e!=="xf"}}e.exports=StyleXform},458:function(e,t,r){const i=r(4041);const n=r(8674);const s=r(8287);const o=r(2216);const c=r(6422);const h=r(2381);const p=r(9273);const g=r(9134);const y=r(2747);const v=r(7189);const b=r(7742);const _=164;class StylesXform extends s{constructor(e){super();this.map={numFmts:new c({tag:"numFmts",count:true,childXform:new y}),fonts:new c({tag:"fonts",count:true,childXform:new h,$:{"x14ac:knownFonts":1}}),fills:new c({tag:"fills",count:true,childXform:new p}),borders:new c({tag:"borders",count:true,childXform:new g}),cellStyleXfs:new c({tag:"cellStyleXfs",count:true,childXform:new v}),cellXfs:new c({tag:"cellXfs",count:true,childXform:new v({xfId:true})}),dxfs:new c({tag:"dxfs",always:true,count:true,childXform:new b}),numFmt:new y,font:new h,fill:new p,border:new g,style:new v({xfId:true}),cellStyles:StylesXform.STATIC_XFORMS.cellStyles,tableStyles:StylesXform.STATIC_XFORMS.tableStyles,extLst:StylesXform.STATIC_XFORMS.extLst};if(e){this.init()}}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]};this.initIndex();this._addBorder({});this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0});this._addFill({type:"pattern",pattern:"none"});this._addFill({type:"pattern",pattern:"gray125"});this.weakMap=new WeakMap}render(e,t){t=t||this.model;e.openXml(n.StdDocAttributes);e.openNode("styleSheet",StylesXform.STYLESHEET_ATTRIBUTES);if(this.index){if(t.numFmts&&t.numFmts.length){e.openNode("numFmts",{count:t.numFmts.length});t.numFmts.forEach((t=>{e.writeXml(t)}));e.closeNode()}if(!t.fonts.length){this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})}e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1});t.fonts.forEach((t=>{e.writeXml(t)}));e.closeNode();e.openNode("fills",{count:t.fills.length});t.fills.forEach((t=>{e.writeXml(t)}));e.closeNode();e.openNode("borders",{count:t.borders.length});t.borders.forEach((t=>{e.writeXml(t)}));e.closeNode();this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]);e.openNode("cellXfs",{count:t.styles.length});t.styles.forEach((t=>{e.writeXml(t)}));e.closeNode()}else{this.map.numFmts.render(e,t.numFmts);this.map.fonts.render(e,t.fonts);this.map.fills.render(e,t.fills);this.map.borders.render(e,t.borders);this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]);this.map.cellXfs.render(e,t.styles)}StylesXform.STATIC_XFORMS.cellStyles.render(e);this.map.dxfs.render(e,t.dxfs);StylesXform.STATIC_XFORMS.tableStyles.render(e);StylesXform.STATIC_XFORMS.extLst.render(e);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"styleSheet":this.initIndex();return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"styleSheet":{this.model={};const add=(e,t)=>{if(t.model&&t.model.length){this.model[e]=t.model}};add("numFmts",this.map.numFmts);add("fonts",this.map.fonts);add("fills",this.map.fills);add("borders",this.map.borders);add("styles",this.map.cellXfs);add("dxfs",this.map.dxfs);this.index={model:[],numFmt:[]};if(this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach((t=>{e[t.id]=t.formatCode}))}return false}default:return true}}addStyleModel(e,t){if(!e){return 0}if(!this.model.fonts.length){this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})}if(this.weakMap&&this.weakMap.has(e)){return this.weakMap.get(e)}const r={};t=t||i.ValueType.Number;if(e.numFmt){r.numFmtId=this._addNumFmtStr(e.numFmt)}else{switch(t){case i.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case i.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy");break;default:break}}if(e.font){r.fontId=this._addFont(e.font)}if(e.border){r.borderId=this._addBorder(e.border)}if(e.fill){r.fillId=this._addFill(e.fill)}if(e.alignment){r.alignment=e.alignment}if(e.protection){r.protection=e.protection}const n=this._addStyle(r);if(this.weakMap){this.weakMap.set(e,n)}return n}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let r=this.index.model[e];if(r)return r;r=this.index.model[e]={};if(t.numFmtId){const e=this.index.numFmt[t.numFmtId]||y.getDefaultFmtCode(t.numFmtId);if(e){r.numFmt=e}}function addStyle(e,t,i){if(i||i===0){const n=t[i];if(n){r[e]=n}}}addStyle("font",this.model.fonts,t.fontId);addStyle("border",this.model.borders,t.borderId);addStyle("fill",this.model.fills,t.fillId);if(t.alignment){r.alignment=t.alignment}if(t.protection){r.protection=t.protection}return r}addDxfStyle(e){if(e.numFmt){e.numFmtId=this._addNumFmtStr(e.numFmt)}this.model.dxfs.push(e);return this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let r=this.index.style[t];if(r===undefined){r=this.index.style[t]=this.model.styles.length;this.model.styles.push(t)}return r}_addNumFmtStr(e){let t=y.getDefaultFmtId(e);if(t!==undefined)return t;t=this.index.numFmt[e];if(t!==undefined)return t;t=this.index.numFmt[e]=_+this.model.numFmts.length;const r=this.map.numFmt.toXml({id:t,formatCode:e});this.model.numFmts.push(r);return t}_addFont(e){const t=this.map.font.toXml(e);let r=this.index.font[t];if(r===undefined){r=this.index.font[t]=this.model.fonts.length;this.model.fonts.push(t)}return r}_addBorder(e){const t=this.map.border.toXml(e);let r=this.index.border[t];if(r===undefined){r=this.index.border[t]=this.model.borders.length;this.model.borders.push(t)}return r}_addFill(e){const t=this.map.fill.toXml(e);let r=this.index.fill[t];if(r===undefined){r=this.index.fill[t]=this.model.fills.length;this.model.fills.push(t)}return r}}StylesXform.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"};StylesXform.STATIC_XFORMS={cellStyles:new o({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new o({tag:"dxfs",$:{count:0}}),tableStyles:new o({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new o({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};class StylesXformMock extends StylesXform{constructor(){super();this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){e.autodrain();return Promise.resolve()}addStyleModel(e,t){switch(t){case i.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:y.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length;this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}}StylesXform.Mock=StylesXformMock;e.exports=StylesXform},5028:function(e,t,r){const i=r(8287);class UnderlineXform extends i{constructor(e){super();this.model=e}get tag(){return"u"}render(e,t){t=t||this.model;if(t===true){e.leafNode("u")}else{const r=UnderlineXform.Attributes[t];if(r){e.leafNode("u",r)}}}parseOpen(e){if(e.name==="u"){this.model=e.attributes.val||true}}parseText(){}parseClose(){return false}}UnderlineXform.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}};e.exports=UnderlineXform},8945:function(e,t,r){const i=r(8287);const n=r(5938);class AutoFilterXform extends i{constructor(){super();this.map={filterColumn:new n}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach(((e,t)=>{this.map.filterColumn.prepare(e,{index:t})}))}render(e,t){e.openNode(this.tag,{ref:t.autoFilterRef});t.columns.forEach((t=>{this.map.filterColumn.render(e,t)}));e.closeNode();return true}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.model={autoFilterRef:e.attributes.ref,columns:[]};return true;default:this.parser=this.map[e.name];if(this.parser){this.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.columns.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}e.exports=AutoFilterXform},2057:function(e,t,r){const i=r(8287);class CustomFilterXform extends i{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){if(e.name===this.tag){this.model={val:e.attributes.val,operator:e.attributes.operator};return true}return false}parseText(){}parseClose(){return false}}e.exports=CustomFilterXform},5938:function(e,t,r){const i=r(8287);const n=r(6422);const s=r(2057);const o=r(9645);class FilterColumnXform extends i{constructor(){super();this.map={customFilters:new n({tag:"customFilters",count:false,empty:true,childXform:new s}),filters:new n({tag:"filters",count:false,empty:true,childXform:new o})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){if(t.customFilters){e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"});this.map.customFilters.render(e,t.customFilters);e.closeNode();return true}e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"});return true}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}const{attributes:t}=e;switch(e.name){case this.tag:this.model={filterButton:t.hiddenButton==="0"};return true;default:this.parser=this.map[e.name];if(this.parser){this.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.customFilters=this.map.customFilters.model;return false;default:return true}}}e.exports=FilterColumnXform},9645:function(e,t,r){const i=r(8287);class FilterXform extends i{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){if(e.name===this.tag){this.model={val:e.attributes.val};return true}return false}parseText(){}parseClose(){return false}}e.exports=FilterXform},4362:function(e,t,r){const i=r(8287);class TableColumnXform extends i{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId});return true}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId};return true}return false}parseText(){}parseClose(){return false}}e.exports=TableColumnXform},5572:function(e,t,r){const i=r(8287);class TableStyleInfoXform extends i{get tag(){return"tableStyleInfo"}render(e,t){e.leafNode(this.tag,{name:t.theme?t.theme:undefined,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"});return true}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;this.model={theme:t.name?t.name:null,showFirstColumn:t.showFirstColumn==="1",showLastColumn:t.showLastColumn==="1",showRowStripes:t.showRowStripes==="1",showColumnStripes:t.showColumnStripes==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=TableStyleInfoXform},6709:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(6422);const o=r(8945);const c=r(4362);const h=r(5572);class TableXform extends n{constructor(){super();this.map={autoFilter:new o,tableColumns:new s({tag:"tableColumns",count:true,empty:true,childXform:new c}),tableStyleInfo:new h}}prepare(e,t){this.map.autoFilter.prepare(e);this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(i.StdDocAttributes);e.openNode(this.tag,{...TableXform.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":undefined,totalsRowShown:t.totalsRow?undefined:"1",headerRowCount:t.headerRow?"1":"0"});this.map.autoFilter.render(e,t);this.map.tableColumns.render(e,t.columns);this.map.tableStyleInfo.render(e,t.style);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}const{name:t,attributes:r}=e;switch(t){case this.tag:this.reset();this.model={name:r.name,displayName:r.displayName||r.name,tableRef:r.ref,totalsRow:r.totalsRowCount==="1",headerRow:r.headerRowCount==="1"};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.columns=this.map.tableColumns.model;if(this.map.autoFilter.model){this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef;this.map.autoFilter.model.columns.forEach(((e,t)=>{this.model.columns[t].filterButton=e.filterButton}))}this.model.style=this.map.tableStyleInfo.model;return false;default:return true}}reconcile(e,t){e.columns.forEach((e=>{if(e.dxfId!==undefined){e.style=t.styles.getDxfStyle(e.dxfId)}}))}}TableXform.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"};e.exports=TableXform},8117:function(e,t,r){const i=r(9896);const n=r(5485);const{PassThrough:s}=r(1643);const o=r(568);const c=r(6);const h=r(9145);const p=r(8674);const{bufferToString:g}=r(4386);const y=r(458);const v=r(9505);const b=r(2647);const _=r(7861);const w=r(5919);const x=r(7661);const S=r(9312);const k=r(5478);const C=r(3057);const E=r(6709);const R=r(9474);const O=r(5135);const A=r(2260);function fsReadFileAsync(e,t){return new Promise(((r,n)=>{i.readFile(e,t,((e,t)=>{if(e){n(e)}else{r(t)}}))}))}class XLSX{constructor(e){this.workbook=e}async readFile(e,t){if(!await h.fs.exists(e)){throw new Error(`File not found: ${e}`)}const r=i.createReadStream(e);try{const e=await this.read(r,t);r.close();return e}catch(e){r.close();throw e}}parseRels(e){const t=new _;return t.parseStream(e)}parseWorkbook(e){const t=new S;return t.parseStream(e)}parseSharedStrings(e){const t=new b;return t.parseStream(e)}reconcile(e,t){const r=new S;const i=new k(t);const n=new C;const s=new E;r.reconcile(e);const o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((t=>{const r=e.drawings[t];const i=e.drawingRels[t];if(i){o.rels=i.reduce(((e,t)=>{e[t.Id]=t;return e}),{});(r.anchors||[]).forEach((e=>{const t=e.picture&&e.picture.hyperlinks;if(t&&o.rels[t.rId]){t.hyperlink=o.rels[t.rId].Target;delete t.rId}}));n.reconcile(r,o)}}));const c={styles:e.styles};Object.values(e.tables).forEach((e=>{s.reconcile(e,c)}));const h={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((t=>{t.relationships=e.worksheetRels[t.sheetNo];i.reconcile(t,h)}));delete e.worksheetHash;delete e.worksheetRels;delete e.globalRels;delete e.sharedStrings;delete e.workbookRels;delete e.sheetDefs;delete e.styles;delete e.mediaIndex;delete e.drawings;delete e.drawingRels;delete e.vmlDrawings}async _processWorksheetEntry(e,t,r,i,n){const s=new k(i);const o=await s.parseStream(e);o.sheetNo=r;t.worksheetHash[n]=o;t.worksheets.push(o)}async _processCommentEntry(e,t,r){const i=new R;const n=await i.parseStream(e);t.comments[`../${r}.xml`]=n}async _processTableEntry(e,t,r){const i=new E;const n=await i.parseStream(e);t.tables[`../tables/${r}.xml`]=n}async _processWorksheetRelsEntry(e,t,r){const i=new _;const n=await i.parseStream(e);t.worksheetRels[r]=n}async _processMediaEntry(e,t,r){const i=r.lastIndexOf(".");if(i>=1){const n=r.substr(i+1);const s=r.substr(0,i);await new Promise(((i,o)=>{const h=new c;h.on("finish",(()=>{t.mediaIndex[r]=t.media.length;t.mediaIndex[s]=t.media.length;const e={type:"image",name:s,extension:n,buffer:h.toBuffer()};t.media.push(e);i()}));e.on("error",(e=>{o(e)}));e.pipe(h)}))}}async _processDrawingEntry(e,t,r){const i=new C;const n=await i.parseStream(e);t.drawings[r]=n}async _processDrawingRelsEntry(e,t,r){const i=new _;const n=await i.parseStream(e);t.drawingRels[r]=n}async _processVmlDrawingEntry(e,t,r){const i=new O;const n=await i.parseStream(e);t.vmlDrawings[`../drawings/${r}.vml`]=n}async _processThemeEntry(e,t,r){await new Promise(((i,n)=>{const s=new c;e.on("error",n);s.on("error",n);s.on("finish",(()=>{t.themes[r]=s.read().toString();i()}));e.pipe(s)}))}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){if(!e[Symbol.asyncIterator]&&e.pipe){e=e.pipe(new s)}const r=[];for await(const t of e){r.push(t)}return this.load(Buffer.concat(r),t)}async load(e,t){let r;if(t&&t.base64){r=Buffer.from(e.toString(),"base64")}else{r=e}const i={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}};const o=await n.loadAsync(r);for(const e of Object.values(o.files)){if(!e.dir){let r=e.name;if(r[0]==="/"){r=r.substr(1)}let n;if(r.match(/xl\/media\//)||r.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){n=new s;n.write(await e.async("nodebuffer"))}else{n=new s({writableObjectMode:true,readableObjectMode:true});let t;if(process.browser){t=g(await e.async("nodebuffer"))}else{t=await e.async("string")}const r=16*1024;for(let e=0;e<t.length;e+=r){n.write(t.substring(e,e+r))}}n.end();switch(r){case"_rels/.rels":i.globalRels=await this.parseRels(n);break;case"xl/workbook.xml":{const e=await this.parseWorkbook(n);i.sheets=e.sheets;i.definedNames=e.definedNames;i.views=e.views;i.properties=e.properties;i.calcProperties=e.calcProperties;break}case"xl/_rels/workbook.xml.rels":i.workbookRels=await this.parseRels(n);break;case"xl/sharedStrings.xml":i.sharedStrings=new b;await i.sharedStrings.parseStream(n);break;case"xl/styles.xml":i.styles=new y;await i.styles.parseStream(n);break;case"docProps/app.xml":{const e=new x;const t=await e.parseStream(n);i.company=t.company;i.manager=t.manager;break}case"docProps/core.xml":{const e=new v;const t=await e.parseStream(n);Object.assign(i,t);break}default:{let e=r.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(e){await this._processWorksheetEntry(n,i,e[1],t,r);break}e=r.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/);if(e){await this._processWorksheetRelsEntry(n,i,e[1]);break}e=r.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/);if(e){await this._processThemeEntry(n,i,e[1]);break}e=r.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/);if(e){await this._processMediaEntry(n,i,e[1]);break}e=r.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/);if(e){await this._processDrawingEntry(n,i,e[1]);break}e=r.match(/xl\/(comments\d+)[.]xml/);if(e){await this._processCommentEntry(n,i,e[1]);break}e=r.match(/xl\/tables\/(table\d+)[.]xml/);if(e){await this._processTableEntry(n,i,e[1]);break}e=r.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/);if(e){await this._processDrawingRelsEntry(n,i,e[1]);break}e=r.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/);if(e){await this._processVmlDrawingEntry(n,i,e[1]);break}}}}}this.reconcile(i,t);this.workbook.model=i;return this.workbook}async addMedia(e,t){await Promise.all(t.media.map((async t=>{if(t.type==="image"){const r=`xl/media/${t.name}.${t.extension}`;if(t.filename){const i=await fsReadFileAsync(t.filename);return e.append(i,{name:r})}if(t.buffer){return e.append(t.buffer,{name:r})}if(t.base64){const i=t.base64;const n=i.substring(i.indexOf(",")+1);return e.append(n,{name:r,base64:true})}}throw new Error("Unsupported media")})))}addDrawings(e,t){const r=new C;const i=new _;t.worksheets.forEach((t=>{const{drawing:n}=t;if(n){r.prepare(n,{});let t=r.toXml(n);e.append(t,{name:`xl/drawings/${n.name}.xml`});t=i.toXml(n.rels);e.append(t,{name:`xl/drawings/_rels/${n.name}.xml.rels`})}}))}addTables(e,t){const r=new E;t.worksheets.forEach((t=>{const{tables:i}=t;i.forEach((t=>{r.prepare(t,{});const i=r.toXml(t);e.append(i,{name:`xl/tables/${t.target}`})}))}))}async addContentTypes(e,t){const r=new w;const i=r.toXml(t);e.append(i,{name:"[Content_Types].xml"})}async addApp(e,t){const r=new x;const i=r.toXml(t);e.append(i,{name:"docProps/app.xml"})}async addCore(e,t){const r=new v;e.append(r.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const r=t.themes||{theme1:A};Object.keys(r).forEach((t=>{const i=r[t];const n=`xl/theme/${t}.xml`;e.append(i,{name:n})}))}async addOfficeRels(e){const t=new _;const r=t.toXml([{Id:"rId1",Type:XLSX.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:XLSX.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:XLSX.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(r,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let r=1;const i=[{Id:`rId${r++}`,Type:XLSX.RelType.Styles,Target:"styles.xml"},{Id:`rId${r++}`,Type:XLSX.RelType.Theme,Target:"theme/theme1.xml"}];if(t.sharedStrings.count){i.push({Id:`rId${r++}`,Type:XLSX.RelType.SharedStrings,Target:"sharedStrings.xml"})}t.worksheets.forEach((e=>{e.rId=`rId${r++}`;i.push({Id:e.rId,Type:XLSX.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})}));const n=new _;const s=n.toXml(i);e.append(s,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){if(t.sharedStrings&&t.sharedStrings.count){e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}}async addStyles(e,t){const{xml:r}=t.styles;if(r){e.append(r,{name:"xl/styles.xml"})}}async addWorkbook(e,t){const r=new S;e.append(r.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const r=new k;const i=new _;const n=new R;const s=new O;t.worksheets.forEach((t=>{let o=new p;r.render(o,t);e.append(o.xml,{name:`xl/worksheets/sheet${t.id}.xml`});if(t.rels&&t.rels.length){o=new p;i.render(o,t.rels);e.append(o.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})}if(t.comments.length>0){o=new p;n.render(o,t);e.append(o.xml,{name:`xl/comments${t.id}.xml`});o=new p;s.render(o,t);e.append(o.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`})}}))}_finalize(e){return new Promise(((t,r)=>{e.on("finish",(()=>{t(this)}));e.on("error",r);e.finalize()}))}prepareModel(e,t){e.creator=e.creator||"ExcelJS";e.lastModifiedBy=e.lastModifiedBy||"ExcelJS";e.created=e.created||new Date;e.modified=e.modified||new Date;e.useSharedStrings=t.useSharedStrings!==undefined?t.useSharedStrings:true;e.useStyles=t.useStyles!==undefined?t.useStyles:true;e.sharedStrings=new b;e.styles=e.useStyles?new y(true):new y.Mock;const r=new S;const i=new k;r.prepare(e);const n={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};n.drawings=e.drawings=[];n.commentRefs=e.commentRefs=[];let s=0;e.tables=[];e.worksheets.forEach((t=>{t.tables.forEach((t=>{s++;t.target=`table${s}.xml`;t.id=s;e.tables.push(t)}));i.prepare(t,n)}))}async write(e,t){t=t||{};const{model:r}=this.workbook;const i=new o.ZipWriter(t.zip);i.pipe(e);this.prepareModel(r,t);await this.addContentTypes(i,r);await this.addOfficeRels(i,r);await this.addWorkbookRels(i,r);await this.addWorksheets(i,r);await this.addSharedStrings(i,r);await this.addDrawings(i,r);await this.addTables(i,r);await Promise.all([this.addThemes(i,r),this.addStyles(i,r)]);await this.addMedia(i,r);await Promise.all([this.addApp(i,r),this.addCore(i,r)]);await this.addWorkbook(i,r);return this._finalize(i)}writeFile(e,t){const r=i.createWriteStream(e);return new Promise(((e,i)=>{r.on("finish",(()=>{e()}));r.on("error",(e=>{i(e)}));this.write(r,t).then((()=>{r.end()})).catch((e=>{i(e)}))}))}async writeBuffer(e){const t=new c;await this.write(t,e);return t.read()}}XLSX.RelType=r(8496);e.exports=XLSX},2260:function(e){e.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},1067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CsvParserStream=t.ParserOptions=t.parseFile=t.parseStream=t.parseString=t.parse=t.FormatterOptions=t.CsvFormatterStream=t.writeToPath=t.writeToString=t.writeToBuffer=t.writeToStream=t.write=t.format=void 0;var i=r(3306);Object.defineProperty(t,"format",{enumerable:true,get:function(){return i.format}});Object.defineProperty(t,"write",{enumerable:true,get:function(){return i.write}});Object.defineProperty(t,"writeToStream",{enumerable:true,get:function(){return i.writeToStream}});Object.defineProperty(t,"writeToBuffer",{enumerable:true,get:function(){return i.writeToBuffer}});Object.defineProperty(t,"writeToString",{enumerable:true,get:function(){return i.writeToString}});Object.defineProperty(t,"writeToPath",{enumerable:true,get:function(){return i.writeToPath}});Object.defineProperty(t,"CsvFormatterStream",{enumerable:true,get:function(){return i.CsvFormatterStream}});Object.defineProperty(t,"FormatterOptions",{enumerable:true,get:function(){return i.FormatterOptions}});var n=r(727);Object.defineProperty(t,"parse",{enumerable:true,get:function(){return n.parse}});Object.defineProperty(t,"parseString",{enumerable:true,get:function(){return n.parseString}});Object.defineProperty(t,"parseStream",{enumerable:true,get:function(){return n.parseStream}});Object.defineProperty(t,"parseFile",{enumerable:true,get:function(){return n.parseFile}});Object.defineProperty(t,"ParserOptions",{enumerable:true,get:function(){return n.ParserOptions}});Object.defineProperty(t,"CsvParserStream",{enumerable:true,get:function(){return n.CsvParserStream}})},9033:function(e,t,r){e.exports=r(9896).constants||r(9140)},1931:function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(9896);var n=i.realpath;var s=i.realpathSync;var o=process.version;var c=/^v[0-5]\./.test(o);var h=r(5022);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(c){return n(e,t,r)}if(typeof t==="function"){r=t;t=null}n(e,t,(function(i,n){if(newError(i)){h.realpath(e,t,r)}else{r(i,n)}}))}function realpathSync(e,t){if(c){return s(e,t)}try{return s(e,t)}catch(r){if(newError(r)){return h.realpathSync(e,t)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=s}},5022:function(e,t,r){var i=r(6928);var n=process.platform==="win32";var s=r(9896);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var c=i.normalize;if(n){var h=/(.*?)(?:[\/\\]+|$)/g}else{var h=/(.*?)(?:[\/]+|$)/g}if(n){var p=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var p=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,o={},c={};var g;var y;var v;var b;start();function start(){var t=p.exec(e);g=t[0].length;y=t[0];v=t[0];b="";if(n&&!c[v]){s.lstatSync(v);c[v]=true}}while(g<e.length){h.lastIndex=g;var _=h.exec(e);b=y;y+=_[0];v=b+_[1];g=h.lastIndex;if(c[v]||t&&t[v]===v){continue}var w;if(t&&Object.prototype.hasOwnProperty.call(t,v)){w=t[v]}else{var x=s.lstatSync(v);if(!x.isSymbolicLink()){c[v]=true;if(t)t[v]=v;continue}var S=null;if(!n){var k=x.dev.toString(32)+":"+x.ino.toString(32);if(o.hasOwnProperty(k)){S=o[k]}}if(S===null){s.statSync(v);S=s.readlinkSync(v)}w=i.resolve(b,S);if(t)t[v]=w;if(!n)o[k]=S}e=i.resolve(w,e.slice(g));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var o=e,c={},g={};var y;var v;var b;var _;start();function start(){var t=p.exec(e);y=t[0].length;v=t[0];b=t[0];_="";if(n&&!g[b]){s.lstat(b,(function(e){if(e)return r(e);g[b]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(y>=e.length){if(t)t[o]=e;return r(null,e)}h.lastIndex=y;var i=h.exec(e);_=v;v+=i[0];b=_+i[1];y=h.lastIndex;if(g[b]||t&&t[b]===b){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,b)){return gotResolvedLink(t[b])}return s.lstat(b,gotStat)}function gotStat(e,i){if(e)return r(e);if(!i.isSymbolicLink()){g[b]=true;if(t)t[b]=b;return process.nextTick(LOOP)}if(!n){var o=i.dev.toString(32)+":"+i.ino.toString(32);if(c.hasOwnProperty(o)){return gotTarget(null,c[o],b)}}s.stat(b,(function(e){if(e)return r(e);s.readlink(b,(function(e,t){if(!n)c[o]=t;gotTarget(e,t)}))}))}function gotTarget(e,n,s){if(e)return r(e);var o=i.resolve(_,n);if(t)t[s]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=i.resolve(t,e.slice(y));start()}}},1893:function(e,t,r){var i;r(6276);r(3485);t.Writer=r(1033);t.ZH={Reader:r(9538),Writer:r(1522)};t.ig={Reader:r(5655),Writer:r(3303)};t.N_={Reader:r(9664),Writer:r(8748)};t.by={Reader:r(3370),Writer:r(3626)};i=i=t.ig.Reader;i=i=t.ZH.Reader;i=i=t.N_.Reader;i=i=t.by.Reader;t.Writer.Dir=i=t.ig.Writer;t.Writer.File=i=t.ZH.Writer;t.Writer.Link=i=t.N_.Writer;t.Writer.Proxy=i=t.by.Writer;r(2822)},6276:function(e,t,r){e.exports=Abstract;var i=r(2203).Stream;var n=r(4070);function Abstract(){i.call(this)}n(Abstract,i);Abstract.prototype.on=function(e,t){if(e==="ready"&&this.ready){process.nextTick(t.bind(this))}else{i.prototype.on.call(this,e,t)}return this};Abstract.prototype.abort=function(){this._aborted=true;this.emit("abort")};Abstract.prototype.destroy=function(){};Abstract.prototype.warn=function(e,t){var r=this;var i=decorate(e,t,r);if(!r.listeners("warn")){console.error("%s %s\n"+"path = %s\n"+"syscall = %s\n"+"fstream_type = %s\n"+"fstream_path = %s\n"+"fstream_unc_path = %s\n"+"fstream_class = %s\n"+"fstream_stack =\n%s\n",t||"UNKNOWN",i.stack,i.path,i.syscall,i.fstream_type,i.fstream_path,i.fstream_unc_path,i.fstream_class,i.fstream_stack.join("\n"))}else{r.emit("warn",i)}};Abstract.prototype.info=function(e,t){this.emit("info",e,t)};Abstract.prototype.error=function(e,t,r){var i=decorate(e,t,this);if(r)throw i;else this.emit("error",i)};function decorate(e,t,r){if(!(e instanceof Error))e=new Error(e);e.code=e.code||t;e.path=e.path||r.path;e.fstream_type=e.fstream_type||r.type;e.fstream_path=e.fstream_path||r.path;if(r._path!==r.path){e.fstream_unc_path=e.fstream_unc_path||r._path}if(r.linkpath){e.fstream_linkpath=e.fstream_linkpath||r.linkpath}e.fstream_class=e.fstream_class||r.constructor.name;e.fstream_stack=e.fstream_stack||(new Error).stack.split(/\n/).slice(3).map((function(e){return e.replace(/^ {4}at /,"")}));return e}},2822:function(e){e.exports=collect;function collect(e){if(e._collected)return;if(e._paused)return e.on("resume",collect.bind(null,e));e._collected=true;e.pause();e.on("data",save);e.on("end",save);var t=[];function save(e){if(typeof e==="string")e=new Buffer(e);if(Buffer.isBuffer(e)&&!e.length)return;t.push(e)}e.on("entry",saveEntry);var r=[];function saveEntry(e){collect(e);r.push(e)}e.on("proxy",proxyPause);function proxyPause(e){e.pause()}e.pipe=function(i){return function(n){var s=0;(function unblockEntry(){var t=r[s++];if(!t)return resume();t.on("end",unblockEntry);if(n)n.add(t);else e.emit("entry",t)})();function resume(){e.removeListener("entry",saveEntry);e.removeListener("data",save);e.removeListener("end",save);e.pipe=i;if(n)e.pipe(n);t.forEach((function(t){if(t)e.emit("data",t);else e.emit("end")}));e.resume()}return n}}(e.pipe)}},5655:function(e,t,r){e.exports=DirReader;var i=r(7551);var n=r(4070);var s=r(6928);var o=r(3485);var c=r(2613).ok;n(DirReader,o);function DirReader(e){var t=this;if(!(t instanceof DirReader)){throw new Error("DirReader must be called as constructor.")}if(e.type!=="Directory"||!e.Directory){throw new Error("Non-directory type "+e.type)}t.entries=null;t._index=-1;t._paused=false;t._length=-1;if(e.sort){this.sort=e.sort}o.call(this,e)}DirReader.prototype._getEntries=function(){var e=this;if(e._gotEntries)return;e._gotEntries=true;i.readdir(e._path,(function(t,r){if(t)return e.error(t);e.entries=r;e.emit("entries",r);if(e._paused)e.once("resume",processEntries);else processEntries();function processEntries(){e._length=e.entries.length;if(typeof e.sort==="function"){e.entries=e.entries.sort(e.sort.bind(e))}e._read()}}))};DirReader.prototype._read=function(){var e=this;if(!e.entries)return e._getEntries();if(e._paused||e._currentEntry||e._aborted){return}e._index++;if(e._index>=e.entries.length){if(!e._ended){e._ended=true;e.emit("end");e.emit("close")}return}var t=s.resolve(e._path,e.entries[e._index]);c(t!==e._path);c(e.entries[e._index]);e._currentEntry=t;i[e.props.follow?"stat":"lstat"](t,(function(r,i){if(r)return e.error(r);var n=e._proxy||e;i.path=t;i.basename=s.basename(t);i.dirname=s.dirname(t);var c=e.getChildProps.call(n,i);c.path=t;c.basename=s.basename(t);c.dirname=s.dirname(t);var h=o(c,i);e._currentEntry=h;h.on("pause",(function(t){if(!e._paused&&!h._disowned){e.pause(t)}}));h.on("resume",(function(t){if(e._paused&&!h._disowned){e.resume(t)}}));h.on("stat",(function(t){e.emit("_entryStat",h,t);if(h._aborted)return;if(h._paused){h.once("resume",(function(){e.emit("entryStat",h,t)}))}else e.emit("entryStat",h,t)}));h.on("ready",(function EMITCHILD(){if(e._paused){h.pause(e);return e.once("resume",EMITCHILD)}if(h.type==="Socket"){e.emit("socket",h)}else{e.emitEntry(h)}}));var p=false;h.on("close",onend);h.on("disown",onend);function onend(){if(p)return;p=true;e.emit("childEnd",h);e.emit("entryEnd",h);e._currentEntry=null;if(!e._paused){e._read()}}h.on("error",(function(t){if(h._swallowErrors){e.warn(t);h.emit("end");h.emit("close")}else{e.emit("error",t)}}));["child","childEnd","warn"].forEach((function(t){h.on(t,e.emit.bind(e,t))}))}))};DirReader.prototype.disown=function(e){e.emit("beforeDisown");e._disowned=true;e.parent=e.root=null;if(e===this._currentEntry){this._currentEntry=null}e.emit("disown")};DirReader.prototype.getChildProps=function(){return{depth:this.depth+1,root:this.root||this,parent:this,follow:this.follow,filter:this.filter,sort:this.props.sort,hardlinks:this.props.hardlinks}};DirReader.prototype.pause=function(e){var t=this;if(t._paused)return;e=e||t;t._paused=true;if(t._currentEntry&&t._currentEntry.pause){t._currentEntry.pause(e)}t.emit("pause",e)};DirReader.prototype.resume=function(e){var t=this;if(!t._paused)return;e=e||t;t._paused=false;t.emit("resume",e);if(t._paused){return}if(t._currentEntry){if(t._currentEntry.resume)t._currentEntry.resume(e)}else t._read()};DirReader.prototype.emitEntry=function(e){this.emit("entry",e);this.emit("child",e)}},3303:function(e,t,r){e.exports=DirWriter;var i=r(1033);var n=r(4070);var s=r(9403);var o=r(6928);var c=r(2822);n(DirWriter,i);function DirWriter(e){var t=this;if(!(t instanceof DirWriter)){t.error("DirWriter must be called as constructor.",null,true)}if(e.type!=="Directory"||!e.Directory){t.error("Non-directory type "+e.type+" "+JSON.stringify(e),null,true)}i.call(this,e)}DirWriter.prototype._create=function(){var e=this;s(e._path,i.dirmode,(function(t){if(t)return e.error(t);e.ready=true;e.emit("ready");e._process()}))};DirWriter.prototype.write=function(){return true};DirWriter.prototype.end=function(){this._ended=true;this._process()};DirWriter.prototype.add=function(e){var t=this;c(e);if(!t.ready||t._currentEntry){t._buffer.push(e);return false}if(t._ended){return t.error("add after end")}t._buffer.push(e);t._process();return this._buffer.length===0};DirWriter.prototype._process=function(){var e=this;if(e._processing)return;var t=e._buffer.shift();if(!t){e.emit("drain");if(e._ended)e._finish();return}e._processing=true;e.emit("entry",t);var r=t;var n;do{n=r._path||r.path;if(n===e.root._path||n===e._path||n&&n.indexOf(e._path)===0){e._processing=false;if(t._collected)t.pipe();return e._process()}r=r.parent}while(r);var s={parent:e,root:e.root||e,type:t.type,depth:e.depth+1};n=t._path||t.path||t.props.path;if(t.parent){n=n.substr(t.parent._path.length+1)}s.path=o.join(e.path,o.join("/",n));s.filter=e.filter;Object.keys(t.props).forEach((function(e){if(!s.hasOwnProperty(e)){s[e]=t.props[e]}}));var c=e._currentChild=new i(s);c.on("ready",(function(){t.pipe(c);t.resume()}));c.on("error",(function(t){if(c._swallowErrors){e.warn(t);c.emit("end");c.emit("close")}else{e.emit("error",t)}}));c.on("close",onend);var h=false;function onend(){if(h)return;h=true;e._currentChild=null;e._processing=false;e._process()}}},9538:function(e,t,r){e.exports=FileReader;var i=r(7551);var n=r(4070);var s=r(3485);var o={EOF:true};var c={CLOSE:true};n(FileReader,s);function FileReader(e){var t=this;if(!(t instanceof FileReader)){throw new Error("FileReader must be called as constructor.")}if(!(e.type==="Link"&&e.Link||e.type==="File"&&e.File)){throw new Error("Non-file type "+e.type)}t._buffer=[];t._bytesEmitted=0;s.call(t,e)}FileReader.prototype._getStream=function(){var e=this;var t=e._stream=i.createReadStream(e._path,e.props);if(e.props.blksize){t.bufferSize=e.props.blksize}t.on("open",e.emit.bind(e,"open"));t.on("data",(function(t){e._bytesEmitted+=t.length;if(!t.length){return}else if(e._paused||e._buffer.length){e._buffer.push(t);e._read()}else e.emit("data",t)}));t.on("end",(function(){if(e._paused||e._buffer.length){e._buffer.push(o);e._read()}else{e.emit("end")}if(e._bytesEmitted!==e.props.size){e.error("Didn't get expected byte count\n"+"expect: "+e.props.size+"\n"+"actual: "+e._bytesEmitted)}}));t.on("close",(function(){if(e._paused||e._buffer.length){e._buffer.push(c);e._read()}else{e.emit("close")}}));t.on("error",(function(t){e.emit("error",t)}));e._read()};FileReader.prototype._read=function(){var e=this;if(e._paused){return}if(!e._stream){return e._getStream()}if(e._buffer.length){var t=e._buffer;for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n===o){e.emit("end")}else if(n===c){e.emit("close")}else{e.emit("data",n)}if(e._paused){e._buffer=t.slice(r);return}}e._buffer.length=0}};FileReader.prototype.pause=function(e){var t=this;if(t._paused)return;e=e||t;t._paused=true;if(t._stream)t._stream.pause();t.emit("pause",e)};FileReader.prototype.resume=function(e){var t=this;if(!t._paused)return;e=e||t;t.emit("resume",e);t._paused=false;if(t._stream)t._stream.resume();t._read()}},1522:function(e,t,r){e.exports=FileWriter;var i=r(7551);var n=r(1033);var s=r(4070);var o={};s(FileWriter,n);function FileWriter(e){var t=this;if(!(t instanceof FileWriter)){throw new Error("FileWriter must be called as constructor.")}if(e.type!=="File"||!e.File){throw new Error("Non-file type "+e.type)}t._buffer=[];t._bytesWritten=0;n.call(this,e)}FileWriter.prototype._create=function(){var e=this;if(e._stream)return;var t={};if(e.props.flags)t.flags=e.props.flags;t.mode=n.filemode;if(e._old&&e._old.blksize)t.bufferSize=e._old.blksize;e._stream=i.createWriteStream(e._path,t);e._stream.on("open",(function(){e.ready=true;e._buffer.forEach((function(t){if(t===o)e._stream.end();else e._stream.write(t)}));e.emit("ready");e.emit("drain")}));e._stream.on("error",(function(t){e.emit("error",t)}));e._stream.on("drain",(function(){e.emit("drain")}));e._stream.on("close",(function(){e._finish()}))};FileWriter.prototype.write=function(e){var t=this;t._bytesWritten+=e.length;if(!t.ready){if(!Buffer.isBuffer(e)&&typeof e!=="string"){throw new Error("invalid write data")}t._buffer.push(e);return false}var r=t._stream.write(e);if(r===false&&t._stream._queue){return t._stream._queue.length<=2}else{return r}};FileWriter.prototype.end=function(e){var t=this;if(e)t.write(e);if(!t.ready){t._buffer.push(o);return false}return t._stream.end()};FileWriter.prototype._finish=function(){var e=this;if(typeof e.size==="number"&&e._bytesWritten!==e.size){e.error("Did not get expected byte count.\n"+"expect: "+e.size+"\n"+"actual: "+e._bytesWritten)}n.prototype._finish.call(e)}},1029:function(e){e.exports=getType;function getType(e){var t=["Directory","File","SymbolicLink","Link","BlockDevice","CharacterDevice","FIFO","Socket"];var r;if(e.type&&t.indexOf(e.type)!==-1){e[e.type]=true;return e.type}for(var i=0,n=t.length;i<n;i++){r=t[i];var s=e[r]||e["is"+r];if(typeof s==="function")s=s.call(e);if(s){e[r]=true;e.type=r;return r}}return null}},9664:function(e,t,r){e.exports=LinkReader;var i=r(7551);var n=r(4070);var s=r(3485);n(LinkReader,s);function LinkReader(e){var t=this;if(!(t instanceof LinkReader)){throw new Error("LinkReader must be called as constructor.")}if(!(e.type==="Link"&&e.Link||e.type==="SymbolicLink"&&e.SymbolicLink)){throw new Error("Non-link type "+e.type)}s.call(t,e)}LinkReader.prototype._stat=function(e){var t=this;i.readlink(t._path,(function(r,i){if(r)return t.error(r);t.linkpath=t.props.linkpath=i;t.emit("linkpath",i);s.prototype._stat.call(t,e)}))};LinkReader.prototype._read=function(){var e=this;if(e._paused)return;if(!e._ended){e.emit("end");e.emit("close");e._ended=true}}},8748:function(e,t,r){e.exports=LinkWriter;var i=r(7551);var n=r(1033);var s=r(4070);var o=r(6928);var c=r(8525);s(LinkWriter,n);function LinkWriter(e){var t=this;if(!(t instanceof LinkWriter)){throw new Error("LinkWriter must be called as constructor.")}if(!(e.type==="Link"&&e.Link||e.type==="SymbolicLink"&&e.SymbolicLink)){throw new Error("Non-link type "+e.type)}if(e.linkpath==="")e.linkpath=".";if(!e.linkpath){t.error("Need linkpath property to create "+e.type)}n.call(this,e)}LinkWriter.prototype._create=function(){var e=this;var t=e.type==="Link"||process.platform==="win32";var r=t?"link":"symlink";var n=t?o.resolve(e.dirname,e.linkpath):e.linkpath;if(t)return clobber(e,n,r);i.readlink(e._path,(function(t,i){if(i&&i===n)return finish(e);clobber(e,n,r)}))};function clobber(e,t,r){c(e._path,(function(i){if(i)return e.error(i);create(e,t,r)}))}function create(e,t,r){i[r](t,e._path,(function(t){if(t){if((t.code==="ENOENT"||t.code==="EACCES"||t.code==="EPERM")&&process.platform==="win32"){e.ready=true;e.emit("ready");e.emit("end");e.emit("close");e.end=e._finish=function(){}}else return e.error(t)}finish(e)}))}function finish(e){e.ready=true;e.emit("ready");if(e._ended&&!e._finished)e._finish()}LinkWriter.prototype.end=function(){this._ended=true;if(this.ready){this._finished=true;this._finish()}}},3370:function(e,t,r){e.exports=ProxyReader;var i=r(3485);var n=r(1029);var s=r(4070);var o=r(7551);s(ProxyReader,i);function ProxyReader(e){var t=this;if(!(t instanceof ProxyReader)){throw new Error("ProxyReader must be called as constructor.")}t.props=e;t._buffer=[];t.ready=false;i.call(t,e)}ProxyReader.prototype._stat=function(){var e=this;var t=e.props;var r=t.follow?"stat":"lstat";o[r](t.path,(function(r,s){var o;if(r||!s){o="File"}else{o=n(s)}t[o]=true;t.type=e.type=o;e._old=s;e._addProxy(i(t,s))}))};ProxyReader.prototype._addProxy=function(e){var t=this;if(t._proxyTarget){return t.error("proxy already set")}t._proxyTarget=e;e._proxy=t;["error","data","end","close","linkpath","entry","entryEnd","child","childEnd","warn","stat"].forEach((function(r){e.on(r,t.emit.bind(t,r))}));t.emit("proxy",e);e.on("ready",(function(){t.ready=true;t.emit("ready")}));var r=t._buffer;t._buffer.length=0;r.forEach((function(t){e[t[0]].apply(e,t[1])}))};ProxyReader.prototype.pause=function(){return this._proxyTarget?this._proxyTarget.pause():false};ProxyReader.prototype.resume=function(){return this._proxyTarget?this._proxyTarget.resume():false}},3626:function(e,t,r){e.exports=ProxyWriter;var i=r(1033);var n=r(1029);var s=r(4070);var o=r(2822);var c=r(9896);s(ProxyWriter,i);function ProxyWriter(e){var t=this;if(!(t instanceof ProxyWriter)){throw new Error("ProxyWriter must be called as constructor.")}t.props=e;t._needDrain=false;i.call(t,e)}ProxyWriter.prototype._stat=function(){var e=this;var t=e.props;var r=t.follow?"stat":"lstat";c[r](t.path,(function(r,s){var o;if(r||!s){o="File"}else{o=n(s)}t[o]=true;t.type=e.type=o;e._old=s;e._addProxy(i(t,s))}))};ProxyWriter.prototype._addProxy=function(e){var t=this;if(t._proxy){return t.error("proxy already set")}t._proxy=e;["ready","error","close","pipe","drain","warn"].forEach((function(r){e.on(r,t.emit.bind(t,r))}));t.emit("proxy",e);var r=t._buffer;r.forEach((function(t){e[t[0]].apply(e,t[1])}));t._buffer.length=0;if(t._needsDrain)t.emit("drain")};ProxyWriter.prototype.add=function(e){o(e);if(!this._proxy){this._buffer.push(["add",[e]]);this._needDrain=true;return false}return this._proxy.add(e)};ProxyWriter.prototype.write=function(e){if(!this._proxy){this._buffer.push(["write",[e]]);this._needDrain=true;return false}return this._proxy.write(e)};ProxyWriter.prototype.end=function(e){if(!this._proxy){this._buffer.push(["end",[e]]);return false}return this._proxy.end(e)}},3485:function(e,t,r){e.exports=Reader;var i=r(7551);var n=r(2203).Stream;var s=r(4070);var o=r(6928);var c=r(1029);var h=Reader.hardLinks={};var p=r(6276);s(Reader,p);var g=r(9664);function Reader(e,t){var i=this;if(!(i instanceof Reader))return new Reader(e,t);if(typeof e==="string"){e={path:e}}var n;var s;if(e.type&&typeof e.type==="function"){n=e.type;s=n}else{n=c(e);s=Reader}if(t&&!n){n=c(t);e[n]=true;e.type=n}switch(n){case"Directory":s=r(5655);break;case"Link":case"File":s=r(9538);break;case"SymbolicLink":s=g;break;case"Socket":s=r(7999);break;case null:s=r(3370);break}if(!(i instanceof s)){return new s(e)}p.call(i);if(!e.path){i.error("Must provide a path",null,true)}i.readable=true;i.writable=false;i.type=n;i.props=e;i.depth=e.depth=e.depth||0;i.parent=e.parent||null;i.root=e.root||e.parent&&e.parent.root||i;i._path=i.path=o.resolve(e.path);if(process.platform==="win32"){i.path=i._path=i.path.replace(/\?/g,"_");if(i._path.length>=260){i._swallowErrors=true;i._path="\\\\?\\"+i.path.replace(/\//g,"\\")}}i.basename=e.basename=o.basename(i.path);i.dirname=e.dirname=o.dirname(i.path);e.parent=e.root=null;i.size=e.size;i.filter=typeof e.filter==="function"?e.filter:null;if(e.sort==="alpha")e.sort=alphasort;i._stat(t)}function alphasort(e,t){return e===t?0:e.toLowerCase()>t.toLowerCase()?1:e.toLowerCase()<t.toLowerCase()?-1:e>t?1:-1}Reader.prototype._stat=function(e){var t=this;var r=t.props;var n=r.follow?"stat":"lstat";if(e)process.nextTick(statCb.bind(null,null,e));else i[n](t._path,statCb);function statCb(e,i){if(e)return t.error(e);Object.keys(i).forEach((function(e){r[e]=i[e]}));if(undefined!==t.size&&r.size!==t.size){return t.error("incorrect size")}t.size=r.size;var n=c(r);var s=r.hardlinks!==false;if(s&&n!=="Directory"&&r.nlink&&r.nlink>1){var o=r.dev+":"+r.ino;if(h[o]===t._path||!h[o]){h[o]=t._path}else{n=t.type=t.props.type="Link";t.Link=t.props.Link=true;t.linkpath=t.props.linkpath=h[o];t._stat=t._read=g.prototype._read}}if(t.type&&t.type!==n){t.error("Unexpected type: "+n)}if(t.filter){var p=t._proxy||t;if(!t.filter.call(p,p,r)){if(!t._disowned){t.abort();t.emit("end");t.emit("close")}return}}var y=["_stat","stat","ready"];var v=0;(function go(){if(t._aborted){t.emit("end");t.emit("close");return}if(t._paused&&t.type!=="Directory"){t.once("resume",go);return}var e=y[v++];if(!e){return t._read()}t.emit(e,r);go()})()}};Reader.prototype.pipe=function(e){var t=this;if(typeof e.add==="function"){t.on("entry",(function(r){var i=e.add(r);if(i===false){t.pause()}}))}return n.prototype.pipe.apply(this,arguments)};Reader.prototype.pause=function(e){this._paused=true;e=e||this;this.emit("pause",e);if(this._stream)this._stream.pause(e)};Reader.prototype.resume=function(e){this._paused=false;e=e||this;this.emit("resume",e);if(this._stream)this._stream.resume(e);this._read()};Reader.prototype._read=function(){this.error("Cannot read unknown type: "+this.type)}},7999:function(e,t,r){e.exports=SocketReader;var i=r(4070);var n=r(3485);i(SocketReader,n);function SocketReader(e){var t=this;if(!(t instanceof SocketReader)){throw new Error("SocketReader must be called as constructor.")}if(!(e.type==="Socket"&&e.Socket)){throw new Error("Non-socket type "+e.type)}n.call(t,e)}SocketReader.prototype._read=function(){var e=this;if(e._paused)return;if(!e._ended){e.emit("end");e.emit("close");e._ended=true}}},1033:function(e,t,r){e.exports=Writer;var i=r(7551);var n=r(4070);var s=r(8525);var o=r(9403);var c=r(6928);var h=process.platform==="win32"?0:process.umask();var p=r(1029);var g=r(6276);n(Writer,g);Writer.dirmode=parseInt("0777",8)&~h;Writer.filemode=parseInt("0666",8)&~h;var y=r(3303);var v=r(8748);var b=r(1522);var _=r(3626);function Writer(e,t){var r=this;if(typeof e==="string"){e={path:e}}var i=p(e);var n=Writer;switch(i){case"Directory":n=y;break;case"File":n=b;break;case"Link":case"SymbolicLink":n=v;break;case null:default:n=_;break}if(!(r instanceof n))return new n(e);g.call(r);if(!e.path)r.error("Must provide a path",null,true);r.type=e.type;r.props=e;r.depth=e.depth||0;r.clobber=e.clobber===false?e.clobber:true;r.parent=e.parent||null;r.root=e.root||e.parent&&e.parent.root||r;r._path=r.path=c.resolve(e.path);if(process.platform==="win32"){r.path=r._path=r.path.replace(/\?/g,"_");if(r._path.length>=260){r._swallowErrors=true;r._path="\\\\?\\"+r.path.replace(/\//g,"\\")}}r.basename=c.basename(e.path);r.dirname=c.dirname(e.path);r.linkpath=e.linkpath||null;e.parent=e.root=null;r.size=e.size;if(typeof e.mode==="string"){e.mode=parseInt(e.mode,8)}r.readable=false;r.writable=true;r._buffer=[];r.ready=false;r.filter=typeof e.filter==="function"?e.filter:null;r._stat(t)}Writer.prototype._create=function(){var e=this;i[e.props.follow?"stat":"lstat"](e._path,(function(t){if(t){return e.warn("Cannot create "+e._path+"\n"+"Unsupported type: "+e.type,"ENOTSUP")}e._finish()}))};Writer.prototype._stat=function(e){var t=this;var r=t.props;var n=r.follow?"stat":"lstat";var o=t._proxy||t;if(e)statCb(null,e);else i[n](t._path,statCb);function statCb(e,r){if(t.filter&&!t.filter.call(o,o,r)){t._aborted=true;t.emit("end");t.emit("close");return}if(e||!r){return create(t)}t._old=r;var i=p(r);if(i!==t.type||t.type==="File"&&r.nlink>1){return s(t._path,(function(e){if(e)return t.error(e);t._old=null;create(t)}))}create(t)}};function create(e){o(c.dirname(e._path),Writer.dirmode,(function(t,r){if(t)return e.error(t);e._madeDir=r;return e._create()}))}function endChmod(e,t,r,n,s){var o=t.mode;var c=t.follow||e.type!=="SymbolicLink"?"chmod":"lchmod";if(!i[c])return s();if(typeof o!=="number")return s();var h=r.mode&parseInt("0777",8);o=o&parseInt("0777",8);if(o===h)return s();i[c](n,o,s)}function endChown(e,t,r,n,s){if(process.platform==="win32")return s();if(!process.getuid||process.getuid()!==0)return s();if(typeof t.uid!=="number"&&typeof t.gid!=="number")return s();if(r.uid===t.uid&&r.gid===t.gid)return s();var o=e.props.follow||e.type!=="SymbolicLink"?"chown":"lchown";if(!i[o])return s();if(typeof t.uid!=="number")t.uid=r.uid;if(typeof t.gid!=="number")t.gid=r.gid;i[o](n,t.uid,t.gid,s)}function endUtimes(e,t,r,n,s){if(!i.utimes||process.platform==="win32")return s();var o=t.follow||e.type!=="SymbolicLink"?"utimes":"lutimes";if(o==="lutimes"&&!i[o]){o="utimes"}if(!i[o])return s();var c=r.atime;var h=r.mtime;var p=t.atime;var g=t.mtime;if(p===undefined)p=c;if(g===undefined)g=h;if(!isDate(p))p=new Date(p);if(!isDate(g))p=new Date(g);if(p.getTime()===c.getTime()&&g.getTime()===h.getTime())return s();i[o](n,p,g,s)}Writer.prototype._finish=function(){var e=this;if(e._finishing)return;e._finishing=true;var t=0;var r=null;var n=false;if(e._old){e._old.atime=new Date(0);e._old.mtime=new Date(0);setProps(e._old)}else{var s=e.props.follow?"stat":"lstat";i[s](e._path,(function(t,r){if(t){if(t.code==="ENOENT"&&(e.type==="Link"||e.type==="SymbolicLink")&&process.platform==="win32"){e.ready=true;e.emit("ready");e.emit("end");e.emit("close");e.end=e._finish=function(){};return}else return e.error(t)}setProps(e._old=r)}))}return;function setProps(r){t+=3;endChmod(e,e.props,r,e._path,next("chmod"));endChown(e,e.props,r,e._path,next("chown"));endUtimes(e,e.props,r,e._path,next("utimes"))}function next(i){return function(s){if(r)return;if(s){s.fstream_finish_call=i;return e.error(r=s)}if(--t>0)return;if(n)return;n=true;if(!e._madeDir)return end();else endMadeDir(e,e._path,end);function end(t){if(t){t.fstream_finish_call="setupMadeDir";return e.error(t)}e.emit("end");e.emit("close")}}}};function endMadeDir(e,t,r){var i=e._madeDir;var n=c.dirname(t);endMadeDir_(e,n,(function(t){if(t)return r(t);if(n===i){return r()}endMadeDir(e,n,r)}))}function endMadeDir_(e,t,r){var n={};Object.keys(e.props).forEach((function(t){n[t]=e.props[t];if(t==="mode"&&e.type!=="Directory"){n[t]=n[t]|parseInt("0111",8)}}));var s=3;var o=null;i.stat(t,(function(i,s){if(i)return r(o=i);endChmod(e,n,s,t,next);endChown(e,n,s,t,next);endUtimes(e,n,s,t,next)}));function next(e){if(o)return;if(e)return r(o=e);if(--s===0)return r()}}Writer.prototype.pipe=function(){this.error("Can't pipe from writable stream")};Writer.prototype.add=function(){this.error("Can't add to non-Directory type")};Writer.prototype.write=function(){return true};function objectToString(e){return Object.prototype.toString.call(e)}function isDate(e){return typeof e==="object"&&objectToString(e)==="[object Date]"}},8959:function(e,t,r){t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=r(9896);var n=r(6928);var s=r(6274);var o=r(2106);var c=s.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new c(r,{dot:true})}return{matcher:new c(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||i;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))e.cwd=s;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==s}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=o(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=false;e.minimatch=new c(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var i=0,n=e.matches.length;i<n;i++){var s=e.matches[i];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[i];if(t)r.push(o);else r[o]=true}}else{var c=Object.keys(s);if(t)r.push.apply(r,c);else c.forEach((function(e){r[e]=true}))}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(alphasort);if(e.mark){for(var i=0;i<r.length;i++){r[i]=e._mark(r[i])}if(e.nodir){r=r.filter((function(t){var r=!/\/$/.test(t);var i=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(e.ignore.length)r=r.filter((function(t){return!isIgnored(e,t)}));e.found=r}function mark(e,t){var r=makeAbs(e,t);var i=e.cache[r];var n=t;if(i){var s=i==="DIR"||Array.isArray(i);var o=t.slice(-1)==="/";if(s&&!o)n+="/";else if(!s&&o)n=n.slice(0,-1);if(n!==t){var c=makeAbs(e,n);e.statCache[c]=e.statCache[r];e.cache[c]=e.cache[r]}}return n}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=n.join(e.root,t)}else if(o(t)||t===""){r=t}else if(e.changedCwd){r=n.resolve(e.cwd,t)}else{r=n.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}))}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}))}},4908:function(e,t,r){e.exports=glob;var i=r(1931);var n=r(6274);var s=n.Minimatch;var o=r(4070);var c=r(4434).EventEmitter;var h=r(6928);var p=r(2613);var g=r(2106);var y=r(9521);var v=r(8959);var b=v.setopts;var _=v.ownProp;var w=r(5678);var x=r(9023);var S=v.childrenIgnored;var k=v.isIgnored;var C=r(8068);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return y(e,t)}return new Glob(e,t,r)}glob.sync=y;var E=glob.GlobSync=y.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var i=r.length;while(i--){e[r[i]]=t[r[i]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var i=new Glob(e,r);var n=i.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var s=0;s<n[0].length;s++){if(typeof n[0][s]!=="string")return true}return false};glob.Glob=Glob;o(Glob,c);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);b(this,e,t);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=C(r);this.on("error",r);this.on("end",(function(e){r(null,e)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var s=true;for(var o=0;o<i;o++){this._process(this.minimatch.set[o],o,false,done)}s=false;function done(){--n._processing;if(n._processing<=0){if(s){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){p(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();v.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r);var s=this;var o=n.length;if(o===0)return t();var c=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=s._makeAbs(r);i.realpath(r,s.realpathCache,(function(i,n){if(!i)c[n]=true;else if(i.syscall==="stat")c[r]=true;else s.emit("error",i);if(--o===0){s.matches[e]=c;t()}}))}))};Glob.prototype._mark=function(e){return v.mark(this,e)};Glob.prototype._makeAbs=function(e){return v.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<i.length;t++){var n=i[t];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(e,t,r,i){p(this instanceof Glob);p(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,i]);return}var s=0;while(typeof e[s]==="string"){s++}var o;switch(s){case e.length:this._processSimple(e.join("/"),t,i);return;case 0:o=null;break;default:o=e.slice(0,s).join("/");break}var c=e.slice(s);var h;if(o===null)h=".";else if(g(o)||g(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!o||!g(o))o="/"+o;h=o}else h=o;var y=this._makeAbs(h);if(S(this,h))return i();var v=c[0]===n.GLOBSTAR;if(v)this._processGlobStar(o,h,y,c,t,r,i);else this._processReaddir(o,h,y,c,t,r,i)};Glob.prototype._processReaddir=function(e,t,r,i,n,s,o){var c=this;this._readdir(r,s,(function(h,p){return c._processReaddir2(e,t,r,i,n,s,p,o)}))};Glob.prototype._processReaddir2=function(e,t,r,i,n,s,o,c){if(!o)return c();var p=i[0];var g=!!this.minimatch.negate;var y=p._glob;var v=this.dot||y.charAt(0)===".";var b=[];for(var _=0;_<o.length;_++){var w=o[_];if(w.charAt(0)!=="."||v){var x;if(g&&!e){x=!w.match(p)}else{x=w.match(p)}if(x)b.push(w)}}var S=b.length;if(S===0)return c();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var _=0;_<S;_++){var w=b[_];if(e){if(e!=="/")w=e+"/"+w;else w=e+w}if(w.charAt(0)==="/"&&!this.nomount){w=h.join(this.root,w)}this._emitMatch(n,w)}return c()}i.shift();for(var _=0;_<S;_++){var w=b[_];var k;if(e){if(e!=="/")w=e+"/"+w;else w=e+w}this._process([w].concat(i),n,s,c)}c()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(k(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=g(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;var n=this.statCache[r];if(n)this.emit("stat",t,n);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var i=this;var n=w(r,lstatcb_);if(n)i.fs.lstat(e,n);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return t();var s=n&&n.isSymbolicLink();i.symlinks[e]=s;if(!s&&n&&!n.isDirectory()){i.cache[e]="FILE";t()}else i._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=w("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!_(this.symlinks,e))return this._readdirInGlobStar(e,r);if(_(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(i,n){if(i)e._readdirError(t,i,r);else e._readdirEntries(t,n,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<t.length;i++){var n=t[i];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(e);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,i,n,s,o){var c=this;this._readdir(r,s,(function(h,p){c._processGlobStar2(e,t,r,i,n,s,p,o)}))};Glob.prototype._processGlobStar2=function(e,t,r,i,n,s,o,c){if(!o)return c();var h=i.slice(1);var p=e?[e]:[];var g=p.concat(h);this._process(g,n,false,c);var y=this.symlinks[r];var v=o.length;if(y&&s)return c();for(var b=0;b<v;b++){var _=o[b];if(_.charAt(0)==="."&&!this.dot)continue;var w=p.concat(o[b],h);this._process(w,n,true,c);var x=p.concat(o[b],i);this._process(x,n,true,c)}c()};Glob.prototype._processSimple=function(e,t,r){var i=this;this._stat(e,(function(n,s){i._processSimple2(e,t,n,s,r)}))};Glob.prototype._processSimple2=function(e,t,r,i,n){if(!this.matches[t])this.matches[t]=Object.create(null);if(!i)return n();if(e&&g(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=h.join(this.root,e)}else{e=h.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);n()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var i=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&_(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return t(null,n);if(i&&n==="FILE")return t()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return t(null,o);else{var c=o.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return t();else return t(null,c,o)}}var h=this;var p=w("stat\0"+r,lstatcb_);if(p)h.fs.lstat(r,p);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return h.fs.stat(r,(function(i,s){if(i)h._stat2(e,r,null,n,t);else h._stat2(e,r,i,s,t)}))}else{h._stat2(e,r,i,n,t)}}};Glob.prototype._stat2=function(e,t,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return n()}var s=e.slice(-1)==="/";this.statCache[t]=i;if(t.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var o=true;if(i)o=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(s&&o==="FILE")return n();return n(null,o,i)}},9521:function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var i=r(1931);var n=r(6274);var s=n.Minimatch;var o=r(4908).Glob;var c=r(9023);var h=r(6928);var p=r(2613);var g=r(2106);var y=r(8959);var v=y.setopts;var b=y.ownProp;var _=y.childrenIgnored;var w=y.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);v(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){p.ok(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach((function(t,r){var n=e.matches[r]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var o=i.realpathSync(s,e.realpathCache);n[o]=true}catch(t){if(t.syscall==="stat")n[e._makeAbs(s)]=true;else throw t}}}))}y.finish(this)};GlobSync.prototype._process=function(e,t,r){p.ok(this instanceof GlobSync);var i=0;while(typeof e[i]==="string"){i++}var s;switch(i){case e.length:this._processSimple(e.join("/"),t);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var o=e.slice(i);var c;if(s===null)c=".";else if(g(s)||g(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!s||!g(s))s="/"+s;c=s}else c=s;var h=this._makeAbs(c);if(_(this,c))return;var y=o[0]===n.GLOBSTAR;if(y)this._processGlobStar(s,c,h,o,t,r);else this._processReaddir(s,c,h,o,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,i,n,s){var o=this._readdir(r,s);if(!o)return;var c=i[0];var p=!!this.minimatch.negate;var g=c._glob;var y=this.dot||g.charAt(0)===".";var v=[];for(var b=0;b<o.length;b++){var _=o[b];if(_.charAt(0)!=="."||y){var w;if(p&&!e){w=!_.match(c)}else{w=_.match(c)}if(w)v.push(_)}}var x=v.length;if(x===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var b=0;b<x;b++){var _=v[b];if(e){if(e.slice(-1)!=="/")_=e+"/"+_;else _=e+_}if(_.charAt(0)==="/"&&!this.nomount){_=h.join(this.root,_)}this._emitMatch(n,_)}return}i.shift();for(var b=0;b<x;b++){var _=v[b];var S;if(e)S=[e,_];else S=[_];this._process(S.concat(i),n,s)}};GlobSync.prototype._emitMatch=function(e,t){if(w(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var i;try{r=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var n=r&&r.isSymbolicLink();this.symlinks[e]=n;if(!n&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!b(this.symlinks,e))return this._readdirInGlobStar(e);if(b(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var i=t[r];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,i,n,s){var o=this._readdir(r,s);if(!o)return;var c=i.slice(1);var h=e?[e]:[];var p=h.concat(c);this._process(p,n,false);var g=o.length;var y=this.symlinks[r];if(y&&s)return;for(var v=0;v<g;v++){var b=o[v];if(b.charAt(0)==="."&&!this.dot)continue;var _=h.concat(o[v],c);this._process(_,n,true);var w=h.concat(o[v],i);this._process(w,n,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&g(e)&&!this.nomount){var i=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=h.join(this.root,e)}else{e=h.resolve(this.root,e);if(i)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&b(this.cache,t)){var i=this.cache[t];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var s=this.statCache[t];if(!s){var o;try{o=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(o&&o.isSymbolicLink()){try{s=this.fs.statSync(t)}catch(e){s=o}}else{s=o}}this.statCache[t]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return y.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return y.makeAbs(this,e)}},1403:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7551:function(e,t,r){var i=r(9896);var n=r(4538);var s=r(2611);var o=r(1403);var c=r(9023);var h;var p;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){h=Symbol.for("graceful-fs.queue");p=Symbol.for("graceful-fs.previous")}else{h="___graceful-fs.queue";p="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,h,{get:function(){return t}})}var g=noop;if(c.debuglog)g=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))g=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!i[h]){var y=global[h]||[];publishQueue(i,y);i.close=function(e){function close(t,r){return e.call(i,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,p,{value:e});return close}(i.close);i.closeSync=function(e){function closeSync(t){e.apply(i,arguments);resetQueue()}Object.defineProperty(closeSync,p,{value:e});return closeSync}(i.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){g(i[h]);r(2613).equal(i[h].length,0)}))}}if(!global[h]){publishQueue(global,i[h])}e.exports=patch(o(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){e.exports=patch(i);i.__patched=true}function patch(e){n(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,i){if(typeof r==="function")i=r,r=null;return go$readFile(e,r,i);function go$readFile(e,r,i,n){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,i],t,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,i,n){if(typeof i==="function")n=i,i=null;return go$writeFile(e,t,i,n);function go$writeFile(e,t,i,n,s){return r(e,t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,i,n],r,s||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var i=e.appendFile;if(i)e.appendFile=appendFile;function appendFile(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$appendFile(e,t,r,n);function go$appendFile(e,t,r,n,s){return i(e,t,r,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,n],i,s||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,t,r,i){if(typeof r==="function"){i=r;r=0}return go$copyFile(e,t,r,i);function go$copyFile(e,t,r,i,n){return o(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,i],s,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var c=e.readdir;e.readdir=readdir;var h=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var i=h.test(process.version)?function go$readdir(e,t,r,i){return c(e,fs$readdirCallback(e,t,r,i))}:function go$readdir(e,t,r,i){return c(e,t,fs$readdirCallback(e,t,r,i))};return i(e,t,r);function fs$readdirCallback(e,t,r,n){return function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([i,[e,t,r],s,n||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof r==="function")r.call(this,s,o)}}}}if(process.version.substr(0,4)==="v0.8"){var p=s(e);ReadStream=p.ReadStream;WriteStream=p.WriteStream}var g=e.ReadStream;if(g){ReadStream.prototype=Object.create(g.prototype);ReadStream.prototype.open=ReadStream$open}var y=e.WriteStream;if(y){WriteStream.prototype=Object.create(y.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var v=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:true,configurable:true});var b=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return b},set:function(e){b=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return g.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return y.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var _=e.open;e.open=open;function open(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$open(e,t,r,i);function go$open(e,t,r,i,n){return _(e,t,r,(function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,t,r,i],s,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}return e}function enqueue(e){g("ENQUEUE",e[0].name,e[1]);i[h].push(e);retry()}var v;function resetQueue(){var e=Date.now();for(var t=0;t<i[h].length;++t){if(i[h][t].length>2){i[h][t][3]=e;i[h][t][4]=e}}retry()}function retry(){clearTimeout(v);v=undefined;if(i[h].length===0)return;var e=i[h].shift();var t=e[0];var r=e[1];var n=e[2];var s=e[3];var o=e[4];if(s===undefined){g("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-s>=6e4){g("TIMEOUT",t.name,r);var c=r.pop();if(typeof c==="function")c.call(null,n)}else{var p=Date.now()-o;var y=Math.max(o-s,1);var b=Math.min(y*1.2,100);if(p>=b){g("RETRY",t.name,r);t.apply(null,r.concat([s]))}else{i[h].push(e)}}if(v===undefined){v=setTimeout(retry,0)}}},2611:function(e,t,r){var i=r(2203).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);i.call(this);var n=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var o=0,c=s.length;o<c;o++){var h=s[o];this[h]=r[h]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){n._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){n.emit("error",e);n.readable=false;return}n.fd=t;n.emit("open",t);n._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);i.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var n=Object.keys(r);for(var s=0,o=n.length;s<o;s++){var c=n[s];this[c]=r[c]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},4538:function(e,t,r){var i=r(9140);var n=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=n.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var c=process.chdir;process.chdir=function(e){s=null;c.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,c)}e.exports=patch;function patch(e){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,i){if(i)process.nextTick(i)};e.lchownSync=function(){}}if(o==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,i,n){var s=Date.now();var o=0;t(r,i,(function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM"||c.code==="EBUSY")&&Date.now()-s<6e4){setTimeout((function(){e.stat(i,(function(e,s){if(e&&e.code==="ENOENT")t(r,i,CB);else n(c)}))}),o);if(o<100)o+=10;return}if(n)n(c)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,i,n,s,o,c){var h;if(c&&typeof c==="function"){var p=0;h=function(g,y,v){if(g&&g.code==="EAGAIN"&&p<10){p++;return t.call(e,r,i,n,s,o,h)}c.apply(this,arguments)}}return t.call(e,r,i,n,s,o,h)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,i,n,s,o){var c=0;while(true){try{return t.call(e,r,i,n,s,o)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,n){e.open(t,i.O_WRONLY|i.O_SYMLINK,r,(function(t,i){if(t){if(n)n(t);return}e.fchmod(i,r,(function(t){e.close(i,(function(e){if(n)n(t||e)}))}))}))};e.lchmodSync=function(t,r){var n=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,r);var s=true;var o;try{o=e.fchmodSync(n,r);s=false}finally{if(s){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return o}}function patchLutimes(e){if(i.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,n,s){e.open(t,i.O_SYMLINK,(function(t,i){if(t){if(s)s(t);return}e.futimes(i,r,n,(function(t){e.close(i,(function(e){if(s)s(t||e)}))}))}))};e.lutimesSync=function(t,r,n){var s=e.openSync(t,i.O_SYMLINK);var o;var c=true;try{o=e.futimesSync(s,r,n);c=false}finally{if(c){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else if(e.futimes){e.lutimes=function(e,t,r,i){if(i)process.nextTick(i)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,i,n){return t.call(e,r,i,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,i){try{return t.call(e,r,i)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,i,n,s){return t.call(e,r,i,n,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,i,n){try{return t.call(e,r,i,n)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,i,n){if(typeof i==="function"){n=i;i=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(n)n.apply(this,arguments)}return i?t.call(e,r,i,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,i){var n=i?t.call(e,r,i):t.call(e,r);if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}return n}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},209:function(e){"use strict";var t=global.MutationObserver||global.WebKitMutationObserver;var r;if(process.browser){if(t){var i=0;var n=new t(nextTick);var s=global.document.createTextNode("");n.observe(s,{characterData:true});r=function(){s.data=i=++i%2}}else if(!global.setImmediate&&typeof global.MessageChannel!=="undefined"){var o=new global.MessageChannel;o.port1.onmessage=nextTick;r=function(){o.port2.postMessage(0)}}else if("document"in global&&"onreadystatechange"in global.document.createElement("script")){r=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){nextTick();e.onreadystatechange=null;e.parentNode.removeChild(e);e=null};global.document.documentElement.appendChild(e)}}else{r=function(){setTimeout(nextTick,0)}}}else{r=function(){process.nextTick(nextTick)}}var c;var h=[];function nextTick(){c=true;var e,t;var r=h.length;while(r){t=h;h=[];e=-1;while(++e<r){t[e]()}r=h.length}c=false}e.exports=immediate;function immediate(e){if(h.push(e)===1&&!c){r()}}},5678:function(e,t,r){var i=r(8092);var n=Object.create(null);var s=r(8068);e.exports=i(inflight);function inflight(e,t){if(n[e]){n[e].push(t);return null}else{n[e]=[t];return makeres(e)}}function makeres(e){return s((function RES(){var t=n[e];var r=t.length;var i=slice(arguments);try{for(var s=0;s<r;s++){t[s].apply(null,i)}}finally{if(t.length>r){t.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[e]}}}))}function slice(e){var t=e.length;var r=[];for(var i=0;i<t;i++)r[i]=e[i];return r}},4070:function(e,t,r){try{var i=r(9023);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(6005)}},6005:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},4057:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},1530:function(e,t,r){"use strict";var i=r(6136);var n=r(9078);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){var t=[];var r,n,o,c,h,p,g;var y=0,v=e.length,b=v;var _=i.getTypeOf(e)!=="string";while(y<e.length){b=v-y;if(!_){r=e.charCodeAt(y++);n=y<v?e.charCodeAt(y++):0;o=y<v?e.charCodeAt(y++):0}else{r=e[y++];n=y<v?e[y++]:0;o=y<v?e[y++]:0}c=r>>2;h=(r&3)<<4|n>>4;p=b>1?(n&15)<<2|o>>6:64;g=b>2?o&63:64;t.push(s.charAt(c)+s.charAt(h)+s.charAt(p)+s.charAt(g))}return t.join("")};t.decode=function(e){var t,r,i;var o,c,h,p;var g=0,y=0;var v="data:";if(e.substr(0,v.length)===v){throw new Error("Invalid base64 input, it looks like a data url.")}e=e.replace(/[^A-Za-z0-9+/=]/g,"");var b=e.length*3/4;if(e.charAt(e.length-1)===s.charAt(64)){b--}if(e.charAt(e.length-2)===s.charAt(64)){b--}if(b%1!==0){throw new Error("Invalid base64 input, bad content length.")}var _;if(n.uint8array){_=new Uint8Array(b|0)}else{_=new Array(b|0)}while(g<e.length){o=s.indexOf(e.charAt(g++));c=s.indexOf(e.charAt(g++));h=s.indexOf(e.charAt(g++));p=s.indexOf(e.charAt(g++));t=o<<2|c>>4;r=(c&15)<<4|h>>2;i=(h&3)<<6|p;_[y++]=t;if(h!==64){_[y++]=r}if(p!==64){_[y++]=i}}return _}},5651:function(e,t,r){"use strict";var i=r(9070);var n=r(3922);var s=r(5075);var o=r(7412);function CompressedObject(e,t,r,i,n){this.compressedSize=e;this.uncompressedSize=t;this.crc32=r;this.compression=i;this.compressedContent=n}CompressedObject.prototype={getContentWorker:function(){var e=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length"));var t=this;e.on("end",(function(){if(this.streamInfo["data_length"]!==t.uncompressedSize){throw new Error("Bug : uncompressed data size mismatch")}}));return e},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};CompressedObject.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new o("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",t)};e.exports=CompressedObject},8890:function(e,t,r){"use strict";var i=r(8181);t.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}};t.DEFLATE=r(1883)},6486:function(e,t,r){"use strict";var i=r(6136);function makeTable(){var e,t=[];for(var r=0;r<256;r++){e=r;for(var i=0;i<8;i++){e=e&1?3988292384^e>>>1:e>>>1}t[r]=e}return t}var n=makeTable();function crc32(e,t,r,i){var s=n,o=i+r;e=e^-1;for(var c=i;c<o;c++){e=e>>>8^s[(e^t[c])&255]}return e^-1}function crc32str(e,t,r,i){var s=n,o=i+r;e=e^-1;for(var c=i;c<o;c++){e=e>>>8^s[(e^t.charCodeAt(c))&255]}return e^-1}e.exports=function crc32wrapper(e,t){if(typeof e==="undefined"||!e.length){return 0}var r=i.getTypeOf(e)!=="string";if(r){return crc32(t|0,e,e.length,0)}else{return crc32str(t|0,e,e.length,0)}}},7415:function(e,t){"use strict";t.base64=false;t.binary=false;t.dir=false;t.createFolders=true;t.date=null;t.compression=null;t.compressionOptions=null;t.comment=null;t.unixPermissions=null;t.dosPermissions=null},9070:function(e,t,r){"use strict";var i=null;if(typeof Promise!=="undefined"){i=Promise}else{i=r(6022)}e.exports={Promise:i}},1883:function(e,t,r){"use strict";var i=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Uint32Array!=="undefined";var n=r(2719);var s=r(6136);var o=r(8181);var c=i?"uint8array":"array";t.magic="\b\0";function FlateWorker(e,t){o.call(this,"FlateWorker/"+e);this._pako=null;this._pakoAction=e;this._pakoOptions=t;this.meta={}}s.inherits(FlateWorker,o);FlateWorker.prototype.processChunk=function(e){this.meta=e.meta;if(this._pako===null){this._createPako()}this._pako.push(s.transformTo(c,e.data),false)};FlateWorker.prototype.flush=function(){o.prototype.flush.call(this);if(this._pako===null){this._createPako()}this._pako.push([],true)};FlateWorker.prototype.cleanUp=function(){o.prototype.cleanUp.call(this);this._pako=null};FlateWorker.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:true,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};t.compressWorker=function(e){return new FlateWorker("Deflate",e)};t.uncompressWorker=function(){return new FlateWorker("Inflate",{})}},3670:function(e,t,r){"use strict";var i=r(6136);var n=r(8181);var s=r(3442);var o=r(6486);var c=r(4771);var decToHex=function(e,t){var r="",i;for(i=0;i<t;i++){r+=String.fromCharCode(e&255);e=e>>>8}return r};var generateUnixExternalFileAttr=function(e,t){var r=e;if(!e){r=t?16893:33204}return(r&65535)<<16};var generateDosExternalFileAttr=function(e){return(e||0)&63};var generateZipParts=function(e,t,r,n,h,p){var g=e["file"],y=e["compression"],v=p!==s.utf8encode,b=i.transformTo("string",p(g.name)),_=i.transformTo("string",s.utf8encode(g.name)),w=g.comment,x=i.transformTo("string",p(w)),S=i.transformTo("string",s.utf8encode(w)),k=_.length!==g.name.length,C=S.length!==w.length,E,R,O="",A="",I="",P=g.dir,N=g.date;var F={crc32:0,compressedSize:0,uncompressedSize:0};if(!t||r){F.crc32=e["crc32"];F.compressedSize=e["compressedSize"];F.uncompressedSize=e["uncompressedSize"]}var D=0;if(t){D|=8}if(!v&&(k||C)){D|=2048}var L=0;var B=0;if(P){L|=16}if(h==="UNIX"){B=798;L|=generateUnixExternalFileAttr(g.unixPermissions,P)}else{B=20;L|=generateDosExternalFileAttr(g.dosPermissions,P)}E=N.getUTCHours();E=E<<6;E=E|N.getUTCMinutes();E=E<<5;E=E|N.getUTCSeconds()/2;R=N.getUTCFullYear()-1980;R=R<<4;R=R|N.getUTCMonth()+1;R=R<<5;R=R|N.getUTCDate();if(k){A=decToHex(1,1)+decToHex(o(b),4)+_;O+="up"+decToHex(A.length,2)+A}if(C){I=decToHex(1,1)+decToHex(o(x),4)+S;O+="uc"+decToHex(I.length,2)+I}var M="";M+="\n\0";M+=decToHex(D,2);M+=y.magic;M+=decToHex(E,2);M+=decToHex(R,2);M+=decToHex(F.crc32,4);M+=decToHex(F.compressedSize,4);M+=decToHex(F.uncompressedSize,4);M+=decToHex(b.length,2);M+=decToHex(O.length,2);var j=c.LOCAL_FILE_HEADER+M+b+O;var z=c.CENTRAL_FILE_HEADER+decToHex(B,2)+M+decToHex(x.length,2)+"\0\0"+"\0\0"+decToHex(L,4)+decToHex(n,4)+b+O+x;return{fileRecord:j,dirRecord:z}};var generateCentralDirectoryEnd=function(e,t,r,n,s){var o="";var h=i.transformTo("string",s(n));o=c.CENTRAL_DIRECTORY_END+"\0\0"+"\0\0"+decToHex(e,2)+decToHex(e,2)+decToHex(t,4)+decToHex(r,4)+decToHex(h.length,2)+h;return o};var generateDataDescriptors=function(e){var t="";t=c.DATA_DESCRIPTOR+decToHex(e["crc32"],4)+decToHex(e["compressedSize"],4)+decToHex(e["uncompressedSize"],4);return t};function ZipFileWorker(e,t,r,i){n.call(this,"ZipFileWorker");this.bytesWritten=0;this.zipComment=t;this.zipPlatform=r;this.encodeFileName=i;this.streamFiles=e;this.accumulate=false;this.contentBuffer=[];this.dirRecords=[];this.currentSourceOffset=0;this.entriesCount=0;this.currentFile=null;this._sources=[]}i.inherits(ZipFileWorker,n);ZipFileWorker.prototype.push=function(e){var t=e.meta.percent||0;var r=this.entriesCount;var i=this._sources.length;if(this.accumulate){this.contentBuffer.push(e)}else{this.bytesWritten+=e.data.length;n.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}})}};ZipFileWorker.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten;this.currentFile=e["file"].name;var t=this.streamFiles&&!e["file"].dir;if(t){var r=generateZipParts(e,t,false,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else{this.accumulate=true}};ZipFileWorker.prototype.closedSource=function(e){this.accumulate=false;var t=this.streamFiles&&!e["file"].dir;var r=generateZipParts(e,t,true,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.dirRecords.push(r.dirRecord);if(t){this.push({data:generateDataDescriptors(e),meta:{percent:100}})}else{this.push({data:r.fileRecord,meta:{percent:0}});while(this.contentBuffer.length){this.push(this.contentBuffer.shift())}}this.currentFile=null};ZipFileWorker.prototype.flush=function(){var e=this.bytesWritten;for(var t=0;t<this.dirRecords.length;t++){this.push({data:this.dirRecords[t],meta:{percent:100}})}var r=this.bytesWritten-e;var i=generateCentralDirectoryEnd(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};ZipFileWorker.prototype.prepareNextSource=function(){this.previous=this._sources.shift();this.openedSource(this.previous.streamInfo);if(this.isPaused){this.previous.pause()}else{this.previous.resume()}};ZipFileWorker.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;e.on("data",(function(e){t.processChunk(e)}));e.on("end",(function(){t.closedSource(t.previous.streamInfo);if(t._sources.length){t.prepareNextSource()}else{t.end()}}));e.on("error",(function(e){t.error(e)}));return this};ZipFileWorker.prototype.resume=function(){if(!n.prototype.resume.call(this)){return false}if(!this.previous&&this._sources.length){this.prepareNextSource();return true}if(!this.previous&&!this._sources.length&&!this.generatedError){this.end();return true}};ZipFileWorker.prototype.error=function(e){var t=this._sources;if(!n.prototype.error.call(this,e)){return false}for(var r=0;r<t.length;r++){try{t[r].error(e)}catch(e){}}return true};ZipFileWorker.prototype.lock=function(){n.prototype.lock.call(this);var e=this._sources;for(var t=0;t<e.length;t++){e[t].lock()}};e.exports=ZipFileWorker},6737:function(e,t,r){"use strict";var i=r(8890);var n=r(3670);var getCompression=function(e,t){var r=e||t;var n=i[r];if(!n){throw new Error(r+" is not a valid compression method !")}return n};t.generateWorker=function(e,t,r){var i=new n(t.streamFiles,r,t.platform,t.encodeFileName);var s=0;try{e.forEach((function(e,r){s++;var n=getCompression(r.options.compression,t.compression);var o=r.options.compressionOptions||t.compressionOptions||{};var c=r.dir,h=r.date;r._compressWorker(n,o).withStreamInfo("file",{name:e,dir:c,date:h,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)}));i.entriesCount=s}catch(e){i.error(e)}return i}},5485:function(e,t,r){"use strict";function JSZip(){if(!(this instanceof JSZip)){return new JSZip}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=new JSZip;for(var t in this){if(typeof this[t]!=="function"){e[t]=this[t]}}return e}}JSZip.prototype=r(4574);JSZip.prototype.loadAsync=r(3366);JSZip.support=r(9078);JSZip.defaults=r(7415);JSZip.version="3.10.1";JSZip.loadAsync=function(e,t){return(new JSZip).loadAsync(e,t)};JSZip.external=r(9070);e.exports=JSZip},3366:function(e,t,r){"use strict";var i=r(6136);var n=r(9070);var s=r(3442);var o=r(152);var c=r(5075);var h=r(7789);function checkEntryCRC32(e){return new n.Promise((function(t,r){var i=e.decompressed.getContentWorker().pipe(new c);i.on("error",(function(e){r(e)})).on("end",(function(){if(i.streamInfo.crc32!==e.decompressed.crc32){r(new Error("Corrupted zip : CRC32 mismatch"))}else{t()}})).resume()}))}e.exports=function(e,t){var r=this;t=i.extend(t||{},{base64:false,checkCRC32:false,optimizedBinaryString:false,createFolders:false,decodeFileName:s.utf8decode});if(h.isNode&&h.isStream(e)){return n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file."))}return i.prepareContent("the loaded zip file",e,true,t.optimizedBinaryString,t.base64).then((function(e){var r=new o(t);r.load(e);return r})).then((function checkCRC32(e){var r=[n.Promise.resolve(e)];var i=e.files;if(t.checkCRC32){for(var s=0;s<i.length;s++){r.push(checkEntryCRC32(i[s]))}}return n.Promise.all(r)})).then((function addFiles(e){var n=e.shift();var s=n.files;for(var o=0;o<s.length;o++){var c=s[o];var h=c.fileNameStr;var p=i.resolve(c.fileNameStr);r.file(p,c.decompressed,{binary:true,optimizedBinaryString:true,date:c.date,dir:c.dir,comment:c.fileCommentStr.length?c.fileCommentStr:null,unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions,createFolders:t.createFolders});if(!c.dir){r.file(p).unsafeOriginalName=h}}if(n.zipComment.length){r.comment=n.zipComment}return r}))}},3597:function(e,t,r){"use strict";var i=r(6136);var n=r(8181);function NodejsStreamInputAdapter(e,t){n.call(this,"Nodejs stream input adapter for "+e);this._upstreamEnded=false;this._bindStream(t)}i.inherits(NodejsStreamInputAdapter,n);NodejsStreamInputAdapter.prototype._bindStream=function(e){var t=this;this._stream=e;e.pause();e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){if(t.isPaused){this.generatedError=e}else{t.error(e)}})).on("end",(function(){if(t.isPaused){t._upstreamEnded=true}else{t.end()}}))};NodejsStreamInputAdapter.prototype.pause=function(){if(!n.prototype.pause.call(this)){return false}this._stream.pause();return true};NodejsStreamInputAdapter.prototype.resume=function(){if(!n.prototype.resume.call(this)){return false}if(this._upstreamEnded){this.end()}else{this._stream.resume()}return true};e.exports=NodejsStreamInputAdapter},5440:function(e,t,r){"use strict";var i=r(1397).Readable;var n=r(6136);n.inherits(NodejsStreamOutputAdapter,i);function NodejsStreamOutputAdapter(e,t,r){i.call(this,t);this._helper=e;var n=this;e.on("data",(function(e,t){if(!n.push(e)){n._helper.pause()}if(r){r(t)}})).on("error",(function(e){n.emit("error",e)})).on("end",(function(){n.push(null)}))}NodejsStreamOutputAdapter.prototype._read=function(){this._helper.resume()};e.exports=NodejsStreamOutputAdapter},7789:function(e){"use strict";e.exports={isNode:typeof Buffer!=="undefined",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from){return Buffer.from(e,t)}else{if(typeof e==="number"){throw new Error('The "data" argument must not be a number')}return new Buffer(e,t)}},allocBuffer:function(e){if(Buffer.alloc){return Buffer.alloc(e)}else{var t=new Buffer(e);t.fill(0);return t}},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==="function"&&typeof e.pause==="function"&&typeof e.resume==="function"}}},4574:function(e,t,r){"use strict";var i=r(3442);var n=r(6136);var s=r(8181);var o=r(1388);var c=r(7415);var h=r(5651);var p=r(9773);var g=r(6737);var y=r(7789);var v=r(3597);var fileAdd=function(e,t,r){var i=n.getTypeOf(t),o;var g=n.extend(r||{},c);g.date=g.date||new Date;if(g.compression!==null){g.compression=g.compression.toUpperCase()}if(typeof g.unixPermissions==="string"){g.unixPermissions=parseInt(g.unixPermissions,8)}if(g.unixPermissions&&g.unixPermissions&16384){g.dir=true}if(g.dosPermissions&&g.dosPermissions&16){g.dir=true}if(g.dir){e=forceTrailingSlash(e)}if(g.createFolders&&(o=parentFolder(e))){folderAdd.call(this,o,true)}var b=i==="string"&&g.binary===false&&g.base64===false;if(!r||typeof r.binary==="undefined"){g.binary=!b}var _=t instanceof h&&t.uncompressedSize===0;if(_||g.dir||!t||t.length===0){g.base64=false;g.binary=true;t="";g.compression="STORE";i="string"}var w=null;if(t instanceof h||t instanceof s){w=t}else if(y.isNode&&y.isStream(t)){w=new v(e,t)}else{w=n.prepareContent(e,t,g.binary,g.optimizedBinaryString,g.base64)}var x=new p(e,w,g);this.files[e]=x};var parentFolder=function(e){if(e.slice(-1)==="/"){e=e.substring(0,e.length-1)}var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""};var forceTrailingSlash=function(e){if(e.slice(-1)!=="/"){e+="/"}return e};var folderAdd=function(e,t){t=typeof t!=="undefined"?t:c.createFolders;e=forceTrailingSlash(e);if(!this.files[e]){fileAdd.call(this,e,null,{dir:true,createFolders:t})}return this.files[e]};function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var b={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,i;for(t in this.files){i=this.files[t];r=t.slice(this.root.length,t.length);if(r&&t.slice(0,this.root.length)===this.root){e(r,i)}}},filter:function(e){var t=[];this.forEach((function(r,i){if(e(r,i)){t.push(i)}}));return t},file:function(e,t,r){if(arguments.length===1){if(isRegExp(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}else{var n=this.files[this.root+e];if(n&&!n.dir){return n}else{return null}}}else{e=this.root+e;fileAdd.call(this,e,t,r)}return this},folder:function(e){if(!e){return this}if(isRegExp(e)){return this.filter((function(t,r){return r.dir&&e.test(t)}))}var t=this.root+e;var r=folderAdd.call(this,t);var i=this.clone();i.root=r.name;return i},remove:function(e){e=this.root+e;var t=this.files[e];if(!t){if(e.slice(-1)!=="/"){e+="/"}t=this.files[e]}if(t&&!t.dir){delete this.files[e]}else{var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e}));for(var i=0;i<r.length;i++){delete this.files[r[i].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,r={};try{r=n.extend(e||{},{streamFiles:false,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode});r.type=r.type.toLowerCase();r.compression=r.compression.toUpperCase();if(r.type==="binarystring"){r.type="string"}if(!r.type){throw new Error("No output type specified.")}n.checkSupport(r.type);if(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos"){r.platform="UNIX"}if(r.platform==="win32"){r.platform="DOS"}var c=r.comment||this.comment||"";t=g.generateWorker(this,r,c)}catch(e){t=new s("error");t.error(e)}return new o(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){e=e||{};if(!e.type){e.type="nodebuffer"}return this.generateInternalStream(e).toNodejsStream(t)}};e.exports=b},6155:function(e,t,r){"use strict";var i=r(6542);var n=r(6136);function ArrayReader(e){i.call(this,e);for(var t=0;t<this.data.length;t++){e[t]=e[t]&255}}n.inherits(ArrayReader,i);ArrayReader.prototype.byteAt=function(e){return this.data[this.zero+e]};ArrayReader.prototype.lastIndexOfSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3);for(var s=this.length-4;s>=0;--s){if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===n){return s-this.zero}}return-1};ArrayReader.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&i===s[2]&&n===s[3]};ArrayReader.prototype.readData=function(e){this.checkOffset(e);if(e===0){return[]}var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);this.index+=e;return t};e.exports=ArrayReader},6542:function(e,t,r){"use strict";var i=r(6136);function DataReader(e){this.data=e;this.length=e.length;this.index=0;this.zero=0}DataReader.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=0,r;this.checkOffset(e);for(r=this.index+e-1;r>=this.index;r--){t=(t<<8)+this.byteAt(r)}this.index+=e;return t},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};e.exports=DataReader},1728:function(e,t,r){"use strict";var i=r(8523);var n=r(6136);function NodeBufferReader(e){i.call(this,e)}n.inherits(NodeBufferReader,i);NodeBufferReader.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);this.index+=e;return t};e.exports=NodeBufferReader},6339:function(e,t,r){"use strict";var i=r(6542);var n=r(6136);function StringReader(e){i.call(this,e)}n.inherits(StringReader,i);StringReader.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};StringReader.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};StringReader.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};StringReader.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);this.index+=e;return t};e.exports=StringReader},8523:function(e,t,r){"use strict";var i=r(6155);var n=r(6136);function Uint8ArrayReader(e){i.call(this,e)}n.inherits(Uint8ArrayReader,i);Uint8ArrayReader.prototype.readData=function(e){this.checkOffset(e);if(e===0){return new Uint8Array(0)}var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);this.index+=e;return t};e.exports=Uint8ArrayReader},4815:function(e,t,r){"use strict";var i=r(6136);var n=r(9078);var s=r(6155);var o=r(6339);var c=r(1728);var h=r(8523);e.exports=function(e){var t=i.getTypeOf(e);i.checkSupport(t);if(t==="string"&&!n.uint8array){return new o(e)}if(t==="nodebuffer"){return new c(e)}if(n.uint8array){return new h(i.transformTo("uint8array",e))}return new s(i.transformTo("array",e))}},4771:function(e,t){"use strict";t.LOCAL_FILE_HEADER="PK";t.CENTRAL_FILE_HEADER="PK";t.CENTRAL_DIRECTORY_END="PK";t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK";t.ZIP64_CENTRAL_DIRECTORY_END="PK";t.DATA_DESCRIPTOR="PK\b"},7031:function(e,t,r){"use strict";var i=r(8181);var n=r(6136);function ConvertWorker(e){i.call(this,"ConvertWorker to "+e);this.destType=e}n.inherits(ConvertWorker,i);ConvertWorker.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})};e.exports=ConvertWorker},5075:function(e,t,r){"use strict";var i=r(8181);var n=r(6486);var s=r(6136);function Crc32Probe(){i.call(this,"Crc32Probe");this.withStreamInfo("crc32",0)}s.inherits(Crc32Probe,i);Crc32Probe.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0);this.push(e)};e.exports=Crc32Probe},7412:function(e,t,r){"use strict";var i=r(6136);var n=r(8181);function DataLengthProbe(e){n.call(this,"DataLengthProbe for "+e);this.propName=e;this.withStreamInfo(e,0)}i.inherits(DataLengthProbe,n);DataLengthProbe.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}n.prototype.processChunk.call(this,e)};e.exports=DataLengthProbe},3922:function(e,t,r){"use strict";var i=r(6136);var n=r(8181);var s=16*1024;function DataWorker(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=false;this.index=0;this.max=0;this.data=null;this.type="";this._tickScheduled=false;e.then((function(e){t.dataIsReady=true;t.data=e;t.max=e&&e.length||0;t.type=i.getTypeOf(e);if(!t.isPaused){t._tickAndRepeat()}}),(function(e){t.error(e)}))}i.inherits(DataWorker,n);DataWorker.prototype.cleanUp=function(){n.prototype.cleanUp.call(this);this.data=null};DataWorker.prototype.resume=function(){if(!n.prototype.resume.call(this)){return false}if(!this._tickScheduled&&this.dataIsReady){this._tickScheduled=true;i.delay(this._tickAndRepeat,[],this)}return true};DataWorker.prototype._tickAndRepeat=function(){this._tickScheduled=false;if(this.isPaused||this.isFinished){return}this._tick();if(!this.isFinished){i.delay(this._tickAndRepeat,[],this);this._tickScheduled=true}};DataWorker.prototype._tick=function(){if(this.isPaused||this.isFinished){return false}var e=s;var t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max){return this.end()}else{switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}this.index=r;return this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})}};e.exports=DataWorker},8181:function(e){"use strict";function GenericWorker(e){this.name=e||"default";this.streamInfo={};this.generatedError=null;this.extraStreamInfo={};this.isPaused=true;this.isFinished=false;this.isLocked=false;this._listeners={data:[],end:[],error:[]};this.previous=null}GenericWorker.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished){return false}this.flush();try{this.emit("end");this.cleanUp();this.isFinished=true}catch(e){this.emit("error",e)}return true},error:function(e){if(this.isFinished){return false}if(this.isPaused){this.generatedError=e}else{this.isFinished=true;this.emit("error",e);if(this.previous){this.previous.error(e)}this.cleanUp()}return true},on:function(e,t){this._listeners[e].push(t);return 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;e.on("data",(function(e){t.processChunk(e)}));e.on("end",(function(){t.end()}));e.on("error",(function(e){t.error(e)}));return this},pause:function(){if(this.isPaused||this.isFinished){return false}this.isPaused=true;if(this.previous){this.previous.pause()}return true},resume:function(){if(!this.isPaused||this.isFinished){return false}this.isPaused=false;var e=false;if(this.generatedError){this.error(this.generatedError);e=true}if(this.previous){this.previous.resume()}return!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){this.extraStreamInfo[e]=t;this.mergeStreamInfo();return this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)){continue}this.streamInfo[e]=this.extraStreamInfo[e]}},lock:function(){if(this.isLocked){throw new Error("The stream '"+this+"' has already been used.")}this.isLocked=true;if(this.previous){this.previous.lock()}},toString:function(){var e="Worker "+this.name;if(this.previous){return this.previous+" -> "+e}else{return e}}};e.exports=GenericWorker},1388:function(e,t,r){"use strict";var i=r(6136);var n=r(7031);var s=r(8181);var o=r(1530);var c=r(9078);var h=r(9070);var p=null;if(c.nodestream){try{p=r(5440)}catch(e){}}function transformZipOutput(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}function concat(e,t){var r,i=0,n=null,s=0;for(r=0;r<t.length;r++){s+=t[r].length}switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":n=new Uint8Array(s);for(r=0;r<t.length;r++){n.set(t[r],i);i+=t[r].length}return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function accumulate(e,t){return new h.Promise((function(r,i){var n=[];var s=e._internalType,o=e._outputType,c=e._mimeType;e.on("data",(function(e,r){n.push(e);if(t){t(r)}})).on("error",(function(e){n=[];i(e)})).on("end",(function(){try{var e=transformZipOutput(o,concat(s,n),c);r(e)}catch(e){i(e)}n=[]})).resume()}))}function StreamHelper(e,t,r){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string";break}try{this._internalType=o;this._outputType=t;this._mimeType=r;i.checkSupport(o);this._worker=e.pipe(new n(o));e.lock()}catch(e){this._worker=new s("error");this._worker.error(e)}}StreamHelper.prototype={accumulate:function(e){return accumulate(this,e)},on:function(e,t){var r=this;if(e==="data"){this._worker.on(e,(function(e){t.call(r,e.data,e.meta)}))}else{this._worker.on(e,(function(){i.delay(t,arguments,r)}))}return this},resume:function(){i.delay(this._worker.resume,[],this._worker);return this},pause:function(){this._worker.pause();return this},toNodejsStream:function(e){i.checkSupport("nodestream");if(this._outputType!=="nodebuffer"){throw new Error(this._outputType+" is not supported by this method")}return new p(this,{objectMode:this._outputType!=="nodebuffer"},e)}};e.exports=StreamHelper},9078:function(e,t,r){"use strict";t.base64=true;t.array=true;t.string=true;t.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";t.nodebuffer=typeof Buffer!=="undefined";t.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined"){t.blob=false}else{var i=new ArrayBuffer(0);try{t.blob=new Blob([i],{type:"application/zip"}).size===0}catch(e){try{var n=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder;var s=new n;s.append(i);t.blob=s.getBlob("application/zip").size===0}catch(e){t.blob=false}}}try{t.nodestream=!!r(1397).Readable}catch(e){t.nodestream=false}},3442:function(e,t,r){"use strict";var i=r(6136);var n=r(9078);var s=r(7789);var o=r(8181);var c=new Array(256);for(var h=0;h<256;h++){c[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1}c[254]=c[254]=1;var string2buf=function(e){var t,r,i,s,o,c=e.length,h=0;for(s=0;s<c;s++){r=e.charCodeAt(s);if((r&64512)===55296&&s+1<c){i=e.charCodeAt(s+1);if((i&64512)===56320){r=65536+(r-55296<<10)+(i-56320);s++}}h+=r<128?1:r<2048?2:r<65536?3:4}if(n.uint8array){t=new Uint8Array(h)}else{t=new Array(h)}for(o=0,s=0;o<h;s++){r=e.charCodeAt(s);if((r&64512)===55296&&s+1<c){i=e.charCodeAt(s+1);if((i&64512)===56320){r=65536+(r-55296<<10)+(i-56320);s++}}if(r<128){t[o++]=r}else if(r<2048){t[o++]=192|r>>>6;t[o++]=128|r&63}else if(r<65536){t[o++]=224|r>>>12;t[o++]=128|r>>>6&63;t[o++]=128|r&63}else{t[o++]=240|r>>>18;t[o++]=128|r>>>12&63;t[o++]=128|r>>>6&63;t[o++]=128|r&63}}return t};var utf8border=function(e,t){var r;t=t||e.length;if(t>e.length){t=e.length}r=t-1;while(r>=0&&(e[r]&192)===128){r--}if(r<0){return t}if(r===0){return t}return r+c[e[r]]>t?r:t};var buf2string=function(e){var t,r,n,s;var o=e.length;var h=new Array(o*2);for(r=0,t=0;t<o;){n=e[t++];if(n<128){h[r++]=n;continue}s=c[n];if(s>4){h[r++]=65533;t+=s-1;continue}n&=s===2?31:s===3?15:7;while(s>1&&t<o){n=n<<6|e[t++]&63;s--}if(s>1){h[r++]=65533;continue}if(n<65536){h[r++]=n}else{n-=65536;h[r++]=55296|n>>10&1023;h[r++]=56320|n&1023}}if(h.length!==r){if(h.subarray){h=h.subarray(0,r)}else{h.length=r}}return i.applyFromCharCode(h)};t.utf8encode=function utf8encode(e){if(n.nodebuffer){return s.newBufferFrom(e,"utf-8")}return string2buf(e)};t.utf8decode=function utf8decode(e){if(n.nodebuffer){return i.transformTo("nodebuffer",e).toString("utf-8")}e=i.transformTo(n.uint8array?"uint8array":"array",e);return buf2string(e)};function Utf8DecodeWorker(){o.call(this,"utf-8 decode");this.leftOver=null}i.inherits(Utf8DecodeWorker,o);Utf8DecodeWorker.prototype.processChunk=function(e){var r=i.transformTo(n.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var s=r;r=new Uint8Array(s.length+this.leftOver.length);r.set(this.leftOver,0);r.set(s,this.leftOver.length)}else{r=this.leftOver.concat(r)}this.leftOver=null}var o=utf8border(r);var c=r;if(o!==r.length){if(n.uint8array){c=r.subarray(0,o);this.leftOver=r.subarray(o,r.length)}else{c=r.slice(0,o);this.leftOver=r.slice(o,r.length)}}this.push({data:t.utf8decode(c),meta:e.meta})};Utf8DecodeWorker.prototype.flush=function(){if(this.leftOver&&this.leftOver.length){this.push({data:t.utf8decode(this.leftOver),meta:{}});this.leftOver=null}};t.Utf8DecodeWorker=Utf8DecodeWorker;function Utf8EncodeWorker(){o.call(this,"utf-8 encode")}i.inherits(Utf8EncodeWorker,o);Utf8EncodeWorker.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})};t.Utf8EncodeWorker=Utf8EncodeWorker},6136:function(e,t,r){"use strict";var i=r(9078);var n=r(1530);var s=r(7789);var o=r(9070);r(1093);function string2binary(e){var t=null;if(i.uint8array){t=new Uint8Array(e.length)}else{t=new Array(e.length)}return stringToArrayLike(e,t)}t.newBlob=function(e,r){t.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var i=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder;var n=new i;n.append(e);return n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};function identity(e){return e}function stringToArrayLike(e,t){for(var r=0;r<e.length;++r){t[r]=e.charCodeAt(r)&255}return t}var c={stringifyByChunk:function(e,t,r){var i=[],n=0,s=e.length;if(s<=r){return String.fromCharCode.apply(null,e)}while(n<s){if(t==="array"||t==="nodebuffer"){i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,s))))}else{i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,s))))}n+=r}return i.join("")},stringifyByChar:function(e){var t="";for(var r=0;r<e.length;r++){t+=String.fromCharCode(e[r])}return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(e){return false}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch(e){return false}}()}};function arrayLikeToString(e){var r=65536,i=t.getTypeOf(e),n=true;if(i==="uint8array"){n=c.applyCanBeUsed.uint8array}else if(i==="nodebuffer"){n=c.applyCanBeUsed.nodebuffer}if(n){while(r>1){try{return c.stringifyByChunk(e,i,r)}catch(e){r=Math.floor(r/2)}}}return c.stringifyByChar(e)}t.applyFromCharCode=arrayLikeToString;function arrayLikeToArrayLike(e,t){for(var r=0;r<e.length;r++){t[r]=e[r]}return t}var h={};h["string"]={string:identity,array:function(e){return stringToArrayLike(e,new Array(e.length))},arraybuffer:function(e){return h["string"]["uint8array"](e).buffer},uint8array:function(e){return stringToArrayLike(e,new Uint8Array(e.length))},nodebuffer:function(e){return stringToArrayLike(e,s.allocBuffer(e.length))}};h["array"]={string:arrayLikeToString,array:identity,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(e)}};h["arraybuffer"]={string:function(e){return arrayLikeToString(new Uint8Array(e))},array:function(e){return arrayLikeToArrayLike(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:identity,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(new Uint8Array(e))}};h["uint8array"]={string:arrayLikeToString,array:function(e){return arrayLikeToArrayLike(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:identity,nodebuffer:function(e){return s.newBufferFrom(e)}};h["nodebuffer"]={string:arrayLikeToString,array:function(e){return arrayLikeToArrayLike(e,new Array(e.length))},arraybuffer:function(e){return h["nodebuffer"]["uint8array"](e).buffer},uint8array:function(e){return arrayLikeToArrayLike(e,new Uint8Array(e.length))},nodebuffer:identity};t.transformTo=function(e,r){if(!r){r=""}if(!e){return r}t.checkSupport(e);var i=t.getTypeOf(r);var n=h[i][e](r);return n};t.resolve=function(e){var t=e.split("/");var r=[];for(var i=0;i<t.length;i++){var n=t[i];if(n==="."||n===""&&i!==0&&i!==t.length-1){continue}else if(n===".."){r.pop()}else{r.push(n)}}return r.join("/")};t.getTypeOf=function(e){if(typeof e==="string"){return"string"}if(Object.prototype.toString.call(e)==="[object Array]"){return"array"}if(i.nodebuffer&&s.isBuffer(e)){return"nodebuffer"}if(i.uint8array&&e instanceof Uint8Array){return"uint8array"}if(i.arraybuffer&&e instanceof ArrayBuffer){return"arraybuffer"}};t.checkSupport=function(e){var t=i[e.toLowerCase()];if(!t){throw new Error(e+" is not supported by this platform")}};t.MAX_VALUE_16BITS=65535;t.MAX_VALUE_32BITS=-1;t.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++){r=e.charCodeAt(i);t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase()}return t};t.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))};t.inherits=function(e,t){var Obj=function(){};Obj.prototype=t.prototype;e.prototype=new Obj};t.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++){for(r in arguments[t]){if(Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]==="undefined"){e[r]=arguments[t][r]}}}return e};t.prepareContent=function(e,r,s,c,h){var p=o.Promise.resolve(r).then((function(e){var t=i.blob&&(e instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e))!==-1);if(t&&typeof FileReader!=="undefined"){return new o.Promise((function(t,r){var i=new FileReader;i.onload=function(e){t(e.target.result)};i.onerror=function(e){r(e.target.error)};i.readAsArrayBuffer(e)}))}else{return e}}));return p.then((function(r){var i=t.getTypeOf(r);if(!i){return o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it "+"in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}if(i==="arraybuffer"){r=t.transformTo("uint8array",r)}else if(i==="string"){if(h){r=n.decode(r)}else if(s){if(c!==true){r=string2binary(r)}}}return r}))}},152:function(e,t,r){"use strict";var i=r(4815);var n=r(6136);var s=r(4771);var o=r(9040);var c=r(9078);function ZipEntries(e){this.files=[];this.loadOptions=e}ZipEntries.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature "+"("+n.pretty(t)+", expected "+n.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4);var n=i===t;this.reader.setIndex(r);return n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2);this.diskWithCentralDirStart=this.reader.readInt(2);this.centralDirRecordsOnThisDisk=this.reader.readInt(2);this.centralDirRecords=this.reader.readInt(2);this.centralDirSize=this.reader.readInt(4);this.centralDirOffset=this.reader.readInt(4);this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength);var t=c.uint8array?"uint8array":"array";var r=n.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8);this.reader.skip(4);this.diskNumber=this.reader.readInt(4);this.diskWithCentralDirStart=this.reader.readInt(4);this.centralDirRecordsOnThisDisk=this.reader.readInt(8);this.centralDirRecords=this.reader.readInt(8);this.centralDirSize=this.reader.readInt(8);this.centralDirOffset=this.reader.readInt(8);this.zip64ExtensibleData={};var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;while(t<e){r=this.reader.readInt(2);i=this.reader.readInt(4);n=this.reader.readData(i);this.zip64ExtensibleData[r]={id:r,length:i,value:n}}},readBlockZip64EndOfCentralLocator:function(){this.diskWithZip64CentralDirStart=this.reader.readInt(4);this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8);this.disksCount=this.reader.readInt(4);if(this.disksCount>1){throw new Error("Multi-volumes zip are not supported")}},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++){t=this.files[e];this.reader.setIndex(t.localHeaderOffset);this.checkSignature(s.LOCAL_FILE_HEADER);t.readLocalPart(this.reader);t.handleUTF8();t.processAttributes()}},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER)){e=new o({zip64:this.zip64},this.loadOptions);e.readCentralPart(this.reader);this.files.push(e)}if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0){throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}else{}}},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,s.LOCAL_FILE_HEADER);if(t){throw 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")}else{throw new Error("Corrupted zip: can't find end of central directory")}}this.reader.setIndex(e);var r=e;this.checkSignature(s.CENTRAL_DIRECTORY_END);this.readBlockEndOfCentral();if(this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){this.zip64=true;e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR);if(e<0){throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator")}this.reader.setIndex(e);this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR);this.readBlockZip64EndOfCentralLocator();if(!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)){this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END);if(this.relativeOffsetEndOfZip64CentralDir<0){throw new Error("Corrupted zip: can't find the ZIP64 end of central directory")}}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END);this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;if(this.zip64){i+=20;i+=12+this.zip64EndOfCentralSize}var o=r-i;if(o>0){if(this.isSignature(r,s.CENTRAL_FILE_HEADER)){}else{this.reader.zero=o}}else if(o<0){throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")}},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e);this.readEndOfCentral();this.readCentralDir();this.readLocalFiles()}};e.exports=ZipEntries},9040:function(e,t,r){"use strict";var i=r(4815);var n=r(6136);var s=r(5651);var o=r(6486);var c=r(3442);var h=r(8890);var p=r(9078);var g=0;var y=3;var findCompression=function(e){for(var t in h){if(!Object.prototype.hasOwnProperty.call(h,t)){continue}if(h[t].magic===e){return h[t]}}return null};function ZipEntry(e,t){this.options=e;this.loadOptions=t}ZipEntry.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,r;e.skip(22);this.fileNameLength=e.readInt(2);r=e.readInt(2);this.fileName=e.readData(this.fileNameLength);e.skip(r);if(this.compressedSize===-1||this.uncompressedSize===-1){throw new Error("Bug or corrupted zip : didn't get enough information from the central directory "+"(compressedSize === -1 || uncompressedSize === -1)")}t=findCompression(this.compressionMethod);if(t===null){throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")")}this.decompressed=new s(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);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);if(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=this.externalFileAttributes&16?true:false;if(e===g){this.dosPermissions=this.externalFileAttributes&63}if(e===y){this.unixPermissions=this.externalFileAttributes>>16&65535}if(!this.dir&&this.fileNameStr.slice(-1)==="/"){this.dir=true}},parseZIP64ExtraField:function(){if(!this.extraFields[1]){return}var e=i(this.extraFields[1].value);if(this.uncompressedSize===n.MAX_VALUE_32BITS){this.uncompressedSize=e.readInt(8)}if(this.compressedSize===n.MAX_VALUE_32BITS){this.compressedSize=e.readInt(8)}if(this.localHeaderOffset===n.MAX_VALUE_32BITS){this.localHeaderOffset=e.readInt(8)}if(this.diskNumberStart===n.MAX_VALUE_32BITS){this.diskNumberStart=e.readInt(4)}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,i,n;if(!this.extraFields){this.extraFields={}}while(e.index+4<t){r=e.readInt(2);i=e.readInt(2);n=e.readData(i);this.extraFields[r]={id:r,length:i,value:n}}e.setIndex(t)},handleUTF8:function(){var e=p.uint8array?"uint8array":"array";if(this.useUTF8()){this.fileNameStr=c.utf8decode(this.fileName);this.fileCommentStr=c.utf8decode(this.fileComment)}else{var t=this.findExtraFieldUnicodePath();if(t!==null){this.fileNameStr=t}else{var r=n.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null){this.fileCommentStr=i}else{var s=n.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);if(t.readInt(1)!==1){return null}if(o(this.fileName)!==t.readInt(4)){return null}return c.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);if(t.readInt(1)!==1){return null}if(o(this.fileComment)!==t.readInt(4)){return null}return c.utf8decode(t.readData(e.length-5))}return null}};e.exports=ZipEntry},9773:function(e,t,r){"use strict";var i=r(1388);var n=r(3922);var s=r(3442);var o=r(5651);var c=r(8181);var ZipObject=function(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}};ZipObject.prototype={internalStream:function(e){var t=null,r="string";try{if(!e){throw new Error("No output type specified.")}r=e.toLowerCase();var n=r==="string"||r==="text";if(r==="binarystring"||r==="text"){r="string"}t=this._decompressWorker();var o=!this._dataBinary;if(o&&!n){t=t.pipe(new s.Utf8EncodeWorker)}if(!o&&n){t=t.pipe(new s.Utf8DecodeWorker)}}catch(e){t=new c("error");t.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){if(this._data instanceof o&&this._data.compression.magic===e.magic){return this._data.getCompressedWorker()}else{var r=this._decompressWorker();if(!this._dataBinary){r=r.pipe(new s.Utf8EncodeWorker)}return o.createWorkerFrom(r,e,t)}},_decompressWorker:function(){if(this._data instanceof o){return this._data.getContentWorker()}else if(this._data instanceof c){return this._data}else{return new n(this._data)}}};var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"];var removedFn=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(var p=0;p<h.length;p++){ZipObject.prototype[h[p]]=removedFn}e.exports=ZipObject},2186:function(e,t,r){var i=r(9023);var n=r(3627);e.exports={Readable:Readable,Writable:Writable};i.inherits(Readable,n);i.inherits(Writable,n);function beforeFirstCall(e,t,r){e[t]=function(){delete e[t];r.apply(this,arguments);return this[t].apply(this,arguments)}}function Readable(e,t){if(!(this instanceof Readable))return new Readable(e,t);n.call(this,t);beforeFirstCall(this,"_read",(function(){var r=e.call(this,t);var i=this.emit.bind(this,"error");r.on("error",i);r.pipe(this)}));this.emit("readable")}function Writable(e,t){if(!(this instanceof Writable))return new Writable(e,t);n.call(this,t);beforeFirstCall(this,"_write",(function(){var r=e.call(this,t);var i=this.emit.bind(this,"error");r.on("error",i);this.pipe(r)}));this.emit("writable")}},6022:function(e,t,r){"use strict";var i=r(209);function INTERNAL(){}var n={};var s=["REJECTED"];var o=["FULFILLED"];var c=["PENDING"];if(!process.browser){var h=["UNHANDLED"]}e.exports=Promise;function Promise(e){if(typeof e!=="function"){throw new TypeError("resolver must be a function")}this.state=c;this.queue=[];this.outcome=void 0;if(!process.browser){this.handled=h}if(e!==INTERNAL){safelyResolveThenable(this,e)}}Promise.prototype.finally=function(e){if(typeof e!=="function"){return this}var t=this.constructor;return this.then(resolve,reject);function resolve(r){function yes(){return r}return t.resolve(e()).then(yes)}function reject(r){function no(){throw r}return t.resolve(e()).then(no)}};Promise.prototype.catch=function(e){return this.then(null,e)};Promise.prototype.then=function(e,t){if(typeof e!=="function"&&this.state===o||typeof t!=="function"&&this.state===s){return this}var r=new this.constructor(INTERNAL);if(!process.browser){if(this.handled===h){this.handled=null}}if(this.state!==c){var i=this.state===o?e:t;unwrap(r,i,this.outcome)}else{this.queue.push(new QueueItem(r,e,t))}return r};function QueueItem(e,t,r){this.promise=e;if(typeof t==="function"){this.onFulfilled=t;this.callFulfilled=this.otherCallFulfilled}if(typeof r==="function"){this.onRejected=r;this.callRejected=this.otherCallRejected}}QueueItem.prototype.callFulfilled=function(e){n.resolve(this.promise,e)};QueueItem.prototype.otherCallFulfilled=function(e){unwrap(this.promise,this.onFulfilled,e)};QueueItem.prototype.callRejected=function(e){n.reject(this.promise,e)};QueueItem.prototype.otherCallRejected=function(e){unwrap(this.promise,this.onRejected,e)};function unwrap(e,t,r){i((function(){var i;try{i=t(r)}catch(t){return n.reject(e,t)}if(i===e){n.reject(e,new TypeError("Cannot resolve promise with itself"))}else{n.resolve(e,i)}}))}n.resolve=function(e,t){var r=tryCatch(getThen,t);if(r.status==="error"){return n.reject(e,r.value)}var i=r.value;if(i){safelyResolveThenable(e,i)}else{e.state=o;e.outcome=t;var s=-1;var c=e.queue.length;while(++s<c){e.queue[s].callFulfilled(t)}}return e};n.reject=function(e,t){e.state=s;e.outcome=t;if(!process.browser){if(e.handled===h){i((function(){if(e.handled===h){process.emit("unhandledRejection",t,e)}}))}}var r=-1;var n=e.queue.length;while(++r<n){e.queue[r].callRejected(t)}return e};function getThen(e){var t=e&&e.then;if(e&&(typeof e==="object"||typeof e==="function")&&typeof t==="function"){return function appyThen(){t.apply(e,arguments)}}}function safelyResolveThenable(e,t){var r=false;function onError(t){if(r){return}r=true;n.reject(e,t)}function onSuccess(t){if(r){return}r=true;n.resolve(e,t)}function tryToUnwrap(){t(onSuccess,onError)}var i=tryCatch(tryToUnwrap);if(i.status==="error"){onError(i.value)}}function tryCatch(e,t){var r={};try{r.value=e(t);r.status="success"}catch(e){r.status="error";r.value=e}return r}Promise.resolve=resolve;function resolve(e){if(e instanceof this){return e}return n.resolve(new this(INTERNAL),e)}Promise.reject=reject;function reject(e){var t=new this(INTERNAL);return n.reject(t,e)}Promise.all=all;function all(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]"){return this.reject(new TypeError("must be an array"))}var r=e.length;var i=false;if(!r){return this.resolve([])}var s=new Array(r);var o=0;var c=-1;var h=new this(INTERNAL);while(++c<r){allResolver(e[c],c)}return h;function allResolver(e,c){t.resolve(e).then(resolveFromAll,(function(e){if(!i){i=true;n.reject(h,e)}}));function resolveFromAll(e){s[c]=e;if(++o===r&&!i){i=true;n.resolve(h,s)}}}}Promise.race=race;function race(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]"){return this.reject(new TypeError("must be an array"))}var r=e.length;var i=false;if(!r){return this.resolve([])}var s=-1;var o=new this(INTERNAL);while(++s<r){resolver(e[s])}return o;function resolver(e){t.resolve(e).then((function(e){if(!i){i=true;n.resolve(o,e)}}),(function(e){if(!i){i=true;n.reject(o,e)}}))}}},956:function(e,t,r){"use strict";var i=r(4434).listenerCount;i=i||function(e,t){var r=e&&e._events&&e._events[t];if(Array.isArray(r)){return r.length}else if(typeof r==="function"){return 1}else{return 0}};e.exports=i},4242:function(e){var t=9007199254740991;var r="[object Arguments]",i="[object Function]",n="[object GeneratorFunction]";var s=/^(?:0|[1-9]\d*)$/;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function baseTimes(e,t){var r=-1,i=Array(e);while(++r<e){i[r]=t(r)}return i}var o=Object.prototype;var c=o.hasOwnProperty;var h=o.toString;var p=o.propertyIsEnumerable;var g=Math.max;function arrayLikeKeys(e,t){var r=y(e)||isArguments(e)?baseTimes(e.length,String):[];var i=r.length,n=!!i;for(var s in e){if((t||c.call(e,s))&&!(n&&(s=="length"||isIndex(s,i)))){r.push(s)}}return r}function assignInDefaults(e,t,r,i){if(e===undefined||eq(e,o[r])&&!c.call(i,r)){return t}return e}function assignValue(e,t,r){var i=e[t];if(!(c.call(e,t)&&eq(i,r))||r===undefined&&!(t in e)){e[t]=r}}function baseKeysIn(e){if(!isObject(e)){return nativeKeysIn(e)}var t=isPrototype(e),r=[];for(var i in e){if(!(i=="constructor"&&(t||!c.call(e,i)))){r.push(i)}}return r}function baseRest(e,t){t=g(t===undefined?e.length-1:t,0);return function(){var r=arguments,i=-1,n=g(r.length-t,0),s=Array(n);while(++i<n){s[i]=r[t+i]}i=-1;var o=Array(t+1);while(++i<t){o[i]=r[i]}o[t]=s;return apply(e,this,o)}}function copyObject(e,t,r,i){r||(r={});var n=-1,s=t.length;while(++n<s){var o=t[n];var c=i?i(r[o],e[o],o,r,e):undefined;assignValue(r,o,c===undefined?e[o]:c)}return r}function createAssigner(e){return baseRest((function(t,r){var i=-1,n=r.length,s=n>1?r[n-1]:undefined,o=n>2?r[2]:undefined;s=e.length>3&&typeof s=="function"?(n--,s):undefined;if(o&&isIterateeCall(r[0],r[1],o)){s=n<3?undefined:s;n=1}t=Object(t);while(++i<n){var c=r[i];if(c){e(t,c,i,s)}}return t}))}function isIndex(e,r){r=r==null?t:r;return!!r&&(typeof e=="number"||s.test(e))&&(e>-1&&e%1==0&&e<r)}function isIterateeCall(e,t,r){if(!isObject(r)){return false}var i=typeof t;if(i=="number"?isArrayLike(r)&&isIndex(t,r.length):i=="string"&&t in r){return eq(r[t],e)}return false}function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||o;return e===r}function nativeKeysIn(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&c.call(e,"callee")&&(!p.call(e,"callee")||h.call(e)==r)}var y=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?h.call(e):"";return t==i||t==n}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}var v=createAssigner((function(e,t,r,i){copyObject(t,keysIn(t),e,i)}));var b=baseRest((function(e){e.push(undefined,assignInDefaults);return apply(v,undefined,e)}));function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,true):baseKeysIn(e)}e.exports=b},7467:function(e){var t=200;var r="__lodash_hash_undefined__";var i=9007199254740991;var n="[object Arguments]",s="[object Function]",o="[object GeneratorFunction]";var c=/[\\^$.*+?()[\]{}|]/g;var h=/^\[object .+?Constructor\]$/;var p=typeof global=="object"&&global&&global.Object===Object&&global;var g=typeof self=="object"&&self&&self.Object===Object&&self;var y=p||g||Function("return this")();function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var i=-1,n=e?e.length:0;while(++i<n){if(r(t,e[i])){return true}}return false}function arrayMap(e,t){var r=-1,i=e?e.length:0,n=Array(i);while(++r<i){n[r]=t(e[r],r,e)}return n}function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}function baseFindIndex(e,t,r,i){var n=e.length,s=r+(i?1:-1);while(i?s--:++s<n){if(t(e[s],s,e)){return s}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var i=r-1,n=e.length;while(++i<n){if(e[i]===t){return i}}return-1}function baseIsNaN(e){return e!==e}function baseUnary(e){return function(t){return e(t)}}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var v=Array.prototype,b=Function.prototype,_=Object.prototype;var w=y["__core-js_shared__"];var x=function(){var e=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var S=b.toString;var k=_.hasOwnProperty;var C=_.toString;var E=RegExp("^"+S.call(k).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var R=y.Symbol,O=_.propertyIsEnumerable,A=v.splice,I=R?R.isConcatSpreadable:undefined;var P=Math.max;var N=getNative(y,"Map"),F=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=F?F(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(F){var i=t[e];return i===r?undefined:i}return k.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return F?t[e]!==undefined:k.call(t,e)}function hashSet(e,t){var i=this.__data__;i[e]=F&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{A.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(N||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseDifference(e,r,i,n){var s=-1,o=arrayIncludes,c=true,h=e.length,p=[],g=r.length;if(!h){return p}if(i){r=arrayMap(r,baseUnary(i))}if(n){o=arrayIncludesWith;c=false}else if(r.length>=t){o=cacheHas;c=false;r=new SetCache(r)}e:while(++s<h){var y=e[s],v=i?i(y):y;y=n||y!==0?y:0;if(c&&v===v){var b=g;while(b--){if(r[b]===v){continue e}}p.push(y)}else if(!o(r,v,n)){p.push(y)}}return p}function baseFlatten(e,t,r,i,n){var s=-1,o=e.length;r||(r=isFlattenable);n||(n=[]);while(++s<o){var c=e[s];if(t>0&&r(c)){if(t>1){baseFlatten(c,t-1,r,i,n)}else{arrayPush(n,c)}}else if(!i){n[n.length]=c}}return n}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?E:h;return t.test(toSource(e))}function baseRest(e,t){t=P(t===undefined?e.length-1:t,0);return function(){var r=arguments,i=-1,n=P(r.length-t,0),s=Array(n);while(++i<n){s[i]=r[t+i]}i=-1;var o=Array(t+1);while(++i<t){o[i]=r[i]}o[t]=s;return apply(e,this,o)}}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isFlattenable(e){return L(e)||isArguments(e)||!!(I&&e&&e[I])}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!x&&x in e}function toSource(e){if(e!=null){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var D=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,true)):[]}));function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&k.call(e,"callee")&&(!O.call(e,"callee")||C.call(e)==n)}var L=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?C.call(e):"";return t==s||t==o}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=i}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=D},1171:function(e){var t=1/0;var r="[object Symbol]";var i=/[\\^$.*+?()[\]{}|]/g,n=RegExp(i.source);var s=typeof global=="object"&&global&&global.Object===Object&&global;var o=typeof self=="object"&&self&&self.Object===Object&&self;var c=s||o||Function("return this")();var h=Object.prototype;var p=h.toString;var g=c.Symbol;var y=g?g.prototype:undefined,v=y?y.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(isSymbol(e)){return v?v.call(e):""}var r=e+"";return r=="0"&&1/e==-t?"-0":r}function isObjectLike(e){return!!e&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&p.call(e)==r}function toString(e){return e==null?"":baseToString(e)}function escapeRegExp(e){e=toString(e);return e&&n.test(e)?e.replace(i,"\\$&"):e}e.exports=escapeRegExp},6502:function(e){var t=9007199254740991;var r="[object Arguments]",i="[object Function]",n="[object GeneratorFunction]";var s=typeof global=="object"&&global&&global.Object===Object&&global;var o=typeof self=="object"&&self&&self.Object===Object&&self;var c=s||o||Function("return this")();function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}var h=Object.prototype;var p=h.hasOwnProperty;var g=h.toString;var y=c.Symbol,v=h.propertyIsEnumerable,b=y?y.isConcatSpreadable:undefined;function baseFlatten(e,t,r,i,n){var s=-1,o=e.length;r||(r=isFlattenable);n||(n=[]);while(++s<o){var c=e[s];if(t>0&&r(c)){if(t>1){baseFlatten(c,t-1,r,i,n)}else{arrayPush(n,c)}}else if(!i){n[n.length]=c}}return n}function isFlattenable(e){return _(e)||isArguments(e)||!!(b&&e&&e[b])}function flatten(e){var t=e?e.length:0;return t?baseFlatten(e,1):[]}function isArguments(e){return isArrayLikeObject(e)&&p.call(e,"callee")&&(!v.call(e,"callee")||g.call(e)==r)}var _=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?g.call(e):"";return t==i||t==n}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=flatten},747:function(e,t,r){e=r.nmd(e);var i=200;var n="Expected a function";var s="__lodash_hash_undefined__";var o=1,c=2;var h=1/0,p=9007199254740991;var g="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",_="[object Error]",w="[object Function]",x="[object GeneratorFunction]",S="[object Map]",k="[object Number]",C="[object Object]",E="[object Promise]",R="[object RegExp]",O="[object Set]",A="[object String]",I="[object Symbol]",P="[object WeakMap]";var N="[object ArrayBuffer]",F="[object DataView]",D="[object Float32Array]",L="[object Float64Array]",B="[object Int8Array]",M="[object Int16Array]",j="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",H="[object Uint16Array]",X="[object Uint32Array]";var $=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,U=/^\./,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var G=/[\\^$.*+?()[\]{}|]/g;var Z=/\\(\\)?/g;var Y=/^\[object .+?Constructor\]$/;var K=/^(?:0|[1-9]\d*)$/;var Q={};Q[D]=Q[L]=Q[B]=Q[M]=Q[j]=Q[z]=Q[W]=Q[H]=Q[X]=true;Q[g]=Q[y]=Q[N]=Q[v]=Q[F]=Q[b]=Q[_]=Q[w]=Q[S]=Q[k]=Q[C]=Q[R]=Q[O]=Q[A]=Q[P]=false;var J=typeof global=="object"&&global&&global.Object===Object&&global;var ee=typeof self=="object"&&self&&self.Object===Object&&self;var te=J||ee||Function("return this")();var re=true&&t&&!t.nodeType&&t;var ie=re&&"object"=="object"&&e&&!e.nodeType&&e;var ne=ie&&ie.exports===re;var se=ne&&J.process;var ae=function(){try{return se&&se.binding("util")}catch(e){}}();var oe=ae&&ae.isTypedArray;function arrayAggregator(e,t,r,i){var n=-1,s=e?e.length:0;while(++n<s){var o=e[n];t(i,o,r(o),e)}return i}function arraySome(e,t){var r=-1,i=e?e.length:0;while(++r<i){if(t(e[r],r,e)){return true}}return false}function baseProperty(e){return function(t){return t==null?undefined:t[e]}}function baseTimes(e,t){var r=-1,i=Array(e);while(++r<e){i[r]=t(r)}return i}function baseUnary(e){return function(t){return e(t)}}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function mapToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e,i){r[++t]=[i,e]}));return r}function overArg(e,t){return function(r){return e(t(r))}}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var le=Array.prototype,ue=Function.prototype,fe=Object.prototype;var ce=te["__core-js_shared__"];var he=function(){var e=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var de=ue.toString;var pe=fe.hasOwnProperty;var me=fe.toString;var ge=RegExp("^"+de.call(pe).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ye=te.Symbol,ve=te.Uint8Array,be=fe.propertyIsEnumerable,_e=le.splice;var we=overArg(Object.keys,Object);var xe=getNative(te,"DataView"),Se=getNative(te,"Map"),ke=getNative(te,"Promise"),Ce=getNative(te,"Set"),Te=getNative(te,"WeakMap"),Ee=getNative(Object,"create");var Re=toSource(xe),Oe=toSource(Se),Ae=toSource(ke),Ie=toSource(Ce),Pe=toSource(Te);var Ne=ye?ye.prototype:undefined,Fe=Ne?Ne.valueOf:undefined,De=Ne?Ne.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=Ee?Ee(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(Ee){var r=t[e];return r===s?undefined:r}return pe.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return Ee?t[e]!==undefined:pe.call(t,e)}function hashSet(e,t){var r=this.__data__;r[e]=Ee&&t===undefined?s:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{_e.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(Se||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,s);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function Stack(e){this.__data__=new ListCache(e)}function stackClear(){this.__data__=new ListCache}function stackDelete(e){return this.__data__["delete"](e)}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var n=r.__data__;if(!Se||n.length<i-1){n.push([e,t]);return this}r=this.__data__=new MapCache(n)}r.set(e,t);return this}Stack.prototype.clear=stackClear;Stack.prototype["delete"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function arrayLikeKeys(e,t){var r=We(e)||isArguments(e)?baseTimes(e.length,String):[];var i=r.length,n=!!i;for(var s in e){if((t||pe.call(e,s))&&!(n&&(s=="length"||isIndex(s,i)))){r.push(s)}}return r}function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseAggregator(e,t,r,i){Le(e,(function(e,n,s){t(i,e,r(e),s)}));return i}var Le=createBaseEach(baseForOwn);var Be=createBaseFor();function baseForOwn(e,t){return e&&Be(e,t,keys)}function baseGet(e,t){t=isKey(t,e)?[t]:castPath(t);var r=0,i=t.length;while(e!=null&&r<i){e=e[toKey(t[r++])]}return r&&r==i?e:undefined}function baseGetTag(e){return me.call(e)}function baseHasIn(e,t){return e!=null&&t in Object(e)}function baseIsEqual(e,t,r,i,n){if(e===t){return true}if(e==null||t==null||!isObject(e)&&!isObjectLike(t)){return e!==e&&t!==t}return baseIsEqualDeep(e,t,baseIsEqual,r,i,n)}function baseIsEqualDeep(e,t,r,i,n,s){var o=We(e),h=We(t),p=y,v=y;if(!o){p=Me(e);p=p==g?C:p}if(!h){v=Me(t);v=v==g?C:v}var b=p==C&&!isHostObject(e),_=v==C&&!isHostObject(t),w=p==v;if(w&&!b){s||(s=new Stack);return o||He(e)?equalArrays(e,t,r,i,n,s):equalByTag(e,t,p,r,i,n,s)}if(!(n&c)){var x=b&&pe.call(e,"__wrapped__"),S=_&&pe.call(t,"__wrapped__");if(x||S){var k=x?e.value():e,E=S?t.value():t;s||(s=new Stack);return r(k,E,i,n,s)}}if(!w){return false}s||(s=new Stack);return equalObjects(e,t,r,i,n,s)}function baseIsMatch(e,t,r,i){var n=r.length,s=n,h=!i;if(e==null){return!s}e=Object(e);while(n--){var p=r[n];if(h&&p[2]?p[1]!==e[p[0]]:!(p[0]in e)){return false}}while(++n<s){p=r[n];var g=p[0],y=e[g],v=p[1];if(h&&p[2]){if(y===undefined&&!(g in e)){return false}}else{var b=new Stack;if(i){var _=i(y,v,g,e,t,b)}if(!(_===undefined?baseIsEqual(v,y,i,o|c,b):_)){return false}}}return true}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?ge:Y;return t.test(toSource(e))}function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!Q[me.call(e)]}function baseIteratee(e){if(typeof e=="function"){return e}if(e==null){return identity}if(typeof e=="object"){return We(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e)}return property(e)}function baseKeys(e){if(!isPrototype(e)){return we(e)}var t=[];for(var r in Object(e)){if(pe.call(e,r)&&r!="constructor"){t.push(r)}}return t}function baseMatches(e){var t=getMatchData(e);if(t.length==1&&t[0][2]){return matchesStrictComparable(t[0][0],t[0][1])}return function(r){return r===e||baseIsMatch(r,e,t)}}function baseMatchesProperty(e,t){if(isKey(e)&&isStrictComparable(t)){return matchesStrictComparable(toKey(e),t)}return function(r){var i=get(r,e);return i===undefined&&i===t?hasIn(r,e):baseIsEqual(t,i,undefined,o|c)}}function basePropertyDeep(e){return function(t){return baseGet(t,e)}}function baseToString(e){if(typeof e=="string"){return e}if(isSymbol(e)){return De?De.call(e):""}var t=e+"";return t=="0"&&1/e==-h?"-0":t}function castPath(e){return We(e)?e:je(e)}function createAggregator(e,t){return function(r,i){var n=We(r)?arrayAggregator:baseAggregator,s=t?t():{};return n(r,e,baseIteratee(i,2),s)}}function createBaseEach(e,t){return function(r,i){if(r==null){return r}if(!isArrayLike(r)){return e(r,i)}var n=r.length,s=t?n:-1,o=Object(r);while(t?s--:++s<n){if(i(o[s],s,o)===false){break}}return r}}function createBaseFor(e){return function(t,r,i){var n=-1,s=Object(t),o=i(t),c=o.length;while(c--){var h=o[e?c:++n];if(r(s[h],h,s)===false){break}}return t}}function equalArrays(e,t,r,i,n,s){var h=n&c,p=e.length,g=t.length;if(p!=g&&!(h&&g>p)){return false}var y=s.get(e);if(y&&s.get(t)){return y==t}var v=-1,b=true,_=n&o?new SetCache:undefined;s.set(e,t);s.set(t,e);while(++v<p){var w=e[v],x=t[v];if(i){var S=h?i(x,w,v,t,e,s):i(w,x,v,e,t,s)}if(S!==undefined){if(S){continue}b=false;break}if(_){if(!arraySome(t,(function(e,t){if(!_.has(t)&&(w===e||r(w,e,i,n,s))){return _.add(t)}}))){b=false;break}}else if(!(w===x||r(w,x,i,n,s))){b=false;break}}s["delete"](e);s["delete"](t);return b}function equalByTag(e,t,r,i,n,s,h){switch(r){case F:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case N:if(e.byteLength!=t.byteLength||!i(new ve(e),new ve(t))){return false}return true;case v:case b:case k:return eq(+e,+t);case _:return e.name==t.name&&e.message==t.message;case R:case A:return e==t+"";case S:var p=mapToArray;case O:var g=s&c;p||(p=setToArray);if(e.size!=t.size&&!g){return false}var y=h.get(e);if(y){return y==t}s|=o;h.set(e,t);var w=equalArrays(p(e),p(t),i,n,s,h);h["delete"](e);return w;case I:if(Fe){return Fe.call(e)==Fe.call(t)}}return false}function equalObjects(e,t,r,i,n,s){var o=n&c,h=keys(e),p=h.length,g=keys(t),y=g.length;if(p!=y&&!o){return false}var v=p;while(v--){var b=h[v];if(!(o?b in t:pe.call(t,b))){return false}}var _=s.get(e);if(_&&s.get(t)){return _==t}var w=true;s.set(e,t);s.set(t,e);var x=o;while(++v<p){b=h[v];var S=e[b],k=t[b];if(i){var C=o?i(k,S,b,t,e,s):i(S,k,b,e,t,s)}if(!(C===undefined?S===k||r(S,k,i,n,s):C)){w=false;break}x||(x=b=="constructor")}if(w&&!x){var E=e.constructor,R=t.constructor;if(E!=R&&("constructor"in e&&"constructor"in t)&&!(typeof E=="function"&&E instanceof E&&typeof R=="function"&&R instanceof R)){w=false}}s["delete"](e);s["delete"](t);return w}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getMatchData(e){var t=keys(e),r=t.length;while(r--){var i=t[r],n=e[i];t[r]=[i,n,isStrictComparable(n)]}return t}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}var Me=baseGetTag;if(xe&&Me(new xe(new ArrayBuffer(1)))!=F||Se&&Me(new Se)!=S||ke&&Me(ke.resolve())!=E||Ce&&Me(new Ce)!=O||Te&&Me(new Te)!=P){Me=function(e){var t=me.call(e),r=t==C?e.constructor:undefined,i=r?toSource(r):undefined;if(i){switch(i){case Re:return F;case Oe:return S;case Ae:return E;case Ie:return O;case Pe:return P}}return t}}function hasPath(e,t,r){t=isKey(t,e)?[t]:castPath(t);var i,n=-1,s=t.length;while(++n<s){var o=toKey(t[n]);if(!(i=e!=null&&r(e,o))){break}e=e[o]}if(i){return i}var s=e?e.length:0;return!!s&&isLength(s)&&isIndex(o,s)&&(We(e)||isArguments(e))}function isIndex(e,t){t=t==null?p:t;return!!t&&(typeof e=="number"||K.test(e))&&(e>-1&&e%1==0&&e<t)}function isKey(e,t){if(We(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||isSymbol(e)){return true}return V.test(e)||!$.test(e)||t!=null&&e in Object(t)}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!he&&he in e}function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||fe;return e===r}function isStrictComparable(e){return e===e&&!isObject(e)}function matchesStrictComparable(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}var je=memoize((function(e){e=toString(e);var t=[];if(U.test(e)){t.push("")}e.replace(q,(function(e,r,i,n){t.push(i?n.replace(Z,"$1"):r||e)}));return t}));function toKey(e){if(typeof e=="string"||isSymbol(e)){return e}var t=e+"";return t=="0"&&1/e==-h?"-0":t}function toSource(e){if(e!=null){try{return de.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ze=createAggregator((function(e,t,r){if(pe.call(e,r)){e[r].push(t)}else{e[r]=[t]}}));function memoize(e,t){if(typeof e!="function"||t&&typeof t!="function"){throw new TypeError(n)}var memoized=function(){var r=arguments,i=t?t.apply(this,r):r[0],n=memoized.cache;if(n.has(i)){return n.get(i)}var s=e.apply(this,r);memoized.cache=n.set(i,s);return s};memoized.cache=new(memoize.Cache||MapCache);return memoized}memoize.Cache=MapCache;function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&pe.call(e,"callee")&&(!be.call(e,"callee")||me.call(e)==g)}var We=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?me.call(e):"";return t==w||t==x}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=p}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&me.call(e)==I}var He=oe?baseUnary(oe):baseIsTypedArray;function toString(e){return e==null?"":baseToString(e)}function get(e,t,r){var i=e==null?undefined:baseGet(e,t);return i===undefined?r:i}function hasIn(e,t){return e!=null&&hasPath(e,t,baseHasIn)}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function identity(e){return e}function property(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}e.exports=ze},7594:function(e){var t="[object Boolean]";var r=Object.prototype;var i=r.toString;function isBoolean(e){return e===true||e===false||isObjectLike(e)&&i.call(e)==t}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=isBoolean},6815:function(e,t,r){e=r.nmd(e);var i=200;var n="__lodash_hash_undefined__";var s=1,o=2;var c=9007199254740991;var h="[object Arguments]",p="[object Array]",g="[object AsyncFunction]",y="[object Boolean]",v="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",x="[object Map]",S="[object Number]",k="[object Null]",C="[object Object]",E="[object Promise]",R="[object Proxy]",O="[object RegExp]",A="[object Set]",I="[object String]",P="[object Symbol]",N="[object Undefined]",F="[object WeakMap]";var D="[object ArrayBuffer]",L="[object DataView]",B="[object Float32Array]",M="[object Float64Array]",j="[object Int8Array]",z="[object Int16Array]",W="[object Int32Array]",H="[object Uint8Array]",X="[object Uint8ClampedArray]",$="[object Uint16Array]",V="[object Uint32Array]";var U=/[\\^$.*+?()[\]{}|]/g;var q=/^\[object .+?Constructor\]$/;var G=/^(?:0|[1-9]\d*)$/;var Z={};Z[B]=Z[M]=Z[j]=Z[z]=Z[W]=Z[H]=Z[X]=Z[$]=Z[V]=true;Z[h]=Z[p]=Z[D]=Z[y]=Z[L]=Z[v]=Z[b]=Z[_]=Z[x]=Z[S]=Z[C]=Z[O]=Z[A]=Z[I]=Z[F]=false;var Y=typeof global=="object"&&global&&global.Object===Object&&global;var K=typeof self=="object"&&self&&self.Object===Object&&self;var Q=Y||K||Function("return this")();var J=true&&t&&!t.nodeType&&t;var ee=J&&"object"=="object"&&e&&!e.nodeType&&e;var te=ee&&ee.exports===J;var re=te&&Y.process;var ie=function(){try{return re&&re.binding&&re.binding("util")}catch(e){}}();var ne=ie&&ie.isTypedArray;function arrayFilter(e,t){var r=-1,i=e==null?0:e.length,n=0,s=[];while(++r<i){var o=e[r];if(t(o,r,e)){s[n++]=o}}return s}function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}function arraySome(e,t){var r=-1,i=e==null?0:e.length;while(++r<i){if(t(e[r],r,e)){return true}}return false}function baseTimes(e,t){var r=-1,i=Array(e);while(++r<e){i[r]=t(r)}return i}function baseUnary(e){return function(t){return e(t)}}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function mapToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e,i){r[++t]=[i,e]}));return r}function overArg(e,t){return function(r){return e(t(r))}}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var se=Array.prototype,ae=Function.prototype,oe=Object.prototype;var le=Q["__core-js_shared__"];var ue=ae.toString;var fe=oe.hasOwnProperty;var ce=function(){var e=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var he=oe.toString;var de=RegExp("^"+ue.call(fe).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var pe=te?Q.Buffer:undefined,me=Q.Symbol,ge=Q.Uint8Array,ye=oe.propertyIsEnumerable,ve=se.splice,be=me?me.toStringTag:undefined;var _e=Object.getOwnPropertySymbols,we=pe?pe.isBuffer:undefined,xe=overArg(Object.keys,Object);var Se=getNative(Q,"DataView"),ke=getNative(Q,"Map"),Ce=getNative(Q,"Promise"),Te=getNative(Q,"Set"),Ee=getNative(Q,"WeakMap"),Re=getNative(Object,"create");var Oe=toSource(Se),Ae=toSource(ke),Ie=toSource(Ce),Pe=toSource(Te),Ne=toSource(Ee);var Fe=me?me.prototype:undefined,De=Fe?Fe.valueOf:undefined;function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=Re?Re(null):{};this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function hashGet(e){var t=this.__data__;if(Re){var r=t[e];return r===n?undefined:r}return fe.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return Re?t[e]!==undefined:fe.call(t,e)}function hashSet(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=Re&&t===undefined?n:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[];this.size=0}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{ve.call(t,r,1)}--this.size;return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){++this.size;r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.size=0;this.__data__={hash:new Hash,map:new(ke||ListCache),string:new Hash}}function mapCacheDelete(e){var t=getMapData(this,e)["delete"](e);this.size-=t?1:0;return t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var r=getMapData(this,e),i=r.size;r.set(e,t);this.size+=r.size==i?0:1;return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e==null?0:e.length;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,n);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function stackClear(){this.__data__=new ListCache;this.size=0}function stackDelete(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var n=r.__data__;if(!ke||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new MapCache(n)}r.set(e,t);this.size=r.size;return this}Stack.prototype.clear=stackClear;Stack.prototype["delete"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function arrayLikeKeys(e,t){var r=je(e),i=!r&&Me(e),n=!r&&!i&&ze(e),s=!r&&!i&&!n&&We(e),o=r||i||n||s,c=o?baseTimes(e.length,String):[],h=c.length;for(var p in e){if((t||fe.call(e,p))&&!(o&&(p=="length"||n&&(p=="offset"||p=="parent")||s&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||isIndex(p,h)))){c.push(p)}}return c}function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseGetAllKeys(e,t,r){var i=t(e);return je(e)?i:arrayPush(i,r(e))}function baseGetTag(e){if(e==null){return e===undefined?N:k}return be&&be in Object(e)?getRawTag(e):objectToString(e)}function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==h}function baseIsEqual(e,t,r,i,n){if(e===t){return true}if(e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)){return e!==e&&t!==t}return baseIsEqualDeep(e,t,r,i,baseIsEqual,n)}function baseIsEqualDeep(e,t,r,i,n,o){var c=je(e),g=je(t),y=c?p:Be(e),v=g?p:Be(t);y=y==h?C:y;v=v==h?C:v;var b=y==C,_=v==C,w=y==v;if(w&&ze(e)){if(!ze(t)){return false}c=true;b=false}if(w&&!b){o||(o=new Stack);return c||We(e)?equalArrays(e,t,r,i,n,o):equalByTag(e,t,y,r,i,n,o)}if(!(r&s)){var x=b&&fe.call(e,"__wrapped__"),S=_&&fe.call(t,"__wrapped__");if(x||S){var k=x?e.value():e,E=S?t.value():t;o||(o=new Stack);return n(k,E,r,i,o)}}if(!w){return false}o||(o=new Stack);return equalObjects(e,t,r,i,n,o)}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)?de:q;return t.test(toSource(e))}function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!Z[baseGetTag(e)]}function baseKeys(e){if(!isPrototype(e)){return xe(e)}var t=[];for(var r in Object(e)){if(fe.call(e,r)&&r!="constructor"){t.push(r)}}return t}function equalArrays(e,t,r,i,n,c){var h=r&s,p=e.length,g=t.length;if(p!=g&&!(h&&g>p)){return false}var y=c.get(e);if(y&&c.get(t)){return y==t}var v=-1,b=true,_=r&o?new SetCache:undefined;c.set(e,t);c.set(t,e);while(++v<p){var w=e[v],x=t[v];if(i){var S=h?i(x,w,v,t,e,c):i(w,x,v,e,t,c)}if(S!==undefined){if(S){continue}b=false;break}if(_){if(!arraySome(t,(function(e,t){if(!cacheHas(_,t)&&(w===e||n(w,e,r,i,c))){return _.push(t)}}))){b=false;break}}else if(!(w===x||n(w,x,r,i,c))){b=false;break}}c["delete"](e);c["delete"](t);return b}function equalByTag(e,t,r,i,n,c,h){switch(r){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case D:if(e.byteLength!=t.byteLength||!c(new ge(e),new ge(t))){return false}return true;case y:case v:case S:return eq(+e,+t);case b:return e.name==t.name&&e.message==t.message;case O:case I:return e==t+"";case x:var p=mapToArray;case A:var g=i&s;p||(p=setToArray);if(e.size!=t.size&&!g){return false}var _=h.get(e);if(_){return _==t}i|=o;h.set(e,t);var w=equalArrays(p(e),p(t),i,n,c,h);h["delete"](e);return w;case P:if(De){return De.call(e)==De.call(t)}}return false}function equalObjects(e,t,r,i,n,o){var c=r&s,h=getAllKeys(e),p=h.length,g=getAllKeys(t),y=g.length;if(p!=y&&!c){return false}var v=p;while(v--){var b=h[v];if(!(c?b in t:fe.call(t,b))){return false}}var _=o.get(e);if(_&&o.get(t)){return _==t}var w=true;o.set(e,t);o.set(t,e);var x=c;while(++v<p){b=h[v];var S=e[b],k=t[b];if(i){var C=c?i(k,S,b,t,e,o):i(S,k,b,e,t,o)}if(!(C===undefined?S===k||n(S,k,r,i,o):C)){w=false;break}x||(x=b=="constructor")}if(w&&!x){var E=e.constructor,R=t.constructor;if(E!=R&&("constructor"in e&&"constructor"in t)&&!(typeof E=="function"&&E instanceof E&&typeof R=="function"&&R instanceof R)){w=false}}o["delete"](e);o["delete"](t);return w}function getAllKeys(e){return baseGetAllKeys(e,keys,Le)}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function getRawTag(e){var t=fe.call(e,be),r=e[be];try{e[be]=undefined;var i=true}catch(e){}var n=he.call(e);if(i){if(t){e[be]=r}else{delete e[be]}}return n}var Le=!_e?stubArray:function(e){if(e==null){return[]}e=Object(e);return arrayFilter(_e(e),(function(t){return ye.call(e,t)}))};var Be=baseGetTag;if(Se&&Be(new Se(new ArrayBuffer(1)))!=L||ke&&Be(new ke)!=x||Ce&&Be(Ce.resolve())!=E||Te&&Be(new Te)!=A||Ee&&Be(new Ee)!=F){Be=function(e){var t=baseGetTag(e),r=t==C?e.constructor:undefined,i=r?toSource(r):"";if(i){switch(i){case Oe:return L;case Ae:return x;case Ie:return E;case Pe:return A;case Ne:return F}}return t}}function isIndex(e,t){t=t==null?c:t;return!!t&&(typeof e=="number"||G.test(e))&&(e>-1&&e%1==0&&e<t)}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!ce&&ce in e}function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||oe;return e===r}function objectToString(e){return he.call(e)}function toSource(e){if(e!=null){try{return ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eq(e,t){return e===t||e!==e&&t!==t}var Me=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&fe.call(e,"callee")&&!ye.call(e,"callee")};var je=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var ze=we||stubFalse;function isEqual(e,t){return baseIsEqual(e,t)}function isFunction(e){if(!isObject(e)){return false}var t=baseGetTag(e);return t==_||t==w||t==g||t==R}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=c}function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function isObjectLike(e){return e!=null&&typeof e=="object"}var We=ne?baseUnary(ne):baseIsTypedArray;function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function stubArray(){return[]}function stubFalse(){return false}e.exports=isEqual},8446:function(e){var t="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",n="[object Null]",s="[object Proxy]",o="[object Undefined]";var c=typeof global=="object"&&global&&global.Object===Object&&global;var h=typeof self=="object"&&self&&self.Object===Object&&self;var p=c||h||Function("return this")();var g=Object.prototype;var y=g.hasOwnProperty;var v=g.toString;var b=p.Symbol,_=b?b.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?o:n}return _&&_ in Object(e)?getRawTag(e):objectToString(e)}function getRawTag(e){var t=y.call(e,_),r=e[_];try{e[_]=undefined;var i=true}catch(e){}var n=v.call(e);if(i){if(t){e[_]=r}else{delete e[_]}}return n}function objectToString(e){return v.call(e)}function isFunction(e){if(!isObject(e)){return false}var n=baseGetTag(e);return n==r||n==i||n==t||n==s}function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isFunction},1982:function(e){function isNil(e){return e==null}e.exports=isNil},5520:function(e){var t="[object Object]";function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function overArg(e,t){return function(r){return e(t(r))}}var r=Function.prototype,i=Object.prototype;var n=r.toString;var s=i.hasOwnProperty;var o=n.call(Object);var c=i.toString;var h=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return!!e&&typeof e=="object"}function isPlainObject(e){if(!isObjectLike(e)||c.call(e)!=t||isHostObject(e)){return false}var r=h(e);if(r===null){return true}var i=s.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&n.call(i)==o}e.exports=isPlainObject},9508:function(e){function isUndefined(e){return e===undefined}e.exports=isUndefined},2516:function(e){var t=200;var r="__lodash_hash_undefined__";var i=1/0,n=9007199254740991;var s="[object Arguments]",o="[object Function]",c="[object GeneratorFunction]";var h=/[\\^$.*+?()[\]{}|]/g;var p=/^\[object .+?Constructor\]$/;var g=typeof global=="object"&&global&&global.Object===Object&&global;var y=typeof self=="object"&&self&&self.Object===Object&&self;var v=g||y||Function("return this")();function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var i=-1,n=e?e.length:0;while(++i<n){if(r(t,e[i])){return true}}return false}function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}function baseFindIndex(e,t,r,i){var n=e.length,s=r+(i?1:-1);while(i?s--:++s<n){if(t(e[s],s,e)){return s}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var i=r-1,n=e.length;while(++i<n){if(e[i]===t){return i}}return-1}function baseIsNaN(e){return e!==e}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var b=Array.prototype,_=Function.prototype,w=Object.prototype;var x=v["__core-js_shared__"];var S=function(){var e=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var k=_.toString;var C=w.hasOwnProperty;var E=w.toString;var R=RegExp("^"+k.call(C).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var O=v.Symbol,A=w.propertyIsEnumerable,I=b.splice,P=O?O.isConcatSpreadable:undefined;var N=Math.max;var F=getNative(v,"Map"),D=getNative(v,"Set"),L=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=L?L(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(L){var i=t[e];return i===r?undefined:i}return C.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return L?t[e]!==undefined:C.call(t,e)}function hashSet(e,t){var i=this.__data__;i[e]=L&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{I.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(F||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseFlatten(e,t,r,i,n){var s=-1,o=e.length;r||(r=isFlattenable);n||(n=[]);while(++s<o){var c=e[s];if(t>0&&r(c)){if(t>1){baseFlatten(c,t-1,r,i,n)}else{arrayPush(n,c)}}else if(!i){n[n.length]=c}}return n}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?R:p;return t.test(toSource(e))}function baseRest(e,t){t=N(t===undefined?e.length-1:t,0);return function(){var r=arguments,i=-1,n=N(r.length-t,0),s=Array(n);while(++i<n){s[i]=r[t+i]}i=-1;var o=Array(t+1);while(++i<t){o[i]=r[i]}o[t]=s;return apply(e,this,o)}}function baseUniq(e,r,i){var n=-1,s=arrayIncludes,o=e.length,c=true,h=[],p=h;if(i){c=false;s=arrayIncludesWith}else if(o>=t){var g=r?null:B(e);if(g){return setToArray(g)}c=false;s=cacheHas;p=new SetCache}else{p=r?[]:h}e:while(++n<o){var y=e[n],v=r?r(y):y;y=i||y!==0?y:0;if(c&&v===v){var b=p.length;while(b--){if(p[b]===v){continue e}}if(r){p.push(v)}h.push(y)}else if(!s(p,v,i)){if(p!==h){p.push(v)}h.push(y)}}return h}var B=!(D&&1/setToArray(new D([,-0]))[1]==i)?noop:function(e){return new D(e)};function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isFlattenable(e){return j(e)||isArguments(e)||!!(P&&e&&e[P])}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!S&&S in e}function toSource(e){if(e!=null){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var M=baseRest((function(e){return baseUniq(baseFlatten(e,1,isArrayLikeObject,true))}));function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&C.call(e,"callee")&&(!A.call(e,"callee")||E.call(e)==s)}var j=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?E.call(e):"";return t==o||t==c}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=n}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function noop(){}e.exports=M},9227:function(e){var t=200;var r="__lodash_hash_undefined__";var i=1/0;var n="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var c=/^\[object .+?Constructor\]$/;var h=typeof global=="object"&&global&&global.Object===Object&&global;var p=typeof self=="object"&&self&&self.Object===Object&&self;var g=h||p||Function("return this")();function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var i=-1,n=e?e.length:0;while(++i<n){if(r(t,e[i])){return true}}return false}function baseFindIndex(e,t,r,i){var n=e.length,s=r+(i?1:-1);while(i?s--:++s<n){if(t(e[s],s,e)){return s}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var i=r-1,n=e.length;while(++i<n){if(e[i]===t){return i}}return-1}function baseIsNaN(e){return e!==e}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var y=Array.prototype,v=Function.prototype,b=Object.prototype;var _=g["__core-js_shared__"];var w=function(){var e=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var x=v.toString;var S=b.hasOwnProperty;var k=b.toString;var C=RegExp("^"+x.call(S).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var E=y.splice;var R=getNative(g,"Map"),O=getNative(g,"Set"),A=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=A?A(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(A){var i=t[e];return i===r?undefined:i}return S.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return A?t[e]!==undefined:S.call(t,e)}function hashSet(e,t){var i=this.__data__;i[e]=A&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{E.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(R||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?C:c;return t.test(toSource(e))}function baseUniq(e,r,i){var n=-1,s=arrayIncludes,o=e.length,c=true,h=[],p=h;if(i){c=false;s=arrayIncludesWith}else if(o>=t){var g=r?null:I(e);if(g){return setToArray(g)}c=false;s=cacheHas;p=new SetCache}else{p=r?[]:h}e:while(++n<o){var y=e[n],v=r?r(y):y;y=i||y!==0?y:0;if(c&&v===v){var b=p.length;while(b--){if(p[b]===v){continue e}}if(r){p.push(v)}h.push(y)}else if(!s(p,v,i)){if(p!==h){p.push(v)}h.push(y)}}return h}var I=!(O&&1/setToArray(new O([,-0]))[1]==i)?noop:function(e){return new O(e)};function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!w&&w in e}function toSource(e){if(e!=null){try{return x.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function uniq(e){return e&&e.length?baseUniq(e):[]}function eq(e,t){return e===t||e!==e&&t!==t}function isFunction(e){var t=isObject(e)?k.call(e):"";return t==n||t==s}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function noop(){}e.exports=uniq},6274:function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var i=function(){try{return r(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=i.sep;var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(5612);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var c="[^/]";var h=c+"*?";var p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var g="(?:(?!(?:\\/|^)\\.).)*?";var y=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var v=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,i,n){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,i,n){return t(r,i,ext(e,n))};r.Minimatch=function Minimatch(r,i){return new t.Minimatch(r,ext(e,i))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,i){return t.filter(r,ext(e,i))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,i){return t.makeRe(r,ext(e,i))};r.braceExpand=function braceExpand(r,i){return t.braceExpand(r,ext(e,i))};r.match=function(r,i,n){return t.match(r,i,ext(e,n))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&i.sep!=="/"){e=e.split(i.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(v)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var i=0;if(r.nonegate)return;for(var n=0,s=e.length;n<s&&e.charAt(n)==="!";n++){t=!t;i++}if(i)this.pattern=e.substr(i);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)}var b=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>b){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var _={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return n;else e="*"}if(e==="")return"";var i="";var s=!!r.nocase;var p=false;var g=[];var v=[];var b;var w=false;var x=-1;var S=-1;var k=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var C=this;function clearStateChar(){if(b){switch(b){case"*":i+=h;s=true;break;case"?":i+=c;s=true;break;default:i+="\\"+b;break}C.debug("clearStateChar %j %j",b,i);b=false}}for(var E=0,R=e.length,O;E<R&&(O=e.charAt(E));E++){this.debug("%s\t%s %s %j",e,E,i,O);if(p&&y[O]){i+="\\"+O;p=false;continue}switch(O){case"/":{return false}case"\\":clearStateChar();p=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,E,i,O);if(w){this.debug(" in class");if(O==="!"&&E===S+1)O="^";i+=O;continue}C.debug("call clearStateChar %j",b);clearStateChar();b=O;if(r.noext)clearStateChar();continue;case"(":if(w){i+="(";continue}if(!b){i+="\\(";continue}g.push({type:b,start:E-1,reStart:i.length,open:o[b].open,close:o[b].close});i+=b==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",b,i);b=false;continue;case")":if(w||!g.length){i+="\\)";continue}clearStateChar();s=true;var A=g.pop();i+=A.close;if(A.type==="!"){v.push(A)}A.reEnd=i.length;continue;case"|":if(w||!g.length||p){i+="\\|";p=false;continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(w){i+="\\"+O;continue}w=true;S=E;x=i.length;i+=O;continue;case"]":if(E===S+1||!w){i+="\\"+O;p=false;continue}var I=e.substring(S+1,E);try{RegExp("["+I+"]")}catch(e){var P=this.parse(I,_);i=i.substr(0,x)+"\\["+P[0]+"\\]";s=s||P[1];w=false;continue}s=true;w=false;i+=O;continue;default:clearStateChar();if(p){p=false}else if(y[O]&&!(O==="^"&&w)){i+="\\"}i+=O}}if(w){I=e.substr(S+1);P=this.parse(I,_);i=i.substr(0,x)+"\\["+P[0];s=s||P[1]}for(A=g.pop();A;A=g.pop()){var N=i.slice(A.reStart+A.open.length);this.debug("setting tail",i,A);N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",N,N,A,i);var F=A.type==="*"?h:A.type==="?"?c:"\\"+A.type;s=true;i=i.slice(0,A.reStart)+F+"\\("+N}clearStateChar();if(p){i+="\\\\"}var D=false;switch(i.charAt(0)){case"[":case".":case"(":D=true}for(var L=v.length-1;L>-1;L--){var B=v[L];var M=i.slice(0,B.reStart);var j=i.slice(B.reStart,B.reEnd-8);var z=i.slice(B.reEnd-8,B.reEnd);var W=i.slice(B.reEnd);z+=W;var H=M.split("(").length-1;var X=W;for(E=0;E<H;E++){X=X.replace(/\)[+*?]?/,"")}W=X;var $="";if(W===""&&t!==_){$="$"}var V=M+j+W+$+z;i=V}if(i!==""&&s){i="(?=.)"+i}if(D){i=k+i}if(t===_){return[i,s]}if(!s){return globUnescape(e)}var U=r.nocase?"i":"";try{var q=new RegExp("^"+i+"$",U)}catch(e){return new RegExp("$.")}q._glob=e;q._src=i;return q}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?h:t.dot?p:g;var i=t.nocase?"i":"";var s=e.map((function(e){return e.map((function(e){return e===n?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,i)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var i=new Minimatch(t,r);e=e.filter((function(e){return i.match(e)}));if(i.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(i.sep!=="/"){e=e.split(i.sep).join("/")}e=e.split(v);this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<n.length;o++){var c=n[o];var h=e;if(r.matchBase&&c.length===1){h=[s]}var p=this.matchOne(h,c,t);if(p){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,c=e.length,h=t.length;s<c&&o<h;s++,o++){this.debug("matchOne loop");var p=t[o];var g=e[s];this.debug(t,p,g);if(p===false)return false;if(p===n){this.debug("GLOBSTAR",[t,p,g]);var y=s;var v=o+1;if(v===h){this.debug("** at the end");for(;s<c;s++){if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return false}return true}while(y<c){var b=e[y];this.debug("\nglobstar while",e,y,t,v,b);if(this.matchOne(e.slice(y),t.slice(v),r)){this.debug("globstar found match!",y,c,b);return true}else{if(b==="."||b===".."||!i.dot&&b.charAt(0)==="."){this.debug("dot detected!",e,y,t,v);break}this.debug("globstar swallow a segment, and continue");y++}}if(r){this.debug("\n>>> no match, partial?",e,y,t,v);if(y===c)return true}return false}var _;if(typeof p==="string"){_=g===p;this.debug("string match",p,g,_)}else{_=g.match(p);this.debug("pattern match",p,g,_)}if(!_)return false}if(s===c&&o===h){return true}else if(s===c){return r}else if(o===h){return s===c-1&&e[s]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},3697:function(e){const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},9007:function(e,t,r){const i=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=i;const n=r(3697);i.sep=n.sep;const s=Symbol("globstar **");i.GLOBSTAR=s;const o=r(6083);const c={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const h="[^/]";const p=h+"*?";const g="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const y="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const v=charSet("().*{}+?[]^$\\!");const b=charSet("[.(");const _=/\/+/;i.filter=(e,t={})=>(r,n,s)=>i(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};i.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return i}const t=i;const m=(r,i,n)=>t(r,i,ext(e,n));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,i)=>t.filter(r,ext(e,i));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,i)=>t.makeRe(r,ext(e,i));m.braceExpand=(r,i)=>t.braceExpand(r,ext(e,i));m.match=(r,i,n)=>t.match(r,i,ext(e,n));return m};i.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return o(e)};const w=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>w){throw new TypeError("pattern is too long")}};const x=Symbol("subparse");i.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();i.match=(e,t,r={})=>{const i=new Minimatch(t,r);e=e.filter((e=>i.match(e)));if(i.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const charUnescape=e=>e.replace(/\\([^-\]])/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(_)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++){t=!t;r++}if(r)this.pattern=e.slice(r);this.negate=t}matchOne(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var n=0,o=0,c=e.length,h=t.length;n<c&&o<h;n++,o++){this.debug("matchOne loop");var p=t[o];var g=e[n];this.debug(t,p,g);if(p===false)return false;if(p===s){this.debug("GLOBSTAR",[t,p,g]);var y=n;var v=o+1;if(v===h){this.debug("** at the end");for(;n<c;n++){if(e[n]==="."||e[n]===".."||!i.dot&&e[n].charAt(0)===".")return false}return true}while(y<c){var b=e[y];this.debug("\nglobstar while",e,y,t,v,b);if(this.matchOne(e.slice(y),t.slice(v),r)){this.debug("globstar found match!",y,c,b);return true}else{if(b==="."||b===".."||!i.dot&&b.charAt(0)==="."){this.debug("dot detected!",e,y,t,v);break}this.debug("globstar swallow a segment, and continue");y++}}if(r){this.debug("\n>>> no match, partial?",e,y,t,v);if(y===c)return true}return false}var _;if(typeof p==="string"){_=g===p;this.debug("string match",p,g,_)}else{_=g.match(p);this.debug("pattern match",p,g,_)}if(!_)return false}if(n===c&&o===h){return true}else if(n===c){return r}else if(o===h){return n===c-1&&e[n]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";let i="";let n=false;let o=false;const g=[];const y=[];let _;let w=false;let S=-1;let k=-1;let C;let E;let R;let O=e.charAt(0)===".";let A=r.dot||O;const patternStart=()=>O?"":A?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=e=>e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(_){switch(_){case"*":i+=p;n=true;break;case"?":i+=h;n=true;break;default:i+="\\"+_;break}this.debug("clearStateChar %j %j",_,i);_=false}};for(let t=0,s;t<e.length&&(s=e.charAt(t));t++){this.debug("%s\t%s %s %j",e,t,i,s);if(o){if(s==="/"){return false}if(v[s]){i+="\\"}i+=s;o=false;continue}switch(s){case"/":{return false}case"\\":if(w&&e.charAt(t+1)==="-"){i+=s;continue}clearStateChar();o=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,t,i,s);if(w){this.debug(" in class");if(s==="!"&&t===k+1)s="^";i+=s;continue}this.debug("call clearStateChar %j",_);clearStateChar();_=s;if(r.noext)clearStateChar();continue;case"(":{if(w){i+="(";continue}if(!_){i+="\\(";continue}const r={type:_,start:t-1,reStart:i.length,open:c[_].open,close:c[_].close};this.debug(this.pattern,"\t",r);g.push(r);i+=r.open;if(r.start===0&&r.type!=="!"){O=true;i+=subPatternStart(e.slice(t+1))}this.debug("plType %j %j",_,i);_=false;continue}case")":{const e=g[g.length-1];if(w||!e){i+="\\)";continue}g.pop();clearStateChar();n=true;E=e;i+=E.close;if(E.type==="!"){y.push(Object.assign(E,{reEnd:i.length}))}continue}case"|":{const r=g[g.length-1];if(w||!r){i+="\\|";continue}clearStateChar();i+="|";if(r.start===0&&r.type!=="!"){O=true;i+=subPatternStart(e.slice(t+1))}continue}case"[":clearStateChar();if(w){i+="\\"+s;continue}w=true;k=t;S=i.length;i+=s;continue;case"]":if(t===k+1||!w){i+="\\"+s;continue}C=e.substring(k+1,t);try{RegExp("["+braExpEscape(charUnescape(C))+"]");i+=s}catch(e){i=i.substring(0,S)+"(?:$.)"}n=true;w=false;continue;default:clearStateChar();if(v[s]&&!(s==="^"&&w)){i+="\\"}i+=s;break}}if(w){C=e.slice(k+1);R=this.parse(C,x);i=i.substring(0,S)+"\\["+R[0];n=n||R[1]}for(E=g.pop();E;E=g.pop()){let e;e=i.slice(E.reStart+E.open.length);this.debug("setting tail",i,E);e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,E,i);const t=E.type==="*"?p:E.type==="?"?h:"\\"+E.type;n=true;i=i.slice(0,E.reStart)+t+"\\("+e}clearStateChar();if(o){i+="\\\\"}const I=b[i.charAt(0)];for(let e=y.length-1;e>-1;e--){const r=y[e];const n=i.slice(0,r.reStart);const s=i.slice(r.reStart,r.reEnd-8);let o=i.slice(r.reEnd);const c=i.slice(r.reEnd-8,r.reEnd)+o;const h=n.split(")").length;const p=n.split("(").length-h;let g=o;for(let e=0;e<p;e++){g=g.replace(/\)[+*?]?/,"")}o=g;const v=o===""&&t!==x?"(?:$|\\/)":"";i=n+s+o+v+c}if(i!==""&&n){i="(?=.)"+i}if(I){i=patternStart()+i}if(t===x){return[i,n]}if(r.nocase&&!n){n=e.toUpperCase()!==e.toLowerCase()}if(!n){return globUnescape(e)}const P=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",P),{_glob:e,_src:i})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const r=t.noglobstar?p:t.dot?g:y;const i=t.nocase?"i":"";let n=e.map((e=>{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===s?s:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===s&&t===s)){e.push(t)}return e}),[]);e.forEach(((t,i)=>{if(t!==s||e[i-1]===s){return}if(i===0){if(e.length>1){e[i+1]="(?:\\/|"+r+"\\/)?"+e[i+1]}else{e[i]=r}}else if(i===e.length-1){e[i-1]+="(?:\\/|"+r+")?"}else{e[i-1]+="(?:\\/|\\/"+r+"\\/)"+e[i+1];e[i+1]=s}}));return e.filter((e=>e!==s)).join("/")})).join("|");n="^(?:"+n+")$";if(this.negate)n="^(?!"+n+").*$";try{this.regexp=new RegExp(n,i)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(_);this.debug(this.pattern,"split",e);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let t=e.length-1;t>=0;t--){s=e[t];if(s)break}for(let n=0;n<i.length;n++){const o=i[n];let c=e;if(r.matchBase&&o.length===1){c=[s]}const h=this.matchOne(c,o,t);if(h){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(e){return i.defaults(e).Minimatch}}i.Minimatch=Minimatch},9403:function(e,t,r){var i=r(6928);var n=r(9896);var s=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,o){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var c=t.mode;var h=t.fs||n;if(c===undefined){c=s}if(!o)o=null;var p=r||function(){};e=i.resolve(e);h.mkdir(e,c,(function(r){if(!r){o=o||e;return p(null,o)}switch(r.code){case"ENOENT":if(i.dirname(e)===e)return p(r);mkdirP(i.dirname(e),t,(function(r,i){if(r)p(r,i);else mkdirP(e,t,p,i)}));break;default:h.stat(e,(function(e,t){if(e||!t.isDirectory())p(r,o);else p(null,o)}));break}}))}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var c=t.fs||n;if(o===undefined){o=s}if(!r)r=null;e=i.resolve(e);try{c.mkdirSync(e,o);r=r||e}catch(n){switch(n.code){case"ENOENT":r=sync(i.dirname(e),t,r);sync(e,t,r);break;default:var h;try{h=c.statSync(e)}catch(e){throw n}if(!h.isDirectory())throw n;break}}return r}},4527:function(e){
51
+ var r;(function(e){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){e(t)}else{}}else{e(r={})}})((function(e){e.version="1.2.2";function signed_crc_table(){var e=0,t=new Array(256);for(var r=0;r!=256;++r){e=r;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;t[r]=e}return typeof Int32Array!=="undefined"?new Int32Array(t):t}var t=signed_crc_table();function slice_by_16_tables(e){var t=0,r=0,i=0,n=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(i=0;i!=256;++i)n[i]=e[i];for(i=0;i!=256;++i){r=e[i];for(t=256+i;t<4096;t+=256)r=n[t]=r>>>8^e[r&255]}var s=[];for(i=1;i!=16;++i)s[i-1]=typeof Int32Array!=="undefined"?n.subarray(i*256,i*256+256):n.slice(i*256,i*256+256);return s}var r=slice_by_16_tables(t);var i=r[0],n=r[1],s=r[2],o=r[3],c=r[4];var h=r[5],p=r[6],g=r[7],y=r[8],v=r[9];var b=r[10],_=r[11],w=r[12],x=r[13],S=r[14];function crc32_bstr(e,r){var i=r^-1;for(var n=0,s=e.length;n<s;)i=i>>>8^t[(i^e.charCodeAt(n++))&255];return~i}function crc32_buf(e,r){var k=r^-1,C=e.length-15,E=0;for(;E<C;)k=S[e[E++]^k&255]^x[e[E++]^k>>8&255]^w[e[E++]^k>>16&255]^_[e[E++]^k>>>24]^b[e[E++]]^v[e[E++]]^y[e[E++]]^g[e[E++]]^p[e[E++]]^h[e[E++]]^c[e[E++]]^o[e[E++]]^s[e[E++]]^n[e[E++]]^i[e[E++]]^t[e[E++]];C+=15;while(E<C)k=k>>>8^t[(k^e[E++])&255];return~k}function crc32_str(e,r){var i=r^-1;for(var n=0,s=e.length,o=0,c=0;n<s;){o=e.charCodeAt(n++);if(o<128){i=i>>>8^t[(i^o)&255]}else if(o<2048){i=i>>>8^t[(i^(192|o>>6&31))&255];i=i>>>8^t[(i^(128|o&63))&255]}else if(o>=55296&&o<57344){o=(o&1023)+64;c=e.charCodeAt(n++)&1023;i=i>>>8^t[(i^(240|o>>8&7))&255];i=i>>>8^t[(i^(128|o>>2&63))&255];i=i>>>8^t[(i^(128|c>>6&15|(o&3)<<4))&255];i=i>>>8^t[(i^(128|c&63))&255]}else{i=i>>>8^t[(i^(224|o>>12&15))&255];i=i>>>8^t[(i^(128|o>>6&63))&255];i=i>>>8^t[(i^(128|o&63))&255]}}return~i}e.table=t;e.bstr=crc32_bstr;e.buf=crc32_buf;e.str=crc32_str}))},8341:function(e,t,r){"use strict";const{Transform:i}=r(1643);const n=r(3778);class CRC32Stream extends i{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(e,t,r){if(e){this.checksum=n.buf(e,this.checksum)>>>0;this.rawSize+=e.length}r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}e.exports=CRC32Stream},559:function(e,t,r){"use strict";const{DeflateRaw:i}=r(3106);const n=r(3778);class DeflateCRC32Stream extends i{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(e,t){if(e){this.compressedSize+=e.length}return super.push(e,t)}_transform(e,t,r){if(e){this.checksum=n.buf(e,this.checksum)>>>0;this.rawSize+=e.length}super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=false){if(e){return this.compressedSize}else{return this.rawSize}}}e.exports=DeflateCRC32Stream},655:function(e,t,r){"use strict";e.exports={CRC32Stream:r(8341),DeflateCRC32Stream:r(559)}},1742:function(e){!function(t,r){true?e.exports=r():0}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var r,i=o.meridiem;if(i){for(var n=1;n<=24;n+=1)if(e.indexOf(i(n,0,t))>-1){r=n>12;break}}else r=e===(t?"pm":"PM");return r},h={A:[s,function(e){this.afternoon=d(e,!1)}],a:[s,function(e){this.afternoon=d(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*+e}],SS:[i,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,f("seconds")],ss:[n,f("seconds")],m:[n,f("minutes")],mm:[n,f("minutes")],H:[n,f("hours")],h:[n,f("hours")],HH:[n,f("hours")],hh:[n,f("hours")],D:[n,f("day")],DD:[i,f("day")],Do:[s,function(e){var t=o.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],w:[n,f("week")],ww:[i,f("week")],M:[n,f("month")],MM:[i,f("month")],MMM:[s,function(e){var t=u("months"),r=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[s,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(e){this.year=a(e)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function l(r){var i,n;i=r,n=o&&o.formats;for(var s=(r=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var s=i&&i.toUpperCase();return r||n[i]||e[i]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(t),c=s.length,p=0;p<c;p+=1){var g=s[p],y=h[g],v=y&&y[0],b=y&&y[1];s[p]=b?{regex:v,parser:b}:g.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,i=0;r<c;r+=1){var n=s[r];if("string"==typeof n)i+=n.length;else{var o=n.regex,h=n.parser,p=e.slice(i),g=o.exec(p)[0];h.call(t,g),e=e.replace(g,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var i=t.prototype,n=i.parse;i.parse=function(e){var t=e.date,i=e.utc,s=e.args;this.$u=i;var c=s[1];if("string"==typeof c){var h=!0===s[2],p=!0===s[3],g=h||p,y=s[2];p&&(y=s[2]),o=this.$locale(),!h&&y&&(o=r.Ls[y]),this.$d=function(e,t,r,i){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=l(t)(e),s=n.year,o=n.month,c=n.day,h=n.hours,p=n.minutes,g=n.seconds,y=n.milliseconds,v=n.zone,b=n.week,_=new Date,w=c||(s||o?1:_.getDate()),x=s||_.getFullYear(),S=0;s&&!o||(S=o>0?o-1:_.getMonth());var k,C=h||0,E=p||0,R=g||0,O=y||0;return v?new Date(Date.UTC(x,S,w,C,E,R,O+60*v.offset*1e3)):r?new Date(Date.UTC(x,S,w,C,E,R,O)):(k=new Date(x,S,w,C,E,R,O),b&&(k=i(k).week(b).toDate()),k)}catch(e){return new Date("")}}(t,c,i,r),this.init(),y&&!0!==y&&(this.$L=this.locale(y).$L),g&&t!=this.format(c)&&(this.$d=new Date("")),o={}}else if(c instanceof Array)for(var v=c.length,b=1;b<=v;b+=1){s[1]=c[b-1];var _=r.apply(this,s);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}b===v&&(this.$d=new Date(""))}else n.call(this,e)}}}))},4713:function(e){!function(t,r){true?e.exports=r():0}(this,(function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(i,n,s){var o=n.prototype;s.utc=function(e){var t={date:e,utc:!0,args:arguments};return new n(t)},o.utc=function(t){var r=s(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),c.call(this,e)};var h=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else h.call(this)};var p=o.utcOffset;o.utcOffset=function(i,n){var s=this.$utils().u;if(s(i))return this.$u?0:s(this.$offset)?p.call(this):this.$offset;if("string"==typeof i&&(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var n=(""+i[0]).match(r)||["-",0,0],s=n[0],o=60*+n[1]+ +n[2];return 0===o?0:"+"===s?o:-o}(i),null===i))return this;var o=Math.abs(i)<=16?60*i:i,c=this;if(n)return c.$offset=o,c.$u=0===i,c;if(0!==i){var h=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(c=this.local().add(o+h,e)).$offset=o,c.$x.$localOffset=h}else c=this.utc();return c};var g=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var y=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var v=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return v.call(this,e,t,r);var i=this.local(),n=s(e).local();return v.call(i,n,t,r)}}}))},9109:function(e,t,r){"use strict";var i=r(1397);function DuplexWrapper(e,t,r){if(typeof r==="undefined"){r=t;t=e;e=null}i.Duplex.call(this,e);if(typeof r.read!=="function"){r=new i.Readable(e).wrap(r)}this._writable=t;this._readable=r;this._waiting=false;var n=this;t.once("finish",(function(){n.end()}));this.once("finish",(function(){t.end()}));r.on("readable",(function(){if(n._waiting){n._waiting=false;n._read()}}));r.once("end",(function(){n.push(null)}));if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",(function(e){n.emit("error",e)}));r.on("error",(function(e){n.emit("error",e)}))}}DuplexWrapper.prototype=Object.create(i.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,r){this._writable.write(e,t,r)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,r){return new DuplexWrapper(e,t,r)};e.exports.DuplexWrapper=DuplexWrapper},354:function(e,t,r){var i=r(8068);var noop=function(){};var n=global.Bare?queueMicrotask:process.nextTick.bind(process);var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=i(r||noop);var s=e._writableState;var o=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var h=t.writable||t.writable!==false&&e.writable;var p=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){h=false;if(!c)r.call(e)};var onend=function(){c=false;if(!h)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){n(onclosenexttick)};var onclosenexttick=function(){if(p)return;if(c&&!(o&&(o.ended&&!o.destroyed)))return r.call(e,new Error("premature close"));if(h&&!(s&&(s.ended&&!s.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(h&&!s){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){p=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},985:function(e,t,r){if(parseInt(process.versions.node.split(".")[0],10)<10){throw new Error("For node versions older than 10, please use the ES5 Import: https://github.com/exceljs/exceljs#es5-imports")}e.exports=r(6181)},1589:function(e,t,r){const i=r(9896);const n=r(1067);const s=r(1742);const o=r(4713);const c=r(7127).extend(s).extend(o);const h=r(6);const{fs:{exists:p}}=r(9145);const g={true:true,false:false,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};class CSV{constructor(e){this.workbook=e;this.worksheet=null}async readFile(e,t){t=t||{};if(!await p(e)){throw new Error(`File not found: ${e}`)}const r=i.createReadStream(e);const n=await this.read(r,t);r.close();return n}read(e,t){t=t||{};return new Promise(((r,i)=>{const s=this.workbook.addWorksheet(t.sheetName);const o=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"];const h=t.map||function(e){if(e===""){return null}const t=Number(e);if(!Number.isNaN(t)&&t!==Infinity){return t}const r=o.reduce(((t,r)=>{if(t){return t}const i=c(e,r,true);if(i.isValid()){return i}return null}),null);if(r){return new Date(r.valueOf())}const i=g[e];if(i!==undefined){return i}return e};const p=n.parse(t.parserOptions).on("data",(e=>{s.addRow(e.map(h))})).on("end",(()=>{p.emit("worksheet",s)}));p.on("worksheet",r).on("error",i);e.pipe(p)}))}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise(((r,i)=>{t=t||{};const s=this.workbook.getWorksheet(t.sheetName||t.sheetId);const o=n.format(t.formatterOptions);e.on("finish",(()=>{r()}));o.on("error",i);o.pipe(e);const{dateFormat:h,dateUTC:p}=t;const g=t.map||(e=>{if(e){if(e.text||e.hyperlink){return e.hyperlink||e.text||""}if(e.formula||e.result){return e.result||""}if(e instanceof Date){if(h){return p?c.utc(e).format(h):c(e).format(h)}return p?c.utc(e).format():c(e).format()}if(e.error){return e.error}if(typeof e==="object"){return JSON.stringify(e)}}return e});const y=t.includeEmptyRows===undefined||t.includeEmptyRows;let v=1;if(s){s.eachRow(((e,t)=>{if(y){while(v++<t-1){o.write([])}}const{values:r}=e;r.shift();o.write(r.map(g));v=t}))}o.end()}))}writeFile(e,t){t=t||{};const r={encoding:t.encoding||"utf8"};const n=i.createWriteStream(e,r);return this.write(n,t)}async writeBuffer(e){const t=new h;await this.write(t,e);return t.read()}}e.exports=CSV},5110:function(e,t,r){"use strict";const i=r(6289);class Anchor{constructor(e,t,r=0){this.worksheet=e;if(!t){this.nativeCol=0;this.nativeColOff=0;this.nativeRow=0;this.nativeRowOff=0}else if(typeof t==="string"){const e=i.decodeAddress(t);this.nativeCol=e.col+r;this.nativeColOff=0;this.nativeRow=e.row+r;this.nativeRowOff=0}else if(t.nativeCol!==undefined){this.nativeCol=t.nativeCol||0;this.nativeColOff=t.nativeColOff||0;this.nativeRow=t.nativeRow||0;this.nativeRowOff=t.nativeRowOff||0}else if(t.col!==undefined){this.col=t.col+r;this.row=t.row+r}else{this.nativeCol=0;this.nativeColOff=0;this.nativeRow=0;this.nativeRowOff=0}}static asInstance(e){return e instanceof Anchor||e==null?e:new Anchor(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e);this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e);this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(this.worksheet.getColumn(this.nativeCol+1).width*1e4):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(this.worksheet.getRow(this.nativeRow+1).height*1e4):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol;this.nativeColOff=e.nativeColOff;this.nativeRow=e.nativeRow;this.nativeRowOff=e.nativeRowOff}}e.exports=Anchor},1903:function(e,t,r){const i=r(6289);const n=r(2563);const s=r(4041);const{slideFormula:o}=r(5408);const c=r(9983);class Cell{constructor(e,t,r){if(!e||!t){throw new Error("A Cell needs a Row")}this._row=e;this._column=t;i.validateAddress(r);this._address=r;this._value=h.create(Cell.Types.Null,this);this.style=this._mergeStyle(e.style,t.style,{});this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style;delete this._value;delete this._row;delete this._column;delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,r){const i=e&&e.numFmt||t&&t.numFmt;if(i)r.numFmt=i;const n=e&&e.font||t&&t.font;if(n)r.font=n;const s=e&&e.alignment||t&&t.alignment;if(s)r.alignment=s;const o=e&&e.border||t&&t.border;if(o)r.border=o;const c=e&&e.fill||t&&t.fill;if(c)r.fill=c;const h=e&&e.protection||t&&t.protection;if(h)r.protection=h;return r}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===Cell.Types.Merge}merge(e,t){this._value.release();this._value=h.create(Cell.Types.Merge,this,e);if(!t){this.style=e.style}}unmerge(){if(this.type===Cell.Types.Merge){this._value.release();this._value=h.create(Cell.Types.Null,this);this.style=this._mergeStyle(this._row.style,this._column.style,{})}}isMergedTo(e){if(this._value.type!==Cell.Types.Merge)return false;return this._value.isMergedTo(e)}get master(){if(this.type===Cell.Types.Merge){return this._value.master}return this}get isHyperlink(){return this._value.type===Cell.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){if(this.type===Cell.Types.Merge){this._value.master.value=e;return}this._value.release();this._value=h.create(h.getType(e),this,e)}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new c(e)}get text(){return this._value.toString()}get html(){return n.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){if(this.type===Cell.Types.String){this._value=h.create(Cell.Types.Hyperlink,this,{text:this._value.value,hyperlink:e})}}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress);e.forEach((e=>{t.addEx(this.fullAddress,e)}))}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;e.style=this.style;if(this._comment){e.comment=this._comment.model}return e}set model(e){this._value.release();this._value=h.create(e.type,this);this._value.model=e;if(e.comment){switch(e.comment.type){case"note":this._comment=c.fromModel(e.comment);break}}if(e.style){this.style=e.style}else{this.style={}}}}Cell.Types=s.ValueType;class NullValue{constructor(e){this.model={address:e.address,type:Cell.Types.Null}}get value(){return null}set value(e){}get type(){return Cell.Types.Null}get effectiveType(){return Cell.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}class NumberValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Number}get effectiveType(){return Cell.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class StringValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.String}get effectiveType(){return Cell.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}class RichTextValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map((e=>e.text)).join("")}get type(){return Cell.Types.RichText}get effectiveType(){return Cell.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}class DateValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Date}get effectiveType(){return Cell.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}class HyperlinkValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Hyperlink,text:t?t.text:undefined,hyperlink:t?t.hyperlink:undefined};if(t&&t.tooltip){this.model.tooltip=t.tooltip}}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};if(this.model.tooltip){e.tooltip=this.model.tooltip}return e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink};if(e.tooltip){this.model.tooltip=e.tooltip}}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return Cell.Types.Hyperlink}get effectiveType(){return Cell.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}class MergeValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Merge,master:t?t.address:undefined};this._master=t;if(t){t.addMergeRef()}}get value(){return this._master.value}set value(e){if(e instanceof Cell){if(this._master){this._master.releaseMergeRef()}e.addMergeRef();this._master=e}else{this._master.value=e}}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return Cell.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}class FormulaValue{constructor(e,t){this.cell=e;this.model={address:e.address,type:Cell.Types.Formula,shareType:t?t.shareType:undefined,ref:t?t.ref:undefined,formula:t?t.formula:undefined,sharedFormula:t?t.sharedFormula:undefined,result:t?t.result:undefined}}_copyModel(e){const t={};const cp=r=>{const i=e[r];if(i){t[r]=i}};cp("formula");cp("result");cp("ref");cp("shareType");cp("sharedFormula");return t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(h.getType(e)){case Cell.Types.Null:case Cell.Types.String:case Cell.Types.Number:case Cell.Types.Date:break;case Cell.Types.Hyperlink:case Cell.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){const e=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g);const t=this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g);return{ranges:e,cells:t}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){if(this.model.formula){return s.FormulaType.Master}if(this.model.sharedFormula){return s.FormulaType.Shared}return s.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return Cell.Types.Formula}get effectiveType(){const e=this.model.result;if(e===null||e===undefined){return s.ValueType.Null}if(e instanceof String||typeof e==="string"){return s.ValueType.String}if(typeof e==="number"){return s.ValueType.Number}if(e instanceof Date){return s.ValueType.Date}if(e.text&&e.hyperlink){return s.ValueType.Hyperlink}if(e.formula){return s.ValueType.Formula}return s.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell;const t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&o(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}class SharedStringValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.SharedString}get effectiveType(){return Cell.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class BooleanValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Boolean}get effectiveType(){return Cell.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}class ErrorValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Error}get effectiveType(){return Cell.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}class JSONValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e;this.model.value=JSON.stringify(e)}get type(){return Cell.Types.String}get effectiveType(){return Cell.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}const h={getType(e){if(e===null||e===undefined){return Cell.Types.Null}if(e instanceof String||typeof e==="string"){return Cell.Types.String}if(typeof e==="number"){return Cell.Types.Number}if(typeof e==="boolean"){return Cell.Types.Boolean}if(e instanceof Date){return Cell.Types.Date}if(e.text&&e.hyperlink){return Cell.Types.Hyperlink}if(e.formula||e.sharedFormula){return Cell.Types.Formula}if(e.richText){return Cell.Types.RichText}if(e.sharedString){return Cell.Types.SharedString}if(e.error){return Cell.Types.Error}return Cell.Types.JSON},types:[{t:Cell.Types.Null,f:NullValue},{t:Cell.Types.Number,f:NumberValue},{t:Cell.Types.String,f:StringValue},{t:Cell.Types.Date,f:DateValue},{t:Cell.Types.Hyperlink,f:HyperlinkValue},{t:Cell.Types.Formula,f:FormulaValue},{t:Cell.Types.Merge,f:MergeValue},{t:Cell.Types.JSON,f:JSONValue},{t:Cell.Types.SharedString,f:SharedStringValue},{t:Cell.Types.RichText,f:RichTextValue},{t:Cell.Types.Boolean,f:BooleanValue},{t:Cell.Types.Error,f:ErrorValue}].reduce(((e,t)=>{e[t.t]=t.f;return e}),[]),create(e,t,r){const i=this.types[e];if(!i){throw new Error(`Could not create Value of type ${e}`)}return new i(t,r)}};e.exports=Cell},6793:function(e,t,r){"use strict";const i=r(2563);const n=r(4041);const s=r(6289);const o=9;class Column{constructor(e,t,r){this._worksheet=e;this._number=t;if(r!==false){this.defn=r}}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==undefined&&this.width!==o}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){if(e){this.key=e.key;this.width=e.width!==undefined?e.width:o;this.outlineLevel=e.outlineLevel;if(e.style){this.style=e.style}else{this.style={}}this.header=e.header;this._hidden=!!e.hidden}else{delete this._header;delete this._key;delete this.width;this.style={};this.outlineLevel=0}}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){if(e!==undefined){this._header=e;this.headers.forEach(((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e}))}else{this._header=undefined}}get key(){return this._key}set key(e){const t=this._key&&this._worksheet.getColumnKey(this._key);if(t===this){this._worksheet.deleteColumnKey(this._key)}this._key=e;if(e){this._worksheet.setColumnKey(this._key,this)}}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:undefined})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&i.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth){return false}if(this.hidden){return false}if(this.outlineLevel){return false}const e=this.style;if(e&&(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)){return false}return true}get headerCount(){return this.headers.length}eachCell(e,t){const r=this.number;if(!t){t=e;e=null}this._worksheet.eachRow(e,((e,i)=>{t(e.getCell(r),i)}))}get values(){const e=[];this.eachCell(((t,r)=>{if(t&&t.type!==n.ValueType.Null){e[r]=t.value}}));return e}set values(e){if(!e){return}const t=this.number;let r=0;if(e.hasOwnProperty("0")){r=1}e.forEach(((e,i)=>{this._worksheet.getCell(i+r,t).value=e}))}_applyStyle(e,t){this.style[e]=t;this.eachCell((r=>{r[e]=t}));return t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let r=null;if(e){e.forEach(((e,i)=>{if(e.isDefault){if(r){r=null}}else if(!r||!e.equivalentTo(r)){r={min:i+1,max:i+1,width:e.width!==undefined?e.width:o,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed};t.push(r)}else{r.max=i+1}}))}return t.length?t:undefined}static fromModel(e,t){t=t||[];const r=[];let i=1;let n=0;t=t.sort((function(e,t){return e.min-t.min}));while(n<t.length){const s=t[n++];while(i<s.min){r.push(new Column(e,i++))}while(i<=s.max){r.push(new Column(e,i++,s))}}return r.length?r:null}}e.exports=Column},2910:function(e){class DataValidations{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=undefined}}e.exports=DataValidations},7707:function(e,t,r){"use strict";const i=r(2563);const n=r(6289);const s=r(7410);const o=r(2514);const c=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;class DefinedNames{constructor(){this.matrixMap={}}getMatrix(e){const t=this.matrixMap[e]||(this.matrixMap[e]=new s);return t}add(e,t){const r=n.decodeEx(e);this.addEx(r,t)}addEx(e,t){const r=this.getMatrix(t);if(e.top){for(let t=e.left;t<=e.right;t++){for(let i=e.top;i<=e.bottom;i++){const s={sheetName:e.sheetName,address:n.n2l(t)+i,row:i,col:t};r.addCellEx(s)}}}else{r.addCellEx(e)}}remove(e,t){const r=n.decodeEx(e);this.removeEx(r,t)}removeEx(e,t){const r=this.getMatrix(t);r.removeCellEx(e)}removeAllNames(e){i.each(this.matrixMap,(t=>{t.removeCellEx(e)}))}forEach(e){i.each(this.matrixMap,((t,r)=>{t.forEach((t=>{e(r,t)}))}))}getNames(e){return this.getNamesEx(n.decodeEx(e))}getNamesEx(e){return i.map(this.matrixMap,((t,r)=>t.findCellEx(e)&&r)).filter(Boolean)}_explore(e,t){t.mark=false;const{sheetName:r}=t;const i=new o(t.row,t.col,t.row,t.col,r);let n;let s;function vGrow(n,s){const o=e.findCellAt(r,n,t.col);if(!o||!o.mark){return false}i[s]=n;o.mark=false;return true}for(s=t.row-1;vGrow(s,"top");s--);for(s=t.row+1;vGrow(s,"bottom");s++);function hGrow(t,n){const o=[];for(s=i.top;s<=i.bottom;s++){const i=e.findCellAt(r,s,t);if(i&&i.mark){o.push(i)}else{return false}}i[n]=t;for(let e=0;e<o.length;e++){o[e].mark=false}return true}for(n=t.col-1;hGrow(n,"left");n--);for(n=t.col+1;hGrow(n,"right");n++);return i}getRanges(e,t){t=t||this.matrixMap[e];if(!t){return{name:e,ranges:[]}}t.forEach((e=>{e.mark=true}));const r=t.map((e=>e.mark&&this._explore(t,e))).filter(Boolean).map((e=>e.$shortRange));return{name:e,ranges:r}}normaliseMatrix(e,t){e.forEachInSheet(t,((e,t,r)=>{if(e){if(e.row!==t||e.col!==r){e.row=t;e.col=r;e.address=n.n2l(r)+t}}}))}spliceRows(e,t,r,n){i.each(this.matrixMap,(i=>{i.spliceRows(e,t,r,n);this.normaliseMatrix(i,e)}))}spliceColumns(e,t,r,n){i.each(this.matrixMap,(i=>{i.spliceColumns(e,t,r,n);this.normaliseMatrix(i,e)}))}get model(){return i.map(this.matrixMap,((e,t)=>this.getRanges(t,e))).filter((e=>e.ranges.length))}set model(e){const t=this.matrixMap={};e.forEach((e=>{const r=t[e.name]=new s;e.ranges.forEach((e=>{if(c.test(e.split("!").pop()||"")){r.addCell(e)}}))}))}}e.exports=DefinedNames},4041:function(e){"use strict";e.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},5210:function(e,t,r){const i=r(6289);const n=r(5110);class Image{constructor(e,t){this.worksheet=e;this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model({type:e,imageId:t,range:r,hyperlinks:s}){this.type=e;this.imageId=t;if(e==="image"){if(typeof r==="string"){const e=i.decode(r);this.range={tl:new n(this.worksheet,{col:e.left,row:e.top},-1),br:new n(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else{this.range={tl:new n(this.worksheet,r.tl,0),br:r.br&&new n(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:s||r.hyperlinks}}}}}e.exports=Image},7275:function(e,t,r){"use strict";const i=r(8117);class ModelContainer{constructor(e){this.model=e}get xlsx(){if(!this._xlsx){this._xlsx=new i(this)}return this._xlsx}}e.exports=ModelContainer},9983:function(e,t,r){const i=r(2563);class Note{constructor(e){this.note=e}get model(){let e=null;switch(typeof this.note){case"string":e={type:"note",note:{texts:[{text:this.note}]}};break;default:e={type:"note",note:this.note};break}return i.deepMerge({},Note.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e;const{texts:r}=t;if(r.length===1&&Object.keys(r[0]).length===1){this.note=r[0].text}else{this.note=t}}static fromModel(e){const t=new Note;t.model=e;return t}}Note.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}};e.exports=Note},2514:function(e,t,r){const i=r(6289);class Range{constructor(){this.decode(arguments)}setTLBR(e,t,r,n,s){if(arguments.length<4){const n=i.decodeAddress(e);const o=i.decodeAddress(t);this.model={top:Math.min(n.row,o.row),left:Math.min(n.col,o.col),bottom:Math.max(n.row,o.row),right:Math.max(n.col,o.col),sheetName:r};this.setTLBR(n.row,n.col,o.row,o.col,s)}else{this.model={top:Math.min(e,r),left:Math.min(t,n),bottom:Math.max(e,r),right:Math.max(t,n),sheetName:s}}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof Range){this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName}}else if(t instanceof Array){this.decode(t)}else if(t.top&&t.left&&t.bottom&&t.right){this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName}}else{const e=i.decodeEx(t);if(e.top){this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}}else{this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error(`Invalid number of arguments to _getDimensions() - ${e.length}`)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;if(e){if(/^[a-zA-Z0-9]*$/.test(e)){return`${e}!`}return`'${e}'!`}return""}expand(e,t,r,i){if(!this.model.top||e<this.top)this.top=e;if(!this.model.left||t<this.left)this.left=t;if(!this.model.bottom||r>this.bottom)this.bottom=r;if(!this.model.right||i>this.right)this.right=i}expandRow(e){if(e){const{dimensions:t,number:r}=e;if(t){this.expand(r,t.min,r,t.max)}}}expandToAddress(e){const t=i.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return i.n2l(this.left)+this.top}get $t$l(){return`$${i.n2l(this.left)}$${this.top}`}get br(){return i.n2l(this.right)+this.bottom}get $b$r(){return`$${i.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){if(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName)return false;if(e.bottom<this.top)return false;if(e.top>this.bottom)return false;if(e.right<this.left)return false;if(e.left>this.right)return false;return true}contains(e){const t=i.decodeEx(e);return this.containsEx(t)}containsEx(e){if(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName)return false;return e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++){for(let r=this.top;r<=this.bottom;r++){e(i.encodeAddress(r,t),r,t)}}}}e.exports=Range},7767:function(e,t,r){"use strict";const i=r(2563);const n=r(4041);const s=r(6289);const o=r(1903);class Row{constructor(e,t){this._worksheet=e;this._number=t;this._cells=[];this.style={};this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet;delete this._cells;delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const r=this._worksheet.getColumn(e.col);t=new o(this,r,e.address);this._cells[e.col-1]=t}return t}getCell(e){if(typeof e==="string"){const t=this._worksheet.getColumnKey(e);if(t){e=t.number}else{e=s.l2n(e)}}return this._cells[e-1]||this.getCellEx({address:s.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t,...r){const i=e+t;const n=r.length-t;const s=this._cells.length;let o;let c;let h;if(n<0){for(o=e+r.length;o<=s;o++){h=this._cells[o-1];c=this._cells[o-n-1];if(c){h=this.getCell(o);h.value=c.value;h.style=c.style;h._comment=c._comment}else if(h){h.value=null;h.style={};h._comment=undefined}}}else if(n>0){for(o=s;o>=i;o--){c=this._cells[o-1];if(c){h=this.getCell(o+n);h.value=c.value;h.style=c.style;h._comment=c._comment}else{this._cells[o+n-1]=undefined}}}for(o=0;o<r.length;o++){h=this.getCell(e+o);h.value=r[o];h.style={};h._comment=undefined}}eachCell(e,t){if(!t){t=e;e=null}if(e&&e.includeEmpty){const e=this._cells.length;for(let r=1;r<=e;r++){t(this.getCell(r),r)}}else{this._cells.forEach(((e,r)=>{if(e&&e.type!==n.ValueType.Null){t(e,r+1)}}))}}addPageBreak(e,t){const r=this._worksheet;const i=Math.max(0,e-1)||0;const n=Math.max(0,t-1)||16838;const s={id:this._number,max:n,man:1};if(i)s.min=i;r.rowBreaks.push(s)}get values(){const e=[];this._cells.forEach((t=>{if(t&&t.type!==n.ValueType.Null){e[t.col]=t.value}}));return e}set values(e){this._cells=[];if(!e){}else if(e instanceof Array){let t=0;if(e.hasOwnProperty("0")){t=1}e.forEach(((e,r)=>{if(e!==undefined){this.getCellEx({address:s.encodeAddress(this._number,r+t),row:this._number,col:r+t}).value=e}}))}else{this._worksheet.eachColumnKey(((t,r)=>{if(e[r]!==undefined){this.getCellEx({address:s.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[r]}}))}}get hasValues(){return i.some(this._cells,(e=>e&&e.type!==n.ValueType.Null))}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;this.eachCell((()=>{e++}));return e}get dimensions(){let e=0;let t=0;this._cells.forEach((r=>{if(r&&r.type!==n.ValueType.Null){if(!e||e>r.col){e=r.col}if(t<r.col){t=r.col}}}));return e>0?{min:e,max:t}:null}_applyStyle(e,t){this.style[e]=t;this._cells.forEach((r=>{if(r){r[e]=t}}));return t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0;let r=0;this._cells.forEach((i=>{if(i){const n=i.model;if(n){if(!t||t>i.col){t=i.col}if(r<i.col){r=i.col}e.push(n)}}}));return this.height||e.length?{cells:e,number:this.number,min:t,max:r,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number){throw new Error("Invalid row number in model")}this._cells=[];let t;e.cells.forEach((e=>{switch(e.type){case o.Types.Merge:break;default:{let r;if(e.address){r=s.decodeAddress(e.address)}else if(t){const{row:e}=t;const i=t.col+1;r={row:e,col:i,address:s.encodeAddress(e,i),$col$row:`$${s.n2l(i)}$${e}`}}t=r;const i=this.getCellEx(r);i.model=e;break}}}));if(e.height){this.height=e.height}else{delete this.height}this.hidden=e.hidden;this.outlineLevel=e.outlineLevel||0;this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}e.exports=Row},6983:function(e,t,r){const i=r(6289);class Column{constructor(e,t,r){this.table=e;this.column=t;this.index=r}_set(e,t){this.table.cacheState();this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}class Table{constructor(e,t){this.worksheet=e;if(t){this.table=t;this.validate();this.store()}}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error(`Invalid Totals Row Function: ${e.totalsRowFunction}`)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:e}=this;const assign=(e,t,r)=>{if(e[t]===undefined){e[t]=r}};assign(e,"headerRow",true);assign(e,"totalsRow",false);assign(e,"style",{});assign(e.style,"theme","TableStyleMedium2");assign(e.style,"showFirstColumn",false);assign(e.style,"showLastColumn",false);assign(e.style,"showRowStripes",false);assign(e.style,"showColumnStripes",false);const assert=(e,t)=>{if(!e){throw new Error(t)}};assert(e.ref,"Table must have ref");assert(e.columns,"Table must have column definitions");assert(e.rows,"Table must have row definitions");e.tl=i.decodeAddress(e.ref);const{row:t,col:r}=e.tl;assert(t>0,"Table must be on valid row");assert(r>0,"Table must be on valid col");const{width:n,filterHeight:s,tableHeight:o}=this;e.autoFilterRef=i.encode(t,r,t+s-1,r+n-1);e.tableRef=i.encode(t,r,t+o-1,r+n-1);e.columns.forEach(((e,t)=>{assert(e.name,`Column ${t} must have a name`);if(t===0){assign(e,"totalsRowLabel","Total")}else{assign(e,"totalsRowFunction","none");e.totalsRowFormula=this.getFormula(e)}}))}store(){const assignStyle=(e,t)=>{if(t){Object.keys(t).forEach((r=>{e[r]=t[r]}))}};const{worksheet:e,table:t}=this;const{row:r,col:i}=t.tl;let n=0;if(t.headerRow){const s=e.getRow(r+n++);t.columns.forEach(((e,t)=>{const{style:r,name:n}=e;const o=s.getCell(i+t);o.value=n;assignStyle(o,r)}))}t.rows.forEach((s=>{const o=e.getRow(r+n++);s.forEach(((e,r)=>{const n=o.getCell(i+r);n.value=e;assignStyle(n,t.columns[r].style)}))}));if(t.totalsRow){const s=e.getRow(r+n++);t.columns.forEach(((e,t)=>{const r=s.getCell(i+t);if(t===0){r.value=e.totalsRowLabel}else{const t=this.getFormula(e);if(t){r.value={formula:e.totalsRowFormula,result:e.totalsRowResult}}else{r.value=null}}assignStyle(r,e.style)}))}}load(e){const{table:t}=this;const{row:r,col:i}=t.tl;let n=0;if(t.headerRow){const s=e.getRow(r+n++);t.columns.forEach(((e,t)=>{const r=s.getCell(i+t);r.value=e.name}))}t.rows.forEach((t=>{const s=e.getRow(r+n++);t.forEach(((e,t)=>{const r=s.getCell(i+t);r.value=e}))}));if(t.totalsRow){const s=e.getRow(r+n++);t.columns.forEach(((e,t)=>{const r=s.getCell(i+t);if(t===0){r.value=e.totalsRowLabel}else{const t=this.getFormula(e);if(t){r.value={formula:e.totalsRowFormula,result:e.totalsRowResult}}}}))}}get model(){return this.table}set model(e){this.table=e}cacheState(){if(!this._cache){this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight}}}commit(){if(!this._cache){return}this.validate();const e=i.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref){for(let t=0;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++){const i=r.getCell(e.col+t);i.value=null}}}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++){const i=r.getCell(e.col+t);i.value=null}}for(let t=0;t<this.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++){const i=r.getCell(e.col+t);i.value=null}}}this.store()}addRow(e,t){this.cacheState();if(t===undefined){this.table.rows.push(e)}else{this.table.rows.splice(t,0,e)}}removeRows(e,t=1){this.cacheState();this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new Column(this,t,e)}addColumn(e,t,r){this.cacheState();if(r===undefined){this.table.columns.push(e);this.table.rows.forEach(((e,r)=>{e.push(t[r])}))}else{this.table.columns.splice(r,0,e);this.table.rows.forEach(((e,i)=>{e.splice(r,0,t[i])}))}}removeColumns(e,t=1){this.cacheState();this.table.columns.splice(e,t);this.table.rows.forEach((r=>{r.splice(e,t)}))}_assign(e,t,r){this.cacheState();e[t]=r}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}e.exports=Table},6171:function(e,t,r){"use strict";const i=r(3867);const n=r(7707);const s=r(8117);const o=r(1589);class Workbook{constructor(){this.category="";this.company="";this.created=new Date;this.description="";this.keywords="";this.manager="";this.modified=this.created;this.properties={};this.calcProperties={};this._worksheets=[];this.subject="";this.title="";this.views=[];this.media=[];this._definedNames=new n}get xlsx(){if(!this._xlsx)this._xlsx=new s(this);return this._xlsx}get csv(){if(!this._csv)this._csv=new o(this);return this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++){if(!this._worksheets[e]){return e}}return this._worksheets.length||1}addWorksheet(e,t){const r=this.nextId;if(t){if(typeof t==="string"){console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }');t={properties:{tabColor:{argb:t}}}}else if(t.argb||t.theme||t.indexed){console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }");t={properties:{tabColor:t}}}}const n=this._worksheets.reduce(((e,t)=>(t&&t.orderNo)>e?t.orderNo:e),0);const s=Object.assign({},t,{id:r,name:e,orderNo:n+1,workbook:this});const o=new i(s);this._worksheets[r]=o;return o}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);if(t){t.destroy()}}getWorksheet(e){if(e===undefined){return this._worksheets.find(Boolean)}if(typeof e==="number"){return this._worksheets[e]}if(typeof e==="string"){return this._worksheets.find((t=>t&&t.name===e))}return undefined}get worksheets(){return this._worksheets.slice(1).sort(((e,t)=>e.orderNo-t.orderNo)).filter(Boolean)}eachSheet(e){this.worksheets.forEach((t=>{e(t,t.id)}))}get definedNames(){return this._definedNames}clearThemes(){this._themes=undefined}addImage(e){const t=this.media.length;this.media.push(Object.assign({},e,{type:"image"}));return t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((e=>e.model)),sheets:this.worksheets.map((e=>e.model)).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator;this.lastModifiedBy=e.lastModifiedBy;this.lastPrinted=e.lastPrinted;this.created=e.created;this.modified=e.modified;this.company=e.company;this.manager=e.manager;this.title=e.title;this.subject=e.subject;this.keywords=e.keywords;this.category=e.category;this.description=e.description;this.language=e.language;this.revision=e.revision;this.contentStatus=e.contentStatus;this.properties=e.properties;this.calcProperties=e.calcProperties;this._worksheets=[];e.worksheets.forEach((t=>{const{id:r,name:n,state:s}=t;const o=e.sheets&&e.sheets.findIndex((e=>e.id===r));const c=this._worksheets[r]=new i({id:r,name:n,orderNo:o,state:s,workbook:this});c.model=t}));this._definedNames.model=e.definedNames;this.views=e.views;this._themes=e.themes;this.media=e.media||[]}}e.exports=Workbook},3867:function(e,t,r){const i=r(2563);const n=r(6289);const s=r(2514);const o=r(7767);const c=r(6793);const h=r(4041);const p=r(5210);const g=r(6983);const y=r(2910);const v=r(1924);const{copyStyle:b}=r(7307);class Worksheet{constructor(e){e=e||{};this._workbook=e.workbook;this.id=e.id;this.orderNo=e.orderNo;this.name=e.name;this.state=e.state||"visible";this._rows=[];this._columns=null;this._keys={};this._merges={};this.rowBreaks=[];this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties);this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!(e.pageSetup&&(e.pageSetup.fitToWidth||e.pageSetup.fitToHeight)&&!e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:false,draft:false,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:undefined,showRowColHeaders:false,showGridLines:false,firstPageNumber:undefined,horizontalCentered:false,verticalCentered:false,rowBreaks:null,colBreaks:null},e.pageSetup);this.headerFooter=Object.assign({},{differentFirst:false,differentOddEven:false,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter);this.dataValidations=new y;this.views=e.views||[];this.autoFilter=e.autoFilter||null;this._media=[];this.sheetProtection=null;this.tables={};this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(e===undefined){e=`sheet${this.id}`}if(this._name===e)return;if(typeof e!=="string"){throw new Error("The name has to be a string.")}if(e===""){throw new Error("The name can't be empty.")}if(e==="History"){throw new Error('The name "History" is protected. Please use a different name.')}if(/[*?:/\\[\]]/.test(e)){throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`)}if(/(^')|('$)/.test(e)){throw new Error(`The first or last character of worksheet name cannot be a single quotation mark: ${e}`)}if(e&&e.length>31){console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`);e=e.substring(0,31)}if(this._workbook._worksheets.find((t=>t&&t.name.toLowerCase()===e.toLowerCase()))){throw new Error(`Worksheet name already exists: ${e}`)}this._name=e}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new s;this._rows.forEach((t=>{if(t){const r=t.dimensions;if(r){e.expand(t.number,r.min,t.number,r.max)}}}));return e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=t.header&&1||t.headers&&t.headers.length||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const i=new c(this,t++,false);r.push(i);i.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){i.each(this._keys,e)}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t)return t;e=n.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new c(this,t++))}}return this._columns[e-1]}spliceColumns(e,t,...r){const i=this._rows;const n=i.length;if(r.length>0){for(let i=0;i<n;i++){const n=[e,t];r.forEach((e=>{n.push(e[i]||null)}));const s=this.getRow(i+1);s.splice.apply(s,n)}}else{this._rows.forEach((r=>{if(r){r.splice(e,t)}}))}const s=r.length-t;const o=e+t;const c=this._columns.length;if(s<0){for(let t=e+r.length;t<=c;t++){this.getColumn(t).defn=this.getColumn(t-s).defn}}else if(s>0){for(let e=c;e>=o;e--){this.getColumn(e+s).defn=this.getColumn(e).defn}}for(let t=e;t<e+r.length;t++){this.getColumn(t).defn=null}this.workbook.definedNames.spliceColumns(this.name,e,t,r.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;this.eachRow((t=>{e=Math.max(e,t.cellCount)}));return e}get actualColumnCount(){const e=[];let t=0;this.eachRow((r=>{r.eachCell((({col:r})=>{if(!e[r]){e[r]=true;t++}}))}));return t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;while(t>0&&e[t-1]===undefined){t--}return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length){return this._rows[this._rows.length-1]}return undefined}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;this.eachRow((()=>{e++}));return e}getRow(e){let t=this._rows[e-1];if(!t){t=this._rows[e-1]=new o(this,e)}return t}getRows(e,t){if(t<1)return undefined;const r=[];for(let i=e;i<e+t;i++){r.push(this.getRow(i))}return r}addRow(e,t="n"){const r=this._nextRow;const i=this.getRow(r);i.values=e;this._setStyleOption(r,t[0]==="i"?t:"n");return i}addRows(e,t="n"){const r=[];e.forEach((e=>{r.push(this.addRow(e,t))}));return r}insertRow(e,t,r="n"){this.spliceRows(e,0,t);this._setStyleOption(e,r);return this.getRow(e)}insertRows(e,t,r="n"){this.spliceRows(e,0,...t);if(r!=="n"){for(let i=0;i<t.length;i++){if(r[0]==="o"&&this.findRow(t.length+e+i)!==undefined){this._copyStyle(t.length+e+i,e+i,r[1]==="+")}else if(r[0]==="i"&&this.findRow(e-1)!==undefined){this._copyStyle(e-1,e+i,r[1]==="+")}}}return this.getRows(e,t.length)}_setStyleOption(e,t="n"){if(t[0]==="o"&&this.findRow(e+1)!==undefined){this._copyStyle(e+1,e,t[1]==="+")}else if(t[0]==="i"&&this.findRow(e-1)!==undefined){this._copyStyle(e-1,e,t[1]==="+")}}_copyStyle(e,t,r=false){const i=this.getRow(e);const n=this.getRow(t);n.style=b(i.style);i.eachCell({includeEmpty:r},((e,t)=>{n.getCell(t).style=b(e.style)}));n.height=i.height}duplicateRow(e,t,r=false){const i=this._rows[e-1];const n=new Array(t).fill(i.values);this.spliceRows(e+1,r?0:t,...n);for(let r=0;r<t;r++){const t=this._rows[e+r];t.style=i.style;t.height=i.height;i.eachCell({includeEmpty:true},((e,r)=>{t.getCell(r).style=e.style}))}}spliceRows(e,t,...r){const i=e+t;const n=r.length;const s=n-t;const o=this._rows.length;let c;let h;if(s<0){if(e===o){this._rows[o-1]=undefined}for(c=i;c<=o;c++){h=this._rows[c-1];if(h){const e=this.getRow(c+s);e.values=h.values;e.style=h.style;e.height=h.height;h.eachCell({includeEmpty:true},((t,r)=>{e.getCell(r).style=t.style}));this._rows[c-1]=undefined}else{this._rows[c+s-1]=undefined}}}else if(s>0){for(c=o;c>=i;c--){h=this._rows[c-1];if(h){const e=this.getRow(c+s);e.values=h.values;e.style=h.style;e.height=h.height;h.eachCell({includeEmpty:true},((t,r)=>{e.getCell(r).style=t.style;if(t._value.constructor.name==="MergeValue"){const e=this.getRow(t._row._number+n).getCell(r);const i=t._value._master;const s=this.getRow(i._row._number+n).getCell(i._column._number);e.merge(s)}}))}else{this._rows[c+s-1]=undefined}}}for(c=0;c<n;c++){const t=this.getRow(e+c);t.style={};t.values=r[c]}this.workbook.definedNames.spliceRows(this.name,e,t,n)}eachRow(e,t){if(!t){t=e;e=undefined}if(e&&e.includeEmpty){const e=this._rows.length;for(let r=1;r<=e;r++){t(this.getRow(r),r)}}else{this._rows.forEach((e=>{if(e&&e.hasValues){t(e,e.number)}}))}}getSheetValues(){const e=[];this._rows.forEach((t=>{if(t){e[t.number]=t.values}}));return e}findCell(e,t){const r=n.getAddress(e,t);const i=this._rows[r.row-1];return i?i.findCell(r.col):undefined}getCell(e,t){const r=n.getAddress(e,t);const i=this.getRow(r.row);return i.getCellEx(r)}mergeCells(...e){const t=new s(e);this._mergeCellsInternal(t)}mergeCellsWithoutStyle(...e){const t=new s(e);this._mergeCellsInternal(t,true)}_mergeCellsInternal(e,t){i.each(this._merges,(t=>{if(t.intersects(e)){throw new Error("Cannot merge already merged cells")}}));const r=this.getCell(e.top,e.left);for(let i=e.top;i<=e.bottom;i++){for(let n=e.left;n<=e.right;n++){if(i>e.top||n>e.left){this.getCell(i,n).merge(r,t)}}}this._merges[r.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++){for(let r=t.left;r<=t.right;r++){this.getCell(e,r).unmerge()}}delete this._merges[e.address]}}get hasMerges(){return i.some(this._merges,Boolean)}unMergeCells(...e){const t=new s(e);for(let e=t.top;e<=t.bottom;e++){for(let r=t.left;r<=t.right;r++){const t=this.findCell(e,r);if(t){if(t.type===h.ValueType.Merge){this._unMergeMaster(t.master)}else if(this._merges[t.address]){this._unMergeMaster(t)}}}}}fillFormula(e,t,r,i="shared"){const s=n.decode(e);const{top:o,left:c,bottom:h,right:p}=s;const g=p-c+1;const y=n.encodeAddress(o,c);const v=i==="shared";let b;if(typeof r==="function"){b=r}else if(Array.isArray(r)){if(Array.isArray(r[0])){b=(e,t)=>r[e-o][t-c]}else{b=(e,t)=>r[(e-o)*g+(t-c)]}}else{b=()=>undefined}let _=true;for(let r=o;r<=h;r++){for(let n=c;n<=p;n++){if(_){this.getCell(r,n).value={shareType:i,formula:t,ref:e,result:b(r,n)};_=false}else{this.getCell(r,n).value=v?{sharedFormula:y,result:b(r,n)}:b(r,n)}}}}addImage(e,t){const r={type:"image",imageId:e,range:t};this._media.push(new p(this,r))}getImages(){return this._media.filter((e=>e.type==="image"))}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new p(this,t))}getBackgroundImageId(){const e=this._media.find((e=>e.type==="background"));return e&&e.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:true};if(t&&"spinCount"in t){t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5}if(e){this.sheetProtection.algorithmName="SHA-512";this.sheetProtection.saltValue=v.randomBytes(16).toString("base64");this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5;this.sheetProtection.hashValue=v.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)}if(t){this.sheetProtection=Object.assign(this.sheetProtection,t);if(!e&&"spinCount"in t){delete this.sheetProtection.spinCount}}r()}))}unprotect(){this.sheetProtection=null}addTable(e){const t=new g(this,e);this.tables[e.name]=t;return t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){if(typeof e==="number"){this.conditionalFormattings.splice(e,1)}else if(e instanceof Function){this.conditionalFormattings=this.conditionalFormattings.filter(e)}else{this.conditionalFormattings=[]}}get tabColor(){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor");return this.properties.tabColor}set tabColor(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor");this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((e=>e.model)),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((e=>e.model)),conditionalFormattings:this.conditionalFormattings};e.cols=c.toModel(this.columns);const t=e.rows=[];const r=e.dimensions=new s;this._rows.forEach((e=>{const i=e&&e.model;if(i){r.expand(i.number,i.min,i.number,i.max);t.push(i)}}));e.merges=[];i.each(this._merges,(t=>{e.merges.push(t.range)}));return e}_parseRows(e){this._rows=[];e.rows.forEach((e=>{const t=new o(this,e.number);this._rows[t.number-1]=t;t.model=e}))}_parseMergeCells(e){i.each(e.mergeCells,(e=>{this.mergeCellsWithoutStyle(e)}))}set model(e){this.name=e.name;this._columns=c.fromModel(this,e.cols);this._parseRows(e);this._parseMergeCells(e);this.dataValidations=new y(e.dataValidations);this.properties=e.properties;this.pageSetup=e.pageSetup;this.headerFooter=e.headerFooter;this.views=e.views;this.autoFilter=e.autoFilter;this._media=e.media.map((e=>new p(this,e)));this.sheetProtection=e.sheetProtection;this.tables=e.tables.reduce(((e,t)=>{const r=new g;r.model=t;e[t.name]=r;return e}),{});this.conditionalFormattings=e.conditionalFormattings}}e.exports=Worksheet},6181:function(e,t,r){const i={Workbook:r(6171),ModelContainer:r(7275),stream:{xlsx:{WorkbookWriter:r(479),WorkbookReader:r(6623)}}};Object.assign(i,r(4041));e.exports=i},953:function(e,t,r){const{EventEmitter:i}=r(4434);const n=r(4354);const s=r(4041);const o=r(8496);class HyperlinkReader extends i{constructor({workbook:e,id:t,iterator:r,options:i}){super();this.workbook=e;this.id=t;this.iterator=r;this.options=i}get count(){return this.hyperlinks&&this.hyperlinks.length||0}each(e){return this.hyperlinks.forEach(e)}async read(){const{iterator:e,options:t}=this;let r=false;let i=null;switch(t.hyperlinks){case"emit":r=true;break;case"cache":this.hyperlinks=i={};break;default:break}if(!r&&!i){this.emit("finished");return}try{for await(const t of n(e)){for(const{eventType:e,value:n}of t){if(e==="opentag"){const e=n;if(e.name==="Relationship"){const t=e.attributes.Id;switch(e.attributes.Type){case o.Hyperlink:{const n={type:s.RelationshipType.Styles,rId:t,target:e.attributes.Target,targetMode:e.attributes.TargetMode};if(r){this.emit("hyperlink",n)}else{i[n.rId]=n}}break;default:break}}}}}this.emit("finished")}catch(e){this.emit("error",e)}}}e.exports=HyperlinkReader},7643:function(e,t,r){const i=r(8674);const n=r(8496);const s=r(6289);const o=r(2781);const c=r(2007);class SheetCommentsWriter{constructor(e,t,r){this.id=r.id;this.count=0;this._worksheet=e;this._workbook=r.workbook;this._sheetRelsWriter=t}get commentsStream(){if(!this._commentsStream){this._commentsStream=this._workbook._openStream(`/xl/comments${this.id}.xml`)}return this._commentsStream}get vmlStream(){if(!this._vmlStream){this._vmlStream=this._workbook._openStream(`xl/drawings/vmlDrawing${this.id}.vml`)}return this._vmlStream}_addRelationships(){const e={Type:n.Comments,Target:`../comments${this.id}.xml`};this._sheetRelsWriter.addRelationship(e);const t={Type:n.VmlDrawing,Target:`../drawings/vmlDrawing${this.id}.vml`};this.vmlRelId=this._sheetRelsWriter.addRelationship(t)}_addCommentRefs(){this._workbook.commentRefs.push({commentName:`comments${this.id}`,vmlDrawing:`vmlDrawing${this.id}`})}_writeOpen(){this.commentsStream.write('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+'<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">'+"<authors><author>Author</author></authors>"+"<commentList>");this.vmlStream.write('<?xml version="1.0" encoding="UTF-8"?>'+'<xml xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">'+'<o:shapelayout v:ext="edit">'+'<o:idmap v:ext="edit" data="1" />'+"</o:shapelayout>"+'<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">'+'<v:stroke joinstyle="miter" />'+'<v:path gradientshapeok="t" o:connecttype="rect" />'+"</v:shapetype>")}_writeComment(e,t){const r=new o;const n=new i;r.render(n,e);this.commentsStream.write(n.xml);const s=new c;const h=new i;s.render(h,e,t);this.vmlStream.write(h.xml)}_writeClose(){this.commentsStream.write("</commentList></comments>");this.vmlStream.write("</xml>")}addComments(e){if(e&&e.length){if(!this.startedData){this._worksheet.comments=[];this._writeOpen();this._addRelationships();this._addCommentRefs();this.startedData=true}e.forEach((e=>{e.refAddress=s.decodeAddress(e.ref)}));e.forEach((e=>{this._writeComment(e,this.count);this.count+=1}))}}commit(){if(this.count){this._writeClose();this.commentsStream.end();this.vmlStream.end()}}}e.exports=SheetCommentsWriter},1393:function(e,t,r){const i=r(9145);const n=r(8496);class HyperlinksProxy{constructor(e){this.writer=e}push(e){this.writer.addHyperlink(e)}}class SheetRelsWriter{constructor(e){this.id=e.id;this.count=0;this._hyperlinks=[];this._workbook=e.workbook}get stream(){if(!this._stream){this._stream=this._workbook._openStream(`/xl/worksheets/_rels/sheet${this.id}.xml.rels`)}return this._stream}get length(){return this._hyperlinks.length}each(e){return this._hyperlinks.forEach(e)}get hyperlinksProxy(){return this._hyperlinksProxy||(this._hyperlinksProxy=new HyperlinksProxy(this))}addHyperlink(e){const t={Target:e.target,Type:n.Hyperlink,TargetMode:"External"};const r=this._writeRelationship(t);this._hyperlinks.push({rId:r,address:e.address})}addMedia(e){return this._writeRelationship(e)}addRelationship(e){return this._writeRelationship(e)}commit(){if(this.count){this._writeClose();this.stream.end()}}_writeOpen(){this.stream.write(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">`)}_writeRelationship(e){if(!this.count){this._writeOpen()}const t=`rId${++this.count}`;if(e.TargetMode){this.stream.write(`<Relationship Id="${t}"`+` Type="${e.Type}"`+` Target="${i.xmlEncode(e.Target)}"`+` TargetMode="${e.TargetMode}"`+"/>")}else{this.stream.write(`<Relationship Id="${t}" Type="${e.Type}" Target="${e.Target}"/>`)}return t}_writeClose(){this.stream.write("</Relationships>")}}e.exports=SheetRelsWriter},6623:function(e,t,r){const i=r(9896);const{EventEmitter:n}=r(4434);const{PassThrough:s,Readable:o}=r(1643);const c=r(2203);const h=r(4274);const p=r(7928);const g=r(6247);const y=r(4354);const v=r(458);const b=r(9312);const _=r(7861);const w=r(543);const x=r(953);p.setGracefulCleanup();class WorkbookReader extends n{constructor(e,t={}){super();this.input=e;this.options={worksheets:"emit",sharedStrings:"cache",hyperlinks:"ignore",styles:"ignore",entries:"ignore",...t};this.styles=new v;this.styles.init()}_getStream(e){if(e instanceof c.Readable||e instanceof o){return e}if(typeof e==="string"){return i.createReadStream(e)}throw new Error(`Could not recognise input: ${e}`)}async read(e,t){try{for await(const{eventType:r,value:i}of this.parse(e,t)){switch(r){case"shared-strings":this.emit(r,i);break;case"worksheet":this.emit(r,i);await i.read();break;case"hyperlinks":this.emit(r,i);break}}this.emit("end");this.emit("finished")}catch(e){this.emit("error",e)}}async*[Symbol.asyncIterator](){for await(const{eventType:e,value:t}of this.parse()){if(e==="worksheet"){yield t}}}async*parse(e,t){if(t)this.options=t;const r=this.stream=this._getStream(e||this.input);const n=h.Parse({forceStream:true});r.pipe(n);const o=[];for await(const e of g(n)){let t;let r;switch(e.path){case"_rels/.rels":break;case"xl/_rels/workbook.xml.rels":await this._parseRels(e);break;case"xl/workbook.xml":await this._parseWorkbook(e);break;case"xl/sharedStrings.xml":yield*this._parseSharedStrings(e);break;case"xl/styles.xml":await this._parseStyles(e);break;default:if(e.path.match(/xl\/worksheets\/sheet\d+[.]xml/)){t=e.path.match(/xl\/worksheets\/sheet(\d+)[.]xml/);r=t[1];if(this.sharedStrings&&this.workbookRels){yield*this._parseWorksheet(g(e),r)}else{await new Promise(((t,n)=>{p.file(((s,c,h,p)=>{if(s){return n(s)}o.push({sheetNo:r,path:c,tempFileCleanupCallback:p});const g=i.createWriteStream(c);g.on("error",n);e.pipe(g);return g.on("finish",(()=>t()))}))}))}}else if(e.path.match(/xl\/worksheets\/_rels\/sheet\d+[.]xml.rels/)){t=e.path.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/);r=t[1];yield*this._parseHyperlinks(g(e),r)}break}e.autodrain()}for(const{sheetNo:e,path:t,tempFileCleanupCallback:r}of o){let n=i.createReadStream(t);if(!n[Symbol.asyncIterator]){n=n.pipe(new s)}yield*this._parseWorksheet(n,e);r()}}_emitEntry(e){if(this.options.entries==="emit"){this.emit("entry",e)}}async _parseRels(e){const t=new _;this.workbookRels=await t.parseStream(g(e))}async _parseWorkbook(e){this._emitEntry({type:"workbook"});const t=new b;await t.parseStream(g(e));this.properties=t.map.workbookPr;this.model=t.model}async*_parseSharedStrings(e){this._emitEntry({type:"shared-strings"});switch(this.options.sharedStrings){case"cache":this.sharedStrings=[];break;case"emit":break;default:return}let t=null;let r=[];let i=0;let n=null;for await(const s of y(g(e))){for(const{eventType:e,value:o}of s){if(e==="opentag"){const e=o;switch(e.name){case"b":n=n||{};n.bold=true;break;case"charset":n=n||{};n.charset=parseInt(e.attributes.charset,10);break;case"color":n=n||{};n.color={};if(e.attributes.rgb){n.color.argb=e.attributes.argb}if(e.attributes.val){n.color.argb=e.attributes.val}if(e.attributes.theme){n.color.theme=e.attributes.theme}break;case"family":n=n||{};n.family=parseInt(e.attributes.val,10);break;case"i":n=n||{};n.italic=true;break;case"outline":n=n||{};n.outline=true;break;case"rFont":n=n||{};n.name=e.value;break;case"si":n=null;r=[];t=null;break;case"sz":n=n||{};n.size=parseInt(e.attributes.val,10);break;case"strike":break;case"t":t=null;break;case"u":n=n||{};n.underline=true;break;case"vertAlign":n=n||{};n.vertAlign=e.attributes.val;break}}else if(e==="text"){t=t?t+o:o}else if(e==="closetag"){const e=o;switch(e.name){case"r":r.push({font:n,text:t});n=null;t=null;break;case"si":if(this.options.sharedStrings==="cache"){this.sharedStrings.push(r.length?{richText:r}:t)}else if(this.options.sharedStrings==="emit"){yield{index:i++,text:r.length?{richText:r}:t}}r=[];n=null;t=null;break}}}}}async _parseStyles(e){this._emitEntry({type:"styles"});if(this.options.styles==="cache"){this.styles=new v;await this.styles.parseStream(g(e))}}*_parseWorksheet(e,t){this._emitEntry({type:"worksheet",id:t});const r=new w({workbook:this,id:t,iterator:e,options:this.options});const i=(this.workbookRels||[]).find((e=>e.Target===`worksheets/sheet${t}.xml`));const n=i&&(this.model.sheets||[]).find((e=>e.rId===i.Id));if(n){r.id=n.id;r.name=n.name;r.state=n.state}if(this.options.worksheets==="emit"){yield{eventType:"worksheet",value:r}}}*_parseHyperlinks(e,t){this._emitEntry({type:"hyperlinks",id:t});const r=new x({workbook:this,id:t,iterator:e,options:this.options});if(this.options.hyperlinks==="emit"){yield{eventType:"hyperlinks",value:r}}}}WorkbookReader.Options={worksheets:["emit","ignore"],sharedStrings:["cache","emit","ignore"],hyperlinks:["cache","emit","ignore"],styles:["cache","ignore"],entries:["emit","ignore"]};e.exports=WorkbookReader},479:function(e,t,r){const i=r(9896);const n=r(1538);const s=r(6);const o=r(8496);const c=r(458);const h=r(6212);const p=r(7707);const g=r(9505);const y=r(7861);const v=r(5919);const b=r(7661);const _=r(9312);const w=r(2647);const x=r(4047);const S=r(2260);class WorkbookWriter{constructor(e){e=e||{};this.created=e.created||new Date;this.modified=e.modified||this.created;this.creator=e.creator||"ExcelJS";this.lastModifiedBy=e.lastModifiedBy||"ExcelJS";this.lastPrinted=e.lastPrinted;this.useSharedStrings=e.useSharedStrings||false;this.sharedStrings=new h;this.styles=e.useStyles?new c(true):new c.Mock(true);this._definedNames=new p;this._worksheets=[];this.views=[];this.zipOptions=e.zip;this.media=[];this.commentRefs=[];this.zip=n("zip",this.zipOptions);if(e.stream){this.stream=e.stream}else if(e.filename){this.stream=i.createWriteStream(e.filename)}else{this.stream=new s}this.zip.pipe(this.stream);this.promise=Promise.all([this.addThemes(),this.addOfficeRels()])}get definedNames(){return this._definedNames}_openStream(e){const t=new s({bufSize:65536,batch:true});this.zip.append(t,{name:e});t.on("finish",(()=>{t.emit("zipped")}));return t}_commitWorksheets(){const commitWorksheet=function(e){if(!e.committed){return new Promise((t=>{e.stream.on("zipped",(()=>{t()}));e.commit()}))}return Promise.resolve()};const e=this._worksheets.map(commitWorksheet);if(e.length){return Promise.all(e)}return Promise.resolve()}async commit(){await this.promise;await this.addMedia();await this._commitWorksheets();await Promise.all([this.addContentTypes(),this.addApp(),this.addCore(),this.addSharedStrings(),this.addStyles(),this.addWorkbookRels()]);await this.addWorkbook();return this._finalize()}get nextId(){let e;for(e=1;e<this._worksheets.length;e++){if(!this._worksheets[e]){return e}}return this._worksheets.length||1}addImage(e){const t=this.media.length;const r=Object.assign({},e,{type:"image",name:`image${t}.${e.extension}`});this.media.push(r);return t}getImage(e){return this.media[e]}addWorksheet(e,t){t=t||{};const r=t.useSharedStrings!==undefined?t.useSharedStrings:this.useSharedStrings;if(t.tabColor){console.trace("tabColor option has moved to { properties: tabColor: {...} }");t.properties=Object.assign({tabColor:t.tabColor},t.properties)}const i=this.nextId;e=e||`sheet${i}`;const n=new x({id:i,name:e,workbook:this,useSharedStrings:r,properties:t.properties,state:t.state,pageSetup:t.pageSetup,views:t.views,autoFilter:t.autoFilter,headerFooter:t.headerFooter});this._worksheets[i]=n;return n}getWorksheet(e){if(e===undefined){return this._worksheets.find((()=>true))}if(typeof e==="number"){return this._worksheets[e]}if(typeof e==="string"){return this._worksheets.find((t=>t&&t.name===e))}return undefined}addStyles(){return new Promise((e=>{this.zip.append(this.styles.xml,{name:"xl/styles.xml"});e()}))}addThemes(){return new Promise((e=>{this.zip.append(S,{name:"xl/theme/theme1.xml"});e()}))}addOfficeRels(){return new Promise((e=>{const t=new y;const r=t.toXml([{Id:"rId1",Type:o.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:o.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:o.ExtenderProperties,Target:"docProps/app.xml"}]);this.zip.append(r,{name:"/_rels/.rels"});e()}))}addContentTypes(){return new Promise((e=>{const t={worksheets:this._worksheets.filter(Boolean),sharedStrings:this.sharedStrings,commentRefs:this.commentRefs,media:this.media};const r=new v;const i=r.toXml(t);this.zip.append(i,{name:"[Content_Types].xml"});e()}))}addMedia(){return Promise.all(this.media.map((e=>{if(e.type==="image"){const t=`xl/media/${e.name}`;if(e.filename){return this.zip.file(e.filename,{name:t})}if(e.buffer){return this.zip.append(e.buffer,{name:t})}if(e.base64){const r=e.base64;const i=r.substring(r.indexOf(",")+1);return this.zip.append(i,{name:t,base64:true})}}throw new Error("Unsupported media")})))}addApp(){return new Promise((e=>{const t={worksheets:this._worksheets.filter(Boolean)};const r=new b;const i=r.toXml(t);this.zip.append(i,{name:"docProps/app.xml"});e()}))}addCore(){return new Promise((e=>{const t=new g;const r=t.toXml(this);this.zip.append(r,{name:"docProps/core.xml"});e()}))}addSharedStrings(){if(this.sharedStrings.count){return new Promise((e=>{const t=new w;const r=t.toXml(this.sharedStrings);this.zip.append(r,{name:"/xl/sharedStrings.xml"});e()}))}return Promise.resolve()}addWorkbookRels(){let e=1;const t=[{Id:`rId${e++}`,Type:o.Styles,Target:"styles.xml"},{Id:`rId${e++}`,Type:o.Theme,Target:"theme/theme1.xml"}];if(this.sharedStrings.count){t.push({Id:`rId${e++}`,Type:o.SharedStrings,Target:"sharedStrings.xml"})}this._worksheets.forEach((r=>{if(r){r.rId=`rId${e++}`;t.push({Id:r.rId,Type:o.Worksheet,Target:`worksheets/sheet${r.id}.xml`})}}));return new Promise((e=>{const r=new y;const i=r.toXml(t);this.zip.append(i,{name:"/xl/_rels/workbook.xml.rels"});e()}))}addWorkbook(){const{zip:e}=this;const t={worksheets:this._worksheets.filter(Boolean),definedNames:this._definedNames.model,views:this.views,properties:{},calcProperties:{}};return new Promise((r=>{const i=new _;i.prepare(t);e.append(i.toXml(t),{name:"/xl/workbook.xml"});r()}))}_finalize(){return new Promise(((e,t)=>{this.stream.on("error",t);this.stream.on("finish",(()=>{e(this)}));this.zip.on("error",t);this.zip.finalize()}))}}e.exports=WorkbookWriter},543:function(e,t,r){const{EventEmitter:i}=r(4434);const n=r(4354);const s=r(2563);const o=r(9145);const c=r(6289);const h=r(2514);const p=r(7767);const g=r(6793);class WorksheetReader extends i{constructor({workbook:e,id:t,iterator:r,options:i}){super();this.workbook=e;this.id=t;this.iterator=r;this.options=i||{};this.name=`Sheet${this.id}`;this._columns=null;this._keys={};this._dimensions=new h}destroy(){throw new Error("Invalid Operation: destroy")}get dimensions(){return this._dimensions}get columns(){return this._columns}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t){return t}e=c.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new g(this,t++))}}return this._columns[e-1]}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){s.each(this._keys,e)}async read(){try{for await(const e of this.parse()){for(const{eventType:t,value:r}of e){this.emit(t,r)}}this.emit("finished")}catch(e){this.emit("error",e)}}async*[Symbol.asyncIterator](){for await(const e of this.parse()){for(const{eventType:t,value:r}of e){if(t==="row"){yield r}}}}async*parse(){const{iterator:e,options:t}=this;let r=false;let i=false;let s=null;switch(t.worksheets){case"emit":r=true;break;case"prep":break;default:break}switch(t.hyperlinks){case"emit":i=true;break;case"cache":this.hyperlinks=s={};break;default:break}if(!r&&!i&&!s){return}const{sharedStrings:h,styles:y,properties:v}=this.workbook;let b=false;let _=false;let w=false;let x=null;let S=null;let k=null;let C=null;for await(const t of n(e)){const e=[];for(const{eventType:n,value:E}of t){if(n==="opentag"){const t=E;if(r){switch(t.name){case"cols":b=true;x=[];break;case"sheetData":_=true;break;case"col":if(b){x.push({min:parseInt(t.attributes.min,10),max:parseInt(t.attributes.max,10),width:parseFloat(t.attributes.width),styleId:parseInt(t.attributes.style||"0",10)})}break;case"row":if(_){const e=parseInt(t.attributes.r,10);S=new p(this,e);if(t.attributes.ht){S.height=parseFloat(t.attributes.ht)}if(t.attributes.s){const e=parseInt(t.attributes.s,10);const r=y.getStyleModel(e);if(r){S.style=r}}}break;case"c":if(S){k={ref:t.attributes.r,s:parseInt(t.attributes.s,10),t:t.attributes.t}}break;case"f":if(k){C=k.f={text:""}}break;case"v":if(k){C=k.v={text:""}}break;case"is":case"t":if(k){C=k.v={text:""}}break;case"mergeCell":break;default:break}}if(i||s){switch(t.name){case"hyperlinks":w=true;break;case"hyperlink":if(w){const r={ref:t.attributes.ref,rId:t.attributes["r:id"]};if(i){e.push({eventType:"hyperlink",value:r})}else{s[r.ref]=r}}break;default:break}}}else if(n==="text"){if(r){if(C){C.text+=E}}}else if(n==="closetag"){const t=E;if(r){switch(t.name){case"cols":b=false;this._columns=g.fromModel(x);break;case"sheetData":_=false;break;case"row":this._dimensions.expandRow(S);e.push({eventType:"row",value:S});S=null;break;case"c":if(S&&k){const e=c.decodeAddress(k.ref);const t=S.getCell(e.col);if(k.s){const e=y.getStyleModel(k.s);if(e){t.style=e}}if(k.f){const e={formula:k.f.text};if(k.v){if(k.t==="str"){e.result=o.xmlDecode(k.v.text)}else{e.result=parseFloat(k.v.text)}}t.value=e}else if(k.v){switch(k.t){case"s":{const e=parseInt(k.v.text,10);if(h){t.value=h[e]}else{t.value={sharedString:e}}break}case"inlineStr":case"str":t.value=o.xmlDecode(k.v.text);break;case"e":t.value={error:k.v.text};break;case"b":t.value=parseInt(k.v.text,10)!==0;break;default:if(o.isDateFmt(t.numFmt)){t.value=o.excelToDate(parseFloat(k.v.text),v.model&&v.model.date1904)}else{t.value=parseFloat(k.v.text)}break}}if(s){const e=s[k.ref];if(e){t.text=t.value;t.value=undefined;t.hyperlink=e}}k=null}break;default:break}}if(i||s){switch(t.name){case"hyperlinks":w=false;break;default:break}}}}if(e.length>0){yield e}}}}e.exports=WorksheetReader},4047:function(e,t,r){const i=r(2563);const n=r(8496);const s=r(6289);const o=r(1924);const c=r(2514);const h=r(5471);const p=r(7767);const g=r(6793);const y=r(1393);const v=r(7643);const b=r(2910);const _=new h;const w=r(6422);const x=r(8700);const S=r(3305);const k=r(1731);const C=r(6004);const E=r(8858);const R=r(3248);const O=r(341);const A=r(6303);const I=r(5575);const P=r(4437);const N=r(1350);const F=r(3948);const D=r(7833);const L=r(6041);const B=r(5089);const M={dataValidations:new x,sheetProperties:new S,sheetFormatProperties:new k,columns:new w({tag:"cols",length:false,childXform:new C}),row:new E,hyperlinks:new w({tag:"hyperlinks",length:false,childXform:new R}),sheetViews:new w({tag:"sheetViews",length:false,childXform:new O}),sheetProtection:new A,pageMargins:new I,pageSeteup:new P,autoFilter:new N,picture:new F,conditionalFormattings:new D,headerFooter:new L,rowBreaks:new B};class WorksheetWriter{constructor(e){this.id=e.id;this.name=e.name||`Sheet${this.id}`;this.state=e.state||"visible";this._rows=[];this._columns=null;this._keys={};this._merges=[];this._merges.add=function(){};this._sheetRelsWriter=new y(e);this._sheetCommentsWriter=new v(this,this._sheetRelsWriter,e);this._dimensions=new c;this._rowZero=1;this.committed=false;this.dataValidations=new b;this._formulae={};this._siFormulae=0;this.conditionalFormatting=[];this.rowBreaks=[];this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties);this.headerFooter=Object.assign({},{differentFirst:false,differentOddEven:false,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter);this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!(e.pageSetup&&(e.pageSetup.fitToWidth||e.pageSetup.fitToHeight)&&!e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:false,draft:false,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:undefined,showRowColHeaders:false,showGridLines:false,horizontalCentered:false,verticalCentered:false,rowBreaks:null,colBreaks:null},e.pageSetup);this.useSharedStrings=e.useSharedStrings||false;this._workbook=e.workbook;this.hasComments=false;this._views=e.views||[];this.autoFilter=e.autoFilter||null;this._media=[];this.sheetProtection=null;this._writeOpenWorksheet();this.startedData=false}get workbook(){return this._workbook}get stream(){if(!this._stream){this._stream=this._workbook._openStream(`/xl/worksheets/sheet${this.id}.xml`);this._stream.pause()}return this._stream}destroy(){throw new Error("Invalid Operation: destroy")}commit(){if(this.committed){return}this._rows.forEach((e=>{if(e){this._writeRow(e)}}));this._rows=null;if(!this.startedData){this._writeOpenSheetData()}this._writeCloseSheetData();this._writeAutoFilter();this._writeMergeCells();this._writeHyperlinks();this._writeConditionalFormatting();this._writeDataValidations();this._writeSheetProtection();this._writePageMargins();this._writePageSetup();this._writeBackground();this._writeHeaderFooter();this._writeRowBreaks();this._writeLegacyData();this._writeCloseWorksheet();this.stream.end();this._sheetCommentsWriter.commit();this._sheetRelsWriter.commit();this.committed=true}get dimensions(){return this._dimensions}get views(){return this._views}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=t.header&&1||t.headers&&t.headers.length||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const i=new g(this,t++,false);r.push(i);i.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){i.each(this._keys,e)}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t)return t;e=s.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new g(this,t++))}}return this._columns[e-1]}get _nextRow(){return this._rowZero+this._rows.length}eachRow(e,t){if(!t){t=e;e=undefined}if(e&&e.includeEmpty){const e=this._nextRow;for(let r=this._rowZero;r<e;r++){t(this.getRow(r),r)}}else{this._rows.forEach((e=>{if(e.hasValues){t(e,e.number)}}))}}_commitRow(e){let t=false;while(this._rows.length&&!t){const r=this._rows.shift();this._rowZero++;if(r){this._writeRow(r);t=r.number===e.number;this._rowZero=r.number+1}}}get lastRow(){if(this._rows.length){return this._rows[this._rows.length-1]}return undefined}findRow(e){const t=e-this._rowZero;return this._rows[t]}getRow(e){const t=e-this._rowZero;if(t<0){throw new Error("Out of bounds: this row has been committed")}let r=this._rows[t];if(!r){this._rows[t]=r=new p(this,e)}return r}addRow(e){const t=new p(this,this._nextRow);this._rows[t.number-this._rowZero]=t;t.values=e;return t}findCell(e,t){const r=s.getAddress(e,t);const i=this.findRow(r.row);return i?i.findCell(r.column):undefined}getCell(e,t){const r=s.getAddress(e,t);const i=this.getRow(r.row);return i.getCellEx(r)}mergeCells(...e){const t=new c(e);this._merges.forEach((e=>{if(e.intersects(t)){throw new Error("Cannot merge already merged cells")}}));const r=this.getCell(t.top,t.left);for(let e=t.top;e<=t.bottom;e++){for(let i=t.left;i<=t.right;i++){if(e>t.top||i>t.left){this.getCell(e,i).merge(r)}}}this._merges.push(t)}addConditionalFormatting(e){this.conditionalFormatting.push(e)}removeConditionalFormatting(e){if(typeof e==="number"){this.conditionalFormatting.splice(e,1)}else if(e instanceof Function){this.conditionalFormatting=this.conditionalFormatting.filter(e)}else{this.conditionalFormatting=[]}}addBackgroundImage(e){this._background={imageId:e}}getBackgroundImageId(){return this._background&&this._background.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:true};if(t&&"spinCount"in t){t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5}if(e){this.sheetProtection.algorithmName="SHA-512";this.sheetProtection.saltValue=o.randomBytes(16).toString("base64");this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5;this.sheetProtection.hashValue=o.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)}if(t){this.sheetProtection=Object.assign(this.sheetProtection,t);if(!e&&"spinCount"in t){delete this.sheetProtection.spinCount}}r()}))}unprotect(){this.sheetProtection=null}_write(e){_.reset();_.addText(e);this.stream.write(_)}_writeSheetProperties(e,t,r){const i={outlineProperties:t&&t.outlineProperties,tabColor:t&&t.tabColor,pageSetup:r&&r.fitToPage?{fitToPage:r.fitToPage}:undefined};e.addText(M.sheetProperties.toXml(i))}_writeSheetFormatProperties(e,t){const r=t?{defaultRowHeight:t.defaultRowHeight,dyDescent:t.dyDescent,outlineLevelCol:t.outlineLevelCol,outlineLevelRow:t.outlineLevelRow}:undefined;if(t.defaultColWidth){r.defaultColWidth=t.defaultColWidth}e.addText(M.sheetFormatProperties.toXml(r))}_writeOpenWorksheet(){_.reset();_.addText('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');_.addText('<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"'+' xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"'+' xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"'+' mc:Ignorable="x14ac"'+' xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">');this._writeSheetProperties(_,this.properties,this.pageSetup);_.addText(M.sheetViews.toXml(this.views));this._writeSheetFormatProperties(_,this.properties);this.stream.write(_)}_writeColumns(){const e=g.toModel(this.columns);if(e){M.columns.prepare(e,{styles:this._workbook.styles});this.stream.write(M.columns.toXml(e))}}_writeOpenSheetData(){this._write("<sheetData>")}_writeRow(e){if(!this.startedData){this._writeColumns();this._writeOpenSheetData();this.startedData=true}if(e.hasValues||e.height){const{model:t}=e;const r={styles:this._workbook.styles,sharedStrings:this.useSharedStrings?this._workbook.sharedStrings:undefined,hyperlinks:this._sheetRelsWriter.hyperlinksProxy,merges:this._merges,formulae:this._formulae,siFormulae:this._siFormulae,comments:[]};M.row.prepare(t,r);this.stream.write(M.row.toXml(t));if(r.comments.length){this.hasComments=true;this._sheetCommentsWriter.addComments(r.comments)}}}_writeCloseSheetData(){this._write("</sheetData>")}_writeMergeCells(){if(this._merges.length){_.reset();_.addText(`<mergeCells count="${this._merges.length}">`);this._merges.forEach((e=>{_.addText(`<mergeCell ref="${e}"/>`)}));_.addText("</mergeCells>");this.stream.write(_)}}_writeHyperlinks(){this.stream.write(M.hyperlinks.toXml(this._sheetRelsWriter._hyperlinks))}_writeConditionalFormatting(){const e={styles:this._workbook.styles};M.conditionalFormattings.prepare(this.conditionalFormatting,e);this.stream.write(M.conditionalFormattings.toXml(this.conditionalFormatting))}_writeRowBreaks(){this.stream.write(M.rowBreaks.toXml(this.rowBreaks))}_writeDataValidations(){this.stream.write(M.dataValidations.toXml(this.dataValidations.model))}_writeSheetProtection(){this.stream.write(M.sheetProtection.toXml(this.sheetProtection))}_writePageMargins(){this.stream.write(M.pageMargins.toXml(this.pageSetup.margins))}_writePageSetup(){this.stream.write(M.pageSeteup.toXml(this.pageSetup))}_writeHeaderFooter(){this.stream.write(M.headerFooter.toXml(this.headerFooter))}_writeAutoFilter(){this.stream.write(M.autoFilter.toXml(this.autoFilter))}_writeBackground(){if(this._background){if(this._background.imageId!==undefined){const e=this._workbook.getImage(this._background.imageId);const t=this._sheetRelsWriter.addMedia({Target:`../media/${e.name}`,Type:n.Image});this._background={...this._background,rId:t}}this.stream.write(M.picture.toXml({rId:this._background.rId}))}}_writeLegacyData(){if(this.hasComments){_.reset();_.addText(`<legacyDrawing r:id="${this._sheetCommentsWriter.vmlRelId}"/>`);this.stream.write(_)}}_writeDimensions(){}_writeCloseWorksheet(){this._write("</worksheet>")}}e.exports=WorksheetWriter},4386:function(e,t){const r=typeof TextDecoder==="undefined"?null:new TextDecoder("utf-8");function bufferToString(e){if(typeof e==="string"){return e}if(r){return r.decode(e)}return e.toString()}t.bufferToString=bufferToString},1734:function(e,t,r){const i=typeof TextEncoder==="undefined"?null:new TextEncoder("utf-8");const{Buffer:n}=r(181);function stringToBuffer(e){if(typeof e!=="string"){return e}if(i){return n.from(i.encode(e).buffer)}return n.from(e)}t.stringToBuffer=stringToBuffer},7410:function(e,t,r){const i=r(2563);const n=r(6289);class CellMatrix{constructor(e){this.template=e;this.sheets={}}addCell(e){this.addCellEx(n.decodeEx(e))}getCell(e){return this.findCellEx(n.decodeEx(e),true)}findCell(e){return this.findCellEx(n.decodeEx(e),false)}findCellAt(e,t,r){const i=this.sheets[e];const n=i&&i[t];return n&&n[r]}addCellEx(e){if(e.top){for(let t=e.top;t<=e.bottom;t++){for(let r=e.left;r<=e.right;r++){this.getCellAt(e.sheetName,t,r)}}}else{this.findCellEx(e,true)}}getCellEx(e){return this.findCellEx(e,true)}findCellEx(e,t){const r=this.findSheet(e,t);const i=this.findSheetRow(r,e,t);return this.findRowCell(i,e,t)}getCellAt(e,t,r){const i=this.sheets[e]||(this.sheets[e]=[]);const s=i[t]||(i[t]=[]);const o=s[r]||(s[r]={sheetName:e,address:n.n2l(r)+t,row:t,col:r});return o}removeCellEx(e){const t=this.findSheet(e);if(!t){return}const r=this.findSheetRow(t,e);if(!r){return}delete r[e.col]}forEachInSheet(e,t){const r=this.sheets[e];if(r){r.forEach(((e,r)=>{if(e){e.forEach(((e,i)=>{if(e){t(e,r,i)}}))}}))}}forEach(e){i.each(this.sheets,((t,r)=>{this.forEachInSheet(r,e)}))}map(e){const t=[];this.forEach((r=>{t.push(e(r))}));return t}findSheet(e,t){const r=e.sheetName;if(this.sheets[r]){return this.sheets[r]}if(t){return this.sheets[r]=[]}return undefined}findSheetRow(e,t,r){const{row:i}=t;if(e&&e[i]){return e[i]}if(r){return e[i]=[]}return undefined}findRowCell(e,t,r){const{col:i}=t;if(e&&e[i]){return e[i]}if(r){return e[i]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t}return undefined}spliceRows(e,t,r,i){const n=this.sheets[e];if(n){const e=[];for(let t=0;t<i;t++){e.push([])}n.splice(t,r,...e)}}spliceColumns(e,t,r,n){const s=this.sheets[e];if(s){const e=[];for(let t=0;t<n;t++){e.push(null)}i.each(s,(i=>{i.splice(t,r,...e)}))}}}e.exports=CellMatrix},6289:function(e){const t=/^[A-Z]+\d+$/;const r={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level(e){if(e<=26){return 1}if(e<=26*26){return 2}return 3},_fill(e){let t;let r;let i;let n;let s;let o=1;if(e>=4){throw new Error("Out of bounds. Excel supports columns from 1 to 16384")}if(this._l2nFill<1&&e>=1){while(o<=26){t=this._dictionary[o-1];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=1}if(this._l2nFill<2&&e>=2){o=27;while(o<=26+26*26){r=o-(26+1);i=r%26;n=Math.floor(r/26);t=this._dictionary[n]+this._dictionary[i];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=2}if(this._l2nFill<3&&e>=3){o=26+26*26+1;while(o<=16384){r=o-(26*26+26+1);i=r%26;n=Math.floor(r/26)%26;s=Math.floor(r/(26*26));t=this._dictionary[s]+this._dictionary[n]+this._dictionary[i];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=3}},l2n(e){if(!this._l2n[e]){this._fill(e.length)}if(!this._l2n[e]){throw new Error(`Out of bounds. Invalid column letter: ${e}`)}return this._l2n[e]},n2l(e){if(e<1||e>16384){throw new Error(`${e} is out of bounds. Excel supports columns from 1 to 16384`)}if(!this._n2l[e]){this._fill(this._level(e))}return this._n2l[e]},_hash:{},validateAddress(e){if(!t.test(e)){throw new Error(`Invalid Address: ${e}`)}return true},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t){return t}let r=false;let i="";let n=0;let s=false;let o="";let c=0;for(let t=0,h;t<e.length;t++){h=e.charCodeAt(t);if(!s&&h>=65&&h<=90){r=true;i+=e[t];n=n*26+h-64}else if(h>=48&&h<=57){s=true;o+=e[t];c=c*10+h-48}else if(s&&r&&h!==36){break}}if(!r){n=undefined}else if(n>16384){throw new Error(`Out of bounds. Invalid column letter: ${i}`)}if(!s){c=undefined}e=i+o;const h={address:e,col:n,row:c,$col$row:`$${i}$${o}`};if(n<=100&&c<=100){this._hash[e]=h;this._hash[h.$col$row]=h}return h},getAddress(e,t){if(t){const r=this.n2l(t)+e;return this.decodeAddress(r)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(t.length===2){const e=this.decodeAddress(t[0]);const r=this.decodeAddress(t[1]);const i={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};i.tl=this.n2l(i.left)+i.top;i.br=this.n2l(i.right)+i.bottom;i.dimensions=`${i.tl}:${i.br}`;return i}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/);const r=t[1]||t[2];const i=t[3];const n=i.split(":");if(n.length>1){let e=this.decodeAddress(n[0]);let t=this.decodeAddress(n[1]);const i=Math.min(e.row,t.row);const s=Math.min(e.col,t.col);const o=Math.max(e.row,t.row);const c=Math.max(e.col,t.col);e=this.n2l(s)+i;t=this.n2l(c)+o;return{top:i,left:s,bottom:o,right:c,sheetName:r,tl:{address:e,col:s,row:i,$col$row:`$${this.n2l(s)}$${i}`,sheetName:r},br:{address:t,col:c,row:o,$col$row:`$${this.n2l(c)}$${o}`,sheetName:r},dimensions:`${e}:${t}`}}if(i.startsWith("#")){return r?{sheetName:r,error:i}:{error:i}}const s=this.decodeAddress(i);return r?{sheetName:r,...s}:s},encodeAddress(e,t){return r.n2l(t)+e},encode(){switch(arguments.length){case 2:return r.encodeAddress(arguments[0],arguments[1]);case 4:return`${r.encodeAddress(arguments[0],arguments[1])}:${r.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[r,i,,n,s]=e;const[o,c]=t;return o>=r&&o<=n&&c>=i&&c<=s}};e.exports=r},7307:function(e,t){const oneDepthCopy=(e,t)=>({...e,...t.reduce(((t,r)=>{if(e[r])t[r]={...e[r]};return t}),{})});const setIfExists=(e,t,r,i=[])=>{if(e[r])t[r]=oneDepthCopy(e[r],i)};const isEmptyObj=e=>Object.keys(e).length===0;const copyStyle=e=>{if(!e)return e;if(isEmptyObj(e))return{};const t={...e};setIfExists(e,t,"font",["color"]);setIfExists(e,t,"alignment");setIfExists(e,t,"protection");if(e.border){setIfExists(e,t,"border");setIfExists(e.border,t.border,"top",["color"]);setIfExists(e.border,t.border,"left",["color"]);setIfExists(e.border,t.border,"bottom",["color"]);setIfExists(e.border,t.border,"right",["color"]);setIfExists(e.border,t.border,"diagonal",["color"])}if(e.fill){setIfExists(e,t,"fill",["fgColor","bgColor","center"]);if(e.fill.stops){t.fill.stops=e.fill.stops.map((e=>oneDepthCopy(e,["color"])))}}return t};t.copyStyle=copyStyle},1924:function(e,t,r){"use strict";const i=r(6982);const n={hash(e,...t){const r=i.createHash(e);r.update(Buffer.concat(t));return r.digest()},convertPasswordToHash(e,t,r,n){t=t.toLowerCase();const s=i.getHashes();if(s.indexOf(t)<0){throw new Error(`Hash algorithm '${t}' not supported!`)}const o=Buffer.from(e,"utf16le");let c=this.hash(t,Buffer.from(r,"base64"),o);for(let e=0;e<n;e++){const r=Buffer.alloc(4);r.writeUInt32LE(e,0);c=this.hash(t,c,r)}return c.toString("base64")},randomBytes(e){return i.randomBytes(e)}};e.exports=n},6247:function(e){e.exports=async function*iterateStream(e){const t=[];e.on("data",(e=>t.push(e)));let r;const i=new Promise((e=>r=e));let n=false;e.on("end",(()=>{n=true;r()}));let s=false;e.on("error",(e=>{s=e;r()}));while(!n||t.length>0){if(t.length===0){e.resume();await Promise.race([once(e,"data"),i])}else{e.pause();const r=t.shift();yield r}if(s)throw s}r()};function once(e,t){return new Promise((r=>{let i=false;const handler=()=>{if(!i){i=true;e.removeListener(t,handler);r()}};e.addListener(t,handler)}))}},4354:function(e,t,r){const{SaxesParser:i}=r(8378);const{PassThrough:n}=r(1643);const{bufferToString:s}=r(4386);e.exports=async function*(e){if(e.pipe&&!e[Symbol.asyncIterator]){e=e.pipe(new n)}const t=new i;let r;t.on("error",(e=>{r=e}));let o=[];t.on("opentag",(e=>o.push({eventType:"opentag",value:e})));t.on("text",(e=>o.push({eventType:"text",value:e})));t.on("closetag",(e=>o.push({eventType:"closetag",value:e})));for await(const i of e){t.write(s(i));if(r)throw r;yield o;o=[]}}},5408:function(e,t,r){const i=r(6289);const n=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi;const s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function slideFormula(e,t,r){const o=i.decode(t);const c=i.decode(r);return e.replace(n,((e,t,r,n,h)=>{if(h){return e}const p=s.exec(n);if(p){const r=p[1];const n=p[2].toUpperCase();const s=p[3];const h=p[4];if(n.length>3||n.length===3&&n>"XFD"){return e}let g=i.l2n(n);let y=parseInt(h,10);if(!r){g+=c.col-o.col}if(!s){y+=c.row-o.row}const v=(t||"")+(r||"")+i.n2l(g)+(s||"")+y;return v}return e}))}e.exports={slideFormula:slideFormula}},6212:function(e){class SharedStrings{constructor(){this._values=[];this._totalRefs=0;this._hash=Object.create(null)}get count(){return this._values.length}get values(){return this._values}get totalRefs(){return this._totalRefs}getString(e){return this._values[e]}add(e){let t=this._hash[e];if(t===undefined){t=this._hash[e]=this._values.length;this._values.push(e)}this._totalRefs++;return t}}e.exports=SharedStrings},6:function(e,t,r){const i=r(1643);const n=r(9145);const s=r(5471);class StringChunk{constructor(e,t){this._data=e;this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,r,i){return this.toBuffer().copy(e,t,r,i)}toBuffer(){if(!this._buffer){this._buffer=Buffer.from(this._data,this._encoding)}return this._buffer}}class StringBufChunk{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,i){return this._data._buf.copy(e,t,r,i)}toBuffer(){return this._data.toBuffer()}}class BufferChunk{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,i){this._data.copy(e,t,r,i)}toBuffer(){return this._data}}class ReadWriteBuf{constructor(e){this.size=e;this.buffer=Buffer.alloc(e);this.iRead=0;this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size){return this.buffer}const e=Buffer.alloc(this.iWrite-this.iRead);this.buffer.copy(e,0,this.iRead,this.iWrite);return e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;if(e===0){return null}if(e===undefined||e>=this.length){t=this.toBuffer();this.iRead=this.iWrite;return t}t=Buffer.alloc(e);this.buffer.copy(t,0,this.iRead,e);this.iRead+=e;return t}write(e,t,r){const i=Math.min(r,this.size-this.iWrite);e.copy(this.buffer,this.iWrite,t,t+i);this.iWrite+=i;return i}}const StreamBuf=function(e){e=e||{};this.bufSize=e.bufSize||1024*1024;this.buffers=[];this.batch=e.batch||false;this.corked=false;this.inPos=0;this.outPos=0;this.pipes=[];this.paused=false;this.encoding=null};n.inherits(StreamBuf,i.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return Buffer.concat(this.buffers.map((e=>e.toBuffer())))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full){return e}}const e=new ReadWriteBuf(this.bufSize);this.buffers.push(e);return e},async _pipe(e){const write=function(t){return new Promise((r=>{t.write(e.toBuffer(),(()=>{r()}))}))};await Promise.all(this.pipes.map(write))},_writeToBuffers(e){let t=0;const r=e.length;while(t<r){const i=this._getWritableBuffer();t+=i.write(e,t,r-t)}},async write(e,t,r){if(t instanceof Function){r=t;t="utf8"}r=r||n.nop;let i;if(e instanceof s){i=new StringBufChunk(e)}else if(e instanceof Buffer){i=new BufferChunk(e)}else if(typeof e==="string"||e instanceof String||e instanceof ArrayBuffer){i=new StringChunk(e,t)}else{throw new Error("Chunk must be one of type String, Buffer or StringBuf.")}if(this.pipes.length){if(this.batch){this._writeToBuffers(i);while(!this.corked&&this.buffers.length>1){this._pipe(this.buffers.shift())}}else if(!this.corked){await this._pipe(i);r()}else{this._writeToBuffers(i);process.nextTick(r)}}else{if(!this.paused){this.emit("data",i.toBuffer())}this._writeToBuffers(i);this.emit("readable")}return true},cork(){this.corked=true},_flush(){if(this.pipes.length){while(this.buffers.length){this._pipe(this.buffers.shift())}}},uncork(){this.corked=false;this._flush()},end(e,t,r){const writeComplete=e=>{if(e){r(e)}else{this._flush();this.pipes.forEach((e=>{e.end()}));this.emit("finish")}};if(e){this.write(e,t,writeComplete)}else{writeComplete()}},read(e){let t;if(e){t=[];while(e&&this.buffers.length&&!this.buffers[0].eod){const r=this.buffers[0];const i=r.read(e);e-=i.length;t.push(i);if(r.eod&&r.full){this.buffers.shift()}}return Buffer.concat(t)}t=this.buffers.map((e=>e.toBuffer())).filter(Boolean);this.buffers=[];return Buffer.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=true},resume(){this.paused=false},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e);if(!this.paused&&this.buffers.length){this.end()}},unpipe(e){this.pipes=this.pipes.filter((t=>t!==e))},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}});e.exports=StreamBuf},5471:function(e){class StringBuf{constructor(e){this._buf=Buffer.alloc(e&&e.size||16384);this._encoding=e&&e.encoding||"utf8";this._inPos=0;this._buffer=undefined}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){if(!this._buffer){this._buffer=Buffer.alloc(this.length);this._buf.copy(this._buffer,0,0,this.length)}return this._buffer}reset(e){e=e||0;this._buffer=undefined;this._inPos=e}_grow(e){let t=this._buf.length*2;while(t<e){t*=2}const r=Buffer.alloc(t);this._buf.copy(r,0);this._buf=r}addText(e){this._buffer=undefined;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);while(t>=this._buf.length-4){this._grow(this._inPos+e.length);t=this._inPos+this._buf.write(e,this._inPos,this._encoding)}this._inPos=t}addStringBuf(e){if(e.length){this._buffer=undefined;if(this.length+e.length>this.capacity){this._grow(this.length+e.length)}e._buf.copy(this._buf,this._inPos,0,e.length);this._inPos+=e.length}}}e.exports=StringBuf},2563:function(e){const{toString:t}=Object.prototype;const r=/["&<>]/;const i={each:function each(e,t){if(e){if(Array.isArray(e)){e.forEach(t)}else{Object.keys(e).forEach((r=>{t(e[r],r)}))}}},some:function some(e,t){if(e){if(Array.isArray(e)){return e.some(t)}return Object.keys(e).some((r=>t(e[r],r)))}return false},every:function every(e,t){if(e){if(Array.isArray(e)){return e.every(t)}return Object.keys(e).every((r=>t(e[r],r)))}return true},map:function map(e,t){if(e){if(Array.isArray(e)){return e.map(t)}return Object.keys(e).map((r=>t(e[r],r)))}return[]},keyBy(e,t){return e.reduce(((e,r)=>{e[r[t]]=r;return e}),{})},isEqual:function isEqual(e,t){const r=typeof e;const n=typeof t;const s=Array.isArray(e);const o=Array.isArray(t);let c;if(r!==n){return false}switch(typeof e){case"object":if(s||o){if(s&&o){return e.length===t.length&&e.every(((e,r)=>{const n=t[r];return i.isEqual(e,n)}))}return false}if(e===null||t===null){return e===t}c=Object.keys(e);if(Object.keys(t).length!==c.length){return false}for(const e of c){if(!t.hasOwnProperty(e)){return false}}return i.every(e,((e,r)=>{const n=t[r];return i.isEqual(e,n)}));default:return e===t}},escapeHtml(e){const t=r.exec(e);if(!t)return e;let i="";let n="";let s=0;let o=t.index;for(;o<e.length;o++){switch(e.charAt(o)){case'"':n="&quot;";break;case"&":n="&amp;";break;case"'":n="&apos;";break;case"<":n="&lt;";break;case">":n="&gt;";break;default:continue}if(s!==o)i+=e.substring(s,o);s=o+1;i+=n}if(s!==o)return i+e.substring(s,o);return i},strcmp(e,t){if(e<t)return-1;if(e>t)return 1;return 0},isUndefined(e){return t.call(e)==="[object Undefined]"},isObject(e){return t.call(e)==="[object Object]"},deepMerge(){const e=arguments[0]||{};const{length:t}=arguments;let r,n,s;function assignValue(t,o){r=e[o];s=Array.isArray(t);if(i.isObject(t)||s){if(s){s=false;n=r&&Array.isArray(r)?r:[]}else{n=r&&i.isObject(r)?r:{}}e[o]=i.deepMerge(n,t)}else if(!i.isUndefined(t)){e[o]=t}}for(let e=0;e<t;e++){i.each(arguments[e],assignValue)}return e}};e.exports=i},9145:function(e,t,r){const i=r(9896);const inherits=function(e,t,r,i){e.super_=t;if(!i){i=r;r=null}if(r){Object.keys(r).forEach((t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}const n={constructor:{value:e,enumerable:false,writable:false,configurable:true}};if(i){Object.keys(i).forEach((e=>{n[e]=Object.getOwnPropertyDescriptor(i,e)}))}e.prototype=Object.create(t.prototype,n)};const n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/;const s={nop(){},promiseImmediate(e){return new Promise((t=>{if(global.setImmediate){setImmediate((()=>{t(e)}))}else{setTimeout((()=>{t(e)}),1)}}))},inherits:inherits,dateToExcel(e,t){return 25569+e.getTime()/(24*3600*1e3)-(t?1462:0)},excelToDate(e,t){const r=Math.round((e-25569+(t?1462:0))*24*3600*1e3);return new Date(r)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=s.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=n.exec(e);if(!t)return e;let r="";let i="";let s=0;let o=t.index;for(;o<e.length;o++){const t=e.charCodeAt(o);switch(t){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&apos;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;case 127:i="";break;default:{if(t<=31&&(t<=8||t>=11&&t!==13)){i="";break}continue}}if(s!==o)r+=e.substring(s,o);s=o+1;if(i)r+=i}if(s!==o)return r+e.substring(s,o);return r},xmlDecode(e){return e.replace(/&([a-z]*);/g,(e=>{switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}}))},validInt(e){const t=parseInt(e,10);return!Number.isNaN(t)?t:0},isDateFmt(e){if(!e){return false}e=e.replace(/\[[^\]]*]/g,"");e=e.replace(/"[^"]*"/g,"");const t=e.match(/[ymdhMsb]+/)!==null;return t},fs:{exists(e){return new Promise((t=>{i.access(e,i.constants.F_OK,(e=>{t(!e)}))}))}},toIsoDateString(e){return e.toIsoString().subsstr(0,10)},parseBoolean(e){return e===true||e==="true"||e===1||e==="1"}};e.exports=s},8674:function(e,t,r){const i=r(2563);const n=r(9145);const s="<";const o=">";const c="</";const h="/>";function pushAttribute(e,t,r){e.push(` ${t}="${n.xmlEncode(r.toString())}"`)}function pushAttributes(e,t){if(t){const r=[];i.each(t,((e,t)=>{if(e!==undefined){pushAttribute(r,t,e)}}));e.push(r.join(""))}}class XmlStream{constructor(){this._xml=[];this._stack=[];this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:undefined}get cursor(){return this._xml.length}openXml(e){const t=this._xml;t.push("<?xml");pushAttributes(t,e);t.push("?>\n")}openNode(e,t){const r=this.tos;const i=this._xml;if(r&&this.open){i.push(o)}this._stack.push(e);i.push(s);i.push(e);pushAttributes(i,t);this.leaf=true;this.open=true}addAttribute(e,t){if(!this.open){throw new Error("Cannot write attributes to node if it is not open")}if(t!==undefined){pushAttribute(this._xml,e,t)}}addAttributes(e){if(!this.open){throw new Error("Cannot write attributes to node if it is not open")}pushAttributes(this._xml,e)}writeText(e){const t=this._xml;if(this.open){t.push(o);this.open=false}this.leaf=false;t.push(n.xmlEncode(e.toString()))}writeXml(e){if(this.open){this._xml.push(o);this.open=false}this.leaf=false;this._xml.push(e)}closeNode(){const e=this._stack.pop();const t=this._xml;if(this.leaf){t.push(h)}else{t.push(c);t.push(e);t.push(o)}this.open=false;this.leaf=false}leafNode(e,t,r){this.openNode(e,t);if(r!==undefined){this.writeText(r)}this.closeNode()}closeAll(){while(this._stack.length){this.closeNode()}}addRollback(){this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open});return this.cursor}commit(){this._rollbacks.pop()}rollback(){const e=this._rollbacks.pop();if(this._xml.length>e.xml){this._xml.splice(e.xml,this._xml.length-e.xml)}if(this._stack.length>e.stack){this._stack.splice(e.stack,this._stack.length-e.stack)}this.leaf=e.leaf;this.open=e.open}get xml(){this.closeAll();return this._xml.join("")}}XmlStream.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"};e.exports=XmlStream},568:function(e,t,r){const i=r(4434);const n=r(5485);const s=r(6);const{stringToBuffer:o}=r(1734);class ZipWriter extends i.EventEmitter{constructor(e){super();this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e);this.zip=new n;this.stream=new s}append(e,t){if(t.hasOwnProperty("base64")&&t.base64){this.zip.file(t.name,e,{base64:true})}else{if(process.browser&&typeof e==="string"){e=o(e)}this.zip.file(t.name,e)}}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e);this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}e.exports={ZipWriter:ZipWriter}},5877:function(e){e.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},8496:function(e){"use strict";e.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},8287:function(e,t,r){const i=r(4354);const n=r(8674);class BaseXform{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null;if(this.map){Object.values(this.map).forEach((e=>{if(e instanceof BaseXform){e.reset()}else if(e.xform){e.xform.reset()}}))}}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e){for(const{eventType:e,value:r}of t){if(e==="opentag"){this.parseOpen(r)}else if(e==="text"){this.parseText(r)}else if(e==="closetag"){if(!this.parseClose(r.name)){return this.model}}}}return this.model}async parseStream(e){return this.parse(i(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new n;this.render(t,e);return t.xml}static toAttribute(e,t,r=false){if(e===undefined){if(r){return t}}else if(r||e!==t){return e.toString()}return undefined}static toStringAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toStringValue(e,t){return e===undefined?t:e}static toBoolAttribute(e,t,r=false){if(e===undefined){if(r){return t}}else if(r||e!==t){return e?"1":"0"}return undefined}static toBoolValue(e,t){return e===undefined?t:e==="1"}static toIntAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toIntValue(e,t){return e===undefined?t:parseInt(e,10)}static toFloatAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toFloatValue(e,t){return e===undefined?t:parseFloat(e)}}e.exports=BaseXform},6019:function(e,t,r){const i=r(8287);const n=r(6289);class DefinedNamesXform extends i{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId});e.writeText(t.ranges.join(","));e.closeNode()}parseOpen(e){switch(e.name){case"definedName":this._parsedName=e.attributes.name;this._parsedLocalSheetId=e.attributes.localSheetId;this._parsedText=[];return true;default:return false}}parseText(e){this._parsedText.push(e)}parseClose(){this.model={name:this._parsedName,ranges:extractRanges(this._parsedText.join(""))};if(this._parsedLocalSheetId!==undefined){this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)}return false}}function isValidRange(e){try{n.decodeEx(e);return true}catch(e){return false}}function extractRanges(e){const t=[];let r=false;let i="";e.split(",").forEach((e=>{if(!e){return}const n=(e.match(/'/g)||[]).length;if(!n){if(r){i+=`${e},`}else if(isValidRange(e)){t.push(e)}return}const s=n%2===0;if(!r&&s&&isValidRange(e)){t.push(e)}else if(r&&!s){r=false;if(isValidRange(i+e)){t.push(i+e)}i=""}else{r=true;i+=`${e},`}}));return t}e.exports=DefinedNamesXform},6995:function(e,t,r){const i=r(9145);const n=r(8287);class WorksheetXform extends n{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){if(e.name==="sheet"){this.model={name:i.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorksheetXform},5288:function(e,t,r){const i=r(8287);class WorkbookCalcPropertiesXform extends i{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:undefined})}parseOpen(e){if(e.name==="calcPr"){this.model={};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorkbookCalcPropertiesXform},9166:function(e,t,r){const i=r(8287);class WorksheetPropertiesXform extends i{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:undefined,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){if(e.name==="workbookPr"){this.model={date1904:e.attributes.date1904==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorksheetPropertiesXform},9258:function(e,t,r){const i=r(8287);class WorkbookViewXform extends i{render(e,t){const r={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};if(t.visibility&&t.visibility!=="visible"){r.visibility=t.visibility}e.leafNode("workbookView",r)}parseOpen(e){if(e.name==="workbookView"){const t=this.model={};const addS=function(e,r,i){const n=r!==undefined?t[e]=r:i;if(n!==undefined){t[e]=n}};const addN=function(e,r,i){const n=r!==undefined?t[e]=parseInt(r,10):i;if(n!==undefined){t[e]=n}};addN("x",e.attributes.xWindow,0);addN("y",e.attributes.yWindow,0);addN("width",e.attributes.windowWidth,25e3);addN("height",e.attributes.windowHeight,1e4);addS("visibility",e.attributes.visibility,"visible");addN("activeTab",e.attributes.activeTab,undefined);addN("firstSheet",e.attributes.firstSheet,undefined);return true}return false}parseText(){}parseClose(){return false}}e.exports=WorkbookViewXform},9312:function(e,t,r){const i=r(2563);const n=r(6289);const s=r(8674);const o=r(8287);const c=r(2216);const h=r(6422);const p=r(6019);const g=r(6995);const y=r(9258);const v=r(9166);const b=r(5288);class WorkbookXform extends o{constructor(){super();this.map={fileVersion:WorkbookXform.STATIC_XFORMS.fileVersion,workbookPr:new v,bookViews:new h({tag:"bookViews",count:false,childXform:new y}),sheets:new h({tag:"sheets",count:false,childXform:new g}),definedNames:new h({tag:"definedNames",count:false,childXform:new p}),calcPr:new b}}prepare(e){e.sheets=e.worksheets;const t=[];let r=0;e.sheets.forEach((e=>{if(e.pageSetup&&e.pageSetup.printArea){e.pageSetup.printArea.split("&&").forEach((i=>{const n=i.split(":");const s={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${n[0]}:$${n[1]}`],localSheetId:r};t.push(s)}))}if(e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const i=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");i.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");i.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const n={name:"_xlnm.Print_Titles",ranges:i,localSheetId:r};t.push(n)}r++}));if(t.length){e.definedNames=e.definedNames.concat(t)}(e.media||[]).forEach(((e,t)=>{e.name=e.type+(t+1)}))}render(e,t){e.openXml(s.StdDocAttributes);e.openNode("workbook",WorkbookXform.WORKBOOK_ATTRIBUTES);this.map.fileVersion.render(e);this.map.workbookPr.render(e,t.properties);this.map.bookViews.render(e,t.views);this.map.sheets.render(e,t.sheets);this.map.definedNames.render(e,t.definedNames);this.map.calcPr.render(e,t.calcProperties);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"workbook":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"workbook":this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}};if(this.map.definedNames.model){this.model.definedNames=this.map.definedNames.model}return false;default:return true}}reconcile(e){const t=(e.workbookRels||[]).reduce(((e,t)=>{e[t.Id]=t;return e}),{});const r=[];let s;let o=0;(e.sheets||[]).forEach((i=>{const n=t[i.rId];if(!n){return}s=e.worksheetHash[`xl/${n.Target.replace(/^(\s|\/xl\/)+/,"")}`];if(s){s.name=i.name;s.id=i.id;s.state=i.state;r[o++]=s}}));const c=[];i.each(e.definedNames,(e=>{if(e.name==="_xlnm.Print_Area"){s=r[e.localSheetId];if(s){if(!s.pageSetup){s.pageSetup={}}const t=n.decodeEx(e.ranges[0]);s.pageSetup.printArea=s.pageSetup.printArea?`${s.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if(e.name==="_xlnm.Print_Titles"){s=r[e.localSheetId];if(s){if(!s.pageSetup){s.pageSetup={}}const t=e.ranges.join(",");const r=/\$/g;const i=/\$\d+:\$\d+/;const n=t.match(i);if(n&&n.length){const e=n[0];s.pageSetup.printTitlesRow=e.replace(r,"")}const o=/\$[A-Z]+:\$[A-Z]+/;const c=t.match(o);if(c&&c.length){const e=c[0];s.pageSetup.printTitlesColumn=e.replace(r,"")}}}else{c.push(e)}}));e.definedNames=c;e.media.forEach(((e,t)=>{e.index=t}))}}WorkbookXform.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"};WorkbookXform.STATIC_XFORMS={fileVersion:new c({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})};e.exports=WorkbookXform},2781:function(e,t,r){const i=r(9573);const n=r(9145);const s=r(8287);const o=e.exports=function(e){this.model=e};n.inherits(o,s,{get tag(){return"r"},get richTextXform(){if(!this._richTextXform){this._richTextXform=new i}return this._richTextXform},render(e,t){t=t||this.model;e.openNode("comment",{ref:t.ref,authorId:0});e.openNode("text");if(t&&t.note&&t.note.texts){t.note.texts.forEach((t=>{this.richTextXform.render(e,t)}))}e.closeNode();e.closeNode()},parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"comment":this.model={type:"note",note:{texts:[]},...e.attributes};return true;case"r":this.parser=this.richTextXform;this.parser.parseOpen(e);return true;default:return false}},parseText(e){if(this.parser){this.parser.parseText(e)}},parseClose(e){switch(e){case"comment":return false;case"r":this.model.note.texts.push(this.parser.model);this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}})},9474:function(e,t,r){const i=r(8674);const n=r(9145);const s=r(8287);const o=r(2781);const c=e.exports=function(){this.map={comment:new o}};n.inherits(c,s,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model;e.openXml(i.StdDocAttributes);e.openNode("comments",c.COMMENTS_ATTRIBUTES);e.openNode("authors");e.leafNode("author",null,"Author");e.closeNode();e.openNode("commentList");t.comments.forEach((t=>{this.map.comment.render(e,t)}));e.closeNode();e.closeNode()},parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"commentList":this.model={comments:[]};return true;case"comment":this.parser=this.map.comment;this.parser.parseOpen(e);return true;default:return false}},parseText(e){if(this.parser){this.parser.parseText(e)}},parseClose(e){switch(e){case"commentList":return false;case"comment":this.model.comments.push(this.parser.model);this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}})},1711:function(e,t,r){const i=r(8287);class VmlPositionXform extends i{constructor(e){super();this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,r){if(t===r[2]){e.leafNode(this.tag)}else if(this.tag==="x:SizeWithCells"&&t===r[1]){e.leafNode(this.tag)}}parseOpen(e){switch(e.name){case this.tag:this.model={};this.model[this.tag]=true;return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=VmlPositionXform},4023:function(e,t,r){const i=r(8287);class VmlProtectionXform extends i{constructor(e){super();this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){switch(e.name){case this.tag:this.text="";return true;default:return false}}parseText(e){this.text=e}parseClose(){return false}}e.exports=VmlProtectionXform},8723:function(e,t,r){const i=r(8287);class VmlAnchorXform extends i{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left);const r=Math.floor((e.left-t)*68);const i=Math.floor(e.top);const n=Math.floor((e.top-i)*18);const s=Math.floor(e.right);const o=Math.floor((e.right-s)*68);const c=Math.floor(e.bottom);const h=Math.floor((e.bottom-c)*18);return[t,r,i,n,s,o,c,h]}getDefaultRect(e){const t=e.col;const r=6;const i=Math.max(e.row-2,0);const n=14;const s=t+2;const o=2;const c=i+4;const h=16;return[t,r,i,n,s,o,c,h]}render(e,t){const r=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,r.join(", "))}parseOpen(e){switch(e.name){case this.tag:this.text="";return true;default:return false}}parseText(e){this.text=e}parseClose(){return false}}e.exports=VmlAnchorXform},7972:function(e,t,r){const i=r(8287);const n=r(8723);const s=r(4023);const o=r(1711);const c=["twoCells","oneCells","absolute"];class VmlClientDataXform extends i{constructor(){super();this.map={"x:Anchor":new n,"x:Locked":new s({tag:"x:Locked"}),"x:LockText":new s({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:r,editAs:i}=t.note;e.openNode(this.tag,{ObjectType:"Note"});this.map["x:MoveWithCells"].render(e,i,c);this.map["x:SizeWithCells"].render(e,i,c);this.map["x:Anchor"].render(e,t);this.map["x:Locked"].render(e,r.locked);e.leafNode("x:AutoFill",null,"False");this.map["x:LockText"].render(e,r.lockText);e.leafNode("x:Row",null,t.refAddress.row-1);e.leafNode("x:Column",null,t.refAddress.col-1);e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset();this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.normalizeModel();return false;default:return true}}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model);const t=Object.keys(e).length;this.model.editAs=c[t];this.model.anchor=this.map["x:Anchor"].text;this.model.protection.locked=this.map["x:Locked"].text;this.model.protection.lockText=this.map["x:LockText"].text}}e.exports=VmlClientDataXform},5135:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(2007);class VmlNotesXform extends n{constructor(){super();this.map={"v:shape":new s}}get tag(){return"xml"}render(e,t){e.openXml(i.StdDocAttributes);e.openNode(this.tag,VmlNotesXform.DRAWING_ATTRIBUTES);e.openNode("o:shapelayout",{"v:ext":"edit"});e.leafNode("o:idmap",{"v:ext":"edit",data:1});e.closeNode();e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"});e.leafNode("v:stroke",{joinstyle:"miter"});e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"});e.closeNode();t.comments.forEach(((t,r)=>{this.map["v:shape"].render(e,t,r)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={comments:[]};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.comments.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}reconcile(e,t){e.anchors.forEach((e=>{if(e.br){this.map["xdr:twoCellAnchor"].reconcile(e,t)}else{this.map["xdr:oneCellAnchor"].reconcile(e,t)}}))}}VmlNotesXform.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"};e.exports=VmlNotesXform},2007:function(e,t,r){const i=r(8287);const n=r(3078);const s=r(7972);class VmlShapeXform extends i{constructor(){super();this.map={"v:textbox":new n,"x:ClientData":new s}}get tag(){return"v:shape"}render(e,t,r){e.openNode("v:shape",VmlShapeXform.V_SHAPE_ATTRIBUTES(t,r));e.leafNode("v:fill",{color2:"infoBackground [80]"});e.leafNode("v:shadow",{color:"none [81]",obscured:"t"});e.leafNode("v:path",{"o:connecttype":"none"});this.map["v:textbox"].render(e,t);this.map["x:ClientData"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset;this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection;this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor;this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs;return false;default:return true}}}VmlShapeXform.V_SHAPE_ATTRIBUTES=(e,t)=>({id:`_x0000_s${1025+t}`,type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode});e.exports=VmlShapeXform},3078:function(e,t,r){const i=r(8287);class VmlTextboxXform extends i{get tag(){return"v:textbox"}conversionUnit(e,t,r){return`${parseFloat(e)*t.toFixed(2)}${r}`}reverseConversionUnit(e){return(e||"").split(",").map((e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2))))}render(e,t){const r={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;if(Array.isArray(e)){e=e.map((e=>this.conversionUnit(e,10,"mm"))).join(",")}if(e){r.inset=e}}e.openNode("v:textbox",r);e.leafNode("div",{style:"text-align:left"});e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.model={inset:this.reverseConversionUnit(e.attributes.inset)};return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=VmlTextboxXform},8953:function(e,t,r){const i=r(8287);class CompositeXform extends i{createNewModel(e){return{}}parseOpen(e){this.parser=this.parser||this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}if(e.name===this.tag){this.model=this.createNewModel(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}onParserClose(e,t){this.model[e]=t.model}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.onParserClose(e,this.parser);this.parser=undefined}return true}return e!==this.tag}}e.exports=CompositeXform},9914:function(e,t,r){const i=r(8287);class AppHeadingPairsXform extends i{render(e,t){e.openNode("HeadingPairs");e.openNode("vt:vector",{size:2,baseType:"variant"});e.openNode("vt:variant");e.leafNode("vt:lpstr",undefined,"Worksheets");e.closeNode();e.openNode("vt:variant");e.leafNode("vt:i4",undefined,t.length);e.closeNode();e.closeNode();e.closeNode()}parseOpen(e){return e.name==="HeadingPairs"}parseText(){}parseClose(e){return e!=="HeadingPairs"}}e.exports=AppHeadingPairsXform},1572:function(e,t,r){const i=r(8287);class AppTitlesOfPartsXform extends i{render(e,t){e.openNode("TitlesOfParts");e.openNode("vt:vector",{size:t.length,baseType:"lpstr"});t.forEach((t=>{e.leafNode("vt:lpstr",undefined,t.name)}));e.closeNode();e.closeNode()}parseOpen(e){return e.name==="TitlesOfParts"}parseText(){}parseClose(e){return e!=="TitlesOfParts"}}e.exports=AppTitlesOfPartsXform},7661:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(9656);const o=r(9914);const c=r(1572);class AppXform extends n{constructor(){super();this.map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new c}}render(e,t){e.openXml(i.StdDocAttributes);e.openNode("Properties",AppXform.PROPERTY_ATTRIBUTES);e.leafNode("Application",undefined,"Microsoft Excel");e.leafNode("DocSecurity",undefined,"0");e.leafNode("ScaleCrop",undefined,"false");this.map.HeadingPairs.render(e,t.worksheets);this.map.TitleOfParts.render(e,t.worksheets);this.map.Company.render(e,t.company||"");this.map.Manager.render(e,t.manager);e.leafNode("LinksUpToDate",undefined,"false");e.leafNode("SharedDoc",undefined,"false");e.leafNode("HyperlinksChanged",undefined,"false");e.leafNode("AppVersion",undefined,"16.0300");e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"Properties":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"Properties":this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model};return false;default:return true}}}AppXform.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")};AppXform.DateAttrs={"xsi:type":"dcterms:W3CDTF"};AppXform.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"};e.exports=AppXform},5919:function(e,t,r){const i=r(8674);const n=r(8287);class ContentTypesXform extends n{render(e,t){e.openXml(i.StdDocAttributes);e.openNode("Types",ContentTypesXform.PROPERTY_ATTRIBUTES);const r={};(t.media||[]).forEach((t=>{if(t.type==="image"){const i=t.extension;if(!r[i]){r[i]=true;e.leafNode("Default",{Extension:i,ContentType:`image/${i}`})}}}));e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"});e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"});e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"});t.worksheets.forEach((t=>{const r=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:r,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}));e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"});e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"});const n=t.sharedStrings&&t.sharedStrings.count;if(n){e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"})}if(t.tables){t.tables.forEach((t=>{e.leafNode("Override",{PartName:`/xl/tables/${t.target}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}))}if(t.drawings){t.drawings.forEach((t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}))}if(t.commentRefs){e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});t.commentRefs.forEach((({commentName:t})=>{e.leafNode("Override",{PartName:`/xl/${t}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})}))}e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"});e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"});e.closeNode()}parseOpen(){return false}parseText(){}parseClose(){return false}}ContentTypesXform.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"};e.exports=ContentTypesXform},9505:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(4689);const o=r(9656);const c=r(8101);class CoreXform extends n{constructor(){super();this.map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new s({tag:"cp:lastPrinted",format:CoreXform.DateFormat}),"cp:revision":new c({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new s({tag:"dcterms:created",attrs:CoreXform.DateAttrs,format:CoreXform.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:CoreXform.DateAttrs,format:CoreXform.DateFormat})}}render(e,t){e.openXml(i.StdDocAttributes);e.openNode("cp:coreProperties",CoreXform.CORE_PROPERTY_ATTRIBUTES);this.map["dc:creator"].render(e,t.creator);this.map["dc:title"].render(e,t.title);this.map["dc:subject"].render(e,t.subject);this.map["dc:description"].render(e,t.description);this.map["dc:identifier"].render(e,t.identifier);this.map["dc:language"].render(e,t.language);this.map["cp:keywords"].render(e,t.keywords);this.map["cp:category"].render(e,t.category);this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy);this.map["cp:lastPrinted"].render(e,t.lastPrinted);this.map["cp:revision"].render(e,t.revision);this.map["cp:version"].render(e,t.version);this.map["cp:contentStatus"].render(e,t.contentStatus);this.map["cp:contentType"].render(e,t.contentType);this.map["dcterms:created"].render(e,t.created);this.map["dcterms:modified"].render(e,t.modified);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"cp:coreProperties":case"coreProperties":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"cp:coreProperties":case"coreProperties":this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model};return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}CoreXform.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")};CoreXform.DateAttrs={"xsi:type":"dcterms:W3CDTF"};CoreXform.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"};e.exports=CoreXform},7836:function(e,t,r){const i=r(8287);class RelationshipXform extends i{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){switch(e.name){case"Relationship":this.model=e.attributes;return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=RelationshipXform},7861:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(7836);class RelationshipsXform extends n{constructor(){super();this.map={Relationship:new s}}render(e,t){t=t||this._values;e.openXml(i.StdDocAttributes);e.openNode("Relationships",RelationshipsXform.RELATIONSHIPS_ATTRIBUTES);t.forEach((t=>{this.map.Relationship.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"Relationships":this.model=[];return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined}return true}switch(e){case"Relationships":return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}RelationshipsXform.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"};e.exports=RelationshipsXform},8447:function(e,t,r){const i=r(8287);class BaseCellAnchorXform extends i{parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={range:{editAs:e.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}reconcilePicture(e,t){if(e&&e.rId){const r=t.rels[e.rId];const i=r.Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(i){const e=i[1];const r=t.mediaIndex[e];return t.media[r]}}return undefined}}e.exports=BaseCellAnchorXform},2388:function(e,t,r){const i=r(8287);const n=r(9190);class BlipFillXform extends i{constructor(){super();this.map={"a:blip":new n}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag);this.map["a:blip"].render(e,t);e.openNode("a:stretch");e.leafNode("a:fillRect");e.closeNode();e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["a:blip"].model;return false;default:return true}}}e.exports=BlipFillXform},9190:function(e,t,r){const i=r(8287);class BlipXform extends i{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:embed"]};return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=BlipXform},6449:function(e,t,r){const i=r(8287);class CNvPicPrXform extends i{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag);e.leafNode("a:picLocks",{noChangeAspect:"1"});e.closeNode()}parseOpen(e){switch(e.name){case this.tag:return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=CNvPicPrXform},4290:function(e,t,r){const i=r(8287);const n=r(4358);const s=r(4686);class CNvPrXform extends i{constructor(){super();this.map={"a:hlinkClick":new n,"a:extLst":new s}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:`Picture ${t.index}`});this.map["a:hlinkClick"].render(e,t);this.map["a:extLst"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["a:hlinkClick"].model;return false;default:return true}}}e.exports=CNvPrXform},679:function(e,t,r){const i=r(8287);const n=r(8101);class CellPositionXform extends i{constructor(e){super();this.tag=e.tag;this.map={"xdr:col":new n({tag:"xdr:col",zero:true}),"xdr:colOff":new n({tag:"xdr:colOff",zero:true}),"xdr:row":new n({tag:"xdr:row",zero:true}),"xdr:rowOff":new n({tag:"xdr:rowOff",zero:true})}}render(e,t){e.openNode(this.tag);this.map["xdr:col"].render(e,t.nativeCol);this.map["xdr:colOff"].render(e,t.nativeColOff);this.map["xdr:row"].render(e,t.nativeRow);this.map["xdr:rowOff"].render(e,t.nativeRowOff);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model};return false;default:return true}}}e.exports=CellPositionXform},3057:function(e,t,r){const i=r(6289);const n=r(8674);const s=r(8287);const o=r(5050);const c=r(9716);function getAnchorType(e){const t=typeof e.range==="string"?i.decode(e.range):e.range;return t.br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}class DrawingXform extends s{constructor(){super();this.map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new c}}prepare(e){e.anchors.forEach(((e,t)=>{e.anchorType=getAnchorType(e);const r=this.map[e.anchorType];r.prepare(e,{index:t})}))}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(n.StdDocAttributes);e.openNode(this.tag,DrawingXform.DRAWING_ATTRIBUTES);t.anchors.forEach((t=>{const r=this.map[t.anchorType];r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={anchors:[]};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.anchors.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}reconcile(e,t){e.anchors.forEach((e=>{if(e.br){this.map["xdr:twoCellAnchor"].reconcile(e,t)}else{this.map["xdr:oneCellAnchor"].reconcile(e,t)}}))}}DrawingXform.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"};e.exports=DrawingXform},4686:function(e,t,r){const i=r(8287);class ExtLstXform extends i{get tag(){return"a:extLst"}render(e){e.openNode(this.tag);e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"});e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"});e.closeNode();e.closeNode()}parseOpen(e){switch(e.name){case this.tag:return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=ExtLstXform},5208:function(e,t,r){const i=r(8287);const n=9525;class ExtXform extends i{constructor(e){super();this.tag=e.tag;this.map={}}render(e,t){e.openNode(this.tag);const r=Math.floor(t.width*n);const i=Math.floor(t.height*n);e.addAttribute("cx",r);e.addAttribute("cy",i);e.closeNode()}parseOpen(e){if(e.name===this.tag){this.model={width:parseInt(e.attributes.cx||"0",10)/n,height:parseInt(e.attributes.cy||"0",10)/n};return true}return false}parseText(){}parseClose(){return false}}e.exports=ExtXform},4358:function(e,t,r){const i=r(8287);class HLinkClickXform extends i{get tag(){return"a:hlinkClick"}render(e,t){if(!(t.hyperlinks&&t.hyperlinks.rId)){return}e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){switch(e.name){case this.tag:this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}};return true;default:return true}}parseText(){}parseClose(){return false}}e.exports=HLinkClickXform},9313:function(e,t,r){const i=r(8287);const n=r(4290);const s=r(6449);class NvPicPrXform extends i{constructor(){super();this.map={"xdr:cNvPr":new n,"xdr:cNvPicPr":new s}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag);this.map["xdr:cNvPr"].render(e,t);this.map["xdr:cNvPicPr"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["xdr:cNvPr"].model;return false;default:return true}}}e.exports=NvPicPrXform},9716:function(e,t,r){const i=r(8447);const n=r(2216);const s=r(679);const o=r(5208);const c=r(3471);class OneCellAnchorXform extends i{constructor(){super();this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new c,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"});this.map["xdr:from"].render(e,t.range.tl);this.map["xdr:ext"].render(e,t.range.ext);this.map["xdr:pic"].render(e,t.picture);this.map["xdr:clientData"].render(e,{});e.closeNode()}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.range.tl=this.map["xdr:from"].model;this.model.range.ext=this.map["xdr:ext"].model;this.model.picture=this.map["xdr:pic"].model;return false;default:return true}}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}e.exports=OneCellAnchorXform},3471:function(e,t,r){const i=r(8287);const n=r(2216);const s=r(2388);const o=r(9313);const c=r(320);class PicXform extends i{constructor(){super();this.map={"xdr:nvPicPr":new o,"xdr:blipFill":new s,"xdr:spPr":new n(c)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag);this.map["xdr:nvPicPr"].render(e,t);this.map["xdr:blipFill"].render(e,t);this.map["xdr:spPr"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.mergeModel(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=PicXform},320:function(e){e.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},5050:function(e,t,r){const i=r(8447);const n=r(2216);const s=r(679);const o=r(3471);class TwoCellAnchorXform extends i{constructor(){super();this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"});this.map["xdr:from"].render(e,t.range.tl);this.map["xdr:to"].render(e,t.range.br);this.map["xdr:pic"].render(e,t.picture);this.map["xdr:clientData"].render(e,{});e.closeNode()}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.range.tl=this.map["xdr:from"].model;this.model.range.br=this.map["xdr:to"].model;this.model.picture=this.map["xdr:pic"].model;return false;default:return true}}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}e.exports=TwoCellAnchorXform},6422:function(e,t,r){const i=r(8287);class ListXform extends i{constructor(e){super();this.tag=e.tag;this.always=!!e.always;this.count=e.count;this.empty=e.empty;this.$count=e.$count||"count";this.$=e.$;this.childXform=e.childXform;this.maxItems=e.maxItems}prepare(e,t){const{childXform:r}=this;if(e){e.forEach(((e,i)=>{t.index=i;r.prepare(e,t)}))}}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$);if(this.count){e.addAttribute(this.$count,t&&t.length||0)}const{childXform:r}=this;(t||[]).forEach(((t,i)=>{r.render(e,t,i)}));e.closeNode()}else if(this.empty){e.leafNode(this.tag)}}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.model=[];return true;default:if(this.childXform.parseOpen(e)){this.parser=this.childXform;return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined;if(this.maxItems&&this.model.length>this.maxItems){throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`)}}return true}return false}reconcile(e,t){if(e){const{childXform:r}=this;e.forEach((e=>{r.reconcile(e,t)}))}}}e.exports=ListXform},1350:function(e,t,r){const i=r(6289);const n=r(8287);class AutoFilterXform extends n{get tag(){return"autoFilter"}render(e,t){if(t){if(typeof t==="string"){e.leafNode("autoFilter",{ref:t})}else{const getAddress=function(e){if(typeof e==="string"){return e}return i.getAddress(e.row,e.column).address};const r=getAddress(t.from);const n=getAddress(t.to);if(r&&n){e.leafNode("autoFilter",{ref:`${r}:${n}`})}}}}parseOpen(e){if(e.name==="autoFilter"){this.model=e.attributes.ref}}}e.exports=AutoFilterXform},150:function(e,t,r){const i=r(9145);const n=r(8287);const s=r(2514);const o=r(4041);const c=r(9573);function getValueType(e){if(e===null||e===undefined){return o.ValueType.Null}if(e instanceof String||typeof e==="string"){return o.ValueType.String}if(typeof e==="number"){return o.ValueType.Number}if(typeof e==="boolean"){return o.ValueType.Boolean}if(e instanceof Date){return o.ValueType.Date}if(e.text&&e.hyperlink){return o.ValueType.Hyperlink}if(e.formula){return o.ValueType.Formula}if(e.error){return o.ValueType.Error}throw new Error("I could not understand type of value")}function getEffectiveCellType(e){switch(e.type){case o.ValueType.Formula:return getValueType(e.result);default:return e.type}}class CellXform extends n{constructor(){super();this.richTextXForm=new c}get tag(){return"c"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{},getEffectiveCellType(e));if(r){e.styleId=r}if(e.comment){t.comments.push({...e.comment,ref:e.address})}switch(e.type){case o.ValueType.String:case o.ValueType.RichText:if(t.sharedStrings){e.ssId=t.sharedStrings.add(e.value)}break;case o.ValueType.Date:if(t.date1904){e.date1904=true}break;case o.ValueType.Hyperlink:if(t.sharedStrings&&e.text!==undefined&&e.text!==null){e.ssId=t.sharedStrings.add(e.text)}t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904){e.date1904=true}if(e.shareType==="shared"){e.si=t.siFormulae++}if(e.formula){t.formulae[e.address]=e}else if(e.sharedFormula){const r=t.formulae[e.sharedFormula];if(!r){throw new Error(`Shared Formula master must exist above and or left of clone for cell ${e.address}`)}if(r.si===undefined){r.shareType="shared";r.si=t.siFormulae++;r.range=new s(r.address,e.address)}else if(r.range){r.range.expandToAddress(e.address)}e.si=r.si}break;default:break}}renderFormula(e,t){let r=null;switch(t.shareType){case"shared":r={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":r={t:"array",ref:t.ref};break;default:if(t.si!==undefined){r={t:"shared",si:t.si}}break}switch(getValueType(t.result)){case o.ValueType.Null:e.leafNode("f",r,t.formula);break;case o.ValueType.String:e.addAttribute("t","str");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result);break;case o.ValueType.Number:e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result);break;case o.ValueType.Boolean:e.addAttribute("t","b");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result?1:0);break;case o.ValueType.Error:e.addAttribute("t","e");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result.error);break;case o.ValueType.Date:e.leafNode("f",r,t.formula);e.leafNode("v",null,i.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type===o.ValueType.Null&&!t.styleId){return}e.openNode("c");e.addAttribute("r",t.address);if(t.styleId){e.addAttribute("s",t.styleId)}switch(t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode("v",null,t.value);break;case o.ValueType.Boolean:e.addAttribute("t","b");e.leafNode("v",null,t.value?"1":"0");break;case o.ValueType.Error:e.addAttribute("t","e");e.leafNode("v",null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:if(t.ssId!==undefined){e.addAttribute("t","s");e.leafNode("v",null,t.ssId)}else if(t.value&&t.value.richText){e.addAttribute("t","inlineStr");e.openNode("is");t.value.richText.forEach((t=>{this.richTextXForm.render(e,t)}));e.closeNode("is")}else{e.addAttribute("t","str");e.leafNode("v",null,t.value)}break;case o.ValueType.Date:e.leafNode("v",null,i.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:if(t.ssId!==undefined){e.addAttribute("t","s");e.leafNode("v",null,t.ssId)}else{e.addAttribute("t","str");e.leafNode("v",null,t.text)}break;case o.ValueType.Formula:this.renderFormula(e,t);break;case o.ValueType.Merge:break;default:break}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"c":this.model={address:e.attributes.r};this.t=e.attributes.t;if(e.attributes.s){this.model.styleId=parseInt(e.attributes.s,10)}return true;case"f":this.currentNode="f";this.model.si=e.attributes.si;this.model.shareType=e.attributes.t;this.model.ref=e.attributes.ref;return true;case"v":this.currentNode="v";return true;case"t":this.currentNode="t";return true;case"r":this.parser=this.richTextXForm;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e);return}switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":if(this.model.value&&this.model.value.richText){this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e}else{this.model.value=this.model.value?this.model.value+e:e}break;default:break}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType){e.type=o.ValueType.Formula;if(e.value){if(this.t==="str"){e.result=i.xmlDecode(e.value)}else if(this.t==="b"){e.result=parseInt(e.value,10)!==0}else if(this.t==="e"){e.result={error:e.value}}else{e.result=parseFloat(e.value)}e.value=undefined}}else if(e.value!==undefined){switch(this.t){case"s":e.type=o.ValueType.String;e.value=parseInt(e.value,10);break;case"str":e.type=o.ValueType.String;e.value=i.xmlDecode(e.value);break;case"inlineStr":e.type=o.ValueType.String;break;case"b":e.type=o.ValueType.Boolean;e.value=parseInt(e.value,10)!==0;break;case"e":e.type=o.ValueType.Error;e.value={error:e.value};break;default:e.type=o.ValueType.Number;e.value=parseFloat(e.value);break}}else if(e.styleId){e.type=o.ValueType.Null}else{e.type=o.ValueType.Merge}return false}case"f":case"v":case"is":this.currentNode=undefined;return true;case"t":if(this.parser){this.parser.parseClose(e);return true}this.currentNode=undefined;return true;case"r":this.model.value=this.model.value||{};this.model.value.richText=this.model.value.richText||[];this.model.value.richText.push(this.parser.model);this.parser=undefined;this.currentNode=undefined;return true;default:if(this.parser){this.parser.parseClose(e);return true}return false}}reconcile(e,t){const r=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);if(r){e.style=r}if(e.styleId!==undefined){e.styleId=undefined}switch(e.type){case o.ValueType.String:if(typeof e.value==="number"){if(t.sharedStrings){e.value=t.sharedStrings.getString(e.value)}}if(e.value.richText){e.type=o.ValueType.RichText}break;case o.ValueType.Number:if(r&&i.isDateFmt(r.numFmt)){e.type=o.ValueType.Date;e.value=i.excelToDate(e.value,t.date1904)}break;case o.ValueType.Formula:if(e.result!==undefined&&r&&i.isDateFmt(r.numFmt)){e.result=i.excelToDate(e.result,t.date1904)}if(e.shareType==="shared"){if(e.ref){t.formulae[e.si]=e.address}else{e.sharedFormula=t.formulae[e.si];delete e.shareType}delete e.si}break;default:break}const n=t.hyperlinkMap[e.address];if(n){if(e.type===o.ValueType.Formula){e.text=e.result;e.result=undefined}else{e.text=e.value;e.value=undefined}e.type=o.ValueType.Hyperlink;e.hyperlink=n}const s=t.commentsMap&&t.commentsMap[e.address];if(s){e.comment=s}}}e.exports=CellXform},6657:function(e,t,r){const i=r(8287);class CfIconExtXform extends i{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen({attributes:e}){this.model={iconSet:e.iconSet,iconId:i.toIntValue(e.iconId)}}parseClose(e){return e!==this.tag}}e.exports=CfIconExtXform},7290:function(e,t,r){const{v4:i}=r(3342);const n=r(8287);const s=r(8953);const o=r(7873);const c=r(9976);const h={"3Triangles":true,"3Stars":true,"5Boxes":true};class CfRuleExtXform extends s{constructor(){super();this.map={"x14:dataBar":this.databarXform=new o,"x14:iconSet":this.iconSetXform=new c}}get tag(){return"x14:cfRule"}static isExt(e){if(e.type==="dataBar"){return o.isExt(e)}if(e.type==="iconSet"){if(e.custom||h[e.iconSet]){return true}}return false}prepare(e){if(CfRuleExtXform.isExt(e)){e.x14Id=`{${i()}}`.toUpperCase()}}render(e,t){if(!CfRuleExtXform.isExt(t)){return}switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t);break}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id});this.databarXform.render(e,t);e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${i()}}`});this.iconSetXform.render(e,t);e.closeNode()}createNewModel({attributes:e}){return{type:e.type,x14Id:e.id,priority:n.toIntValue(e.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=CfRuleExtXform},8694:function(e,t,r){const i=r(8953);const n=r(4838);class CfvoExtXform extends i{constructor(){super();this.map={"xm:f":this.fExtXform=new n}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type});if(t.value!==undefined){this.fExtXform.render(e,t.value)}e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){switch(e){case"xm:f":this.model.value=t.model?parseFloat(t.model):0;break}}}e.exports=CfvoExtXform},3416:function(e,t,r){const i=r(8953);const n=r(6021);const s=r(7290);class ConditionalFormattingExtXform extends i{constructor(){super();this.map={"xm:sqref":this.sqRef=new n,"x14:cfRule":this.cfRule=new s}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach((e=>{this.cfRule.prepare(e,t)}))}render(e,t){if(!t.rules.some(s.isExt)){return}e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"});t.rules.filter(s.isExt).forEach((t=>this.cfRule.render(e,t)));this.sqRef.render(e,t.ref);e.closeNode()}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model);break}}}e.exports=ConditionalFormattingExtXform},8997:function(e,t,r){const i=r(8953);const n=r(7290);const s=r(3416);class ConditionalFormattingsExtXform extends i{constructor(){super();this.map={"x14:conditionalFormatting":this.cfXform=new s}}get tag(){return"x14:conditionalFormattings"}hasContent(e){if(e.hasExtContent===undefined){e.hasExtContent=e.some((e=>e.rules.some(n.isExt)))}return e.hasExtContent}prepare(e,t){e.forEach((e=>{this.cfXform.prepare(e,t)}))}render(e,t){if(this.hasContent(t)){e.openNode(this.tag);t.forEach((t=>this.cfXform.render(e,t)));e.closeNode()}}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}e.exports=ConditionalFormattingsExtXform},7873:function(e,t,r){const i=r(8287);const n=r(8953);const s=r(767);const o=r(8694);class DatabarExtXform extends n{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new o,"x14:borderColor":this.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new s("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:i.toIntAttribute(t.minLength,0,true),maxLength:i.toIntAttribute(t.maxLength,100,true),border:i.toBoolAttribute(t.border,false),gradient:i.toBoolAttribute(t.gradient,true),negativeBarColorSameAsPositive:i.toBoolAttribute(t.negativeBarColorSameAsPositive,true),negativeBarBorderColorSameAsPositive:i.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,true),axisPosition:i.toAttribute(t.axisPosition,"auto"),direction:i.toAttribute(t.direction,"leftToRight")});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));this.borderColorXform.render(e,t.borderColor);this.negativeBorderColorXform.render(e,t.negativeBorderColor);this.negativeFillColorXform.render(e,t.negativeFillColor);this.axisColorXform.render(e,t.axisColor);e.closeNode()}createNewModel({attributes:e}){return{cfvo:[],minLength:i.toIntValue(e.minLength,0),maxLength:i.toIntValue(e.maxLength,100),border:i.toBoolValue(e.border,false),gradient:i.toBoolValue(e.gradient,true),negativeBarColorSameAsPositive:i.toBoolValue(e.negativeBarColorSameAsPositive,true),negativeBarBorderColorSameAsPositive:i.toBoolValue(e.negativeBarBorderColorSameAsPositive,true),axisPosition:i.toStringValue(e.axisPosition,"auto"),direction:i.toStringValue(e.direction,"leftToRight")}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;default:this.model[r]=t.model;break}}}e.exports=DatabarExtXform},4838:function(e,t,r){const i=r(8287);class FExtXform extends i{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=FExtXform},9976:function(e,t,r){const i=r(8287);const n=r(8953);const s=r(8694);const o=r(6657);class IconSetExtXform extends n{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new s,"x14:cfIcon":this.cfIconXform=new o}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:i.toStringAttribute(t.iconSet),reverse:i.toBoolAttribute(t.reverse,false),showValue:i.toBoolAttribute(t.showValue,true),custom:i.toBoolAttribute(t.icons,false)});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));if(t.icons){t.icons.forEach(((t,r)=>{t.iconId=r;this.cfIconXform.render(e,t)}))}e.closeNode()}createNewModel({attributes:e}){return{cfvo:[],iconSet:i.toStringValue(e.iconSet,"3TrafficLights"),reverse:i.toBoolValue(e.reverse,false),showValue:i.toBoolValue(e.showValue,true)}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":if(!this.model.icons){this.model.icons=[]}this.model.icons.push(t.model);break;default:this.model[r]=t.model;break}}}e.exports=IconSetExtXform},6021:function(e,t,r){const i=r(8287);class SqrefExtXform extends i{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=SqrefExtXform},8746:function(e,t,r){const i=r(8287);const n=r(8953);const s=r(2514);const o=r(2289);const c=r(8761);const h=r(1262);const p=r(9496);const g=r(1880);const y={"3Triangles":true,"3Stars":true,"5Boxes":true};const getTextFormula=e=>{if(e.formulae&&e.formulae[0]){return e.formulae[0]}const t=new s(e.ref);const{tl:r}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${r})))`;case"containsBlanks":return`LEN(TRIM(${r}))=0`;case"notContainsBlanks":return`LEN(TRIM(${r}))>0`;case"containsErrors":return`ISERROR(${r})`;case"notContainsErrors":return`NOT(ISERROR(${r}))`;default:return undefined}};const getTimePeriodFormula=e=>{if(e.formulae&&e.formulae[0]){return e.formulae[0]}const t=new s(e.ref);const{tl:r}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${r},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${r},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${r},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${r},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${r},1)=TODAY()-1`;case"today":return`FLOOR(${r},1)=TODAY()`;case"tomorrow":return`FLOOR(${r},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${r},1)<=6,FLOOR(${r},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0-1)),YEAR(${r})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${r})=MONTH(TODAY()),YEAR(${r})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0+1)),YEAR(${r})=YEAR(EDATE(TODAY(),0+1)))`;default:return undefined}};const opType=e=>{const{type:t,operator:r}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:r}}};class CfRuleXform extends n{constructor(){super();this.map={dataBar:this.databarXform=new o,extLst:this.extLstRefXform=new c,formula:this.formulaXform=new h,colorScale:this.colorScaleXform=new p,iconSet:this.iconSetXform=new g}}get tag(){return"cfRule"}static isPrimitive(e){if(e.type==="iconSet"){if(e.custom||y[e.iconSet]){return false}}return true}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t);break}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority});this.formulaXform.render(e,t.formulae[0]);e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator});t.formulae.forEach((t=>{this.formulaXform.render(e,t)}));e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:i.toBoolAttribute(t.percent,false),bottom:i.toBoolAttribute(t.bottom,false),rank:i.toIntValue(t.rank,10,true)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:i.toBoolAttribute(t.aboveAverage,true)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority});this.databarXform.render(e,t);this.extLstRefXform.render(e,t);e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority});this.colorScaleXform.render(e,t);e.closeNode()}renderIconSet(e,t){if(!CfRuleXform.isPrimitive(t)){return}e.openNode(this.tag,{type:"iconSet",priority:t.priority});this.iconSetXform.render(e,t);e.closeNode()}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:i.toStringAttribute(t.operator,"containsText")});const r=getTextFormula(t);if(r){this.formulaXform.render(e,r)}e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const r=getTimePeriodFormula(t);if(r){this.formulaXform.render(e,r)}e.closeNode()}createNewModel({attributes:e}){return{...opType(e),dxfId:i.toIntValue(e.dxfId),priority:i.toIntValue(e.priority),timePeriod:e.timePeriod,percent:i.toBoolValue(e.percent),bottom:i.toBoolValue(e.bottom),rank:i.toIntValue(e.rank),aboveAverage:i.toBoolValue(e.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[];this.model.formulae.push(t.model);break}}}e.exports=CfRuleXform},6870:function(e,t,r){const i=r(8287);class CfvoXform extends i{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:i.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}e.exports=CfvoXform},9496:function(e,t,r){const i=r(8953);const n=r(767);const s=r(6870);class ColorScaleXform extends i{constructor(){super();this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new n}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag);t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));t.color.forEach((t=>{this.colorXform.render(e,t)}));e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}e.exports=ColorScaleXform},2184:function(e,t,r){const i=r(8953);const n=r(8746);class ConditionalFormattingXform extends i{constructor(){super();this.map={cfRule:new n}}get tag(){return"conditionalFormatting"}render(e,t){if(!t.rules.some(n.isPrimitive)){return}e.openNode(this.tag,{sqref:t.ref});t.rules.forEach((r=>{if(n.isPrimitive(r)){r.ref=t.ref;this.map.cfRule.render(e,r)}}));e.closeNode()}createNewModel({attributes:e}){return{ref:e.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}e.exports=ConditionalFormattingXform},7833:function(e,t,r){const i=r(8287);const n=r(2184);class ConditionalFormattingsXform extends i{constructor(){super();this.cfXform=new n}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let r=e.reduce(((e,t)=>Math.max(e,...t.rules.map((e=>e.priority||0)))),1);e.forEach((e=>{e.rules.forEach((e=>{if(!e.priority){e.priority=r++}if(e.style){e.dxfId=t.styles.addDxfStyle(e.style)}}))}))}render(e,t){t.forEach((t=>{this.cfXform.render(e,t)}))}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"conditionalFormatting":this.parser=this.cfXform;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined;return false}return true}return false}reconcile(e,t){e.forEach((e=>{e.rules.forEach((e=>{if(e.dxfId!==undefined){e.style=t.styles.getDxfStyle(e.dxfId);delete e.dxfId}}))}))}}e.exports=ConditionalFormattingsXform},2289:function(e,t,r){const i=r(8953);const n=r(767);const s=r(6870);class DatabarXform extends i{constructor(){super();this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new n}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag);t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));this.colorXform.render(e,t.color);e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model;break}}}e.exports=DatabarXform},8761:function(e,t,r){const i=r(8287);const n=r(8953);class X14IdXform extends i{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class ExtXform extends n{constructor(){super();this.map={"x14:id":this.idXform=new X14IdXform}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"});this.idXform.render(e,t.x14Id);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}class ExtLstRefXform extends n{constructor(){super();this.map={ext:new ExtXform}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag);this.map.ext.render(e,t);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=ExtLstRefXform},1262:function(e,t,r){const i=r(8287);class FormulaXform extends i{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=FormulaXform},1880:function(e,t,r){const i=r(8287);const n=r(8953);const s=r(6870);class IconSetXform extends n{constructor(){super();this.map={cfvo:this.cfvoXform=new s}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:i.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:i.toBoolAttribute(t.reverse,false),showValue:i.toBoolAttribute(t.showValue,true)});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));e.closeNode()}createNewModel({attributes:e}){return{iconSet:i.toStringValue(e.iconSet,"3TrafficLights"),reverse:i.toBoolValue(e.reverse),showValue:i.toBoolValue(e.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}e.exports=IconSetXform},6004:function(e,t,r){const i=r(9145);const n=r(8287);class ColXform extends n{get tag(){return"col"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{});if(r){e.styleId=r}}render(e,t){e.openNode("col");e.addAttribute("min",t.min);e.addAttribute("max",t.max);if(t.width){e.addAttribute("width",t.width)}if(t.styleId){e.addAttribute("style",t.styleId)}if(t.hidden){e.addAttribute("hidden","1")}if(t.bestFit){e.addAttribute("bestFit","1")}if(t.outlineLevel){e.addAttribute("outlineLevel",t.outlineLevel)}if(t.collapsed){e.addAttribute("collapsed","1")}e.addAttribute("customWidth","1");e.closeNode()}parseOpen(e){if(e.name==="col"){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:e.attributes.width===undefined?undefined:parseFloat(e.attributes.width||"0")};if(e.attributes.style){t.styleId=parseInt(e.attributes.style,10)}if(i.parseBoolean(e.attributes.hidden)){t.hidden=true}if(i.parseBoolean(e.attributes.bestFit)){t.bestFit=true}if(e.attributes.outlineLevel){t.outlineLevel=parseInt(e.attributes.outlineLevel,10)}if(i.parseBoolean(e.attributes.collapsed)){t.collapsed=true}return true}return false}parseText(){}parseClose(){return false}reconcile(e,t){if(e.styleId){e.style=t.styles.getStyleModel(e.styleId)}}}e.exports=ColXform},8700:function(e,t,r){const i=r(2563);const n=r(9145);const s=r(6289);const o=r(8287);const c=r(2514);function assign(e,t,r,i){const n=t[r];if(n!==undefined){e[r]=n}else if(i!==undefined){e[r]=i}}function assignBool(e,t,r,i){const s=t[r];if(s!==undefined){e[r]=n.parseBoolean(s)}else if(i!==undefined){e[r]=i}}function optimiseDataValidations(e){const t=i.map(e,((e,t)=>({address:t,dataValidation:e,marked:false}))).sort(((e,t)=>i.strcmp(e.address,t.address)));const r=i.keyBy(t,"address");const matchCol=(t,r,n)=>{for(let o=0;o<r;o++){const r=s.encodeAddress(t.row+o,n);if(!e[r]||!i.isEqual(e[t.address],e[r])){return false}}return true};return t.map((t=>{if(!t.marked){const n=s.decodeEx(t.address);if(n.dimensions){r[n.dimensions].marked=true;return{...t.dataValidation,sqref:t.address}}let o=1;let c=s.encodeAddress(n.row+o,n.col);while(e[c]&&i.isEqual(t.dataValidation,e[c])){o++;c=s.encodeAddress(n.row+o,n.col)}let h=1;while(matchCol(n,o,n.col+h)){h++}for(let e=0;e<o;e++){for(let t=0;t<h;t++){c=s.encodeAddress(n.row+e,n.col+t);r[c].marked=true}}if(o>1||h>1){const e=n.row+(o-1);const r=n.col+(h-1);return{...t.dataValidation,sqref:`${t.address}:${s.encodeAddress(e,r)}`}}return{...t.dataValidation,sqref:t.address}}return null})).filter(Boolean)}class DataValidationsXform extends o{get tag(){return"dataValidations"}render(e,t){const r=optimiseDataValidations(t);if(r.length){e.openNode("dataValidations",{count:r.length});r.forEach((t=>{e.openNode("dataValidation");if(t.type!=="any"){e.addAttribute("type",t.type);if(t.operator&&t.type!=="list"&&t.operator!=="between"){e.addAttribute("operator",t.operator)}if(t.allowBlank){e.addAttribute("allowBlank","1")}}if(t.showInputMessage){e.addAttribute("showInputMessage","1")}if(t.promptTitle){e.addAttribute("promptTitle",t.promptTitle)}if(t.prompt){e.addAttribute("prompt",t.prompt)}if(t.showErrorMessage){e.addAttribute("showErrorMessage","1")}if(t.errorStyle){e.addAttribute("errorStyle",t.errorStyle)}if(t.errorTitle){e.addAttribute("errorTitle",t.errorTitle)}if(t.error){e.addAttribute("error",t.error)}e.addAttribute("sqref",t.sqref);(t.formulae||[]).forEach(((r,i)=>{e.openNode(`formula${i+1}`);if(t.type==="date"){e.writeText(n.dateToExcel(new Date(r)))}else{e.writeText(r)}e.closeNode()}));e.closeNode()}));e.closeNode()}}parseOpen(e){switch(e.name){case"dataValidations":this.model={};return true;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};if(e.attributes.type){assignBool(t,e.attributes,"allowBlank")}assignBool(t,e.attributes,"showInputMessage");assignBool(t,e.attributes,"showErrorMessage");switch(t.type){case"any":case"list":case"custom":break;default:assign(t,e.attributes,"operator","between");break}assign(t,e.attributes,"promptTitle");assign(t,e.attributes,"prompt");assign(t,e.attributes,"errorStyle");assign(t,e.attributes,"errorTitle");assign(t,e.attributes,"error");this._dataValidation=t;return true}case"formula1":case"formula2":this._formula=[];return true;default:return false}}parseText(e){if(this._formula){this._formula.push(e)}}parseClose(e){switch(e){case"dataValidations":return false;case"dataValidation":{if(!this._dataValidation.formulae||!this._dataValidation.formulae.length){delete this._dataValidation.formulae;delete this._dataValidation.operator}const e=this._address.split(/\s+/g)||[];e.forEach((e=>{if(e.includes(":")){const t=new c(e);t.forEachAddress((e=>{this.model[e]=this._dataValidation}))}else{this.model[e]=this._dataValidation}}));return true}case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=n.excelToDate(parseFloat(e));break;default:break}this._dataValidation.formulae.push(e);this._formula=undefined;return true}default:return true}}}e.exports=DataValidationsXform},2478:function(e,t,r){const i=r(8287);class DimensionXform extends i{get tag(){return"dimension"}render(e,t){if(t){e.leafNode("dimension",{ref:t})}}parseOpen(e){if(e.name==="dimension"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=DimensionXform},1056:function(e,t,r){const i=r(8287);class DrawingXform extends i{get tag(){return"drawing"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=DrawingXform},1251:function(e,t,r){const i=r(8953);const n=r(8997);class ExtXform extends i{constructor(){super();this.map={"x14:conditionalFormattings":this.conditionalFormattings=new n}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"});this.conditionalFormattings.render(e,t.conditionalFormattings);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}class ExtLstXform extends i{constructor(){super();this.map={ext:this.ext=new ExtXform}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){if(!this.hasContent(t)){return}e.openNode("extLst");this.ext.render(e,t);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=ExtLstXform},6041:function(e,t,r){const i=r(8287);class HeaderFooterXform extends i{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let r=false;e.openNode("headerFooter");if(t.differentFirst){e.addAttribute("differentFirst","1");r=true}if(t.differentOddEven){e.addAttribute("differentOddEven","1");r=true}if(t.oddHeader&&typeof t.oddHeader==="string"){e.leafNode("oddHeader",null,t.oddHeader);r=true}if(t.oddFooter&&typeof t.oddFooter==="string"){e.leafNode("oddFooter",null,t.oddFooter);r=true}if(t.evenHeader&&typeof t.evenHeader==="string"){e.leafNode("evenHeader",null,t.evenHeader);r=true}if(t.evenFooter&&typeof t.evenFooter==="string"){e.leafNode("evenFooter",null,t.evenFooter);r=true}if(t.firstHeader&&typeof t.firstHeader==="string"){e.leafNode("firstHeader",null,t.firstHeader);r=true}if(t.firstFooter&&typeof t.firstFooter==="string"){e.leafNode("firstFooter",null,t.firstFooter);r=true}if(r){e.closeNode();e.commit()}else{e.rollback()}}}parseOpen(e){switch(e.name){case"headerFooter":this.model={};if(e.attributes.differentFirst){this.model.differentFirst=parseInt(e.attributes.differentFirst,0)===1}if(e.attributes.differentOddEven){this.model.differentOddEven=parseInt(e.attributes.differentOddEven,0)===1}return true;case"oddHeader":this.currentNode="oddHeader";return true;case"oddFooter":this.currentNode="oddFooter";return true;case"evenHeader":this.currentNode="evenHeader";return true;case"evenFooter":this.currentNode="evenFooter";return true;case"firstHeader":this.currentNode="firstHeader";return true;case"firstFooter":this.currentNode="firstFooter";return true;default:return false}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e;break;default:break}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":this.currentNode=undefined;return true;default:return false}}}e.exports=HeaderFooterXform},3248:function(e,t,r){const i=r(8287);class HyperlinkXform extends i{get tag(){return"hyperlink"}render(e,t){if(this.isInternalLink(t)){e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target})}else{e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}}parseOpen(e){if(e.name==="hyperlink"){this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip};if(e.attributes.location){this.model.target=e.attributes.location}return true}return false}parseText(){}parseClose(){return false}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}e.exports=HyperlinkXform},6329:function(e,t,r){const i=r(8287);class MergeCellXform extends i{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){if(e.name==="mergeCell"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=MergeCellXform},40:function(e,t,r){const i=r(2563);const n=r(2514);const s=r(6289);const o=r(4041);class Merges{constructor(){this.merges={}}add(e){if(this.merges[e.master]){this.merges[e.master].expandToAddress(e.address)}else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new n(t)}}get mergeCells(){return i.map(this.merges,(e=>e.range))}reconcile(e,t){i.each(e,(e=>{const r=s.decode(e);for(let e=r.top;e<=r.bottom;e++){const i=t[e-1];for(let t=r.left;t<=r.right;t++){const n=i.cells[t-1];if(!n){i.cells[t]={type:o.ValueType.Null,address:s.encodeAddress(e,t)}}else if(n.type===o.ValueType.Merge){n.master=r.tl}}}}))}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}e.exports=Merges},6238:function(e,t,r){const i=r(8287);const isDefined=e=>typeof e!=="undefined";class OutlinePropertiesXform extends i{get tag(){return"outlinePr"}render(e,t){if(t&&(isDefined(t.summaryBelow)||isDefined(t.summaryRight))){e.leafNode(this.tag,{summaryBelow:isDefined(t.summaryBelow)?Number(t.summaryBelow):undefined,summaryRight:isDefined(t.summaryRight)?Number(t.summaryRight):undefined});return true}return false}parseOpen(e){if(e.name===this.tag){this.model={summaryBelow:isDefined(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):undefined,summaryRight:isDefined(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):undefined};return true}return false}parseText(){}parseClose(){return false}}e.exports=OutlinePropertiesXform},6132:function(e,t,r){const i=r(8287);class PageBreaksXform extends i{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){if(e.name==="brk"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=PageBreaksXform},5575:function(e,t,r){const i=r(2563);const n=r(8287);class PageMarginsXform extends n{get tag(){return"pageMargins"}render(e,t){if(t){const r={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};if(i.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PageMarginsXform},8669:function(e,t,r){const i=r(8287);class PageSetupPropertiesXform extends i{get tag(){return"pageSetUpPr"}render(e,t){if(t&&t.fitToPage){e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":undefined});return true}return false}parseOpen(e){if(e.name===this.tag){this.model={fitToPage:e.attributes.fitToPage==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=PageSetupPropertiesXform},4437:function(e,t,r){const i=r(2563);const n=r(8287);function booleanToXml(e){return e?"1":undefined}function pageOrderToXml(e){switch(e){case"overThenDown":return e;default:return undefined}}function cellCommentsToXml(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return undefined}}function errorsToXml(e){switch(e){case"dash":case"blank":case"NA":return e;default:return undefined}}function pageSizeToModel(e){return e!==undefined?parseInt(e,10):undefined}class PageSetupXform extends n{get tag(){return"pageSetup"}render(e,t){if(t){const r={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:pageOrderToXml(t.pageOrder),blackAndWhite:booleanToXml(t.blackAndWhite),draft:booleanToXml(t.draft),cellComments:cellCommentsToXml(t.cellComments),errors:errorsToXml(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:booleanToXml(t.firstPageNumber),usePrinterDefaults:booleanToXml(t.usePrinterDefaults),copies:t.copies};if(i.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={paperSize:pageSizeToModel(e.attributes.paperSize),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:e.attributes.blackAndWhite==="1",draft:e.attributes.draft==="1",cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:e.attributes.useFirstPageNumber==="1",usePrinterDefaults:e.attributes.usePrinterDefaults==="1",copies:parseInt(e.attributes.copies||"1",10)};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PageSetupXform},3948:function(e,t,r){const i=r(8287);class PictureXform extends i{get tag(){return"picture"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PictureXform},8986:function(e,t,r){const i=r(2563);const n=r(8287);function booleanToXml(e){return e?"1":undefined}class PrintOptionsXform extends n{get tag(){return"printOptions"}render(e,t){if(t){const r={headings:booleanToXml(t.showRowColHeaders),gridLines:booleanToXml(t.showGridLines),horizontalCentered:booleanToXml(t.horizontalCentered),verticalCentered:booleanToXml(t.verticalCentered)};if(i.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={showRowColHeaders:e.attributes.headings==="1",showGridLines:e.attributes.gridLines==="1",horizontalCentered:e.attributes.horizontalCentered==="1",verticalCentered:e.attributes.verticalCentered==="1"};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PrintOptionsXform},5089:function(e,t,r){"use strict";const i=r(6132);const n=r(6422);class RowBreaksXform extends n{constructor(){const e={tag:"rowBreaks",count:true,childXform:new i};super(e)}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$);if(this.count){e.addAttribute(this.$count,t.length);e.addAttribute("manualBreakCount",t.length)}const{childXform:r}=this;t.forEach((t=>{r.render(e,t)}));e.closeNode()}else if(this.empty){e.leafNode(this.tag)}}}e.exports=RowBreaksXform},8858:function(e,t,r){const i=r(8287);const n=r(9145);const s=r(150);class RowXform extends i{constructor(e){super();this.maxItems=e&&e.maxItems;this.map={c:new s}}get tag(){return"row"}prepare(e,t){const r=t.styles.addStyleModel(e.style);if(r){e.styleId=r}const i=this.map.c;e.cells.forEach((e=>{i.prepare(e,t)}))}render(e,t,r){e.openNode("row");e.addAttribute("r",t.number);if(t.height){e.addAttribute("ht",t.height);e.addAttribute("customHeight","1")}if(t.hidden){e.addAttribute("hidden","1")}if(t.min>0&&t.max>0&&t.min<=t.max){e.addAttribute("spans",`${t.min}:${t.max}`)}if(t.styleId){e.addAttribute("s",t.styleId);e.addAttribute("customFormat","1")}e.addAttribute("x14ac:dyDescent","0.25");if(t.outlineLevel){e.addAttribute("outlineLevel",t.outlineLevel)}if(t.collapsed){e.addAttribute("collapsed","1")}const i=this.map.c;t.cells.forEach((t=>{i.render(e,t,r)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name==="row"){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map((e=>parseInt(e,10))):[undefined,undefined];const r=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};if(e.attributes.s){r.styleId=parseInt(e.attributes.s,10)}if(n.parseBoolean(e.attributes.hidden)){r.hidden=true}if(n.parseBoolean(e.attributes.bestFit)){r.bestFit=true}if(e.attributes.ht){r.height=parseFloat(e.attributes.ht)}if(e.attributes.outlineLevel){r.outlineLevel=parseInt(e.attributes.outlineLevel,10)}if(n.parseBoolean(e.attributes.collapsed)){r.collapsed=true}return true}this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.cells.push(this.parser.model);if(this.maxItems&&this.model.cells.length>this.maxItems){throw new Error(`Max column count (${this.maxItems}) exceeded`)}this.parser=undefined}return true}return false}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{};if(e.styleId!==undefined){e.styleId=undefined}const r=this.map.c;e.cells.forEach((e=>{r.reconcile(e,t)}))}}e.exports=RowXform},1731:function(e,t,r){const i=r(2563);const n=r(8287);class SheetFormatPropertiesXform extends n{get tag(){return"sheetFormatPr"}render(e,t){if(t){const r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};if(t.defaultColWidth){r.defaultColWidth=t.defaultColWidth}if(!t.defaultRowHeight||t.defaultRowHeight!==15){r.customHeight="1"}if(i.some(r,(e=>e!==undefined))){e.leafNode("sheetFormatPr",r)}}}parseOpen(e){if(e.name==="sheetFormatPr"){this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)};if(e.attributes.defaultColWidth){this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)}return true}return false}parseText(){}parseClose(){return false}}e.exports=SheetFormatPropertiesXform},3305:function(e,t,r){const i=r(8287);const n=r(767);const s=r(8669);const o=r(6238);class SheetPropertiesXform extends i{constructor(){super();this.map={tabColor:new n("tabColor"),pageSetUpPr:new s,outlinePr:new o}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback();e.openNode("sheetPr");let r=false;r=this.map.tabColor.render(e,t.tabColor)||r;r=this.map.pageSetUpPr.render(e,t.pageSetup)||r;r=this.map.outlinePr.render(e,t.outlineProperties)||r;if(r){e.closeNode();e.commit()}else{e.rollback()}}}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name===this.tag){this.reset();return true}if(this.map[e.name]){this.parser=this.map[e.name];this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e);return true}return false}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model){this.model={};if(this.map.tabColor.model){this.model.tabColor=this.map.tabColor.model}if(this.map.pageSetUpPr.model){this.model.pageSetup=this.map.pageSetUpPr.model}if(this.map.outlinePr.model){this.model.outlineProperties=this.map.outlinePr.model}}else{this.model=null}return false}}e.exports=SheetPropertiesXform},6303:function(e,t,r){const i=r(2563);const n=r(8287);function booleanToXml(e,t){return e?t:undefined}function xmlToBoolean(e,t){return e===t?true:undefined}class SheetProtectionXform extends n{get tag(){return"sheetProtection"}render(e,t){if(t){const r={sheet:booleanToXml(t.sheet,"1"),selectLockedCells:t.selectLockedCells===false?"1":undefined,selectUnlockedCells:t.selectUnlockedCells===false?"1":undefined,formatCells:booleanToXml(t.formatCells,"0"),formatColumns:booleanToXml(t.formatColumns,"0"),formatRows:booleanToXml(t.formatRows,"0"),insertColumns:booleanToXml(t.insertColumns,"0"),insertRows:booleanToXml(t.insertRows,"0"),insertHyperlinks:booleanToXml(t.insertHyperlinks,"0"),deleteColumns:booleanToXml(t.deleteColumns,"0"),deleteRows:booleanToXml(t.deleteRows,"0"),sort:booleanToXml(t.sort,"0"),autoFilter:booleanToXml(t.autoFilter,"0"),pivotTables:booleanToXml(t.pivotTables,"0")};if(t.sheet){r.algorithmName=t.algorithmName;r.hashValue=t.hashValue;r.saltValue=t.saltValue;r.spinCount=t.spinCount;r.objects=booleanToXml(t.objects===false,"1");r.scenarios=booleanToXml(t.scenarios===false,"1")}if(i.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={sheet:xmlToBoolean(e.attributes.sheet,"1"),objects:e.attributes.objects==="1"?false:undefined,scenarios:e.attributes.scenarios==="1"?false:undefined,selectLockedCells:e.attributes.selectLockedCells==="1"?false:undefined,selectUnlockedCells:e.attributes.selectUnlockedCells==="1"?false:undefined,formatCells:xmlToBoolean(e.attributes.formatCells,"0"),formatColumns:xmlToBoolean(e.attributes.formatColumns,"0"),formatRows:xmlToBoolean(e.attributes.formatRows,"0"),insertColumns:xmlToBoolean(e.attributes.insertColumns,"0"),insertRows:xmlToBoolean(e.attributes.insertRows,"0"),insertHyperlinks:xmlToBoolean(e.attributes.insertHyperlinks,"0"),deleteColumns:xmlToBoolean(e.attributes.deleteColumns,"0"),deleteRows:xmlToBoolean(e.attributes.deleteRows,"0"),sort:xmlToBoolean(e.attributes.sort,"0"),autoFilter:xmlToBoolean(e.attributes.autoFilter,"0"),pivotTables:xmlToBoolean(e.attributes.pivotTables,"0")};if(e.attributes.algorithmName){this.model.algorithmName=e.attributes.algorithmName;this.model.hashValue=e.attributes.hashValue;this.model.saltValue=e.attributes.saltValue;this.model.spinCount=parseInt(e.attributes.spinCount,10)}return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=SheetProtectionXform},341:function(e,t,r){const i=r(6289);const n=r(8287);const s={frozen:"frozen",frozenSplit:"frozen",split:"split"};class SheetViewXform extends n{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal";break}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const add=function(t,r,i){if(i){e.addAttribute(t,r)}};add("rightToLeft","1",t.rightToLeft===true);add("tabSelected","1",t.tabSelected);add("showRuler","0",t.showRuler===false);add("showRowColHeaders","0",t.showRowColHeaders===false);add("showGridLines","0",t.showGridLines===false);add("zoomScale",t.zoomScale,t.zoomScale);add("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal);add("view",t.style,t.style);let r;let n;let s;let o;switch(t.state){case"frozen":n=t.xSplit||0;s=t.ySplit||0;r=t.topLeftCell||i.getAddress(s+1,n+1).address;o=t.xSplit&&t.ySplit&&"bottomRight"||t.xSplit&&"topRight"||"bottomLeft";e.leafNode("pane",{xSplit:t.xSplit||undefined,ySplit:t.ySplit||undefined,topLeftCell:r,activePane:o,state:"frozen"});e.leafNode("selection",{pane:o,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":if(t.activePane==="topLeft"){t.activePane=undefined}e.leafNode("pane",{xSplit:t.xSplit||undefined,ySplit:t.ySplit||undefined,topLeftCell:t.topLeftCell,activePane:t.activePane});e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":if(t.activeCell){e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}break;default:break}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:e.attributes.rightToLeft==="1",tabSelected:e.attributes.tabSelected==="1",showRuler:!(e.attributes.showRuler==="0"),showRowColHeaders:!(e.attributes.showRowColHeaders==="0"),showGridLines:!(e.attributes.showGridLines==="0"),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view};this.pane=undefined;this.selections={};return true;case"pane":this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state};return true;case"selection":{const t=e.attributes.pane||"topLeft";this.selections[t]={pane:t,activeCell:e.attributes.activeCell};return true}default:return false}}parseText(){}parseClose(e){let t;let r;switch(e){case"sheetView":if(this.sheetView&&this.pane){t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal};if(this.model.state==="split"){t.activePane=this.pane.activePane}r=this.selections[this.pane.activePane];if(r&&r.activeCell){t.activeCell=r.activeCell}if(this.sheetView.style){t.style=this.sheetView.style}}else{t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal};r=this.selections.topLeft;if(r&&r.activeCell){t.activeCell=r.activeCell}if(this.sheetView.style){t.style=this.sheetView.style}}return false;default:return true}}reconcile(){}}e.exports=SheetViewXform},6036:function(e,t,r){const i=r(8287);class TablePartXform extends i{get tag(){return"tablePart"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=TablePartXform},5478:function(e,t,r){const i=r(2563);const n=r(6289);const s=r(8674);const o=r(8496);const c=r(40);const h=r(8287);const p=r(6422);const g=r(8858);const y=r(6004);const v=r(2478);const b=r(3248);const _=r(6329);const w=r(8700);const x=r(3305);const S=r(1731);const k=r(341);const C=r(6303);const E=r(5575);const R=r(4437);const O=r(8986);const A=r(1350);const I=r(3948);const P=r(1056);const N=r(6036);const F=r(5089);const D=r(6041);const L=r(7833);const B=r(1251);const mergeRule=(e,t)=>{Object.keys(t).forEach((r=>{const i=e[r];const n=t[r];if(i===undefined&&n!==undefined){e[r]=n}}))};const mergeConditionalFormattings=(e,t)=>{if(!t||!t.length){return e}if(!e||!e.length){return t}const r={};const i={};e.forEach((e=>{r[e.ref]=e;e.rules.forEach((e=>{const{x14Id:t}=e;if(t){i[t]=e}}))}));t.forEach((t=>{t.rules.forEach((n=>{const s=i[n.x14Id];if(s){mergeRule(s,n)}else if(r[t.ref]){r[t.ref].rules.push(n)}else{e.push({ref:t.ref,rules:[n]})}}))}));return e};class WorkSheetXform extends h{constructor(e){super();const{maxRows:t,maxCols:r,ignoreNodes:i}=e||{};this.ignoreNodes=i||[];this.map={sheetPr:new x,dimension:new v,sheetViews:new p({tag:"sheetViews",count:false,childXform:new k}),sheetFormatPr:new S,cols:new p({tag:"cols",count:false,childXform:new y}),sheetData:new p({tag:"sheetData",count:false,empty:true,childXform:new g({maxItems:r}),maxItems:t}),autoFilter:new A,mergeCells:new p({tag:"mergeCells",count:true,childXform:new _}),rowBreaks:new F,hyperlinks:new p({tag:"hyperlinks",count:false,childXform:new b}),pageMargins:new E,dataValidations:new w,pageSetup:new R,headerFooter:new D,printOptions:new O,picture:new I,drawing:new P,sheetProtection:new C,tableParts:new p({tag:"tableParts",count:true,childXform:new N}),conditionalFormatting:new L,extLst:new B}}prepare(e,t){t.merges=new c;e.hyperlinks=t.hyperlinks=[];e.comments=t.comments=[];t.formulae={};t.siFormulae=0;this.map.cols.prepare(e.cols,t);this.map.sheetData.prepare(e.rows,t);this.map.conditionalFormatting.prepare(e.conditionalFormattings,t);e.mergeCells=t.merges.mergeCells;const r=e.rels=[];function nextRid(e){return`rId${e.length+1}`}e.hyperlinks.forEach((e=>{const t=nextRid(r);e.rId=t;r.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:"External"})}));if(e.comments.length>0){const i={Id:nextRid(r),Type:o.Comments,Target:`../comments${e.id}.xml`};r.push(i);const s={Id:nextRid(r),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};r.push(s);e.comments.forEach((e=>{e.refAddress=n.decodeAddress(e.ref)}));t.commentRefs.push({commentName:`comments${e.id}`,vmlDrawing:`vmlDrawing${e.id}`})}const i=[];let s;e.media.forEach((n=>{if(n.type==="background"){const i=nextRid(r);s=t.media[n.imageId];r.push({Id:i,Type:o.Image,Target:`../media/${s.name}.${s.extension}`});e.background={rId:i};e.image=t.media[n.imageId]}else if(n.type==="image"){let{drawing:c}=e;s=t.media[n.imageId];if(!c){c=e.drawing={rId:nextRid(r),name:`drawing${++t.drawingsCount}`,anchors:[],rels:[]};t.drawings.push(c);r.push({Id:c.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${c.name}.xml`})}let h=this.preImageId===n.imageId?i[n.imageId]:i[c.rels.length];if(!h){h=nextRid(c.rels);i[c.rels.length]=h;c.rels.push({Id:h,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${s.name}.${s.extension}`})}const p={picture:{rId:h},range:n.range};if(n.hyperlinks&&n.hyperlinks.hyperlink){const e=nextRid(c.rels);i[c.rels.length]=e;p.picture.hyperlinks={tooltip:n.hyperlinks.tooltip,rId:e};c.rels.push({Id:e,Type:o.Hyperlink,Target:n.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=n.imageId;c.anchors.push(p)}}));e.tables.forEach((e=>{const i=nextRid(r);e.rId=i;r.push({Id:i,Type:o.Table,Target:`../tables/${e.target}`});e.columns.forEach((e=>{const{style:r}=e;if(r){e.dxfId=t.styles.addDxfStyle(r)}}))}));this.map.extLst.prepare(e,t)}render(e,t){e.openXml(s.StdDocAttributes);e.openNode("worksheet",WorkSheetXform.WORKSHEET_ATTRIBUTES);const r=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:undefined;if(t.properties&&t.properties.defaultColWidth){r.defaultColWidth=t.properties.defaultColWidth}const i={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:undefined};const n=t.pageSetup&&t.pageSetup.margins;const c={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered};const h=t.sheetProtection;this.map.sheetPr.render(e,i);this.map.dimension.render(e,t.dimensions);this.map.sheetViews.render(e,t.views);this.map.sheetFormatPr.render(e,r);this.map.cols.render(e,t.cols);this.map.sheetData.render(e,t.rows);this.map.sheetProtection.render(e,h);this.map.autoFilter.render(e,t.autoFilter);this.map.mergeCells.render(e,t.mergeCells);this.map.conditionalFormatting.render(e,t.conditionalFormattings);this.map.dataValidations.render(e,t.dataValidations);this.map.hyperlinks.render(e,t.hyperlinks);this.map.printOptions.render(e,c);this.map.pageMargins.render(e,n);this.map.pageSetup.render(e,t.pageSetup);this.map.headerFooter.render(e,t.headerFooter);this.map.rowBreaks.render(e,t.rowBreaks);this.map.drawing.render(e,t.drawing);this.map.picture.render(e,t.background);this.map.tableParts.render(e,t.tables);this.map.extLst.render(e,t);if(t.rels){t.rels.forEach((t=>{if(t.Type===o.VmlDrawing){e.leafNode("legacyDrawing",{"r:id":t.Id})}}))}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name==="worksheet"){i.each(this.map,(e=>{e.reset()}));return true}if(this.map[e.name]&&!this.ignoreNodes.includes(e.name)){this.parser=this.map[e.name];this.parser.parseOpen(e)}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"worksheet":{const e=this.map.sheetFormatPr.model||{};if(this.map.sheetPr.model&&this.map.sheetPr.model.tabColor){e.tabColor=this.map.sheetPr.model.tabColor}if(this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties){e.outlineProperties=this.map.sheetPr.model.outlineProperties}const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||false,margins:this.map.pageMargins.model};const r=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model);const i=mergeConditionalFormattings(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:r,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:i};if(this.map.autoFilter.model){this.model.autoFilter=this.map.autoFilter.model}if(this.map.sheetProtection.model){this.model.sheetProtection=this.map.sheetProtection.model}return false}default:return true}}reconcile(e,t){const r=(e.relationships||[]).reduce(((r,i)=>{r[i.Id]=i;if(i.Type===o.Comments){e.comments=t.comments[i.Target].comments}if(i.Type===o.VmlDrawing&&e.comments&&e.comments.length){const r=t.vmlDrawings[i.Target].comments;e.comments.forEach(((e,t)=>{e.note=Object.assign({},e.note,r[t])}))}return r}),{});t.commentsMap=(e.comments||[]).reduce(((e,t)=>{if(t.ref){e[t.ref]=t}return e}),{});t.hyperlinkMap=(e.hyperlinks||[]).reduce(((e,t)=>{if(t.rId){e[t.address]=r[t.rId].Target}return e}),{});t.formulae={};e.rows=e.rows&&e.rows.filter(Boolean)||[];e.rows.forEach((e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]}));this.map.cols.reconcile(e.cols,t);this.map.sheetData.reconcile(e.rows,t);this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t);e.media=[];if(e.drawing){const i=r[e.drawing.rId];const n=i.Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(n){const r=n[1];const i=t.drawings[r];i.anchors.forEach((t=>{if(t.medium){const r={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(r)}}))}}const i=e.background&&r[e.background.rId];if(i){const r=i.Target.split("/media/")[1];const n=t.mediaIndex&&t.mediaIndex[r];if(n!==undefined){e.media.push({type:"background",imageId:n})}}e.tables=(e.tables||[]).map((e=>{const i=r[e.rId];return t.tables[i.Target]}));delete e.relationships;delete e.hyperlinks;delete e.comments}}WorkSheetXform.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"};e.exports=WorkSheetXform},2311:function(e,t,r){const i=r(8287);class BooleanXform extends i{constructor(e){super();this.tag=e.tag;this.attr=e.attr}render(e,t){if(t){e.openNode(this.tag);e.closeNode()}}parseOpen(e){if(e.name===this.tag){this.model=true}}parseText(){}parseClose(){return false}}e.exports=BooleanXform},4689:function(e,t,r){const i=r(8287);class DateXform extends i{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs;this._format=e.format||function(e){try{if(Number.isNaN(e.getTime()))return"";return e.toISOString()}catch(e){return""}};this._parse=e.parse||function(e){return new Date(e)}}render(e,t){if(t){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,this._format(t))}else{e.writeText(this._format(t))}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=this._parse(e.attributes[this.attr])}else{this.text=[]}}}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=this._parse(this.text.join(""))}return false}}e.exports=DateXform},8101:function(e,t,r){const i=r(8287);class IntegerXform extends i{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs;this.zero=e.zero}render(e,t){if(t||this.zero){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,t)}else{e.writeText(t)}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=parseInt(e.attributes[this.attr],10)}else{this.text=[]}return true}return false}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=parseInt(this.text.join("")||0,10)}return false}}e.exports=IntegerXform},9656:function(e,t,r){const i=r(8287);class StringXform extends i{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs}render(e,t){if(t!==undefined){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,t)}else{e.writeText(t)}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=e.attributes[this.attr]}else{this.text=[]}}}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=this.text.join("")}return false}}e.exports=StringXform},2216:function(e,t,r){const i=r(8287);const n=r(8674);function build(e,t){e.openNode(t.tag,t.$);if(t.c){t.c.forEach((t=>{build(e,t)}))}if(t.t){e.writeText(t.t)}e.closeNode()}class StaticXform extends i{constructor(e){super();this._model=e}render(e){if(!this._xml){const e=new n;build(e,this._model);this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return true}parseText(){}parseClose(e){switch(e){case this._model.tag:return false;default:return true}}}e.exports=StaticXform},9579:function(e,t,r){const i=r(4566);const n=r(9573);const s=r(8287);class PhoneticTextXform extends s{constructor(){super();this.map={r:new n,t:new i}}get tag(){return"rPh"}render(e,t){e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0});if(t&&t.hasOwnProperty("richText")&&t.richText){const{r:r}=this.map;t.richText.forEach((t=>{r.render(e,t)}))}else if(t){this.map.t.render(e,t.text)}e.closeNode()}parseOpen(e){const{name:t}=e;if(this.parser){this.parser.parseOpen(e);return true}if(t===this.tag){this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)};return true}this.parser=this.map[t];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;if(!e){e=this.model.richText=[]}e.push(this.parser.model);break}case"t":this.model.text=this.parser.model;break;default:break}this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=PhoneticTextXform},9573:function(e,t,r){const i=r(4566);const n=r(2381);const s=r(8287);class RichTextXform extends s{constructor(e){super();this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new i)}get fontXform(){return this._fontXform||(this._fontXform=new n(RichTextXform.FONT_OPTIONS))}render(e,t){t=t||this.model;e.openNode("r");if(t.font){this.fontXform.render(e,t.font)}this.textXform.render(e,t.text);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"r":this.model={};return true;case"t":this.parser=this.textXform;this.parser.parseOpen(e);return true;case"rPr":this.parser=this.fontXform;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){switch(e){case"r":return false;case"t":this.model.text=this.parser.model;this.parser=undefined;return true;case"rPr":this.model.font=this.parser.model;this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}}RichTextXform.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"};e.exports=RichTextXform},9126:function(e,t,r){const i=r(4566);const n=r(9573);const s=r(9579);const o=r(8287);class SharedStringXform extends o{constructor(e){super();this.model=e;this.map={r:new n,t:new i,rPh:new s}}get tag(){return"si"}render(e,t){e.openNode(this.tag);if(t&&t.hasOwnProperty("richText")&&t.richText){if(t.richText.length){t.richText.forEach((t=>{this.map.r.render(e,t)}))}else{this.map.t.render(e,"")}}else if(t!==undefined&&t!==null){this.map.t.render(e,t)}e.closeNode()}parseOpen(e){const{name:t}=e;if(this.parser){this.parser.parseOpen(e);return true}if(t===this.tag){this.model={};return true}this.parser=this.map[t];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;if(!e){e=this.model.richText=[]}e.push(this.parser.model);break}case"t":this.model=this.parser.model;break;default:break}this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=SharedStringXform},2647:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(9126);class SharedStringsXform extends n{constructor(e){super();this.model=e||{values:[],count:0};this.hash=Object.create(null);this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];if(t===undefined){t=this.hash[e]=this.model.values.length;this.model.values.push(e)}this.model.count++;return t}addRichText(e){const t=this.sharedStringXform.toXml(e);let r=this.rich[t];if(r===undefined){r=this.rich[t]=this.model.values.length;this.model.values.push(e)}this.model.count++;return r}render(e,t){t=t||this._values;e.openXml(i.StdDocAttributes);e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const r=this.sharedStringXform;t.values.forEach((t=>{r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"sst":return true;case"si":this.parser=this.sharedStringXform;this.parser.parseOpen(e);return true;default:throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.values.push(this.parser.model);this.model.count++;this.parser=undefined}return true}switch(e){case"sst":return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}e.exports=SharedStringsXform},4566:function(e,t,r){const i=r(8287);class TextXform extends i{get tag(){return"t"}render(e,t){e.openNode("t");if(/^\s|\n|\s$/.test(t)){e.addAttribute("xml:space","preserve")}e.writeText(t);e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}parseOpen(e){switch(e.name){case"t":this._text=[];return true;default:return false}}parseText(e){this._text.push(e)}parseClose(){return false}}e.exports=TextXform},2053:function(e,t,r){const i=r(4041);const n=r(9145);const s=r(8287);const o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(((e,t)=>{e[t]=true;return e}),{}),horizontal(e){return this.horizontalValues[e]?e:undefined},verticalValues:["top","middle","bottom","distributed","justify"].reduce(((e,t)=>{e[t]=true;return e}),{}),vertical(e){if(e==="middle")return"center";return this.verticalValues[e]?e:undefined},wrapText(e){return e?true:undefined},shrinkToFit(e){return e?true:undefined},textRotation(e){switch(e){case"vertical":return e;default:e=n.validInt(e);return e>=-90&&e<=90?e:undefined}},indent(e){e=n.validInt(e);return Math.max(0,e)},readingOrder(e){switch(e){case"ltr":return i.ReadingOrder.LeftToRight;case"rtl":return i.ReadingOrder.RightToLeft;default:return undefined}}};const c={toXml(e){e=o.textRotation(e);if(e){if(e==="vertical"){return 255}const t=Math.round(e);if(t>=0&&t<=90){return t}if(t<0&&t>=-90){return 90-t}}return undefined},toModel(e){const t=n.validInt(e);if(t!==undefined){if(t===255){return"vertical"}if(t>=0&&t<=90){return t}if(t>90&&t<=180){return 90-t}}return undefined}};class AlignmentXform extends s{get tag(){return"alignment"}render(e,t){e.addRollback();e.openNode("alignment");let r=false;function add(t,i){if(i){e.addAttribute(t,i);r=true}}add("horizontal",o.horizontal(t.horizontal));add("vertical",o.vertical(t.vertical));add("wrapText",o.wrapText(t.wrapText)?"1":false);add("shrinkToFit",o.shrinkToFit(t.shrinkToFit)?"1":false);add("indent",o.indent(t.indent));add("textRotation",c.toXml(t.textRotation));add("readingOrder",o.readingOrder(t.readingOrder));e.closeNode();if(r){e.commit()}else{e.rollback()}}parseOpen(e){const t={};let r=false;function add(e,i,n){if(e){t[i]=n;r=true}}add(e.attributes.horizontal,"horizontal",e.attributes.horizontal);add(e.attributes.vertical,"vertical",e.attributes.vertical==="center"?"middle":e.attributes.vertical);add(e.attributes.wrapText,"wrapText",n.parseBoolean(e.attributes.wrapText));add(e.attributes.shrinkToFit,"shrinkToFit",n.parseBoolean(e.attributes.shrinkToFit));add(e.attributes.indent,"indent",parseInt(e.attributes.indent,10));add(e.attributes.textRotation,"textRotation",c.toModel(e.attributes.textRotation));add(e.attributes.readingOrder,"readingOrder",e.attributes.readingOrder==="2"?"rtl":"ltr");this.model=r?t:null}parseText(){}parseClose(){return false}}e.exports=AlignmentXform},9134:function(e,t,r){const i=r(8287);const n=r(9145);const s=r(767);class EdgeXform extends i{constructor(e){super();this.name=e;this.map={color:new s}}get tag(){return this.name}render(e,t,r){const i=t&&t.color||r||this.defaultColor;e.openNode(this.name);if(t&&t.style){e.addAttribute("style",t.style);if(i){this.map.color.render(e,i)}}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.name:{const{style:t}=e.attributes;if(t){this.model={style:t}}else{this.model=undefined}return true}case"color":this.parser=this.map.color;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e===this.name){if(this.map.color.model){if(!this.model){this.model={}}this.model.color=this.map.color.model}}return false}validStyle(e){return EdgeXform.validStyleValues[e]}}EdgeXform.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(((e,t)=>{e[t]=true;return e}),{});class BorderXform extends i{constructor(){super();this.map={top:new EdgeXform("top"),left:new EdgeXform("left"),bottom:new EdgeXform("bottom"),right:new EdgeXform("right"),diagonal:new EdgeXform("diagonal")}}render(e,t){const{color:r}=t;e.openNode("border");if(t.diagonal&&t.diagonal.style){if(t.diagonal.up){e.addAttribute("diagonalUp","1")}if(t.diagonal.down){e.addAttribute("diagonalDown","1")}}function add(i,n){if(i&&!i.color&&t.color){i={...i,color:t.color}}n.render(e,i,r)}add(t.left,this.map.left);add(t.right,this.map.right);add(t.top,this.map.top);add(t.bottom,this.map.bottom);add(t.diagonal,this.map.diagonal);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"border":this.reset();this.diagonalUp=n.parseBoolean(e.attributes.diagonalUp);this.diagonalDown=n.parseBoolean(e.attributes.diagonalDown);return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e==="border"){const e=this.model={};const add=function(t,r,i){if(r){if(i){Object.assign(r,i)}e[t]=r}};add("left",this.map.left.model);add("right",this.map.right.model);add("top",this.map.top.model);add("bottom",this.map.bottom.model);add("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return false}}e.exports=BorderXform},767:function(e,t,r){const i=r(8287);class ColorXform extends i{constructor(e){super();this.name=e||"color"}get tag(){return this.name}render(e,t){if(t){e.openNode(this.name);if(t.argb){e.addAttribute("rgb",t.argb)}else if(t.theme!==undefined){e.addAttribute("theme",t.theme);if(t.tint!==undefined){e.addAttribute("tint",t.tint)}}else if(t.indexed!==undefined){e.addAttribute("indexed",t.indexed)}else{e.addAttribute("auto","1")}e.closeNode();return true}return false}parseOpen(e){if(e.name===this.name){if(e.attributes.rgb){this.model={argb:e.attributes.rgb}}else if(e.attributes.theme){this.model={theme:parseInt(e.attributes.theme,10)};if(e.attributes.tint){this.model.tint=parseFloat(e.attributes.tint)}}else if(e.attributes.indexed){this.model={indexed:parseInt(e.attributes.indexed,10)}}else{this.model=undefined}return true}return false}parseText(){}parseClose(){return false}}e.exports=ColorXform},7742:function(e,t,r){const i=r(8287);const n=r(2053);const s=r(9134);const o=r(9273);const c=r(2381);const h=r(2747);const p=r(5611);class DxfXform extends i{constructor(){super();this.map={alignment:new n,border:new s,fill:new o,font:new c,numFmt:new h,protection:new p}}get tag(){return"dxf"}render(e,t){e.openNode(this.tag);if(t.font){this.map.font.render(e,t.font)}if(t.numFmt&&t.numFmtId){const r={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,r)}if(t.fill){this.map.fill.render(e,t.fill)}if(t.alignment){this.map.alignment.render(e,t.alignment)}if(t.border){this.map.border.render(e,t.border)}if(t.protection){this.map.protection.render(e,t.protection)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e===this.tag){this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model};return false}return true}}e.exports=DxfXform},9273:function(e,t,r){const i=r(8287);const n=r(767);class StopXform extends i{constructor(){super();this.map={color:new n}}get tag(){return"stop"}render(e,t){e.openNode("stop");e.addAttribute("position",t.position);this.map.color.render(e,t.color);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"stop":this.model={position:parseFloat(e.attributes.position)};return true;case"color":this.parser=this.map.color;this.parser.parseOpen(e);return true;default:return false}}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.color=this.parser.model;this.parser=undefined}return true}return false}}class PatternFillXform extends i{constructor(){super();this.map={fgColor:new n("fgColor"),bgColor:new n("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill");e.addAttribute("patternType",t.pattern);if(t.fgColor){this.map.fgColor.render(e,t.fgColor)}if(t.bgColor){this.map.bgColor.render(e,t.bgColor)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"patternFill":this.model={type:"pattern",pattern:e.attributes.patternType};return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.parser.model){this.model[e]=this.parser.model}this.parser=undefined}return true}return false}}class GradientFillXform extends i{constructor(){super();this.map={stop:new StopXform}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){e.openNode("gradientFill");switch(t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path");if(t.center.left){e.addAttribute("left",t.center.left);if(t.center.right===undefined){e.addAttribute("right",t.center.left)}}if(t.center.right){e.addAttribute("right",t.center.right)}if(t.center.top){e.addAttribute("top",t.center.top);if(t.center.bottom===undefined){e.addAttribute("bottom",t.center.top)}}if(t.center.bottom){e.addAttribute("bottom",t.center.bottom)}break;default:break}const r=this.map.stop;t.stops.forEach((t=>{r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"gradientFill":{const t=this.model={stops:[]};if(e.attributes.degree){t.gradient="angle";t.degree=parseInt(e.attributes.degree,10)}else if(e.attributes.type==="path"){t.gradient="path";t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0};if(e.attributes.right!==e.attributes.left){t.center.right=e.attributes.right?parseFloat(e.attributes.right):0}if(e.attributes.bottom!==e.attributes.top){t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0}}return true}case"stop":this.parser=this.map.stop;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.stops.push(this.parser.model);this.parser=undefined}return true}return false}}class FillXform extends i{constructor(){super();this.map={patternFill:new PatternFillXform,gradientFill:new GradientFillXform}}get tag(){return"fill"}render(e,t){e.addRollback();e.openNode("fill");switch(t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:e.rollback();return}e.closeNode();e.commit()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"fill":this.model={};return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model=this.parser.model;this.model.type=this.parser.name;this.parser=undefined}return true}return false}validStyle(e){return FillXform.validPatternValues[e]}}FillXform.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(((e,t)=>{e[t]=true;return e}),{});FillXform.StopXform=StopXform;FillXform.PatternFillXform=PatternFillXform;FillXform.GradientFillXform=GradientFillXform;e.exports=FillXform},2381:function(e,t,r){"use strict";const i=r(767);const n=r(2311);const s=r(8101);const o=r(9656);const c=r(5028);const h=r(2563);const p=r(8287);class FontXform extends p{constructor(e){super();this.options=e||FontXform.OPTIONS;this.map={b:{prop:"bold",xform:new n({tag:"b",attr:"val"})},i:{prop:"italic",xform:new n({tag:"i",attr:"val"})},u:{prop:"underline",xform:new c},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new i},condense:{prop:"condense",xform:new n({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new n({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new n({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new o({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new o({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new n({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new n({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}};this.map[this.options.fontNameTag]={prop:"name",xform:new o({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:r}=this;e.openNode(this.options.tagName);h.each(this.map,((i,n)=>{r[n].xform.render(e,t[i.prop])}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(this.map[e.name]){this.parser=this.map[e.name].xform;return this.parser.parseOpen(e)}switch(e.name){case this.options.tagName:this.model={};return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];if(this.parser.model){this.model[t.prop]=this.parser.model}this.parser=undefined;return true}switch(e){case this.options.tagName:return false;default:return true}}}FontXform.OPTIONS={tagName:"font",fontNameTag:"name"};e.exports=FontXform},2747:function(e,t,r){const i=r(2563);const n=r(5877);const s=r(8287);function hashDefaultFormats(){const e={};i.each(n,((t,r)=>{if(t.f){e[t.f]=parseInt(r,10)}}));return e}const o=hashDefaultFormats();class NumFmtXform extends s{constructor(e,t){super();this.id=e;this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){switch(e.name){case"numFmt":this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")};return true;default:return false}}parseText(){}parseClose(){return false}}NumFmtXform.getDefaultFmtId=function getDefaultFmtId(e){return o[e]};NumFmtXform.getDefaultFmtCode=function getDefaultFmtCode(e){return n[e]&&n[e].f};e.exports=NumFmtXform},5611:function(e,t,r){const i=r(8287);const n={boolean(e,t){if(e===undefined){return t}return e}};class ProtectionXform extends i{get tag(){return"protection"}render(e,t){e.addRollback();e.openNode("protection");let r=false;function add(t,i){if(i!==undefined){e.addAttribute(t,i);r=true}}add("locked",n.boolean(t.locked,true)?undefined:"0");add("hidden",n.boolean(t.hidden,false)?"1":undefined);e.closeNode();if(r){e.commit()}else{e.rollback()}}parseOpen(e){const t={locked:!(e.attributes.locked==="0"),hidden:e.attributes.hidden==="1"};const r=!t.locked||t.hidden;this.model=r?t:null}parseText(){}parseClose(){return false}}e.exports=ProtectionXform},7189:function(e,t,r){const i=r(8287);const n=r(2053);const s=r(5611);class StyleXform extends i{constructor(e){super();this.xfId=!!(e&&e.xfId);this.map={alignment:new n,protection:new s}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0});if(this.xfId){e.addAttribute("xfId",t.xfId||0)}if(t.numFmtId){e.addAttribute("applyNumberFormat","1")}if(t.fontId){e.addAttribute("applyFont","1")}if(t.fillId){e.addAttribute("applyFill","1")}if(t.borderId){e.addAttribute("applyBorder","1")}if(t.alignment){e.addAttribute("applyAlignment","1")}if(t.protection){e.addAttribute("applyProtection","1")}if(t.alignment){this.map.alignment.render(e,t.alignment)}if(t.protection){this.map.protection.render(e,t.protection)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"xf":this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)};if(this.xfId){this.model.xfId=parseInt(e.attributes.xfId,10)}return true;case"alignment":this.parser=this.map.alignment;this.parser.parseOpen(e);return true;case"protection":this.parser=this.map.protection;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.map.protection===this.parser){this.model.protection=this.parser.model}else{this.model.alignment=this.parser.model}this.parser=undefined}return true}return e!=="xf"}}e.exports=StyleXform},458:function(e,t,r){const i=r(4041);const n=r(8674);const s=r(8287);const o=r(2216);const c=r(6422);const h=r(2381);const p=r(9273);const g=r(9134);const y=r(2747);const v=r(7189);const b=r(7742);const _=164;class StylesXform extends s{constructor(e){super();this.map={numFmts:new c({tag:"numFmts",count:true,childXform:new y}),fonts:new c({tag:"fonts",count:true,childXform:new h,$:{"x14ac:knownFonts":1}}),fills:new c({tag:"fills",count:true,childXform:new p}),borders:new c({tag:"borders",count:true,childXform:new g}),cellStyleXfs:new c({tag:"cellStyleXfs",count:true,childXform:new v}),cellXfs:new c({tag:"cellXfs",count:true,childXform:new v({xfId:true})}),dxfs:new c({tag:"dxfs",always:true,count:true,childXform:new b}),numFmt:new y,font:new h,fill:new p,border:new g,style:new v({xfId:true}),cellStyles:StylesXform.STATIC_XFORMS.cellStyles,tableStyles:StylesXform.STATIC_XFORMS.tableStyles,extLst:StylesXform.STATIC_XFORMS.extLst};if(e){this.init()}}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]};this.initIndex();this._addBorder({});this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0});this._addFill({type:"pattern",pattern:"none"});this._addFill({type:"pattern",pattern:"gray125"});this.weakMap=new WeakMap}render(e,t){t=t||this.model;e.openXml(n.StdDocAttributes);e.openNode("styleSheet",StylesXform.STYLESHEET_ATTRIBUTES);if(this.index){if(t.numFmts&&t.numFmts.length){e.openNode("numFmts",{count:t.numFmts.length});t.numFmts.forEach((t=>{e.writeXml(t)}));e.closeNode()}if(!t.fonts.length){this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})}e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1});t.fonts.forEach((t=>{e.writeXml(t)}));e.closeNode();e.openNode("fills",{count:t.fills.length});t.fills.forEach((t=>{e.writeXml(t)}));e.closeNode();e.openNode("borders",{count:t.borders.length});t.borders.forEach((t=>{e.writeXml(t)}));e.closeNode();this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]);e.openNode("cellXfs",{count:t.styles.length});t.styles.forEach((t=>{e.writeXml(t)}));e.closeNode()}else{this.map.numFmts.render(e,t.numFmts);this.map.fonts.render(e,t.fonts);this.map.fills.render(e,t.fills);this.map.borders.render(e,t.borders);this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]);this.map.cellXfs.render(e,t.styles)}StylesXform.STATIC_XFORMS.cellStyles.render(e);this.map.dxfs.render(e,t.dxfs);StylesXform.STATIC_XFORMS.tableStyles.render(e);StylesXform.STATIC_XFORMS.extLst.render(e);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"styleSheet":this.initIndex();return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"styleSheet":{this.model={};const add=(e,t)=>{if(t.model&&t.model.length){this.model[e]=t.model}};add("numFmts",this.map.numFmts);add("fonts",this.map.fonts);add("fills",this.map.fills);add("borders",this.map.borders);add("styles",this.map.cellXfs);add("dxfs",this.map.dxfs);this.index={model:[],numFmt:[]};if(this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach((t=>{e[t.id]=t.formatCode}))}return false}default:return true}}addStyleModel(e,t){if(!e){return 0}if(!this.model.fonts.length){this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})}if(this.weakMap&&this.weakMap.has(e)){return this.weakMap.get(e)}const r={};t=t||i.ValueType.Number;if(e.numFmt){r.numFmtId=this._addNumFmtStr(e.numFmt)}else{switch(t){case i.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case i.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy");break;default:break}}if(e.font){r.fontId=this._addFont(e.font)}if(e.border){r.borderId=this._addBorder(e.border)}if(e.fill){r.fillId=this._addFill(e.fill)}if(e.alignment){r.alignment=e.alignment}if(e.protection){r.protection=e.protection}const n=this._addStyle(r);if(this.weakMap){this.weakMap.set(e,n)}return n}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let r=this.index.model[e];if(r)return r;r=this.index.model[e]={};if(t.numFmtId){const e=this.index.numFmt[t.numFmtId]||y.getDefaultFmtCode(t.numFmtId);if(e){r.numFmt=e}}function addStyle(e,t,i){if(i||i===0){const n=t[i];if(n){r[e]=n}}}addStyle("font",this.model.fonts,t.fontId);addStyle("border",this.model.borders,t.borderId);addStyle("fill",this.model.fills,t.fillId);if(t.alignment){r.alignment=t.alignment}if(t.protection){r.protection=t.protection}return r}addDxfStyle(e){if(e.numFmt){e.numFmtId=this._addNumFmtStr(e.numFmt)}this.model.dxfs.push(e);return this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let r=this.index.style[t];if(r===undefined){r=this.index.style[t]=this.model.styles.length;this.model.styles.push(t)}return r}_addNumFmtStr(e){let t=y.getDefaultFmtId(e);if(t!==undefined)return t;t=this.index.numFmt[e];if(t!==undefined)return t;t=this.index.numFmt[e]=_+this.model.numFmts.length;const r=this.map.numFmt.toXml({id:t,formatCode:e});this.model.numFmts.push(r);return t}_addFont(e){const t=this.map.font.toXml(e);let r=this.index.font[t];if(r===undefined){r=this.index.font[t]=this.model.fonts.length;this.model.fonts.push(t)}return r}_addBorder(e){const t=this.map.border.toXml(e);let r=this.index.border[t];if(r===undefined){r=this.index.border[t]=this.model.borders.length;this.model.borders.push(t)}return r}_addFill(e){const t=this.map.fill.toXml(e);let r=this.index.fill[t];if(r===undefined){r=this.index.fill[t]=this.model.fills.length;this.model.fills.push(t)}return r}}StylesXform.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"};StylesXform.STATIC_XFORMS={cellStyles:new o({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new o({tag:"dxfs",$:{count:0}}),tableStyles:new o({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new o({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};class StylesXformMock extends StylesXform{constructor(){super();this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){e.autodrain();return Promise.resolve()}addStyleModel(e,t){switch(t){case i.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:y.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length;this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}}StylesXform.Mock=StylesXformMock;e.exports=StylesXform},5028:function(e,t,r){const i=r(8287);class UnderlineXform extends i{constructor(e){super();this.model=e}get tag(){return"u"}render(e,t){t=t||this.model;if(t===true){e.leafNode("u")}else{const r=UnderlineXform.Attributes[t];if(r){e.leafNode("u",r)}}}parseOpen(e){if(e.name==="u"){this.model=e.attributes.val||true}}parseText(){}parseClose(){return false}}UnderlineXform.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}};e.exports=UnderlineXform},8945:function(e,t,r){const i=r(8287);const n=r(5938);class AutoFilterXform extends i{constructor(){super();this.map={filterColumn:new n}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach(((e,t)=>{this.map.filterColumn.prepare(e,{index:t})}))}render(e,t){e.openNode(this.tag,{ref:t.autoFilterRef});t.columns.forEach((t=>{this.map.filterColumn.render(e,t)}));e.closeNode();return true}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.model={autoFilterRef:e.attributes.ref,columns:[]};return true;default:this.parser=this.map[e.name];if(this.parser){this.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.columns.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}e.exports=AutoFilterXform},2057:function(e,t,r){const i=r(8287);class CustomFilterXform extends i{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){if(e.name===this.tag){this.model={val:e.attributes.val,operator:e.attributes.operator};return true}return false}parseText(){}parseClose(){return false}}e.exports=CustomFilterXform},5938:function(e,t,r){const i=r(8287);const n=r(6422);const s=r(2057);const o=r(9645);class FilterColumnXform extends i{constructor(){super();this.map={customFilters:new n({tag:"customFilters",count:false,empty:true,childXform:new s}),filters:new n({tag:"filters",count:false,empty:true,childXform:new o})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){if(t.customFilters){e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"});this.map.customFilters.render(e,t.customFilters);e.closeNode();return true}e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"});return true}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}const{attributes:t}=e;switch(e.name){case this.tag:this.model={filterButton:t.hiddenButton==="0"};return true;default:this.parser=this.map[e.name];if(this.parser){this.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.customFilters=this.map.customFilters.model;return false;default:return true}}}e.exports=FilterColumnXform},9645:function(e,t,r){const i=r(8287);class FilterXform extends i{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){if(e.name===this.tag){this.model={val:e.attributes.val};return true}return false}parseText(){}parseClose(){return false}}e.exports=FilterXform},4362:function(e,t,r){const i=r(8287);class TableColumnXform extends i{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId});return true}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId};return true}return false}parseText(){}parseClose(){return false}}e.exports=TableColumnXform},5572:function(e,t,r){const i=r(8287);class TableStyleInfoXform extends i{get tag(){return"tableStyleInfo"}render(e,t){e.leafNode(this.tag,{name:t.theme?t.theme:undefined,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"});return true}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;this.model={theme:t.name?t.name:null,showFirstColumn:t.showFirstColumn==="1",showLastColumn:t.showLastColumn==="1",showRowStripes:t.showRowStripes==="1",showColumnStripes:t.showColumnStripes==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=TableStyleInfoXform},6709:function(e,t,r){const i=r(8674);const n=r(8287);const s=r(6422);const o=r(8945);const c=r(4362);const h=r(5572);class TableXform extends n{constructor(){super();this.map={autoFilter:new o,tableColumns:new s({tag:"tableColumns",count:true,empty:true,childXform:new c}),tableStyleInfo:new h}}prepare(e,t){this.map.autoFilter.prepare(e);this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(i.StdDocAttributes);e.openNode(this.tag,{...TableXform.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":undefined,totalsRowShown:t.totalsRow?undefined:"1",headerRowCount:t.headerRow?"1":"0"});this.map.autoFilter.render(e,t);this.map.tableColumns.render(e,t.columns);this.map.tableStyleInfo.render(e,t.style);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}const{name:t,attributes:r}=e;switch(t){case this.tag:this.reset();this.model={name:r.name,displayName:r.displayName||r.name,tableRef:r.ref,totalsRow:r.totalsRowCount==="1",headerRow:r.headerRowCount==="1"};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.columns=this.map.tableColumns.model;if(this.map.autoFilter.model){this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef;this.map.autoFilter.model.columns.forEach(((e,t)=>{this.model.columns[t].filterButton=e.filterButton}))}this.model.style=this.map.tableStyleInfo.model;return false;default:return true}}reconcile(e,t){e.columns.forEach((e=>{if(e.dxfId!==undefined){e.style=t.styles.getDxfStyle(e.dxfId)}}))}}TableXform.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"};e.exports=TableXform},8117:function(e,t,r){const i=r(9896);const n=r(5485);const{PassThrough:s}=r(1643);const o=r(568);const c=r(6);const h=r(9145);const p=r(8674);const{bufferToString:g}=r(4386);const y=r(458);const v=r(9505);const b=r(2647);const _=r(7861);const w=r(5919);const x=r(7661);const S=r(9312);const k=r(5478);const C=r(3057);const E=r(6709);const R=r(9474);const O=r(5135);const A=r(2260);function fsReadFileAsync(e,t){return new Promise(((r,n)=>{i.readFile(e,t,((e,t)=>{if(e){n(e)}else{r(t)}}))}))}class XLSX{constructor(e){this.workbook=e}async readFile(e,t){if(!await h.fs.exists(e)){throw new Error(`File not found: ${e}`)}const r=i.createReadStream(e);try{const e=await this.read(r,t);r.close();return e}catch(e){r.close();throw e}}parseRels(e){const t=new _;return t.parseStream(e)}parseWorkbook(e){const t=new S;return t.parseStream(e)}parseSharedStrings(e){const t=new b;return t.parseStream(e)}reconcile(e,t){const r=new S;const i=new k(t);const n=new C;const s=new E;r.reconcile(e);const o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((t=>{const r=e.drawings[t];const i=e.drawingRels[t];if(i){o.rels=i.reduce(((e,t)=>{e[t.Id]=t;return e}),{});(r.anchors||[]).forEach((e=>{const t=e.picture&&e.picture.hyperlinks;if(t&&o.rels[t.rId]){t.hyperlink=o.rels[t.rId].Target;delete t.rId}}));n.reconcile(r,o)}}));const c={styles:e.styles};Object.values(e.tables).forEach((e=>{s.reconcile(e,c)}));const h={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((t=>{t.relationships=e.worksheetRels[t.sheetNo];i.reconcile(t,h)}));delete e.worksheetHash;delete e.worksheetRels;delete e.globalRels;delete e.sharedStrings;delete e.workbookRels;delete e.sheetDefs;delete e.styles;delete e.mediaIndex;delete e.drawings;delete e.drawingRels;delete e.vmlDrawings}async _processWorksheetEntry(e,t,r,i,n){const s=new k(i);const o=await s.parseStream(e);o.sheetNo=r;t.worksheetHash[n]=o;t.worksheets.push(o)}async _processCommentEntry(e,t,r){const i=new R;const n=await i.parseStream(e);t.comments[`../${r}.xml`]=n}async _processTableEntry(e,t,r){const i=new E;const n=await i.parseStream(e);t.tables[`../tables/${r}.xml`]=n}async _processWorksheetRelsEntry(e,t,r){const i=new _;const n=await i.parseStream(e);t.worksheetRels[r]=n}async _processMediaEntry(e,t,r){const i=r.lastIndexOf(".");if(i>=1){const n=r.substr(i+1);const s=r.substr(0,i);await new Promise(((i,o)=>{const h=new c;h.on("finish",(()=>{t.mediaIndex[r]=t.media.length;t.mediaIndex[s]=t.media.length;const e={type:"image",name:s,extension:n,buffer:h.toBuffer()};t.media.push(e);i()}));e.on("error",(e=>{o(e)}));e.pipe(h)}))}}async _processDrawingEntry(e,t,r){const i=new C;const n=await i.parseStream(e);t.drawings[r]=n}async _processDrawingRelsEntry(e,t,r){const i=new _;const n=await i.parseStream(e);t.drawingRels[r]=n}async _processVmlDrawingEntry(e,t,r){const i=new O;const n=await i.parseStream(e);t.vmlDrawings[`../drawings/${r}.vml`]=n}async _processThemeEntry(e,t,r){await new Promise(((i,n)=>{const s=new c;e.on("error",n);s.on("error",n);s.on("finish",(()=>{t.themes[r]=s.read().toString();i()}));e.pipe(s)}))}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){if(!e[Symbol.asyncIterator]&&e.pipe){e=e.pipe(new s)}const r=[];for await(const t of e){r.push(t)}return this.load(Buffer.concat(r),t)}async load(e,t){let r;if(t&&t.base64){r=Buffer.from(e.toString(),"base64")}else{r=e}const i={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}};const o=await n.loadAsync(r);for(const e of Object.values(o.files)){if(!e.dir){let r=e.name;if(r[0]==="/"){r=r.substr(1)}let n;if(r.match(/xl\/media\//)||r.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){n=new s;n.write(await e.async("nodebuffer"))}else{n=new s({writableObjectMode:true,readableObjectMode:true});let t;if(process.browser){t=g(await e.async("nodebuffer"))}else{t=await e.async("string")}const r=16*1024;for(let e=0;e<t.length;e+=r){n.write(t.substring(e,e+r))}}n.end();switch(r){case"_rels/.rels":i.globalRels=await this.parseRels(n);break;case"xl/workbook.xml":{const e=await this.parseWorkbook(n);i.sheets=e.sheets;i.definedNames=e.definedNames;i.views=e.views;i.properties=e.properties;i.calcProperties=e.calcProperties;break}case"xl/_rels/workbook.xml.rels":i.workbookRels=await this.parseRels(n);break;case"xl/sharedStrings.xml":i.sharedStrings=new b;await i.sharedStrings.parseStream(n);break;case"xl/styles.xml":i.styles=new y;await i.styles.parseStream(n);break;case"docProps/app.xml":{const e=new x;const t=await e.parseStream(n);i.company=t.company;i.manager=t.manager;break}case"docProps/core.xml":{const e=new v;const t=await e.parseStream(n);Object.assign(i,t);break}default:{let e=r.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(e){await this._processWorksheetEntry(n,i,e[1],t,r);break}e=r.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/);if(e){await this._processWorksheetRelsEntry(n,i,e[1]);break}e=r.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/);if(e){await this._processThemeEntry(n,i,e[1]);break}e=r.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/);if(e){await this._processMediaEntry(n,i,e[1]);break}e=r.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/);if(e){await this._processDrawingEntry(n,i,e[1]);break}e=r.match(/xl\/(comments\d+)[.]xml/);if(e){await this._processCommentEntry(n,i,e[1]);break}e=r.match(/xl\/tables\/(table\d+)[.]xml/);if(e){await this._processTableEntry(n,i,e[1]);break}e=r.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/);if(e){await this._processDrawingRelsEntry(n,i,e[1]);break}e=r.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/);if(e){await this._processVmlDrawingEntry(n,i,e[1]);break}}}}}this.reconcile(i,t);this.workbook.model=i;return this.workbook}async addMedia(e,t){await Promise.all(t.media.map((async t=>{if(t.type==="image"){const r=`xl/media/${t.name}.${t.extension}`;if(t.filename){const i=await fsReadFileAsync(t.filename);return e.append(i,{name:r})}if(t.buffer){return e.append(t.buffer,{name:r})}if(t.base64){const i=t.base64;const n=i.substring(i.indexOf(",")+1);return e.append(n,{name:r,base64:true})}}throw new Error("Unsupported media")})))}addDrawings(e,t){const r=new C;const i=new _;t.worksheets.forEach((t=>{const{drawing:n}=t;if(n){r.prepare(n,{});let t=r.toXml(n);e.append(t,{name:`xl/drawings/${n.name}.xml`});t=i.toXml(n.rels);e.append(t,{name:`xl/drawings/_rels/${n.name}.xml.rels`})}}))}addTables(e,t){const r=new E;t.worksheets.forEach((t=>{const{tables:i}=t;i.forEach((t=>{r.prepare(t,{});const i=r.toXml(t);e.append(i,{name:`xl/tables/${t.target}`})}))}))}async addContentTypes(e,t){const r=new w;const i=r.toXml(t);e.append(i,{name:"[Content_Types].xml"})}async addApp(e,t){const r=new x;const i=r.toXml(t);e.append(i,{name:"docProps/app.xml"})}async addCore(e,t){const r=new v;e.append(r.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const r=t.themes||{theme1:A};Object.keys(r).forEach((t=>{const i=r[t];const n=`xl/theme/${t}.xml`;e.append(i,{name:n})}))}async addOfficeRels(e){const t=new _;const r=t.toXml([{Id:"rId1",Type:XLSX.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:XLSX.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:XLSX.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(r,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let r=1;const i=[{Id:`rId${r++}`,Type:XLSX.RelType.Styles,Target:"styles.xml"},{Id:`rId${r++}`,Type:XLSX.RelType.Theme,Target:"theme/theme1.xml"}];if(t.sharedStrings.count){i.push({Id:`rId${r++}`,Type:XLSX.RelType.SharedStrings,Target:"sharedStrings.xml"})}t.worksheets.forEach((e=>{e.rId=`rId${r++}`;i.push({Id:e.rId,Type:XLSX.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})}));const n=new _;const s=n.toXml(i);e.append(s,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){if(t.sharedStrings&&t.sharedStrings.count){e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}}async addStyles(e,t){const{xml:r}=t.styles;if(r){e.append(r,{name:"xl/styles.xml"})}}async addWorkbook(e,t){const r=new S;e.append(r.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const r=new k;const i=new _;const n=new R;const s=new O;t.worksheets.forEach((t=>{let o=new p;r.render(o,t);e.append(o.xml,{name:`xl/worksheets/sheet${t.id}.xml`});if(t.rels&&t.rels.length){o=new p;i.render(o,t.rels);e.append(o.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})}if(t.comments.length>0){o=new p;n.render(o,t);e.append(o.xml,{name:`xl/comments${t.id}.xml`});o=new p;s.render(o,t);e.append(o.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`})}}))}_finalize(e){return new Promise(((t,r)=>{e.on("finish",(()=>{t(this)}));e.on("error",r);e.finalize()}))}prepareModel(e,t){e.creator=e.creator||"ExcelJS";e.lastModifiedBy=e.lastModifiedBy||"ExcelJS";e.created=e.created||new Date;e.modified=e.modified||new Date;e.useSharedStrings=t.useSharedStrings!==undefined?t.useSharedStrings:true;e.useStyles=t.useStyles!==undefined?t.useStyles:true;e.sharedStrings=new b;e.styles=e.useStyles?new y(true):new y.Mock;const r=new S;const i=new k;r.prepare(e);const n={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};n.drawings=e.drawings=[];n.commentRefs=e.commentRefs=[];let s=0;e.tables=[];e.worksheets.forEach((t=>{t.tables.forEach((t=>{s++;t.target=`table${s}.xml`;t.id=s;e.tables.push(t)}));i.prepare(t,n)}))}async write(e,t){t=t||{};const{model:r}=this.workbook;const i=new o.ZipWriter(t.zip);i.pipe(e);this.prepareModel(r,t);await this.addContentTypes(i,r);await this.addOfficeRels(i,r);await this.addWorkbookRels(i,r);await this.addWorksheets(i,r);await this.addSharedStrings(i,r);await this.addDrawings(i,r);await this.addTables(i,r);await Promise.all([this.addThemes(i,r),this.addStyles(i,r)]);await this.addMedia(i,r);await Promise.all([this.addApp(i,r),this.addCore(i,r)]);await this.addWorkbook(i,r);return this._finalize(i)}writeFile(e,t){const r=i.createWriteStream(e);return new Promise(((e,i)=>{r.on("finish",(()=>{e()}));r.on("error",(e=>{i(e)}));this.write(r,t).then((()=>{r.end()})).catch((e=>{i(e)}))}))}async writeBuffer(e){const t=new c;await this.write(t,e);return t.read()}}XLSX.RelType=r(8496);e.exports=XLSX},2260:function(e){e.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},1067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CsvParserStream=t.ParserOptions=t.parseFile=t.parseStream=t.parseString=t.parse=t.FormatterOptions=t.CsvFormatterStream=t.writeToPath=t.writeToString=t.writeToBuffer=t.writeToStream=t.write=t.format=void 0;var i=r(3306);Object.defineProperty(t,"format",{enumerable:true,get:function(){return i.format}});Object.defineProperty(t,"write",{enumerable:true,get:function(){return i.write}});Object.defineProperty(t,"writeToStream",{enumerable:true,get:function(){return i.writeToStream}});Object.defineProperty(t,"writeToBuffer",{enumerable:true,get:function(){return i.writeToBuffer}});Object.defineProperty(t,"writeToString",{enumerable:true,get:function(){return i.writeToString}});Object.defineProperty(t,"writeToPath",{enumerable:true,get:function(){return i.writeToPath}});Object.defineProperty(t,"CsvFormatterStream",{enumerable:true,get:function(){return i.CsvFormatterStream}});Object.defineProperty(t,"FormatterOptions",{enumerable:true,get:function(){return i.FormatterOptions}});var n=r(727);Object.defineProperty(t,"parse",{enumerable:true,get:function(){return n.parse}});Object.defineProperty(t,"parseString",{enumerable:true,get:function(){return n.parseString}});Object.defineProperty(t,"parseStream",{enumerable:true,get:function(){return n.parseStream}});Object.defineProperty(t,"parseFile",{enumerable:true,get:function(){return n.parseFile}});Object.defineProperty(t,"ParserOptions",{enumerable:true,get:function(){return n.ParserOptions}});Object.defineProperty(t,"CsvParserStream",{enumerable:true,get:function(){return n.CsvParserStream}})},9033:function(e,t,r){e.exports=r(9896).constants||r(9140)},1931:function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(9896);var n=i.realpath;var s=i.realpathSync;var o=process.version;var c=/^v[0-5]\./.test(o);var h=r(5022);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(c){return n(e,t,r)}if(typeof t==="function"){r=t;t=null}n(e,t,(function(i,n){if(newError(i)){h.realpath(e,t,r)}else{r(i,n)}}))}function realpathSync(e,t){if(c){return s(e,t)}try{return s(e,t)}catch(r){if(newError(r)){return h.realpathSync(e,t)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=s}},5022:function(e,t,r){var i=r(6928);var n=process.platform==="win32";var s=r(9896);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var c=i.normalize;if(n){var h=/(.*?)(?:[\/\\]+|$)/g}else{var h=/(.*?)(?:[\/]+|$)/g}if(n){var p=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var p=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,o={},c={};var g;var y;var v;var b;start();function start(){var t=p.exec(e);g=t[0].length;y=t[0];v=t[0];b="";if(n&&!c[v]){s.lstatSync(v);c[v]=true}}while(g<e.length){h.lastIndex=g;var _=h.exec(e);b=y;y+=_[0];v=b+_[1];g=h.lastIndex;if(c[v]||t&&t[v]===v){continue}var w;if(t&&Object.prototype.hasOwnProperty.call(t,v)){w=t[v]}else{var x=s.lstatSync(v);if(!x.isSymbolicLink()){c[v]=true;if(t)t[v]=v;continue}var S=null;if(!n){var k=x.dev.toString(32)+":"+x.ino.toString(32);if(o.hasOwnProperty(k)){S=o[k]}}if(S===null){s.statSync(v);S=s.readlinkSync(v)}w=i.resolve(b,S);if(t)t[v]=w;if(!n)o[k]=S}e=i.resolve(w,e.slice(g));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var o=e,c={},g={};var y;var v;var b;var _;start();function start(){var t=p.exec(e);y=t[0].length;v=t[0];b=t[0];_="";if(n&&!g[b]){s.lstat(b,(function(e){if(e)return r(e);g[b]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(y>=e.length){if(t)t[o]=e;return r(null,e)}h.lastIndex=y;var i=h.exec(e);_=v;v+=i[0];b=_+i[1];y=h.lastIndex;if(g[b]||t&&t[b]===b){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,b)){return gotResolvedLink(t[b])}return s.lstat(b,gotStat)}function gotStat(e,i){if(e)return r(e);if(!i.isSymbolicLink()){g[b]=true;if(t)t[b]=b;return process.nextTick(LOOP)}if(!n){var o=i.dev.toString(32)+":"+i.ino.toString(32);if(c.hasOwnProperty(o)){return gotTarget(null,c[o],b)}}s.stat(b,(function(e){if(e)return r(e);s.readlink(b,(function(e,t){if(!n)c[o]=t;gotTarget(e,t)}))}))}function gotTarget(e,n,s){if(e)return r(e);var o=i.resolve(_,n);if(t)t[s]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=i.resolve(t,e.slice(y));start()}}},1893:function(e,t,r){var i;r(6276);r(3485);t.Writer=r(1033);t.ZH={Reader:r(9538),Writer:r(1522)};t.ig={Reader:r(5655),Writer:r(3303)};t.N_={Reader:r(9664),Writer:r(8748)};t.by={Reader:r(3370),Writer:r(3626)};i=i=t.ig.Reader;i=i=t.ZH.Reader;i=i=t.N_.Reader;i=i=t.by.Reader;t.Writer.Dir=i=t.ig.Writer;t.Writer.File=i=t.ZH.Writer;t.Writer.Link=i=t.N_.Writer;t.Writer.Proxy=i=t.by.Writer;r(2822)},6276:function(e,t,r){e.exports=Abstract;var i=r(2203).Stream;var n=r(4070);function Abstract(){i.call(this)}n(Abstract,i);Abstract.prototype.on=function(e,t){if(e==="ready"&&this.ready){process.nextTick(t.bind(this))}else{i.prototype.on.call(this,e,t)}return this};Abstract.prototype.abort=function(){this._aborted=true;this.emit("abort")};Abstract.prototype.destroy=function(){};Abstract.prototype.warn=function(e,t){var r=this;var i=decorate(e,t,r);if(!r.listeners("warn")){console.error("%s %s\n"+"path = %s\n"+"syscall = %s\n"+"fstream_type = %s\n"+"fstream_path = %s\n"+"fstream_unc_path = %s\n"+"fstream_class = %s\n"+"fstream_stack =\n%s\n",t||"UNKNOWN",i.stack,i.path,i.syscall,i.fstream_type,i.fstream_path,i.fstream_unc_path,i.fstream_class,i.fstream_stack.join("\n"))}else{r.emit("warn",i)}};Abstract.prototype.info=function(e,t){this.emit("info",e,t)};Abstract.prototype.error=function(e,t,r){var i=decorate(e,t,this);if(r)throw i;else this.emit("error",i)};function decorate(e,t,r){if(!(e instanceof Error))e=new Error(e);e.code=e.code||t;e.path=e.path||r.path;e.fstream_type=e.fstream_type||r.type;e.fstream_path=e.fstream_path||r.path;if(r._path!==r.path){e.fstream_unc_path=e.fstream_unc_path||r._path}if(r.linkpath){e.fstream_linkpath=e.fstream_linkpath||r.linkpath}e.fstream_class=e.fstream_class||r.constructor.name;e.fstream_stack=e.fstream_stack||(new Error).stack.split(/\n/).slice(3).map((function(e){return e.replace(/^ {4}at /,"")}));return e}},2822:function(e){e.exports=collect;function collect(e){if(e._collected)return;if(e._paused)return e.on("resume",collect.bind(null,e));e._collected=true;e.pause();e.on("data",save);e.on("end",save);var t=[];function save(e){if(typeof e==="string")e=new Buffer(e);if(Buffer.isBuffer(e)&&!e.length)return;t.push(e)}e.on("entry",saveEntry);var r=[];function saveEntry(e){collect(e);r.push(e)}e.on("proxy",proxyPause);function proxyPause(e){e.pause()}e.pipe=function(i){return function(n){var s=0;(function unblockEntry(){var t=r[s++];if(!t)return resume();t.on("end",unblockEntry);if(n)n.add(t);else e.emit("entry",t)})();function resume(){e.removeListener("entry",saveEntry);e.removeListener("data",save);e.removeListener("end",save);e.pipe=i;if(n)e.pipe(n);t.forEach((function(t){if(t)e.emit("data",t);else e.emit("end")}));e.resume()}return n}}(e.pipe)}},5655:function(e,t,r){e.exports=DirReader;var i=r(7551);var n=r(4070);var s=r(6928);var o=r(3485);var c=r(2613).ok;n(DirReader,o);function DirReader(e){var t=this;if(!(t instanceof DirReader)){throw new Error("DirReader must be called as constructor.")}if(e.type!=="Directory"||!e.Directory){throw new Error("Non-directory type "+e.type)}t.entries=null;t._index=-1;t._paused=false;t._length=-1;if(e.sort){this.sort=e.sort}o.call(this,e)}DirReader.prototype._getEntries=function(){var e=this;if(e._gotEntries)return;e._gotEntries=true;i.readdir(e._path,(function(t,r){if(t)return e.error(t);e.entries=r;e.emit("entries",r);if(e._paused)e.once("resume",processEntries);else processEntries();function processEntries(){e._length=e.entries.length;if(typeof e.sort==="function"){e.entries=e.entries.sort(e.sort.bind(e))}e._read()}}))};DirReader.prototype._read=function(){var e=this;if(!e.entries)return e._getEntries();if(e._paused||e._currentEntry||e._aborted){return}e._index++;if(e._index>=e.entries.length){if(!e._ended){e._ended=true;e.emit("end");e.emit("close")}return}var t=s.resolve(e._path,e.entries[e._index]);c(t!==e._path);c(e.entries[e._index]);e._currentEntry=t;i[e.props.follow?"stat":"lstat"](t,(function(r,i){if(r)return e.error(r);var n=e._proxy||e;i.path=t;i.basename=s.basename(t);i.dirname=s.dirname(t);var c=e.getChildProps.call(n,i);c.path=t;c.basename=s.basename(t);c.dirname=s.dirname(t);var h=o(c,i);e._currentEntry=h;h.on("pause",(function(t){if(!e._paused&&!h._disowned){e.pause(t)}}));h.on("resume",(function(t){if(e._paused&&!h._disowned){e.resume(t)}}));h.on("stat",(function(t){e.emit("_entryStat",h,t);if(h._aborted)return;if(h._paused){h.once("resume",(function(){e.emit("entryStat",h,t)}))}else e.emit("entryStat",h,t)}));h.on("ready",(function EMITCHILD(){if(e._paused){h.pause(e);return e.once("resume",EMITCHILD)}if(h.type==="Socket"){e.emit("socket",h)}else{e.emitEntry(h)}}));var p=false;h.on("close",onend);h.on("disown",onend);function onend(){if(p)return;p=true;e.emit("childEnd",h);e.emit("entryEnd",h);e._currentEntry=null;if(!e._paused){e._read()}}h.on("error",(function(t){if(h._swallowErrors){e.warn(t);h.emit("end");h.emit("close")}else{e.emit("error",t)}}));["child","childEnd","warn"].forEach((function(t){h.on(t,e.emit.bind(e,t))}))}))};DirReader.prototype.disown=function(e){e.emit("beforeDisown");e._disowned=true;e.parent=e.root=null;if(e===this._currentEntry){this._currentEntry=null}e.emit("disown")};DirReader.prototype.getChildProps=function(){return{depth:this.depth+1,root:this.root||this,parent:this,follow:this.follow,filter:this.filter,sort:this.props.sort,hardlinks:this.props.hardlinks}};DirReader.prototype.pause=function(e){var t=this;if(t._paused)return;e=e||t;t._paused=true;if(t._currentEntry&&t._currentEntry.pause){t._currentEntry.pause(e)}t.emit("pause",e)};DirReader.prototype.resume=function(e){var t=this;if(!t._paused)return;e=e||t;t._paused=false;t.emit("resume",e);if(t._paused){return}if(t._currentEntry){if(t._currentEntry.resume)t._currentEntry.resume(e)}else t._read()};DirReader.prototype.emitEntry=function(e){this.emit("entry",e);this.emit("child",e)}},3303:function(e,t,r){e.exports=DirWriter;var i=r(1033);var n=r(4070);var s=r(9403);var o=r(6928);var c=r(2822);n(DirWriter,i);function DirWriter(e){var t=this;if(!(t instanceof DirWriter)){t.error("DirWriter must be called as constructor.",null,true)}if(e.type!=="Directory"||!e.Directory){t.error("Non-directory type "+e.type+" "+JSON.stringify(e),null,true)}i.call(this,e)}DirWriter.prototype._create=function(){var e=this;s(e._path,i.dirmode,(function(t){if(t)return e.error(t);e.ready=true;e.emit("ready");e._process()}))};DirWriter.prototype.write=function(){return true};DirWriter.prototype.end=function(){this._ended=true;this._process()};DirWriter.prototype.add=function(e){var t=this;c(e);if(!t.ready||t._currentEntry){t._buffer.push(e);return false}if(t._ended){return t.error("add after end")}t._buffer.push(e);t._process();return this._buffer.length===0};DirWriter.prototype._process=function(){var e=this;if(e._processing)return;var t=e._buffer.shift();if(!t){e.emit("drain");if(e._ended)e._finish();return}e._processing=true;e.emit("entry",t);var r=t;var n;do{n=r._path||r.path;if(n===e.root._path||n===e._path||n&&n.indexOf(e._path)===0){e._processing=false;if(t._collected)t.pipe();return e._process()}r=r.parent}while(r);var s={parent:e,root:e.root||e,type:t.type,depth:e.depth+1};n=t._path||t.path||t.props.path;if(t.parent){n=n.substr(t.parent._path.length+1)}s.path=o.join(e.path,o.join("/",n));s.filter=e.filter;Object.keys(t.props).forEach((function(e){if(!s.hasOwnProperty(e)){s[e]=t.props[e]}}));var c=e._currentChild=new i(s);c.on("ready",(function(){t.pipe(c);t.resume()}));c.on("error",(function(t){if(c._swallowErrors){e.warn(t);c.emit("end");c.emit("close")}else{e.emit("error",t)}}));c.on("close",onend);var h=false;function onend(){if(h)return;h=true;e._currentChild=null;e._processing=false;e._process()}}},9538:function(e,t,r){e.exports=FileReader;var i=r(7551);var n=r(4070);var s=r(3485);var o={EOF:true};var c={CLOSE:true};n(FileReader,s);function FileReader(e){var t=this;if(!(t instanceof FileReader)){throw new Error("FileReader must be called as constructor.")}if(!(e.type==="Link"&&e.Link||e.type==="File"&&e.File)){throw new Error("Non-file type "+e.type)}t._buffer=[];t._bytesEmitted=0;s.call(t,e)}FileReader.prototype._getStream=function(){var e=this;var t=e._stream=i.createReadStream(e._path,e.props);if(e.props.blksize){t.bufferSize=e.props.blksize}t.on("open",e.emit.bind(e,"open"));t.on("data",(function(t){e._bytesEmitted+=t.length;if(!t.length){return}else if(e._paused||e._buffer.length){e._buffer.push(t);e._read()}else e.emit("data",t)}));t.on("end",(function(){if(e._paused||e._buffer.length){e._buffer.push(o);e._read()}else{e.emit("end")}if(e._bytesEmitted!==e.props.size){e.error("Didn't get expected byte count\n"+"expect: "+e.props.size+"\n"+"actual: "+e._bytesEmitted)}}));t.on("close",(function(){if(e._paused||e._buffer.length){e._buffer.push(c);e._read()}else{e.emit("close")}}));t.on("error",(function(t){e.emit("error",t)}));e._read()};FileReader.prototype._read=function(){var e=this;if(e._paused){return}if(!e._stream){return e._getStream()}if(e._buffer.length){var t=e._buffer;for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n===o){e.emit("end")}else if(n===c){e.emit("close")}else{e.emit("data",n)}if(e._paused){e._buffer=t.slice(r);return}}e._buffer.length=0}};FileReader.prototype.pause=function(e){var t=this;if(t._paused)return;e=e||t;t._paused=true;if(t._stream)t._stream.pause();t.emit("pause",e)};FileReader.prototype.resume=function(e){var t=this;if(!t._paused)return;e=e||t;t.emit("resume",e);t._paused=false;if(t._stream)t._stream.resume();t._read()}},1522:function(e,t,r){e.exports=FileWriter;var i=r(7551);var n=r(1033);var s=r(4070);var o={};s(FileWriter,n);function FileWriter(e){var t=this;if(!(t instanceof FileWriter)){throw new Error("FileWriter must be called as constructor.")}if(e.type!=="File"||!e.File){throw new Error("Non-file type "+e.type)}t._buffer=[];t._bytesWritten=0;n.call(this,e)}FileWriter.prototype._create=function(){var e=this;if(e._stream)return;var t={};if(e.props.flags)t.flags=e.props.flags;t.mode=n.filemode;if(e._old&&e._old.blksize)t.bufferSize=e._old.blksize;e._stream=i.createWriteStream(e._path,t);e._stream.on("open",(function(){e.ready=true;e._buffer.forEach((function(t){if(t===o)e._stream.end();else e._stream.write(t)}));e.emit("ready");e.emit("drain")}));e._stream.on("error",(function(t){e.emit("error",t)}));e._stream.on("drain",(function(){e.emit("drain")}));e._stream.on("close",(function(){e._finish()}))};FileWriter.prototype.write=function(e){var t=this;t._bytesWritten+=e.length;if(!t.ready){if(!Buffer.isBuffer(e)&&typeof e!=="string"){throw new Error("invalid write data")}t._buffer.push(e);return false}var r=t._stream.write(e);if(r===false&&t._stream._queue){return t._stream._queue.length<=2}else{return r}};FileWriter.prototype.end=function(e){var t=this;if(e)t.write(e);if(!t.ready){t._buffer.push(o);return false}return t._stream.end()};FileWriter.prototype._finish=function(){var e=this;if(typeof e.size==="number"&&e._bytesWritten!==e.size){e.error("Did not get expected byte count.\n"+"expect: "+e.size+"\n"+"actual: "+e._bytesWritten)}n.prototype._finish.call(e)}},1029:function(e){e.exports=getType;function getType(e){var t=["Directory","File","SymbolicLink","Link","BlockDevice","CharacterDevice","FIFO","Socket"];var r;if(e.type&&t.indexOf(e.type)!==-1){e[e.type]=true;return e.type}for(var i=0,n=t.length;i<n;i++){r=t[i];var s=e[r]||e["is"+r];if(typeof s==="function")s=s.call(e);if(s){e[r]=true;e.type=r;return r}}return null}},9664:function(e,t,r){e.exports=LinkReader;var i=r(7551);var n=r(4070);var s=r(3485);n(LinkReader,s);function LinkReader(e){var t=this;if(!(t instanceof LinkReader)){throw new Error("LinkReader must be called as constructor.")}if(!(e.type==="Link"&&e.Link||e.type==="SymbolicLink"&&e.SymbolicLink)){throw new Error("Non-link type "+e.type)}s.call(t,e)}LinkReader.prototype._stat=function(e){var t=this;i.readlink(t._path,(function(r,i){if(r)return t.error(r);t.linkpath=t.props.linkpath=i;t.emit("linkpath",i);s.prototype._stat.call(t,e)}))};LinkReader.prototype._read=function(){var e=this;if(e._paused)return;if(!e._ended){e.emit("end");e.emit("close");e._ended=true}}},8748:function(e,t,r){e.exports=LinkWriter;var i=r(7551);var n=r(1033);var s=r(4070);var o=r(6928);var c=r(8525);s(LinkWriter,n);function LinkWriter(e){var t=this;if(!(t instanceof LinkWriter)){throw new Error("LinkWriter must be called as constructor.")}if(!(e.type==="Link"&&e.Link||e.type==="SymbolicLink"&&e.SymbolicLink)){throw new Error("Non-link type "+e.type)}if(e.linkpath==="")e.linkpath=".";if(!e.linkpath){t.error("Need linkpath property to create "+e.type)}n.call(this,e)}LinkWriter.prototype._create=function(){var e=this;var t=e.type==="Link"||process.platform==="win32";var r=t?"link":"symlink";var n=t?o.resolve(e.dirname,e.linkpath):e.linkpath;if(t)return clobber(e,n,r);i.readlink(e._path,(function(t,i){if(i&&i===n)return finish(e);clobber(e,n,r)}))};function clobber(e,t,r){c(e._path,(function(i){if(i)return e.error(i);create(e,t,r)}))}function create(e,t,r){i[r](t,e._path,(function(t){if(t){if((t.code==="ENOENT"||t.code==="EACCES"||t.code==="EPERM")&&process.platform==="win32"){e.ready=true;e.emit("ready");e.emit("end");e.emit("close");e.end=e._finish=function(){}}else return e.error(t)}finish(e)}))}function finish(e){e.ready=true;e.emit("ready");if(e._ended&&!e._finished)e._finish()}LinkWriter.prototype.end=function(){this._ended=true;if(this.ready){this._finished=true;this._finish()}}},3370:function(e,t,r){e.exports=ProxyReader;var i=r(3485);var n=r(1029);var s=r(4070);var o=r(7551);s(ProxyReader,i);function ProxyReader(e){var t=this;if(!(t instanceof ProxyReader)){throw new Error("ProxyReader must be called as constructor.")}t.props=e;t._buffer=[];t.ready=false;i.call(t,e)}ProxyReader.prototype._stat=function(){var e=this;var t=e.props;var r=t.follow?"stat":"lstat";o[r](t.path,(function(r,s){var o;if(r||!s){o="File"}else{o=n(s)}t[o]=true;t.type=e.type=o;e._old=s;e._addProxy(i(t,s))}))};ProxyReader.prototype._addProxy=function(e){var t=this;if(t._proxyTarget){return t.error("proxy already set")}t._proxyTarget=e;e._proxy=t;["error","data","end","close","linkpath","entry","entryEnd","child","childEnd","warn","stat"].forEach((function(r){e.on(r,t.emit.bind(t,r))}));t.emit("proxy",e);e.on("ready",(function(){t.ready=true;t.emit("ready")}));var r=t._buffer;t._buffer.length=0;r.forEach((function(t){e[t[0]].apply(e,t[1])}))};ProxyReader.prototype.pause=function(){return this._proxyTarget?this._proxyTarget.pause():false};ProxyReader.prototype.resume=function(){return this._proxyTarget?this._proxyTarget.resume():false}},3626:function(e,t,r){e.exports=ProxyWriter;var i=r(1033);var n=r(1029);var s=r(4070);var o=r(2822);var c=r(9896);s(ProxyWriter,i);function ProxyWriter(e){var t=this;if(!(t instanceof ProxyWriter)){throw new Error("ProxyWriter must be called as constructor.")}t.props=e;t._needDrain=false;i.call(t,e)}ProxyWriter.prototype._stat=function(){var e=this;var t=e.props;var r=t.follow?"stat":"lstat";c[r](t.path,(function(r,s){var o;if(r||!s){o="File"}else{o=n(s)}t[o]=true;t.type=e.type=o;e._old=s;e._addProxy(i(t,s))}))};ProxyWriter.prototype._addProxy=function(e){var t=this;if(t._proxy){return t.error("proxy already set")}t._proxy=e;["ready","error","close","pipe","drain","warn"].forEach((function(r){e.on(r,t.emit.bind(t,r))}));t.emit("proxy",e);var r=t._buffer;r.forEach((function(t){e[t[0]].apply(e,t[1])}));t._buffer.length=0;if(t._needsDrain)t.emit("drain")};ProxyWriter.prototype.add=function(e){o(e);if(!this._proxy){this._buffer.push(["add",[e]]);this._needDrain=true;return false}return this._proxy.add(e)};ProxyWriter.prototype.write=function(e){if(!this._proxy){this._buffer.push(["write",[e]]);this._needDrain=true;return false}return this._proxy.write(e)};ProxyWriter.prototype.end=function(e){if(!this._proxy){this._buffer.push(["end",[e]]);return false}return this._proxy.end(e)}},3485:function(e,t,r){e.exports=Reader;var i=r(7551);var n=r(2203).Stream;var s=r(4070);var o=r(6928);var c=r(1029);var h=Reader.hardLinks={};var p=r(6276);s(Reader,p);var g=r(9664);function Reader(e,t){var i=this;if(!(i instanceof Reader))return new Reader(e,t);if(typeof e==="string"){e={path:e}}var n;var s;if(e.type&&typeof e.type==="function"){n=e.type;s=n}else{n=c(e);s=Reader}if(t&&!n){n=c(t);e[n]=true;e.type=n}switch(n){case"Directory":s=r(5655);break;case"Link":case"File":s=r(9538);break;case"SymbolicLink":s=g;break;case"Socket":s=r(7999);break;case null:s=r(3370);break}if(!(i instanceof s)){return new s(e)}p.call(i);if(!e.path){i.error("Must provide a path",null,true)}i.readable=true;i.writable=false;i.type=n;i.props=e;i.depth=e.depth=e.depth||0;i.parent=e.parent||null;i.root=e.root||e.parent&&e.parent.root||i;i._path=i.path=o.resolve(e.path);if(process.platform==="win32"){i.path=i._path=i.path.replace(/\?/g,"_");if(i._path.length>=260){i._swallowErrors=true;i._path="\\\\?\\"+i.path.replace(/\//g,"\\")}}i.basename=e.basename=o.basename(i.path);i.dirname=e.dirname=o.dirname(i.path);e.parent=e.root=null;i.size=e.size;i.filter=typeof e.filter==="function"?e.filter:null;if(e.sort==="alpha")e.sort=alphasort;i._stat(t)}function alphasort(e,t){return e===t?0:e.toLowerCase()>t.toLowerCase()?1:e.toLowerCase()<t.toLowerCase()?-1:e>t?1:-1}Reader.prototype._stat=function(e){var t=this;var r=t.props;var n=r.follow?"stat":"lstat";if(e)process.nextTick(statCb.bind(null,null,e));else i[n](t._path,statCb);function statCb(e,i){if(e)return t.error(e);Object.keys(i).forEach((function(e){r[e]=i[e]}));if(undefined!==t.size&&r.size!==t.size){return t.error("incorrect size")}t.size=r.size;var n=c(r);var s=r.hardlinks!==false;if(s&&n!=="Directory"&&r.nlink&&r.nlink>1){var o=r.dev+":"+r.ino;if(h[o]===t._path||!h[o]){h[o]=t._path}else{n=t.type=t.props.type="Link";t.Link=t.props.Link=true;t.linkpath=t.props.linkpath=h[o];t._stat=t._read=g.prototype._read}}if(t.type&&t.type!==n){t.error("Unexpected type: "+n)}if(t.filter){var p=t._proxy||t;if(!t.filter.call(p,p,r)){if(!t._disowned){t.abort();t.emit("end");t.emit("close")}return}}var y=["_stat","stat","ready"];var v=0;(function go(){if(t._aborted){t.emit("end");t.emit("close");return}if(t._paused&&t.type!=="Directory"){t.once("resume",go);return}var e=y[v++];if(!e){return t._read()}t.emit(e,r);go()})()}};Reader.prototype.pipe=function(e){var t=this;if(typeof e.add==="function"){t.on("entry",(function(r){var i=e.add(r);if(i===false){t.pause()}}))}return n.prototype.pipe.apply(this,arguments)};Reader.prototype.pause=function(e){this._paused=true;e=e||this;this.emit("pause",e);if(this._stream)this._stream.pause(e)};Reader.prototype.resume=function(e){this._paused=false;e=e||this;this.emit("resume",e);if(this._stream)this._stream.resume(e);this._read()};Reader.prototype._read=function(){this.error("Cannot read unknown type: "+this.type)}},7999:function(e,t,r){e.exports=SocketReader;var i=r(4070);var n=r(3485);i(SocketReader,n);function SocketReader(e){var t=this;if(!(t instanceof SocketReader)){throw new Error("SocketReader must be called as constructor.")}if(!(e.type==="Socket"&&e.Socket)){throw new Error("Non-socket type "+e.type)}n.call(t,e)}SocketReader.prototype._read=function(){var e=this;if(e._paused)return;if(!e._ended){e.emit("end");e.emit("close");e._ended=true}}},1033:function(e,t,r){e.exports=Writer;var i=r(7551);var n=r(4070);var s=r(8525);var o=r(9403);var c=r(6928);var h=process.platform==="win32"?0:process.umask();var p=r(1029);var g=r(6276);n(Writer,g);Writer.dirmode=parseInt("0777",8)&~h;Writer.filemode=parseInt("0666",8)&~h;var y=r(3303);var v=r(8748);var b=r(1522);var _=r(3626);function Writer(e,t){var r=this;if(typeof e==="string"){e={path:e}}var i=p(e);var n=Writer;switch(i){case"Directory":n=y;break;case"File":n=b;break;case"Link":case"SymbolicLink":n=v;break;case null:default:n=_;break}if(!(r instanceof n))return new n(e);g.call(r);if(!e.path)r.error("Must provide a path",null,true);r.type=e.type;r.props=e;r.depth=e.depth||0;r.clobber=e.clobber===false?e.clobber:true;r.parent=e.parent||null;r.root=e.root||e.parent&&e.parent.root||r;r._path=r.path=c.resolve(e.path);if(process.platform==="win32"){r.path=r._path=r.path.replace(/\?/g,"_");if(r._path.length>=260){r._swallowErrors=true;r._path="\\\\?\\"+r.path.replace(/\//g,"\\")}}r.basename=c.basename(e.path);r.dirname=c.dirname(e.path);r.linkpath=e.linkpath||null;e.parent=e.root=null;r.size=e.size;if(typeof e.mode==="string"){e.mode=parseInt(e.mode,8)}r.readable=false;r.writable=true;r._buffer=[];r.ready=false;r.filter=typeof e.filter==="function"?e.filter:null;r._stat(t)}Writer.prototype._create=function(){var e=this;i[e.props.follow?"stat":"lstat"](e._path,(function(t){if(t){return e.warn("Cannot create "+e._path+"\n"+"Unsupported type: "+e.type,"ENOTSUP")}e._finish()}))};Writer.prototype._stat=function(e){var t=this;var r=t.props;var n=r.follow?"stat":"lstat";var o=t._proxy||t;if(e)statCb(null,e);else i[n](t._path,statCb);function statCb(e,r){if(t.filter&&!t.filter.call(o,o,r)){t._aborted=true;t.emit("end");t.emit("close");return}if(e||!r){return create(t)}t._old=r;var i=p(r);if(i!==t.type||t.type==="File"&&r.nlink>1){return s(t._path,(function(e){if(e)return t.error(e);t._old=null;create(t)}))}create(t)}};function create(e){o(c.dirname(e._path),Writer.dirmode,(function(t,r){if(t)return e.error(t);e._madeDir=r;return e._create()}))}function endChmod(e,t,r,n,s){var o=t.mode;var c=t.follow||e.type!=="SymbolicLink"?"chmod":"lchmod";if(!i[c])return s();if(typeof o!=="number")return s();var h=r.mode&parseInt("0777",8);o=o&parseInt("0777",8);if(o===h)return s();i[c](n,o,s)}function endChown(e,t,r,n,s){if(process.platform==="win32")return s();if(!process.getuid||process.getuid()!==0)return s();if(typeof t.uid!=="number"&&typeof t.gid!=="number")return s();if(r.uid===t.uid&&r.gid===t.gid)return s();var o=e.props.follow||e.type!=="SymbolicLink"?"chown":"lchown";if(!i[o])return s();if(typeof t.uid!=="number")t.uid=r.uid;if(typeof t.gid!=="number")t.gid=r.gid;i[o](n,t.uid,t.gid,s)}function endUtimes(e,t,r,n,s){if(!i.utimes||process.platform==="win32")return s();var o=t.follow||e.type!=="SymbolicLink"?"utimes":"lutimes";if(o==="lutimes"&&!i[o]){o="utimes"}if(!i[o])return s();var c=r.atime;var h=r.mtime;var p=t.atime;var g=t.mtime;if(p===undefined)p=c;if(g===undefined)g=h;if(!isDate(p))p=new Date(p);if(!isDate(g))p=new Date(g);if(p.getTime()===c.getTime()&&g.getTime()===h.getTime())return s();i[o](n,p,g,s)}Writer.prototype._finish=function(){var e=this;if(e._finishing)return;e._finishing=true;var t=0;var r=null;var n=false;if(e._old){e._old.atime=new Date(0);e._old.mtime=new Date(0);setProps(e._old)}else{var s=e.props.follow?"stat":"lstat";i[s](e._path,(function(t,r){if(t){if(t.code==="ENOENT"&&(e.type==="Link"||e.type==="SymbolicLink")&&process.platform==="win32"){e.ready=true;e.emit("ready");e.emit("end");e.emit("close");e.end=e._finish=function(){};return}else return e.error(t)}setProps(e._old=r)}))}return;function setProps(r){t+=3;endChmod(e,e.props,r,e._path,next("chmod"));endChown(e,e.props,r,e._path,next("chown"));endUtimes(e,e.props,r,e._path,next("utimes"))}function next(i){return function(s){if(r)return;if(s){s.fstream_finish_call=i;return e.error(r=s)}if(--t>0)return;if(n)return;n=true;if(!e._madeDir)return end();else endMadeDir(e,e._path,end);function end(t){if(t){t.fstream_finish_call="setupMadeDir";return e.error(t)}e.emit("end");e.emit("close")}}}};function endMadeDir(e,t,r){var i=e._madeDir;var n=c.dirname(t);endMadeDir_(e,n,(function(t){if(t)return r(t);if(n===i){return r()}endMadeDir(e,n,r)}))}function endMadeDir_(e,t,r){var n={};Object.keys(e.props).forEach((function(t){n[t]=e.props[t];if(t==="mode"&&e.type!=="Directory"){n[t]=n[t]|parseInt("0111",8)}}));var s=3;var o=null;i.stat(t,(function(i,s){if(i)return r(o=i);endChmod(e,n,s,t,next);endChown(e,n,s,t,next);endUtimes(e,n,s,t,next)}));function next(e){if(o)return;if(e)return r(o=e);if(--s===0)return r()}}Writer.prototype.pipe=function(){this.error("Can't pipe from writable stream")};Writer.prototype.add=function(){this.error("Can't add to non-Directory type")};Writer.prototype.write=function(){return true};function objectToString(e){return Object.prototype.toString.call(e)}function isDate(e){return typeof e==="object"&&objectToString(e)==="[object Date]"}},8959:function(e,t,r){t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=r(9896);var n=r(6928);var s=r(6274);var o=r(2106);var c=s.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new c(r,{dot:true})}return{matcher:new c(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||i;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))e.cwd=s;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==s}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=o(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=false;e.minimatch=new c(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var i=0,n=e.matches.length;i<n;i++){var s=e.matches[i];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[i];if(t)r.push(o);else r[o]=true}}else{var c=Object.keys(s);if(t)r.push.apply(r,c);else c.forEach((function(e){r[e]=true}))}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(alphasort);if(e.mark){for(var i=0;i<r.length;i++){r[i]=e._mark(r[i])}if(e.nodir){r=r.filter((function(t){var r=!/\/$/.test(t);var i=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(e.ignore.length)r=r.filter((function(t){return!isIgnored(e,t)}));e.found=r}function mark(e,t){var r=makeAbs(e,t);var i=e.cache[r];var n=t;if(i){var s=i==="DIR"||Array.isArray(i);var o=t.slice(-1)==="/";if(s&&!o)n+="/";else if(!s&&o)n=n.slice(0,-1);if(n!==t){var c=makeAbs(e,n);e.statCache[c]=e.statCache[r];e.cache[c]=e.cache[r]}}return n}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=n.join(e.root,t)}else if(o(t)||t===""){r=t}else if(e.changedCwd){r=n.resolve(e.cwd,t)}else{r=n.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}))}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}))}},4908:function(e,t,r){e.exports=glob;var i=r(1931);var n=r(6274);var s=n.Minimatch;var o=r(4070);var c=r(4434).EventEmitter;var h=r(6928);var p=r(2613);var g=r(2106);var y=r(9521);var v=r(8959);var b=v.setopts;var _=v.ownProp;var w=r(5678);var x=r(9023);var S=v.childrenIgnored;var k=v.isIgnored;var C=r(8068);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return y(e,t)}return new Glob(e,t,r)}glob.sync=y;var E=glob.GlobSync=y.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var i=r.length;while(i--){e[r[i]]=t[r[i]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var i=new Glob(e,r);var n=i.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var s=0;s<n[0].length;s++){if(typeof n[0][s]!=="string")return true}return false};glob.Glob=Glob;o(Glob,c);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);b(this,e,t);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=C(r);this.on("error",r);this.on("end",(function(e){r(null,e)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var s=true;for(var o=0;o<i;o++){this._process(this.minimatch.set[o],o,false,done)}s=false;function done(){--n._processing;if(n._processing<=0){if(s){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){p(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();v.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r);var s=this;var o=n.length;if(o===0)return t();var c=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=s._makeAbs(r);i.realpath(r,s.realpathCache,(function(i,n){if(!i)c[n]=true;else if(i.syscall==="stat")c[r]=true;else s.emit("error",i);if(--o===0){s.matches[e]=c;t()}}))}))};Glob.prototype._mark=function(e){return v.mark(this,e)};Glob.prototype._makeAbs=function(e){return v.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<i.length;t++){var n=i[t];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(e,t,r,i){p(this instanceof Glob);p(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,i]);return}var s=0;while(typeof e[s]==="string"){s++}var o;switch(s){case e.length:this._processSimple(e.join("/"),t,i);return;case 0:o=null;break;default:o=e.slice(0,s).join("/");break}var c=e.slice(s);var h;if(o===null)h=".";else if(g(o)||g(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!o||!g(o))o="/"+o;h=o}else h=o;var y=this._makeAbs(h);if(S(this,h))return i();var v=c[0]===n.GLOBSTAR;if(v)this._processGlobStar(o,h,y,c,t,r,i);else this._processReaddir(o,h,y,c,t,r,i)};Glob.prototype._processReaddir=function(e,t,r,i,n,s,o){var c=this;this._readdir(r,s,(function(h,p){return c._processReaddir2(e,t,r,i,n,s,p,o)}))};Glob.prototype._processReaddir2=function(e,t,r,i,n,s,o,c){if(!o)return c();var p=i[0];var g=!!this.minimatch.negate;var y=p._glob;var v=this.dot||y.charAt(0)===".";var b=[];for(var _=0;_<o.length;_++){var w=o[_];if(w.charAt(0)!=="."||v){var x;if(g&&!e){x=!w.match(p)}else{x=w.match(p)}if(x)b.push(w)}}var S=b.length;if(S===0)return c();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var _=0;_<S;_++){var w=b[_];if(e){if(e!=="/")w=e+"/"+w;else w=e+w}if(w.charAt(0)==="/"&&!this.nomount){w=h.join(this.root,w)}this._emitMatch(n,w)}return c()}i.shift();for(var _=0;_<S;_++){var w=b[_];var k;if(e){if(e!=="/")w=e+"/"+w;else w=e+w}this._process([w].concat(i),n,s,c)}c()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(k(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=g(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;var n=this.statCache[r];if(n)this.emit("stat",t,n);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var i=this;var n=w(r,lstatcb_);if(n)i.fs.lstat(e,n);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return t();var s=n&&n.isSymbolicLink();i.symlinks[e]=s;if(!s&&n&&!n.isDirectory()){i.cache[e]="FILE";t()}else i._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=w("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!_(this.symlinks,e))return this._readdirInGlobStar(e,r);if(_(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(i,n){if(i)e._readdirError(t,i,r);else e._readdirEntries(t,n,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<t.length;i++){var n=t[i];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(e);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,i,n,s,o){var c=this;this._readdir(r,s,(function(h,p){c._processGlobStar2(e,t,r,i,n,s,p,o)}))};Glob.prototype._processGlobStar2=function(e,t,r,i,n,s,o,c){if(!o)return c();var h=i.slice(1);var p=e?[e]:[];var g=p.concat(h);this._process(g,n,false,c);var y=this.symlinks[r];var v=o.length;if(y&&s)return c();for(var b=0;b<v;b++){var _=o[b];if(_.charAt(0)==="."&&!this.dot)continue;var w=p.concat(o[b],h);this._process(w,n,true,c);var x=p.concat(o[b],i);this._process(x,n,true,c)}c()};Glob.prototype._processSimple=function(e,t,r){var i=this;this._stat(e,(function(n,s){i._processSimple2(e,t,n,s,r)}))};Glob.prototype._processSimple2=function(e,t,r,i,n){if(!this.matches[t])this.matches[t]=Object.create(null);if(!i)return n();if(e&&g(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=h.join(this.root,e)}else{e=h.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);n()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var i=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&_(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return t(null,n);if(i&&n==="FILE")return t()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return t(null,o);else{var c=o.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return t();else return t(null,c,o)}}var h=this;var p=w("stat\0"+r,lstatcb_);if(p)h.fs.lstat(r,p);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return h.fs.stat(r,(function(i,s){if(i)h._stat2(e,r,null,n,t);else h._stat2(e,r,i,s,t)}))}else{h._stat2(e,r,i,n,t)}}};Glob.prototype._stat2=function(e,t,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return n()}var s=e.slice(-1)==="/";this.statCache[t]=i;if(t.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var o=true;if(i)o=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(s&&o==="FILE")return n();return n(null,o,i)}},9521:function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var i=r(1931);var n=r(6274);var s=n.Minimatch;var o=r(4908).Glob;var c=r(9023);var h=r(6928);var p=r(2613);var g=r(2106);var y=r(8959);var v=y.setopts;var b=y.ownProp;var _=y.childrenIgnored;var w=y.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);v(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){p.ok(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach((function(t,r){var n=e.matches[r]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var o=i.realpathSync(s,e.realpathCache);n[o]=true}catch(t){if(t.syscall==="stat")n[e._makeAbs(s)]=true;else throw t}}}))}y.finish(this)};GlobSync.prototype._process=function(e,t,r){p.ok(this instanceof GlobSync);var i=0;while(typeof e[i]==="string"){i++}var s;switch(i){case e.length:this._processSimple(e.join("/"),t);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var o=e.slice(i);var c;if(s===null)c=".";else if(g(s)||g(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!s||!g(s))s="/"+s;c=s}else c=s;var h=this._makeAbs(c);if(_(this,c))return;var y=o[0]===n.GLOBSTAR;if(y)this._processGlobStar(s,c,h,o,t,r);else this._processReaddir(s,c,h,o,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,i,n,s){var o=this._readdir(r,s);if(!o)return;var c=i[0];var p=!!this.minimatch.negate;var g=c._glob;var y=this.dot||g.charAt(0)===".";var v=[];for(var b=0;b<o.length;b++){var _=o[b];if(_.charAt(0)!=="."||y){var w;if(p&&!e){w=!_.match(c)}else{w=_.match(c)}if(w)v.push(_)}}var x=v.length;if(x===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var b=0;b<x;b++){var _=v[b];if(e){if(e.slice(-1)!=="/")_=e+"/"+_;else _=e+_}if(_.charAt(0)==="/"&&!this.nomount){_=h.join(this.root,_)}this._emitMatch(n,_)}return}i.shift();for(var b=0;b<x;b++){var _=v[b];var S;if(e)S=[e,_];else S=[_];this._process(S.concat(i),n,s)}};GlobSync.prototype._emitMatch=function(e,t){if(w(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var i;try{r=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var n=r&&r.isSymbolicLink();this.symlinks[e]=n;if(!n&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!b(this.symlinks,e))return this._readdirInGlobStar(e);if(b(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var i=t[r];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,i,n,s){var o=this._readdir(r,s);if(!o)return;var c=i.slice(1);var h=e?[e]:[];var p=h.concat(c);this._process(p,n,false);var g=o.length;var y=this.symlinks[r];if(y&&s)return;for(var v=0;v<g;v++){var b=o[v];if(b.charAt(0)==="."&&!this.dot)continue;var _=h.concat(o[v],c);this._process(_,n,true);var w=h.concat(o[v],i);this._process(w,n,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&g(e)&&!this.nomount){var i=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=h.join(this.root,e)}else{e=h.resolve(this.root,e);if(i)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&b(this.cache,t)){var i=this.cache[t];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var s=this.statCache[t];if(!s){var o;try{o=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(o&&o.isSymbolicLink()){try{s=this.fs.statSync(t)}catch(e){s=o}}else{s=o}}this.statCache[t]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return y.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return y.makeAbs(this,e)}},1403:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7551:function(e,t,r){var i=r(9896);var n=r(4538);var s=r(2611);var o=r(1403);var c=r(9023);var h;var p;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){h=Symbol.for("graceful-fs.queue");p=Symbol.for("graceful-fs.previous")}else{h="___graceful-fs.queue";p="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,h,{get:function(){return t}})}var g=noop;if(c.debuglog)g=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))g=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!i[h]){var y=global[h]||[];publishQueue(i,y);i.close=function(e){function close(t,r){return e.call(i,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,p,{value:e});return close}(i.close);i.closeSync=function(e){function closeSync(t){e.apply(i,arguments);resetQueue()}Object.defineProperty(closeSync,p,{value:e});return closeSync}(i.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){g(i[h]);r(2613).equal(i[h].length,0)}))}}if(!global[h]){publishQueue(global,i[h])}e.exports=patch(o(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){e.exports=patch(i);i.__patched=true}function patch(e){n(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,i){if(typeof r==="function")i=r,r=null;return go$readFile(e,r,i);function go$readFile(e,r,i,n){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,i],t,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,i,n){if(typeof i==="function")n=i,i=null;return go$writeFile(e,t,i,n);function go$writeFile(e,t,i,n,s){return r(e,t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,i,n],r,s||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var i=e.appendFile;if(i)e.appendFile=appendFile;function appendFile(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$appendFile(e,t,r,n);function go$appendFile(e,t,r,n,s){return i(e,t,r,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,n],i,s||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,t,r,i){if(typeof r==="function"){i=r;r=0}return go$copyFile(e,t,r,i);function go$copyFile(e,t,r,i,n){return o(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,i],s,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var c=e.readdir;e.readdir=readdir;var h=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var i=h.test(process.version)?function go$readdir(e,t,r,i){return c(e,fs$readdirCallback(e,t,r,i))}:function go$readdir(e,t,r,i){return c(e,t,fs$readdirCallback(e,t,r,i))};return i(e,t,r);function fs$readdirCallback(e,t,r,n){return function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([i,[e,t,r],s,n||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof r==="function")r.call(this,s,o)}}}}if(process.version.substr(0,4)==="v0.8"){var p=s(e);ReadStream=p.ReadStream;WriteStream=p.WriteStream}var g=e.ReadStream;if(g){ReadStream.prototype=Object.create(g.prototype);ReadStream.prototype.open=ReadStream$open}var y=e.WriteStream;if(y){WriteStream.prototype=Object.create(y.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var v=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:true,configurable:true});var b=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return b},set:function(e){b=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return g.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return y.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var _=e.open;e.open=open;function open(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$open(e,t,r,i);function go$open(e,t,r,i,n){return _(e,t,r,(function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,t,r,i],s,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}return e}function enqueue(e){g("ENQUEUE",e[0].name,e[1]);i[h].push(e);retry()}var v;function resetQueue(){var e=Date.now();for(var t=0;t<i[h].length;++t){if(i[h][t].length>2){i[h][t][3]=e;i[h][t][4]=e}}retry()}function retry(){clearTimeout(v);v=undefined;if(i[h].length===0)return;var e=i[h].shift();var t=e[0];var r=e[1];var n=e[2];var s=e[3];var o=e[4];if(s===undefined){g("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-s>=6e4){g("TIMEOUT",t.name,r);var c=r.pop();if(typeof c==="function")c.call(null,n)}else{var p=Date.now()-o;var y=Math.max(o-s,1);var b=Math.min(y*1.2,100);if(p>=b){g("RETRY",t.name,r);t.apply(null,r.concat([s]))}else{i[h].push(e)}}if(v===undefined){v=setTimeout(retry,0)}}},2611:function(e,t,r){var i=r(2203).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);i.call(this);var n=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var o=0,c=s.length;o<c;o++){var h=s[o];this[h]=r[h]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){n._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){n.emit("error",e);n.readable=false;return}n.fd=t;n.emit("open",t);n._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);i.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var n=Object.keys(r);for(var s=0,o=n.length;s<o;s++){var c=n[s];this[c]=r[c]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},4538:function(e,t,r){var i=r(9140);var n=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=n.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var c=process.chdir;process.chdir=function(e){s=null;c.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,c)}e.exports=patch;function patch(e){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,i){if(i)process.nextTick(i)};e.lchownSync=function(){}}if(o==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,i,n){var s=Date.now();var o=0;t(r,i,(function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM"||c.code==="EBUSY")&&Date.now()-s<6e4){setTimeout((function(){e.stat(i,(function(e,s){if(e&&e.code==="ENOENT")t(r,i,CB);else n(c)}))}),o);if(o<100)o+=10;return}if(n)n(c)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,i,n,s,o,c){var h;if(c&&typeof c==="function"){var p=0;h=function(g,y,v){if(g&&g.code==="EAGAIN"&&p<10){p++;return t.call(e,r,i,n,s,o,h)}c.apply(this,arguments)}}return t.call(e,r,i,n,s,o,h)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,i,n,s,o){var c=0;while(true){try{return t.call(e,r,i,n,s,o)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,n){e.open(t,i.O_WRONLY|i.O_SYMLINK,r,(function(t,i){if(t){if(n)n(t);return}e.fchmod(i,r,(function(t){e.close(i,(function(e){if(n)n(t||e)}))}))}))};e.lchmodSync=function(t,r){var n=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,r);var s=true;var o;try{o=e.fchmodSync(n,r);s=false}finally{if(s){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return o}}function patchLutimes(e){if(i.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,n,s){e.open(t,i.O_SYMLINK,(function(t,i){if(t){if(s)s(t);return}e.futimes(i,r,n,(function(t){e.close(i,(function(e){if(s)s(t||e)}))}))}))};e.lutimesSync=function(t,r,n){var s=e.openSync(t,i.O_SYMLINK);var o;var c=true;try{o=e.futimesSync(s,r,n);c=false}finally{if(c){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else if(e.futimes){e.lutimes=function(e,t,r,i){if(i)process.nextTick(i)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,i,n){return t.call(e,r,i,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,i){try{return t.call(e,r,i)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,i,n,s){return t.call(e,r,i,n,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,i,n){try{return t.call(e,r,i,n)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,i,n){if(typeof i==="function"){n=i;i=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(n)n.apply(this,arguments)}return i?t.call(e,r,i,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,i){var n=i?t.call(e,r,i):t.call(e,r);if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}return n}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},209:function(e){"use strict";var t=global.MutationObserver||global.WebKitMutationObserver;var r;if(process.browser){if(t){var i=0;var n=new t(nextTick);var s=global.document.createTextNode("");n.observe(s,{characterData:true});r=function(){s.data=i=++i%2}}else if(!global.setImmediate&&typeof global.MessageChannel!=="undefined"){var o=new global.MessageChannel;o.port1.onmessage=nextTick;r=function(){o.port2.postMessage(0)}}else if("document"in global&&"onreadystatechange"in global.document.createElement("script")){r=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){nextTick();e.onreadystatechange=null;e.parentNode.removeChild(e);e=null};global.document.documentElement.appendChild(e)}}else{r=function(){setTimeout(nextTick,0)}}}else{r=function(){process.nextTick(nextTick)}}var c;var h=[];function nextTick(){c=true;var e,t;var r=h.length;while(r){t=h;h=[];e=-1;while(++e<r){t[e]()}r=h.length}c=false}e.exports=immediate;function immediate(e){if(h.push(e)===1&&!c){r()}}},5678:function(e,t,r){var i=r(8092);var n=Object.create(null);var s=r(8068);e.exports=i(inflight);function inflight(e,t){if(n[e]){n[e].push(t);return null}else{n[e]=[t];return makeres(e)}}function makeres(e){return s((function RES(){var t=n[e];var r=t.length;var i=slice(arguments);try{for(var s=0;s<r;s++){t[s].apply(null,i)}}finally{if(t.length>r){t.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[e]}}}))}function slice(e){var t=e.length;var r=[];for(var i=0;i<t;i++)r[i]=e[i];return r}},4070:function(e,t,r){try{var i=r(9023);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(6005)}},6005:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},4057:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},1530:function(e,t,r){"use strict";var i=r(6136);var n=r(9078);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){var t=[];var r,n,o,c,h,p,g;var y=0,v=e.length,b=v;var _=i.getTypeOf(e)!=="string";while(y<e.length){b=v-y;if(!_){r=e.charCodeAt(y++);n=y<v?e.charCodeAt(y++):0;o=y<v?e.charCodeAt(y++):0}else{r=e[y++];n=y<v?e[y++]:0;o=y<v?e[y++]:0}c=r>>2;h=(r&3)<<4|n>>4;p=b>1?(n&15)<<2|o>>6:64;g=b>2?o&63:64;t.push(s.charAt(c)+s.charAt(h)+s.charAt(p)+s.charAt(g))}return t.join("")};t.decode=function(e){var t,r,i;var o,c,h,p;var g=0,y=0;var v="data:";if(e.substr(0,v.length)===v){throw new Error("Invalid base64 input, it looks like a data url.")}e=e.replace(/[^A-Za-z0-9+/=]/g,"");var b=e.length*3/4;if(e.charAt(e.length-1)===s.charAt(64)){b--}if(e.charAt(e.length-2)===s.charAt(64)){b--}if(b%1!==0){throw new Error("Invalid base64 input, bad content length.")}var _;if(n.uint8array){_=new Uint8Array(b|0)}else{_=new Array(b|0)}while(g<e.length){o=s.indexOf(e.charAt(g++));c=s.indexOf(e.charAt(g++));h=s.indexOf(e.charAt(g++));p=s.indexOf(e.charAt(g++));t=o<<2|c>>4;r=(c&15)<<4|h>>2;i=(h&3)<<6|p;_[y++]=t;if(h!==64){_[y++]=r}if(p!==64){_[y++]=i}}return _}},5651:function(e,t,r){"use strict";var i=r(9070);var n=r(3922);var s=r(5075);var o=r(7412);function CompressedObject(e,t,r,i,n){this.compressedSize=e;this.uncompressedSize=t;this.crc32=r;this.compression=i;this.compressedContent=n}CompressedObject.prototype={getContentWorker:function(){var e=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length"));var t=this;e.on("end",(function(){if(this.streamInfo["data_length"]!==t.uncompressedSize){throw new Error("Bug : uncompressed data size mismatch")}}));return e},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};CompressedObject.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new o("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",t)};e.exports=CompressedObject},8890:function(e,t,r){"use strict";var i=r(8181);t.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}};t.DEFLATE=r(1883)},6486:function(e,t,r){"use strict";var i=r(6136);function makeTable(){var e,t=[];for(var r=0;r<256;r++){e=r;for(var i=0;i<8;i++){e=e&1?3988292384^e>>>1:e>>>1}t[r]=e}return t}var n=makeTable();function crc32(e,t,r,i){var s=n,o=i+r;e=e^-1;for(var c=i;c<o;c++){e=e>>>8^s[(e^t[c])&255]}return e^-1}function crc32str(e,t,r,i){var s=n,o=i+r;e=e^-1;for(var c=i;c<o;c++){e=e>>>8^s[(e^t.charCodeAt(c))&255]}return e^-1}e.exports=function crc32wrapper(e,t){if(typeof e==="undefined"||!e.length){return 0}var r=i.getTypeOf(e)!=="string";if(r){return crc32(t|0,e,e.length,0)}else{return crc32str(t|0,e,e.length,0)}}},7415:function(e,t){"use strict";t.base64=false;t.binary=false;t.dir=false;t.createFolders=true;t.date=null;t.compression=null;t.compressionOptions=null;t.comment=null;t.unixPermissions=null;t.dosPermissions=null},9070:function(e,t,r){"use strict";var i=null;if(typeof Promise!=="undefined"){i=Promise}else{i=r(6022)}e.exports={Promise:i}},1883:function(e,t,r){"use strict";var i=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Uint32Array!=="undefined";var n=r(2719);var s=r(6136);var o=r(8181);var c=i?"uint8array":"array";t.magic="\b\0";function FlateWorker(e,t){o.call(this,"FlateWorker/"+e);this._pako=null;this._pakoAction=e;this._pakoOptions=t;this.meta={}}s.inherits(FlateWorker,o);FlateWorker.prototype.processChunk=function(e){this.meta=e.meta;if(this._pako===null){this._createPako()}this._pako.push(s.transformTo(c,e.data),false)};FlateWorker.prototype.flush=function(){o.prototype.flush.call(this);if(this._pako===null){this._createPako()}this._pako.push([],true)};FlateWorker.prototype.cleanUp=function(){o.prototype.cleanUp.call(this);this._pako=null};FlateWorker.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:true,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};t.compressWorker=function(e){return new FlateWorker("Deflate",e)};t.uncompressWorker=function(){return new FlateWorker("Inflate",{})}},3670:function(e,t,r){"use strict";var i=r(6136);var n=r(8181);var s=r(3442);var o=r(6486);var c=r(4771);var decToHex=function(e,t){var r="",i;for(i=0;i<t;i++){r+=String.fromCharCode(e&255);e=e>>>8}return r};var generateUnixExternalFileAttr=function(e,t){var r=e;if(!e){r=t?16893:33204}return(r&65535)<<16};var generateDosExternalFileAttr=function(e){return(e||0)&63};var generateZipParts=function(e,t,r,n,h,p){var g=e["file"],y=e["compression"],v=p!==s.utf8encode,b=i.transformTo("string",p(g.name)),_=i.transformTo("string",s.utf8encode(g.name)),w=g.comment,x=i.transformTo("string",p(w)),S=i.transformTo("string",s.utf8encode(w)),k=_.length!==g.name.length,C=S.length!==w.length,E,R,O="",A="",I="",P=g.dir,N=g.date;var F={crc32:0,compressedSize:0,uncompressedSize:0};if(!t||r){F.crc32=e["crc32"];F.compressedSize=e["compressedSize"];F.uncompressedSize=e["uncompressedSize"]}var D=0;if(t){D|=8}if(!v&&(k||C)){D|=2048}var L=0;var B=0;if(P){L|=16}if(h==="UNIX"){B=798;L|=generateUnixExternalFileAttr(g.unixPermissions,P)}else{B=20;L|=generateDosExternalFileAttr(g.dosPermissions,P)}E=N.getUTCHours();E=E<<6;E=E|N.getUTCMinutes();E=E<<5;E=E|N.getUTCSeconds()/2;R=N.getUTCFullYear()-1980;R=R<<4;R=R|N.getUTCMonth()+1;R=R<<5;R=R|N.getUTCDate();if(k){A=decToHex(1,1)+decToHex(o(b),4)+_;O+="up"+decToHex(A.length,2)+A}if(C){I=decToHex(1,1)+decToHex(o(x),4)+S;O+="uc"+decToHex(I.length,2)+I}var M="";M+="\n\0";M+=decToHex(D,2);M+=y.magic;M+=decToHex(E,2);M+=decToHex(R,2);M+=decToHex(F.crc32,4);M+=decToHex(F.compressedSize,4);M+=decToHex(F.uncompressedSize,4);M+=decToHex(b.length,2);M+=decToHex(O.length,2);var j=c.LOCAL_FILE_HEADER+M+b+O;var z=c.CENTRAL_FILE_HEADER+decToHex(B,2)+M+decToHex(x.length,2)+"\0\0"+"\0\0"+decToHex(L,4)+decToHex(n,4)+b+O+x;return{fileRecord:j,dirRecord:z}};var generateCentralDirectoryEnd=function(e,t,r,n,s){var o="";var h=i.transformTo("string",s(n));o=c.CENTRAL_DIRECTORY_END+"\0\0"+"\0\0"+decToHex(e,2)+decToHex(e,2)+decToHex(t,4)+decToHex(r,4)+decToHex(h.length,2)+h;return o};var generateDataDescriptors=function(e){var t="";t=c.DATA_DESCRIPTOR+decToHex(e["crc32"],4)+decToHex(e["compressedSize"],4)+decToHex(e["uncompressedSize"],4);return t};function ZipFileWorker(e,t,r,i){n.call(this,"ZipFileWorker");this.bytesWritten=0;this.zipComment=t;this.zipPlatform=r;this.encodeFileName=i;this.streamFiles=e;this.accumulate=false;this.contentBuffer=[];this.dirRecords=[];this.currentSourceOffset=0;this.entriesCount=0;this.currentFile=null;this._sources=[]}i.inherits(ZipFileWorker,n);ZipFileWorker.prototype.push=function(e){var t=e.meta.percent||0;var r=this.entriesCount;var i=this._sources.length;if(this.accumulate){this.contentBuffer.push(e)}else{this.bytesWritten+=e.data.length;n.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}})}};ZipFileWorker.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten;this.currentFile=e["file"].name;var t=this.streamFiles&&!e["file"].dir;if(t){var r=generateZipParts(e,t,false,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else{this.accumulate=true}};ZipFileWorker.prototype.closedSource=function(e){this.accumulate=false;var t=this.streamFiles&&!e["file"].dir;var r=generateZipParts(e,t,true,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.dirRecords.push(r.dirRecord);if(t){this.push({data:generateDataDescriptors(e),meta:{percent:100}})}else{this.push({data:r.fileRecord,meta:{percent:0}});while(this.contentBuffer.length){this.push(this.contentBuffer.shift())}}this.currentFile=null};ZipFileWorker.prototype.flush=function(){var e=this.bytesWritten;for(var t=0;t<this.dirRecords.length;t++){this.push({data:this.dirRecords[t],meta:{percent:100}})}var r=this.bytesWritten-e;var i=generateCentralDirectoryEnd(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};ZipFileWorker.prototype.prepareNextSource=function(){this.previous=this._sources.shift();this.openedSource(this.previous.streamInfo);if(this.isPaused){this.previous.pause()}else{this.previous.resume()}};ZipFileWorker.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;e.on("data",(function(e){t.processChunk(e)}));e.on("end",(function(){t.closedSource(t.previous.streamInfo);if(t._sources.length){t.prepareNextSource()}else{t.end()}}));e.on("error",(function(e){t.error(e)}));return this};ZipFileWorker.prototype.resume=function(){if(!n.prototype.resume.call(this)){return false}if(!this.previous&&this._sources.length){this.prepareNextSource();return true}if(!this.previous&&!this._sources.length&&!this.generatedError){this.end();return true}};ZipFileWorker.prototype.error=function(e){var t=this._sources;if(!n.prototype.error.call(this,e)){return false}for(var r=0;r<t.length;r++){try{t[r].error(e)}catch(e){}}return true};ZipFileWorker.prototype.lock=function(){n.prototype.lock.call(this);var e=this._sources;for(var t=0;t<e.length;t++){e[t].lock()}};e.exports=ZipFileWorker},6737:function(e,t,r){"use strict";var i=r(8890);var n=r(3670);var getCompression=function(e,t){var r=e||t;var n=i[r];if(!n){throw new Error(r+" is not a valid compression method !")}return n};t.generateWorker=function(e,t,r){var i=new n(t.streamFiles,r,t.platform,t.encodeFileName);var s=0;try{e.forEach((function(e,r){s++;var n=getCompression(r.options.compression,t.compression);var o=r.options.compressionOptions||t.compressionOptions||{};var c=r.dir,h=r.date;r._compressWorker(n,o).withStreamInfo("file",{name:e,dir:c,date:h,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)}));i.entriesCount=s}catch(e){i.error(e)}return i}},5485:function(e,t,r){"use strict";function JSZip(){if(!(this instanceof JSZip)){return new JSZip}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=new JSZip;for(var t in this){if(typeof this[t]!=="function"){e[t]=this[t]}}return e}}JSZip.prototype=r(4574);JSZip.prototype.loadAsync=r(3366);JSZip.support=r(9078);JSZip.defaults=r(7415);JSZip.version="3.10.1";JSZip.loadAsync=function(e,t){return(new JSZip).loadAsync(e,t)};JSZip.external=r(9070);e.exports=JSZip},3366:function(e,t,r){"use strict";var i=r(6136);var n=r(9070);var s=r(3442);var o=r(152);var c=r(5075);var h=r(7789);function checkEntryCRC32(e){return new n.Promise((function(t,r){var i=e.decompressed.getContentWorker().pipe(new c);i.on("error",(function(e){r(e)})).on("end",(function(){if(i.streamInfo.crc32!==e.decompressed.crc32){r(new Error("Corrupted zip : CRC32 mismatch"))}else{t()}})).resume()}))}e.exports=function(e,t){var r=this;t=i.extend(t||{},{base64:false,checkCRC32:false,optimizedBinaryString:false,createFolders:false,decodeFileName:s.utf8decode});if(h.isNode&&h.isStream(e)){return n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file."))}return i.prepareContent("the loaded zip file",e,true,t.optimizedBinaryString,t.base64).then((function(e){var r=new o(t);r.load(e);return r})).then((function checkCRC32(e){var r=[n.Promise.resolve(e)];var i=e.files;if(t.checkCRC32){for(var s=0;s<i.length;s++){r.push(checkEntryCRC32(i[s]))}}return n.Promise.all(r)})).then((function addFiles(e){var n=e.shift();var s=n.files;for(var o=0;o<s.length;o++){var c=s[o];var h=c.fileNameStr;var p=i.resolve(c.fileNameStr);r.file(p,c.decompressed,{binary:true,optimizedBinaryString:true,date:c.date,dir:c.dir,comment:c.fileCommentStr.length?c.fileCommentStr:null,unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions,createFolders:t.createFolders});if(!c.dir){r.file(p).unsafeOriginalName=h}}if(n.zipComment.length){r.comment=n.zipComment}return r}))}},3597:function(e,t,r){"use strict";var i=r(6136);var n=r(8181);function NodejsStreamInputAdapter(e,t){n.call(this,"Nodejs stream input adapter for "+e);this._upstreamEnded=false;this._bindStream(t)}i.inherits(NodejsStreamInputAdapter,n);NodejsStreamInputAdapter.prototype._bindStream=function(e){var t=this;this._stream=e;e.pause();e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){if(t.isPaused){this.generatedError=e}else{t.error(e)}})).on("end",(function(){if(t.isPaused){t._upstreamEnded=true}else{t.end()}}))};NodejsStreamInputAdapter.prototype.pause=function(){if(!n.prototype.pause.call(this)){return false}this._stream.pause();return true};NodejsStreamInputAdapter.prototype.resume=function(){if(!n.prototype.resume.call(this)){return false}if(this._upstreamEnded){this.end()}else{this._stream.resume()}return true};e.exports=NodejsStreamInputAdapter},5440:function(e,t,r){"use strict";var i=r(1397).Readable;var n=r(6136);n.inherits(NodejsStreamOutputAdapter,i);function NodejsStreamOutputAdapter(e,t,r){i.call(this,t);this._helper=e;var n=this;e.on("data",(function(e,t){if(!n.push(e)){n._helper.pause()}if(r){r(t)}})).on("error",(function(e){n.emit("error",e)})).on("end",(function(){n.push(null)}))}NodejsStreamOutputAdapter.prototype._read=function(){this._helper.resume()};e.exports=NodejsStreamOutputAdapter},7789:function(e){"use strict";e.exports={isNode:typeof Buffer!=="undefined",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from){return Buffer.from(e,t)}else{if(typeof e==="number"){throw new Error('The "data" argument must not be a number')}return new Buffer(e,t)}},allocBuffer:function(e){if(Buffer.alloc){return Buffer.alloc(e)}else{var t=new Buffer(e);t.fill(0);return t}},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==="function"&&typeof e.pause==="function"&&typeof e.resume==="function"}}},4574:function(e,t,r){"use strict";var i=r(3442);var n=r(6136);var s=r(8181);var o=r(1388);var c=r(7415);var h=r(5651);var p=r(9773);var g=r(6737);var y=r(7789);var v=r(3597);var fileAdd=function(e,t,r){var i=n.getTypeOf(t),o;var g=n.extend(r||{},c);g.date=g.date||new Date;if(g.compression!==null){g.compression=g.compression.toUpperCase()}if(typeof g.unixPermissions==="string"){g.unixPermissions=parseInt(g.unixPermissions,8)}if(g.unixPermissions&&g.unixPermissions&16384){g.dir=true}if(g.dosPermissions&&g.dosPermissions&16){g.dir=true}if(g.dir){e=forceTrailingSlash(e)}if(g.createFolders&&(o=parentFolder(e))){folderAdd.call(this,o,true)}var b=i==="string"&&g.binary===false&&g.base64===false;if(!r||typeof r.binary==="undefined"){g.binary=!b}var _=t instanceof h&&t.uncompressedSize===0;if(_||g.dir||!t||t.length===0){g.base64=false;g.binary=true;t="";g.compression="STORE";i="string"}var w=null;if(t instanceof h||t instanceof s){w=t}else if(y.isNode&&y.isStream(t)){w=new v(e,t)}else{w=n.prepareContent(e,t,g.binary,g.optimizedBinaryString,g.base64)}var x=new p(e,w,g);this.files[e]=x};var parentFolder=function(e){if(e.slice(-1)==="/"){e=e.substring(0,e.length-1)}var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""};var forceTrailingSlash=function(e){if(e.slice(-1)!=="/"){e+="/"}return e};var folderAdd=function(e,t){t=typeof t!=="undefined"?t:c.createFolders;e=forceTrailingSlash(e);if(!this.files[e]){fileAdd.call(this,e,null,{dir:true,createFolders:t})}return this.files[e]};function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var b={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,i;for(t in this.files){i=this.files[t];r=t.slice(this.root.length,t.length);if(r&&t.slice(0,this.root.length)===this.root){e(r,i)}}},filter:function(e){var t=[];this.forEach((function(r,i){if(e(r,i)){t.push(i)}}));return t},file:function(e,t,r){if(arguments.length===1){if(isRegExp(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}else{var n=this.files[this.root+e];if(n&&!n.dir){return n}else{return null}}}else{e=this.root+e;fileAdd.call(this,e,t,r)}return this},folder:function(e){if(!e){return this}if(isRegExp(e)){return this.filter((function(t,r){return r.dir&&e.test(t)}))}var t=this.root+e;var r=folderAdd.call(this,t);var i=this.clone();i.root=r.name;return i},remove:function(e){e=this.root+e;var t=this.files[e];if(!t){if(e.slice(-1)!=="/"){e+="/"}t=this.files[e]}if(t&&!t.dir){delete this.files[e]}else{var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e}));for(var i=0;i<r.length;i++){delete this.files[r[i].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,r={};try{r=n.extend(e||{},{streamFiles:false,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode});r.type=r.type.toLowerCase();r.compression=r.compression.toUpperCase();if(r.type==="binarystring"){r.type="string"}if(!r.type){throw new Error("No output type specified.")}n.checkSupport(r.type);if(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos"){r.platform="UNIX"}if(r.platform==="win32"){r.platform="DOS"}var c=r.comment||this.comment||"";t=g.generateWorker(this,r,c)}catch(e){t=new s("error");t.error(e)}return new o(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){e=e||{};if(!e.type){e.type="nodebuffer"}return this.generateInternalStream(e).toNodejsStream(t)}};e.exports=b},6155:function(e,t,r){"use strict";var i=r(6542);var n=r(6136);function ArrayReader(e){i.call(this,e);for(var t=0;t<this.data.length;t++){e[t]=e[t]&255}}n.inherits(ArrayReader,i);ArrayReader.prototype.byteAt=function(e){return this.data[this.zero+e]};ArrayReader.prototype.lastIndexOfSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3);for(var s=this.length-4;s>=0;--s){if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===n){return s-this.zero}}return-1};ArrayReader.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&i===s[2]&&n===s[3]};ArrayReader.prototype.readData=function(e){this.checkOffset(e);if(e===0){return[]}var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);this.index+=e;return t};e.exports=ArrayReader},6542:function(e,t,r){"use strict";var i=r(6136);function DataReader(e){this.data=e;this.length=e.length;this.index=0;this.zero=0}DataReader.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=0,r;this.checkOffset(e);for(r=this.index+e-1;r>=this.index;r--){t=(t<<8)+this.byteAt(r)}this.index+=e;return t},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};e.exports=DataReader},1728:function(e,t,r){"use strict";var i=r(8523);var n=r(6136);function NodeBufferReader(e){i.call(this,e)}n.inherits(NodeBufferReader,i);NodeBufferReader.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);this.index+=e;return t};e.exports=NodeBufferReader},6339:function(e,t,r){"use strict";var i=r(6542);var n=r(6136);function StringReader(e){i.call(this,e)}n.inherits(StringReader,i);StringReader.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};StringReader.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};StringReader.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};StringReader.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);this.index+=e;return t};e.exports=StringReader},8523:function(e,t,r){"use strict";var i=r(6155);var n=r(6136);function Uint8ArrayReader(e){i.call(this,e)}n.inherits(Uint8ArrayReader,i);Uint8ArrayReader.prototype.readData=function(e){this.checkOffset(e);if(e===0){return new Uint8Array(0)}var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);this.index+=e;return t};e.exports=Uint8ArrayReader},4815:function(e,t,r){"use strict";var i=r(6136);var n=r(9078);var s=r(6155);var o=r(6339);var c=r(1728);var h=r(8523);e.exports=function(e){var t=i.getTypeOf(e);i.checkSupport(t);if(t==="string"&&!n.uint8array){return new o(e)}if(t==="nodebuffer"){return new c(e)}if(n.uint8array){return new h(i.transformTo("uint8array",e))}return new s(i.transformTo("array",e))}},4771:function(e,t){"use strict";t.LOCAL_FILE_HEADER="PK";t.CENTRAL_FILE_HEADER="PK";t.CENTRAL_DIRECTORY_END="PK";t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK";t.ZIP64_CENTRAL_DIRECTORY_END="PK";t.DATA_DESCRIPTOR="PK\b"},7031:function(e,t,r){"use strict";var i=r(8181);var n=r(6136);function ConvertWorker(e){i.call(this,"ConvertWorker to "+e);this.destType=e}n.inherits(ConvertWorker,i);ConvertWorker.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})};e.exports=ConvertWorker},5075:function(e,t,r){"use strict";var i=r(8181);var n=r(6486);var s=r(6136);function Crc32Probe(){i.call(this,"Crc32Probe");this.withStreamInfo("crc32",0)}s.inherits(Crc32Probe,i);Crc32Probe.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0);this.push(e)};e.exports=Crc32Probe},7412:function(e,t,r){"use strict";var i=r(6136);var n=r(8181);function DataLengthProbe(e){n.call(this,"DataLengthProbe for "+e);this.propName=e;this.withStreamInfo(e,0)}i.inherits(DataLengthProbe,n);DataLengthProbe.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}n.prototype.processChunk.call(this,e)};e.exports=DataLengthProbe},3922:function(e,t,r){"use strict";var i=r(6136);var n=r(8181);var s=16*1024;function DataWorker(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=false;this.index=0;this.max=0;this.data=null;this.type="";this._tickScheduled=false;e.then((function(e){t.dataIsReady=true;t.data=e;t.max=e&&e.length||0;t.type=i.getTypeOf(e);if(!t.isPaused){t._tickAndRepeat()}}),(function(e){t.error(e)}))}i.inherits(DataWorker,n);DataWorker.prototype.cleanUp=function(){n.prototype.cleanUp.call(this);this.data=null};DataWorker.prototype.resume=function(){if(!n.prototype.resume.call(this)){return false}if(!this._tickScheduled&&this.dataIsReady){this._tickScheduled=true;i.delay(this._tickAndRepeat,[],this)}return true};DataWorker.prototype._tickAndRepeat=function(){this._tickScheduled=false;if(this.isPaused||this.isFinished){return}this._tick();if(!this.isFinished){i.delay(this._tickAndRepeat,[],this);this._tickScheduled=true}};DataWorker.prototype._tick=function(){if(this.isPaused||this.isFinished){return false}var e=s;var t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max){return this.end()}else{switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}this.index=r;return this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})}};e.exports=DataWorker},8181:function(e){"use strict";function GenericWorker(e){this.name=e||"default";this.streamInfo={};this.generatedError=null;this.extraStreamInfo={};this.isPaused=true;this.isFinished=false;this.isLocked=false;this._listeners={data:[],end:[],error:[]};this.previous=null}GenericWorker.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished){return false}this.flush();try{this.emit("end");this.cleanUp();this.isFinished=true}catch(e){this.emit("error",e)}return true},error:function(e){if(this.isFinished){return false}if(this.isPaused){this.generatedError=e}else{this.isFinished=true;this.emit("error",e);if(this.previous){this.previous.error(e)}this.cleanUp()}return true},on:function(e,t){this._listeners[e].push(t);return 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;e.on("data",(function(e){t.processChunk(e)}));e.on("end",(function(){t.end()}));e.on("error",(function(e){t.error(e)}));return this},pause:function(){if(this.isPaused||this.isFinished){return false}this.isPaused=true;if(this.previous){this.previous.pause()}return true},resume:function(){if(!this.isPaused||this.isFinished){return false}this.isPaused=false;var e=false;if(this.generatedError){this.error(this.generatedError);e=true}if(this.previous){this.previous.resume()}return!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){this.extraStreamInfo[e]=t;this.mergeStreamInfo();return this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)){continue}this.streamInfo[e]=this.extraStreamInfo[e]}},lock:function(){if(this.isLocked){throw new Error("The stream '"+this+"' has already been used.")}this.isLocked=true;if(this.previous){this.previous.lock()}},toString:function(){var e="Worker "+this.name;if(this.previous){return this.previous+" -> "+e}else{return e}}};e.exports=GenericWorker},1388:function(e,t,r){"use strict";var i=r(6136);var n=r(7031);var s=r(8181);var o=r(1530);var c=r(9078);var h=r(9070);var p=null;if(c.nodestream){try{p=r(5440)}catch(e){}}function transformZipOutput(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}function concat(e,t){var r,i=0,n=null,s=0;for(r=0;r<t.length;r++){s+=t[r].length}switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":n=new Uint8Array(s);for(r=0;r<t.length;r++){n.set(t[r],i);i+=t[r].length}return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function accumulate(e,t){return new h.Promise((function(r,i){var n=[];var s=e._internalType,o=e._outputType,c=e._mimeType;e.on("data",(function(e,r){n.push(e);if(t){t(r)}})).on("error",(function(e){n=[];i(e)})).on("end",(function(){try{var e=transformZipOutput(o,concat(s,n),c);r(e)}catch(e){i(e)}n=[]})).resume()}))}function StreamHelper(e,t,r){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string";break}try{this._internalType=o;this._outputType=t;this._mimeType=r;i.checkSupport(o);this._worker=e.pipe(new n(o));e.lock()}catch(e){this._worker=new s("error");this._worker.error(e)}}StreamHelper.prototype={accumulate:function(e){return accumulate(this,e)},on:function(e,t){var r=this;if(e==="data"){this._worker.on(e,(function(e){t.call(r,e.data,e.meta)}))}else{this._worker.on(e,(function(){i.delay(t,arguments,r)}))}return this},resume:function(){i.delay(this._worker.resume,[],this._worker);return this},pause:function(){this._worker.pause();return this},toNodejsStream:function(e){i.checkSupport("nodestream");if(this._outputType!=="nodebuffer"){throw new Error(this._outputType+" is not supported by this method")}return new p(this,{objectMode:this._outputType!=="nodebuffer"},e)}};e.exports=StreamHelper},9078:function(e,t,r){"use strict";t.base64=true;t.array=true;t.string=true;t.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";t.nodebuffer=typeof Buffer!=="undefined";t.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined"){t.blob=false}else{var i=new ArrayBuffer(0);try{t.blob=new Blob([i],{type:"application/zip"}).size===0}catch(e){try{var n=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder;var s=new n;s.append(i);t.blob=s.getBlob("application/zip").size===0}catch(e){t.blob=false}}}try{t.nodestream=!!r(1397).Readable}catch(e){t.nodestream=false}},3442:function(e,t,r){"use strict";var i=r(6136);var n=r(9078);var s=r(7789);var o=r(8181);var c=new Array(256);for(var h=0;h<256;h++){c[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1}c[254]=c[254]=1;var string2buf=function(e){var t,r,i,s,o,c=e.length,h=0;for(s=0;s<c;s++){r=e.charCodeAt(s);if((r&64512)===55296&&s+1<c){i=e.charCodeAt(s+1);if((i&64512)===56320){r=65536+(r-55296<<10)+(i-56320);s++}}h+=r<128?1:r<2048?2:r<65536?3:4}if(n.uint8array){t=new Uint8Array(h)}else{t=new Array(h)}for(o=0,s=0;o<h;s++){r=e.charCodeAt(s);if((r&64512)===55296&&s+1<c){i=e.charCodeAt(s+1);if((i&64512)===56320){r=65536+(r-55296<<10)+(i-56320);s++}}if(r<128){t[o++]=r}else if(r<2048){t[o++]=192|r>>>6;t[o++]=128|r&63}else if(r<65536){t[o++]=224|r>>>12;t[o++]=128|r>>>6&63;t[o++]=128|r&63}else{t[o++]=240|r>>>18;t[o++]=128|r>>>12&63;t[o++]=128|r>>>6&63;t[o++]=128|r&63}}return t};var utf8border=function(e,t){var r;t=t||e.length;if(t>e.length){t=e.length}r=t-1;while(r>=0&&(e[r]&192)===128){r--}if(r<0){return t}if(r===0){return t}return r+c[e[r]]>t?r:t};var buf2string=function(e){var t,r,n,s;var o=e.length;var h=new Array(o*2);for(r=0,t=0;t<o;){n=e[t++];if(n<128){h[r++]=n;continue}s=c[n];if(s>4){h[r++]=65533;t+=s-1;continue}n&=s===2?31:s===3?15:7;while(s>1&&t<o){n=n<<6|e[t++]&63;s--}if(s>1){h[r++]=65533;continue}if(n<65536){h[r++]=n}else{n-=65536;h[r++]=55296|n>>10&1023;h[r++]=56320|n&1023}}if(h.length!==r){if(h.subarray){h=h.subarray(0,r)}else{h.length=r}}return i.applyFromCharCode(h)};t.utf8encode=function utf8encode(e){if(n.nodebuffer){return s.newBufferFrom(e,"utf-8")}return string2buf(e)};t.utf8decode=function utf8decode(e){if(n.nodebuffer){return i.transformTo("nodebuffer",e).toString("utf-8")}e=i.transformTo(n.uint8array?"uint8array":"array",e);return buf2string(e)};function Utf8DecodeWorker(){o.call(this,"utf-8 decode");this.leftOver=null}i.inherits(Utf8DecodeWorker,o);Utf8DecodeWorker.prototype.processChunk=function(e){var r=i.transformTo(n.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var s=r;r=new Uint8Array(s.length+this.leftOver.length);r.set(this.leftOver,0);r.set(s,this.leftOver.length)}else{r=this.leftOver.concat(r)}this.leftOver=null}var o=utf8border(r);var c=r;if(o!==r.length){if(n.uint8array){c=r.subarray(0,o);this.leftOver=r.subarray(o,r.length)}else{c=r.slice(0,o);this.leftOver=r.slice(o,r.length)}}this.push({data:t.utf8decode(c),meta:e.meta})};Utf8DecodeWorker.prototype.flush=function(){if(this.leftOver&&this.leftOver.length){this.push({data:t.utf8decode(this.leftOver),meta:{}});this.leftOver=null}};t.Utf8DecodeWorker=Utf8DecodeWorker;function Utf8EncodeWorker(){o.call(this,"utf-8 encode")}i.inherits(Utf8EncodeWorker,o);Utf8EncodeWorker.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})};t.Utf8EncodeWorker=Utf8EncodeWorker},6136:function(e,t,r){"use strict";var i=r(9078);var n=r(1530);var s=r(7789);var o=r(9070);r(1093);function string2binary(e){var t=null;if(i.uint8array){t=new Uint8Array(e.length)}else{t=new Array(e.length)}return stringToArrayLike(e,t)}t.newBlob=function(e,r){t.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var i=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder;var n=new i;n.append(e);return n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};function identity(e){return e}function stringToArrayLike(e,t){for(var r=0;r<e.length;++r){t[r]=e.charCodeAt(r)&255}return t}var c={stringifyByChunk:function(e,t,r){var i=[],n=0,s=e.length;if(s<=r){return String.fromCharCode.apply(null,e)}while(n<s){if(t==="array"||t==="nodebuffer"){i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,s))))}else{i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,s))))}n+=r}return i.join("")},stringifyByChar:function(e){var t="";for(var r=0;r<e.length;r++){t+=String.fromCharCode(e[r])}return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(e){return false}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch(e){return false}}()}};function arrayLikeToString(e){var r=65536,i=t.getTypeOf(e),n=true;if(i==="uint8array"){n=c.applyCanBeUsed.uint8array}else if(i==="nodebuffer"){n=c.applyCanBeUsed.nodebuffer}if(n){while(r>1){try{return c.stringifyByChunk(e,i,r)}catch(e){r=Math.floor(r/2)}}}return c.stringifyByChar(e)}t.applyFromCharCode=arrayLikeToString;function arrayLikeToArrayLike(e,t){for(var r=0;r<e.length;r++){t[r]=e[r]}return t}var h={};h["string"]={string:identity,array:function(e){return stringToArrayLike(e,new Array(e.length))},arraybuffer:function(e){return h["string"]["uint8array"](e).buffer},uint8array:function(e){return stringToArrayLike(e,new Uint8Array(e.length))},nodebuffer:function(e){return stringToArrayLike(e,s.allocBuffer(e.length))}};h["array"]={string:arrayLikeToString,array:identity,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(e)}};h["arraybuffer"]={string:function(e){return arrayLikeToString(new Uint8Array(e))},array:function(e){return arrayLikeToArrayLike(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:identity,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(new Uint8Array(e))}};h["uint8array"]={string:arrayLikeToString,array:function(e){return arrayLikeToArrayLike(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:identity,nodebuffer:function(e){return s.newBufferFrom(e)}};h["nodebuffer"]={string:arrayLikeToString,array:function(e){return arrayLikeToArrayLike(e,new Array(e.length))},arraybuffer:function(e){return h["nodebuffer"]["uint8array"](e).buffer},uint8array:function(e){return arrayLikeToArrayLike(e,new Uint8Array(e.length))},nodebuffer:identity};t.transformTo=function(e,r){if(!r){r=""}if(!e){return r}t.checkSupport(e);var i=t.getTypeOf(r);var n=h[i][e](r);return n};t.resolve=function(e){var t=e.split("/");var r=[];for(var i=0;i<t.length;i++){var n=t[i];if(n==="."||n===""&&i!==0&&i!==t.length-1){continue}else if(n===".."){r.pop()}else{r.push(n)}}return r.join("/")};t.getTypeOf=function(e){if(typeof e==="string"){return"string"}if(Object.prototype.toString.call(e)==="[object Array]"){return"array"}if(i.nodebuffer&&s.isBuffer(e)){return"nodebuffer"}if(i.uint8array&&e instanceof Uint8Array){return"uint8array"}if(i.arraybuffer&&e instanceof ArrayBuffer){return"arraybuffer"}};t.checkSupport=function(e){var t=i[e.toLowerCase()];if(!t){throw new Error(e+" is not supported by this platform")}};t.MAX_VALUE_16BITS=65535;t.MAX_VALUE_32BITS=-1;t.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++){r=e.charCodeAt(i);t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase()}return t};t.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))};t.inherits=function(e,t){var Obj=function(){};Obj.prototype=t.prototype;e.prototype=new Obj};t.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++){for(r in arguments[t]){if(Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]==="undefined"){e[r]=arguments[t][r]}}}return e};t.prepareContent=function(e,r,s,c,h){var p=o.Promise.resolve(r).then((function(e){var t=i.blob&&(e instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e))!==-1);if(t&&typeof FileReader!=="undefined"){return new o.Promise((function(t,r){var i=new FileReader;i.onload=function(e){t(e.target.result)};i.onerror=function(e){r(e.target.error)};i.readAsArrayBuffer(e)}))}else{return e}}));return p.then((function(r){var i=t.getTypeOf(r);if(!i){return o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it "+"in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}if(i==="arraybuffer"){r=t.transformTo("uint8array",r)}else if(i==="string"){if(h){r=n.decode(r)}else if(s){if(c!==true){r=string2binary(r)}}}return r}))}},152:function(e,t,r){"use strict";var i=r(4815);var n=r(6136);var s=r(4771);var o=r(9040);var c=r(9078);function ZipEntries(e){this.files=[];this.loadOptions=e}ZipEntries.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature "+"("+n.pretty(t)+", expected "+n.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4);var n=i===t;this.reader.setIndex(r);return n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2);this.diskWithCentralDirStart=this.reader.readInt(2);this.centralDirRecordsOnThisDisk=this.reader.readInt(2);this.centralDirRecords=this.reader.readInt(2);this.centralDirSize=this.reader.readInt(4);this.centralDirOffset=this.reader.readInt(4);this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength);var t=c.uint8array?"uint8array":"array";var r=n.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8);this.reader.skip(4);this.diskNumber=this.reader.readInt(4);this.diskWithCentralDirStart=this.reader.readInt(4);this.centralDirRecordsOnThisDisk=this.reader.readInt(8);this.centralDirRecords=this.reader.readInt(8);this.centralDirSize=this.reader.readInt(8);this.centralDirOffset=this.reader.readInt(8);this.zip64ExtensibleData={};var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;while(t<e){r=this.reader.readInt(2);i=this.reader.readInt(4);n=this.reader.readData(i);this.zip64ExtensibleData[r]={id:r,length:i,value:n}}},readBlockZip64EndOfCentralLocator:function(){this.diskWithZip64CentralDirStart=this.reader.readInt(4);this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8);this.disksCount=this.reader.readInt(4);if(this.disksCount>1){throw new Error("Multi-volumes zip are not supported")}},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++){t=this.files[e];this.reader.setIndex(t.localHeaderOffset);this.checkSignature(s.LOCAL_FILE_HEADER);t.readLocalPart(this.reader);t.handleUTF8();t.processAttributes()}},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER)){e=new o({zip64:this.zip64},this.loadOptions);e.readCentralPart(this.reader);this.files.push(e)}if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0){throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}else{}}},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,s.LOCAL_FILE_HEADER);if(t){throw 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")}else{throw new Error("Corrupted zip: can't find end of central directory")}}this.reader.setIndex(e);var r=e;this.checkSignature(s.CENTRAL_DIRECTORY_END);this.readBlockEndOfCentral();if(this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){this.zip64=true;e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR);if(e<0){throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator")}this.reader.setIndex(e);this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR);this.readBlockZip64EndOfCentralLocator();if(!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)){this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END);if(this.relativeOffsetEndOfZip64CentralDir<0){throw new Error("Corrupted zip: can't find the ZIP64 end of central directory")}}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END);this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;if(this.zip64){i+=20;i+=12+this.zip64EndOfCentralSize}var o=r-i;if(o>0){if(this.isSignature(r,s.CENTRAL_FILE_HEADER)){}else{this.reader.zero=o}}else if(o<0){throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")}},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e);this.readEndOfCentral();this.readCentralDir();this.readLocalFiles()}};e.exports=ZipEntries},9040:function(e,t,r){"use strict";var i=r(4815);var n=r(6136);var s=r(5651);var o=r(6486);var c=r(3442);var h=r(8890);var p=r(9078);var g=0;var y=3;var findCompression=function(e){for(var t in h){if(!Object.prototype.hasOwnProperty.call(h,t)){continue}if(h[t].magic===e){return h[t]}}return null};function ZipEntry(e,t){this.options=e;this.loadOptions=t}ZipEntry.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,r;e.skip(22);this.fileNameLength=e.readInt(2);r=e.readInt(2);this.fileName=e.readData(this.fileNameLength);e.skip(r);if(this.compressedSize===-1||this.uncompressedSize===-1){throw new Error("Bug or corrupted zip : didn't get enough information from the central directory "+"(compressedSize === -1 || uncompressedSize === -1)")}t=findCompression(this.compressionMethod);if(t===null){throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")")}this.decompressed=new s(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);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);if(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=this.externalFileAttributes&16?true:false;if(e===g){this.dosPermissions=this.externalFileAttributes&63}if(e===y){this.unixPermissions=this.externalFileAttributes>>16&65535}if(!this.dir&&this.fileNameStr.slice(-1)==="/"){this.dir=true}},parseZIP64ExtraField:function(){if(!this.extraFields[1]){return}var e=i(this.extraFields[1].value);if(this.uncompressedSize===n.MAX_VALUE_32BITS){this.uncompressedSize=e.readInt(8)}if(this.compressedSize===n.MAX_VALUE_32BITS){this.compressedSize=e.readInt(8)}if(this.localHeaderOffset===n.MAX_VALUE_32BITS){this.localHeaderOffset=e.readInt(8)}if(this.diskNumberStart===n.MAX_VALUE_32BITS){this.diskNumberStart=e.readInt(4)}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,i,n;if(!this.extraFields){this.extraFields={}}while(e.index+4<t){r=e.readInt(2);i=e.readInt(2);n=e.readData(i);this.extraFields[r]={id:r,length:i,value:n}}e.setIndex(t)},handleUTF8:function(){var e=p.uint8array?"uint8array":"array";if(this.useUTF8()){this.fileNameStr=c.utf8decode(this.fileName);this.fileCommentStr=c.utf8decode(this.fileComment)}else{var t=this.findExtraFieldUnicodePath();if(t!==null){this.fileNameStr=t}else{var r=n.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null){this.fileCommentStr=i}else{var s=n.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);if(t.readInt(1)!==1){return null}if(o(this.fileName)!==t.readInt(4)){return null}return c.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);if(t.readInt(1)!==1){return null}if(o(this.fileComment)!==t.readInt(4)){return null}return c.utf8decode(t.readData(e.length-5))}return null}};e.exports=ZipEntry},9773:function(e,t,r){"use strict";var i=r(1388);var n=r(3922);var s=r(3442);var o=r(5651);var c=r(8181);var ZipObject=function(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}};ZipObject.prototype={internalStream:function(e){var t=null,r="string";try{if(!e){throw new Error("No output type specified.")}r=e.toLowerCase();var n=r==="string"||r==="text";if(r==="binarystring"||r==="text"){r="string"}t=this._decompressWorker();var o=!this._dataBinary;if(o&&!n){t=t.pipe(new s.Utf8EncodeWorker)}if(!o&&n){t=t.pipe(new s.Utf8DecodeWorker)}}catch(e){t=new c("error");t.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){if(this._data instanceof o&&this._data.compression.magic===e.magic){return this._data.getCompressedWorker()}else{var r=this._decompressWorker();if(!this._dataBinary){r=r.pipe(new s.Utf8EncodeWorker)}return o.createWorkerFrom(r,e,t)}},_decompressWorker:function(){if(this._data instanceof o){return this._data.getContentWorker()}else if(this._data instanceof c){return this._data}else{return new n(this._data)}}};var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"];var removedFn=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(var p=0;p<h.length;p++){ZipObject.prototype[h[p]]=removedFn}e.exports=ZipObject},2186:function(e,t,r){var i=r(9023);var n=r(3627);e.exports={Readable:Readable,Writable:Writable};i.inherits(Readable,n);i.inherits(Writable,n);function beforeFirstCall(e,t,r){e[t]=function(){delete e[t];r.apply(this,arguments);return this[t].apply(this,arguments)}}function Readable(e,t){if(!(this instanceof Readable))return new Readable(e,t);n.call(this,t);beforeFirstCall(this,"_read",(function(){var r=e.call(this,t);var i=this.emit.bind(this,"error");r.on("error",i);r.pipe(this)}));this.emit("readable")}function Writable(e,t){if(!(this instanceof Writable))return new Writable(e,t);n.call(this,t);beforeFirstCall(this,"_write",(function(){var r=e.call(this,t);var i=this.emit.bind(this,"error");r.on("error",i);this.pipe(r)}));this.emit("writable")}},6022:function(e,t,r){"use strict";var i=r(209);function INTERNAL(){}var n={};var s=["REJECTED"];var o=["FULFILLED"];var c=["PENDING"];if(!process.browser){var h=["UNHANDLED"]}e.exports=Promise;function Promise(e){if(typeof e!=="function"){throw new TypeError("resolver must be a function")}this.state=c;this.queue=[];this.outcome=void 0;if(!process.browser){this.handled=h}if(e!==INTERNAL){safelyResolveThenable(this,e)}}Promise.prototype.finally=function(e){if(typeof e!=="function"){return this}var t=this.constructor;return this.then(resolve,reject);function resolve(r){function yes(){return r}return t.resolve(e()).then(yes)}function reject(r){function no(){throw r}return t.resolve(e()).then(no)}};Promise.prototype.catch=function(e){return this.then(null,e)};Promise.prototype.then=function(e,t){if(typeof e!=="function"&&this.state===o||typeof t!=="function"&&this.state===s){return this}var r=new this.constructor(INTERNAL);if(!process.browser){if(this.handled===h){this.handled=null}}if(this.state!==c){var i=this.state===o?e:t;unwrap(r,i,this.outcome)}else{this.queue.push(new QueueItem(r,e,t))}return r};function QueueItem(e,t,r){this.promise=e;if(typeof t==="function"){this.onFulfilled=t;this.callFulfilled=this.otherCallFulfilled}if(typeof r==="function"){this.onRejected=r;this.callRejected=this.otherCallRejected}}QueueItem.prototype.callFulfilled=function(e){n.resolve(this.promise,e)};QueueItem.prototype.otherCallFulfilled=function(e){unwrap(this.promise,this.onFulfilled,e)};QueueItem.prototype.callRejected=function(e){n.reject(this.promise,e)};QueueItem.prototype.otherCallRejected=function(e){unwrap(this.promise,this.onRejected,e)};function unwrap(e,t,r){i((function(){var i;try{i=t(r)}catch(t){return n.reject(e,t)}if(i===e){n.reject(e,new TypeError("Cannot resolve promise with itself"))}else{n.resolve(e,i)}}))}n.resolve=function(e,t){var r=tryCatch(getThen,t);if(r.status==="error"){return n.reject(e,r.value)}var i=r.value;if(i){safelyResolveThenable(e,i)}else{e.state=o;e.outcome=t;var s=-1;var c=e.queue.length;while(++s<c){e.queue[s].callFulfilled(t)}}return e};n.reject=function(e,t){e.state=s;e.outcome=t;if(!process.browser){if(e.handled===h){i((function(){if(e.handled===h){process.emit("unhandledRejection",t,e)}}))}}var r=-1;var n=e.queue.length;while(++r<n){e.queue[r].callRejected(t)}return e};function getThen(e){var t=e&&e.then;if(e&&(typeof e==="object"||typeof e==="function")&&typeof t==="function"){return function appyThen(){t.apply(e,arguments)}}}function safelyResolveThenable(e,t){var r=false;function onError(t){if(r){return}r=true;n.reject(e,t)}function onSuccess(t){if(r){return}r=true;n.resolve(e,t)}function tryToUnwrap(){t(onSuccess,onError)}var i=tryCatch(tryToUnwrap);if(i.status==="error"){onError(i.value)}}function tryCatch(e,t){var r={};try{r.value=e(t);r.status="success"}catch(e){r.status="error";r.value=e}return r}Promise.resolve=resolve;function resolve(e){if(e instanceof this){return e}return n.resolve(new this(INTERNAL),e)}Promise.reject=reject;function reject(e){var t=new this(INTERNAL);return n.reject(t,e)}Promise.all=all;function all(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]"){return this.reject(new TypeError("must be an array"))}var r=e.length;var i=false;if(!r){return this.resolve([])}var s=new Array(r);var o=0;var c=-1;var h=new this(INTERNAL);while(++c<r){allResolver(e[c],c)}return h;function allResolver(e,c){t.resolve(e).then(resolveFromAll,(function(e){if(!i){i=true;n.reject(h,e)}}));function resolveFromAll(e){s[c]=e;if(++o===r&&!i){i=true;n.resolve(h,s)}}}}Promise.race=race;function race(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]"){return this.reject(new TypeError("must be an array"))}var r=e.length;var i=false;if(!r){return this.resolve([])}var s=-1;var o=new this(INTERNAL);while(++s<r){resolver(e[s])}return o;function resolver(e){t.resolve(e).then((function(e){if(!i){i=true;n.resolve(o,e)}}),(function(e){if(!i){i=true;n.reject(o,e)}}))}}},956:function(e,t,r){"use strict";var i=r(4434).listenerCount;i=i||function(e,t){var r=e&&e._events&&e._events[t];if(Array.isArray(r)){return r.length}else if(typeof r==="function"){return 1}else{return 0}};e.exports=i},4242:function(e){var t=9007199254740991;var r="[object Arguments]",i="[object Function]",n="[object GeneratorFunction]";var s=/^(?:0|[1-9]\d*)$/;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function baseTimes(e,t){var r=-1,i=Array(e);while(++r<e){i[r]=t(r)}return i}var o=Object.prototype;var c=o.hasOwnProperty;var h=o.toString;var p=o.propertyIsEnumerable;var g=Math.max;function arrayLikeKeys(e,t){var r=y(e)||isArguments(e)?baseTimes(e.length,String):[];var i=r.length,n=!!i;for(var s in e){if((t||c.call(e,s))&&!(n&&(s=="length"||isIndex(s,i)))){r.push(s)}}return r}function assignInDefaults(e,t,r,i){if(e===undefined||eq(e,o[r])&&!c.call(i,r)){return t}return e}function assignValue(e,t,r){var i=e[t];if(!(c.call(e,t)&&eq(i,r))||r===undefined&&!(t in e)){e[t]=r}}function baseKeysIn(e){if(!isObject(e)){return nativeKeysIn(e)}var t=isPrototype(e),r=[];for(var i in e){if(!(i=="constructor"&&(t||!c.call(e,i)))){r.push(i)}}return r}function baseRest(e,t){t=g(t===undefined?e.length-1:t,0);return function(){var r=arguments,i=-1,n=g(r.length-t,0),s=Array(n);while(++i<n){s[i]=r[t+i]}i=-1;var o=Array(t+1);while(++i<t){o[i]=r[i]}o[t]=s;return apply(e,this,o)}}function copyObject(e,t,r,i){r||(r={});var n=-1,s=t.length;while(++n<s){var o=t[n];var c=i?i(r[o],e[o],o,r,e):undefined;assignValue(r,o,c===undefined?e[o]:c)}return r}function createAssigner(e){return baseRest((function(t,r){var i=-1,n=r.length,s=n>1?r[n-1]:undefined,o=n>2?r[2]:undefined;s=e.length>3&&typeof s=="function"?(n--,s):undefined;if(o&&isIterateeCall(r[0],r[1],o)){s=n<3?undefined:s;n=1}t=Object(t);while(++i<n){var c=r[i];if(c){e(t,c,i,s)}}return t}))}function isIndex(e,r){r=r==null?t:r;return!!r&&(typeof e=="number"||s.test(e))&&(e>-1&&e%1==0&&e<r)}function isIterateeCall(e,t,r){if(!isObject(r)){return false}var i=typeof t;if(i=="number"?isArrayLike(r)&&isIndex(t,r.length):i=="string"&&t in r){return eq(r[t],e)}return false}function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||o;return e===r}function nativeKeysIn(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&c.call(e,"callee")&&(!p.call(e,"callee")||h.call(e)==r)}var y=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?h.call(e):"";return t==i||t==n}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}var v=createAssigner((function(e,t,r,i){copyObject(t,keysIn(t),e,i)}));var b=baseRest((function(e){e.push(undefined,assignInDefaults);return apply(v,undefined,e)}));function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,true):baseKeysIn(e)}e.exports=b},7467:function(e){var t=200;var r="__lodash_hash_undefined__";var i=9007199254740991;var n="[object Arguments]",s="[object Function]",o="[object GeneratorFunction]";var c=/[\\^$.*+?()[\]{}|]/g;var h=/^\[object .+?Constructor\]$/;var p=typeof global=="object"&&global&&global.Object===Object&&global;var g=typeof self=="object"&&self&&self.Object===Object&&self;var y=p||g||Function("return this")();function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var i=-1,n=e?e.length:0;while(++i<n){if(r(t,e[i])){return true}}return false}function arrayMap(e,t){var r=-1,i=e?e.length:0,n=Array(i);while(++r<i){n[r]=t(e[r],r,e)}return n}function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}function baseFindIndex(e,t,r,i){var n=e.length,s=r+(i?1:-1);while(i?s--:++s<n){if(t(e[s],s,e)){return s}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var i=r-1,n=e.length;while(++i<n){if(e[i]===t){return i}}return-1}function baseIsNaN(e){return e!==e}function baseUnary(e){return function(t){return e(t)}}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var v=Array.prototype,b=Function.prototype,_=Object.prototype;var w=y["__core-js_shared__"];var x=function(){var e=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var S=b.toString;var k=_.hasOwnProperty;var C=_.toString;var E=RegExp("^"+S.call(k).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var R=y.Symbol,O=_.propertyIsEnumerable,A=v.splice,I=R?R.isConcatSpreadable:undefined;var P=Math.max;var N=getNative(y,"Map"),F=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=F?F(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(F){var i=t[e];return i===r?undefined:i}return k.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return F?t[e]!==undefined:k.call(t,e)}function hashSet(e,t){var i=this.__data__;i[e]=F&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{A.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(N||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseDifference(e,r,i,n){var s=-1,o=arrayIncludes,c=true,h=e.length,p=[],g=r.length;if(!h){return p}if(i){r=arrayMap(r,baseUnary(i))}if(n){o=arrayIncludesWith;c=false}else if(r.length>=t){o=cacheHas;c=false;r=new SetCache(r)}e:while(++s<h){var y=e[s],v=i?i(y):y;y=n||y!==0?y:0;if(c&&v===v){var b=g;while(b--){if(r[b]===v){continue e}}p.push(y)}else if(!o(r,v,n)){p.push(y)}}return p}function baseFlatten(e,t,r,i,n){var s=-1,o=e.length;r||(r=isFlattenable);n||(n=[]);while(++s<o){var c=e[s];if(t>0&&r(c)){if(t>1){baseFlatten(c,t-1,r,i,n)}else{arrayPush(n,c)}}else if(!i){n[n.length]=c}}return n}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?E:h;return t.test(toSource(e))}function baseRest(e,t){t=P(t===undefined?e.length-1:t,0);return function(){var r=arguments,i=-1,n=P(r.length-t,0),s=Array(n);while(++i<n){s[i]=r[t+i]}i=-1;var o=Array(t+1);while(++i<t){o[i]=r[i]}o[t]=s;return apply(e,this,o)}}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isFlattenable(e){return L(e)||isArguments(e)||!!(I&&e&&e[I])}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!x&&x in e}function toSource(e){if(e!=null){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var D=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,true)):[]}));function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&k.call(e,"callee")&&(!O.call(e,"callee")||C.call(e)==n)}var L=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?C.call(e):"";return t==s||t==o}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=i}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=D},1171:function(e){var t=1/0;var r="[object Symbol]";var i=/[\\^$.*+?()[\]{}|]/g,n=RegExp(i.source);var s=typeof global=="object"&&global&&global.Object===Object&&global;var o=typeof self=="object"&&self&&self.Object===Object&&self;var c=s||o||Function("return this")();var h=Object.prototype;var p=h.toString;var g=c.Symbol;var y=g?g.prototype:undefined,v=y?y.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(isSymbol(e)){return v?v.call(e):""}var r=e+"";return r=="0"&&1/e==-t?"-0":r}function isObjectLike(e){return!!e&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&p.call(e)==r}function toString(e){return e==null?"":baseToString(e)}function escapeRegExp(e){e=toString(e);return e&&n.test(e)?e.replace(i,"\\$&"):e}e.exports=escapeRegExp},6502:function(e){var t=9007199254740991;var r="[object Arguments]",i="[object Function]",n="[object GeneratorFunction]";var s=typeof global=="object"&&global&&global.Object===Object&&global;var o=typeof self=="object"&&self&&self.Object===Object&&self;var c=s||o||Function("return this")();function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}var h=Object.prototype;var p=h.hasOwnProperty;var g=h.toString;var y=c.Symbol,v=h.propertyIsEnumerable,b=y?y.isConcatSpreadable:undefined;function baseFlatten(e,t,r,i,n){var s=-1,o=e.length;r||(r=isFlattenable);n||(n=[]);while(++s<o){var c=e[s];if(t>0&&r(c)){if(t>1){baseFlatten(c,t-1,r,i,n)}else{arrayPush(n,c)}}else if(!i){n[n.length]=c}}return n}function isFlattenable(e){return _(e)||isArguments(e)||!!(b&&e&&e[b])}function flatten(e){var t=e?e.length:0;return t?baseFlatten(e,1):[]}function isArguments(e){return isArrayLikeObject(e)&&p.call(e,"callee")&&(!v.call(e,"callee")||g.call(e)==r)}var _=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?g.call(e):"";return t==i||t==n}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=flatten},747:function(e,t,r){e=r.nmd(e);var i=200;var n="Expected a function";var s="__lodash_hash_undefined__";var o=1,c=2;var h=1/0,p=9007199254740991;var g="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",_="[object Error]",w="[object Function]",x="[object GeneratorFunction]",S="[object Map]",k="[object Number]",C="[object Object]",E="[object Promise]",R="[object RegExp]",O="[object Set]",A="[object String]",I="[object Symbol]",P="[object WeakMap]";var N="[object ArrayBuffer]",F="[object DataView]",D="[object Float32Array]",L="[object Float64Array]",B="[object Int8Array]",M="[object Int16Array]",j="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",H="[object Uint16Array]",X="[object Uint32Array]";var $=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,U=/^\./,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var G=/[\\^$.*+?()[\]{}|]/g;var Z=/\\(\\)?/g;var Y=/^\[object .+?Constructor\]$/;var K=/^(?:0|[1-9]\d*)$/;var Q={};Q[D]=Q[L]=Q[B]=Q[M]=Q[j]=Q[z]=Q[W]=Q[H]=Q[X]=true;Q[g]=Q[y]=Q[N]=Q[v]=Q[F]=Q[b]=Q[_]=Q[w]=Q[S]=Q[k]=Q[C]=Q[R]=Q[O]=Q[A]=Q[P]=false;var J=typeof global=="object"&&global&&global.Object===Object&&global;var ee=typeof self=="object"&&self&&self.Object===Object&&self;var te=J||ee||Function("return this")();var re=true&&t&&!t.nodeType&&t;var ie=re&&"object"=="object"&&e&&!e.nodeType&&e;var ne=ie&&ie.exports===re;var se=ne&&J.process;var ae=function(){try{return se&&se.binding("util")}catch(e){}}();var oe=ae&&ae.isTypedArray;function arrayAggregator(e,t,r,i){var n=-1,s=e?e.length:0;while(++n<s){var o=e[n];t(i,o,r(o),e)}return i}function arraySome(e,t){var r=-1,i=e?e.length:0;while(++r<i){if(t(e[r],r,e)){return true}}return false}function baseProperty(e){return function(t){return t==null?undefined:t[e]}}function baseTimes(e,t){var r=-1,i=Array(e);while(++r<e){i[r]=t(r)}return i}function baseUnary(e){return function(t){return e(t)}}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function mapToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e,i){r[++t]=[i,e]}));return r}function overArg(e,t){return function(r){return e(t(r))}}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var le=Array.prototype,ue=Function.prototype,fe=Object.prototype;var ce=te["__core-js_shared__"];var he=function(){var e=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var de=ue.toString;var pe=fe.hasOwnProperty;var me=fe.toString;var ge=RegExp("^"+de.call(pe).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ye=te.Symbol,ve=te.Uint8Array,be=fe.propertyIsEnumerable,_e=le.splice;var we=overArg(Object.keys,Object);var xe=getNative(te,"DataView"),Se=getNative(te,"Map"),ke=getNative(te,"Promise"),Ce=getNative(te,"Set"),Te=getNative(te,"WeakMap"),Ee=getNative(Object,"create");var Re=toSource(xe),Oe=toSource(Se),Ae=toSource(ke),Ie=toSource(Ce),Pe=toSource(Te);var Ne=ye?ye.prototype:undefined,Fe=Ne?Ne.valueOf:undefined,De=Ne?Ne.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=Ee?Ee(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(Ee){var r=t[e];return r===s?undefined:r}return pe.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return Ee?t[e]!==undefined:pe.call(t,e)}function hashSet(e,t){var r=this.__data__;r[e]=Ee&&t===undefined?s:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{_e.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(Se||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,s);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function Stack(e){this.__data__=new ListCache(e)}function stackClear(){this.__data__=new ListCache}function stackDelete(e){return this.__data__["delete"](e)}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var n=r.__data__;if(!Se||n.length<i-1){n.push([e,t]);return this}r=this.__data__=new MapCache(n)}r.set(e,t);return this}Stack.prototype.clear=stackClear;Stack.prototype["delete"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function arrayLikeKeys(e,t){var r=We(e)||isArguments(e)?baseTimes(e.length,String):[];var i=r.length,n=!!i;for(var s in e){if((t||pe.call(e,s))&&!(n&&(s=="length"||isIndex(s,i)))){r.push(s)}}return r}function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseAggregator(e,t,r,i){Le(e,(function(e,n,s){t(i,e,r(e),s)}));return i}var Le=createBaseEach(baseForOwn);var Be=createBaseFor();function baseForOwn(e,t){return e&&Be(e,t,keys)}function baseGet(e,t){t=isKey(t,e)?[t]:castPath(t);var r=0,i=t.length;while(e!=null&&r<i){e=e[toKey(t[r++])]}return r&&r==i?e:undefined}function baseGetTag(e){return me.call(e)}function baseHasIn(e,t){return e!=null&&t in Object(e)}function baseIsEqual(e,t,r,i,n){if(e===t){return true}if(e==null||t==null||!isObject(e)&&!isObjectLike(t)){return e!==e&&t!==t}return baseIsEqualDeep(e,t,baseIsEqual,r,i,n)}function baseIsEqualDeep(e,t,r,i,n,s){var o=We(e),h=We(t),p=y,v=y;if(!o){p=Me(e);p=p==g?C:p}if(!h){v=Me(t);v=v==g?C:v}var b=p==C&&!isHostObject(e),_=v==C&&!isHostObject(t),w=p==v;if(w&&!b){s||(s=new Stack);return o||He(e)?equalArrays(e,t,r,i,n,s):equalByTag(e,t,p,r,i,n,s)}if(!(n&c)){var x=b&&pe.call(e,"__wrapped__"),S=_&&pe.call(t,"__wrapped__");if(x||S){var k=x?e.value():e,E=S?t.value():t;s||(s=new Stack);return r(k,E,i,n,s)}}if(!w){return false}s||(s=new Stack);return equalObjects(e,t,r,i,n,s)}function baseIsMatch(e,t,r,i){var n=r.length,s=n,h=!i;if(e==null){return!s}e=Object(e);while(n--){var p=r[n];if(h&&p[2]?p[1]!==e[p[0]]:!(p[0]in e)){return false}}while(++n<s){p=r[n];var g=p[0],y=e[g],v=p[1];if(h&&p[2]){if(y===undefined&&!(g in e)){return false}}else{var b=new Stack;if(i){var _=i(y,v,g,e,t,b)}if(!(_===undefined?baseIsEqual(v,y,i,o|c,b):_)){return false}}}return true}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?ge:Y;return t.test(toSource(e))}function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!Q[me.call(e)]}function baseIteratee(e){if(typeof e=="function"){return e}if(e==null){return identity}if(typeof e=="object"){return We(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e)}return property(e)}function baseKeys(e){if(!isPrototype(e)){return we(e)}var t=[];for(var r in Object(e)){if(pe.call(e,r)&&r!="constructor"){t.push(r)}}return t}function baseMatches(e){var t=getMatchData(e);if(t.length==1&&t[0][2]){return matchesStrictComparable(t[0][0],t[0][1])}return function(r){return r===e||baseIsMatch(r,e,t)}}function baseMatchesProperty(e,t){if(isKey(e)&&isStrictComparable(t)){return matchesStrictComparable(toKey(e),t)}return function(r){var i=get(r,e);return i===undefined&&i===t?hasIn(r,e):baseIsEqual(t,i,undefined,o|c)}}function basePropertyDeep(e){return function(t){return baseGet(t,e)}}function baseToString(e){if(typeof e=="string"){return e}if(isSymbol(e)){return De?De.call(e):""}var t=e+"";return t=="0"&&1/e==-h?"-0":t}function castPath(e){return We(e)?e:je(e)}function createAggregator(e,t){return function(r,i){var n=We(r)?arrayAggregator:baseAggregator,s=t?t():{};return n(r,e,baseIteratee(i,2),s)}}function createBaseEach(e,t){return function(r,i){if(r==null){return r}if(!isArrayLike(r)){return e(r,i)}var n=r.length,s=t?n:-1,o=Object(r);while(t?s--:++s<n){if(i(o[s],s,o)===false){break}}return r}}function createBaseFor(e){return function(t,r,i){var n=-1,s=Object(t),o=i(t),c=o.length;while(c--){var h=o[e?c:++n];if(r(s[h],h,s)===false){break}}return t}}function equalArrays(e,t,r,i,n,s){var h=n&c,p=e.length,g=t.length;if(p!=g&&!(h&&g>p)){return false}var y=s.get(e);if(y&&s.get(t)){return y==t}var v=-1,b=true,_=n&o?new SetCache:undefined;s.set(e,t);s.set(t,e);while(++v<p){var w=e[v],x=t[v];if(i){var S=h?i(x,w,v,t,e,s):i(w,x,v,e,t,s)}if(S!==undefined){if(S){continue}b=false;break}if(_){if(!arraySome(t,(function(e,t){if(!_.has(t)&&(w===e||r(w,e,i,n,s))){return _.add(t)}}))){b=false;break}}else if(!(w===x||r(w,x,i,n,s))){b=false;break}}s["delete"](e);s["delete"](t);return b}function equalByTag(e,t,r,i,n,s,h){switch(r){case F:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case N:if(e.byteLength!=t.byteLength||!i(new ve(e),new ve(t))){return false}return true;case v:case b:case k:return eq(+e,+t);case _:return e.name==t.name&&e.message==t.message;case R:case A:return e==t+"";case S:var p=mapToArray;case O:var g=s&c;p||(p=setToArray);if(e.size!=t.size&&!g){return false}var y=h.get(e);if(y){return y==t}s|=o;h.set(e,t);var w=equalArrays(p(e),p(t),i,n,s,h);h["delete"](e);return w;case I:if(Fe){return Fe.call(e)==Fe.call(t)}}return false}function equalObjects(e,t,r,i,n,s){var o=n&c,h=keys(e),p=h.length,g=keys(t),y=g.length;if(p!=y&&!o){return false}var v=p;while(v--){var b=h[v];if(!(o?b in t:pe.call(t,b))){return false}}var _=s.get(e);if(_&&s.get(t)){return _==t}var w=true;s.set(e,t);s.set(t,e);var x=o;while(++v<p){b=h[v];var S=e[b],k=t[b];if(i){var C=o?i(k,S,b,t,e,s):i(S,k,b,e,t,s)}if(!(C===undefined?S===k||r(S,k,i,n,s):C)){w=false;break}x||(x=b=="constructor")}if(w&&!x){var E=e.constructor,R=t.constructor;if(E!=R&&("constructor"in e&&"constructor"in t)&&!(typeof E=="function"&&E instanceof E&&typeof R=="function"&&R instanceof R)){w=false}}s["delete"](e);s["delete"](t);return w}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getMatchData(e){var t=keys(e),r=t.length;while(r--){var i=t[r],n=e[i];t[r]=[i,n,isStrictComparable(n)]}return t}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}var Me=baseGetTag;if(xe&&Me(new xe(new ArrayBuffer(1)))!=F||Se&&Me(new Se)!=S||ke&&Me(ke.resolve())!=E||Ce&&Me(new Ce)!=O||Te&&Me(new Te)!=P){Me=function(e){var t=me.call(e),r=t==C?e.constructor:undefined,i=r?toSource(r):undefined;if(i){switch(i){case Re:return F;case Oe:return S;case Ae:return E;case Ie:return O;case Pe:return P}}return t}}function hasPath(e,t,r){t=isKey(t,e)?[t]:castPath(t);var i,n=-1,s=t.length;while(++n<s){var o=toKey(t[n]);if(!(i=e!=null&&r(e,o))){break}e=e[o]}if(i){return i}var s=e?e.length:0;return!!s&&isLength(s)&&isIndex(o,s)&&(We(e)||isArguments(e))}function isIndex(e,t){t=t==null?p:t;return!!t&&(typeof e=="number"||K.test(e))&&(e>-1&&e%1==0&&e<t)}function isKey(e,t){if(We(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||isSymbol(e)){return true}return V.test(e)||!$.test(e)||t!=null&&e in Object(t)}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!he&&he in e}function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||fe;return e===r}function isStrictComparable(e){return e===e&&!isObject(e)}function matchesStrictComparable(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}var je=memoize((function(e){e=toString(e);var t=[];if(U.test(e)){t.push("")}e.replace(q,(function(e,r,i,n){t.push(i?n.replace(Z,"$1"):r||e)}));return t}));function toKey(e){if(typeof e=="string"||isSymbol(e)){return e}var t=e+"";return t=="0"&&1/e==-h?"-0":t}function toSource(e){if(e!=null){try{return de.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ze=createAggregator((function(e,t,r){if(pe.call(e,r)){e[r].push(t)}else{e[r]=[t]}}));function memoize(e,t){if(typeof e!="function"||t&&typeof t!="function"){throw new TypeError(n)}var memoized=function(){var r=arguments,i=t?t.apply(this,r):r[0],n=memoized.cache;if(n.has(i)){return n.get(i)}var s=e.apply(this,r);memoized.cache=n.set(i,s);return s};memoized.cache=new(memoize.Cache||MapCache);return memoized}memoize.Cache=MapCache;function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&pe.call(e,"callee")&&(!be.call(e,"callee")||me.call(e)==g)}var We=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?me.call(e):"";return t==w||t==x}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=p}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&me.call(e)==I}var He=oe?baseUnary(oe):baseIsTypedArray;function toString(e){return e==null?"":baseToString(e)}function get(e,t,r){var i=e==null?undefined:baseGet(e,t);return i===undefined?r:i}function hasIn(e,t){return e!=null&&hasPath(e,t,baseHasIn)}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function identity(e){return e}function property(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}e.exports=ze},7594:function(e){var t="[object Boolean]";var r=Object.prototype;var i=r.toString;function isBoolean(e){return e===true||e===false||isObjectLike(e)&&i.call(e)==t}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=isBoolean},6815:function(e,t,r){e=r.nmd(e);var i=200;var n="__lodash_hash_undefined__";var s=1,o=2;var c=9007199254740991;var h="[object Arguments]",p="[object Array]",g="[object AsyncFunction]",y="[object Boolean]",v="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",x="[object Map]",S="[object Number]",k="[object Null]",C="[object Object]",E="[object Promise]",R="[object Proxy]",O="[object RegExp]",A="[object Set]",I="[object String]",P="[object Symbol]",N="[object Undefined]",F="[object WeakMap]";var D="[object ArrayBuffer]",L="[object DataView]",B="[object Float32Array]",M="[object Float64Array]",j="[object Int8Array]",z="[object Int16Array]",W="[object Int32Array]",H="[object Uint8Array]",X="[object Uint8ClampedArray]",$="[object Uint16Array]",V="[object Uint32Array]";var U=/[\\^$.*+?()[\]{}|]/g;var q=/^\[object .+?Constructor\]$/;var G=/^(?:0|[1-9]\d*)$/;var Z={};Z[B]=Z[M]=Z[j]=Z[z]=Z[W]=Z[H]=Z[X]=Z[$]=Z[V]=true;Z[h]=Z[p]=Z[D]=Z[y]=Z[L]=Z[v]=Z[b]=Z[_]=Z[x]=Z[S]=Z[C]=Z[O]=Z[A]=Z[I]=Z[F]=false;var Y=typeof global=="object"&&global&&global.Object===Object&&global;var K=typeof self=="object"&&self&&self.Object===Object&&self;var Q=Y||K||Function("return this")();var J=true&&t&&!t.nodeType&&t;var ee=J&&"object"=="object"&&e&&!e.nodeType&&e;var te=ee&&ee.exports===J;var re=te&&Y.process;var ie=function(){try{return re&&re.binding&&re.binding("util")}catch(e){}}();var ne=ie&&ie.isTypedArray;function arrayFilter(e,t){var r=-1,i=e==null?0:e.length,n=0,s=[];while(++r<i){var o=e[r];if(t(o,r,e)){s[n++]=o}}return s}function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}function arraySome(e,t){var r=-1,i=e==null?0:e.length;while(++r<i){if(t(e[r],r,e)){return true}}return false}function baseTimes(e,t){var r=-1,i=Array(e);while(++r<e){i[r]=t(r)}return i}function baseUnary(e){return function(t){return e(t)}}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function mapToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e,i){r[++t]=[i,e]}));return r}function overArg(e,t){return function(r){return e(t(r))}}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var se=Array.prototype,ae=Function.prototype,oe=Object.prototype;var le=Q["__core-js_shared__"];var ue=ae.toString;var fe=oe.hasOwnProperty;var ce=function(){var e=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var he=oe.toString;var de=RegExp("^"+ue.call(fe).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var pe=te?Q.Buffer:undefined,me=Q.Symbol,ge=Q.Uint8Array,ye=oe.propertyIsEnumerable,ve=se.splice,be=me?me.toStringTag:undefined;var _e=Object.getOwnPropertySymbols,we=pe?pe.isBuffer:undefined,xe=overArg(Object.keys,Object);var Se=getNative(Q,"DataView"),ke=getNative(Q,"Map"),Ce=getNative(Q,"Promise"),Te=getNative(Q,"Set"),Ee=getNative(Q,"WeakMap"),Re=getNative(Object,"create");var Oe=toSource(Se),Ae=toSource(ke),Ie=toSource(Ce),Pe=toSource(Te),Ne=toSource(Ee);var Fe=me?me.prototype:undefined,De=Fe?Fe.valueOf:undefined;function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=Re?Re(null):{};this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function hashGet(e){var t=this.__data__;if(Re){var r=t[e];return r===n?undefined:r}return fe.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return Re?t[e]!==undefined:fe.call(t,e)}function hashSet(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=Re&&t===undefined?n:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[];this.size=0}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{ve.call(t,r,1)}--this.size;return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){++this.size;r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.size=0;this.__data__={hash:new Hash,map:new(ke||ListCache),string:new Hash}}function mapCacheDelete(e){var t=getMapData(this,e)["delete"](e);this.size-=t?1:0;return t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var r=getMapData(this,e),i=r.size;r.set(e,t);this.size+=r.size==i?0:1;return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e==null?0:e.length;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,n);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function stackClear(){this.__data__=new ListCache;this.size=0}function stackDelete(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var n=r.__data__;if(!ke||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new MapCache(n)}r.set(e,t);this.size=r.size;return this}Stack.prototype.clear=stackClear;Stack.prototype["delete"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function arrayLikeKeys(e,t){var r=je(e),i=!r&&Me(e),n=!r&&!i&&ze(e),s=!r&&!i&&!n&&We(e),o=r||i||n||s,c=o?baseTimes(e.length,String):[],h=c.length;for(var p in e){if((t||fe.call(e,p))&&!(o&&(p=="length"||n&&(p=="offset"||p=="parent")||s&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||isIndex(p,h)))){c.push(p)}}return c}function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseGetAllKeys(e,t,r){var i=t(e);return je(e)?i:arrayPush(i,r(e))}function baseGetTag(e){if(e==null){return e===undefined?N:k}return be&&be in Object(e)?getRawTag(e):objectToString(e)}function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==h}function baseIsEqual(e,t,r,i,n){if(e===t){return true}if(e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)){return e!==e&&t!==t}return baseIsEqualDeep(e,t,r,i,baseIsEqual,n)}function baseIsEqualDeep(e,t,r,i,n,o){var c=je(e),g=je(t),y=c?p:Be(e),v=g?p:Be(t);y=y==h?C:y;v=v==h?C:v;var b=y==C,_=v==C,w=y==v;if(w&&ze(e)){if(!ze(t)){return false}c=true;b=false}if(w&&!b){o||(o=new Stack);return c||We(e)?equalArrays(e,t,r,i,n,o):equalByTag(e,t,y,r,i,n,o)}if(!(r&s)){var x=b&&fe.call(e,"__wrapped__"),S=_&&fe.call(t,"__wrapped__");if(x||S){var k=x?e.value():e,E=S?t.value():t;o||(o=new Stack);return n(k,E,r,i,o)}}if(!w){return false}o||(o=new Stack);return equalObjects(e,t,r,i,n,o)}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)?de:q;return t.test(toSource(e))}function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!Z[baseGetTag(e)]}function baseKeys(e){if(!isPrototype(e)){return xe(e)}var t=[];for(var r in Object(e)){if(fe.call(e,r)&&r!="constructor"){t.push(r)}}return t}function equalArrays(e,t,r,i,n,c){var h=r&s,p=e.length,g=t.length;if(p!=g&&!(h&&g>p)){return false}var y=c.get(e);if(y&&c.get(t)){return y==t}var v=-1,b=true,_=r&o?new SetCache:undefined;c.set(e,t);c.set(t,e);while(++v<p){var w=e[v],x=t[v];if(i){var S=h?i(x,w,v,t,e,c):i(w,x,v,e,t,c)}if(S!==undefined){if(S){continue}b=false;break}if(_){if(!arraySome(t,(function(e,t){if(!cacheHas(_,t)&&(w===e||n(w,e,r,i,c))){return _.push(t)}}))){b=false;break}}else if(!(w===x||n(w,x,r,i,c))){b=false;break}}c["delete"](e);c["delete"](t);return b}function equalByTag(e,t,r,i,n,c,h){switch(r){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case D:if(e.byteLength!=t.byteLength||!c(new ge(e),new ge(t))){return false}return true;case y:case v:case S:return eq(+e,+t);case b:return e.name==t.name&&e.message==t.message;case O:case I:return e==t+"";case x:var p=mapToArray;case A:var g=i&s;p||(p=setToArray);if(e.size!=t.size&&!g){return false}var _=h.get(e);if(_){return _==t}i|=o;h.set(e,t);var w=equalArrays(p(e),p(t),i,n,c,h);h["delete"](e);return w;case P:if(De){return De.call(e)==De.call(t)}}return false}function equalObjects(e,t,r,i,n,o){var c=r&s,h=getAllKeys(e),p=h.length,g=getAllKeys(t),y=g.length;if(p!=y&&!c){return false}var v=p;while(v--){var b=h[v];if(!(c?b in t:fe.call(t,b))){return false}}var _=o.get(e);if(_&&o.get(t)){return _==t}var w=true;o.set(e,t);o.set(t,e);var x=c;while(++v<p){b=h[v];var S=e[b],k=t[b];if(i){var C=c?i(k,S,b,t,e,o):i(S,k,b,e,t,o)}if(!(C===undefined?S===k||n(S,k,r,i,o):C)){w=false;break}x||(x=b=="constructor")}if(w&&!x){var E=e.constructor,R=t.constructor;if(E!=R&&("constructor"in e&&"constructor"in t)&&!(typeof E=="function"&&E instanceof E&&typeof R=="function"&&R instanceof R)){w=false}}o["delete"](e);o["delete"](t);return w}function getAllKeys(e){return baseGetAllKeys(e,keys,Le)}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function getRawTag(e){var t=fe.call(e,be),r=e[be];try{e[be]=undefined;var i=true}catch(e){}var n=he.call(e);if(i){if(t){e[be]=r}else{delete e[be]}}return n}var Le=!_e?stubArray:function(e){if(e==null){return[]}e=Object(e);return arrayFilter(_e(e),(function(t){return ye.call(e,t)}))};var Be=baseGetTag;if(Se&&Be(new Se(new ArrayBuffer(1)))!=L||ke&&Be(new ke)!=x||Ce&&Be(Ce.resolve())!=E||Te&&Be(new Te)!=A||Ee&&Be(new Ee)!=F){Be=function(e){var t=baseGetTag(e),r=t==C?e.constructor:undefined,i=r?toSource(r):"";if(i){switch(i){case Oe:return L;case Ae:return x;case Ie:return E;case Pe:return A;case Ne:return F}}return t}}function isIndex(e,t){t=t==null?c:t;return!!t&&(typeof e=="number"||G.test(e))&&(e>-1&&e%1==0&&e<t)}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!ce&&ce in e}function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||oe;return e===r}function objectToString(e){return he.call(e)}function toSource(e){if(e!=null){try{return ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eq(e,t){return e===t||e!==e&&t!==t}var Me=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&fe.call(e,"callee")&&!ye.call(e,"callee")};var je=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var ze=we||stubFalse;function isEqual(e,t){return baseIsEqual(e,t)}function isFunction(e){if(!isObject(e)){return false}var t=baseGetTag(e);return t==_||t==w||t==g||t==R}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=c}function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function isObjectLike(e){return e!=null&&typeof e=="object"}var We=ne?baseUnary(ne):baseIsTypedArray;function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function stubArray(){return[]}function stubFalse(){return false}e.exports=isEqual},8446:function(e){var t="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",n="[object Null]",s="[object Proxy]",o="[object Undefined]";var c=typeof global=="object"&&global&&global.Object===Object&&global;var h=typeof self=="object"&&self&&self.Object===Object&&self;var p=c||h||Function("return this")();var g=Object.prototype;var y=g.hasOwnProperty;var v=g.toString;var b=p.Symbol,_=b?b.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?o:n}return _&&_ in Object(e)?getRawTag(e):objectToString(e)}function getRawTag(e){var t=y.call(e,_),r=e[_];try{e[_]=undefined;var i=true}catch(e){}var n=v.call(e);if(i){if(t){e[_]=r}else{delete e[_]}}return n}function objectToString(e){return v.call(e)}function isFunction(e){if(!isObject(e)){return false}var n=baseGetTag(e);return n==r||n==i||n==t||n==s}function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isFunction},1982:function(e){function isNil(e){return e==null}e.exports=isNil},5520:function(e){var t="[object Object]";function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function overArg(e,t){return function(r){return e(t(r))}}var r=Function.prototype,i=Object.prototype;var n=r.toString;var s=i.hasOwnProperty;var o=n.call(Object);var c=i.toString;var h=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return!!e&&typeof e=="object"}function isPlainObject(e){if(!isObjectLike(e)||c.call(e)!=t||isHostObject(e)){return false}var r=h(e);if(r===null){return true}var i=s.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&n.call(i)==o}e.exports=isPlainObject},9508:function(e){function isUndefined(e){return e===undefined}e.exports=isUndefined},2516:function(e){var t=200;var r="__lodash_hash_undefined__";var i=1/0,n=9007199254740991;var s="[object Arguments]",o="[object Function]",c="[object GeneratorFunction]";var h=/[\\^$.*+?()[\]{}|]/g;var p=/^\[object .+?Constructor\]$/;var g=typeof global=="object"&&global&&global.Object===Object&&global;var y=typeof self=="object"&&self&&self.Object===Object&&self;var v=g||y||Function("return this")();function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var i=-1,n=e?e.length:0;while(++i<n){if(r(t,e[i])){return true}}return false}function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}function baseFindIndex(e,t,r,i){var n=e.length,s=r+(i?1:-1);while(i?s--:++s<n){if(t(e[s],s,e)){return s}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var i=r-1,n=e.length;while(++i<n){if(e[i]===t){return i}}return-1}function baseIsNaN(e){return e!==e}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var b=Array.prototype,_=Function.prototype,w=Object.prototype;var x=v["__core-js_shared__"];var S=function(){var e=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var k=_.toString;var C=w.hasOwnProperty;var E=w.toString;var R=RegExp("^"+k.call(C).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var O=v.Symbol,A=w.propertyIsEnumerable,I=b.splice,P=O?O.isConcatSpreadable:undefined;var N=Math.max;var F=getNative(v,"Map"),D=getNative(v,"Set"),L=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=L?L(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(L){var i=t[e];return i===r?undefined:i}return C.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return L?t[e]!==undefined:C.call(t,e)}function hashSet(e,t){var i=this.__data__;i[e]=L&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{I.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(F||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseFlatten(e,t,r,i,n){var s=-1,o=e.length;r||(r=isFlattenable);n||(n=[]);while(++s<o){var c=e[s];if(t>0&&r(c)){if(t>1){baseFlatten(c,t-1,r,i,n)}else{arrayPush(n,c)}}else if(!i){n[n.length]=c}}return n}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?R:p;return t.test(toSource(e))}function baseRest(e,t){t=N(t===undefined?e.length-1:t,0);return function(){var r=arguments,i=-1,n=N(r.length-t,0),s=Array(n);while(++i<n){s[i]=r[t+i]}i=-1;var o=Array(t+1);while(++i<t){o[i]=r[i]}o[t]=s;return apply(e,this,o)}}function baseUniq(e,r,i){var n=-1,s=arrayIncludes,o=e.length,c=true,h=[],p=h;if(i){c=false;s=arrayIncludesWith}else if(o>=t){var g=r?null:B(e);if(g){return setToArray(g)}c=false;s=cacheHas;p=new SetCache}else{p=r?[]:h}e:while(++n<o){var y=e[n],v=r?r(y):y;y=i||y!==0?y:0;if(c&&v===v){var b=p.length;while(b--){if(p[b]===v){continue e}}if(r){p.push(v)}h.push(y)}else if(!s(p,v,i)){if(p!==h){p.push(v)}h.push(y)}}return h}var B=!(D&&1/setToArray(new D([,-0]))[1]==i)?noop:function(e){return new D(e)};function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isFlattenable(e){return j(e)||isArguments(e)||!!(P&&e&&e[P])}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!S&&S in e}function toSource(e){if(e!=null){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var M=baseRest((function(e){return baseUniq(baseFlatten(e,1,isArrayLikeObject,true))}));function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&C.call(e,"callee")&&(!A.call(e,"callee")||E.call(e)==s)}var j=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?E.call(e):"";return t==o||t==c}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=n}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function noop(){}e.exports=M},9227:function(e){var t=200;var r="__lodash_hash_undefined__";var i=1/0;var n="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var c=/^\[object .+?Constructor\]$/;var h=typeof global=="object"&&global&&global.Object===Object&&global;var p=typeof self=="object"&&self&&self.Object===Object&&self;var g=h||p||Function("return this")();function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var i=-1,n=e?e.length:0;while(++i<n){if(r(t,e[i])){return true}}return false}function baseFindIndex(e,t,r,i){var n=e.length,s=r+(i?1:-1);while(i?s--:++s<n){if(t(e[s],s,e)){return s}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var i=r-1,n=e.length;while(++i<n){if(e[i]===t){return i}}return-1}function baseIsNaN(e){return e!==e}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var y=Array.prototype,v=Function.prototype,b=Object.prototype;var _=g["__core-js_shared__"];var w=function(){var e=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var x=v.toString;var S=b.hasOwnProperty;var k=b.toString;var C=RegExp("^"+x.call(S).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var E=y.splice;var R=getNative(g,"Map"),O=getNative(g,"Set"),A=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function hashClear(){this.__data__=A?A(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(A){var i=t[e];return i===r?undefined:i}return S.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return A?t[e]!==undefined:S.call(t,e)}function hashSet(e,t){var i=this.__data__;i[e]=A&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{E.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);if(i<0){r.push([e,t])}else{r[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(R||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?C:c;return t.test(toSource(e))}function baseUniq(e,r,i){var n=-1,s=arrayIncludes,o=e.length,c=true,h=[],p=h;if(i){c=false;s=arrayIncludesWith}else if(o>=t){var g=r?null:I(e);if(g){return setToArray(g)}c=false;s=cacheHas;p=new SetCache}else{p=r?[]:h}e:while(++n<o){var y=e[n],v=r?r(y):y;y=i||y!==0?y:0;if(c&&v===v){var b=p.length;while(b--){if(p[b]===v){continue e}}if(r){p.push(v)}h.push(y)}else if(!s(p,v,i)){if(p!==h){p.push(v)}h.push(y)}}return h}var I=!(O&&1/setToArray(new O([,-0]))[1]==i)?noop:function(e){return new O(e)};function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!w&&w in e}function toSource(e){if(e!=null){try{return x.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function uniq(e){return e&&e.length?baseUniq(e):[]}function eq(e,t){return e===t||e!==e&&t!==t}function isFunction(e){var t=isObject(e)?k.call(e):"";return t==n||t==s}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function noop(){}e.exports=uniq},6274:function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var i=function(){try{return r(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=i.sep;var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(5612);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var c="[^/]";var h=c+"*?";var p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var g="(?:(?!(?:\\/|^)\\.).)*?";var y=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var v=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,i,n){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,i,n){return t(r,i,ext(e,n))};r.Minimatch=function Minimatch(r,i){return new t.Minimatch(r,ext(e,i))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,i){return t.filter(r,ext(e,i))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,i){return t.makeRe(r,ext(e,i))};r.braceExpand=function braceExpand(r,i){return t.braceExpand(r,ext(e,i))};r.match=function(r,i,n){return t.match(r,i,ext(e,n))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&i.sep!=="/"){e=e.split(i.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(v)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var i=0;if(r.nonegate)return;for(var n=0,s=e.length;n<s&&e.charAt(n)==="!";n++){t=!t;i++}if(i)this.pattern=e.substr(i);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)}var b=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>b){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var _={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return n;else e="*"}if(e==="")return"";var i="";var s=!!r.nocase;var p=false;var g=[];var v=[];var b;var w=false;var x=-1;var S=-1;var k=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var C=this;function clearStateChar(){if(b){switch(b){case"*":i+=h;s=true;break;case"?":i+=c;s=true;break;default:i+="\\"+b;break}C.debug("clearStateChar %j %j",b,i);b=false}}for(var E=0,R=e.length,O;E<R&&(O=e.charAt(E));E++){this.debug("%s\t%s %s %j",e,E,i,O);if(p&&y[O]){i+="\\"+O;p=false;continue}switch(O){case"/":{return false}case"\\":clearStateChar();p=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,E,i,O);if(w){this.debug(" in class");if(O==="!"&&E===S+1)O="^";i+=O;continue}C.debug("call clearStateChar %j",b);clearStateChar();b=O;if(r.noext)clearStateChar();continue;case"(":if(w){i+="(";continue}if(!b){i+="\\(";continue}g.push({type:b,start:E-1,reStart:i.length,open:o[b].open,close:o[b].close});i+=b==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",b,i);b=false;continue;case")":if(w||!g.length){i+="\\)";continue}clearStateChar();s=true;var A=g.pop();i+=A.close;if(A.type==="!"){v.push(A)}A.reEnd=i.length;continue;case"|":if(w||!g.length||p){i+="\\|";p=false;continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(w){i+="\\"+O;continue}w=true;S=E;x=i.length;i+=O;continue;case"]":if(E===S+1||!w){i+="\\"+O;p=false;continue}var I=e.substring(S+1,E);try{RegExp("["+I+"]")}catch(e){var P=this.parse(I,_);i=i.substr(0,x)+"\\["+P[0]+"\\]";s=s||P[1];w=false;continue}s=true;w=false;i+=O;continue;default:clearStateChar();if(p){p=false}else if(y[O]&&!(O==="^"&&w)){i+="\\"}i+=O}}if(w){I=e.substr(S+1);P=this.parse(I,_);i=i.substr(0,x)+"\\["+P[0];s=s||P[1]}for(A=g.pop();A;A=g.pop()){var N=i.slice(A.reStart+A.open.length);this.debug("setting tail",i,A);N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",N,N,A,i);var F=A.type==="*"?h:A.type==="?"?c:"\\"+A.type;s=true;i=i.slice(0,A.reStart)+F+"\\("+N}clearStateChar();if(p){i+="\\\\"}var D=false;switch(i.charAt(0)){case"[":case".":case"(":D=true}for(var L=v.length-1;L>-1;L--){var B=v[L];var M=i.slice(0,B.reStart);var j=i.slice(B.reStart,B.reEnd-8);var z=i.slice(B.reEnd-8,B.reEnd);var W=i.slice(B.reEnd);z+=W;var H=M.split("(").length-1;var X=W;for(E=0;E<H;E++){X=X.replace(/\)[+*?]?/,"")}W=X;var $="";if(W===""&&t!==_){$="$"}var V=M+j+W+$+z;i=V}if(i!==""&&s){i="(?=.)"+i}if(D){i=k+i}if(t===_){return[i,s]}if(!s){return globUnescape(e)}var U=r.nocase?"i":"";try{var q=new RegExp("^"+i+"$",U)}catch(e){return new RegExp("$.")}q._glob=e;q._src=i;return q}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?h:t.dot?p:g;var i=t.nocase?"i":"";var s=e.map((function(e){return e.map((function(e){return e===n?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,i)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var i=new Minimatch(t,r);e=e.filter((function(e){return i.match(e)}));if(i.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(i.sep!=="/"){e=e.split(i.sep).join("/")}e=e.split(v);this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<n.length;o++){var c=n[o];var h=e;if(r.matchBase&&c.length===1){h=[s]}var p=this.matchOne(h,c,t);if(p){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,c=e.length,h=t.length;s<c&&o<h;s++,o++){this.debug("matchOne loop");var p=t[o];var g=e[s];this.debug(t,p,g);if(p===false)return false;if(p===n){this.debug("GLOBSTAR",[t,p,g]);var y=s;var v=o+1;if(v===h){this.debug("** at the end");for(;s<c;s++){if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return false}return true}while(y<c){var b=e[y];this.debug("\nglobstar while",e,y,t,v,b);if(this.matchOne(e.slice(y),t.slice(v),r)){this.debug("globstar found match!",y,c,b);return true}else{if(b==="."||b===".."||!i.dot&&b.charAt(0)==="."){this.debug("dot detected!",e,y,t,v);break}this.debug("globstar swallow a segment, and continue");y++}}if(r){this.debug("\n>>> no match, partial?",e,y,t,v);if(y===c)return true}return false}var _;if(typeof p==="string"){_=g===p;this.debug("string match",p,g,_)}else{_=g.match(p);this.debug("pattern match",p,g,_)}if(!_)return false}if(s===c&&o===h){return true}else if(s===c){return r}else if(o===h){return s===c-1&&e[s]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},3697:function(e){const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},9007:function(e,t,r){const i=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=i;const n=r(3697);i.sep=n.sep;const s=Symbol("globstar **");i.GLOBSTAR=s;const o=r(6083);const c={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const h="[^/]";const p=h+"*?";const g="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const y="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const v=charSet("().*{}+?[]^$\\!");const b=charSet("[.(");const _=/\/+/;i.filter=(e,t={})=>(r,n,s)=>i(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};i.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return i}const t=i;const m=(r,i,n)=>t(r,i,ext(e,n));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,i)=>t.filter(r,ext(e,i));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,i)=>t.makeRe(r,ext(e,i));m.braceExpand=(r,i)=>t.braceExpand(r,ext(e,i));m.match=(r,i,n)=>t.match(r,i,ext(e,n));return m};i.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return o(e)};const w=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>w){throw new TypeError("pattern is too long")}};const x=Symbol("subparse");i.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();i.match=(e,t,r={})=>{const i=new Minimatch(t,r);e=e.filter((e=>i.match(e)));if(i.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const charUnescape=e=>e.replace(/\\([^-\]])/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(_)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++){t=!t;r++}if(r)this.pattern=e.slice(r);this.negate=t}matchOne(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var n=0,o=0,c=e.length,h=t.length;n<c&&o<h;n++,o++){this.debug("matchOne loop");var p=t[o];var g=e[n];this.debug(t,p,g);if(p===false)return false;if(p===s){this.debug("GLOBSTAR",[t,p,g]);var y=n;var v=o+1;if(v===h){this.debug("** at the end");for(;n<c;n++){if(e[n]==="."||e[n]===".."||!i.dot&&e[n].charAt(0)===".")return false}return true}while(y<c){var b=e[y];this.debug("\nglobstar while",e,y,t,v,b);if(this.matchOne(e.slice(y),t.slice(v),r)){this.debug("globstar found match!",y,c,b);return true}else{if(b==="."||b===".."||!i.dot&&b.charAt(0)==="."){this.debug("dot detected!",e,y,t,v);break}this.debug("globstar swallow a segment, and continue");y++}}if(r){this.debug("\n>>> no match, partial?",e,y,t,v);if(y===c)return true}return false}var _;if(typeof p==="string"){_=g===p;this.debug("string match",p,g,_)}else{_=g.match(p);this.debug("pattern match",p,g,_)}if(!_)return false}if(n===c&&o===h){return true}else if(n===c){return r}else if(o===h){return n===c-1&&e[n]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";let i="";let n=false;let o=false;const g=[];const y=[];let _;let w=false;let S=-1;let k=-1;let C;let E;let R;let O=e.charAt(0)===".";let A=r.dot||O;const patternStart=()=>O?"":A?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=e=>e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(_){switch(_){case"*":i+=p;n=true;break;case"?":i+=h;n=true;break;default:i+="\\"+_;break}this.debug("clearStateChar %j %j",_,i);_=false}};for(let t=0,s;t<e.length&&(s=e.charAt(t));t++){this.debug("%s\t%s %s %j",e,t,i,s);if(o){if(s==="/"){return false}if(v[s]){i+="\\"}i+=s;o=false;continue}switch(s){case"/":{return false}case"\\":if(w&&e.charAt(t+1)==="-"){i+=s;continue}clearStateChar();o=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,t,i,s);if(w){this.debug(" in class");if(s==="!"&&t===k+1)s="^";i+=s;continue}this.debug("call clearStateChar %j",_);clearStateChar();_=s;if(r.noext)clearStateChar();continue;case"(":{if(w){i+="(";continue}if(!_){i+="\\(";continue}const r={type:_,start:t-1,reStart:i.length,open:c[_].open,close:c[_].close};this.debug(this.pattern,"\t",r);g.push(r);i+=r.open;if(r.start===0&&r.type!=="!"){O=true;i+=subPatternStart(e.slice(t+1))}this.debug("plType %j %j",_,i);_=false;continue}case")":{const e=g[g.length-1];if(w||!e){i+="\\)";continue}g.pop();clearStateChar();n=true;E=e;i+=E.close;if(E.type==="!"){y.push(Object.assign(E,{reEnd:i.length}))}continue}case"|":{const r=g[g.length-1];if(w||!r){i+="\\|";continue}clearStateChar();i+="|";if(r.start===0&&r.type!=="!"){O=true;i+=subPatternStart(e.slice(t+1))}continue}case"[":clearStateChar();if(w){i+="\\"+s;continue}w=true;k=t;S=i.length;i+=s;continue;case"]":if(t===k+1||!w){i+="\\"+s;continue}C=e.substring(k+1,t);try{RegExp("["+braExpEscape(charUnescape(C))+"]");i+=s}catch(e){i=i.substring(0,S)+"(?:$.)"}n=true;w=false;continue;default:clearStateChar();if(v[s]&&!(s==="^"&&w)){i+="\\"}i+=s;break}}if(w){C=e.slice(k+1);R=this.parse(C,x);i=i.substring(0,S)+"\\["+R[0];n=n||R[1]}for(E=g.pop();E;E=g.pop()){let e;e=i.slice(E.reStart+E.open.length);this.debug("setting tail",i,E);e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,E,i);const t=E.type==="*"?p:E.type==="?"?h:"\\"+E.type;n=true;i=i.slice(0,E.reStart)+t+"\\("+e}clearStateChar();if(o){i+="\\\\"}const I=b[i.charAt(0)];for(let e=y.length-1;e>-1;e--){const r=y[e];const n=i.slice(0,r.reStart);const s=i.slice(r.reStart,r.reEnd-8);let o=i.slice(r.reEnd);const c=i.slice(r.reEnd-8,r.reEnd)+o;const h=n.split(")").length;const p=n.split("(").length-h;let g=o;for(let e=0;e<p;e++){g=g.replace(/\)[+*?]?/,"")}o=g;const v=o===""&&t!==x?"(?:$|\\/)":"";i=n+s+o+v+c}if(i!==""&&n){i="(?=.)"+i}if(I){i=patternStart()+i}if(t===x){return[i,n]}if(r.nocase&&!n){n=e.toUpperCase()!==e.toLowerCase()}if(!n){return globUnescape(e)}const P=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",P),{_glob:e,_src:i})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const r=t.noglobstar?p:t.dot?g:y;const i=t.nocase?"i":"";let n=e.map((e=>{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===s?s:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===s&&t===s)){e.push(t)}return e}),[]);e.forEach(((t,i)=>{if(t!==s||e[i-1]===s){return}if(i===0){if(e.length>1){e[i+1]="(?:\\/|"+r+"\\/)?"+e[i+1]}else{e[i]=r}}else if(i===e.length-1){e[i-1]+="(?:\\/|"+r+")?"}else{e[i-1]+="(?:\\/|\\/"+r+"\\/)"+e[i+1];e[i+1]=s}}));return e.filter((e=>e!==s)).join("/")})).join("|");n="^(?:"+n+")$";if(this.negate)n="^(?!"+n+").*$";try{this.regexp=new RegExp(n,i)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(_);this.debug(this.pattern,"split",e);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let t=e.length-1;t>=0;t--){s=e[t];if(s)break}for(let n=0;n<i.length;n++){const o=i[n];let c=e;if(r.matchBase&&o.length===1){c=[s]}const h=this.matchOne(c,o,t);if(h){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(e){return i.defaults(e).Minimatch}}i.Minimatch=Minimatch},9403:function(e,t,r){var i=r(6928);var n=r(9896);var s=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,o){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var c=t.mode;var h=t.fs||n;if(c===undefined){c=s}if(!o)o=null;var p=r||function(){};e=i.resolve(e);h.mkdir(e,c,(function(r){if(!r){o=o||e;return p(null,o)}switch(r.code){case"ENOENT":if(i.dirname(e)===e)return p(r);mkdirP(i.dirname(e),t,(function(r,i){if(r)p(r,i);else mkdirP(e,t,p,i)}));break;default:h.stat(e,(function(e,t){if(e||!t.isDirectory())p(r,o);else p(null,o)}));break}}))}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var c=t.fs||n;if(o===undefined){o=s}if(!r)r=null;e=i.resolve(e);try{c.mkdirSync(e,o);r=r||e}catch(n){switch(n.code){case"ENOENT":r=sync(i.dirname(e),t,r);sync(e,t,r);break;default:var h;try{h=c.statSync(e)}catch(e){throw n}if(!h.isDirectory())throw n;break}}return r}},4527:function(e){
52
52
  /*!
53
53
  * normalize-path <https://github.com/jonschlinkert/normalize-path>
54
54
  *
@@ -57,7 +57,7 @@ var r;(function(e){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){e(t)}else
57
57
  */
58
58
  e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var i="";if(r>4&&e[3]==="\\"){var n=e[2];if((n==="?"||n===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);i="//"}}var s=e.split(/[/\\]+/);if(t!==false&&s[s.length-1]===""){s.pop()}return i+s.join("/")}},8068:function(e,t,r){var i=r(8092);e.exports=i(once);e.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},2719:function(e,t,r){"use strict";var i=r(8288).assign;var n=r(7900);var s=r(5632);var o=r(6688);var c={};i(c,n,s,o);e.exports=c},7900:function(e,t,r){"use strict";var i=r(5822);var n=r(8288);var s=r(9903);var o=r(4929);var c=r(6559);var h=Object.prototype.toString;var p=0;var g=4;var y=0;var v=1;var b=2;var _=-1;var w=0;var x=8;function Deflate(e){if(!(this instanceof Deflate))return new Deflate(e);this.options=n.assign({level:_,method:x,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},e||{});var t=this.options;if(t.raw&&t.windowBits>0){t.windowBits=-t.windowBits}else if(t.gzip&&t.windowBits>0&&t.windowBits<16){t.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new c;this.strm.avail_out=0;var r=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==y){throw new Error(o[r])}if(t.header){i.deflateSetHeader(this.strm,t.header)}if(t.dictionary){var p;if(typeof t.dictionary==="string"){p=s.string2buf(t.dictionary)}else if(h.call(t.dictionary)==="[object ArrayBuffer]"){p=new Uint8Array(t.dictionary)}else{p=t.dictionary}r=i.deflateSetDictionary(this.strm,p);if(r!==y){throw new Error(o[r])}this._dict_set=true}}Deflate.prototype.push=function(e,t){var r=this.strm;var o=this.options.chunkSize;var c,_;if(this.ended){return false}_=t===~~t?t:t===true?g:p;if(typeof e==="string"){r.input=s.string2buf(e)}else if(h.call(e)==="[object ArrayBuffer]"){r.input=new Uint8Array(e)}else{r.input=e}r.next_in=0;r.avail_in=r.input.length;do{if(r.avail_out===0){r.output=new n.Buf8(o);r.next_out=0;r.avail_out=o}c=i.deflate(r,_);if(c!==v&&c!==y){this.onEnd(c);this.ended=true;return false}if(r.avail_out===0||r.avail_in===0&&(_===g||_===b)){if(this.options.to==="string"){this.onData(s.buf2binstring(n.shrinkBuf(r.output,r.next_out)))}else{this.onData(n.shrinkBuf(r.output,r.next_out))}}}while((r.avail_in>0||r.avail_out===0)&&c!==v);if(_===g){c=i.deflateEnd(this.strm);this.onEnd(c);this.ended=true;return c===y}if(_===b){this.onEnd(y);r.avail_out=0;return true}return true};Deflate.prototype.onData=function(e){this.chunks.push(e)};Deflate.prototype.onEnd=function(e){if(e===y){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=n.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function deflate(e,t){var r=new Deflate(t);r.push(e,true);if(r.err){throw r.msg||o[r.err]}return r.result}function deflateRaw(e,t){t=t||{};t.raw=true;return deflate(e,t)}function gzip(e,t){t=t||{};t.gzip=true;return deflate(e,t)}t.Deflate=Deflate;t.deflate=deflate;t.deflateRaw=deflateRaw;t.gzip=gzip},5632:function(e,t,r){"use strict";var i=r(6142);var n=r(8288);var s=r(9903);var o=r(6688);var c=r(4929);var h=r(6559);var p=r(3193);var g=Object.prototype.toString;function Inflate(e){if(!(this instanceof Inflate))return new Inflate(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;if(t.raw&&t.windowBits>=0&&t.windowBits<16){t.windowBits=-t.windowBits;if(t.windowBits===0){t.windowBits=-15}}if(t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)){t.windowBits+=32}if(t.windowBits>15&&t.windowBits<48){if((t.windowBits&15)===0){t.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new h;this.strm.avail_out=0;var r=i.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK){throw new Error(c[r])}this.header=new p;i.inflateGetHeader(this.strm,this.header);if(t.dictionary){if(typeof t.dictionary==="string"){t.dictionary=s.string2buf(t.dictionary)}else if(g.call(t.dictionary)==="[object ArrayBuffer]"){t.dictionary=new Uint8Array(t.dictionary)}if(t.raw){r=i.inflateSetDictionary(this.strm,t.dictionary);if(r!==o.Z_OK){throw new Error(c[r])}}}}Inflate.prototype.push=function(e,t){var r=this.strm;var c=this.options.chunkSize;var h=this.options.dictionary;var p,y;var v,b,_;var w=false;if(this.ended){return false}y=t===~~t?t:t===true?o.Z_FINISH:o.Z_NO_FLUSH;if(typeof e==="string"){r.input=s.binstring2buf(e)}else if(g.call(e)==="[object ArrayBuffer]"){r.input=new Uint8Array(e)}else{r.input=e}r.next_in=0;r.avail_in=r.input.length;do{if(r.avail_out===0){r.output=new n.Buf8(c);r.next_out=0;r.avail_out=c}p=i.inflate(r,o.Z_NO_FLUSH);if(p===o.Z_NEED_DICT&&h){p=i.inflateSetDictionary(this.strm,h)}if(p===o.Z_BUF_ERROR&&w===true){p=o.Z_OK;w=false}if(p!==o.Z_STREAM_END&&p!==o.Z_OK){this.onEnd(p);this.ended=true;return false}if(r.next_out){if(r.avail_out===0||p===o.Z_STREAM_END||r.avail_in===0&&(y===o.Z_FINISH||y===o.Z_SYNC_FLUSH)){if(this.options.to==="string"){v=s.utf8border(r.output,r.next_out);b=r.next_out-v;_=s.buf2string(r.output,v);r.next_out=b;r.avail_out=c-b;if(b){n.arraySet(r.output,r.output,v,b,0)}this.onData(_)}else{this.onData(n.shrinkBuf(r.output,r.next_out))}}}if(r.avail_in===0&&r.avail_out===0){w=true}}while((r.avail_in>0||r.avail_out===0)&&p!==o.Z_STREAM_END);if(p===o.Z_STREAM_END){y=o.Z_FINISH}if(y===o.Z_FINISH){p=i.inflateEnd(this.strm);this.onEnd(p);this.ended=true;return p===o.Z_OK}if(y===o.Z_SYNC_FLUSH){this.onEnd(o.Z_OK);r.avail_out=0;return true}return true};Inflate.prototype.onData=function(e){this.chunks.push(e)};Inflate.prototype.onEnd=function(e){if(e===o.Z_OK){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=n.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function inflate(e,t){var r=new Inflate(t);r.push(e,true);if(r.err){throw r.msg||c[r.err]}return r.result}function inflateRaw(e,t){t=t||{};t.raw=true;return inflate(e,t)}t.Inflate=Inflate;t.inflate=inflate;t.inflateRaw=inflateRaw;t.ungzip=inflate},8288:function(e,t){"use strict";var r=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function _has(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var r=t.shift();if(!r){continue}if(typeof r!=="object"){throw new TypeError(r+"must be non-object")}for(var i in r){if(_has(r,i)){e[i]=r[i]}}}return e};t.shrinkBuf=function(e,t){if(e.length===t){return e}if(e.subarray){return e.subarray(0,t)}e.length=t;return e};var i={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var s=0;s<i;s++){e[n+s]=t[r+s]}},flattenChunks:function(e){var t,r,i,n,s,o;i=0;for(t=0,r=e.length;t<r;t++){i+=e[t].length}o=new Uint8Array(i);n=0;for(t=0,r=e.length;t<r;t++){s=e[t];o.set(s,n);n+=s.length}return o}};var n={arraySet:function(e,t,r,i,n){for(var s=0;s<i;s++){e[n+s]=t[r+s]}},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){if(e){t.Buf8=Uint8Array;t.Buf16=Uint16Array;t.Buf32=Int32Array;t.assign(t,i)}else{t.Buf8=Array;t.Buf16=Array;t.Buf32=Array;t.assign(t,n)}};t.setTyped(r)},9903:function(e,t,r){"use strict";var i=r(8288);var n=true;var s=true;try{String.fromCharCode.apply(null,[0])}catch(e){n=false}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=false}var o=new i.Buf8(256);for(var c=0;c<256;c++){o[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1}o[254]=o[254]=1;t.string2buf=function(e){var t,r,n,s,o,c=e.length,h=0;for(s=0;s<c;s++){r=e.charCodeAt(s);if((r&64512)===55296&&s+1<c){n=e.charCodeAt(s+1);if((n&64512)===56320){r=65536+(r-55296<<10)+(n-56320);s++}}h+=r<128?1:r<2048?2:r<65536?3:4}t=new i.Buf8(h);for(o=0,s=0;o<h;s++){r=e.charCodeAt(s);if((r&64512)===55296&&s+1<c){n=e.charCodeAt(s+1);if((n&64512)===56320){r=65536+(r-55296<<10)+(n-56320);s++}}if(r<128){t[o++]=r}else if(r<2048){t[o++]=192|r>>>6;t[o++]=128|r&63}else if(r<65536){t[o++]=224|r>>>12;t[o++]=128|r>>>6&63;t[o++]=128|r&63}else{t[o++]=240|r>>>18;t[o++]=128|r>>>12&63;t[o++]=128|r>>>6&63;t[o++]=128|r&63}}return t};function buf2binstring(e,t){if(t<65534){if(e.subarray&&s||!e.subarray&&n){return String.fromCharCode.apply(null,i.shrinkBuf(e,t))}}var r="";for(var o=0;o<t;o++){r+=String.fromCharCode(e[o])}return r}t.buf2binstring=function(e){return buf2binstring(e,e.length)};t.binstring2buf=function(e){var t=new i.Buf8(e.length);for(var r=0,n=t.length;r<n;r++){t[r]=e.charCodeAt(r)}return t};t.buf2string=function(e,t){var r,i,n,s;var c=t||e.length;var h=new Array(c*2);for(i=0,r=0;r<c;){n=e[r++];if(n<128){h[i++]=n;continue}s=o[n];if(s>4){h[i++]=65533;r+=s-1;continue}n&=s===2?31:s===3?15:7;while(s>1&&r<c){n=n<<6|e[r++]&63;s--}if(s>1){h[i++]=65533;continue}if(n<65536){h[i++]=n}else{n-=65536;h[i++]=55296|n>>10&1023;h[i++]=56320|n&1023}}return buf2binstring(h,i)};t.utf8border=function(e,t){var r;t=t||e.length;if(t>e.length){t=e.length}r=t-1;while(r>=0&&(e[r]&192)===128){r--}if(r<0){return t}if(r===0){return t}return r+o[e[r]]>t?r:t}},8360:function(e){"use strict";function adler32(e,t,r,i){var n=e&65535|0,s=e>>>16&65535|0,o=0;while(r!==0){o=r>2e3?2e3:r;r-=o;do{n=n+t[i++]|0;s=s+n|0}while(--o);n%=65521;s%=65521}return n|s<<16|0}e.exports=adler32},6688:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},1114:function(e){"use strict";function makeTable(){var e,t=[];for(var r=0;r<256;r++){e=r;for(var i=0;i<8;i++){e=e&1?3988292384^e>>>1:e>>>1}t[r]=e}return t}var t=makeTable();function crc32(e,r,i,n){var s=t,o=n+i;e^=-1;for(var c=n;c<o;c++){e=e>>>8^s[(e^r[c])&255]}return e^-1}e.exports=crc32},5822:function(e,t,r){"use strict";var i=r(8288);var n=r(460);var s=r(8360);var o=r(1114);var c=r(4929);var h=0;var p=1;var g=3;var y=4;var v=5;var b=0;var _=1;var w=-2;var x=-3;var S=-5;var k=-1;var C=1;var E=2;var R=3;var O=4;var A=0;var I=2;var P=8;var N=9;var F=15;var D=8;var L=29;var B=256;var M=B+1+L;var j=30;var z=19;var W=2*M+1;var H=15;var X=3;var $=258;var V=$+X+1;var U=32;var q=42;var G=69;var Z=73;var Y=91;var K=103;var Q=113;var J=666;var ee=1;var te=2;var re=3;var ie=4;var ne=3;function err(e,t){e.msg=c[t];return t}function rank(e){return(e<<1)-(e>4?9:0)}function zero(e){var t=e.length;while(--t>=0){e[t]=0}}function flush_pending(e){var t=e.state;var r=t.pending;if(r>e.avail_out){r=e.avail_out}if(r===0){return}i.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;if(t.pending===0){t.pending_out=0}}function flush_block_only(e,t){n._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t);e.block_start=e.strstart;flush_pending(e.strm)}function put_byte(e,t){e.pending_buf[e.pending++]=t}function putShortMSB(e,t){e.pending_buf[e.pending++]=t>>>8&255;e.pending_buf[e.pending++]=t&255}function read_buf(e,t,r,n){var c=e.avail_in;if(c>n){c=n}if(c===0){return 0}e.avail_in-=c;i.arraySet(t,e.input,e.next_in,c,r);if(e.state.wrap===1){e.adler=s(e.adler,t,c,r)}else if(e.state.wrap===2){e.adler=o(e.adler,t,c,r)}e.next_in+=c;e.total_in+=c;return c}function longest_match(e,t){var r=e.max_chain_length;var i=e.strstart;var n;var s;var o=e.prev_length;var c=e.nice_match;var h=e.strstart>e.w_size-V?e.strstart-(e.w_size-V):0;var p=e.window;var g=e.w_mask;var y=e.prev;var v=e.strstart+$;var b=p[i+o-1];var _=p[i+o];if(e.prev_length>=e.good_match){r>>=2}if(c>e.lookahead){c=e.lookahead}do{n=t;if(p[n+o]!==_||p[n+o-1]!==b||p[n]!==p[i]||p[++n]!==p[i+1]){continue}i+=2;n++;do{}while(p[++i]===p[++n]&&p[++i]===p[++n]&&p[++i]===p[++n]&&p[++i]===p[++n]&&p[++i]===p[++n]&&p[++i]===p[++n]&&p[++i]===p[++n]&&p[++i]===p[++n]&&i<v);s=$-(v-i);i=v-$;if(s>o){e.match_start=t;o=s;if(s>=c){break}b=p[i+o-1];_=p[i+o]}}while((t=y[t&g])>h&&--r!==0);if(o<=e.lookahead){return o}return e.lookahead}function fill_window(e){var t=e.w_size;var r,n,s,o,c;do{o=e.window_size-e.lookahead-e.strstart;if(e.strstart>=t+(t-V)){i.arraySet(e.window,e.window,t,t,0);e.match_start-=t;e.strstart-=t;e.block_start-=t;n=e.hash_size;r=n;do{s=e.head[--r];e.head[r]=s>=t?s-t:0}while(--n);n=t;r=n;do{s=e.prev[--r];e.prev[r]=s>=t?s-t:0}while(--n);o+=t}if(e.strm.avail_in===0){break}n=read_buf(e.strm,e.window,e.strstart+e.lookahead,o);e.lookahead+=n;if(e.lookahead+e.insert>=X){c=e.strstart-e.insert;e.ins_h=e.window[c];e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;while(e.insert){e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+X-1])&e.hash_mask;e.prev[c&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=c;c++;e.insert--;if(e.lookahead+e.insert<X){break}}}}while(e.lookahead<V&&e.strm.avail_in!==0)}function deflate_stored(e,t){var r=65535;if(r>e.pending_buf_size-5){r=e.pending_buf_size-5}for(;;){if(e.lookahead<=1){fill_window(e);if(e.lookahead===0&&t===h){return ee}if(e.lookahead===0){break}}e.strstart+=e.lookahead;e.lookahead=0;var i=e.block_start+r;if(e.strstart===0||e.strstart>=i){e.lookahead=e.strstart-i;e.strstart=i;flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}if(e.strstart-e.block_start>=e.w_size-V){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}}e.insert=0;if(t===y){flush_block_only(e,true);if(e.strm.avail_out===0){return re}return ie}if(e.strstart>e.block_start){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}return ee}function deflate_fast(e,t){var r;var i;for(;;){if(e.lookahead<V){fill_window(e);if(e.lookahead<V&&t===h){return ee}if(e.lookahead===0){break}}r=0;if(e.lookahead>=X){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+X-1])&e.hash_mask;r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}if(r!==0&&e.strstart-r<=e.w_size-V){e.match_length=longest_match(e,r)}if(e.match_length>=X){i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-X);e.lookahead-=e.match_length;if(e.match_length<=e.max_lazy_match&&e.lookahead>=X){e.match_length--;do{e.strstart++;e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+X-1])&e.hash_mask;r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}while(--e.match_length!==0);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{i=n._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++}if(i){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}}e.insert=e.strstart<X-1?e.strstart:X-1;if(t===y){flush_block_only(e,true);if(e.strm.avail_out===0){return re}return ie}if(e.last_lit){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}return te}function deflate_slow(e,t){var r;var i;var s;for(;;){if(e.lookahead<V){fill_window(e);if(e.lookahead<V&&t===h){return ee}if(e.lookahead===0){break}}r=0;if(e.lookahead>=X){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+X-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=X-1;if(r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-V){e.match_length=longest_match(e,r);if(e.match_length<=5&&(e.strategy===C||e.match_length===X&&e.strstart-e.match_start>4096)){e.match_length=X-1}}if(e.prev_length>=X&&e.match_length<=e.prev_length){s=e.strstart+e.lookahead-X;i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-X);e.lookahead-=e.prev_length-1;e.prev_length-=2;do{if(++e.strstart<=s){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+X-1])&e.hash_mask;r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}}while(--e.prev_length!==0);e.match_available=0;e.match_length=X-1;e.strstart++;if(i){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}}else if(e.match_available){i=n._tr_tally(e,0,e.window[e.strstart-1]);if(i){flush_block_only(e,false)}e.strstart++;e.lookahead--;if(e.strm.avail_out===0){return ee}}else{e.match_available=1;e.strstart++;e.lookahead--}}if(e.match_available){i=n._tr_tally(e,0,e.window[e.strstart-1]);e.match_available=0}e.insert=e.strstart<X-1?e.strstart:X-1;if(t===y){flush_block_only(e,true);if(e.strm.avail_out===0){return re}return ie}if(e.last_lit){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}return te}function deflate_rle(e,t){var r;var i;var s,o;var c=e.window;for(;;){if(e.lookahead<=$){fill_window(e);if(e.lookahead<=$&&t===h){return ee}if(e.lookahead===0){break}}e.match_length=0;if(e.lookahead>=X&&e.strstart>0){s=e.strstart-1;i=c[s];if(i===c[++s]&&i===c[++s]&&i===c[++s]){o=e.strstart+$;do{}while(i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&s<o);e.match_length=$-(o-s);if(e.match_length>e.lookahead){e.match_length=e.lookahead}}}if(e.match_length>=X){r=n._tr_tally(e,1,e.match_length-X);e.lookahead-=e.match_length;e.strstart+=e.match_length;e.match_length=0}else{r=n._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++}if(r){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}}e.insert=0;if(t===y){flush_block_only(e,true);if(e.strm.avail_out===0){return re}return ie}if(e.last_lit){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}return te}function deflate_huff(e,t){var r;for(;;){if(e.lookahead===0){fill_window(e);if(e.lookahead===0){if(t===h){return ee}break}}e.match_length=0;r=n._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++;if(r){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}}e.insert=0;if(t===y){flush_block_only(e,true);if(e.strm.avail_out===0){return re}return ie}if(e.last_lit){flush_block_only(e,false);if(e.strm.avail_out===0){return ee}}return te}function Config(e,t,r,i,n){this.good_length=e;this.max_lazy=t;this.nice_length=r;this.max_chain=i;this.func=n}var se;se=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)];function lm_init(e){e.window_size=2*e.w_size;zero(e.head);e.max_lazy_match=se[e.level].max_lazy;e.good_match=se[e.level].good_length;e.nice_match=se[e.level].nice_length;e.max_chain_length=se[e.level].max_chain;e.strstart=0;e.block_start=0;e.lookahead=0;e.insert=0;e.match_length=e.prev_length=X-1;e.match_available=0;e.ins_h=0}function DeflateState(){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=P;this.last_flush=-1;this.w_size=0;this.w_bits=0;this.w_mask=0;this.window=null;this.window_size=0;this.prev=null;this.head=null;this.ins_h=0;this.hash_size=0;this.hash_bits=0;this.hash_mask=0;this.hash_shift=0;this.block_start=0;this.match_length=0;this.prev_match=0;this.match_available=0;this.strstart=0;this.match_start=0;this.lookahead=0;this.prev_length=0;this.max_chain_length=0;this.max_lazy_match=0;this.level=0;this.strategy=0;this.good_match=0;this.nice_match=0;this.dyn_ltree=new i.Buf16(W*2);this.dyn_dtree=new i.Buf16((2*j+1)*2);this.bl_tree=new i.Buf16((2*z+1)*2);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new i.Buf16(H+1);this.heap=new i.Buf16(2*M+1);zero(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new i.Buf16(2*M+1);zero(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 deflateResetKeep(e){var t;if(!e||!e.state){return err(e,w)}e.total_in=e.total_out=0;e.data_type=I;t=e.state;t.pending=0;t.pending_out=0;if(t.wrap<0){t.wrap=-t.wrap}t.status=t.wrap?q:Q;e.adler=t.wrap===2?0:1;t.last_flush=h;n._tr_init(t);return b}function deflateReset(e){var t=deflateResetKeep(e);if(t===b){lm_init(e.state)}return t}function deflateSetHeader(e,t){if(!e||!e.state){return w}if(e.state.wrap!==2){return w}e.state.gzhead=t;return b}function deflateInit2(e,t,r,n,s,o){if(!e){return w}var c=1;if(t===k){t=6}if(n<0){c=0;n=-n}else if(n>15){c=2;n-=16}if(s<1||s>N||r!==P||n<8||n>15||t<0||t>9||o<0||o>O){return err(e,w)}if(n===8){n=9}var h=new DeflateState;e.state=h;h.strm=e;h.wrap=c;h.gzhead=null;h.w_bits=n;h.w_size=1<<h.w_bits;h.w_mask=h.w_size-1;h.hash_bits=s+7;h.hash_size=1<<h.hash_bits;h.hash_mask=h.hash_size-1;h.hash_shift=~~((h.hash_bits+X-1)/X);h.window=new i.Buf8(h.w_size*2);h.head=new i.Buf16(h.hash_size);h.prev=new i.Buf16(h.w_size);h.lit_bufsize=1<<s+6;h.pending_buf_size=h.lit_bufsize*4;h.pending_buf=new i.Buf8(h.pending_buf_size);h.d_buf=1*h.lit_bufsize;h.l_buf=(1+2)*h.lit_bufsize;h.level=t;h.strategy=o;h.method=r;return deflateReset(e)}function deflateInit(e,t){return deflateInit2(e,t,P,F,D,A)}function deflate(e,t){var r,i;var s,c;if(!e||!e.state||t>v||t<0){return e?err(e,w):w}i=e.state;if(!e.output||!e.input&&e.avail_in!==0||i.status===J&&t!==y){return err(e,e.avail_out===0?S:w)}i.strm=e;r=i.last_flush;i.last_flush=t;if(i.status===q){if(i.wrap===2){e.adler=0;put_byte(i,31);put_byte(i,139);put_byte(i,8);if(!i.gzhead){put_byte(i,0);put_byte(i,0);put_byte(i,0);put_byte(i,0);put_byte(i,0);put_byte(i,i.level===9?2:i.strategy>=E||i.level<2?4:0);put_byte(i,ne);i.status=Q}else{put_byte(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(!i.gzhead.extra?0:4)+(!i.gzhead.name?0:8)+(!i.gzhead.comment?0:16));put_byte(i,i.gzhead.time&255);put_byte(i,i.gzhead.time>>8&255);put_byte(i,i.gzhead.time>>16&255);put_byte(i,i.gzhead.time>>24&255);put_byte(i,i.level===9?2:i.strategy>=E||i.level<2?4:0);put_byte(i,i.gzhead.os&255);if(i.gzhead.extra&&i.gzhead.extra.length){put_byte(i,i.gzhead.extra.length&255);put_byte(i,i.gzhead.extra.length>>8&255)}if(i.gzhead.hcrc){e.adler=o(e.adler,i.pending_buf,i.pending,0)}i.gzindex=0;i.status=G}}else{var x=P+(i.w_bits-8<<4)<<8;var k=-1;if(i.strategy>=E||i.level<2){k=0}else if(i.level<6){k=1}else if(i.level===6){k=2}else{k=3}x|=k<<6;if(i.strstart!==0){x|=U}x+=31-x%31;i.status=Q;putShortMSB(i,x);if(i.strstart!==0){putShortMSB(i,e.adler>>>16);putShortMSB(i,e.adler&65535)}e.adler=1}}if(i.status===G){if(i.gzhead.extra){s=i.pending;while(i.gzindex<(i.gzhead.extra.length&65535)){if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>s){e.adler=o(e.adler,i.pending_buf,i.pending-s,s)}flush_pending(e);s=i.pending;if(i.pending===i.pending_buf_size){break}}put_byte(i,i.gzhead.extra[i.gzindex]&255);i.gzindex++}if(i.gzhead.hcrc&&i.pending>s){e.adler=o(e.adler,i.pending_buf,i.pending-s,s)}if(i.gzindex===i.gzhead.extra.length){i.gzindex=0;i.status=Z}}else{i.status=Z}}if(i.status===Z){if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>s){e.adler=o(e.adler,i.pending_buf,i.pending-s,s)}flush_pending(e);s=i.pending;if(i.pending===i.pending_buf_size){c=1;break}}if(i.gzindex<i.gzhead.name.length){c=i.gzhead.name.charCodeAt(i.gzindex++)&255}else{c=0}put_byte(i,c)}while(c!==0);if(i.gzhead.hcrc&&i.pending>s){e.adler=o(e.adler,i.pending_buf,i.pending-s,s)}if(c===0){i.gzindex=0;i.status=Y}}else{i.status=Y}}if(i.status===Y){if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>s){e.adler=o(e.adler,i.pending_buf,i.pending-s,s)}flush_pending(e);s=i.pending;if(i.pending===i.pending_buf_size){c=1;break}}if(i.gzindex<i.gzhead.comment.length){c=i.gzhead.comment.charCodeAt(i.gzindex++)&255}else{c=0}put_byte(i,c)}while(c!==0);if(i.gzhead.hcrc&&i.pending>s){e.adler=o(e.adler,i.pending_buf,i.pending-s,s)}if(c===0){i.status=K}}else{i.status=K}}if(i.status===K){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size){flush_pending(e)}if(i.pending+2<=i.pending_buf_size){put_byte(i,e.adler&255);put_byte(i,e.adler>>8&255);e.adler=0;i.status=Q}}else{i.status=Q}}if(i.pending!==0){flush_pending(e);if(e.avail_out===0){i.last_flush=-1;return b}}else if(e.avail_in===0&&rank(t)<=rank(r)&&t!==y){return err(e,S)}if(i.status===J&&e.avail_in!==0){return err(e,S)}if(e.avail_in!==0||i.lookahead!==0||t!==h&&i.status!==J){var C=i.strategy===E?deflate_huff(i,t):i.strategy===R?deflate_rle(i,t):se[i.level].func(i,t);if(C===re||C===ie){i.status=J}if(C===ee||C===re){if(e.avail_out===0){i.last_flush=-1}return b}if(C===te){if(t===p){n._tr_align(i)}else if(t!==v){n._tr_stored_block(i,0,0,false);if(t===g){zero(i.head);if(i.lookahead===0){i.strstart=0;i.block_start=0;i.insert=0}}}flush_pending(e);if(e.avail_out===0){i.last_flush=-1;return b}}}if(t!==y){return b}if(i.wrap<=0){return _}if(i.wrap===2){put_byte(i,e.adler&255);put_byte(i,e.adler>>8&255);put_byte(i,e.adler>>16&255);put_byte(i,e.adler>>24&255);put_byte(i,e.total_in&255);put_byte(i,e.total_in>>8&255);put_byte(i,e.total_in>>16&255);put_byte(i,e.total_in>>24&255)}else{putShortMSB(i,e.adler>>>16);putShortMSB(i,e.adler&65535)}flush_pending(e);if(i.wrap>0){i.wrap=-i.wrap}return i.pending!==0?b:_}function deflateEnd(e){var t;if(!e||!e.state){return w}t=e.state.status;if(t!==q&&t!==G&&t!==Z&&t!==Y&&t!==K&&t!==Q&&t!==J){return err(e,w)}e.state=null;return t===Q?err(e,x):b}function deflateSetDictionary(e,t){var r=t.length;var n;var o,c;var h;var p;var g;var y;var v;if(!e||!e.state){return w}n=e.state;h=n.wrap;if(h===2||h===1&&n.status!==q||n.lookahead){return w}if(h===1){e.adler=s(e.adler,t,r,0)}n.wrap=0;if(r>=n.w_size){if(h===0){zero(n.head);n.strstart=0;n.block_start=0;n.insert=0}v=new i.Buf8(n.w_size);i.arraySet(v,t,r-n.w_size,n.w_size,0);t=v;r=n.w_size}p=e.avail_in;g=e.next_in;y=e.input;e.avail_in=r;e.next_in=0;e.input=t;fill_window(n);while(n.lookahead>=X){o=n.strstart;c=n.lookahead-(X-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[o+X-1])&n.hash_mask;n.prev[o&n.w_mask]=n.head[n.ins_h];n.head[n.ins_h]=o;o++}while(--c);n.strstart=o;n.lookahead=X-1;fill_window(n)}n.strstart+=n.lookahead;n.block_start=n.strstart;n.insert=n.lookahead;n.lookahead=0;n.match_length=n.prev_length=X-1;n.match_available=0;e.next_in=g;e.input=y;e.avail_in=p;n.wrap=h;return b}t.deflateInit=deflateInit;t.deflateInit2=deflateInit2;t.deflateReset=deflateReset;t.deflateResetKeep=deflateResetKeep;t.deflateSetHeader=deflateSetHeader;t.deflate=deflate;t.deflateEnd=deflateEnd;t.deflateSetDictionary=deflateSetDictionary;t.deflateInfo="pako deflate (from Nodeca project)"},3193:function(e){"use strict";function GZheader(){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=false}e.exports=GZheader},7120:function(e){"use strict";var t=30;var r=12;e.exports=function inflate_fast(e,i){var n;var s;var o;var c;var h;var p;var g;var y;var v;var b;var _;var w;var x;var S;var k;var C;var E;var R;var O;var A;var I;var P;var N;var F,D;n=e.state;s=e.next_in;F=e.input;o=s+(e.avail_in-5);c=e.next_out;D=e.output;h=c-(i-e.avail_out);p=c+(e.avail_out-257);g=n.dmax;y=n.wsize;v=n.whave;b=n.wnext;_=n.window;w=n.hold;x=n.bits;S=n.lencode;k=n.distcode;C=(1<<n.lenbits)-1;E=(1<<n.distbits)-1;e:do{if(x<15){w+=F[s++]<<x;x+=8;w+=F[s++]<<x;x+=8}R=S[w&C];t:for(;;){O=R>>>24;w>>>=O;x-=O;O=R>>>16&255;if(O===0){D[c++]=R&65535}else if(O&16){A=R&65535;O&=15;if(O){if(x<O){w+=F[s++]<<x;x+=8}A+=w&(1<<O)-1;w>>>=O;x-=O}if(x<15){w+=F[s++]<<x;x+=8;w+=F[s++]<<x;x+=8}R=k[w&E];r:for(;;){O=R>>>24;w>>>=O;x-=O;O=R>>>16&255;if(O&16){I=R&65535;O&=15;if(x<O){w+=F[s++]<<x;x+=8;if(x<O){w+=F[s++]<<x;x+=8}}I+=w&(1<<O)-1;if(I>g){e.msg="invalid distance too far back";n.mode=t;break e}w>>>=O;x-=O;O=c-h;if(I>O){O=I-O;if(O>v){if(n.sane){e.msg="invalid distance too far back";n.mode=t;break e}}P=0;N=_;if(b===0){P+=y-O;if(O<A){A-=O;do{D[c++]=_[P++]}while(--O);P=c-I;N=D}}else if(b<O){P+=y+b-O;O-=b;if(O<A){A-=O;do{D[c++]=_[P++]}while(--O);P=0;if(b<A){O=b;A-=O;do{D[c++]=_[P++]}while(--O);P=c-I;N=D}}}else{P+=b-O;if(O<A){A-=O;do{D[c++]=_[P++]}while(--O);P=c-I;N=D}}while(A>2){D[c++]=N[P++];D[c++]=N[P++];D[c++]=N[P++];A-=3}if(A){D[c++]=N[P++];if(A>1){D[c++]=N[P++]}}}else{P=c-I;do{D[c++]=D[P++];D[c++]=D[P++];D[c++]=D[P++];A-=3}while(A>2);if(A){D[c++]=D[P++];if(A>1){D[c++]=D[P++]}}}}else if((O&64)===0){R=k[(R&65535)+(w&(1<<O)-1)];continue r}else{e.msg="invalid distance code";n.mode=t;break e}break}}else if((O&64)===0){R=S[(R&65535)+(w&(1<<O)-1)];continue t}else if(O&32){n.mode=r;break e}else{e.msg="invalid literal/length code";n.mode=t;break e}break}}while(s<o&&c<p);A=x>>3;s-=A;x-=A<<3;w&=(1<<x)-1;e.next_in=s;e.next_out=c;e.avail_in=s<o?5+(o-s):5-(s-o);e.avail_out=c<p?257+(p-c):257-(c-p);n.hold=w;n.bits=x;return}},6142:function(e,t,r){"use strict";var i=r(8288);var n=r(8360);var s=r(1114);var o=r(7120);var c=r(9593);var h=0;var p=1;var g=2;var y=4;var v=5;var b=6;var _=0;var w=1;var x=2;var S=-2;var k=-3;var C=-4;var E=-5;var R=8;var O=1;var A=2;var I=3;var P=4;var N=5;var F=6;var D=7;var L=8;var B=9;var M=10;var j=11;var z=12;var W=13;var H=14;var X=15;var $=16;var V=17;var U=18;var q=19;var G=20;var Z=21;var Y=22;var K=23;var Q=24;var J=25;var ee=26;var te=27;var re=28;var ie=29;var ne=30;var se=31;var ae=32;var oe=852;var le=592;var ue=15;var fe=ue;function zswap32(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function InflateState(){this.mode=0;this.last=false;this.wrap=0;this.havedict=false;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 i.Buf16(320);this.work=new i.Buf16(288);this.lendyn=null;this.distdyn=null;this.sane=0;this.back=0;this.was=0}function inflateResetKeep(e){var t;if(!e||!e.state){return S}t=e.state;e.total_in=e.total_out=t.total=0;e.msg="";if(t.wrap){e.adler=t.wrap&1}t.mode=O;t.last=0;t.havedict=0;t.dmax=32768;t.head=null;t.hold=0;t.bits=0;t.lencode=t.lendyn=new i.Buf32(oe);t.distcode=t.distdyn=new i.Buf32(le);t.sane=1;t.back=-1;return _}function inflateReset(e){var t;if(!e||!e.state){return S}t=e.state;t.wsize=0;t.whave=0;t.wnext=0;return inflateResetKeep(e)}function inflateReset2(e,t){var r;var i;if(!e||!e.state){return S}i=e.state;if(t<0){r=0;t=-t}else{r=(t>>4)+1;if(t<48){t&=15}}if(t&&(t<8||t>15)){return S}if(i.window!==null&&i.wbits!==t){i.window=null}i.wrap=r;i.wbits=t;return inflateReset(e)}function inflateInit2(e,t){var r;var i;if(!e){return S}i=new InflateState;e.state=i;i.window=null;r=inflateReset2(e,t);if(r!==_){e.state=null}return r}function inflateInit(e){return inflateInit2(e,fe)}var ce=true;var he,de;function fixedtables(e){if(ce){var t;he=new i.Buf32(512);de=new i.Buf32(32);t=0;while(t<144){e.lens[t++]=8}while(t<256){e.lens[t++]=9}while(t<280){e.lens[t++]=7}while(t<288){e.lens[t++]=8}c(p,e.lens,0,288,he,0,e.work,{bits:9});t=0;while(t<32){e.lens[t++]=5}c(g,e.lens,0,32,de,0,e.work,{bits:5});ce=false}e.lencode=he;e.lenbits=9;e.distcode=de;e.distbits=5}function updatewindow(e,t,r,n){var s;var o=e.state;if(o.window===null){o.wsize=1<<o.wbits;o.wnext=0;o.whave=0;o.window=new i.Buf8(o.wsize)}if(n>=o.wsize){i.arraySet(o.window,t,r-o.wsize,o.wsize,0);o.wnext=0;o.whave=o.wsize}else{s=o.wsize-o.wnext;if(s>n){s=n}i.arraySet(o.window,t,r-n,s,o.wnext);n-=s;if(n){i.arraySet(o.window,t,r-n,n,0);o.wnext=n;o.whave=o.wsize}else{o.wnext+=s;if(o.wnext===o.wsize){o.wnext=0}if(o.whave<o.wsize){o.whave+=s}}}return 0}function inflate(e,t){var r;var oe,le;var ue;var fe;var ce,he;var de;var pe;var me,ge;var ye;var ve;var be;var _e=0;var we,xe,Se;var ke,Ce,Te;var Ee;var Re;var Oe=new i.Buf8(4);var Ae;var Ie;var Pe=[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&&e.avail_in!==0){return S}r=e.state;if(r.mode===z){r.mode=W}fe=e.next_out;le=e.output;he=e.avail_out;ue=e.next_in;oe=e.input;ce=e.avail_in;de=r.hold;pe=r.bits;me=ce;ge=he;Re=_;e:for(;;){switch(r.mode){case O:if(r.wrap===0){r.mode=W;break}while(pe<16){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if(r.wrap&2&&de===35615){r.check=0;Oe[0]=de&255;Oe[1]=de>>>8&255;r.check=s(r.check,Oe,2,0);de=0;pe=0;r.mode=A;break}r.flags=0;if(r.head){r.head.done=false}if(!(r.wrap&1)||(((de&255)<<8)+(de>>8))%31){e.msg="incorrect header check";r.mode=ne;break}if((de&15)!==R){e.msg="unknown compression method";r.mode=ne;break}de>>>=4;pe-=4;Ee=(de&15)+8;if(r.wbits===0){r.wbits=Ee}else if(Ee>r.wbits){e.msg="invalid window size";r.mode=ne;break}r.dmax=1<<Ee;e.adler=r.check=1;r.mode=de&512?M:z;de=0;pe=0;break;case A:while(pe<16){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}r.flags=de;if((r.flags&255)!==R){e.msg="unknown compression method";r.mode=ne;break}if(r.flags&57344){e.msg="unknown header flags set";r.mode=ne;break}if(r.head){r.head.text=de>>8&1}if(r.flags&512){Oe[0]=de&255;Oe[1]=de>>>8&255;r.check=s(r.check,Oe,2,0)}de=0;pe=0;r.mode=I;case I:while(pe<32){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if(r.head){r.head.time=de}if(r.flags&512){Oe[0]=de&255;Oe[1]=de>>>8&255;Oe[2]=de>>>16&255;Oe[3]=de>>>24&255;r.check=s(r.check,Oe,4,0)}de=0;pe=0;r.mode=P;case P:while(pe<16){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if(r.head){r.head.xflags=de&255;r.head.os=de>>8}if(r.flags&512){Oe[0]=de&255;Oe[1]=de>>>8&255;r.check=s(r.check,Oe,2,0)}de=0;pe=0;r.mode=N;case N:if(r.flags&1024){while(pe<16){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}r.length=de;if(r.head){r.head.extra_len=de}if(r.flags&512){Oe[0]=de&255;Oe[1]=de>>>8&255;r.check=s(r.check,Oe,2,0)}de=0;pe=0}else if(r.head){r.head.extra=null}r.mode=F;case F:if(r.flags&1024){ye=r.length;if(ye>ce){ye=ce}if(ye){if(r.head){Ee=r.head.extra_len-r.length;if(!r.head.extra){r.head.extra=new Array(r.head.extra_len)}i.arraySet(r.head.extra,oe,ue,ye,Ee)}if(r.flags&512){r.check=s(r.check,oe,ye,ue)}ce-=ye;ue+=ye;r.length-=ye}if(r.length){break e}}r.length=0;r.mode=D;case D:if(r.flags&2048){if(ce===0){break e}ye=0;do{Ee=oe[ue+ye++];if(r.head&&Ee&&r.length<65536){r.head.name+=String.fromCharCode(Ee)}}while(Ee&&ye<ce);if(r.flags&512){r.check=s(r.check,oe,ye,ue)}ce-=ye;ue+=ye;if(Ee){break e}}else if(r.head){r.head.name=null}r.length=0;r.mode=L;case L:if(r.flags&4096){if(ce===0){break e}ye=0;do{Ee=oe[ue+ye++];if(r.head&&Ee&&r.length<65536){r.head.comment+=String.fromCharCode(Ee)}}while(Ee&&ye<ce);if(r.flags&512){r.check=s(r.check,oe,ye,ue)}ce-=ye;ue+=ye;if(Ee){break e}}else if(r.head){r.head.comment=null}r.mode=B;case B:if(r.flags&512){while(pe<16){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if(de!==(r.check&65535)){e.msg="header crc mismatch";r.mode=ne;break}de=0;pe=0}if(r.head){r.head.hcrc=r.flags>>9&1;r.head.done=true}e.adler=r.check=0;r.mode=z;break;case M:while(pe<32){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}e.adler=r.check=zswap32(de);de=0;pe=0;r.mode=j;case j:if(r.havedict===0){e.next_out=fe;e.avail_out=he;e.next_in=ue;e.avail_in=ce;r.hold=de;r.bits=pe;return x}e.adler=r.check=1;r.mode=z;case z:if(t===v||t===b){break e}case W:if(r.last){de>>>=pe&7;pe-=pe&7;r.mode=te;break}while(pe<3){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}r.last=de&1;de>>>=1;pe-=1;switch(de&3){case 0:r.mode=H;break;case 1:fixedtables(r);r.mode=G;if(t===b){de>>>=2;pe-=2;break e}break;case 2:r.mode=V;break;case 3:e.msg="invalid block type";r.mode=ne}de>>>=2;pe-=2;break;case H:de>>>=pe&7;pe-=pe&7;while(pe<32){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if((de&65535)!==(de>>>16^65535)){e.msg="invalid stored block lengths";r.mode=ne;break}r.length=de&65535;de=0;pe=0;r.mode=X;if(t===b){break e}case X:r.mode=$;case $:ye=r.length;if(ye){if(ye>ce){ye=ce}if(ye>he){ye=he}if(ye===0){break e}i.arraySet(le,oe,ue,ye,fe);ce-=ye;ue+=ye;he-=ye;fe+=ye;r.length-=ye;break}r.mode=z;break;case V:while(pe<14){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}r.nlen=(de&31)+257;de>>>=5;pe-=5;r.ndist=(de&31)+1;de>>>=5;pe-=5;r.ncode=(de&15)+4;de>>>=4;pe-=4;if(r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols";r.mode=ne;break}r.have=0;r.mode=U;case U:while(r.have<r.ncode){while(pe<3){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}r.lens[Pe[r.have++]]=de&7;de>>>=3;pe-=3}while(r.have<19){r.lens[Pe[r.have++]]=0}r.lencode=r.lendyn;r.lenbits=7;Ae={bits:r.lenbits};Re=c(h,r.lens,0,19,r.lencode,0,r.work,Ae);r.lenbits=Ae.bits;if(Re){e.msg="invalid code lengths set";r.mode=ne;break}r.have=0;r.mode=q;case q:while(r.have<r.nlen+r.ndist){for(;;){_e=r.lencode[de&(1<<r.lenbits)-1];we=_e>>>24;xe=_e>>>16&255;Se=_e&65535;if(we<=pe){break}if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if(Se<16){de>>>=we;pe-=we;r.lens[r.have++]=Se}else{if(Se===16){Ie=we+2;while(pe<Ie){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}de>>>=we;pe-=we;if(r.have===0){e.msg="invalid bit length repeat";r.mode=ne;break}Ee=r.lens[r.have-1];ye=3+(de&3);de>>>=2;pe-=2}else if(Se===17){Ie=we+3;while(pe<Ie){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}de>>>=we;pe-=we;Ee=0;ye=3+(de&7);de>>>=3;pe-=3}else{Ie=we+7;while(pe<Ie){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}de>>>=we;pe-=we;Ee=0;ye=11+(de&127);de>>>=7;pe-=7}if(r.have+ye>r.nlen+r.ndist){e.msg="invalid bit length repeat";r.mode=ne;break}while(ye--){r.lens[r.have++]=Ee}}}if(r.mode===ne){break}if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block";r.mode=ne;break}r.lenbits=9;Ae={bits:r.lenbits};Re=c(p,r.lens,0,r.nlen,r.lencode,0,r.work,Ae);r.lenbits=Ae.bits;if(Re){e.msg="invalid literal/lengths set";r.mode=ne;break}r.distbits=6;r.distcode=r.distdyn;Ae={bits:r.distbits};Re=c(g,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Ae);r.distbits=Ae.bits;if(Re){e.msg="invalid distances set";r.mode=ne;break}r.mode=G;if(t===b){break e}case G:r.mode=Z;case Z:if(ce>=6&&he>=258){e.next_out=fe;e.avail_out=he;e.next_in=ue;e.avail_in=ce;r.hold=de;r.bits=pe;o(e,ge);fe=e.next_out;le=e.output;he=e.avail_out;ue=e.next_in;oe=e.input;ce=e.avail_in;de=r.hold;pe=r.bits;if(r.mode===z){r.back=-1}break}r.back=0;for(;;){_e=r.lencode[de&(1<<r.lenbits)-1];we=_e>>>24;xe=_e>>>16&255;Se=_e&65535;if(we<=pe){break}if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if(xe&&(xe&240)===0){ke=we;Ce=xe;Te=Se;for(;;){_e=r.lencode[Te+((de&(1<<ke+Ce)-1)>>ke)];we=_e>>>24;xe=_e>>>16&255;Se=_e&65535;if(ke+we<=pe){break}if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}de>>>=ke;pe-=ke;r.back+=ke}de>>>=we;pe-=we;r.back+=we;r.length=Se;if(xe===0){r.mode=ee;break}if(xe&32){r.back=-1;r.mode=z;break}if(xe&64){e.msg="invalid literal/length code";r.mode=ne;break}r.extra=xe&15;r.mode=Y;case Y:if(r.extra){Ie=r.extra;while(pe<Ie){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}r.length+=de&(1<<r.extra)-1;de>>>=r.extra;pe-=r.extra;r.back+=r.extra}r.was=r.length;r.mode=K;case K:for(;;){_e=r.distcode[de&(1<<r.distbits)-1];we=_e>>>24;xe=_e>>>16&255;Se=_e&65535;if(we<=pe){break}if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if((xe&240)===0){ke=we;Ce=xe;Te=Se;for(;;){_e=r.distcode[Te+((de&(1<<ke+Ce)-1)>>ke)];we=_e>>>24;xe=_e>>>16&255;Se=_e&65535;if(ke+we<=pe){break}if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}de>>>=ke;pe-=ke;r.back+=ke}de>>>=we;pe-=we;r.back+=we;if(xe&64){e.msg="invalid distance code";r.mode=ne;break}r.offset=Se;r.extra=xe&15;r.mode=Q;case Q:if(r.extra){Ie=r.extra;while(pe<Ie){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}r.offset+=de&(1<<r.extra)-1;de>>>=r.extra;pe-=r.extra;r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back";r.mode=ne;break}r.mode=J;case J:if(he===0){break e}ye=ge-he;if(r.offset>ye){ye=r.offset-ye;if(ye>r.whave){if(r.sane){e.msg="invalid distance too far back";r.mode=ne;break}}if(ye>r.wnext){ye-=r.wnext;ve=r.wsize-ye}else{ve=r.wnext-ye}if(ye>r.length){ye=r.length}be=r.window}else{be=le;ve=fe-r.offset;ye=r.length}if(ye>he){ye=he}he-=ye;r.length-=ye;do{le[fe++]=be[ve++]}while(--ye);if(r.length===0){r.mode=Z}break;case ee:if(he===0){break e}le[fe++]=r.length;he--;r.mode=Z;break;case te:if(r.wrap){while(pe<32){if(ce===0){break e}ce--;de|=oe[ue++]<<pe;pe+=8}ge-=he;e.total_out+=ge;r.total+=ge;if(ge){e.adler=r.check=r.flags?s(r.check,le,ge,fe-ge):n(r.check,le,ge,fe-ge)}ge=he;if((r.flags?de:zswap32(de))!==r.check){e.msg="incorrect data check";r.mode=ne;break}de=0;pe=0}r.mode=re;case re:if(r.wrap&&r.flags){while(pe<32){if(ce===0){break e}ce--;de+=oe[ue++]<<pe;pe+=8}if(de!==(r.total&4294967295)){e.msg="incorrect length check";r.mode=ne;break}de=0;pe=0}r.mode=ie;case ie:Re=w;break e;case ne:Re=k;break e;case se:return C;case ae:default:return S}}e.next_out=fe;e.avail_out=he;e.next_in=ue;e.avail_in=ce;r.hold=de;r.bits=pe;if(r.wsize||ge!==e.avail_out&&r.mode<ne&&(r.mode<te||t!==y)){if(updatewindow(e,e.output,e.next_out,ge-e.avail_out)){r.mode=se;return C}}me-=e.avail_in;ge-=e.avail_out;e.total_in+=me;e.total_out+=ge;r.total+=ge;if(r.wrap&&ge){e.adler=r.check=r.flags?s(r.check,le,ge,e.next_out-ge):n(r.check,le,ge,e.next_out-ge)}e.data_type=r.bits+(r.last?64:0)+(r.mode===z?128:0)+(r.mode===G||r.mode===X?256:0);if((me===0&&ge===0||t===y)&&Re===_){Re=E}return Re}function inflateEnd(e){if(!e||!e.state){return S}var t=e.state;if(t.window){t.window=null}e.state=null;return _}function inflateGetHeader(e,t){var r;if(!e||!e.state){return S}r=e.state;if((r.wrap&2)===0){return S}r.head=t;t.done=false;return _}function inflateSetDictionary(e,t){var r=t.length;var i;var s;var o;if(!e||!e.state){return S}i=e.state;if(i.wrap!==0&&i.mode!==j){return S}if(i.mode===j){s=1;s=n(s,t,r,0);if(s!==i.check){return k}}o=updatewindow(e,t,r,r);if(o){i.mode=se;return C}i.havedict=1;return _}t.inflateReset=inflateReset;t.inflateReset2=inflateReset2;t.inflateResetKeep=inflateResetKeep;t.inflateInit=inflateInit;t.inflateInit2=inflateInit2;t.inflate=inflate;t.inflateEnd=inflateEnd;t.inflateGetHeader=inflateGetHeader;t.inflateSetDictionary=inflateSetDictionary;t.inflateInfo="pako inflate (from Nodeca project)"},9593:function(e,t,r){"use strict";var i=r(8288);var n=15;var s=852;var o=592;var c=0;var h=1;var p=2;var g=[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];var y=[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];var v=[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];var b=[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];e.exports=function inflate_table(e,t,r,_,w,x,S,k){var C=k.bits;var E=0;var R=0;var O=0,A=0;var I=0;var P=0;var N=0;var F=0;var D=0;var L=0;var B;var M;var j;var z;var W;var H=null;var X=0;var $;var V=new i.Buf16(n+1);var U=new i.Buf16(n+1);var q=null;var G=0;var Z,Y,K;for(E=0;E<=n;E++){V[E]=0}for(R=0;R<_;R++){V[t[r+R]]++}I=C;for(A=n;A>=1;A--){if(V[A]!==0){break}}if(I>A){I=A}if(A===0){w[x++]=1<<24|64<<16|0;w[x++]=1<<24|64<<16|0;k.bits=1;return 0}for(O=1;O<A;O++){if(V[O]!==0){break}}if(I<O){I=O}F=1;for(E=1;E<=n;E++){F<<=1;F-=V[E];if(F<0){return-1}}if(F>0&&(e===c||A!==1)){return-1}U[1]=0;for(E=1;E<n;E++){U[E+1]=U[E]+V[E]}for(R=0;R<_;R++){if(t[r+R]!==0){S[U[t[r+R]]++]=R}}if(e===c){H=q=S;$=19}else if(e===h){H=g;X-=257;q=y;G-=257;$=256}else{H=v;q=b;$=-1}L=0;R=0;E=O;W=x;P=I;N=0;j=-1;D=1<<I;z=D-1;if(e===h&&D>s||e===p&&D>o){return 1}for(;;){Z=E-N;if(S[R]<$){Y=0;K=S[R]}else if(S[R]>$){Y=q[G+S[R]];K=H[X+S[R]]}else{Y=32+64;K=0}B=1<<E-N;M=1<<P;O=M;do{M-=B;w[W+(L>>N)+M]=Z<<24|Y<<16|K|0}while(M!==0);B=1<<E-1;while(L&B){B>>=1}if(B!==0){L&=B-1;L+=B}else{L=0}R++;if(--V[E]===0){if(E===A){break}E=t[r+S[R]]}if(E>I&&(L&z)!==j){if(N===0){N=I}W+=O;P=E-N;F=1<<P;while(P+N<A){F-=V[P+N];if(F<=0){break}P++;F<<=1}D+=1<<P;if(e===h&&D>s||e===p&&D>o){return 1}j=L&z;w[j]=I<<24|P<<16|W-x|0}}if(L!==0){w[W+L]=E-N<<24|64<<16|0}k.bits=I;return 0}},4929:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},460:function(e,t,r){"use strict";var i=r(8288);var n=4;var s=0;var o=1;var c=2;function zero(e){var t=e.length;while(--t>=0){e[t]=0}}var h=0;var p=1;var g=2;var y=3;var v=258;var b=29;var _=256;var w=_+1+b;var x=30;var S=19;var k=2*w+1;var C=15;var E=16;var R=7;var O=256;var A=16;var I=17;var P=18;var N=[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];var F=[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];var D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];var L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];var B=512;var M=new Array((w+2)*2);zero(M);var j=new Array(x*2);zero(j);var z=new Array(B);zero(z);var W=new Array(v-y+1);zero(W);var H=new Array(b);zero(H);var X=new Array(x);zero(X);function StaticTreeDesc(e,t,r,i,n){this.static_tree=e;this.extra_bits=t;this.extra_base=r;this.elems=i;this.max_length=n;this.has_stree=e&&e.length}var $;var V;var U;function TreeDesc(e,t){this.dyn_tree=e;this.max_code=0;this.stat_desc=t}function d_code(e){return e<256?z[e]:z[256+(e>>>7)]}function put_short(e,t){e.pending_buf[e.pending++]=t&255;e.pending_buf[e.pending++]=t>>>8&255}function send_bits(e,t,r){if(e.bi_valid>E-r){e.bi_buf|=t<<e.bi_valid&65535;put_short(e,e.bi_buf);e.bi_buf=t>>E-e.bi_valid;e.bi_valid+=r-E}else{e.bi_buf|=t<<e.bi_valid&65535;e.bi_valid+=r}}function send_code(e,t,r){send_bits(e,r[t*2],r[t*2+1])}function bi_reverse(e,t){var r=0;do{r|=e&1;e>>>=1;r<<=1}while(--t>0);return r>>>1}function bi_flush(e){if(e.bi_valid===16){put_short(e,e.bi_buf);e.bi_buf=0;e.bi_valid=0}else if(e.bi_valid>=8){e.pending_buf[e.pending++]=e.bi_buf&255;e.bi_buf>>=8;e.bi_valid-=8}}function gen_bitlen(e,t){var r=t.dyn_tree;var i=t.max_code;var n=t.stat_desc.static_tree;var s=t.stat_desc.has_stree;var o=t.stat_desc.extra_bits;var c=t.stat_desc.extra_base;var h=t.stat_desc.max_length;var p;var g,y;var v;var b;var _;var w=0;for(v=0;v<=C;v++){e.bl_count[v]=0}r[e.heap[e.heap_max]*2+1]=0;for(p=e.heap_max+1;p<k;p++){g=e.heap[p];v=r[r[g*2+1]*2+1]+1;if(v>h){v=h;w++}r[g*2+1]=v;if(g>i){continue}e.bl_count[v]++;b=0;if(g>=c){b=o[g-c]}_=r[g*2];e.opt_len+=_*(v+b);if(s){e.static_len+=_*(n[g*2+1]+b)}}if(w===0){return}do{v=h-1;while(e.bl_count[v]===0){v--}e.bl_count[v]--;e.bl_count[v+1]+=2;e.bl_count[h]--;w-=2}while(w>0);for(v=h;v!==0;v--){g=e.bl_count[v];while(g!==0){y=e.heap[--p];if(y>i){continue}if(r[y*2+1]!==v){e.opt_len+=(v-r[y*2+1])*r[y*2];r[y*2+1]=v}g--}}}function gen_codes(e,t,r){var i=new Array(C+1);var n=0;var s;var o;for(s=1;s<=C;s++){i[s]=n=n+r[s-1]<<1}for(o=0;o<=t;o++){var c=e[o*2+1];if(c===0){continue}e[o*2]=bi_reverse(i[c]++,c)}}function tr_static_init(){var e;var t;var r;var i;var n;var s=new Array(C+1);r=0;for(i=0;i<b-1;i++){H[i]=r;for(e=0;e<1<<N[i];e++){W[r++]=i}}W[r-1]=i;n=0;for(i=0;i<16;i++){X[i]=n;for(e=0;e<1<<F[i];e++){z[n++]=i}}n>>=7;for(;i<x;i++){X[i]=n<<7;for(e=0;e<1<<F[i]-7;e++){z[256+n++]=i}}for(t=0;t<=C;t++){s[t]=0}e=0;while(e<=143){M[e*2+1]=8;e++;s[8]++}while(e<=255){M[e*2+1]=9;e++;s[9]++}while(e<=279){M[e*2+1]=7;e++;s[7]++}while(e<=287){M[e*2+1]=8;e++;s[8]++}gen_codes(M,w+1,s);for(e=0;e<x;e++){j[e*2+1]=5;j[e*2]=bi_reverse(e,5)}$=new StaticTreeDesc(M,N,_+1,w,C);V=new StaticTreeDesc(j,F,0,x,C);U=new StaticTreeDesc(new Array(0),D,0,S,R)}function init_block(e){var t;for(t=0;t<w;t++){e.dyn_ltree[t*2]=0}for(t=0;t<x;t++){e.dyn_dtree[t*2]=0}for(t=0;t<S;t++){e.bl_tree[t*2]=0}e.dyn_ltree[O*2]=1;e.opt_len=e.static_len=0;e.last_lit=e.matches=0}function bi_windup(e){if(e.bi_valid>8){put_short(e,e.bi_buf)}else if(e.bi_valid>0){e.pending_buf[e.pending++]=e.bi_buf}e.bi_buf=0;e.bi_valid=0}function copy_block(e,t,r,n){bi_windup(e);if(n){put_short(e,r);put_short(e,~r)}i.arraySet(e.pending_buf,e.window,t,r,e.pending);e.pending+=r}function smaller(e,t,r,i){var n=t*2;var s=r*2;return e[n]<e[s]||e[n]===e[s]&&i[t]<=i[r]}function pqdownheap(e,t,r){var i=e.heap[r];var n=r<<1;while(n<=e.heap_len){if(n<e.heap_len&&smaller(t,e.heap[n+1],e.heap[n],e.depth)){n++}if(smaller(t,i,e.heap[n],e.depth)){break}e.heap[r]=e.heap[n];r=n;n<<=1}e.heap[r]=i}function compress_block(e,t,r){var i;var n;var s=0;var o;var c;if(e.last_lit!==0){do{i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1];n=e.pending_buf[e.l_buf+s];s++;if(i===0){send_code(e,n,t)}else{o=W[n];send_code(e,o+_+1,t);c=N[o];if(c!==0){n-=H[o];send_bits(e,n,c)}i--;o=d_code(i);send_code(e,o,r);c=F[o];if(c!==0){i-=X[o];send_bits(e,i,c)}}}while(s<e.last_lit)}send_code(e,O,t)}function build_tree(e,t){var r=t.dyn_tree;var i=t.stat_desc.static_tree;var n=t.stat_desc.has_stree;var s=t.stat_desc.elems;var o,c;var h=-1;var p;e.heap_len=0;e.heap_max=k;for(o=0;o<s;o++){if(r[o*2]!==0){e.heap[++e.heap_len]=h=o;e.depth[o]=0}else{r[o*2+1]=0}}while(e.heap_len<2){p=e.heap[++e.heap_len]=h<2?++h:0;r[p*2]=1;e.depth[p]=0;e.opt_len--;if(n){e.static_len-=i[p*2+1]}}t.max_code=h;for(o=e.heap_len>>1;o>=1;o--){pqdownheap(e,r,o)}p=s;do{o=e.heap[1];e.heap[1]=e.heap[e.heap_len--];pqdownheap(e,r,1);c=e.heap[1];e.heap[--e.heap_max]=o;e.heap[--e.heap_max]=c;r[p*2]=r[o*2]+r[c*2];e.depth[p]=(e.depth[o]>=e.depth[c]?e.depth[o]:e.depth[c])+1;r[o*2+1]=r[c*2+1]=p;e.heap[1]=p++;pqdownheap(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1];gen_bitlen(e,t);gen_codes(r,h,e.bl_count)}function scan_tree(e,t,r){var i;var n=-1;var s;var o=t[0*2+1];var c=0;var h=7;var p=4;if(o===0){h=138;p=3}t[(r+1)*2+1]=65535;for(i=0;i<=r;i++){s=o;o=t[(i+1)*2+1];if(++c<h&&s===o){continue}else if(c<p){e.bl_tree[s*2]+=c}else if(s!==0){if(s!==n){e.bl_tree[s*2]++}e.bl_tree[A*2]++}else if(c<=10){e.bl_tree[I*2]++}else{e.bl_tree[P*2]++}c=0;n=s;if(o===0){h=138;p=3}else if(s===o){h=6;p=3}else{h=7;p=4}}}function send_tree(e,t,r){var i;var n=-1;var s;var o=t[0*2+1];var c=0;var h=7;var p=4;if(o===0){h=138;p=3}for(i=0;i<=r;i++){s=o;o=t[(i+1)*2+1];if(++c<h&&s===o){continue}else if(c<p){do{send_code(e,s,e.bl_tree)}while(--c!==0)}else if(s!==0){if(s!==n){send_code(e,s,e.bl_tree);c--}send_code(e,A,e.bl_tree);send_bits(e,c-3,2)}else if(c<=10){send_code(e,I,e.bl_tree);send_bits(e,c-3,3)}else{send_code(e,P,e.bl_tree);send_bits(e,c-11,7)}c=0;n=s;if(o===0){h=138;p=3}else if(s===o){h=6;p=3}else{h=7;p=4}}}function build_bl_tree(e){var t;scan_tree(e,e.dyn_ltree,e.l_desc.max_code);scan_tree(e,e.dyn_dtree,e.d_desc.max_code);build_tree(e,e.bl_desc);for(t=S-1;t>=3;t--){if(e.bl_tree[L[t]*2+1]!==0){break}}e.opt_len+=3*(t+1)+5+5+4;return t}function send_all_trees(e,t,r,i){var n;send_bits(e,t-257,5);send_bits(e,r-1,5);send_bits(e,i-4,4);for(n=0;n<i;n++){send_bits(e,e.bl_tree[L[n]*2+1],3)}send_tree(e,e.dyn_ltree,t-1);send_tree(e,e.dyn_dtree,r-1)}function detect_data_type(e){var t=4093624447;var r;for(r=0;r<=31;r++,t>>>=1){if(t&1&&e.dyn_ltree[r*2]!==0){return s}}if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0){return o}for(r=32;r<_;r++){if(e.dyn_ltree[r*2]!==0){return o}}return s}var q=false;function _tr_init(e){if(!q){tr_static_init();q=true}e.l_desc=new TreeDesc(e.dyn_ltree,$);e.d_desc=new TreeDesc(e.dyn_dtree,V);e.bl_desc=new TreeDesc(e.bl_tree,U);e.bi_buf=0;e.bi_valid=0;init_block(e)}function _tr_stored_block(e,t,r,i){send_bits(e,(h<<1)+(i?1:0),3);copy_block(e,t,r,true)}function _tr_align(e){send_bits(e,p<<1,3);send_code(e,O,M);bi_flush(e)}function _tr_flush_block(e,t,r,i){var s,o;var h=0;if(e.level>0){if(e.strm.data_type===c){e.strm.data_type=detect_data_type(e)}build_tree(e,e.l_desc);build_tree(e,e.d_desc);h=build_bl_tree(e);s=e.opt_len+3+7>>>3;o=e.static_len+3+7>>>3;if(o<=s){s=o}}else{s=o=r+5}if(r+4<=s&&t!==-1){_tr_stored_block(e,t,r,i)}else if(e.strategy===n||o===s){send_bits(e,(p<<1)+(i?1:0),3);compress_block(e,M,j)}else{send_bits(e,(g<<1)+(i?1:0),3);send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,h+1);compress_block(e,e.dyn_ltree,e.dyn_dtree)}init_block(e);if(i){bi_windup(e)}}function _tr_tally(e,t,r){e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255;e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255;e.pending_buf[e.l_buf+e.last_lit]=r&255;e.last_lit++;if(t===0){e.dyn_ltree[r*2]++}else{e.matches++;t--;e.dyn_ltree[(W[r]+_+1)*2]++;e.dyn_dtree[d_code(t)*2]++}return e.last_lit===e.lit_bufsize-1}t._tr_init=_tr_init;t._tr_stored_block=_tr_stored_block;t._tr_flush_block=_tr_flush_block;t._tr_tally=_tr_tally;t._tr_align=_tr_align},6559:function(e){"use strict";function ZStream(){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}e.exports=ZStream},2106:function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var i=r[1]||"";var n=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},1847:function(e){"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,i){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var n=arguments.length;var s,o;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,i)}));default:s=new Array(n-1);o=0;while(o<s.length){s[o++]=arguments[o]}return process.nextTick((function afterTick(){e.apply(null,s)}))}}},7561:function(e,t,r){"use strict";var i=r(1847);var n=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var s=Object.create(r(9810));s.inherits=r(4070);var o=r(6319);var c=r(227);s.inherits(Duplex,o);{var h=n(c.prototype);for(var p=0;p<h.length;p++){var g=h[p];if(!Duplex.prototype[g])Duplex.prototype[g]=c.prototype[g]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);o.call(this,e);c.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;i.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,t){this.push(null);this.end();i.nextTick(t,e)}},7741:function(e,t,r){"use strict";e.exports=PassThrough;var i=r(5167);var n=Object.create(r(9810));n.inherits=r(4070);n.inherits(PassThrough,i);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},6319:function(e,t,r){"use strict";var i=r(1847);e.exports=Readable;var n=r(4057);var s;Readable.ReadableState=ReadableState;var o=r(4434).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var c=r(8705);var h=r(6912).Buffer;var p=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return h.from(e)}function _isUint8Array(e){return h.isBuffer(e)||e instanceof p}var g=Object.create(r(9810));g.inherits=r(4070);var y=r(9023);var v=void 0;if(y&&y.debuglog){v=y.debuglog("stream")}else{v=function(){}}var b=r(6271);var _=r(3383);var w;g.inherits(Readable,c);var x=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(n(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){s=s||r(7561);e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;var n=e.highWaterMark;var o=e.readableHighWaterMark;var c=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(o||o===0))this.highWaterMark=o;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new b;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!w)w=r(8927).I;this.decoder=new w(e.encoding);this.encoding=e.encoding}}function Readable(e){s=s||r(7561);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}c.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=_.destroy;Readable.prototype._undestroy=_.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var i;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=h.from(e,t);t=""}i=true}}else{i=true}return readableAddChunk(this,e,t,false,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,i,n){var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!n)o=chunkInvalid(s,t);if(o){e.emit("error",o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==h.prototype){t=_uint8ArrayToBuffer(t)}if(i){if(s.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,s,t,true)}else if(s.ended){e.emit("error",new Error("stream.push() after EOF"))}else{s.reading=false;if(s.decoder&&!r){t=s.decoder.write(t);if(s.objectMode||t.length!==0)addChunk(e,s,t,false);else maybeReadMore(e,s)}else{addChunk(e,s,t,false)}}}else if(!i){s.reading=false}}return needMoreData(s)}function addChunk(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(i)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!w)w=r(8927).I;this._readableState.decoder=new w(e);this._readableState.encoding=e;return this};var S=8388608;function computeNewHighWaterMark(e){if(e>=S){e=S}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){v("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){v("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var i=t.needReadable;v("need readable",i);if(t.length===0||t.length-e<t.highWaterMark){i=true;v("length less than watermark",i)}if(t.ended||t.reading){i=false;v("reading or ended",i)}else if(i){v("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var n;if(e>0)n=fromList(e,t);else n=null;if(n===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(n!==null)this.emit("data",n);return n};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){v("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)i.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){v("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;i.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){v("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,t){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1;v("pipe count=%d opts=%j",n.pipesCount,t);var s=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=s?onend:unpipe;if(n.endEmitted)i.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){v("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){v("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){v("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}var p=false;r.on("data",ondata);function ondata(t){v("ondata");p=false;var i=e.write(t);if(false===i&&!p){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){v("false write response, pause",n.awaitDrain);n.awaitDrain++;p=true}r.pause()}}function onerror(t){v("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){v("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){v("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){v("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;v("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var i=t.pipes;var n=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var s=0;s<n;s++){i[s].emit("unpipe",this,{hasUnpiped:false})}return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){i.nextTick(nReadingNextTick,this)}else if(n.length){emitReadable(this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){v("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){v("resume");e.flowing=true;resume(this,e)}return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;i.nextTick(resume_,e,t)}}function resume_(e,t){if(!t.reading){v("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){v("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){v("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var t=e._readableState;v("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var i=false;e.on("end",(function(){v("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(n){v("wrapped data");if(r.decoder)n=r.decoder.write(n);if(r.objectMode&&(n===null||n===undefined))return;else if(!r.objectMode&&(!n||!n.length))return;var s=t.push(n);if(!s){i=true;e.pause()}}));for(var n in e){if(this[n]===undefined&&typeof e[n]==="function"){this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n)}}for(var s=0;s<x.length;s++){e.on(x[s],this.emit.bind(this,x[s]))}this._read=function(t){v("wrapped _read",t);if(i){i=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var i;if(e<t.head.data.length){i=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){i=t.shift()}else{i=r?copyFromBufferString(e,t):copyFromBuffer(e,t)}return i}function copyFromBufferString(e,t){var r=t.head;var i=1;var n=r.data;e-=n.length;while(r=r.next){var s=r.data;var o=e>s.length?s.length:e;if(o===s.length)n+=s;else n+=s.slice(0,e);e-=o;if(e===0){if(o===s.length){++i;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=s.slice(o)}break}++i}t.length-=i;return n}function copyFromBuffer(e,t){var r=h.allocUnsafe(e);var i=t.head;var n=1;i.data.copy(r);e-=i.data.length;while(i=i.next){var s=i.data;var o=e>s.length?s.length:e;s.copy(r,r.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(i.next)t.head=i.next;else t.head=t.tail=null}else{t.head=i;i.data=s.slice(o)}break}++n}t.length-=n;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;i.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,i=e.length;r<i;r++){if(e[r]===t)return r}return-1}},5167:function(e,t,r){"use strict";e.exports=Transform;var i=r(7561);var n=Object.create(r(9810));n.inherits=r(4070);n.inherits(Transform,i);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var i=r.writecb;if(!i){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);i(e);var n=this._readableState;n.reading=false;if(n.needReadable||n.length<n.highWaterMark){this._read(n.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);i.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return i.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r;i.writechunk=e;i.writeencoding=t;if(!i.transforming){var n=this._readableState;if(i.needTransform||n.needReadable||n.length<n.highWaterMark)this._read(n.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(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");return e.push(null)}},227:function(e,t,r){"use strict";var i=r(1847);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var n=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:i.nextTick;var s;Writable.WritableState=WritableState;var o=Object.create(r(9810));o.inherits=r(4070);var c={deprecate:r(9987)};var h=r(8705);var p=r(6912).Buffer;var g=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return p.from(e)}function _isUint8Array(e){return p.isBuffer(e)||e instanceof g}var y=r(3383);o.inherits(Writable,h);function nop(){}function WritableState(e,t){s=s||r(7561);e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;var n=e.highWaterMark;var o=e.writableHighWaterMark;var c=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(o||o===0))this.highWaterMark=o;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var h=e.decodeStrings===false;this.decodeStrings=!h;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var v;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){v=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(v.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{v=function(e){return e instanceof this}}function Writable(e){s=s||r(7561);if(!v.call(Writable,this)&&!(this instanceof s)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}h.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function validChunk(e,t,r,n){var s=true;var o=false;if(r===null){o=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){o=new TypeError("Invalid non-string/buffer chunk")}if(o){e.emit("error",o);i.nextTick(n,o);s=false}return s}Writable.prototype.write=function(e,t,r){var i=this._writableState;var n=false;var s=!i.objectMode&&_isUint8Array(e);if(s&&!p.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof r!=="function")r=nop;if(i.ended)writeAfterEnd(this,r);else if(s||validChunk(this,i,e,r)){i.pendingcb++;n=writeOrBuffer(this,i,s,e,t,r)}return n};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=p.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,i,n,s){if(!r){var o=decodeChunk(t,i,n);if(i!==o){r=true;n="buffer";i=o}}var c=t.objectMode?1:i.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,i,n,s)}return h}function doWrite(e,t,r,i,n,s,o){t.writelen=i;t.writecb=o;t.writing=true;t.sync=true;if(r)e._writev(n,t.onwrite);else e._write(n,s,t.onwrite);t.sync=false}function onwriteError(e,t,r,n,s){--t.pendingcb;if(r){i.nextTick(s,n);i.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{s(n);e._writableState.errorEmitted=true;e.emit("error",n);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var i=r.sync;var s=r.writecb;onwriteStateUpdate(r);if(t)onwriteError(e,r,i,t,s);else{var o=needFinish(r);if(!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(i){n(afterWrite,e,r,o,s)}else{afterWrite(e,r,o,s)}}}function afterWrite(e,t,r,i){if(!r)onwriteDrain(e,t);t.pendingcb--;i();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount;var n=new Array(i);var s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){n[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}n.allBuffers=c;doWrite(e,t,true,t.length,n,"",s.finish);t.pendingcb++;t.lastBufferedRequest=null;if(s.next){t.corkedRequestsFree=s.next;s.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var i=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(i.corked){i.corked=1;this.uncork()}if(!i.ending)endWritable(this,i,r)};function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)}))}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var i=e.entry;e.entry=null;while(i){var n=i.callback;t.pendingcb--;n(r);i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=y.destroy;Writable.prototype._undestroy=y.undestroy;Writable.prototype._destroy=function(e,t){this.end();t(e)}},6271:function(e,t,r){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=r(6912).Buffer;var n=r(9023);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return i.alloc(0);var t=i.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){copyBuffer(r.data,t,n);n+=r.data.length;r=r.next}return t};return BufferList}();if(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}}},3383:function(e,t,r){"use strict";var i=r(1847);function destroy(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var s=this._writableState&&this._writableState.destroyed;if(n||s){if(t){t(e)}else if(e){if(!this._writableState){i.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;i.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){i.nextTick(emitErrorNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;i.nextTick(emitErrorNT,r,e)}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},8705:function(e,t,r){e.exports=r(2203)},3627:function(e,t,r){e.exports=r(1397).PassThrough},1397:function(e,t,r){var i=r(2203);if(process.env.READABLE_STREAM==="disable"&&i){e.exports=i;t=e.exports=i.Readable;t.Readable=i.Readable;t.Writable=i.Writable;t.Duplex=i.Duplex;t.Transform=i.Transform;t.PassThrough=i.PassThrough;t.Stream=i}else{t=e.exports=r(6319);t.Stream=i||t;t.Readable=t;t.Writable=r(227);t.Duplex=r(7561);t.Transform=r(5167);t.PassThrough=r(7741)}},4804:function(e){"use strict";const t={};function createErrorType(e,r,i){if(!i){i=Error}function getMessage(e,t,i){if(typeof r==="string"){return r}else{return r(e,t,i)}}class NodeError extends i{constructor(e,t,r){super(getMessage(e,t,r))}}NodeError.prototype.name=i.name;NodeError.prototype.code=e;t[e]=NodeError}function oneOf(e,t){if(Array.isArray(e)){const r=e.length;e=e.map((e=>String(e)));if(r>2){return`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]}else if(r===2){return`one of ${t} ${e[0]} or ${e[1]}`}else{return`of ${t} ${e[0]}`}}else{return`of ${t} ${String(e)}`}}function startsWith(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function endsWith(e,t,r){if(r===undefined||r>e.length){r=e.length}return e.substring(r-t.length,r)===t}function includes(e,t,r){if(typeof r!=="number"){r=0}if(r+t.length>e.length){return false}else{return e.indexOf(t,r)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError);createErrorType("ERR_INVALID_ARG_TYPE",(function(e,t,r){let i;if(typeof t==="string"&&startsWith(t,"not ")){i="must not be";t=t.replace(/^not /,"")}else{i="must be"}let n;if(endsWith(e," argument")){n=`The ${e} ${i} ${oneOf(t,"type")}`}else{const r=includes(e,".")?"property":"argument";n=`The "${e}" ${r} ${i} ${oneOf(t,"type")}`}n+=`. Received type ${typeof r}`;return n}),TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"}));createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"}));createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");e.exports.F=t},7591:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=Duplex;var n=r(6437);var s=r(8709);r(4070)(Duplex,n);{var o=i(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);n.call(this,e);s.call(this,e);this.allowHalfOpen=true;if(e){if(e.readable===false)this.readable=false;if(e.writable===false)this.writable=false;if(e.allowHalfOpen===false){this.allowHalfOpen=false;this.once("end",onend)}}}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:false,get:function get(){return this._writableState.length}});function onend(){if(this._writableState.ended)return;process.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function set(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}})},5643:function(e,t,r){"use strict";e.exports=PassThrough;var i=r(1625);r(4070)(PassThrough,i);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},6437:function(e,t,r){"use strict";e.exports=Readable;var i;Readable.ReadableState=ReadableState;var n=r(4434).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(5451);var c=r(181).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(9023);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(5344);var v=r(345);var b=r(6562),_=b.getHighWaterMark;var w=r(4804).F,x=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,k=w.ERR_METHOD_NOT_IMPLEMENTED,C=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var E;var R;var O;r(4070)(Readable,o);var A=v.errorOrDestroy;var I=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(Array.isArray(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t,n){i=i||r(7591);e=e||{};if(typeof n!=="boolean")n=t instanceof i;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",n);this.buffer=new y;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!E)E=r(3252).I;this.decoder=new E(e.encoding);this.encoding=e.encoding}}function Readable(e){i=i||r(7591);if(!(this instanceof Readable))return new Readable(e);var t=this instanceof i;this._readableState=new ReadableState(e,this,t);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}o.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function set(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=v.destroy;Readable.prototype._undestroy=v.undestroy;Readable.prototype._destroy=function(e,t){t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var i;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=c.from(e,t);t=""}i=true}}else{i=true}return readableAddChunk(this,e,t,false,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,i,n){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!n)o=chunkInvalid(s,t);if(o){A(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(i){if(s.endEmitted)A(e,new C);else addChunk(e,s,t,true)}else if(s.ended){A(e,new S)}else if(s.destroyed){return false}else{s.reading=false;if(s.decoder&&!r){t=s.decoder.write(t);if(s.objectMode||t.length!==0)addChunk(e,s,t,false);else maybeReadMore(e,s)}else{addChunk(e,s,t,false)}}}else if(!i){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function addChunk(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync){t.awaitDrain=0;e.emit("data",r)}else{t.length+=t.objectMode?1:r.length;if(i)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new x("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!E)E=r(3252).I;var t=new E(e);this._readableState.decoder=t;this._readableState.encoding=this._readableState.decoder.encoding;var i=this._readableState.buffer.head;var n="";while(i!==null){n+=t.write(i.data);i=i.next}this._readableState.buffer.clear();if(n!=="")this._readableState.buffer.push(n);this._readableState.length=n.length;return this};var P=1073741824;function computeNewHighWaterMark(e){if(e>=P){e=P}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){g("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){g("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var i=t.needReadable;g("need readable",i);if(t.length===0||t.length-e<t.highWaterMark){i=true;g("length less than watermark",i)}if(t.ended||t.reading){i=false;g("reading or ended",i)}else if(i){g("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var n;if(e>0)n=fromList(e,t);else n=null;if(n===null){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;t.awaitDrain=0}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(n!==null)this.emit("data",n);return n};function onEofChunk(e,t){g("onEofChunk");if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;if(t.sync){emitReadable(e)}else{t.needReadable=false;if(!t.emittedReadable){t.emittedReadable=true;emitReadable_(e)}}}function emitReadable(e){var t=e._readableState;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;process.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){var r=t.length;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){A(this,new k("_read()"))};Readable.prototype.pipe=function(e,t){var r=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1;g("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=n?onend:unpipe;if(i.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var n=e.write(t);g("dest.write",n);if(n===false){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&indexOf(i.pipes,e)!==-1)&&!h){g("false write response, pause",i.awaitDrain);i.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)A(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var i=t.pipes;var n=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t);var i=this._readableState;if(e==="data"){i.readableListening=this.listenerCount("readable")>0;if(i.flowing!==false)this.resume()}else if(e==="readable"){if(!i.endEmitted&&!i.readableListening){i.readableListening=i.needReadable=true;i.flowing=false;i.emittedReadable=false;g("on readable",i.length,i.reading);if(i.length){emitReadable(this)}else if(!i.reading){process.nextTick(nReadingNextTick,this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){process.nextTick(updateReadableListening,this)}return t};function updateReadableListening(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&!t.paused){t.flowing=true}else if(e.listenerCount("data")>0){e.resume()}}function nReadingNextTick(e){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("resume");e.flowing=!e.readableListening;resume(this,e)}e.paused=false;return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;process.nextTick(resume_,e,t)}}function resume_(e,t){g("resume",t.reading);if(!t.reading){e.read(0)}t.resumeScheduled=false;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("flow",t.flowing);while(t.flowing&&e.read()!==null);}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var i=false;e.on("end",(function(){g("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(n){g("wrapped data");if(r.decoder)n=r.decoder.write(n);if(r.objectMode&&(n===null||n===undefined))return;else if(!r.objectMode&&(!n||!n.length))return;var s=t.push(n);if(!s){i=true;e.pause()}}));for(var n in e){if(this[n]===undefined&&typeof e[n]==="function"){this[n]=function methodWrap(t){return function methodWrapReturnFunction(){return e[t].apply(e,arguments)}}(n)}}for(var s=0;s<I.length;s++){e.on(I[s],this.emit.bind(this,I[s]))}this._read=function(t){g("wrapped _read",t);if(i){i=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(R===undefined){R=r(9756)}return R(this)}}Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function get(){return this._readableState.highWaterMark}});Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:false,get:function get(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:false,get:function get(){return this._readableState.flowing},set:function set(e){if(this._readableState){this._readableState.flowing=e}}});Readable._fromList=fromList;Object.defineProperty(Readable.prototype,"readableLength",{enumerable:false,get:function get(){return this._readableState.length}});function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.first();else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=t.buffer.consume(e,t.decoder)}return r}function endReadable(e){var t=e._readableState;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end");if(e.autoDestroy){var r=t._writableState;if(!r||r.autoDestroy&&r.finished){t.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(e,t){if(O===undefined){O=r(9995)}return O(Readable,e,t)}}function indexOf(e,t){for(var r=0,i=e.length;r<i;r++){if(e[r]===t)return r}return-1}},1625:function(e,t,r){"use strict";e.exports=Transform;var i=r(4804).F,n=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,o=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=i.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(7591);r(4070)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var i=r.writecb;if(i===null){return this.emit("error",new s)}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);i(e);var n=this._readableState;n.reading=false;if(n.needReadable||n.length<n.highWaterMark){this._read(n.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);h.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"&&!this._readableState.destroyed){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return h.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){r(new n("_transform()"))};Transform.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r;i.writechunk=e;i.writeencoding=t;if(!i.transforming){var n=this._readableState;if(i.needTransform||n.needReadable||n.length<n.highWaterMark)this._read(n.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){h.prototype._destroy.call(this,e,(function(e){t(e)}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new c;if(e._transformState.transforming)throw new o;return e.push(null)}},8709:function(e,t,r){"use strict";e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var i;Writable.WritableState=WritableState;var n={deprecate:r(9987)};var s=r(5451);var o=r(181).Buffer;var c=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return o.from(e)}function _isUint8Array(e){return o.isBuffer(e)||e instanceof c}var h=r(345);var p=r(6562),g=p.getHighWaterMark;var y=r(4804).F,v=y.ERR_INVALID_ARG_TYPE,b=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,x=y.ERR_STREAM_DESTROYED,S=y.ERR_STREAM_NULL_VALUES,k=y.ERR_STREAM_WRITE_AFTER_END,C=y.ERR_UNKNOWN_ENCODING;var E=h.errorOrDestroy;r(4070)(Writable,s);function nop(){}function WritableState(e,t,n){i=i||r(7591);e=e||{};if(typeof n!=="boolean")n=t instanceof i;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",n);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:n.deprecate((function writableStateBufferGetter(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var R;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){R=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(R.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{R=function realHasInstance(e){return e instanceof this}}function Writable(e){i=i||r(7591);var t=this instanceof i;if(!t&&!R.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}s.call(this)}Writable.prototype.pipe=function(){E(this,new w)};function writeAfterEnd(e,t){var r=new k;E(e,r);process.nextTick(t,r)}function validChunk(e,t,r,i){var n;if(r===null){n=new S}else if(typeof r!=="string"&&!t.objectMode){n=new v("chunk",["string","Buffer"],r)}if(n){E(e,n);process.nextTick(i,n);return false}return true}Writable.prototype.write=function(e,t,r){var i=this._writableState;var n=false;var s=!i.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof r!=="function")r=nop;if(i.ending)writeAfterEnd(this,r);else if(s||validChunk(this,i,e,r)){i.pendingcb++;n=writeOrBuffer(this,i,s,e,t,r)}return n};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new C(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=o.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,i,n,s){if(!r){var o=decodeChunk(t,i,n);if(i!==o){r=true;n="buffer";i=o}}var c=t.objectMode?1:i.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,i,n,s)}return h}function doWrite(e,t,r,i,n,s,o){t.writelen=i;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new x("write"));else if(r)e._writev(n,t.onwrite);else e._write(n,s,t.onwrite);t.sync=false}function onwriteError(e,t,r,i,n){--t.pendingcb;if(r){process.nextTick(n,i);process.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;E(e,i)}else{n(i);e._writableState.errorEmitted=true;E(e,i);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var i=r.sync;var n=r.writecb;if(typeof n!=="function")throw new _;onwriteStateUpdate(r);if(t)onwriteError(e,r,i,t,n);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(i){process.nextTick(afterWrite,e,r,s,n)}else{afterWrite(e,r,s,n)}}}function afterWrite(e,t,r,i){if(!r)onwriteDrain(e,t);t.pendingcb--;i();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount;var n=new Array(i);var s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){n[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}n.allBuffers=c;doWrite(e,t,true,t.length,n,"",s.finish);t.pendingcb++;t.lastBufferedRequest=null;if(s.next){t.corkedRequestsFree=s.next;s.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new b("_write()"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var i=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(i.corked){i.corked=1;this.uncork()}if(!i.ending)endWritable(this,i,r);return this};Object.defineProperty(Writable.prototype,"writableLength",{enumerable:false,get:function get(){return this._writableState.length}});function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final((function(r){t.pendingcb--;if(r){E(e,r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)}))}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"&&!t.destroyed){t.pendingcb++;t.finalCalled=true;process.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish");if(t.autoDestroy){var i=e._readableState;if(!i||i.autoDestroy&&i.endEmitted){e.destroy()}}}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)process.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var i=e.entry;e.entry=null;while(i){var n=i.callback;t.pendingcb--;n(r);i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function set(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},9756:function(e,t,r){"use strict";var i;function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var i=r.call(e,t||"default");if(typeof i!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n=r(8951);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=null;t(createIterResult(r,false))}}}function onReadable(e){process.nextTick(readAndResolve,e)}function wrapForNext(e,t){return function(r,i){e.then((function(){if(t[h]){r(createIterResult(undefined,true));return}t[g](r,i)}),i)}}var v=Object.getPrototypeOf((function(){}));var b=Object.setPrototypeOf((i={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var i;if(r){i=new Promise(wrapForNext(r,this))}else{var n=this[y].read();if(n!==null){return Promise.resolve(createIterResult(n,false))}i=new Promise(this[g])}this[p]=i;return i}},_defineProperty(i,Symbol.asyncIterator,(function(){return this})),_defineProperty(i,"return",(function _return(){var e=this;return new Promise((function(t,r){e[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),i),v);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(b,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var i=r[y].read();if(i){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(i,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;n(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var i=r[s];if(i!==null){r[p]=null;r[s]=null;r[o]=null;i(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},5344:function(e,t,r){"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,r){if(t)_defineProperties(e.prototype,t);if(r)_defineProperties(e,r);Object.defineProperty(e,"prototype",{writable:false});return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var i=r.call(e,t||"default");if(typeof i!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=r(181),n=i.Buffer;var s=r(9023),o=s.inspect;var c=o&&o.custom||"inspect";function copyBuffer(e,t,r){n.prototype.copy.call(e,t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}_createClass(BufferList,[{key:"push",value:function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length}},{key:"unshift",value:function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length}},{key:"shift",value:function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next)r+=e+t.data;return r}},{key:"concat",value:function concat(e){if(this.length===0)return n.alloc(0);var t=n.allocUnsafe(e>>>0);var r=this.head;var i=0;while(r){copyBuffer(r.data,t,i);i+=r.data.length;r=r.next}return t}},{key:"consume",value:function consume(e,t){var r;if(e<this.head.data.length){r=this.head.data.slice(0,e);this.head.data=this.head.data.slice(e)}else if(e===this.head.data.length){r=this.shift()}else{r=t?this._getString(e):this._getBuffer(e)}return r}},{key:"first",value:function first(){return this.head.data}},{key:"_getString",value:function _getString(e){var t=this.head;var r=1;var i=t.data;e-=i.length;while(t=t.next){var n=t.data;var s=e>n.length?n.length:e;if(s===n.length)i+=n;else i+=n.slice(0,e);e-=s;if(e===0){if(s===n.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=n.slice(s)}break}++r}this.length-=r;return i}},{key:"_getBuffer",value:function _getBuffer(e){var t=n.allocUnsafe(e);var r=this.head;var i=1;r.data.copy(t);e-=r.data.length;while(r=r.next){var s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++i;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++i}this.length-=i;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},345:function(e){"use strict";function destroy(e,t){var r=this;var i=this._readableState&&this._readableState.destroyed;var n=this._writableState&&this._writableState.destroyed;if(i||n){if(t){t(e)}else if(e){if(!this._writableState){process.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){process.nextTick(emitErrorAndCloseNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,r,e)}else{process.nextTick(emitCloseNT,r)}}else if(t){process.nextTick(emitCloseNT,r);t(e)}else{process.nextTick(emitCloseNT,r)}}));return this}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t);emitCloseNT(e)}function emitCloseNT(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var r=e._readableState;var i=e._writableState;if(r&&r.autoDestroy||i&&i.autoDestroy)e.destroy(t);else e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},8951:function(e,t,r){"use strict";var i=r(4804).F.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=false;return function(){if(t)return;t=true;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++){i[n]=arguments[n]}e.apply(this,i)}}function noop(){}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function eos(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=once(r||noop);var n=t.readable||t.readable!==false&&e.readable;var s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!n)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){n=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var v=function onclose(){var t;if(n&&!p){if(!e._readableState||!e._readableState.ended)t=new i;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new i;return r.call(e,t)}};var b=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",v);if(e.req)b();else e.on("request",b)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",v);return function(){e.removeListener("complete",h);e.removeListener("abort",v);e.removeListener("request",b);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",v)}}e.exports=eos},9995:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,i,n,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(i,n)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(i,n){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,i,n,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,i,n,_next,_throw,"throw",e)}_next(undefined)}))}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var i=r.call(e,t||"default");if(typeof i!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=r(4804).F.ERR_INVALID_ARG_TYPE;function from(e,t,r){var n;if(t&&typeof t.next==="function"){n=t}else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new i("iterable",["Iterable"],t);var s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=true;next()}};function next(){return _next2.apply(this,arguments)}function _next2(){_next2=_asyncToGenerator((function*(){try{var e=yield n.next(),t=e.value,r=e.done;if(r){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},2165:function(e,t,r){"use strict";var i;function once(e){var t=false;return function(){if(t)return;t=true;e.apply(void 0,arguments)}}var n=r(4804).F,s=n.ERR_MISSING_ARGS,o=n.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,t,n,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(i===undefined)i=r(8951);i(e,{readable:t,writable:n},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("pipe"))}}function call(e){e()}function pipe(e,t){return e.pipe(t)}function popCallback(e){if(!e.length)return noop;if(typeof e[e.length-1]!=="function")return noop;return e.pop()}function pipeline(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}var i=popCallback(t);if(Array.isArray(t[0]))t=t[0];if(t.length<2){throw new s("streams")}var n;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!n)n=e;if(e)o.forEach(call);if(s)return;o.forEach(call);i(n)}))}));return t.reduce(pipe)}e.exports=pipeline},6562:function(e,t,r){"use strict";var i=r(4804).F.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function getHighWaterMark(e,t,r,n){var s=highWaterMarkFrom(t,n,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=n?r:"highWaterMark";throw new i(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},5451:function(e,t,r){e.exports=r(2203)},1643:function(e,t,r){var i=r(2203);if(process.env.READABLE_STREAM==="disable"&&i){e.exports=i.Readable;Object.assign(e.exports,i);e.exports.Stream=i}else{t=e.exports=r(6437);t.Stream=i||t;t.Readable=t;t.Writable=r(8709);t.Duplex=r(7591);t.Transform=r(1625);t.PassThrough=r(5643);t.finished=r(8951);t.pipeline=r(2165)}},8975:function(e,t,r){e.exports=readdirGlob;const i=r(9896);const{EventEmitter:n}=r(4434);const{Minimatch:s}=r(9007);const{resolve:o}=r(6928);function readdir(e,t){return new Promise(((r,n)=>{i.readdir(e,{withFileTypes:true},((e,i)=>{if(e){switch(e.code){case"ENOTDIR":if(t){n(e)}else{r([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;case"ELOOP":default:n(e);break}}else{r(i)}}))}))}function stat(e,t){return new Promise(((r,n)=>{const s=t?i.stat:i.lstat;s(e,((i,n)=>{if(i){switch(i.code){case"ENOENT":if(t){r(stat(e,false))}else{r(null)}break;default:r(null);break}}else{r(n)}}))}))}async function*exploreWalkAsync(e,t,r,i,n,s){let o=await readdir(t+e,s);for(const s of o){let o=s.name;if(o===undefined){o=s;i=true}const c=e+"/"+o;const h=c.slice(1);const p=t+"/"+h;let g=null;if(i||r){g=await stat(p,r)}if(!g&&s.name!==undefined){g=s}if(g===null){g={isDirectory:()=>false}}if(g.isDirectory()){if(!n(h)){yield{relative:h,absolute:p,stats:g};yield*exploreWalkAsync(c,t,r,i,n,false)}}else{yield{relative:h,absolute:p,stats:g}}}}async function*explore(e,t,r,i){yield*exploreWalkAsync("",e,t,r,i,true)}function readOptions(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}class ReaddirGlob extends n{constructor(e,t,r){super();if(typeof t==="function"){r=t;t=null}this.options=readOptions(t||{});this.matchers=[];if(this.options.pattern){const e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map((e=>new s(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map((e=>new s(e,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map((e=>new s(e,{dot:true})))}this.iterator=explore(o(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(r){this._matches=[];this.on("match",(e=>this._matches.push(this.options.absolute?e.absolute:e.relative)));this.on("error",(e=>r(e)));this.on("end",(()=>r(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(e){return this.skipMatchers.some((t=>t.match(e)))}_fileMatches(e,t){const r=e+(t?"/":"");return(this.matchers.length===0||this.matchers.some((e=>e.match(r))))&&!this.ignoreMatchers.some((e=>e.match(r)))&&(!this.options.nodir||!t)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((e=>{if(!e.done){const t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let r=e.value.relative;let i=e.value.absolute;if(this.options.mark&&t){r+="/";i+="/"}if(this.options.stat){this.emit("match",{relative:r,absolute:i,stat:e.value.stats})}else{this.emit("match",{relative:r,absolute:i})}}this._next(this.iterator)}else{this.emit("end")}})).catch((e=>{this.abort();this.emit("error",e);if(!e.code&&!this.options.silent){console.error(e)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(e,t,r){return new ReaddirGlob(e,t,r)}readdirGlob.ReaddirGlob=ReaddirGlob},8525:function(e,t,r){e.exports=rimraf;rimraf.sync=rimrafSync;var i=r(2613);var n=r(6928);var s=r(9896);var o=undefined;try{o=r(4908)}catch(e){}var c=parseInt("666",8);var h={nosort:true,silent:true};var p=0;var g=process.platform==="win32";function defaults(e){var t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((function(t){e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||h}function rimraf(e,t,r){if(typeof t==="function"){r=t;t={}}i(e,"rimraf: missing path");i.equal(typeof e,"string","rimraf: path should be a string");i.equal(typeof r,"function","rimraf: callback function required");i(t,"rimraf: invalid options argument provided");i.equal(typeof t,"object","rimraf: options should be object");defaults(t);var n=0;var s=null;var c=0;if(t.disableGlob||!o.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,(function(r,i){if(!r)return afterGlob(null,[e]);o(e,t.glob,afterGlob)}));function next(e){s=s||e;if(--c===0)r(s)}function afterGlob(e,i){if(e)return r(e);c=i.length;if(c===0)return r();i.forEach((function(e){rimraf_(e,t,(function CB(r){if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&n<t.maxBusyTries){n++;var i=n*100;return setTimeout((function(){rimraf_(e,t,CB)}),i)}if(r.code==="EMFILE"&&p<t.emfileWait){return setTimeout((function(){rimraf_(e,t,CB)}),p++)}if(r.code==="ENOENT")r=null}p=0;next(r)}))}))}}function rimraf_(e,t,r){i(e);i(t);i(typeof r==="function");t.lstat(e,(function(i,n){if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&g)fixWinEPERM(e,t,i,r);if(n&&n.isDirectory())return rmdir(e,t,i,r);t.unlink(e,(function(i){if(i){if(i.code==="ENOENT")return r(null);if(i.code==="EPERM")return g?fixWinEPERM(e,t,i,r):rmdir(e,t,i,r);if(i.code==="EISDIR")return rmdir(e,t,i,r)}return r(i)}))}))}function fixWinEPERM(e,t,r,n){i(e);i(t);i(typeof n==="function");if(r)i(r instanceof Error);t.chmod(e,c,(function(i){if(i)n(i.code==="ENOENT"?null:r);else t.stat(e,(function(i,s){if(i)n(i.code==="ENOENT"?null:r);else if(s.isDirectory())rmdir(e,t,r,n);else t.unlink(e,n)}))}))}function fixWinEPERMSync(e,t,r){i(e);i(t);if(r)i(r instanceof Error);try{t.chmodSync(e,c)}catch(e){if(e.code==="ENOENT")return;else throw r}try{var n=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(n.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)}function rmdir(e,t,r,n){i(e);i(t);if(r)i(r instanceof Error);i(typeof n==="function");t.rmdir(e,(function(i){if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM"))rmkids(e,t,n);else if(i&&i.code==="ENOTDIR")n(r);else n(i)}))}function rmkids(e,t,r){i(e);i(t);i(typeof r==="function");t.readdir(e,(function(i,s){if(i)return r(i);var o=s.length;if(o===0)return t.rmdir(e,r);var c;s.forEach((function(i){rimraf(n.join(e,i),t,(function(i){if(c)return;if(i)return r(c=i);if(--o===0)t.rmdir(e,r)}))}))}))}function rimrafSync(e,t){t=t||{};defaults(t);i(e,"rimraf: missing path");i.equal(typeof e,"string","rimraf: path should be a string");i(t,"rimraf: missing options");i.equal(typeof t,"object","rimraf: options should be object");var r;if(t.disableGlob||!o.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(i){r=o.sync(e,t.glob)}}if(!r.length)return;for(var n=0;n<r.length;n++){var e=r[n];try{var s=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM"&&g)fixWinEPERMSync(e,t,r)}try{if(s&&s.isDirectory())rmdirSync(e,t,null);else t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return g?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r);if(r.code!=="EISDIR")throw r;rmdirSync(e,t,r)}}}function rmdirSync(e,t,r){i(e);i(t);if(r)i(r instanceof Error);try{t.rmdirSync(e)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw r;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")rmkidsSync(e,t)}}function rmkidsSync(e,t){i(e);i(t);t.readdirSync(e).forEach((function(r){rimrafSync(n.join(e,r),t)}));var r=g?100:1;var s=0;do{var o=true;try{var c=t.rmdirSync(e,t);o=false;return c}finally{if(++s<r&&o)continue}}while(true)}},6912:function(e,t,r){var i=r(181);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},3476:function(e,t,r){
59
59
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
60
- var i=r(181);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}SafeBuffer.prototype=Object.create(n.prototype);copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},8378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=r(6697);const n=r(2568);const s=r(6211);var o=i.isS;var c=i.isChar;var h=i.isNameStartChar;var p=i.isNameChar;var g=i.S_LIST;var y=i.NAME_RE;var v=n.isChar;var b=s.isNCNameStartChar;var _=s.isNCNameChar;var w=s.NC_NAME_RE;const x="http://www.w3.org/XML/1998/namespace";const S="http://www.w3.org/2000/xmlns/";const k={__proto__:null,xml:x,xmlns:S};const C={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};const E=-1;const R=-2;const O=0;const A=1;const I=2;const P=3;const N=4;const F=5;const D=6;const L=7;const B=8;const M=9;const j=10;const z=11;const W=12;const H=13;const X=14;const $=15;const V=16;const U=17;const q=18;const G=19;const Z=20;const Y=21;const K=22;const Q=23;const J=24;const ee=25;const te=26;const re=27;const ie=28;const ne=29;const se=30;const ae=31;const oe=32;const le=33;const ue=34;const fe=35;const ce=36;const he=37;const de=38;const pe=39;const me=40;const ge=41;const ye=42;const ve=43;const be=44;const _e=9;const we=10;const xe=13;const Se=32;const ke=33;const Ce=34;const Te=38;const Ee=39;const Re=45;const Oe=47;const Ae=59;const Ie=60;const Pe=61;const Ne=62;const Fe=63;const De=91;const Le=93;const Be=133;const Me=8232;const isQuote=e=>e===Ce||e===Ee;const je=[Ce,Ee];const ze=[...je,De,Ne];const We=[...je,Ie,Le];const He=[Pe,Fe,...g];const Xe=[...g,Ne,Te,Ie];function nsPairCheck(e,t,r){switch(t){case"xml":if(r!==x){e.fail(`xml prefix must be bound to ${x}.`)}break;case"xmlns":if(r!==S){e.fail(`xmlns prefix must be bound to ${S}.`)}break;default:}switch(r){case S:e.fail(t===""?`the default namespace may not be set to ${r}.`:`may not assign a prefix (even "xmlns") to the URI ${S}.`);break;case x:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${r}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}break;default:}}function nsMappingCheck(e,t){for(const r of Object.keys(t)){nsPairCheck(e,r,t[r])}}const isNCName=e=>w.test(e);const isName=e=>y.test(e);const $e=0;const Ve=1;const Ue=2;t.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const qe={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class SaxesParser{constructor(e){this.opt=e!==null&&e!==void 0?e:{};this.fragmentOpt=!!this.opt.fragment;const t=this.xmlnsOpt=!!this.opt.xmlns;this.trackPosition=this.opt.position!==false;this.fileName=this.opt.fileName;if(t){this.nameStartCheck=b;this.nameCheck=_;this.isName=isNCName;this.processAttribs=this.processAttribsNS;this.pushAttrib=this.pushAttribNS;this.ns=Object.assign({__proto__:null},k);const e=this.opt.additionalNamespaces;if(e!=null){nsMappingCheck(this,e);Object.assign(this.ns,e)}}else{this.nameStartCheck=h;this.nameCheck=p;this.isName=isName;this.processAttribs=this.processAttribsPlain;this.pushAttrib=this.pushAttribPlain}this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite];this._init()}get closed(){return this._closed}_init(){var e;this.openWakaBang="";this.text="";this.name="";this.piTarget="";this.entity="";this.q=null;this.tags=[];this.tag=null;this.topNS=null;this.chunk="";this.chunkPosition=0;this.i=0;this.prevI=0;this.carriedFromPrevious=undefined;this.forbiddenState=$e;this.attribList=[];const{fragmentOpt:t}=this;this.state=t?H:O;this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t;this.xmlDeclPossible=!t;this.xmlDeclExpects=["version"];this.entityReturnState=undefined;let{defaultXMLVersion:r}=this.opt;if(r===undefined){if(this.opt.forceXMLVersion===true){throw new Error("forceXMLVersion set but defaultXMLVersion is not set")}r="1.0"}this.setXMLVersion(r);this.positionAtNewLine=0;this.doctype=false;this._closed=false;this.xmlDecl={version:undefined,encoding:undefined,standalone:undefined};this.line=1;this.column=0;this.ENTITIES=Object.create(C);(e=this.readyHandler)===null||e===void 0?void 0:e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[qe[e]]=t}off(e){this[qe[e]]=undefined}makeError(e){var t;let r=(t=this.fileName)!==null&&t!==void 0?t:"";if(this.trackPosition){if(r.length>0){r+=":"}r+=`${this.line}:${this.column}`}if(r.length>0){r+=": "}return new Error(r+e)}fail(e){const t=this.makeError(e);const r=this.errorHandler;if(r===undefined){throw t}else{r(t)}return this}write(e){if(this.closed){return this.fail("cannot write after close; assign an onready handler.")}let t=false;if(e===null){t=true;e=""}else if(typeof e==="object"){e=e.toString()}if(this.carriedFromPrevious!==undefined){e=`${this.carriedFromPrevious}${e}`;this.carriedFromPrevious=undefined}let r=e.length;const i=e.charCodeAt(r-1);if(!t&&(i===xe||i>=55296&&i<=56319)){this.carriedFromPrevious=e[r-1];r--;e=e.slice(0,r)}const{stateTable:n}=this;this.chunk=e;this.i=0;while(this.i<r){n[this.state].call(this)}this.chunkPosition+=r;return t?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:e,i:t}=this;this.prevI=t;this.i=t+1;if(t>=e.length){return E}const r=e.charCodeAt(t);this.column++;if(r<55296){if(r>=Se||r===_e){return r}switch(r){case we:this.line++;this.column=0;this.positionAtNewLine=this.position;return we;case xe:if(e.charCodeAt(t+1)===we){this.i=t+2}this.line++;this.column=0;this.positionAtNewLine=this.position;return R;default:this.fail("disallowed character.");return r}}if(r>56319){if(!(r>=57344&&r<=65533)){this.fail("disallowed character.")}return r}const i=65536+(r-55296)*1024+(e.charCodeAt(t+1)-56320);this.i=t+2;if(i>1114111){this.fail("disallowed character.")}return i}getCode11(){const{chunk:e,i:t}=this;this.prevI=t;this.i=t+1;if(t>=e.length){return E}const r=e.charCodeAt(t);this.column++;if(r<55296){if(r>31&&r<127||r>159&&r!==Me||r===_e){return r}switch(r){case we:this.line++;this.column=0;this.positionAtNewLine=this.position;return we;case xe:{const r=e.charCodeAt(t+1);if(r===we||r===Be){this.i=t+2}}case Be:case Me:this.line++;this.column=0;this.positionAtNewLine=this.position;return R;default:this.fail("disallowed character.");return r}}if(r>56319){if(!(r>=57344&&r<=65533)){this.fail("disallowed character.")}return r}const i=65536+(r-55296)*1024+(e.charCodeAt(t+1)-56320);this.i=t+2;if(i>1114111){this.fail("disallowed character.")}return i}getCodeNorm(){const e=this.getCode();return e===R?we:e}unget(){this.i=this.prevI;this.column--}captureTo(e){let{i:t}=this;const{chunk:r}=this;while(true){const i=this.getCode();const n=i===R;const s=n?we:i;if(s===E||e.includes(s)){this.text+=r.slice(t,this.prevI);return s}if(n){this.text+=`${r.slice(t,this.prevI)}\n`;t=this.i}}}captureToChar(e){let{i:t}=this;const{chunk:r}=this;while(true){let i=this.getCode();switch(i){case R:this.text+=`${r.slice(t,this.prevI)}\n`;t=this.i;i=we;break;case E:this.text+=r.slice(t);return false;default:}if(i===e){this.text+=r.slice(t,this.prevI);return true}}}captureNameChars(){const{chunk:e,i:t}=this;while(true){const r=this.getCode();if(r===E){this.name+=e.slice(t);return E}if(!p(r)){this.name+=e.slice(t,this.prevI);return r===R?we:r}}}skipSpaces(){while(true){const e=this.getCodeNorm();if(e===E||!o(e)){return e}}}setXMLVersion(e){this.currentXMLVersion=e;if(e==="1.0"){this.isChar=c;this.getCode=this.getCode10}else{this.isChar=v;this.getCode=this.getCode11}}sBegin(){if(this.chunk.charCodeAt(0)===65279){this.i++;this.column++}this.state=A}sBeginWhitespace(){const e=this.i;const t=this.skipSpaces();if(this.prevI!==e){this.xmlDeclPossible=false}switch(t){case Ie:this.state=$;if(this.text.length!==0){throw new Error("no-empty text at start")}break;case E:break;default:this.unget();this.state=H;this.xmlDeclPossible=false}}sDoctype(){var e;const t=this.captureTo(ze);switch(t){case Ne:{(e=this.doctypeHandler)===null||e===void 0?void 0:e.call(this,this.text);this.text="";this.state=H;this.doctype=true;break}case E:break;default:this.text+=String.fromCodePoint(t);if(t===De){this.state=N}else if(isQuote(t)){this.state=P;this.q=t}}}sDoctypeQuote(){const e=this.q;if(this.captureToChar(e)){this.text+=String.fromCodePoint(e);this.q=null;this.state=I}}sDTD(){const e=this.captureTo(We);if(e===E){return}this.text+=String.fromCodePoint(e);if(e===Le){this.state=I}else if(e===Ie){this.state=D}else if(isQuote(e)){this.state=F;this.q=e}}sDTDQuoted(){const e=this.q;if(this.captureToChar(e)){this.text+=String.fromCodePoint(e);this.state=N;this.q=null}}sDTDOpenWaka(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e);switch(e){case ke:this.state=L;this.openWakaBang="";break;case Fe:this.state=z;break;default:this.state=N}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm());const t=this.openWakaBang+=e;this.text+=e;if(t!=="-"){this.state=t==="--"?B:N;this.openWakaBang=""}}sDTDComment(){if(this.captureToChar(Re)){this.text+="-";this.state=M}}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e);this.state=e===Re?j:B}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e);if(e===Ne){this.state=N}else{this.fail("malformed comment.");this.state=B}}sDTDPI(){if(this.captureToChar(Fe)){this.text+="?";this.state=W}}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e);if(e===Ne){this.state=N}}sText(){if(this.tags.length!==0){this.handleTextInRoot()}else{this.handleTextOutsideRoot()}}sEntity(){let{i:e}=this;const{chunk:t}=this;e:while(true){switch(this.getCode()){case R:this.entity+=`${t.slice(e,this.prevI)}\n`;e=this.i;break;case Ae:{const{entityReturnState:r}=this;const i=this.entity+t.slice(e,this.prevI);this.state=r;let n;if(i===""){this.fail("empty entity name.");n="&;"}else{n=this.parseEntity(i);this.entity=""}if(r!==H||this.textHandler!==undefined){this.text+=n}break e}case E:this.entity+=t.slice(e);break e;default:}}}sOpenWaka(){const e=this.getCode();if(h(e)){this.state=ue;this.unget();this.xmlDeclPossible=false}else{switch(e){case Oe:this.state=ve;this.xmlDeclPossible=false;break;case ke:this.state=V;this.openWakaBang="";this.xmlDeclPossible=false;break;case Fe:this.state=Q;break;default:this.fail("disallowed character in tag name");this.state=H;this.xmlDeclPossible=false}}}sOpenWakaBang(){this.openWakaBang+=String.fromCodePoint(this.getCodeNorm());switch(this.openWakaBang){case"[CDATA[":if(!this.sawRoot&&!this.reportedTextBeforeRoot){this.fail("text data outside of root node.");this.reportedTextBeforeRoot=true}if(this.closedRoot&&!this.reportedTextAfterRoot){this.fail("text data outside of root node.");this.reportedTextAfterRoot=true}this.state=Z;this.openWakaBang="";break;case"--":this.state=U;this.openWakaBang="";break;case"DOCTYPE":this.state=I;if(this.doctype||this.sawRoot){this.fail("inappropriately located doctype declaration.")}this.openWakaBang="";break;default:if(this.openWakaBang.length>=7){this.fail("incorrect syntax.")}}}sComment(){if(this.captureToChar(Re)){this.state=q}}sCommentEnding(){var e;const t=this.getCodeNorm();if(t===Re){this.state=G;(e=this.commentHandler)===null||e===void 0?void 0:e.call(this,this.text);this.text=""}else{this.text+=`-${String.fromCodePoint(t)}`;this.state=U}}sCommentEnded(){const e=this.getCodeNorm();if(e!==Ne){this.fail("malformed comment.");this.text+=`--${String.fromCodePoint(e)}`;this.state=U}else{this.state=H}}sCData(){if(this.captureToChar(Le)){this.state=Y}}sCDataEnding(){const e=this.getCodeNorm();if(e===Le){this.state=K}else{this.text+=`]${String.fromCodePoint(e)}`;this.state=Z}}sCDataEnding2(){var e;const t=this.getCodeNorm();switch(t){case Ne:{(e=this.cdataHandler)===null||e===void 0?void 0:e.call(this,this.text);this.text="";this.state=H;break}case Le:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`;this.state=Z}}sPIFirstChar(){const e=this.getCodeNorm();if(this.nameStartCheck(e)){this.piTarget+=String.fromCodePoint(e);this.state=J}else if(e===Fe||o(e)){this.fail("processing instruction without a target.");this.state=e===Fe?te:ee}else{this.fail("disallowed character in processing instruction name.");this.piTarget+=String.fromCodePoint(e);this.state=J}}sPIRest(){const{chunk:e,i:t}=this;while(true){const r=this.getCodeNorm();if(r===E){this.piTarget+=e.slice(t);return}if(!this.nameCheck(r)){this.piTarget+=e.slice(t,this.prevI);const i=r===Fe;if(i||o(r)){if(this.piTarget==="xml"){if(!this.xmlDeclPossible){this.fail("an XML declaration must be at the start of the document.")}this.state=i?le:re}else{this.state=i?te:ee}}else{this.fail("disallowed character in processing instruction name.");this.piTarget+=String.fromCodePoint(r)}break}}}sPIBody(){if(this.text.length===0){const e=this.getCodeNorm();if(e===Fe){this.state=te}else if(!o(e)){this.text=String.fromCodePoint(e)}}else if(this.captureToChar(Fe)){this.state=te}}sPIEnding(){var e;const t=this.getCodeNorm();if(t===Ne){const{piTarget:t}=this;if(t.toLowerCase()==="xml"){this.fail("the XML declaration must appear at the start of the document.")}(e=this.piHandler)===null||e===void 0?void 0:e.call(this,{target:t,body:this.text});this.piTarget=this.text="";this.state=H}else if(t===Fe){this.text+="?"}else{this.text+=`?${String.fromCodePoint(t)}`;this.state=ee}this.xmlDeclPossible=false}sXMLDeclNameStart(){const e=this.skipSpaces();if(e===Fe){this.state=le;return}if(e!==E){this.state=ie;this.name=String.fromCodePoint(e)}}sXMLDeclName(){const e=this.captureTo(He);if(e===Fe){this.state=le;this.name+=this.text;this.text="";this.fail("XML declaration is incomplete.");return}if(!(o(e)||e===Pe)){return}this.name+=this.text;this.text="";if(!this.xmlDeclExpects.includes(this.name)){switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}}this.state=e===Pe?se:ne}sXMLDeclEq(){const e=this.getCodeNorm();if(e===Fe){this.state=le;this.fail("XML declaration is incomplete.");return}if(o(e)){return}if(e!==Pe){this.fail("value required.")}this.state=se}sXMLDeclValueStart(){const e=this.getCodeNorm();if(e===Fe){this.state=le;this.fail("XML declaration is incomplete.");return}if(o(e)){return}if(!isQuote(e)){this.fail("value must be quoted.");this.q=Se}else{this.q=e}this.state=ae}sXMLDeclValue(){const e=this.captureTo([this.q,Fe]);if(e===Fe){this.state=le;this.text="";this.fail("XML declaration is incomplete.");return}if(e===E){return}const t=this.text;this.text="";switch(this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const e=t;this.xmlDecl.version=e;if(!/^1\.[0-9]+$/.test(e)){this.fail("version number must match /^1\\.[0-9]+$/.")}else if(!this.opt.forceXMLVersion){this.setXMLVersion(e)}break}case"encoding":if(!/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)){this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.")}this.xmlDeclExpects=["standalone"];this.xmlDecl.encoding=t;break;case"standalone":if(t!=="yes"&&t!=="no"){this.fail('standalone value must match "yes" or "no".')}this.xmlDeclExpects=[];this.xmlDecl.standalone=t;break;default:}this.name="";this.state=oe}sXMLDeclSeparator(){const e=this.getCodeNorm();if(e===Fe){this.state=le;return}if(!o(e)){this.fail("whitespace required.");this.unget()}this.state=re}sXMLDeclEnding(){var e;const t=this.getCodeNorm();if(t===Ne){if(this.piTarget!=="xml"){this.fail("processing instructions are not allowed before root.")}else if(this.name!=="version"&&this.xmlDeclExpects.includes("version")){this.fail("XML declaration must contain a version.")}(e=this.xmldeclHandler)===null||e===void 0?void 0:e.call(this,this.xmlDecl);this.name="";this.piTarget=this.text="";this.state=H}else{this.fail("The character ? is disallowed anywhere in XML declarations.")}this.xmlDeclPossible=false}sOpenTag(){var e;const t=this.captureNameChars();if(t===E){return}const r=this.tag={name:this.name,attributes:Object.create(null)};this.name="";if(this.xmlnsOpt){this.topNS=r.ns=Object.create(null)}(e=this.openTagStartHandler)===null||e===void 0?void 0:e.call(this,r);this.sawRoot=true;if(!this.fragmentOpt&&this.closedRoot){this.fail("documents may contain only one root.")}switch(t){case Ne:this.openTag();break;case Oe:this.state=fe;break;default:if(!o(t)){this.fail("disallowed character in tag name.")}this.state=ce}}sOpenTagSlash(){if(this.getCode()===Ne){this.openSelfClosingTag()}else{this.fail("forward-slash in opening tag not followed by >.");this.state=ce}}sAttrib(){const e=this.skipSpaces();if(e===E){return}if(h(e)){this.unget();this.state=he}else if(e===Ne){this.openTag()}else if(e===Oe){this.state=fe}else{this.fail("disallowed character in attribute name.")}}sAttribName(){const e=this.captureNameChars();if(e===Pe){this.state=pe}else if(o(e)){this.state=de}else if(e===Ne){this.fail("attribute without value.");this.pushAttrib(this.name,this.name);this.name=this.text="";this.openTag()}else if(e!==E){this.fail("disallowed character in attribute name.")}}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case E:return;case Pe:this.state=pe;break;default:this.fail("attribute without value.");this.text="";this.name="";if(e===Ne){this.openTag()}else if(h(e)){this.unget();this.state=he}else{this.fail("disallowed character in attribute name.");this.state=ce}}}sAttribValue(){const e=this.getCodeNorm();if(isQuote(e)){this.q=e;this.state=me}else if(!o(e)){this.fail("unquoted attribute value.");this.state=ye;this.unget()}}sAttribValueQuoted(){const{q:e,chunk:t}=this;let{i:r}=this;while(true){switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+t.slice(r,this.prevI));this.name=this.text="";this.q=null;this.state=ge;return;case Te:this.text+=t.slice(r,this.prevI);this.state=X;this.entityReturnState=me;return;case we:case R:case _e:this.text+=`${t.slice(r,this.prevI)} `;r=this.i;break;case Ie:this.text+=t.slice(r,this.prevI);this.fail("disallowed character.");return;case E:this.text+=t.slice(r);return;default:}}}sAttribValueClosed(){const e=this.getCodeNorm();if(o(e)){this.state=ce}else if(e===Ne){this.openTag()}else if(e===Oe){this.state=fe}else if(h(e)){this.fail("no whitespace between attributes.");this.unget();this.state=he}else{this.fail("disallowed character in attribute name.")}}sAttribValueUnquoted(){const e=this.captureTo(Xe);switch(e){case Te:this.state=X;this.entityReturnState=ye;break;case Ie:this.fail("disallowed character.");break;case E:break;default:if(this.text.includes("]]>")){this.fail('the string "]]>" is disallowed in char data.')}this.pushAttrib(this.name,this.text);this.name=this.text="";if(e===Ne){this.openTag()}else{this.state=ce}}}sCloseTag(){const e=this.captureNameChars();if(e===Ne){this.closeTag()}else if(o(e)){this.state=be}else if(e!==E){this.fail("disallowed character in closing tag.")}}sCloseTagSawWhite(){switch(this.skipSpaces()){case Ne:this.closeTag();break;case E:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:t}=this;const{chunk:r,textHandler:i}=this;e:while(true){switch(this.getCode()){case Ie:{this.state=$;if(i!==undefined){const{text:t}=this;const n=r.slice(e,this.prevI);if(t.length!==0){i(t+n);this.text=""}else if(n.length!==0){i(n)}}t=$e;break e}case Te:this.state=X;this.entityReturnState=H;if(i!==undefined){this.text+=r.slice(e,this.prevI)}t=$e;break e;case Le:switch(t){case $e:t=Ve;break;case Ve:t=Ue;break;case Ue:break;default:throw new Error("impossible state")}break;case Ne:if(t===Ue){this.fail('the string "]]>" is disallowed in char data.')}t=$e;break;case R:if(i!==undefined){this.text+=`${r.slice(e,this.prevI)}\n`}e=this.i;t=$e;break;case E:if(i!==undefined){this.text+=r.slice(e)}break e;default:t=$e}}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this;const{chunk:t,textHandler:r}=this;let i=false;e:while(true){const n=this.getCode();switch(n){case Ie:{this.state=$;if(r!==undefined){const{text:i}=this;const n=t.slice(e,this.prevI);if(i.length!==0){r(i+n);this.text=""}else if(n.length!==0){r(n)}}break e}case Te:this.state=X;this.entityReturnState=H;if(r!==undefined){this.text+=t.slice(e,this.prevI)}i=true;break e;case R:if(r!==undefined){this.text+=`${t.slice(e,this.prevI)}\n`}e=this.i;break;case E:if(r!==undefined){this.text+=t.slice(e)}break e;default:if(!o(n)){i=true}}}if(!i){return}if(!this.sawRoot&&!this.reportedTextBeforeRoot){this.fail("text data outside of root node.");this.reportedTextBeforeRoot=true}if(this.closedRoot&&!this.reportedTextAfterRoot){this.fail("text data outside of root node.");this.reportedTextAfterRoot=true}}pushAttribNS(e,t){var r;const{prefix:i,local:n}=this.qname(e);const s={name:e,prefix:i,local:n,value:t};this.attribList.push(s);(r=this.attributeHandler)===null||r===void 0?void 0:r.call(this,s);if(i==="xmlns"){const e=t.trim();if(this.currentXMLVersion==="1.0"&&e===""){this.fail("invalid attempt to undefine prefix in XML 1.0")}this.topNS[n]=e;nsPairCheck(this,n,e)}else if(e==="xmlns"){const e=t.trim();this.topNS[""]=e;nsPairCheck(this,"",e)}}pushAttribPlain(e,t){var r;const i={name:e,value:t};this.attribList.push(i);(r=this.attributeHandler)===null||r===void 0?void 0:r.call(this,i)}end(){var e,t;if(!this.sawRoot){this.fail("document must contain a root element.")}const{tags:r}=this;while(r.length>0){const e=r.pop();this.fail(`unclosed tag: ${e.name}`)}if(this.state!==O&&this.state!==H){this.fail("unexpected end.")}const{text:i}=this;if(i.length!==0){(e=this.textHandler)===null||e===void 0?void 0:e.call(this,i);this.text=""}this._closed=true;(t=this.endHandler)===null||t===void 0?void 0:t.call(this);this._init();return this}resolve(e){var t,r;let i=this.topNS[e];if(i!==undefined){return i}const{tags:n}=this;for(let t=n.length-1;t>=0;t--){i=n[t].ns[e];if(i!==undefined){return i}}i=this.ns[e];if(i!==undefined){return i}return(r=(t=this.opt).resolvePrefix)===null||r===void 0?void 0:r.call(t,e)}qname(e){const t=e.indexOf(":");if(t===-1){return{prefix:"",local:e}}const r=e.slice(t+1);const i=e.slice(0,t);if(i===""||r===""||r.includes(":")){this.fail(`malformed name: ${e}.`)}return{prefix:i,local:r}}processAttribsNS(){var e;const{attribList:t}=this;const r=this.tag;{const{prefix:t,local:i}=this.qname(r.name);r.prefix=t;r.local=i;const n=r.uri=(e=this.resolve(t))!==null&&e!==void 0?e:"";if(t!==""){if(t==="xmlns"){this.fail('tags may not have "xmlns" as prefix.')}if(n===""){this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`);r.uri=t}}}if(t.length===0){return}const{attributes:i}=r;const n=new Set;for(const e of t){const{name:t,prefix:r,local:s}=e;let o;let c;if(r===""){o=t==="xmlns"?S:"";c=t}else{o=this.resolve(r);if(o===undefined){this.fail(`unbound namespace prefix: ${JSON.stringify(r)}.`);o=r}c=`{${o}}${s}`}if(n.has(c)){this.fail(`duplicate attribute: ${c}.`)}n.add(c);e.uri=o;i[t]=e}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this;const t=this.tag.attributes;for(const{name:r,value:i}of e){if(t[r]!==undefined){this.fail(`duplicate attribute: ${r}.`)}t[r]=i}this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:t}=this;const r=this.tag;r.isSelfClosing=false;(e=this.openTagHandler)===null||e===void 0?void 0:e.call(this,r);t.push(r);this.state=H;this.name=""}openSelfClosingTag(){var e,t,r;this.processAttribs();const{tags:i}=this;const n=this.tag;n.isSelfClosing=true;(e=this.openTagHandler)===null||e===void 0?void 0:e.call(this,n);(t=this.closeTagHandler)===null||t===void 0?void 0:t.call(this,n);const s=this.tag=(r=i[i.length-1])!==null&&r!==void 0?r:null;if(s===null){this.closedRoot=true}this.state=H;this.name=""}closeTag(){const{tags:e,name:t}=this;this.state=H;this.name="";if(t===""){this.fail("weird empty close tag.");this.text+="</>";return}const r=this.closeTagHandler;let i=e.length;while(i-- >0){const i=this.tag=e.pop();this.topNS=i.ns;r===null||r===void 0?void 0:r(i);if(i.name===t){break}this.fail("unexpected close tag.")}if(i===0){this.closedRoot=true}else if(i<0){this.fail(`unmatched closing tag: ${t}.`);this.text+=`</${t}>`}}parseEntity(e){if(e[0]!=="#"){const t=this.ENTITIES[e];if(t!==undefined){return t}this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name.");return`&${e};`}let t=NaN;if(e[1]==="x"&&/^#x[0-9a-f]+$/i.test(e)){t=parseInt(e.slice(2),16)}else if(/^#[0-9]+$/.test(e)){t=parseInt(e.slice(1),10)}if(!this.isChar(t)){this.fail("malformed character entity.");return`&${e};`}return String.fromCodePoint(t)}}t.SaxesParser=SaxesParser},1093:function(){(function(e,t){"use strict";if(e.setImmediate){return}var r=1;var i={};var n=false;var s=e.document;var o;function setImmediate(e){if(typeof e!=="function"){e=new Function(""+e)}var t=new Array(arguments.length-1);for(var n=0;n<t.length;n++){t[n]=arguments[n+1]}var s={callback:e,args:t};i[r]=s;o(r);return r++}function clearImmediate(e){delete i[e]}function run(e){var r=e.callback;var i=e.args;switch(i.length){case 0:r();break;case 1:r(i[0]);break;case 2:r(i[0],i[1]);break;case 3:r(i[0],i[1],i[2]);break;default:r.apply(t,i);break}}function runIfPresent(e){if(n){setTimeout(runIfPresent,0,e)}else{var t=i[e];if(t){n=true;try{run(t)}finally{clearImmediate(e);n=false}}}}function installNextTickImplementation(){o=function(e){process.nextTick((function(){runIfPresent(e)}))}}function canUsePostMessage(){if(e.postMessage&&!e.importScripts){var t=true;var r=e.onmessage;e.onmessage=function(){t=false};e.postMessage("","*");e.onmessage=r;return t}}function installPostMessageImplementation(){var t="setImmediate$"+Math.random()+"$";var onGlobalMessage=function(r){if(r.source===e&&typeof r.data==="string"&&r.data.indexOf(t)===0){runIfPresent(+r.data.slice(t.length))}};if(e.addEventListener){e.addEventListener("message",onGlobalMessage,false)}else{e.attachEvent("onmessage",onGlobalMessage)}o=function(r){e.postMessage(t+r,"*")}}function installMessageChannelImplementation(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;runIfPresent(t)};o=function(t){e.port2.postMessage(t)}}function installReadyStateChangeImplementation(){var e=s.documentElement;o=function(t){var r=s.createElement("script");r.onreadystatechange=function(){runIfPresent(t);r.onreadystatechange=null;e.removeChild(r);r=null};e.appendChild(r)}}function installSetTimeoutImplementation(){o=function(e){setTimeout(runIfPresent,0,e)}}var c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e;if({}.toString.call(e.process)==="[object process]"){installNextTickImplementation()}else if(canUsePostMessage()){installPostMessageImplementation()}else if(e.MessageChannel){installMessageChannelImplementation()}else if(s&&"onreadystatechange"in s.createElement("script")){installReadyStateChangeImplementation()}else{installSetTimeoutImplementation()}c.setImmediate=setImmediate;c.clearImmediate=clearImmediate})(typeof self==="undefined"?typeof global==="undefined"?this:global:self)},8927:function(e,t,r){"use strict";var i=r(6912).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(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 true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){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=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},3252:function(e,t,r){"use strict";var i=r(3476).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(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 true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){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=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},5763:function(e,t,r){var i=r(9023);var n=r(739);var s=r(6940);var o=r(1643).Writable;var c=r(1643).PassThrough;var noop=function(){};var overflow=function(e){e&=511;return e&&512-e};var emptyStream=function(e,t){var r=new Source(e,t);r.end();return r};var mixinPax=function(e,t){if(t.path)e.name=t.path;if(t.linkpath)e.linkname=t.linkpath;if(t.size)e.size=parseInt(t.size,10);e.pax=t;return e};var Source=function(e,t){this._parent=e;this.offset=t;c.call(this,{autoDestroy:false})};i.inherits(Source,c);Source.prototype.destroy=function(e){this._parent.destroy(e)};var Extract=function(e){if(!(this instanceof Extract))return new Extract(e);o.call(this,e);e=e||{};this._offset=0;this._buffer=n();this._missing=0;this._partial=false;this._onparse=noop;this._header=null;this._stream=null;this._overflow=null;this._cb=null;this._locked=false;this._destroyed=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;var t=this;var r=t._buffer;var oncontinue=function(){t._continue()};var onunlock=function(e){t._locked=false;if(e)return t.destroy(e);if(!t._stream)oncontinue()};var onstreamend=function(){t._stream=null;var e=overflow(t._header.size);if(e)t._parse(e,ondrain);else t._parse(512,onheader);if(!t._locked)oncontinue()};var ondrain=function(){t._buffer.consume(overflow(t._header.size));t._parse(512,onheader);oncontinue()};var onpaxglobalheader=function(){var e=t._header.size;t._paxGlobal=s.decodePax(r.slice(0,e));r.consume(e);onstreamend()};var onpaxheader=function(){var e=t._header.size;t._pax=s.decodePax(r.slice(0,e));if(t._paxGlobal)t._pax=Object.assign({},t._paxGlobal,t._pax);r.consume(e);onstreamend()};var ongnulongpath=function(){var i=t._header.size;this._gnuLongPath=s.decodeLongPath(r.slice(0,i),e.filenameEncoding);r.consume(i);onstreamend()};var ongnulonglinkpath=function(){var i=t._header.size;this._gnuLongLinkPath=s.decodeLongPath(r.slice(0,i),e.filenameEncoding);r.consume(i);onstreamend()};var onheader=function(){var i=t._offset;var n;try{n=t._header=s.decode(r.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit("error",e)}r.consume(512);if(!n){t._parse(512,onheader);oncontinue();return}if(n.type==="gnu-long-path"){t._parse(n.size,ongnulongpath);oncontinue();return}if(n.type==="gnu-long-link-path"){t._parse(n.size,ongnulonglinkpath);oncontinue();return}if(n.type==="pax-global-header"){t._parse(n.size,onpaxglobalheader);oncontinue();return}if(n.type==="pax-header"){t._parse(n.size,onpaxheader);oncontinue();return}if(t._gnuLongPath){n.name=t._gnuLongPath;t._gnuLongPath=null}if(t._gnuLongLinkPath){n.linkname=t._gnuLongLinkPath;t._gnuLongLinkPath=null}if(t._pax){t._header=n=mixinPax(n,t._pax);t._pax=null}t._locked=true;if(!n.size||n.type==="directory"){t._parse(512,onheader);t.emit("entry",n,emptyStream(t,i),onunlock);return}t._stream=new Source(t,i);t.emit("entry",n,t._stream,onunlock);t._parse(n.size,onstreamend);oncontinue()};this._onheader=onheader;this._parse(512,onheader)};i.inherits(Extract,o);Extract.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream)this._stream.emit("close")};Extract.prototype._parse=function(e,t){if(this._destroyed)return;this._offset+=e;this._missing=e;if(t===this._onheader)this._partial=false;this._onparse=t};Extract.prototype._continue=function(){if(this._destroyed)return;var e=this._cb;this._cb=noop;if(this._overflow)this._write(this._overflow,undefined,e);else e()};Extract.prototype._write=function(e,t,r){if(this._destroyed)return;var i=this._stream;var n=this._buffer;var s=this._missing;if(e.length)this._partial=true;if(e.length<s){this._missing-=e.length;this._overflow=null;if(i)return i.write(e,r);n.append(e);return r()}this._cb=r;this._missing=0;var o=null;if(e.length>s){o=e.slice(s);e=e.slice(0,s)}if(i)i.end(e);else n.append(e);this._overflow=o;this._onparse()};Extract.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};e.exports=Extract},6940:function(e,t){var r=Buffer.alloc;var i="0000000000000000000";var n="7777777777777777777";var s="0".charCodeAt(0);var o=Buffer.from("ustar\0","binary");var c=Buffer.from("00","binary");var h=Buffer.from("ustar ","binary");var p=Buffer.from(" \0","binary");var g=parseInt("7777",8);var y=257;var v=263;var clamp=function(e,t,r){if(typeof e!=="number")return r;e=~~e;if(e>=t)return t;if(e>=0)return e;e+=t;if(e>=0)return e;return 0};var toType=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null};var toTypeflag=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0};var indexOf=function(e,t,r,i){for(;r<i;r++){if(e[r]===t)return r}return i};var cksum=function(e){var t=8*32;for(var r=0;r<148;r++)t+=e[r];for(var i=156;i<512;i++)t+=e[i];return t};var encodeOct=function(e,t){e=e.toString(8);if(e.length>t)return n.slice(0,t)+" ";else return i.slice(0,t-e.length)+e+" "};function parse256(e){var t;if(e[0]===128)t=true;else if(e[0]===255)t=false;else return null;var r=[];for(var i=e.length-1;i>0;i--){var n=e[i];if(t)r.push(n);else r.push(255-n)}var s=0;var o=r.length;for(i=0;i<o;i++){s+=r[i]*Math.pow(256,i)}return t?s:-1*s}var decodeOct=function(e,t,r){e=e.slice(t,t+r);t=0;if(e[t]&128){return parse256(e)}else{while(t<e.length&&e[t]===32)t++;var i=clamp(indexOf(e,32,t,e.length),e.length,e.length);while(t<i&&e[t]===0)t++;if(i===t)return 0;return parseInt(e.slice(t,i).toString(),8)}};var decodeStr=function(e,t,r,i){return e.slice(t,indexOf(e,0,t,t+r)).toString(i)};var addLength=function(e){var t=Buffer.byteLength(e);var r=Math.floor(Math.log(t)/Math.log(10))+1;if(t+r>=Math.pow(10,r))r++;return t+r+e};t.decodeLongPath=function(e,t){return decodeStr(e,0,e.length,t)};t.encodePax=function(e){var t="";if(e.name)t+=addLength(" path="+e.name+"\n");if(e.linkname)t+=addLength(" linkpath="+e.linkname+"\n");var r=e.pax;if(r){for(var i in r){t+=addLength(" "+i+"="+r[i]+"\n")}}return Buffer.from(t)};t.decodePax=function(e){var t={};while(e.length){var r=0;while(r<e.length&&e[r]!==32)r++;var i=parseInt(e.slice(0,r).toString(),10);if(!i)return t;var n=e.slice(r+1,i-1).toString();var s=n.indexOf("=");if(s===-1)return t;t[n.slice(0,s)]=n.slice(s+1);e=e.slice(i)}return t};t.encode=function(e){var t=r(512);var i=e.name;var n="";if(e.typeflag===5&&i[i.length-1]!=="/")i+="/";if(Buffer.byteLength(i)!==i.length)return null;while(Buffer.byteLength(i)>100){var h=i.indexOf("/");if(h===-1)return null;n+=n?"/"+i.slice(0,h):i.slice(0,h);i=i.slice(h+1)}if(Buffer.byteLength(i)>100||Buffer.byteLength(n)>155)return null;if(e.linkname&&Buffer.byteLength(e.linkname)>100)return null;t.write(i);t.write(encodeOct(e.mode&g,6),100);t.write(encodeOct(e.uid,6),108);t.write(encodeOct(e.gid,6),116);t.write(encodeOct(e.size,11),124);t.write(encodeOct(e.mtime.getTime()/1e3|0,11),136);t[156]=s+toTypeflag(e.type);if(e.linkname)t.write(e.linkname,157);o.copy(t,y);c.copy(t,v);if(e.uname)t.write(e.uname,265);if(e.gname)t.write(e.gname,297);t.write(encodeOct(e.devmajor||0,6),329);t.write(encodeOct(e.devminor||0,6),337);if(n)t.write(n,345);t.write(encodeOct(cksum(t),6),148);return t};t.decode=function(e,t,r){var i=e[156]===0?0:e[156]-s;var n=decodeStr(e,0,100,t);var c=decodeOct(e,100,8);var g=decodeOct(e,108,8);var b=decodeOct(e,116,8);var _=decodeOct(e,124,12);var w=decodeOct(e,136,12);var x=toType(i);var S=e[157]===0?null:decodeStr(e,157,100,t);var k=decodeStr(e,265,32);var C=decodeStr(e,297,32);var E=decodeOct(e,329,8);var R=decodeOct(e,337,8);var O=cksum(e);if(O===8*32)return null;if(O!==decodeOct(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(o.compare(e,y,y+6)===0){if(e[345])n=decodeStr(e,345,155,t)+"/"+n}else if(h.compare(e,y,y+6)===0&&p.compare(e,v,v+2)===0){}else{if(!r){throw new Error("Invalid tar header: unknown format.")}}if(i===0&&n&&n[n.length-1]==="/")i=5;return{name:n,mode:c,uid:g,gid:b,size:_,mtime:new Date(1e3*w),type:x,linkname:S,uname:k,gname:C,devmajor:E,devminor:R}}},2454:function(e,t,r){t.extract=r(5763);t.pack=r(3709)},3709:function(e,t,r){var i=r(9033);var n=r(5859);var s=r(4070);var o=Buffer.alloc;var c=r(1643).Readable;var h=r(1643).Writable;var p=r(5574).StringDecoder;var g=r(6940);var y=parseInt("755",8);var v=parseInt("644",8);var b=o(1024);var noop=function(){};var overflow=function(e,t){t&=511;if(t)e.push(b.slice(0,512-t))};function modeToType(e){switch(e&i.S_IFMT){case i.S_IFBLK:return"block-device";case i.S_IFCHR:return"character-device";case i.S_IFDIR:return"directory";case i.S_IFIFO:return"fifo";case i.S_IFLNK:return"symlink"}return"file"}var Sink=function(e){h.call(this);this.written=0;this._to=e;this._destroyed=false};s(Sink,h);Sink.prototype._write=function(e,t,r){this.written+=e.length;if(this._to.push(e))return r();this._to._drain=r};Sink.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var LinkSink=function(){h.call(this);this.linkname="";this._decoder=new p("utf-8");this._destroyed=false};s(LinkSink,h);LinkSink.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e);r()};LinkSink.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var Void=function(){h.call(this);this._destroyed=false};s(Void,h);Void.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Void.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var Pack=function(e){if(!(this instanceof Pack))return new Pack(e);c.call(this,e);this._drain=noop;this._finalized=false;this._finalizing=false;this._destroyed=false;this._stream=null};s(Pack,c);Pack.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(this._finalized||this._destroyed)return;if(typeof t==="function"){r=t;t=null}if(!r)r=noop;var i=this;if(!e.size||e.type==="symlink")e.size=0;if(!e.type)e.type=modeToType(e.mode);if(!e.mode)e.mode=e.type==="directory"?y:v;if(!e.uid)e.uid=0;if(!e.gid)e.gid=0;if(!e.mtime)e.mtime=new Date;if(typeof t==="string")t=Buffer.from(t);if(Buffer.isBuffer(t)){e.size=t.length;this._encode(e);var s=this.push(t);overflow(i,e.size);if(s)process.nextTick(r);else this._drain=r;return new Void}if(e.type==="symlink"&&!e.linkname){var o=new LinkSink;n(o,(function(t){if(t){i.destroy();return r(t)}e.linkname=o.linkname;i._encode(e);r()}));return o}this._encode(e);if(e.type!=="file"&&e.type!=="contiguous-file"){process.nextTick(r);return new Void}var c=new Sink(this);this._stream=c;n(c,(function(t){i._stream=null;if(t){i.destroy();return r(t)}if(c.written!==e.size){i.destroy();return r(new Error("size mismatch"))}overflow(i,e.size);if(i._finalizing)i.finalize();r()}));return c};Pack.prototype.finalize=function(){if(this._stream){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(b);this.push(null)};Pack.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream&&this._stream.destroy)this._stream.destroy()};Pack.prototype._encode=function(e){if(!e.pax){var t=g.encode(e);if(t){this.push(t);return}}this._encodePax(e)};Pack.prototype._encodePax=function(e){var t=g.encodePax({name:e.name,linkname:e.linkname,pax:e.pax});var r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(g.encode(r));this.push(t);overflow(this,t.length);r.size=e.size;r.type=e.type;this.push(g.encode(r))};Pack.prototype._read=function(e){var t=this._drain;this._drain=noop;t()};e.exports=Pack},7928:function(e,t,r){
60
+ var i=r(181);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}SafeBuffer.prototype=Object.create(n.prototype);copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},8378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=r(6697);const n=r(2568);const s=r(6211);var o=i.isS;var c=i.isChar;var h=i.isNameStartChar;var p=i.isNameChar;var g=i.S_LIST;var y=i.NAME_RE;var v=n.isChar;var b=s.isNCNameStartChar;var _=s.isNCNameChar;var w=s.NC_NAME_RE;const x="http://www.w3.org/XML/1998/namespace";const S="http://www.w3.org/2000/xmlns/";const k={__proto__:null,xml:x,xmlns:S};const C={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};const E=-1;const R=-2;const O=0;const A=1;const I=2;const P=3;const N=4;const F=5;const D=6;const L=7;const B=8;const M=9;const j=10;const z=11;const W=12;const H=13;const X=14;const $=15;const V=16;const U=17;const q=18;const G=19;const Z=20;const Y=21;const K=22;const Q=23;const J=24;const ee=25;const te=26;const re=27;const ie=28;const ne=29;const se=30;const ae=31;const oe=32;const le=33;const ue=34;const fe=35;const ce=36;const he=37;const de=38;const pe=39;const me=40;const ge=41;const ye=42;const ve=43;const be=44;const _e=9;const we=10;const xe=13;const Se=32;const ke=33;const Ce=34;const Te=38;const Ee=39;const Re=45;const Oe=47;const Ae=59;const Ie=60;const Pe=61;const Ne=62;const Fe=63;const De=91;const Le=93;const Be=133;const Me=8232;const isQuote=e=>e===Ce||e===Ee;const je=[Ce,Ee];const ze=[...je,De,Ne];const We=[...je,Ie,Le];const He=[Pe,Fe,...g];const Xe=[...g,Ne,Te,Ie];function nsPairCheck(e,t,r){switch(t){case"xml":if(r!==x){e.fail(`xml prefix must be bound to ${x}.`)}break;case"xmlns":if(r!==S){e.fail(`xmlns prefix must be bound to ${S}.`)}break;default:}switch(r){case S:e.fail(t===""?`the default namespace may not be set to ${r}.`:`may not assign a prefix (even "xmlns") to the URI ${S}.`);break;case x:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${r}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}break;default:}}function nsMappingCheck(e,t){for(const r of Object.keys(t)){nsPairCheck(e,r,t[r])}}const isNCName=e=>w.test(e);const isName=e=>y.test(e);const $e=0;const Ve=1;const Ue=2;t.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const qe={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class SaxesParser{constructor(e){this.opt=e!==null&&e!==void 0?e:{};this.fragmentOpt=!!this.opt.fragment;const t=this.xmlnsOpt=!!this.opt.xmlns;this.trackPosition=this.opt.position!==false;this.fileName=this.opt.fileName;if(t){this.nameStartCheck=b;this.nameCheck=_;this.isName=isNCName;this.processAttribs=this.processAttribsNS;this.pushAttrib=this.pushAttribNS;this.ns=Object.assign({__proto__:null},k);const e=this.opt.additionalNamespaces;if(e!=null){nsMappingCheck(this,e);Object.assign(this.ns,e)}}else{this.nameStartCheck=h;this.nameCheck=p;this.isName=isName;this.processAttribs=this.processAttribsPlain;this.pushAttrib=this.pushAttribPlain}this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite];this._init()}get closed(){return this._closed}_init(){var e;this.openWakaBang="";this.text="";this.name="";this.piTarget="";this.entity="";this.q=null;this.tags=[];this.tag=null;this.topNS=null;this.chunk="";this.chunkPosition=0;this.i=0;this.prevI=0;this.carriedFromPrevious=undefined;this.forbiddenState=$e;this.attribList=[];const{fragmentOpt:t}=this;this.state=t?H:O;this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t;this.xmlDeclPossible=!t;this.xmlDeclExpects=["version"];this.entityReturnState=undefined;let{defaultXMLVersion:r}=this.opt;if(r===undefined){if(this.opt.forceXMLVersion===true){throw new Error("forceXMLVersion set but defaultXMLVersion is not set")}r="1.0"}this.setXMLVersion(r);this.positionAtNewLine=0;this.doctype=false;this._closed=false;this.xmlDecl={version:undefined,encoding:undefined,standalone:undefined};this.line=1;this.column=0;this.ENTITIES=Object.create(C);(e=this.readyHandler)===null||e===void 0?void 0:e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[qe[e]]=t}off(e){this[qe[e]]=undefined}makeError(e){var t;let r=(t=this.fileName)!==null&&t!==void 0?t:"";if(this.trackPosition){if(r.length>0){r+=":"}r+=`${this.line}:${this.column}`}if(r.length>0){r+=": "}return new Error(r+e)}fail(e){const t=this.makeError(e);const r=this.errorHandler;if(r===undefined){throw t}else{r(t)}return this}write(e){if(this.closed){return this.fail("cannot write after close; assign an onready handler.")}let t=false;if(e===null){t=true;e=""}else if(typeof e==="object"){e=e.toString()}if(this.carriedFromPrevious!==undefined){e=`${this.carriedFromPrevious}${e}`;this.carriedFromPrevious=undefined}let r=e.length;const i=e.charCodeAt(r-1);if(!t&&(i===xe||i>=55296&&i<=56319)){this.carriedFromPrevious=e[r-1];r--;e=e.slice(0,r)}const{stateTable:n}=this;this.chunk=e;this.i=0;while(this.i<r){n[this.state].call(this)}this.chunkPosition+=r;return t?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:e,i:t}=this;this.prevI=t;this.i=t+1;if(t>=e.length){return E}const r=e.charCodeAt(t);this.column++;if(r<55296){if(r>=Se||r===_e){return r}switch(r){case we:this.line++;this.column=0;this.positionAtNewLine=this.position;return we;case xe:if(e.charCodeAt(t+1)===we){this.i=t+2}this.line++;this.column=0;this.positionAtNewLine=this.position;return R;default:this.fail("disallowed character.");return r}}if(r>56319){if(!(r>=57344&&r<=65533)){this.fail("disallowed character.")}return r}const i=65536+(r-55296)*1024+(e.charCodeAt(t+1)-56320);this.i=t+2;if(i>1114111){this.fail("disallowed character.")}return i}getCode11(){const{chunk:e,i:t}=this;this.prevI=t;this.i=t+1;if(t>=e.length){return E}const r=e.charCodeAt(t);this.column++;if(r<55296){if(r>31&&r<127||r>159&&r!==Me||r===_e){return r}switch(r){case we:this.line++;this.column=0;this.positionAtNewLine=this.position;return we;case xe:{const r=e.charCodeAt(t+1);if(r===we||r===Be){this.i=t+2}}case Be:case Me:this.line++;this.column=0;this.positionAtNewLine=this.position;return R;default:this.fail("disallowed character.");return r}}if(r>56319){if(!(r>=57344&&r<=65533)){this.fail("disallowed character.")}return r}const i=65536+(r-55296)*1024+(e.charCodeAt(t+1)-56320);this.i=t+2;if(i>1114111){this.fail("disallowed character.")}return i}getCodeNorm(){const e=this.getCode();return e===R?we:e}unget(){this.i=this.prevI;this.column--}captureTo(e){let{i:t}=this;const{chunk:r}=this;while(true){const i=this.getCode();const n=i===R;const s=n?we:i;if(s===E||e.includes(s)){this.text+=r.slice(t,this.prevI);return s}if(n){this.text+=`${r.slice(t,this.prevI)}\n`;t=this.i}}}captureToChar(e){let{i:t}=this;const{chunk:r}=this;while(true){let i=this.getCode();switch(i){case R:this.text+=`${r.slice(t,this.prevI)}\n`;t=this.i;i=we;break;case E:this.text+=r.slice(t);return false;default:}if(i===e){this.text+=r.slice(t,this.prevI);return true}}}captureNameChars(){const{chunk:e,i:t}=this;while(true){const r=this.getCode();if(r===E){this.name+=e.slice(t);return E}if(!p(r)){this.name+=e.slice(t,this.prevI);return r===R?we:r}}}skipSpaces(){while(true){const e=this.getCodeNorm();if(e===E||!o(e)){return e}}}setXMLVersion(e){this.currentXMLVersion=e;if(e==="1.0"){this.isChar=c;this.getCode=this.getCode10}else{this.isChar=v;this.getCode=this.getCode11}}sBegin(){if(this.chunk.charCodeAt(0)===65279){this.i++;this.column++}this.state=A}sBeginWhitespace(){const e=this.i;const t=this.skipSpaces();if(this.prevI!==e){this.xmlDeclPossible=false}switch(t){case Ie:this.state=$;if(this.text.length!==0){throw new Error("no-empty text at start")}break;case E:break;default:this.unget();this.state=H;this.xmlDeclPossible=false}}sDoctype(){var e;const t=this.captureTo(ze);switch(t){case Ne:{(e=this.doctypeHandler)===null||e===void 0?void 0:e.call(this,this.text);this.text="";this.state=H;this.doctype=true;break}case E:break;default:this.text+=String.fromCodePoint(t);if(t===De){this.state=N}else if(isQuote(t)){this.state=P;this.q=t}}}sDoctypeQuote(){const e=this.q;if(this.captureToChar(e)){this.text+=String.fromCodePoint(e);this.q=null;this.state=I}}sDTD(){const e=this.captureTo(We);if(e===E){return}this.text+=String.fromCodePoint(e);if(e===Le){this.state=I}else if(e===Ie){this.state=D}else if(isQuote(e)){this.state=F;this.q=e}}sDTDQuoted(){const e=this.q;if(this.captureToChar(e)){this.text+=String.fromCodePoint(e);this.state=N;this.q=null}}sDTDOpenWaka(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e);switch(e){case ke:this.state=L;this.openWakaBang="";break;case Fe:this.state=z;break;default:this.state=N}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm());const t=this.openWakaBang+=e;this.text+=e;if(t!=="-"){this.state=t==="--"?B:N;this.openWakaBang=""}}sDTDComment(){if(this.captureToChar(Re)){this.text+="-";this.state=M}}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e);this.state=e===Re?j:B}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e);if(e===Ne){this.state=N}else{this.fail("malformed comment.");this.state=B}}sDTDPI(){if(this.captureToChar(Fe)){this.text+="?";this.state=W}}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e);if(e===Ne){this.state=N}}sText(){if(this.tags.length!==0){this.handleTextInRoot()}else{this.handleTextOutsideRoot()}}sEntity(){let{i:e}=this;const{chunk:t}=this;e:while(true){switch(this.getCode()){case R:this.entity+=`${t.slice(e,this.prevI)}\n`;e=this.i;break;case Ae:{const{entityReturnState:r}=this;const i=this.entity+t.slice(e,this.prevI);this.state=r;let n;if(i===""){this.fail("empty entity name.");n="&;"}else{n=this.parseEntity(i);this.entity=""}if(r!==H||this.textHandler!==undefined){this.text+=n}break e}case E:this.entity+=t.slice(e);break e;default:}}}sOpenWaka(){const e=this.getCode();if(h(e)){this.state=ue;this.unget();this.xmlDeclPossible=false}else{switch(e){case Oe:this.state=ve;this.xmlDeclPossible=false;break;case ke:this.state=V;this.openWakaBang="";this.xmlDeclPossible=false;break;case Fe:this.state=Q;break;default:this.fail("disallowed character in tag name");this.state=H;this.xmlDeclPossible=false}}}sOpenWakaBang(){this.openWakaBang+=String.fromCodePoint(this.getCodeNorm());switch(this.openWakaBang){case"[CDATA[":if(!this.sawRoot&&!this.reportedTextBeforeRoot){this.fail("text data outside of root node.");this.reportedTextBeforeRoot=true}if(this.closedRoot&&!this.reportedTextAfterRoot){this.fail("text data outside of root node.");this.reportedTextAfterRoot=true}this.state=Z;this.openWakaBang="";break;case"--":this.state=U;this.openWakaBang="";break;case"DOCTYPE":this.state=I;if(this.doctype||this.sawRoot){this.fail("inappropriately located doctype declaration.")}this.openWakaBang="";break;default:if(this.openWakaBang.length>=7){this.fail("incorrect syntax.")}}}sComment(){if(this.captureToChar(Re)){this.state=q}}sCommentEnding(){var e;const t=this.getCodeNorm();if(t===Re){this.state=G;(e=this.commentHandler)===null||e===void 0?void 0:e.call(this,this.text);this.text=""}else{this.text+=`-${String.fromCodePoint(t)}`;this.state=U}}sCommentEnded(){const e=this.getCodeNorm();if(e!==Ne){this.fail("malformed comment.");this.text+=`--${String.fromCodePoint(e)}`;this.state=U}else{this.state=H}}sCData(){if(this.captureToChar(Le)){this.state=Y}}sCDataEnding(){const e=this.getCodeNorm();if(e===Le){this.state=K}else{this.text+=`]${String.fromCodePoint(e)}`;this.state=Z}}sCDataEnding2(){var e;const t=this.getCodeNorm();switch(t){case Ne:{(e=this.cdataHandler)===null||e===void 0?void 0:e.call(this,this.text);this.text="";this.state=H;break}case Le:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`;this.state=Z}}sPIFirstChar(){const e=this.getCodeNorm();if(this.nameStartCheck(e)){this.piTarget+=String.fromCodePoint(e);this.state=J}else if(e===Fe||o(e)){this.fail("processing instruction without a target.");this.state=e===Fe?te:ee}else{this.fail("disallowed character in processing instruction name.");this.piTarget+=String.fromCodePoint(e);this.state=J}}sPIRest(){const{chunk:e,i:t}=this;while(true){const r=this.getCodeNorm();if(r===E){this.piTarget+=e.slice(t);return}if(!this.nameCheck(r)){this.piTarget+=e.slice(t,this.prevI);const i=r===Fe;if(i||o(r)){if(this.piTarget==="xml"){if(!this.xmlDeclPossible){this.fail("an XML declaration must be at the start of the document.")}this.state=i?le:re}else{this.state=i?te:ee}}else{this.fail("disallowed character in processing instruction name.");this.piTarget+=String.fromCodePoint(r)}break}}}sPIBody(){if(this.text.length===0){const e=this.getCodeNorm();if(e===Fe){this.state=te}else if(!o(e)){this.text=String.fromCodePoint(e)}}else if(this.captureToChar(Fe)){this.state=te}}sPIEnding(){var e;const t=this.getCodeNorm();if(t===Ne){const{piTarget:t}=this;if(t.toLowerCase()==="xml"){this.fail("the XML declaration must appear at the start of the document.")}(e=this.piHandler)===null||e===void 0?void 0:e.call(this,{target:t,body:this.text});this.piTarget=this.text="";this.state=H}else if(t===Fe){this.text+="?"}else{this.text+=`?${String.fromCodePoint(t)}`;this.state=ee}this.xmlDeclPossible=false}sXMLDeclNameStart(){const e=this.skipSpaces();if(e===Fe){this.state=le;return}if(e!==E){this.state=ie;this.name=String.fromCodePoint(e)}}sXMLDeclName(){const e=this.captureTo(He);if(e===Fe){this.state=le;this.name+=this.text;this.text="";this.fail("XML declaration is incomplete.");return}if(!(o(e)||e===Pe)){return}this.name+=this.text;this.text="";if(!this.xmlDeclExpects.includes(this.name)){switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}}this.state=e===Pe?se:ne}sXMLDeclEq(){const e=this.getCodeNorm();if(e===Fe){this.state=le;this.fail("XML declaration is incomplete.");return}if(o(e)){return}if(e!==Pe){this.fail("value required.")}this.state=se}sXMLDeclValueStart(){const e=this.getCodeNorm();if(e===Fe){this.state=le;this.fail("XML declaration is incomplete.");return}if(o(e)){return}if(!isQuote(e)){this.fail("value must be quoted.");this.q=Se}else{this.q=e}this.state=ae}sXMLDeclValue(){const e=this.captureTo([this.q,Fe]);if(e===Fe){this.state=le;this.text="";this.fail("XML declaration is incomplete.");return}if(e===E){return}const t=this.text;this.text="";switch(this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const e=t;this.xmlDecl.version=e;if(!/^1\.[0-9]+$/.test(e)){this.fail("version number must match /^1\\.[0-9]+$/.")}else if(!this.opt.forceXMLVersion){this.setXMLVersion(e)}break}case"encoding":if(!/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)){this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.")}this.xmlDeclExpects=["standalone"];this.xmlDecl.encoding=t;break;case"standalone":if(t!=="yes"&&t!=="no"){this.fail('standalone value must match "yes" or "no".')}this.xmlDeclExpects=[];this.xmlDecl.standalone=t;break;default:}this.name="";this.state=oe}sXMLDeclSeparator(){const e=this.getCodeNorm();if(e===Fe){this.state=le;return}if(!o(e)){this.fail("whitespace required.");this.unget()}this.state=re}sXMLDeclEnding(){var e;const t=this.getCodeNorm();if(t===Ne){if(this.piTarget!=="xml"){this.fail("processing instructions are not allowed before root.")}else if(this.name!=="version"&&this.xmlDeclExpects.includes("version")){this.fail("XML declaration must contain a version.")}(e=this.xmldeclHandler)===null||e===void 0?void 0:e.call(this,this.xmlDecl);this.name="";this.piTarget=this.text="";this.state=H}else{this.fail("The character ? is disallowed anywhere in XML declarations.")}this.xmlDeclPossible=false}sOpenTag(){var e;const t=this.captureNameChars();if(t===E){return}const r=this.tag={name:this.name,attributes:Object.create(null)};this.name="";if(this.xmlnsOpt){this.topNS=r.ns=Object.create(null)}(e=this.openTagStartHandler)===null||e===void 0?void 0:e.call(this,r);this.sawRoot=true;if(!this.fragmentOpt&&this.closedRoot){this.fail("documents may contain only one root.")}switch(t){case Ne:this.openTag();break;case Oe:this.state=fe;break;default:if(!o(t)){this.fail("disallowed character in tag name.")}this.state=ce}}sOpenTagSlash(){if(this.getCode()===Ne){this.openSelfClosingTag()}else{this.fail("forward-slash in opening tag not followed by >.");this.state=ce}}sAttrib(){const e=this.skipSpaces();if(e===E){return}if(h(e)){this.unget();this.state=he}else if(e===Ne){this.openTag()}else if(e===Oe){this.state=fe}else{this.fail("disallowed character in attribute name.")}}sAttribName(){const e=this.captureNameChars();if(e===Pe){this.state=pe}else if(o(e)){this.state=de}else if(e===Ne){this.fail("attribute without value.");this.pushAttrib(this.name,this.name);this.name=this.text="";this.openTag()}else if(e!==E){this.fail("disallowed character in attribute name.")}}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case E:return;case Pe:this.state=pe;break;default:this.fail("attribute without value.");this.text="";this.name="";if(e===Ne){this.openTag()}else if(h(e)){this.unget();this.state=he}else{this.fail("disallowed character in attribute name.");this.state=ce}}}sAttribValue(){const e=this.getCodeNorm();if(isQuote(e)){this.q=e;this.state=me}else if(!o(e)){this.fail("unquoted attribute value.");this.state=ye;this.unget()}}sAttribValueQuoted(){const{q:e,chunk:t}=this;let{i:r}=this;while(true){switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+t.slice(r,this.prevI));this.name=this.text="";this.q=null;this.state=ge;return;case Te:this.text+=t.slice(r,this.prevI);this.state=X;this.entityReturnState=me;return;case we:case R:case _e:this.text+=`${t.slice(r,this.prevI)} `;r=this.i;break;case Ie:this.text+=t.slice(r,this.prevI);this.fail("disallowed character.");return;case E:this.text+=t.slice(r);return;default:}}}sAttribValueClosed(){const e=this.getCodeNorm();if(o(e)){this.state=ce}else if(e===Ne){this.openTag()}else if(e===Oe){this.state=fe}else if(h(e)){this.fail("no whitespace between attributes.");this.unget();this.state=he}else{this.fail("disallowed character in attribute name.")}}sAttribValueUnquoted(){const e=this.captureTo(Xe);switch(e){case Te:this.state=X;this.entityReturnState=ye;break;case Ie:this.fail("disallowed character.");break;case E:break;default:if(this.text.includes("]]>")){this.fail('the string "]]>" is disallowed in char data.')}this.pushAttrib(this.name,this.text);this.name=this.text="";if(e===Ne){this.openTag()}else{this.state=ce}}}sCloseTag(){const e=this.captureNameChars();if(e===Ne){this.closeTag()}else if(o(e)){this.state=be}else if(e!==E){this.fail("disallowed character in closing tag.")}}sCloseTagSawWhite(){switch(this.skipSpaces()){case Ne:this.closeTag();break;case E:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:t}=this;const{chunk:r,textHandler:i}=this;e:while(true){switch(this.getCode()){case Ie:{this.state=$;if(i!==undefined){const{text:t}=this;const n=r.slice(e,this.prevI);if(t.length!==0){i(t+n);this.text=""}else if(n.length!==0){i(n)}}t=$e;break e}case Te:this.state=X;this.entityReturnState=H;if(i!==undefined){this.text+=r.slice(e,this.prevI)}t=$e;break e;case Le:switch(t){case $e:t=Ve;break;case Ve:t=Ue;break;case Ue:break;default:throw new Error("impossible state")}break;case Ne:if(t===Ue){this.fail('the string "]]>" is disallowed in char data.')}t=$e;break;case R:if(i!==undefined){this.text+=`${r.slice(e,this.prevI)}\n`}e=this.i;t=$e;break;case E:if(i!==undefined){this.text+=r.slice(e)}break e;default:t=$e}}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this;const{chunk:t,textHandler:r}=this;let i=false;e:while(true){const n=this.getCode();switch(n){case Ie:{this.state=$;if(r!==undefined){const{text:i}=this;const n=t.slice(e,this.prevI);if(i.length!==0){r(i+n);this.text=""}else if(n.length!==0){r(n)}}break e}case Te:this.state=X;this.entityReturnState=H;if(r!==undefined){this.text+=t.slice(e,this.prevI)}i=true;break e;case R:if(r!==undefined){this.text+=`${t.slice(e,this.prevI)}\n`}e=this.i;break;case E:if(r!==undefined){this.text+=t.slice(e)}break e;default:if(!o(n)){i=true}}}if(!i){return}if(!this.sawRoot&&!this.reportedTextBeforeRoot){this.fail("text data outside of root node.");this.reportedTextBeforeRoot=true}if(this.closedRoot&&!this.reportedTextAfterRoot){this.fail("text data outside of root node.");this.reportedTextAfterRoot=true}}pushAttribNS(e,t){var r;const{prefix:i,local:n}=this.qname(e);const s={name:e,prefix:i,local:n,value:t};this.attribList.push(s);(r=this.attributeHandler)===null||r===void 0?void 0:r.call(this,s);if(i==="xmlns"){const e=t.trim();if(this.currentXMLVersion==="1.0"&&e===""){this.fail("invalid attempt to undefine prefix in XML 1.0")}this.topNS[n]=e;nsPairCheck(this,n,e)}else if(e==="xmlns"){const e=t.trim();this.topNS[""]=e;nsPairCheck(this,"",e)}}pushAttribPlain(e,t){var r;const i={name:e,value:t};this.attribList.push(i);(r=this.attributeHandler)===null||r===void 0?void 0:r.call(this,i)}end(){var e,t;if(!this.sawRoot){this.fail("document must contain a root element.")}const{tags:r}=this;while(r.length>0){const e=r.pop();this.fail(`unclosed tag: ${e.name}`)}if(this.state!==O&&this.state!==H){this.fail("unexpected end.")}const{text:i}=this;if(i.length!==0){(e=this.textHandler)===null||e===void 0?void 0:e.call(this,i);this.text=""}this._closed=true;(t=this.endHandler)===null||t===void 0?void 0:t.call(this);this._init();return this}resolve(e){var t,r;let i=this.topNS[e];if(i!==undefined){return i}const{tags:n}=this;for(let t=n.length-1;t>=0;t--){i=n[t].ns[e];if(i!==undefined){return i}}i=this.ns[e];if(i!==undefined){return i}return(r=(t=this.opt).resolvePrefix)===null||r===void 0?void 0:r.call(t,e)}qname(e){const t=e.indexOf(":");if(t===-1){return{prefix:"",local:e}}const r=e.slice(t+1);const i=e.slice(0,t);if(i===""||r===""||r.includes(":")){this.fail(`malformed name: ${e}.`)}return{prefix:i,local:r}}processAttribsNS(){var e;const{attribList:t}=this;const r=this.tag;{const{prefix:t,local:i}=this.qname(r.name);r.prefix=t;r.local=i;const n=r.uri=(e=this.resolve(t))!==null&&e!==void 0?e:"";if(t!==""){if(t==="xmlns"){this.fail('tags may not have "xmlns" as prefix.')}if(n===""){this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`);r.uri=t}}}if(t.length===0){return}const{attributes:i}=r;const n=new Set;for(const e of t){const{name:t,prefix:r,local:s}=e;let o;let c;if(r===""){o=t==="xmlns"?S:"";c=t}else{o=this.resolve(r);if(o===undefined){this.fail(`unbound namespace prefix: ${JSON.stringify(r)}.`);o=r}c=`{${o}}${s}`}if(n.has(c)){this.fail(`duplicate attribute: ${c}.`)}n.add(c);e.uri=o;i[t]=e}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this;const t=this.tag.attributes;for(const{name:r,value:i}of e){if(t[r]!==undefined){this.fail(`duplicate attribute: ${r}.`)}t[r]=i}this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:t}=this;const r=this.tag;r.isSelfClosing=false;(e=this.openTagHandler)===null||e===void 0?void 0:e.call(this,r);t.push(r);this.state=H;this.name=""}openSelfClosingTag(){var e,t,r;this.processAttribs();const{tags:i}=this;const n=this.tag;n.isSelfClosing=true;(e=this.openTagHandler)===null||e===void 0?void 0:e.call(this,n);(t=this.closeTagHandler)===null||t===void 0?void 0:t.call(this,n);const s=this.tag=(r=i[i.length-1])!==null&&r!==void 0?r:null;if(s===null){this.closedRoot=true}this.state=H;this.name=""}closeTag(){const{tags:e,name:t}=this;this.state=H;this.name="";if(t===""){this.fail("weird empty close tag.");this.text+="</>";return}const r=this.closeTagHandler;let i=e.length;while(i-- >0){const i=this.tag=e.pop();this.topNS=i.ns;r===null||r===void 0?void 0:r(i);if(i.name===t){break}this.fail("unexpected close tag.")}if(i===0){this.closedRoot=true}else if(i<0){this.fail(`unmatched closing tag: ${t}.`);this.text+=`</${t}>`}}parseEntity(e){if(e[0]!=="#"){const t=this.ENTITIES[e];if(t!==undefined){return t}this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name.");return`&${e};`}let t=NaN;if(e[1]==="x"&&/^#x[0-9a-f]+$/i.test(e)){t=parseInt(e.slice(2),16)}else if(/^#[0-9]+$/.test(e)){t=parseInt(e.slice(1),10)}if(!this.isChar(t)){this.fail("malformed character entity.");return`&${e};`}return String.fromCodePoint(t)}}t.SaxesParser=SaxesParser},1093:function(){(function(e,t){"use strict";if(e.setImmediate){return}var r=1;var i={};var n=false;var s=e.document;var o;function setImmediate(e){if(typeof e!=="function"){e=new Function(""+e)}var t=new Array(arguments.length-1);for(var n=0;n<t.length;n++){t[n]=arguments[n+1]}var s={callback:e,args:t};i[r]=s;o(r);return r++}function clearImmediate(e){delete i[e]}function run(e){var r=e.callback;var i=e.args;switch(i.length){case 0:r();break;case 1:r(i[0]);break;case 2:r(i[0],i[1]);break;case 3:r(i[0],i[1],i[2]);break;default:r.apply(t,i);break}}function runIfPresent(e){if(n){setTimeout(runIfPresent,0,e)}else{var t=i[e];if(t){n=true;try{run(t)}finally{clearImmediate(e);n=false}}}}function installNextTickImplementation(){o=function(e){process.nextTick((function(){runIfPresent(e)}))}}function canUsePostMessage(){if(e.postMessage&&!e.importScripts){var t=true;var r=e.onmessage;e.onmessage=function(){t=false};e.postMessage("","*");e.onmessage=r;return t}}function installPostMessageImplementation(){var t="setImmediate$"+Math.random()+"$";var onGlobalMessage=function(r){if(r.source===e&&typeof r.data==="string"&&r.data.indexOf(t)===0){runIfPresent(+r.data.slice(t.length))}};if(e.addEventListener){e.addEventListener("message",onGlobalMessage,false)}else{e.attachEvent("onmessage",onGlobalMessage)}o=function(r){e.postMessage(t+r,"*")}}function installMessageChannelImplementation(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;runIfPresent(t)};o=function(t){e.port2.postMessage(t)}}function installReadyStateChangeImplementation(){var e=s.documentElement;o=function(t){var r=s.createElement("script");r.onreadystatechange=function(){runIfPresent(t);r.onreadystatechange=null;e.removeChild(r);r=null};e.appendChild(r)}}function installSetTimeoutImplementation(){o=function(e){setTimeout(runIfPresent,0,e)}}var c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e;if({}.toString.call(e.process)==="[object process]"){installNextTickImplementation()}else if(canUsePostMessage()){installPostMessageImplementation()}else if(e.MessageChannel){installMessageChannelImplementation()}else if(s&&"onreadystatechange"in s.createElement("script")){installReadyStateChangeImplementation()}else{installSetTimeoutImplementation()}c.setImmediate=setImmediate;c.clearImmediate=clearImmediate})(typeof self==="undefined"?typeof global==="undefined"?this:global:self)},8927:function(e,t,r){"use strict";var i=r(6912).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(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 true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){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=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},3252:function(e,t,r){"use strict";var i=r(3476).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(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 true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){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=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},5763:function(e,t,r){var i=r(9023);var n=r(739);var s=r(6940);var o=r(1643).Writable;var c=r(1643).PassThrough;var noop=function(){};var overflow=function(e){e&=511;return e&&512-e};var emptyStream=function(e,t){var r=new Source(e,t);r.end();return r};var mixinPax=function(e,t){if(t.path)e.name=t.path;if(t.linkpath)e.linkname=t.linkpath;if(t.size)e.size=parseInt(t.size,10);e.pax=t;return e};var Source=function(e,t){this._parent=e;this.offset=t;c.call(this,{autoDestroy:false})};i.inherits(Source,c);Source.prototype.destroy=function(e){this._parent.destroy(e)};var Extract=function(e){if(!(this instanceof Extract))return new Extract(e);o.call(this,e);e=e||{};this._offset=0;this._buffer=n();this._missing=0;this._partial=false;this._onparse=noop;this._header=null;this._stream=null;this._overflow=null;this._cb=null;this._locked=false;this._destroyed=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;var t=this;var r=t._buffer;var oncontinue=function(){t._continue()};var onunlock=function(e){t._locked=false;if(e)return t.destroy(e);if(!t._stream)oncontinue()};var onstreamend=function(){t._stream=null;var e=overflow(t._header.size);if(e)t._parse(e,ondrain);else t._parse(512,onheader);if(!t._locked)oncontinue()};var ondrain=function(){t._buffer.consume(overflow(t._header.size));t._parse(512,onheader);oncontinue()};var onpaxglobalheader=function(){var e=t._header.size;t._paxGlobal=s.decodePax(r.slice(0,e));r.consume(e);onstreamend()};var onpaxheader=function(){var e=t._header.size;t._pax=s.decodePax(r.slice(0,e));if(t._paxGlobal)t._pax=Object.assign({},t._paxGlobal,t._pax);r.consume(e);onstreamend()};var ongnulongpath=function(){var i=t._header.size;this._gnuLongPath=s.decodeLongPath(r.slice(0,i),e.filenameEncoding);r.consume(i);onstreamend()};var ongnulonglinkpath=function(){var i=t._header.size;this._gnuLongLinkPath=s.decodeLongPath(r.slice(0,i),e.filenameEncoding);r.consume(i);onstreamend()};var onheader=function(){var i=t._offset;var n;try{n=t._header=s.decode(r.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit("error",e)}r.consume(512);if(!n){t._parse(512,onheader);oncontinue();return}if(n.type==="gnu-long-path"){t._parse(n.size,ongnulongpath);oncontinue();return}if(n.type==="gnu-long-link-path"){t._parse(n.size,ongnulonglinkpath);oncontinue();return}if(n.type==="pax-global-header"){t._parse(n.size,onpaxglobalheader);oncontinue();return}if(n.type==="pax-header"){t._parse(n.size,onpaxheader);oncontinue();return}if(t._gnuLongPath){n.name=t._gnuLongPath;t._gnuLongPath=null}if(t._gnuLongLinkPath){n.linkname=t._gnuLongLinkPath;t._gnuLongLinkPath=null}if(t._pax){t._header=n=mixinPax(n,t._pax);t._pax=null}t._locked=true;if(!n.size||n.type==="directory"){t._parse(512,onheader);t.emit("entry",n,emptyStream(t,i),onunlock);return}t._stream=new Source(t,i);t.emit("entry",n,t._stream,onunlock);t._parse(n.size,onstreamend);oncontinue()};this._onheader=onheader;this._parse(512,onheader)};i.inherits(Extract,o);Extract.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream)this._stream.emit("close")};Extract.prototype._parse=function(e,t){if(this._destroyed)return;this._offset+=e;this._missing=e;if(t===this._onheader)this._partial=false;this._onparse=t};Extract.prototype._continue=function(){if(this._destroyed)return;var e=this._cb;this._cb=noop;if(this._overflow)this._write(this._overflow,undefined,e);else e()};Extract.prototype._write=function(e,t,r){if(this._destroyed)return;var i=this._stream;var n=this._buffer;var s=this._missing;if(e.length)this._partial=true;if(e.length<s){this._missing-=e.length;this._overflow=null;if(i)return i.write(e,r);n.append(e);return r()}this._cb=r;this._missing=0;var o=null;if(e.length>s){o=e.slice(s);e=e.slice(0,s)}if(i)i.end(e);else n.append(e);this._overflow=o;this._onparse()};Extract.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};e.exports=Extract},6940:function(e,t){var r=Buffer.alloc;var i="0000000000000000000";var n="7777777777777777777";var s="0".charCodeAt(0);var o=Buffer.from("ustar\0","binary");var c=Buffer.from("00","binary");var h=Buffer.from("ustar ","binary");var p=Buffer.from(" \0","binary");var g=parseInt("7777",8);var y=257;var v=263;var clamp=function(e,t,r){if(typeof e!=="number")return r;e=~~e;if(e>=t)return t;if(e>=0)return e;e+=t;if(e>=0)return e;return 0};var toType=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null};var toTypeflag=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0};var indexOf=function(e,t,r,i){for(;r<i;r++){if(e[r]===t)return r}return i};var cksum=function(e){var t=8*32;for(var r=0;r<148;r++)t+=e[r];for(var i=156;i<512;i++)t+=e[i];return t};var encodeOct=function(e,t){e=e.toString(8);if(e.length>t)return n.slice(0,t)+" ";else return i.slice(0,t-e.length)+e+" "};function parse256(e){var t;if(e[0]===128)t=true;else if(e[0]===255)t=false;else return null;var r=[];for(var i=e.length-1;i>0;i--){var n=e[i];if(t)r.push(n);else r.push(255-n)}var s=0;var o=r.length;for(i=0;i<o;i++){s+=r[i]*Math.pow(256,i)}return t?s:-1*s}var decodeOct=function(e,t,r){e=e.slice(t,t+r);t=0;if(e[t]&128){return parse256(e)}else{while(t<e.length&&e[t]===32)t++;var i=clamp(indexOf(e,32,t,e.length),e.length,e.length);while(t<i&&e[t]===0)t++;if(i===t)return 0;return parseInt(e.slice(t,i).toString(),8)}};var decodeStr=function(e,t,r,i){return e.slice(t,indexOf(e,0,t,t+r)).toString(i)};var addLength=function(e){var t=Buffer.byteLength(e);var r=Math.floor(Math.log(t)/Math.log(10))+1;if(t+r>=Math.pow(10,r))r++;return t+r+e};t.decodeLongPath=function(e,t){return decodeStr(e,0,e.length,t)};t.encodePax=function(e){var t="";if(e.name)t+=addLength(" path="+e.name+"\n");if(e.linkname)t+=addLength(" linkpath="+e.linkname+"\n");var r=e.pax;if(r){for(var i in r){t+=addLength(" "+i+"="+r[i]+"\n")}}return Buffer.from(t)};t.decodePax=function(e){var t={};while(e.length){var r=0;while(r<e.length&&e[r]!==32)r++;var i=parseInt(e.slice(0,r).toString(),10);if(!i)return t;var n=e.slice(r+1,i-1).toString();var s=n.indexOf("=");if(s===-1)return t;t[n.slice(0,s)]=n.slice(s+1);e=e.slice(i)}return t};t.encode=function(e){var t=r(512);var i=e.name;var n="";if(e.typeflag===5&&i[i.length-1]!=="/")i+="/";if(Buffer.byteLength(i)!==i.length)return null;while(Buffer.byteLength(i)>100){var h=i.indexOf("/");if(h===-1)return null;n+=n?"/"+i.slice(0,h):i.slice(0,h);i=i.slice(h+1)}if(Buffer.byteLength(i)>100||Buffer.byteLength(n)>155)return null;if(e.linkname&&Buffer.byteLength(e.linkname)>100)return null;t.write(i);t.write(encodeOct(e.mode&g,6),100);t.write(encodeOct(e.uid,6),108);t.write(encodeOct(e.gid,6),116);t.write(encodeOct(e.size,11),124);t.write(encodeOct(e.mtime.getTime()/1e3|0,11),136);t[156]=s+toTypeflag(e.type);if(e.linkname)t.write(e.linkname,157);o.copy(t,y);c.copy(t,v);if(e.uname)t.write(e.uname,265);if(e.gname)t.write(e.gname,297);t.write(encodeOct(e.devmajor||0,6),329);t.write(encodeOct(e.devminor||0,6),337);if(n)t.write(n,345);t.write(encodeOct(cksum(t),6),148);return t};t.decode=function(e,t,r){var i=e[156]===0?0:e[156]-s;var n=decodeStr(e,0,100,t);var c=decodeOct(e,100,8);var g=decodeOct(e,108,8);var b=decodeOct(e,116,8);var _=decodeOct(e,124,12);var w=decodeOct(e,136,12);var x=toType(i);var S=e[157]===0?null:decodeStr(e,157,100,t);var k=decodeStr(e,265,32);var C=decodeStr(e,297,32);var E=decodeOct(e,329,8);var R=decodeOct(e,337,8);var O=cksum(e);if(O===8*32)return null;if(O!==decodeOct(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(o.compare(e,y,y+6)===0){if(e[345])n=decodeStr(e,345,155,t)+"/"+n}else if(h.compare(e,y,y+6)===0&&p.compare(e,v,v+2)===0){}else{if(!r){throw new Error("Invalid tar header: unknown format.")}}if(i===0&&n&&n[n.length-1]==="/")i=5;return{name:n,mode:c,uid:g,gid:b,size:_,mtime:new Date(1e3*w),type:x,linkname:S,uname:k,gname:C,devmajor:E,devminor:R}}},2454:function(e,t,r){t.extract=r(5763);t.pack=r(3709)},3709:function(e,t,r){var i=r(9033);var n=r(354);var s=r(4070);var o=Buffer.alloc;var c=r(1643).Readable;var h=r(1643).Writable;var p=r(5574).StringDecoder;var g=r(6940);var y=parseInt("755",8);var v=parseInt("644",8);var b=o(1024);var noop=function(){};var overflow=function(e,t){t&=511;if(t)e.push(b.slice(0,512-t))};function modeToType(e){switch(e&i.S_IFMT){case i.S_IFBLK:return"block-device";case i.S_IFCHR:return"character-device";case i.S_IFDIR:return"directory";case i.S_IFIFO:return"fifo";case i.S_IFLNK:return"symlink"}return"file"}var Sink=function(e){h.call(this);this.written=0;this._to=e;this._destroyed=false};s(Sink,h);Sink.prototype._write=function(e,t,r){this.written+=e.length;if(this._to.push(e))return r();this._to._drain=r};Sink.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var LinkSink=function(){h.call(this);this.linkname="";this._decoder=new p("utf-8");this._destroyed=false};s(LinkSink,h);LinkSink.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e);r()};LinkSink.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var Void=function(){h.call(this);this._destroyed=false};s(Void,h);Void.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Void.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var Pack=function(e){if(!(this instanceof Pack))return new Pack(e);c.call(this,e);this._drain=noop;this._finalized=false;this._finalizing=false;this._destroyed=false;this._stream=null};s(Pack,c);Pack.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(this._finalized||this._destroyed)return;if(typeof t==="function"){r=t;t=null}if(!r)r=noop;var i=this;if(!e.size||e.type==="symlink")e.size=0;if(!e.type)e.type=modeToType(e.mode);if(!e.mode)e.mode=e.type==="directory"?y:v;if(!e.uid)e.uid=0;if(!e.gid)e.gid=0;if(!e.mtime)e.mtime=new Date;if(typeof t==="string")t=Buffer.from(t);if(Buffer.isBuffer(t)){e.size=t.length;this._encode(e);var s=this.push(t);overflow(i,e.size);if(s)process.nextTick(r);else this._drain=r;return new Void}if(e.type==="symlink"&&!e.linkname){var o=new LinkSink;n(o,(function(t){if(t){i.destroy();return r(t)}e.linkname=o.linkname;i._encode(e);r()}));return o}this._encode(e);if(e.type!=="file"&&e.type!=="contiguous-file"){process.nextTick(r);return new Void}var c=new Sink(this);this._stream=c;n(c,(function(t){i._stream=null;if(t){i.destroy();return r(t)}if(c.written!==e.size){i.destroy();return r(new Error("size mismatch"))}overflow(i,e.size);if(i._finalizing)i.finalize();r()}));return c};Pack.prototype.finalize=function(){if(this._stream){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(b);this.push(null)};Pack.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream&&this._stream.destroy)this._stream.destroy()};Pack.prototype._encode=function(e){if(!e.pax){var t=g.encode(e);if(t){this.push(t);return}}this._encodePax(e)};Pack.prototype._encodePax=function(e){var t=g.encodePax({name:e.name,linkname:e.linkname,pax:e.pax});var r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(g.encode(r));this.push(t);overflow(this,t.length);r.size=e.size;r.type=e.type;this.push(g.encode(r))};Pack.prototype._read=function(e){var t=this._drain;this._drain=noop;t()};e.exports=Pack},7928:function(e,t,r){
61
61
  /*!
62
62
  * Tmp
63
63
  *