@himail/xlsx 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -0
- package/lib/index.d.ts +12 -0
- package/lib/script/postinstall.js +15 -0
- package/lib/script/switch-cli.js +14 -0
- package/lib/script/utils.js +31 -0
- package/lib/v3/index.css +838 -0
- package/lib/v3/index.js +1 -0
- package/lib/v3/xm-office-excel.css +2 -0
- package/lib/v3/xm-office-excel.mjs +4 -0
- package/lib/v3/xm-office-excel.umd.js +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{defineComponent as e,nextTick as t,onBeforeUnmount as r,onMounted as n,ref as i,watch as a}from"vue-demi";import{createElementBlock as s,createElementVNode as o,openBlock as l,toDisplayString as c,vModelText as u,vShow as f,withDirectives as h,withKeys as d}from"vue";var p=Object.create,m=Object.defineProperty,v=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,b=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,w=(e,t)=>()=>(e&&(t=e(e=0)),t),_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),k=(e,t,r)=>(r=null!=e?p(b(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=g(t),s=0,o=a.length;s<o;s++)i=a[s],y.call(e,i)||i===r||m(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(n=v(t,i))||n.enumerable});return e})(!t&&e&&e.__esModule?r:m(r,"default",{value:e,enumerable:!0}),e)),x=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var T=w(()=>{});var E=w(()=>{T()});function C(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var A=w(()=>{});function M(e,t){if(e){if("string"==typeof e)return S(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}var O=w(()=>{T()});var R=w(()=>{});function I(e){return function(e){if(Array.isArray(e))return S(e)}(e)||C(e)||M(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N=w(()=>{E(),A(),O(),R()});function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}var D=w(()=>{});var F=w(()=>{D()});function j(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}var L=w(()=>{D(),F()});function B(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var z=w(()=>{L()});function U(e){if(Array.isArray(e))return e}var H=w(()=>{});var W=w(()=>{});function V(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var q=w(()=>{});function X(e,t){return U(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}(e,t)||M(e,t)||V()}var G=w(()=>{H(),W(),O(),q()});function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var K=w(()=>{});function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j(n.key),n)}}function J(e,t,r){return t&&Z(e.prototype,t),r&&Z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var Q=w(()=>{L()});function ee(e){return U(e)||C(e)||M(e)||V()}N(),z(),G(),K(),Q(),H(),A(),O(),q();var te=/* @__PURE__ */function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Y(this,e),"string"==typeof t?(this.el=document.createElement(t),this.el.className=r):this.el=t,this.data={}}return J(e,[{key:"data",value:function(e,t){return void 0!==t?(this.data[e]=t,this):this.data[e]}},{key:"on",value:function(e,t){var r=ee(e.split(".")),n=r[0],i=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(r).slice(1),a=n;return"mousewheel"===a&&/Firefox/i.test(window.navigator.userAgent)&&(a="DOMMouseScroll"),this.el.addEventListener(a,function(e){t(e);for(var r=0;r<i.length;r+=1){var n=i[r];if("left"===n&&0!==e.button)return;if("right"===n&&2!==e.button)return;"stop"===n&&e.stopPropagation()}}),this}},{key:"offset",value:function(e){var t=this;if(void 0!==e)return Object.keys(e).forEach(function(r){t.css(r,"".concat(e[r],"px"))}),this;var r=this.el;return{top:r.offsetTop,left:r.offsetLeft,height:r.offsetHeight,width:r.offsetWidth}}},{key:"scroll",value:function(e){var t=this.el;return void 0!==e&&(void 0!==e.left&&(t.scrollLeft=e.left),void 0!==e.top&&(t.scrollTop=e.top)),{left:t.scrollLeft,top:t.scrollTop}}},{key:"box",value:function(){return this.el.getBoundingClientRect()}},{key:"parent",value:function(){return new e(this.el.parentNode)}},{key:"children",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return 0===arguments.length?this.el.childNodes:(r.forEach(function(t){return e.child(t)}),this)}},{key:"removeChild",value:function(e){this.el.removeChild(e)}},{key:"child",value:function(t){var r=t;return"string"==typeof t?r=document.createTextNode(t):t instanceof e&&(r=t.el),this.el.appendChild(r),this}},{key:"contains",value:function(e){return this.el.contains(e)}},{key:"className",value:function(e){return void 0!==e?(this.el.className=e,this):this.el.className}},{key:"addClass",value:function(e){return this.el.classList.add(e),this}},{key:"hasClass",value:function(e){return this.el.classList.contains(e)}},{key:"removeClass",value:function(e){return this.el.classList.remove(e),this}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"active";return this.toggleClass(e)}},{key:"toggleClass",value:function(e){return this.el.classList.toggle(e)}},{key:"active",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"active";return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.addClass(e):this.removeClass(e),this}},{key:"checked",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.active(e,"checked"),this}},{key:"disabled",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.removeClass("disabled"):this.addClass("disabled"),this}},{key:"attr",value:function(e,t){var r=this;if(void 0!==t)this.el.setAttribute(e,t);else{if("string"==typeof e)return this.el.getAttribute(e);Object.keys(e).forEach(function(t){r.el.setAttribute(t,e[t])})}return this}},{key:"removeAttr",value:function(e){return this.el.removeAttribute(e),this}},{key:"html",value:function(e){return void 0!==e?(this.el.innerHTML=e,this):this.el.innerHTML}},{key:"val",value:function(e){return void 0!==e?(this.el.value=e,this):this.el.value}},{key:"focus",value:function(){this.el.focus()}},{key:"cssRemoveKeys",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){return e.el.style.removeProperty(t)}),this}},{key:"css",value:function(e,t){var r=this;return void 0===t&&"string"!=typeof e?(Object.keys(e).forEach(function(t){r.el.style[t]=e[t]}),this):void 0!==t?(this.el.style[e]=t,this):this.el.style[e]}},{key:"computedStyle",value:function(){return window.getComputedStyle(this.el,null)}},{key:"show",value:function(){return this.css("display","block"),this}},{key:"hide",value:function(){return this.css("display","none"),this}}])}(),re=function(e){return new te(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")},ne=["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"];function ie(e){for(var t="",r=e;r>=ne.length;)r/=ne.length,r-=1,t+=ne[parseInt(r,10)%ne.length];return t+=ne[e%ne.length]}function ae(e){for(var t=0,r=0;r!==e.length;++r)t=26*t+e.charCodeAt(r)-64;return t-1}function se(e){for(var t="",r="",n=0;n<e.length;n+=1)e.charAt(n)>="0"&&e.charAt(n)<="9"?r+=e.charAt(n):t+=e.charAt(n);return[ae(t),parseInt(r,10)-1]}function oe(e,t){return"".concat(ie(e)).concat(t+1)}function le(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0};if(0===t&&0===r)return e;var i=X(se(e),2),a=i[0],s=i[1];return n(a,s)?oe(a+t,s+r):e}G(),K(),Q();var ce=/* @__PURE__ */function(){function e(t,r,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;Y(this,e),this.sri=t,this.sci=r,this.eri=n,this.eci=i,this.w=a,this.h=s}return J(e,[{key:"set",value:function(e,t,r,n){this.sri=e,this.sci=t,this.eri=r,this.eci=n}},{key:"multiple",value:function(){return this.eri-this.sri>0||this.eci-this.sci>0}},{key:"includes",value:function(){for(var e=0,t=0,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];if(1===n.length){var a=X(se(n[0]),2);t=a[0],e=a[1]}else 2===n.length&&(e=n[0],t=n[1]);var s=this.sri,o=this.sci,l=this.eri,c=this.eci;return s<=e&&e<=l&&o<=t&&t<=c}},{key:"each",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=this.sri,n=this.sci,i=this.eri,a=this.eci,s=r;s<=i;s+=1)if(t(s))for(var o=n;o<=a;o+=1)e(s,o)}},{key:"contains",value:function(e){return this.sri<=e.sri&&this.sci<=e.sci&&this.eri>=e.eri&&this.eci>=e.eci}},{key:"within",value:function(e){return this.sri>=e.sri&&this.sci>=e.sci&&this.eri<=e.eri&&this.eci<=e.eci}},{key:"disjoint",value:function(e){return this.sri>e.eri||this.sci>e.eci||e.sri>this.eri||e.sci>this.eci}},{key:"intersects",value:function(e){return this.sri<=e.eri&&this.sci<=e.eci&&e.sri<=this.eri&&e.sci<=this.eci}},{key:"union",value:function(t){var r=this.sri,n=this.sci,i=this.eri,a=this.eci;return new e(t.sri<r?t.sri:r,t.sci<n?t.sci:n,t.eri>i?t.eri:i,t.eci>a?t.eci:a)}},{key:"difference",value:function(t){var r=[],n=function(t,n,i,a){r.push(new e(t,n,i,a))},i=this.sri,a=this.sci,s=this.eri,o=this.eci,l=t.sri-i,c=t.sci-a,u=s-t.eri,f=o-t.eci;return l>0?(n(i,a,t.sri-1,o),u>0?(n(t.eri+1,a,s,o),c>0&&n(t.sri,a,t.eri,t.sci-1),f>0&&n(t.sri,t.eci+1,t.eri,o)):(c>0&&n(t.sri,a,s,t.sci-1),f>0&&n(t.sri,t.eci+1,s,o))):u>0&&(n(t.eri+1,a,s,o),c>0&&n(i,a,t.eri,t.sci-1),f>0&&n(i,t.eci+1,t.eri,o)),c>0?(n(i,a,s,t.sci-1),f>0?(n(i,t.eri+1,s,o),l>0&&n(i,t.sci,t.sri-1,t.eci),u>0&&n(t.sri+1,t.sci,s,t.eci)):(l>0&&n(i,t.sci,t.sri-1,o),u>0&&n(t.sri+1,t.sci,s,o))):f>0&&(n(s,t.eci+1,s,o),l>0&&n(i,a,t.sri-1,t.eci),u>0&&n(t.eri+1,a,s,t.eci)),r}},{key:"size",value:function(){return[this.eri-this.sri+1,this.eci-this.sci+1]}},{key:"toString",value:function(){var e=this.sri,t=this.sci,r=this.eri,n=this.eci,i=oe(t,e);return this.multiple()&&(i="".concat(i,":").concat(oe(n,r))),i}},{key:"clone",value:function(){return new e(this.sri,this.sci,this.eri,this.eci,this.w,this.h)}},{key:"equals",value:function(e){return this.eri===e.eri&&this.eci===e.eci&&this.sri===e.sri&&this.sci===e.sci}}],[{key:"valueOf",value:function(t){var r=t.split(":"),n=X(se(r[0]),2),i=n[0],a=n[1],s=a,o=i;if(r.length>1){var l=X(se(r[1]),2);o=l[0],s=l[1]}return new e(a,i,s,o)}}])}();K(),Q();var ue=/* @__PURE__ */function(){return J(function e(){Y(this,e),this.range=new ce(0,0,0,0),this.ri=0,this.ci=0},[{key:"multiple",value:function(){return this.range.multiple()}},{key:"setIndexes",value:function(e,t){this.ri=e,this.ci=t}},{key:"size",value:function(){return this.range.size()}}])}();Q(),K();var fe=/* @__PURE__ */J(function e(){Y(this,e),this.x=0,this.y=0,this.ri=0,this.ci=0});K(),Q();var he=/* @__PURE__ */function(){return J(function e(){Y(this,e),this.undoItems=[],this.redoItems=[]},[{key:"add",value:function(e){this.undoItems.push(JSON.stringify(e)),this.redoItems=[]}},{key:"canUndo",value:function(){return this.undoItems.length>0}},{key:"canRedo",value:function(){return this.redoItems.length>0}},{key:"undo",value:function(e,t){var r=this.undoItems,n=this.redoItems;this.canUndo()&&(n.push(JSON.stringify(e)),t(JSON.parse(r.pop())))}},{key:"redo",value:function(e,t){var r=this.undoItems,n=this.redoItems;this.canRedo()&&(r.push(JSON.stringify(e)),t(JSON.parse(n.pop())))}}])}();K(),Q();var de=/* @__PURE__ */function(){return J(function e(){Y(this,e),this.range=null,this.state="clear"},[{key:"copy",value:function(e){return this.range=e,this.state="copy",this}},{key:"cut",value:function(e){return this.range=e,this.state="cut",this}},{key:"isCopy",value:function(){return"copy"===this.state}},{key:"isCut",value:function(){return"cut"===this.state}},{key:"isClear",value:function(){return"clear"===this.state}},{key:"clear",value:function(){this.range=null,this.state="clear"}}])}();K(),Q();var pe=/* @__PURE__ */function(){return J(function e(t,r,n){Y(this,e),this.ci=t,this.operator=r,this.value=n},[{key:"set",value:function(e,t){this.operator=e,this.value=t}},{key:"includes",value:function(e){var t=this.operator,r=this.value;return"all"===t||"in"===t&&r.includes(e)}},{key:"vlength",value:function(){var e=this.operator,t=this.value;return"in"===e?t.length:0}},{key:"getData",value:function(){return{ci:this.ci,operator:this.operator,value:this.value}}}])}(),me=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.ci=t,this.order=r},[{key:"asc",value:function(){return"asc"===this.order}},{key:"desc",value:function(){return"desc"===this.order}}])}(),ve=/* @__PURE__ */function(){return J(function e(){Y(this,e),this.ref=null,this.filters=[],this.sort=null},[{key:"setData",value:function(e){var t=e.ref,r=e.filters,n=e.sort;null!=t&&(this.ref=t,this.filters=r.map(function(e){return new pe(e.ci,e.operator,e.value)}),n&&(this.sort=new me(n.ci,n.order)))}},{key:"getData",value:function(){if(this.active()){var e=this.ref,t=this.filters,r=this.sort;return{ref:e,filters:t.map(function(e){return e.getData()}),sort:r}}return{}}},{key:"addFilter",value:function(e,t,r){var n=this.getFilter(e);null==n?this.filters.push(new pe(e,t,r)):n.set(t,r)}},{key:"setSort",value:function(e,t){this.sort=t?new me(e,t):null}},{key:"includes",value:function(e,t){return!!this.active()&&this.hrange().includes(e,t)}},{key:"getSort",value:function(e){var t=this.sort;return t&&t.ci===e?t:null}},{key:"getFilter",value:function(e){for(var t=this.filters,r=0;r<t.length;r+=1)if(t[r].ci===e)return t[r];return null}},{key:"filteredRows",value:function(e){var t=/* @__PURE__ */new Set,r=/* @__PURE__ */new Set;if(this.active())for(var n=this.range(),i=n.sri,a=n.eri,s=this.filters,o=i+1;o<=a;o+=1)for(var l=0;l<s.length;l+=1){var c=s[l],u=e(o,c.ci),f=u?u.text:"";if(!c.includes(f)){t.add(o);break}r.add(o)}return{rset:t,fset:r}}},{key:"items",value:function(e,t){var r={};if(this.active())for(var n=this.range(),i=n.sri,a=n.eri,s=i+1;s<=a;s+=1){var o=t(s,e);if(null===o||/^\s*$/.test(o.text))r[""]=(r[""]||0)+1;else{var l=o.text;r[l]=(r[l]||0)+1}}return r}},{key:"range",value:function(){return ce.valueOf(this.ref)}},{key:"hrange",value:function(){var e=this.range();return e.eri=e.sri,e}},{key:"clear",value:function(){this.ref=null,this.filters=[],this.sort=null}},{key:"active",value:function(){return null!==this.ref}}])}();K(),Q();var ge=/* @__PURE__ */function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Y(this,e),this._=t}return J(e,[{key:"forEach",value:function(e){this._.forEach(e)}},{key:"deleteWithin",value:function(e){this._=this._.filter(function(t){return!t.within(e)})}},{key:"getFirstIncludes",value:function(e,t){for(var r=0;r<this._.length;r+=1){var n=this._[r];if(n.includes(e,t))return n}return null}},{key:"filterIntersects",value:function(t){return new e(this._.filter(function(e){return e.intersects(t)}))}},{key:"intersects",value:function(e){for(var t=0;t<this._.length;t+=1)if(this._[t].intersects(e))return!0;return!1}},{key:"union",value:function(e){var t=e;return this._.forEach(function(e){e.intersects(t)&&(t=e.union(t))}),t}},{key:"add",value:function(e){this.deleteWithin(e),this._.push(e)}},{key:"shift",value:function(e,t,r,n){this._.forEach(function(i){var a=i.sri,s=i.sci,o=i.eri,l=i.eci,c=i;"row"===e?a>=t?(c.sri+=r,c.eri+=r):a<t&&t<=o&&(c.eri+=r,n(a,s,r,0)):"column"===e&&(s>=t?(c.sci+=r,c.eci+=r):s<t&&t<=l&&(c.eci+=r,n(a,s,0,r)))})}},{key:"move",value:function(e,t,r){this._.forEach(function(n){var i=n;i.within(e)&&(i.eri+=t,i.sri+=t,i.sci+=r,i.eci+=r)})}},{key:"setData",value:function(e){return this._=e.map(function(e){return ce.valueOf(e)}),this}},{key:"getData",value:function(){return this._.map(function(e){return e.toString()})}}])}();var be=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach(function(t){Object.keys(t).forEach(function(r){var n=t[r];"string"==typeof n||"number"==typeof n||"boolean"==typeof n?e[r]=n:"function"!=typeof n&&!Array.isArray(n)&&n instanceof Object?(e[r]=e[r]||{},be(e[r],n)):e[r]=n})}),e};function ye(e){for(var t="".concat(e),r=0,n=!1,i=0;i<t.length;i+=1)!0===n&&(r+=1),"."===t.charAt(i)&&(n=!0);return r}function we(e,t,r){if(Number.isNaN(t)||Number.isNaN(r))return t+e+r;var n=ye(t),i=ye(r),a=Number(t),s=Number(r),o=0;if("-"===e)o=a-s;else if("+"===e)o=a+s;else if("*"===e)o=a*s;else if("/"===e)return ye(o=a/s)>5?o.toFixed(2):o;return o.toFixed(Math.max(n,i))}var _e={cloneDeep:function(e){return JSON.parse(JSON.stringify(e))},merge:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return be.apply(void 0,[{}].concat(t))},equals:function e(t,r){var n=Object.keys(t);if(n.length!==Object.keys(r).length)return!1;for(var i=0;i<n.length;i+=1){var a=n[i],s=t[a],o=r[a];if(void 0===o)return!1;if("string"==typeof s||"number"==typeof s||"boolean"==typeof s){if(s!==o)return!1}else if(Array.isArray(s)){if(s.length!==o.length)return!1;for(var l=0;l<s.length;l+=1)if(!e(s[l],o[l]))return!1}else if("function"!=typeof s&&!Array.isArray(s)&&s instanceof Object&&!e(s,o))return!1}return!0},arrayEquals:function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(e[r]!==t[r])return!1;return!0},sum:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=0,n=0;return Object.keys(e).forEach(function(i){r+=t(e[i],i),n+=1}),[r,n]},rangeEach:function(e,t,r){for(var n=e;n<t;n+=1)r(n)},rangeSum:function(e,t,r){for(var n=0,i=e;i<t;i+=1)n+=r(i);return n},rangeReduceIf:function(e,t,r,n,i,a){for(var s=r,o=n,l=e;l<t&&!(s>i);l+=1)s+=o=a(l);return[l,s-o,o]},deleteProperty:function(e,t){var r=e["".concat(t)];return delete e["".concat(t)],r},numberCalc:we};G(),K(),Q();var ke=/* @__PURE__ */function(){return J(function e(t){var r=t.len,n=t.height;Y(this,e),this._={},this.len=r,this.height=n},[{key:"getHeight",value:function(e){if(this.isHide(e))return 0;var t=this.get(e);return t&&t.height?t.height:this.height}},{key:"setHeight",value:function(e,t){this.getOrNew(e).height=t}},{key:"unhide",value:function(e){for(var t=e;t>0&&(t-=1,this.isHide(t));)this.setHide(t,!1)}},{key:"isHide",value:function(e){var t=this.get(e);return t&&t.hide}},{key:"setHide",value:function(e,t){var r=this.getOrNew(e);!0===t?r.hide=!0:delete r.hide}},{key:"setStyle",value:function(e,t){this.getOrNew(e).style=t}},{key:"sumHeight",value:function(e,t,r){var n=this;return _e.rangeSum(e,t,function(e){return r&&r.has(e)?0:n.getHeight(e)})}},{key:"totalHeight",value:function(){return this.sumHeight(0,this.len)}},{key:"get",value:function(e){return this._[e]}},{key:"getOrNew",value:function(e){return this._[e]=this._[e]||{cells:{}},this._[e]}},{key:"getCell",value:function(e,t){var r=this.get(e);return void 0!==r&&void 0!==r.cells&&void 0!==r.cells[t]?r.cells[t]:null}},{key:"getCellMerge",value:function(e,t){var r=this.getCell(e,t);return r&&r.merge?r.merge:[0,0]}},{key:"getCellOrNew",value:function(e,t){var r=this.getOrNew(e);return r.cells[t]=r.cells[t]||{},r.cells[t]}},{key:"setCell",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"all",i=this.getOrNew(e);"all"===n?i.cells[t]=r:"text"===n?(i.cells[t]=i.cells[t]||{},i.cells[t].text=r.text):"format"===n&&(i.cells[t]=i.cells[t]||{},i.cells[t].style=r.style,r.merge&&(i.cells[t].merge=r.merge))}},{key:"setCellText",value:function(e,t,r){var n=this.getCellOrNew(e,t);!1!==n.editable&&(n.text=r)}},{key:"copyPaste",value:function(e,t,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=e.sri,o=e.sci,l=e.eri,c=e.eci,u=t.sri,f=t.sci,h=t.eri,d=t.eci,p=X(e.size(),2),m=p[0],v=p[1],g=X(t.size(),2),b=g[0],y=g[1],w=!0,_=0;(h<s||d<o)&&(w=!1,_=h<s?b:y);for(var k=s;k<=l;k+=1)if(this._[k])for(var x=o;x<=c;x+=1)if(this._[k].cells&&this._[k].cells[x])for(var S=u;S<=h;S+=m)for(var T=function(){var e=S+(k-s),t=E+(x-o),p=_e.cloneDeep(n._[k].cells[x]);if(i&&p&&p.text&&p.text.length>0){var g=p.text,b=E-f+(S-u)+2;if(w||(b-=_+1),"="===g[0])p.text=g.replace(/[a-zA-Z]{1,3}\d+/g,function(e){var t=0,r=0;return s===u?t=b-1:r=b-1,/^\d+$/.test(e)?e:le(e,t,r)});else if(m<=1&&v>1&&(u>l||h<s)||v<=1&&m>1&&(f>c||d<o)||m<=1&&v<=1){var y=/[\\.\d]+$/.exec(g);if(null!==y){var T=Number(y[0])+b-1;p.text=g.substring(0,y.index)+T}}}n.setCell(e,t,p,r),a(e,t,p)},E=f;E<=d;E+=v)T()}},{key:"cutPaste",value:function(e,t){var r=this,n={};this.each(function(i){r.eachCells(i,function(a){var s=parseInt(i,10),o=parseInt(a,10);e.includes(i,a)&&(s=t.sri+(s-e.sri),o=t.sci+(o-e.sci)),n[s]=n[s]||{cells:{}},n[s].cells[o]=r._[i].cells[a]})}),this._=n}},{key:"paste",value:function(e,t){var r=this;if(!(e.length<=0)){var n=t.sri,i=t.sci;e.forEach(function(e,t){var a=n+t;e.forEach(function(e,t){var n=i+t;r.setCellText(a,n,e)})})}}},{key:"insert",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n={};this.each(function(i,a){var s=parseInt(i,10);s>=e&&(s+=r,t.eachCells(i,function(t,n){n.text&&"="===n.text[0]&&(n.text=n.text.replace(/[a-zA-Z]{1,3}\d+/g,function(t){return le(t,0,r,function(t,r){return r>=e})}))})),n[s]=a}),this._=n,this.len+=r}},{key:"delete",value:function(e,t){var r=this,n=t-e+1,i={};this.each(function(a,s){var o=parseInt(a,10);o<e?i[o]=s:a>t&&(i[o-n]=s,r.eachCells(a,function(e,r){r.text&&"="===r.text[0]&&(r.text=r.text.replace(/[a-zA-Z]{1,3}\d+/g,function(e){return le(e,0,-n,function(e,r){return r>t})}))}))}),this._=i,this.len-=n}},{key:"insertColumn",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.each(function(n,i){var a={};t.eachCells(n,function(t,n){var i=parseInt(t,10);i>=e&&(i+=r,n.text&&"="===n.text[0]&&(n.text=n.text.replace(/[a-zA-Z]{1,3}\d+/g,function(t){return le(t,r,0,function(t){return t>=e})}))),a[i]=n}),i.cells=a})}},{key:"deleteColumn",value:function(e,t){var r=this,n=t-e+1;this.each(function(i,a){var s={};r.eachCells(i,function(r,i){var a=parseInt(r,10);a<e?s[a]=i:a>t&&(s[a-n]=i,i.text&&"="===i.text[0]&&(i.text=i.text.replace(/[a-zA-Z]{1,3}\d+/g,function(e){return le(e,-n,0,function(e){return e>t})})))}),a.cells=s})}},{key:"deleteCells",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";e.each(function(e,n){t.deleteCell(e,n,r)})}},{key:"deleteCell",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",n=this.get(e);if(null!==n){var i=this.getCell(e,t);null!==i&&!1!==i.editable&&("all"===r?delete n.cells[t]:"text"===r?(i.text&&delete i.text,i.value&&delete i.value):"format"===r?(void 0!==i.style&&delete i.style,i.merge&&delete i.merge):"merge"===r&&i.merge&&delete i.merge)}}},{key:"maxCell",value:function(){var e=Object.keys(this._),t=e[e.length-1],r=this._[t];if(r){var n=r.cells,i=Object.keys(n),a=i[i.length-1];return[parseInt(t,10),parseInt(a,10)]}return[0,0]}},{key:"each",value:function(e){Object.entries(this._).forEach(function(t){var r=X(t,2),n=r[0],i=r[1];e(n,i)})}},{key:"eachCells",value:function(e,t){this._[e]&&this._[e].cells&&Object.entries(this._[e].cells).forEach(function(e){var r=X(e,2),n=r[0],i=r[1];t(n,i)})}},{key:"setData",value:function(e){e.len&&(this.len=e.len,delete e.len),this._=e}},{key:"getData",value:function(){var e=this.len;return Object.assign({len:e},this._)}}])}();K(),Q();var xe=/* @__PURE__ */function(){return J(function e(t){var r=t.len,n=t.width,i=t.indexWidth,a=t.minWidth;Y(this,e),this._={},this.len=r,this.width=n,this.indexWidth=i,this.minWidth=a},[{key:"setData",value:function(e){e.len&&(this.len=e.len,delete e.len),this._=e}},{key:"getData",value:function(){var e=this.len;return Object.assign({len:e},this._)}},{key:"getWidth",value:function(e){if(this.isHide(e))return 0;var t=this._[e];return t&&t.width?t.width:this.width}},{key:"getOrNew",value:function(e){return this._[e]=this._[e]||{},this._[e]}},{key:"setWidth",value:function(e,t){this.getOrNew(e).width=t}},{key:"unhide",value:function(e){for(var t=e;t>0&&(t-=1,this.isHide(t));)this.setHide(t,!1)}},{key:"isHide",value:function(e){var t=this._[e];return t&&t.hide}},{key:"setHide",value:function(e,t){var r=this.getOrNew(e);!0===t?r.hide=!0:delete r.hide}},{key:"setStyle",value:function(e,t){this.getOrNew(e).style=t}},{key:"sumWidth",value:function(e,t){var r=this;return _e.rangeSum(e,t,function(e){return r.getWidth(e)})}},{key:"totalWidth",value:function(){return this.sumWidth(0,this.len)}}])}();function Se(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Te(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Te(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ee=["en"],Ce={en:{toolbar:{undo:"Undo",redo:"Redo",print:"Print",paintformat:"Paint format",clearformat:"Clear format",format:"Format",fontName:"Font",fontSize:"Font size",fontBold:"Font bold",fontItalic:"Font italic",underline:"Underline",strike:"Strike",color:"Text color",bgcolor:"Fill color",border:"Borders",merge:"Merge cells",align:"Horizontal align",valign:"Vertical align",textwrap:"Text wrapping",freeze:"Freeze cell",autofilter:"Filter",formula:"Functions",more:"More"},contextmenu:{copy:"Copy",cut:"Cut",paste:"Paste",pasteValue:"Paste values only",pasteFormat:"Paste format only",hide:"Hide",insertRow:"Insert row",insertColumn:"Insert column",deleteSheet:"Delete",deleteRow:"Delete row",deleteColumn:"Delete column",deleteCell:"Delete cell",deleteCellText:"Delete cell text",validation:"Data validations",cellprintable:"Enable export",cellnonprintable:"Disable export",celleditable:"Enable editing",cellnoneditable:"Disable editing"},print:{size:"Paper size",orientation:"Page orientation",orientations:["Landscape","Portrait"]},format:{normal:"Normal",text:"Plain Text",number:"Number",percent:"Percent",rmb:"RMB",usd:"USD",eur:"EUR",date:"Date",time:"Time",datetime:"Date time",duration:"Duration"},formula:{sum:"Sum",average:"Average",max:"Max",min:"Min",_if:"IF",and:"AND",or:"OR",concat:"Concat"},validation:{required:"it must be required",notMatch:"it not match its validation rule",between:"it is between {} and {}",notBetween:"it is not between {} and {}",notIn:"it is not in list",equal:"it equal to {}",notEqual:"it not equal to {}",lessThan:"it less than {}",lessThanEqual:"it less than or equal to {}",greaterThan:"it greater than {}",greaterThanEqual:"it greater than or equal to {}"},error:{pasteForMergedCell:"Unable to do this for merged cells"},calendar:{weeks:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]},button:{next:"Next",cancel:"Cancel",remove:"Remove",save:"Save",ok:"OK"},sort:{desc:"Sort Z -> A",asc:"Sort A -> Z"},filter:{empty:"empty"},dataValidation:{mode:"Mode",range:"Cell Range",criteria:"Criteria",modeType:{cell:"Cell",column:"Colun",row:"Row"},type:{list:"List",number:"Number",date:"Date",phone:"Phone",email:"Email"},operator:{be:"between",nbe:"not betwwen",lt:"less than",lte:"less than or equal to",gt:"greater than",gte:"greater than or equal to",eq:"equal to",neq:"not equal to"}}}};function Ae(e,t){if(t){var r,n=Se(Ee);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(!t[i])break;for(var a=t[i],s=e.match(/(?:\\.|[^.])+/g),o=0;o<s.length;o+=1){var l=a[s[o]];if(!l)break;if(o===s.length-1)return l;a=l}}}catch(c){n.e(c)}finally{n.f()}}}function Me(e){var t=Ae(e,Ce);return!t&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(t=Ae(e,window.x_spreadsheet.$messages)),t||""}function Oe(e){return function(){return Me(e)}}function Re(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Ee=[e]:Ee.unshift(e),t&&(Ce[e]=t)}G(),K(),Q();var Ie={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function Ne(e,t){var r="";if(!e){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];r=Me.apply(void 0,["validation.".concat(t)].concat(i))}return[e,r]}var Pe=/* @__PURE__ */function(){return J(function e(t,r,n,i){Y(this,e),this.required=r,this.value=n,this.type=t,this.operator=i,this.message=""},[{key:"parseValue",value:function(e){var t=this.type;return"date"===t?new Date(e):"number"===t?Number(e):e}},{key:"equals",value:function(e){var t=this.type===e.type&&this.required===e.required&&this.operator===e.operator;return t&&(t=Array.isArray(this.value)?_e.arrayEquals(this.value,e.value):this.value===e.value),t}},{key:"values",value:function(){return this.value.split(",")}},{key:"validate",value:function(e){var t=this.required,r=this.operator,n=this.value,i=this.type;if(t&&/^\s*$/.test(e))return Ne(!1,"required");if(/^\s*$/.test(e))return[!0];if(Ie[i]&&!Ie[i].test(e))return Ne(!1,"notMatch");if("list"===i)return Ne(this.values().includes(e),"notIn");if(r){var a=this.parseValue(e);if("be"===r){var s=X(n,2),o=s[0],l=s[1];return Ne(a>=this.parseValue(o)&&a<=this.parseValue(l),"between",o,l)}if("nbe"===r){var c=X(n,2),u=c[0],f=c[1];return Ne(a<this.parseValue(u)||a>this.parseValue(f),"notBetween",u,f)}if("eq"===r)return Ne(a===this.parseValue(n),"equal",n);if("neq"===r)return Ne(a!==this.parseValue(n),"notEqual",n);if("lt"===r)return Ne(a<this.parseValue(n),"lessThan",n);if("lte"===r)return Ne(a<=this.parseValue(n),"lessThanEqual",n);if("gt"===r)return Ne(a>this.parseValue(n),"greaterThan",n);if("gte"===r)return Ne(a>=this.parseValue(n),"greaterThanEqual",n)}return[!0]}}])}();G(),K(),Q();var De=/* @__PURE__ */function(){function e(t,r,n){Y(this,e),this.refs=r,this.mode=t,this.validator=n}return J(e,[{key:"includes",value:function(e,t){for(var r=this.refs,n=0;n<r.length;n+=1)if(ce.valueOf(r[n]).includes(e,t))return!0;return!1}},{key:"addRef",value:function(e){this.remove(ce.valueOf(e)),this.refs.push(e)}},{key:"remove",value:function(e){var t=[];this.refs.forEach(function(r){var n=ce.valueOf(r);n.intersects(e)?n.difference(e).forEach(function(e){return t.push(e.toString())}):t.push(r)}),this.refs=t}},{key:"getData",value:function(){var e=this.refs,t=this.mode,r=this.validator;return{refs:e,mode:t,type:r.type,required:r.required,operator:r.operator,value:r.value}}}],[{key:"valueOf",value:function(t){var r=t.refs,n=t.mode,i=t.type,a=t.required,s=t.operator,o=t.value;return new e(n,r,new Pe(i,a,o,s))}}])}(),Fe=/* @__PURE__ */function(){return J(function e(){Y(this,e),this._=[],this.errors=/* @__PURE__ */new Map},[{key:"getError",value:function(e,t){return this.errors.get("".concat(e,"_").concat(t))}},{key:"validate",value:function(e,t,r){var n=this.get(e,t),i="".concat(e,"_").concat(t),a=this.errors;if(null!==n){var s=X(n.validator.validate(r),2),o=s[0],l=s[1];o?a.delete(i):a.set(i,l)}else a.delete(i);return!0}},{key:"add",value:function(e,t,r){var n=r.type,i=r.required,a=r.value,s=r.operator,o=new Pe(n,i,a,s),l=this.getByValidator(o);null!==l?l.addRef(t):this._.push(new De(e,[t],o))}},{key:"getByValidator",value:function(e){for(var t=0;t<this._.length;t+=1){var r=this._[t];if(r.validator.equals(e))return r}return null}},{key:"get",value:function(e,t){for(var r=0;r<this._.length;r+=1){var n=this._[r];if(n.includes(e,t))return n}return null}},{key:"remove",value:function(e){this.each(function(t){t.remove(e)})}},{key:"each",value:function(e){this._.forEach(function(t){return e(t)})}},{key:"getData",value:function(){return this._.filter(function(e){return e.refs.length>0}).map(function(e){return e.getData()})}},{key:"setData",value:function(e){this._=e.map(function(e){return De.valueOf(e)})}}])}();K(),Q(),G();var je={mode:"edit",view:{height:function(){return document.documentElement.clientHeight},width:function(){return document.documentElement.clientWidth}},showGrid:!0,showToolbar:!0,showContextmenu:!0,showBottomBar:!0,row:{len:100,height:25},col:{len:26,width:100,indexWidth:60,minWidth:60},style:{bgcolor:"#ffffff",align:"left",valign:"middle",textwrap:!1,strike:!1,underline:!1,color:"#0a0a0a",font:{name:"Arial",size:10,bold:!1,italic:!1},format:"normal"}};function Le(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=this.merges,i=t.clone(),a=X(e.size(),2),s=a[0],o=a[1],l=X(t.size(),2),c=l[0],u=l[1];return s>c&&(i.eri=t.sri+s-1),o>u&&(i.eci=t.sci+o-1),!n.intersects(i)||(r(Me("error.pasteForMergedCell")),!1)}function Be(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.rows,a=this.merges;"all"!==r&&"format"!==r||(i.deleteCells(t,r),a.deleteWithin(t)),i.copyPaste(e,t,r,n,function(e,t,r){if(r&&r.merge){var n=X(r.merge,2),i=n[0],s=n[1];if(i<=0&&s<=0)return;a.add(new ce(e,t,e+i,t+s))}})}function ze(e,t){var r=this.clipboard,n=this.rows,i=this.merges;n.cutPaste(e,t),i.move(e,t.sri-e.sri,t.sci-e.sci),r.clear()}function Ue(e,t,r){var n=this.styles,i=this.rows.getCellOrNew(e,t),a={};void 0!==i.style&&(a=_e.cloneDeep(n[i.style])),a=_e.merge(a,{border:r}),i.style=this.addStyle(a)}function He(e){var t=this,r=e.mode,n=e.style,i=e.color,a=this.styles,s=this.selector,o=this.rows,l=s.range,c=l.sri,u=l.sci,f=l.eri,h=l.eci,d=!this.isSingleSelected();if(d||"inside"!==r&&"horizontal"!==r&&"vertical"!==r)if("outside"!==r||d){if("none"===r)s.range.each(function(e,r){var n=o.getCell(e,r);if(n&&void 0!==n.style){var i=_e.cloneDeep(a[n.style]);delete i.border,n.style=t.addStyle(i)}});else if("all"===r||"inside"===r||"outside"===r||"horizontal"===r||"vertical"===r)for(var p=[],m=c;m<=f;m+=1)for(var v=u;v<=h;v+=1){for(var g=[],b=0;b<p.length;b+=1){var y=X(p[b],4),w=y[0],_=y[1],k=y[2],x=y[3];if(m===w+k+1&&g.push(b),w<=m&&m<=w+k&&v===_){v+=x+1;break}}if(g.forEach(function(e){return p.splice(e,1)}),v>h)break;var S=o.getCell(m,v),T=0,E=0;if(S&&S.merge){var C=X(S.merge,2);T=C[0],E=C[1],p.push([m,v,T,E])}var A=T>0&&m+T===f,M=E>0&&v+E===h,O={};"all"===r?O={bottom:[n,i],top:[n,i],left:[n,i],right:[n,i]}:"inside"===r?(!M&&v<h&&(O.right=[n,i]),!A&&m<f&&(O.bottom=[n,i])):"horizontal"===r?!A&&m<f&&(O.bottom=[n,i]):"vertical"===r?!M&&v<h&&(O.right=[n,i]):"outside"===r&&d&&(c===m&&(O.top=[n,i]),(A||f===m)&&(O.bottom=[n,i]),u===v&&(O.left=[n,i]),(M||h===v)&&(O.right=[n,i])),Object.keys(O).length>0&&Ue.call(this,m,v,O),v+=E}else if("top"===r||"bottom"===r)for(var R=u;R<=h;R+=1)"top"===r&&(Ue.call(this,c,R,{top:[n,i]}),R+=o.getCellMerge(c,R)[1]),"bottom"===r&&(Ue.call(this,f,R,{bottom:[n,i]}),R+=o.getCellMerge(f,R)[1]);else if("left"===r||"right"===r)for(var I=c;I<=f;I+=1)"left"===r&&(Ue.call(this,I,u,{left:[n,i]}),I+=o.getCellMerge(I,u)[0]),"right"===r&&(Ue.call(this,I,h,{right:[n,i]}),I+=o.getCellMerge(I,h)[0])}else Ue.call(this,c,u,{top:[n,i],bottom:[n,i],left:[n,i],right:[n,i]})}function We(e,t){var r=this.rows,n=this.freezeTotalHeight(),i=r.height;n+r.height<e&&(i-=t);for(var a=this.exceptRowSet,s=0,o=i,l=r.height;s<r.len&&!(o>e);s+=1)a.has(s)||(o+=l=r.getHeight(s));return(o-=l)<=0?{ri:-1,top:0,height:l}:{ri:s-1,top:o,height:l}}function Ve(e,t){var r=this.cols,n=this.freezeTotalWidth(),i=r.indexWidth;n+r.indexWidth<e&&(i-=t);var a=X(_e.rangeReduceIf(0,r.len,i,r.indexWidth,e,function(e){return r.getWidth(e)}),3),s=a[0],o=a[1],l=a[2];return o<=0?{ci:-1,left:0,width:r.indexWidth}:{ci:s-1,left:o,width:l}}var $e=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.settings=_e.merge(je,r||{}),this.name=t||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new ge,this.rows=new ke(this.settings.row),this.cols=new xe(this.settings.col),this.validations=new Fe,this.hyperlinks={},this.comments={},this.selector=new ue,this.scroll=new fe,this.history=new he,this.clipboard=new de,this.autoFilter=new ve,this.change=function(){},this.exceptRowSet=/* @__PURE__ */new Set,this.sortedRowMap=/* @__PURE__ */new Map,this.unsortedRowMap=/* @__PURE__ */new Map},[{key:"addValidation",value:function(e,t,r){var n=this;this.changeData(function(){n.validations.add(e,t,r)})}},{key:"removeValidation",value:function(){var e=this,t=this.selector.range;this.changeData(function(){e.validations.remove(t)})}},{key:"getSelectedValidator",value:function(){var e=this.selector,t=e.ri,r=e.ci,n=this.validations.get(t,r);return n?n.validator:null}},{key:"getSelectedValidation",value:function(){var e=this.selector,t=e.ri,r=e.ci,n=e.range,i=this.validations.get(t,r),a={ref:n.toString()};return null!==i&&(a.mode=i.mode,a.validator=i.validator),a}},{key:"canUndo",value:function(){return this.history.canUndo()}},{key:"canRedo",value:function(){return this.history.canRedo()}},{key:"undo",value:function(){var e=this;this.history.undo(this.getData(),function(t){e.setData(t)})}},{key:"redo",value:function(){var e=this;this.history.redo(this.getData(),function(t){e.setData(t)})}},{key:"copy",value:function(){this.clipboard.copy(this.selector.range)}},{key:"copyToSystemClipboard",value:function(e){for(var t=[],r=this.selector.range,n=r.sri,i=r.eri,a=r.sci,s=r.eci,o=n;o<=i;o+=1){for(var l=[],c=a;c<=s;c+=1){var u=this.getCell(o,c);l.push(u&&u.text||"")}t.push(l)}t=t.map(function(e){return e.join("\t")}).join("\n"),e&&(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",t),e.preventDefault()),navigator.clipboard&&navigator.clipboard.writeText(t).then(function(){},function(e){console.log("text copy to the system clipboard error ",t,e)})}},{key:"cut",value:function(){this.clipboard.cut(this.selector.range)}},{key:"paste",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=this.clipboard,i=this.selector;return!n.isClear()&&(!!Le.call(this,n.range,i.range,r)&&(this.changeData(function(){n.isCopy()?Be.call(e,n.range,i.range,t):n.isCut()&&ze.call(e,n.range,i.range)}),!0))}},{key:"pasteFromSystemClipboard",value:function(e,t){var r=this,n=this.selector;navigator.clipboard.readText().then(function(i){var a=r.parseClipboardContent(i),s=n.ri;a.forEach(function(e){var t=n.ci;e.forEach(function(e){r.setCellText(s,t,e,"input"),t+=1}),s+=1}),e(),t(r.rows.getData())})}},{key:"parseClipboardContent",value:function(e){var t=[],r=e.split("\n"),n=0;return r.forEach(function(e){t[n]=e.split("\t"),n+=1}),t}},{key:"pasteFromText",value:function(e){var t=[];if((t=/\r\n/.test(e)?e.split("\r\n").map(function(e){return e.replace(/"/g,"").split("\t")}):e.split("\n").map(function(e){return e.replace(/"/g,"").split("\t")})).length){var r=this.rows,n=this.selector;this.changeData(function(){r.paste(t,n.range)})}}},{key:"autofill",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=this.selector.range;return!!Le.call(this,i,e,n)&&(this.changeData(function(){Be.call(r,i,e,t,!0)}),!0)}},{key:"clearClipboard",value:function(){this.clipboard.clear()}},{key:"calSelectedRangeByEnd",value:function(e,t){var r=this.selector,n=this.rows,i=this.cols,a=this.merges,s=r.range,o=s.sri,l=s.sci,c=s.eri,u=s.eci,f=r.ri,h=r.ci,d=e,p=t;return e<0&&(d=n.len-1),t<0&&(p=i.len-1),d>f?(o=f,c=d):(o=d,c=f),p>h?(l=h,u=p):(l=p,u=h),r.range=a.union(new ce(o,l,c,u)),r.range=a.union(r.range),r.range}},{key:"calSelectedRangeByStart",value:function(e,t){var r=this.selector,n=this.rows,i=this.cols,a=this.merges.getFirstIncludes(e,t);return null===a&&(a=new ce(e,t,e,t),-1===e&&(a.sri=0,a.eri=n.len-1),-1===t&&(a.sci=0,a.eci=i.len-1)),r.range=a,a}},{key:"setSelectedCellAttr",value:function(e,t){var r=this;this.changeData(function(){var n=r.selector,i=r.styles,a=r.rows;if("merge"===e)t?r.merge():r.unmerge();else if("border"===e)He.call(r,t);else if("formula"===e){var s=n.ri,o=n.ci,l=n.range;if(n.multiple()){var c=X(n.size(),2),u=c[0],f=c[1],h=l.sri,d=l.sci,p=l.eri,m=l.eci;if(u>1)for(var v=d;v<=m;v+=1){a.getCellOrNew(p+1,v).text="=".concat(t,"(").concat(oe(v,h),":").concat(oe(v,p),")")}else if(f>1){a.getCellOrNew(s,m+1).text="=".concat(t,"(").concat(oe(d,s),":").concat(oe(m,s),")")}}else{a.getCellOrNew(s,o).text="=".concat(t,"()")}}else n.range.each(function(n,s){var o=a.getCellOrNew(n,s),l={};if(void 0!==o.style&&(l=_e.cloneDeep(i[o.style])),"format"===e)l.format=t,o.style=r.addStyle(l);else if("font-bold"===e||"font-italic"===e||"font-name"===e||"font-size"===e){var c={};c[e.split("-")[1]]=t,l.font=Object.assign(l.font||{},c),o.style=r.addStyle(l)}else"strike"===e||"textwrap"===e||"underline"===e||"align"===e||"valign"===e||"color"===e||"bgcolor"===e?(l[e]=t,o.style=r.addStyle(l)):o[e]=t})})}},{key:"setSelectedCellText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input",r=this.autoFilter,n=this.selector,i=this.rows,a=n.ri,s=n.ci,o=a;this.unsortedRowMap.has(a)&&(o=this.unsortedRowMap.get(a));var l=i.getCell(o,s),c=l?l.text:"";if(this.setCellText(o,s,e,t),r.active()){var u=r.getFilter(s);if(u){var f=u.value.findIndex(function(e){return e===c});f>=0&&u.value.splice(f,1,e)}}}},{key:"getSelectedCell",value:function(){var e=this.selector,t=e.ri,r=e.ci,n=t;return this.unsortedRowMap.has(t)&&(n=this.unsortedRowMap.get(t)),this.rows.getCell(n,r)}},{key:"xyInSelectedRect",value:function(e,t){var r=this.getSelectedRect(),n=r.left,i=r.top,a=r.width,s=r.height,o=e-this.cols.indexWidth,l=t-this.rows.height;return o>n&&o<n+a&&l>i&&l<i+s}},{key:"getSelectedRect",value:function(){return this.getRect(this.selector.range)}},{key:"getClipboardRect",value:function(){var e=this.clipboard;return e.isClear()?{left:-100,top:-100}:this.getRect(e.range)}},{key:"getRect",value:function(e){var t=this.scroll,r=this.rows,n=this.cols,i=this.exceptRowSet,a=e.sri,s=e.sci,o=e.eri,l=e.eci;if(a<0&&s<0)return{left:0,l:0,top:0,t:0,scroll:t};var c=n.sumWidth(0,s),u=r.sumHeight(0,a,i),f=r.sumHeight(a,o+1,i),h=n.sumWidth(s,l+1),d=c-t.x,p=u-t.y,m=this.freezeTotalHeight(),v=this.freezeTotalWidth();return v>0&&v>c&&(d=c),m>0&&m>u&&(p=u),{l:c,t:u,left:d,top:p,height:f,width:h,scroll:t}}},{key:"getCellRectByXY",value:function(e,t){var r=this.scroll,n=this.merges,i=this.rows,a=this.cols,s=We.call(this,t,r.y),o=s.ri,l=s.top,c=s.height,u=Ve.call(this,e,r.x),f=u.ci,h=u.left,d=u.width;if(-1===f&&(d=a.totalWidth()),-1===o&&(c=i.totalHeight()),o>=0||f>=0){var p=n.getFirstIncludes(o,f);if(p){o=p.sri,f=p.sci;var m=this.cellRect(o,f);h=m.left,l=m.top,d=m.width,c=m.height}}return{ri:o,ci:f,left:h,top:l,width:d,height:c}}},{key:"isSingleSelected",value:function(){var e=this.selector.range,t=e.sri,r=e.sci,n=e.eri,i=e.eci,a=this.getCell(t,r);if(a&&a.merge){var s=X(a.merge,2),o=s[0],l=s[1];if(t+o===n&&r+l===i)return!0}return!this.selector.multiple()}},{key:"canUnmerge",value:function(){var e=this.selector.range,t=e.sri,r=e.sci,n=e.eri,i=e.eci,a=this.getCell(t,r);if(a&&a.merge){var s=X(a.merge,2),o=s[0],l=s[1];if(t+o===n&&r+l===i)return!0}return!1}},{key:"merge",value:function(){var e=this,t=this.selector,r=this.rows;if(!this.isSingleSelected()){var n=X(t.size(),2),i=n[0],a=n[1];if(i>1||a>1){var s=t.range,o=s.sri,l=s.sci;this.changeData(function(){var n=r.getCellOrNew(o,l);n.merge=[i-1,a-1],e.merges.add(t.range),e.rows.deleteCells(t.range),e.rows.setCell(o,l,n)})}}}},{key:"unmerge",value:function(){var e=this,t=this.selector;if(this.isSingleSelected()){var r=t.range,n=r.sri,i=r.sci;this.changeData(function(){e.rows.deleteCell(n,i,"merge"),e.merges.deleteWithin(t.range)})}}},{key:"canAutofilter",value:function(){return!this.autoFilter.active()}},{key:"autofilter",value:function(){var e=this,t=this.autoFilter,r=this.selector;this.changeData(function(){t.active()?(t.clear(),e.exceptRowSet=/* @__PURE__ */new Set,e.sortedRowMap=/* @__PURE__ */new Map,e.unsortedRowMap=/* @__PURE__ */new Map):t.ref=r.range.toString()})}},{key:"setAutoFilter",value:function(e,t,r,n){var i=this.autoFilter;i.addFilter(e,r,n),i.setSort(e,t),this.resetAutoFilter()}},{key:"resetAutoFilter",value:function(){var e=this,t=this.autoFilter,r=this.rows;if(t.active()){var n=t.sort,i=t.filteredRows(function(e,t){return r.getCell(e,t)}),a=i.rset,s=i.fset,o=Array.from(s),l=Array.from(s);n&&o.sort(function(e,t){return"asc"===n.order?e-t:"desc"===n.order?t-e:0}),this.exceptRowSet=a,this.sortedRowMap=/* @__PURE__ */new Map,this.unsortedRowMap=/* @__PURE__ */new Map,o.forEach(function(t,r){e.sortedRowMap.set(l[r],t),e.unsortedRowMap.set(t,l[r])})}}},{key:"deleteCell",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",r=this.selector;this.changeData(function(){e.rows.deleteCells(r.range,t),"all"!==t&&"format"!==t||e.merges.deleteWithin(r.range)})}},{key:"insert",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.changeData(function(){var n=t.selector.range,i=n.sri,a=n.sci,s=t.rows,o=t.merges,l=t.cols,c=i;"row"===e?s.insert(i,r):"column"===e&&(s.insertColumn(a,r),c=a,l.len+=r,Object.keys(l._).reverse().forEach(function(e){var t=parseInt(e,10);t>=a&&(l._[t+r]=l._[t],delete l._[t])})),o.shift(e,c,r,function(e,t,r,n){var i=s.getCell(e,t);i.merge[0]+=r,i.merge[1]+=n})})}},{key:"delete",value:function(e){var t=this;this.changeData(function(){var r=t.rows,n=t.merges,i=t.selector,a=t.cols,s=i.range,o=i.range,l=o.sri,c=o.sci,u=o.eri,f=o.eci,h=X(i.range.size(),2),d=h[0],p=h[1],m=l,v=d;"row"===e?r.delete(l,u):"column"===e&&(r.deleteColumn(c,f),m=s.sci,v=p,a.len-=f-c+1,Object.keys(a._).forEach(function(e){var t=parseInt(e,10);t>=c&&(t>f&&(a._[t-(f-c+1)]=a._[t]),delete a._[t])})),n.shift(e,m,-v,function(e,t,n,i){var a=r.getCell(e,t);a.merge[0]+=n,a.merge[1]+=i,0===a.merge[0]&&0===a.merge[1]&&delete a.merge})})}},{key:"scrollx",value:function(e,t){var r=this.scroll,n=this.freeze,i=this.cols,a=X(n,2)[1],s=X(_e.rangeReduceIf(a,i.len,0,0,e,function(e){return i.getWidth(e)}),3),o=s[0],l=s[1],c=s[2],u=l;e>0&&(u+=c),r.x!==u&&(r.ci=e>0?o:0,r.x=u,t())}},{key:"scrolly",value:function(e,t){var r=this.scroll,n=this.freeze,i=this.rows,a=X(n,1)[0],s=X(_e.rangeReduceIf(a,i.len,0,0,e,function(e){return i.getHeight(e)}),3),o=s[0],l=s[1],c=s[2],u=l;e>0&&(u+=c),r.y!==u&&(r.ri=e>0?o:0,r.y=u,t())}},{key:"cellRect",value:function(e,t){var r=this.rows,n=this.cols,i=n.sumWidth(0,t),a=r.sumHeight(0,e),s=r.getCell(e,t),o=n.getWidth(t),l=r.getHeight(e);if(null!==s&&s.merge){var c=X(s.merge,2),u=c[0],f=c[1];if(u>0)for(var h=1;h<=u;h+=1)l+=r.getHeight(e+h);if(f>0)for(var d=1;d<=f;d+=1)o+=n.getWidth(t+d)}return{left:i,top:a,width:o,height:l,cell:s}}},{key:"getCell",value:function(e,t){return this.rows.getCell(e,t)}},{key:"getCellTextOrDefault",value:function(e,t){var r=this.getCell(e,t);return r&&r.text?r.text:""}},{key:"getCellStyle",value:function(e,t){var r=this.getCell(e,t);return r&&void 0!==r.style?this.styles[r.style]:null}},{key:"getCellStyleOrDefault",value:function(e,t){var r=this.styles,n=this.rows.getCell(e,t),i=n&&void 0!==n.style?r[n.style]:{};return _e.merge(this.defaultStyle(),i)}},{key:"getSelectedCellStyle",value:function(){var e=this.selector,t=e.ri,r=e.ci;return this.getCellStyleOrDefault(t,r)}},{key:"setCellText",value:function(e,t,r,n){var i=this.rows,a=this.history,s=this.validations;"finished"===n?(i.setCellText(e,t,""),a.add(this.getData()),i.setCellText(e,t,r)):(i.setCellText(e,t,r),this.change(this.getData())),s.validate(e,t,r)}},{key:"freezeIsActive",value:function(){var e=X(this.freeze,2),t=e[0],r=e[1];return t>0||r>0}},{key:"setFreeze",value:function(e,t){var r=this;this.changeData(function(){r.freeze=[e,t]})}},{key:"freezeTotalWidth",value:function(){return this.cols.sumWidth(0,this.freeze[1])}},{key:"freezeTotalHeight",value:function(){return this.rows.sumHeight(0,this.freeze[0])}},{key:"setRowHeight",value:function(e,t){var r=this;this.changeData(function(){r.rows.setHeight(e,t)})}},{key:"setColWidth",value:function(e,t){var r=this;this.changeData(function(){r.cols.setWidth(e,t)})}},{key:"viewHeight",value:function(){var e=this.settings,t=e.view,r=e.showToolbar,n=e.showBottomBar,i=t.height();return n&&(i-=41),r&&(i-=41),i}},{key:"viewWidth",value:function(){return this.settings.view.width()}},{key:"freezeViewRange",value:function(){var e=X(this.freeze,2),t=e[0],r=e[1];return new ce(0,0,t-1,r-1,this.freezeTotalWidth(),this.freezeTotalHeight())}},{key:"contentRange",value:function(){var e=this.rows,t=this.cols,r=X(e.maxCell(),2),n=r[0],i=r[1],a=e.sumHeight(0,n+1);return new ce(0,0,n,i,t.sumWidth(0,i+1),a)}},{key:"exceptRowTotalHeight",value:function(e,t){var r=this.exceptRowSet,n=this.rows,i=Array.from(r),a=0;return i.forEach(function(r){if(r<e||r>t){var i=n.getHeight(r);a+=i}}),a}},{key:"viewRange",value:function(){var e=this.scroll,t=this.rows,r=this.cols,n=this.freeze,i=this.exceptRowSet,a=e.ri,s=e.ci;a<=0&&(a=X(n,1)[0]),s<=0&&(s=X(n,2)[1]);for(var o=0,l=0,c=[t.len,r.len],u=c[0],f=c[1],h=a;h<t.len&&(i.has(h)||(l+=t.getHeight(h),u=h),!(l>this.viewHeight()));h+=1);for(var d=s;d<r.len&&(f=d,!((o+=r.getWidth(d))>this.viewWidth()));d+=1);return new ce(a,s,u,f,o,l)}},{key:"eachMergesInView",value:function(e,t){this.merges.filterIntersects(e).forEach(function(e){return t(e)})}},{key:"hideRowsOrCols",value:function(){var e=this.rows,t=this.cols,r=this.selector,n=X(r.size(),2),i=n[0],a=n[1],s=r.range,o=s.sri,l=s.sci,c=s.eri,u=s.eci;if(i===e.len)for(var f=l;f<=u;f+=1)t.setHide(f,!0);else if(a===t.len)for(var h=o;h<=c;h+=1)e.setHide(h,!0)}},{key:"unhideRowsOrCols",value:function(e,t){this["".concat(e,"s")].unhide(t)}},{key:"rowEach",value:function(e,t,r){for(var n=0,i=this.rows,a=this.exceptRowSet,s=I(a),o=0,l=0;l<s.length;l+=1)s[l]<e&&(o+=1);for(var c=e+o;c<=t+o;c+=1)if(a.has(c))o+=1;else{var u=i.getHeight(c);if(u>0&&(r(c,n,u),(n+=u)>this.viewHeight()))break}}},{key:"colEach",value:function(e,t,r){for(var n=0,i=this.cols,a=e;a<=t;a+=1){var s=i.getWidth(a);if(s>0&&(r(a,n,s),(n+=s)>this.viewWidth()))break}}},{key:"defaultStyle",value:function(){return this.settings.style}},{key:"addStyle",value:function(e){for(var t=this.styles,r=0;r<t.length;r+=1){var n=t[r];if(_e.equals(n,e))return r}return t.push(e),t.length-1}},{key:"changeData",value:function(e){this.history.add(this.getData()),e(),this.change(this.getData())}},{key:"setData",value:function(e){var t=this;return Object.keys(e).forEach(function(r){if("merges"===r||"rows"===r||"cols"===r||"validations"===r)t[r].setData(e[r]);else if("freeze"===r){var n=X(se(e[r]),2),i=n[0];t.freeze=[n[1],i]}else"autofilter"===r?t.autoFilter.setData(e[r]):void 0!==e[r]&&(t[r]=e[r])}),this}},{key:"getData",value:function(){var e=this.name,t=this.freeze,r=this.styles,n=this.merges,i=this.rows,a=this.cols,s=this.validations,o=this.autoFilter;return{name:e,freeze:oe(t[1],t[0]),styles:r,merges:n.getData(),rows:i.getData(),cols:a.getData(),validations:s.getData(),autofilter:o.getData()}}}])}();function qe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Xe(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ge(e,t,r){e.addEventListener(t,r)}function Ye(e,t,r){e.removeEventListener(t,r)}function Ke(e){e.xclickoutside&&(Ye(window.document.body,"click",e.xclickoutside),delete e.xclickoutside)}function Ze(e,t){e.xclickoutside=function(r){2===r.detail||e.contains(r.target)||(t?t(e):(e.hide(),Ke(e)))},Ge(window.document.body,"click",e.xclickoutside)}function Je(e,t,r){Ge(e,"mousemove",t),e.xEvtUp=function(n){Ye(e,"mousemove",t),Ye(e,"mouseup",e.xEvtUp),r(n)},Ge(e,"mouseup",e.xEvtUp)}function Qe(e,t,r,n){Math.abs(e)>Math.abs(t)?n(e>0?"right":"left",e,r):n(t>0?"down":"up",t,r)}N();var et="x-spreadsheet";window.devicePixelRatio;K(),Q();var tt=/* @__PURE__ */function(){return J(function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;Y(this,e),this.moving=!1,this.vertical=r,this.el=re("div","".concat(et,"-resizer ").concat(r?"vertical":"horizontal")).children(this.unhideHoverEl=re("div","".concat(et,"-resizer-hover")).on("dblclick.stop",function(e){return t.mousedblclickHandler(e)}).css("position","absolute").hide(),this.hoverEl=re("div","".concat(et,"-resizer-hover")).on("mousedown.stop",function(e){return t.mousedownHandler(e)}),this.lineEl=re("div","".concat(et,"-resizer-line")).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=n,this.unhideFn=function(){}},[{key:"showUnhide",value:function(e){this.unhideIndex=e,this.unhideHoverEl.show()}},{key:"hideUnhide",value:function(){this.unhideHoverEl.hide()}},{key:"show",value:function(e,t){var r=this.moving,n=this.vertical,i=this.hoverEl,a=this.lineEl,s=this.el,o=this.unhideHoverEl;if(!r){this.cRect=e;var l=e.left,c=e.top,u=e.width,f=e.height;s.offset({left:n?l+u-5:l,top:n?c:c+f-5}).show(),i.offset({width:n?5:u,height:n?f:5}),a.offset({width:n?0:t.width,height:n?t.height:0}),o.offset({left:n?5-u:l,top:n?c:5-f,width:n?5:u,height:n?f:5})}}},{key:"hide",value:function(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}},{key:"mousedblclickHandler",value:function(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}},{key:"mousedownHandler",value:function(e){var t=this,r=e,n=this.el,i=this.lineEl,a=this.cRect,s=this.vertical,o=this.minDistance,l=s?a.width:a.height;i.show(),Je(window,function(e){t.moving=!0,null!==r&&1===e.buttons&&(s?(l+=e.movementX)>o&&n.css("left","".concat(a.left+l,"px")):(l+=e.movementY)>o&&n.css("top","".concat(a.top+l,"px")),r=e)},function(){r=null,i.hide(),t.moving=!1,t.hide(),t.finishedFn&&(l<o&&(l=o),t.finishedFn(a,l))})}}])}();K(),Q();var rt=/* @__PURE__ */function(){return J(function e(t){var r=this;Y(this,e),this.vertical=t,this.moveFn=null,this.el=re("div","".concat(et,"-scrollbar ").concat(t?"vertical":"horizontal")).child(this.contentEl=re("div","")).on("mousemove.stop",function(){}).on("scroll.stop",function(e){var t=e.target,n=t.scrollTop,i=t.scrollLeft;r.moveFn&&r.moveFn(r.vertical?n:i,e)})},[{key:"move",value:function(e){return this.el.scroll(e),this}},{key:"scroll",value:function(){return this.el.scroll()}},{key:"set",value:function(e,t){var r=e-1;if(t>r){var n=this.vertical?"height":"width";this.el.css(n,"".concat(r-15,"px")).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(n,"".concat(t,"px"))}else this.el.hide();return this}}])}();K(),Q();var nt=10,it=/* @__PURE__ */function(){return J(function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Y(this,e),this.useHideInput=r,this.autoFocus=n,this.inputChange=function(){},this.cornerEl=re("div","".concat(et,"-selector-corner")),this.areaEl=re("div","".concat(et,"-selector-area")).child(this.cornerEl).hide(),this.clipboardEl=re("div","".concat(et,"-selector-clipboard")).hide(),this.autofillEl=re("div","".concat(et,"-selector-autofill")).hide(),this.el=re("div","".concat(et,"-selector")).css("z-index","".concat(nt)).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),r&&(this.hideInput=re("input","").on("compositionend",function(e){t.inputChange(e.target.value)}),this.el.child(this.hideInputDiv=re("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=re("div","hide-input").child(this.hideInput))),nt+=1},[{key:"setOffset",value:function(e){return this.el.offset(e).show(),this}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"setAreaOffset",value:function(e){var t=e.left,r=e.top,n={width:e.width-3+.8,height:e.height-3+.8,left:t-.8,top:r-.8};this.areaEl.offset(n).show(),this.useHideInput&&(this.hideInputDiv.offset(n),this.autoFocus?this.hideInput.val("").focus():this.hideInput.val(""))}},{key:"setClipboardOffset",value:function(e){var t=e.left,r=e.top,n=e.width,i=e.height;this.clipboardEl.offset({left:t,top:r,width:n-5,height:i-5})}},{key:"showAutofill",value:function(e){var t=e.left,r=e.top,n=e.width,i=e.height;this.autofillEl.offset({width:n-3,height:i-3,left:t,top:r}).show()}},{key:"hideAutofill",value:function(){this.autofillEl.hide()}},{key:"showClipboard",value:function(){this.clipboardEl.show()}},{key:"hideClipboard",value:function(){this.clipboardEl.hide()}}])}();function at(e){var t=this.data,r=e.left,n=e.top,i=e.width,a=e.height,s=e.scroll,o=e.l,l=e.t,c=t.freezeTotalWidth(),u=t.freezeTotalHeight(),f=r-c;c>o&&(f-=s.x);var h=n-u;return u>l&&(h-=s.y),{left:f,top:h,width:i,height:a}}function st(e){var t=this.data,r=e.left,n=e.width,i=e.height,a=e.l,s=e.t,o=e.scroll,l=t.freezeTotalWidth(),c=r-l;return l>a&&(c-=o.x),{left:c,top:s,width:n,height:i}}function ot(e){var t=this.data,r=e.top,n=e.width,i=e.height,a=e.l,s=e.t,o=e.scroll,l=t.freezeTotalHeight(),c=r-l;return l>s&&(c-=o.y),{left:a,top:c,width:n,height:i}}function lt(e){this.br.setAreaOffset(at.call(this,e))}function ct(e){this.tl.setAreaOffset(e)}function ut(e){this.t.setAreaOffset(st.call(this,e))}function ft(e){this.l.setAreaOffset(ot.call(this,e))}function ht(e){this.l.setClipboardOffset(ot.call(this,e))}function dt(e){this.br.setClipboardOffset(at.call(this,e))}function pt(e){this.tl.setClipboardOffset(e)}function mt(e){this.t.setClipboardOffset(st.call(this,e))}function vt(e){lt.call(this,e),ct.call(this,e),ut.call(this,e),ft.call(this,e)}function gt(e){dt.call(this,e),pt.call(this,e),mt.call(this,e),ht.call(this,e)}var bt=/* @__PURE__ */function(){return J(function e(t){var r=this;Y(this,e);var n=t.settings.autoFocus;this.inputChange=function(){},this.data=t,this.br=new it(!0,n),this.t=new it,this.l=new it,this.tl=new it,this.br.inputChange=function(e){r.inputChange(e)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=re("div","".concat(et,"-selectors")).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,nt+=1},[{key:"resetData",value:function(e){this.data=e,this.range=e.selector.range,this.resetAreaOffset()}},{key:"hide",value:function(){this.el.hide()}},{key:"resetOffset",value:function(){var e=this.data,t=this.tl,r=this.t,n=this.l,i=this.br,a=e.freezeTotalHeight(),s=e.freezeTotalWidth();a>0||s>0?(t.setOffset({width:s,height:a}),r.setOffset({left:s,height:a}),n.setOffset({top:a,width:s}),i.setOffset({left:s,top:a})):(t.hide(),r.hide(),n.hide(),i.setOffset({left:0,top:0}))}},{key:"resetAreaOffset",value:function(){var e=this.data.getSelectedRect(),t=this.data.getClipboardRect();vt.call(this,e),gt.call(this,t),this.resetOffset()}},{key:"resetBRTAreaOffset",value:function(){var e=this.data.getSelectedRect(),t=this.data.getClipboardRect();lt.call(this,e),ut.call(this,e),dt.call(this,t),mt.call(this,t),this.resetOffset()}},{key:"resetBRLAreaOffset",value:function(){var e=this.data.getSelectedRect(),t=this.data.getClipboardRect();lt.call(this,e),ft.call(this,e),dt.call(this,t),ht.call(this,t),this.resetOffset()}},{key:"set",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.data,i=n.calSelectedRangeByStart(e,t),a=i.sri,s=i.sci;if(r){var o=e,l=t;e<0&&(o=0),t<0&&(l=0),n.selector.setIndexes(o,l),this.indexes=[o,l]}this.moveIndexes=[a,s],this.range=i,this.resetAreaOffset(),this.el.show()}},{key:"setEnd",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.data,i=this.lastri,a=this.lastci;if(r){if(e===i&&t===a)return;this.lastri=e,this.lastci=t}this.range=n.calSelectedRangeByEnd(e,t),vt.call(this,this.data.getSelectedRect())}},{key:"reset",value:function(){var e=this.data.selector.range,t=e.eri,r=e.eci;this.setEnd(t,r)}},{key:"showAutofill",value:function(e,t){if(-1!==e||-1!==t){var r=this.range,n=r.sri,i=r.sci,a=r.eri,s=r.eci,o=e,l=t,c=n-e,u=a-e,f=s-t;if(i-t>0)this.arange=new ce(n,l,a,i-1);else if(c>0)this.arange=new ce(o,i,n-1,s);else if(f<0)this.arange=new ce(n,s+1,a,l);else{if(!(u<0))return void(this.arange=null);this.arange=new ce(a+1,i,o,s)}if(null!==this.arange){var h=this.data.getRect(this.arange);h.width+=2,h.height+=2;var d=this.br,p=this.l,m=this.t,v=this.tl;d.showAutofill(at.call(this,h)),p.showAutofill(ot.call(this,h)),m.showAutofill(st.call(this,h)),v.showAutofill(h)}}}},{key:"hideAutofill",value:function(){var e=this;["br","l","t","tl"].forEach(function(t){e[t].hideAutofill()})}},{key:"showClipboard",value:function(){var e=this,t=this.data.getClipboardRect();gt.call(this,t),["br","l","t","tl"].forEach(function(t){e[t].showClipboard()})}},{key:"hideClipboard",value:function(){var e=this;["br","l","t","tl"].forEach(function(t){e[t].hideClipboard()})}}])}();function yt(e){e.preventDefault(),e.stopPropagation();var t=this.filterItems;t.length<=0||(this.itemIndex>=0&&t[this.itemIndex].toggle(),this.itemIndex-=1,this.itemIndex<0&&(this.itemIndex=t.length-1),t[this.itemIndex].toggle())}function wt(e){e.stopPropagation();var t=this.filterItems;t.length<=0||(this.itemIndex>=0&&t[this.itemIndex].toggle(),this.itemIndex+=1,this.itemIndex>t.length-1&&(this.itemIndex=0),t[this.itemIndex].toggle())}function _t(e){e.preventDefault();var t=this.filterItems;t.length<=0||(e.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),t[this.itemIndex].el.click(),this.hide())}function kt(e){var t=e.keyCode;switch(e.ctrlKey&&e.stopPropagation(),t){case 37:case 39:default:e.stopPropagation();break;case 38:yt.call(this,e);break;case 40:wt.call(this,e);break;case 13:case 9:_t.call(this,e)}}N(),K(),Q();var xt=/* @__PURE__ */function(){return J(function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"200px";Y(this,e),this.filterItems=[],this.items=t,this.el=re("div","".concat(et,"-suggest")).css("width",n).hide(),this.itemClick=r,this.itemIndex=-1},[{key:"setOffset",value:function(e){this.el.cssRemoveKeys("top","bottom").offset(e)}},{key:"hide",value:function(){var e=this.el;this.filterItems=[],this.itemIndex=-1,e.hide(),Ke(this.el.parent())}},{key:"setItems",value:function(e){this.items=e}},{key:"search",value:function(e){var t,r=this,n=this.items;if(/^\s*$/.test(e)||(n=n.filter(function(t){return(t.key||t).startsWith(e.toUpperCase())})),n=n.map(function(e){var t=e.title;t?"function"==typeof t&&(t=t()):t=e;var n=re("div","".concat(et,"-item")).child(t).on("click.stop",function(){r.itemClick(e),r.hide()});return e.label&&n.child(re("div","label").html(e.label)),n}),this.filterItems=n,!(n.length<=0)){var i=this.el;(t=i.html("")).children.apply(t,I(n)).show(),Ze(i.parent(),function(){r.hide()})}}},{key:"bindInputEvents",value:function(e){var t=this;e.on("keydown",function(e){return kt.call(t,e)})}}])}();var St=w(()=>{});function Tt(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}var Et=w(()=>{D(),St()});function Ct(e){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ct(e)}var At=w(()=>{});function Mt(e,t){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mt(e,t)}var Ot=w(()=>{});function Rt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mt(e,t)}var It=w(()=>{Ot()});function Nt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Nt=function(){return!!e})()}K(),Q(),Et(),At(),It();var Pt=/* @__PURE__ */function(){function e(t){var r;return Y(this,e),r=function(e,t,r){return t=Ct(t),Tt(e,Nt()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["div","".concat(et,"-icon")]),r.iconNameEl=re("div","".concat(et,"-icon-img ").concat(t)),r.child(r.iconNameEl),r}return Rt(e,te),J(e,[{key:"setName",value:function(e){this.iconNameEl.className("".concat(et,"-icon-img ").concat(e))}}])}();function Dt(e,t){e.setMonth(e.getMonth()+t)}function Ft(e,t){var r=new Date(e);return r.setDate(t-e.getDay()+1),r}N(),K(),Q();var jt=/* @__PURE__ */function(){return J(function e(t){var r,n=this;Y(this,e),this.value=t,this.cvalue=new Date(t),this.headerLeftEl=re("div","calendar-header-left"),this.bodyEl=re("tbody",""),this.buildAll(),this.el=re("div","x-spreadsheet-calendar").children(re("div","calendar-header").children(this.headerLeftEl,re("div","calendar-header-right").children(re("a","calendar-prev").on("click.stop",function(){return n.prev()}).child(new Pt("chevron-left")),re("a","calendar-next").on("click.stop",function(){return n.next()}).child(new Pt("chevron-right")))),re("table","calendar-body").children(re("thead","").child((r=re("tr","")).children.apply(r,I(Me("calendar.weeks").map(function(e){return re("th","cell").child(e)})))),this.bodyEl)),this.selectChange=function(){}},[{key:"setValue",value:function(e){this.value=e,this.cvalue=new Date(e),this.buildAll()}},{key:"prev",value:function(){Dt(this.value,-1),this.buildAll()}},{key:"next",value:function(){Dt(this.value,1),this.buildAll()}},{key:"buildAll",value:function(){this.buildHeaderLeft(),this.buildBody()}},{key:"buildHeaderLeft",value:function(){var e=this.value;this.headerLeftEl.html("".concat(Me("calendar.months")[e.getMonth()]," ").concat(e.getFullYear()))}},{key:"buildBody",value:function(){var e,t=this,r=this.value,n=this.cvalue,i=this.bodyEl,a=function(e,t,r){for(var n=new Date(e,t,1,23,59,59),i=[[],[],[],[],[],[]],a=0;a<6;a+=1)for(var s=0;s<7;s+=1){var o=Ft(n,7*a+s),l=o.getMonth()!==t,c=o.getMonth()===r.getMonth()&&o.getDate()===r.getDate();i[a][s]={d:o,disabled:l,active:c}}return i}(r.getFullYear(),r.getMonth(),n).map(function(e){var r,n=e.map(function(e){var r="cell";return e.disabled&&(r+=" disabled"),e.active&&(r+=" active"),re("td","").child(re("div",r).on("click.stop",function(){t.selectChange(e.d)}).child(e.d.getDate().toString()))});return(r=re("tr","")).children.apply(r,I(n))});(e=i.html("")).children.apply(e,I(a))}}])}();K(),Q();var Lt=/* @__PURE__ */function(){return J(function e(){Y(this,e),this.calendar=new jt(/* @__PURE__ */new Date),this.el=re("div","".concat(et,"-datepicker")).child(this.calendar.el).hide()},[{key:"setValue",value:function(e){var t=this.calendar;return"string"==typeof e?/^\d{4}-\d{1,2}-\d{1,2}$/.test(e)&&t.setValue(new Date(e.replace(/* @__PURE__ */new RegExp("-","g"),"/"))):e instanceof Date&&t.setValue(e),this}},{key:"change",value:function(e){var t=this;this.calendar.selectChange=function(r){e(r),t.hide()}}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}])}();function Bt(){var e=this.inputText;if(!/^\s*$/.test(e)){var t=this.textlineEl,r=this.textEl,n=this.areaOffset,i=e.split("\n"),a=Math.max.apply(Math,I(i.map(function(e){return e.length}))),s=t.offset().width/e.length,o=(a+1)*s+5,l=this.viewFn().width-n.left-s,c=i.length;if(o>n.width){var u=o;o>l&&(u=l,c+=parseInt(o/l,10),c+=o%l>0?1:0),r.css("width","".concat(u,"px"))}(c*=this.rowHeight)>n.height&&r.css("height","".concat(c,"px"))}}function zt(e,t){var r=e.target,n=r.value,i=r.selectionEnd,a="".concat(n.slice(0,i)).concat(t).concat(n.slice(i));r.value=a,r.setSelectionRange(i+1,i+1),this.inputText=a,this.textlineEl.html(a),Bt.call(this)}function Ut(e){var t=e.keyCode,r=e.altKey;13!==t&&9!==t&&e.stopPropagation(),13===t&&r&&(zt.call(this,e,"\n"),e.stopPropagation()),13!==t||r||e.preventDefault()}function Ht(e){var t=e.target.value,r=this.suggest,n=this.textlineEl,i=this.validator,a=this.cell;if(null!==a)if("editable"in a&&!0===a.editable||void 0===a.editable){if(this.inputText=t,i)"list"===i.type?r.search(t):r.hide();else{var s=t.lastIndexOf("=");-1!==s?r.search(t.substring(s+1)):r.hide()}n.html(t),Bt.call(this),this.change("input",t)}else e.target.value=a.text||"";else{if(this.inputText=t,i)"list"===i.type?r.search(t):r.hide();else{var o=t.lastIndexOf("=");-1!==o?r.search(t.substring(o+1)):r.hide()}n.html(t),Bt.call(this),this.change("input",t)}}function Wt(e){var t=this.textEl.el;setTimeout(function(){t.focus(),t.setSelectionRange(e,e)},0)}function Vt(e,t){var r=this.textEl,n=this.textlineEl;r.el.blur(),r.val(e),n.html(e),Wt.call(this,t)}function $t(e){var t=this.inputText,r=this.validator,n=0;if(r&&"list"===r.type)this.inputText=e,n=this.inputText.length;else{var i=t.lastIndexOf("="),a=t.substring(0,i+1),s=t.substring(i+1);s=-1!==s.indexOf(")")?s.substring(s.indexOf(")")):"",this.inputText="".concat(a+e.key,"("),n=this.inputText.length,this.inputText+=")".concat(s)}Vt.call(this,this.inputText,n)}function qt(){this.suggest.setItems(this.formulas)}K(),Q(),N();var Xt=/* @__PURE__ */function(){return J(function e(t,r,n){var i=this;Y(this,e),this.viewFn=r,this.rowHeight=n,this.formulas=t,this.suggest=new xt(t,function(e){$t.call(i,e)}),this.datepicker=new Lt,this.datepicker.change(function(e){i.setText(function(e){var t=e.getMonth()+1,r=e.getDate();return t<10&&(t="0".concat(t)),r<10&&(r="0".concat(r)),"".concat(e.getFullYear(),"-").concat(t,"-").concat(r)}(e)),i.clear()}),this.areaEl=re("div","".concat(et,"-editor-area")).children(this.textEl=re("textarea","").on("input",function(e){return Ht.call(i,e)}).on("paste.stop",function(){}).on("keydown",function(e){return Ut.call(i,e)}),this.textlineEl=re("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",function(){}).on("mousedown.stop",function(){}),this.el=re("div","".concat(et,"-editor")).child(this.areaEl).hide(),this.suggest.bindInputEvents(this.textEl),this.areaOffset=null,this.freeze={w:0,h:0},this.cell=null,this.inputText="",this.change=function(){}},[{key:"setFreezeLengths",value:function(e,t){this.freeze.w=e,this.freeze.h=t}},{key:"clear",value:function(){""!==this.inputText&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),qt.call(this),this.datepicker.hide()}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r=this.textEl,n=this.areaEl,i=this.suggest,a=this.freeze,s=this.el;if(e){this.areaOffset=e;var o=e.left,l=e.top,c=e.width,u=e.height,f=e.l,h=e.t,d={left:0,top:0};a.w>f&&a.h>h||(a.w<f&&a.h<h?(d.left=a.w,d.top=a.h):a.w>f?d.top=a.h:a.h>h&&(d.left=a.w)),s.offset(d),n.offset({left:o-d.left-.8,top:l-d.top-.8}),r.offset({width:c-9+.8,height:u-3+.8});var p={left:0};p[t]=u,i.setOffset(p),i.hide()}}},{key:"setCell",value:function(e,t){if(!e||!1!==e.editable){var r=this.el,n=this.datepicker,i=this.suggest;r.show(),this.cell=e;var a=e&&e.text||"";if(this.setText(a),this.validator=t,t){var s=t.type;"date"===s&&(n.show(),/^\s*$/.test(a)||n.setValue(a)),"list"===s&&(i.setItems(t.values()),i.search(""))}}}},{key:"setText",value:function(e){this.inputText=e,Vt.call(this,e,e.length),Bt.call(this)}}])}();function Gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gt=function(){return!!e})()}Q(),K(),Et(),At(),It();var Yt=/* @__PURE__ */function(){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Y(this,e),r=function(e,t,r){return t=Ct(t),Tt(e,Gt()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["div","".concat(et,"-button ").concat(n)]),r.child(Me("button.".concat(t))),r}return Rt(e,te),J(e)}();function Kt(){return window.devicePixelRatio||1}function Zt(){return Kt()-.5}function Jt(e){return parseInt(e*Kt(),10)}function Qt(e){var t=Jt(e);return t>0?t-.5:.5}N(),G(),K(),Q();var er=/* @__PURE__ */function(){return J(function e(t,r,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;Y(this,e),this.x=t,this.y=r,this.width=n,this.height=i,this.padding=a,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null},[{key:"setBorders",value:function(e){var t=e.top,r=e.bottom,n=e.left,i=e.right;t&&(this.borderTop=t),i&&(this.borderRight=i),r&&(this.borderBottom=r),n&&(this.borderLeft=n)}},{key:"innerWidth",value:function(){return this.width-2*this.padding-2}},{key:"innerHeight",value:function(){return this.height-2*this.padding-2}},{key:"textx",value:function(e){var t=this.width,r=this.padding,n=this.x;return"left"===e?n+=r:"center"===e?n+=t/2:"right"===e&&(n+=t-r),n}},{key:"texty",value:function(e,t){var r=this.height,n=this.padding,i=this.y;return"top"===e?i+=n:"middle"===e?i+=r/2-t/2:"bottom"===e&&(i+=r-n-t),i}},{key:"topxys",value:function(){var e=this.x,t=this.y;return[[e,t],[e+this.width,t]]}},{key:"rightxys",value:function(){var e=this.x,t=this.y,r=this.width;return[[e+r,t],[e+r,t+this.height]]}},{key:"bottomxys",value:function(){var e=this.x,t=this.y,r=this.width,n=this.height;return[[e,t+n],[e+r,t+n]]}},{key:"leftxys",value:function(){var e=this.x,t=this.y;return[[e,t],[e,t+this.height]]}}])}();function tr(e,t,r,n,i,a,s){var o={x:0,y:0};"underline"===e?o.y="bottom"===i?0:"top"===i?-(a+2):-a/2:"strike"===e&&("bottom"===i?o.y=a/2:"top"===i&&(o.y=-(a/2+2))),"center"===n?o.x=s/2:"right"===n&&(o.x=s),this.line([t-o.x,r-o.y],[t-o.x+s,r-o.y])}var rr=/* @__PURE__ */function(){return J(function e(t,r,n){Y(this,e),this.el=t,this.ctx=t.getContext("2d"),this.resize(r,n),this.ctx.scale(Kt(),Kt())},[{key:"resize",value:function(e,t){this.el.style.width="".concat(e,"px"),this.el.style.height="".concat(t,"px"),this.el.width=Jt(e),this.el.height=Jt(t)}},{key:"clear",value:function(){var e=this.el,t=e.width,r=e.height;return this.ctx.clearRect(0,0,t,r),this}},{key:"attr",value:function(e){return Object.assign(this.ctx,e),this}},{key:"save",value:function(){return this.ctx.save(),this.ctx.beginPath(),this}},{key:"restore",value:function(){return this.ctx.restore(),this}},{key:"beginPath",value:function(){return this.ctx.beginPath(),this}},{key:"translate",value:function(e,t){return this.ctx.translate(Jt(e),Jt(t)),this}},{key:"scale",value:function(e,t){return this.ctx.scale(e,t),this}},{key:"clearRect",value:function(e,t,r,n){return this.ctx.clearRect(e,t,r,n),this}},{key:"fillRect",value:function(e,t,r,n){return this.ctx.fillRect(Jt(e)-.5,Jt(t)-.5,Jt(r),Jt(n)),this}},{key:"fillText",value:function(e,t,r){return this.ctx.fillText(e,Jt(t),Jt(r)),this}},{key:"text",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this.ctx,s=n.align,o=n.valign,l=n.font,c=n.color,u=n.strike,f=n.underline,h=t.textx(s);a.save(),a.beginPath(),this.attr({textAlign:s,textBaseline:o,font:"".concat(l.italic?"italic":""," ").concat(l.bold?"bold":""," ").concat(Jt(l.size),"px ").concat(l.name),fillStyle:c,strokeStyle:c});var d="".concat(e).split("\n"),p=t.innerWidth(),m=[];d.forEach(function(e){var t=a.measureText(e).width;if(i&&t>Jt(p)){for(var r={w:0,len:0,start:0},n=0;n<e.length;n+=1)r.w>=Jt(p)&&(m.push(e.substr(r.start,r.len)),r={w:0,len:0,start:n}),r.len+=1,r.w+=a.measureText(e[n]).width+1;r.len>0&&m.push(e.substr(r.start,r.len))}else m.push(e)});var v=(m.length-1)*(l.size+2),g=t.texty(o,v);return m.forEach(function(e){var t=a.measureText(e).width;r.fillText(e,h,g),u&&tr.call(r,"strike",h,g,s,o,l.size,t),f&&tr.call(r,"underline",h,g,s,o,l.size,t),g+=l.size+2}),a.restore(),this}},{key:"border",value:function(e,t){var r=this.ctx;return r.lineWidth=Zt,r.strokeStyle=t,"medium"===e?r.lineWidth=Jt(2)-.5:"thick"===e?r.lineWidth=Jt(3):"dashed"===e?r.setLineDash([Jt(3),Jt(2)]):"dotted"===e?r.setLineDash([Jt(1),Jt(1)]):"double"===e&&r.setLineDash([Jt(2),0]),this}},{key:"line",value:function(){var e=this.ctx;if(arguments.length>1){e.beginPath();var t=X(arguments.length<=0?void 0:arguments[0],2),r=t[0],n=t[1];e.moveTo(Qt(r),Qt(n));for(var i=1;i<arguments.length;i+=1){var a=X(i<0||arguments.length<=i?void 0:arguments[i],2),s=a[0],o=a[1];e.lineTo(Qt(s),Qt(o))}e.stroke()}return this}},{key:"strokeBorders",value:function(e){var t=this.ctx;t.save();var r=e.borderTop,n=e.borderRight,i=e.borderBottom,a=e.borderLeft;r&&(this.border.apply(this,I(r)),this.line.apply(this,I(e.topxys()))),n&&(this.border.apply(this,I(n)),this.line.apply(this,I(e.rightxys()))),i&&(this.border.apply(this,I(i)),this.line.apply(this,I(e.bottomxys()))),a&&(this.border.apply(this,I(a)),this.line.apply(this,I(e.leftxys()))),t.restore()}},{key:"dropdown",value:function(e){var t=this.ctx,r=e.x,n=e.y,i=r+e.width-15,a=n+e.height-15;t.save(),t.beginPath(),t.moveTo(Jt(i),Jt(a)),t.lineTo(Jt(i+8),Jt(a)),t.lineTo(Jt(i+4),Jt(a+6)),t.closePath(),t.fillStyle="rgba(0, 0, 0, .45)",t.fill(),t.restore()}},{key:"error",value:function(e){var t=this.ctx,r=e.x,n=e.y,i=r+e.width-1;t.save(),t.beginPath(),t.moveTo(Jt(i-8),Jt(n-1)),t.lineTo(Jt(i),Jt(n-1)),t.lineTo(Jt(i),Jt(n+8)),t.closePath(),t.fillStyle="rgba(255, 0, 0, .65)",t.fill(),t.restore()}},{key:"frozen",value:function(e){var t=this.ctx,r=e.x,n=e.y,i=r+e.width-1;t.save(),t.beginPath(),t.moveTo(Jt(i-8),Jt(n-1)),t.lineTo(Jt(i),Jt(n-1)),t.lineTo(Jt(i),Jt(n+8)),t.closePath(),t.fillStyle="rgba(0, 255, 0, .85)",t.fill(),t.restore()}},{key:"rect",value:function(e,t){var r=this.ctx,n=e.x,i=e.y,a=e.width,s=e.height,o=e.bgcolor;r.save(),r.beginPath(),r.fillStyle=o||"#fff",r.rect(Qt(n+1),Qt(i+1),Jt(a-2),Jt(s-2)),r.clip(),r.fill(),t(),r.restore()}}])}(),nr=[{key:"Arial",title:"Arial"},{key:"Helvetica",title:"Helvetica"},{key:"Source Sans Pro",title:"Source Sans Pro"},{key:"Comic Sans MS",title:"Comic Sans MS"},{key:"Courier New",title:"Courier New"},{key:"Verdana",title:"Verdana"},{key:"Lato",title:"Lato"}],ir=[{pt:7.5,px:10},{pt:8,px:11},{pt:9,px:12},{pt:10,px:13},{pt:10.5,px:14},{pt:11,px:15},{pt:12,px:16},{pt:14,px:18.7},{pt:15,px:20},{pt:16,px:21.3},{pt:18,px:24},{pt:22,px:29.3},{pt:24,px:32},{pt:26,px:34.7},{pt:36,px:48},{pt:42,px:56}];G();var ar=function(e,t){var r=X(e,1)[0],n=e;if('"'===r)return e.substring(1);var i=1;if("-"===r&&(n=e.substring(1),i=-1),n[0]>="0"&&n[0]<="9")return i*Number(n);var a=X(se(n),2);return i*t(a[0],a[1])},sr=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if("="===e[0]){var i=function(e){for(var t=[],r=[],n=[],i=0,a="",s=1,o="",l=0;l<e.length;l+=1){var c=e.charAt(l);if(" "!==c){if(c>="a"&&c<="z")n.push(c.toUpperCase());else if(c>="0"&&c<="9"||c>="A"&&c<="Z"||"."===c)n.push(c);else if('"'===c){for(l+=1;'"'!==e.charAt(l);)n.push(e.charAt(l)),l+=1;r.push('"'.concat(n.join(""))),n=[]}else if("-"===c&&/[+\-*/,(]/.test(o))n.push(c);else{if("("!==c&&n.length>0&&r.push(n.join("")),")"===c){var u=t.pop();if(2===i)try{for(var f=X(se(r.pop()),2),h=f[0],d=f[1],p=X(se(r.pop()),2),m=p[0],v=p[1],g=0,b=m;b<=h;b+=1)for(var y=v;y<=d;y+=1)r.push(oe(b,y)),g+=1;r.push([u,g])}catch(x){}else if(1===i||3===i)3===i&&r.push(a),r.push([u,s]),s=1;else for(;"("!==u&&(r.push(u),!(t.length<=0));)u=t.pop();i=0}else if("="===c||">"===c||"<"===c){var w=e.charAt(l+1);a=c,"="!==w&&"-"!==w||(a+=w,l+=1),i=3}else if(":"===c)i=2;else if(","===c)3===i&&r.push(a),i=1,s+=1;else if("("===c&&n.length>0)t.push(n.join(""));else{if(t.length>0&&("+"===c||"-"===c)){var _=t[t.length-1];if("("!==_&&r.push(t.pop()),"*"===_||"/"===_)for(;t.length>0&&"("!==(_=t[t.length-1]);)r.push(t.pop())}else if(t.length>0){var k=t[t.length-1];"*"!==k&&"/"!==k||r.push(t.pop())}t.push(c)}n=[]}o=c}}for(n.length>0&&r.push(n.join(""));t.length>0;)r.push(t.pop());return r}(e.substring(1));return i.length<=0?e:function(e,t,r,n){for(var i=[],a=0;a<e.length;a+=1){var s=e[a],o=s[0];if("+"===s){var l=i.pop();i.push(we("+",i.pop(),l))}else if("-"===s)if(1===i.length){var c=i.pop();i.push(we("*",c,-1))}else{var u=i.pop();i.push(we("-",i.pop(),u))}else if("*"===s)i.push(we("*",i.pop(),i.pop()));else if("/"===s){var f=i.pop();i.push(we("/",i.pop(),f))}else if("="===o||">"===o||"<"===o){var h=i.pop();Number.isNaN(h)||(h=Number(h));var d=i.pop();Number.isNaN(d)||(d=Number(d));var p=!1;"="===o?p=d===h:">"===s?p=d>h:">="===s?p=d>=h:"<"===s?p=d<h:"<="===s&&(p=d<=h),i.push(p)}else if(Array.isArray(s)){for(var m=X(s,2),v=m[0],g=m[1],b=[],y=0;y<g;y+=1)b.push(i.pop());i.push(t[v].render(b.reverse()))}else{if(n.includes(s))return 0;(o>="a"&&o<="z"||o>="A"&&o<="Z")&&n.push(s),i.push(ar(s,r)),n.pop()}}return i[0]}(i,t,function(e,i){return sr(r(e,i),t,r,n)},n)}return e},or={render:sr};G(),N();var lr=[{key:"SUM",title:Oe("formula.sum"),render:function(e){return e.reduce(function(e,t){return we("+",e,t)},0)}},{key:"AVERAGE",title:Oe("formula.average"),render:function(e){return e.reduce(function(e,t){return Number(e)+Number(t)},0)/e.length}},{key:"MAX",title:Oe("formula.max"),render:function(e){return Math.max.apply(Math,I(e.map(function(e){return Number(e)})))}},{key:"MIN",title:Oe("formula.min"),render:function(e){return Math.min.apply(Math,I(e.map(function(e){return Number(e)})))}},{key:"IF",title:Oe("formula._if"),render:function(e){var t=X(e,3),r=t[0],n=t[1],i=t[2];return r?n:i}},{key:"AND",title:Oe("formula.and"),render:function(e){return e.every(function(e){return e})}},{key:"OR",title:Oe("formula.or"),render:function(e){return e.some(function(e){return e})}},{key:"CONCAT",title:Oe("formula.concat"),render:function(e){return e.join("")}}],cr=lr,ur={};lr.forEach(function(e){ur[e.key]=e}),N();var fr=function(e){return e},hr=function(e){if(/^(-?\d*.?\d*)$/.test(e)){var t=ee(Number(e).toFixed(2).toString().split("\\.")),r=t[0],n=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(t).slice(1);return[r.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")].concat(I(n))}return e},dr=[{key:"normal",title:Oe("format.normal"),type:"string",render:fr},{key:"text",title:Oe("format.text"),type:"string",render:fr},{key:"number",title:Oe("format.number"),type:"number",label:"1,000.12",render:hr},{key:"percent",title:Oe("format.percent"),type:"number",label:"10.12%",render:function(e){return"".concat(e,"%")}},{key:"rmb",title:Oe("format.rmb"),type:"number",label:"¥10.00",render:function(e){return"¥".concat(hr(e))}},{key:"usd",title:Oe("format.usd"),type:"number",label:"$10.00",render:function(e){return"$".concat(hr(e))}},{key:"eur",title:Oe("format.eur"),type:"number",label:"€10.00",render:function(e){return"€".concat(hr(e))}},{key:"date",title:Oe("format.date"),type:"date",label:"26/09/2008",render:fr},{key:"time",title:Oe("format.time"),type:"date",label:"15:59:00",render:fr},{key:"datetime",title:Oe("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:fr},{key:"duration",title:Oe("format.duration"),type:"date",label:"24:01:00",render:fr}],pr={};dr.forEach(function(e){pr[e.key]=e}),G(),K(),Q();var mr={fillStyle:"#f4f5f8"},vr={fillStyle:"#fff",lineWidth:Zt,strokeStyle:"#e6e6e6"};function gr(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=e.cellRect(t,r),a=i.left,s=i.top,o=i.width,l=i.height;return new er(a,s+n,o,l,5)}function br(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=t.sortedRowMap,s=t.rows,o=t.cols;if(!s.isHide(r)&&!o.isHide(n)){var l=r;a.has(r)&&(l=a.get(r));var c=t.getCell(l,n);if(null!==c){var u=!1;"editable"in c&&!1===c.editable&&(u=!0);var f=t.getCellStyleOrDefault(l,n),h=gr(t,r,n,i);h.bgcolor=f.bgcolor,void 0!==f.border&&(h.setBorders(f.border),e.strokeBorders(h)),e.rect(h,function(){var i="";i=t.settings.evalPaused?c.text||"":or.render(c.text||"",ur,function(e,r){return t.getCellTextOrDefault(r,e)}),f.format&&(i=pr[f.format].render(i));var a=Object.assign({},f.font);a.size=function(e){for(var t=0;t<ir.length;t+=1){var r=ir[t];if(r.pt===e)return r.px}return e}(a.size),e.text(i,h,{align:f.align,valign:f.valign,font:a,color:f.color,strike:f.strike,underline:f.underline},f.textwrap),t.validations.getError(r,n)&&e.error(h),u&&e.frozen(h)})}}}function yr(e){var t=this.data,r=this.draw;if(e){var n=t.autoFilter;if(!n.active())return;var i=n.hrange();e.intersects(i)&&i.each(function(e,n){var i=gr(t,e,n);r.dropdown(i)})}}function wr(e,t,r,n,i){var a=this.draw,s=this.data;a.save(),a.translate(t,r).translate(n,i);var o=s.exceptRowSet,l=s.exceptRowTotalHeight(e.sri,e.eri);a.save(),a.translate(0,-l),e.each(function(e,t){br(a,s,e,t)},function(e){return function(e){var t=o.has(e);if(t){var r=s.rows.getHeight(e);a.translate(0,-r)}return!t}(e)}),a.restore();var c=/* @__PURE__ */new Set;a.save(),a.translate(0,-l),s.eachMergesInView(e,function(e){var t=e.sri,r=e.sci,n=e.eri;if(o.has(t)){if(!c.has(t)){c.add(t);var i=s.rows.sumHeight(t,n+1);a.translate(0,-i)}}else br(a,s,t,r)}),a.restore(),yr.call(this,e),a.restore()}function _r(e,t,r,n){var i=this.draw;i.save(),i.attr({fillStyle:"rgba(75, 137, 255, 0.08)"}).fillRect(e,t,r,n),i.restore()}function kr(e,t,r,n,i,a){var s=this,o=this.draw,l=this.data,c=t.h,u=t.w,f=a+n,h=i+r;o.save(),o.attr(mr),"all"!==e&&"left"!==e||o.fillRect(0,f,r,c),"all"!==e&&"top"!==e||o.fillRect(h,0,u,n);var d=l.selector.range,p=d.sri,m=d.sci,v=d.eri,g=d.eci;o.attr({textAlign:"center",textBaseline:"middle",font:"500 ".concat(Jt(12),"px Source Sans Pro"),fillStyle:"#585757",lineWidth:Zt(),strokeStyle:"#e6e6e6"}),"all"!==e&&"left"!==e||(l.rowEach(t.sri,t.eri,function(e,t,n){var i=f+t,a=e;o.line([0,i],[r,i]),p<=a&&a<v+1&&_r.call(s,0,i,r,n),o.fillText(a+1,r/2,i+n/2),e>0&&l.rows.isHide(e-1)&&(o.save(),o.attr({strokeStyle:"#c6c6c6"}),o.line([5,i+5],[r-5,i+5]),o.restore())}),o.line([0,c+f],[r,c+f]),o.line([r,f],[r,c+f])),"all"!==e&&"top"!==e||(l.colEach(t.sci,t.eci,function(e,t,r){var i=h+t,a=e;o.line([i,0],[i,n]),m<=a&&a<g+1&&_r.call(s,i,0,r,n),o.fillText(ie(a),i+r/2,n/2),e>0&&l.cols.isHide(e-1)&&(o.save(),o.attr({strokeStyle:"#c6c6c6"}),o.line([i+5,5],[i+5,n-5]),o.restore())}),o.line([u+h,0],[u+h,n]),o.line([0,n],[u+h,n])),o.restore()}function xr(e,t){var r=this.draw;r.save(),r.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,e,t),r.restore()}function Sr(e,t,r,n,i){var a=e.sri,s=e.sci,o=e.eri,l=e.eci,c=e.w,u=e.h,f=this.draw,h=this.data,d=h.settings;f.save(),f.attr(vr).translate(t+n,r+i),d.showGrid?(h.rowEach(a,o,function(e,t,r){e!==a&&f.line([0,t],[c,t]),e===o&&f.line([0,t+r],[c,t+r])}),h.colEach(s,l,function(e,t,r){e!==s&&f.line([t,0],[t,u]),e===l&&f.line([t+r,0],[t+r,u])}),f.restore()):f.restore()}function Tr(e,t,r,n){var i=this.draw,a=this.data,s=a.viewWidth()-e,o=a.viewHeight()-t;i.save().translate(e,t).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),i.line([0,n],[s,n]),i.line([r,0],[r,o]),i.restore()}var Er=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.el=t,this.draw=new rr(t,r.viewWidth(),r.viewHeight()),this.data=r},[{key:"resetData",value:function(e){this.data=e,this.render()}},{key:"render",value:function(){var e=this.data,t=e.rows,r=e.cols.indexWidth,n=t.height;this.draw.resize(e.viewWidth(),e.viewHeight()),this.clear();var i=e.viewRange(),a=e.freezeTotalWidth(),s=e.freezeTotalHeight(),o=e.scroll,l=o.x,c=o.y;Sr.call(this,i,r,n,a,s),wr.call(this,i,r,n,-l,-c),kr.call(this,"all",i,r,n,a,s),xr.call(this,r,n);var u=X(e.freeze,2),f=u[0],h=u[1];if(f>0||h>0){if(f>0){var d=i.clone();d.sri=0,d.eri=f-1,d.h=s,Sr.call(this,d,r,n,a,0),wr.call(this,d,r,n,-l,0),kr.call(this,"top",d,r,n,a,0)}if(h>0){var p=i.clone();p.sci=0,p.eci=h-1,p.w=a,Sr.call(this,p,r,n,0,s),kr.call(this,"left",p,r,n,0,s),wr.call(this,p,r,n,0,-c)}var m=e.freezeViewRange();Sr.call(this,m,r,n,0,0),kr.call(this,"all",m,r,n,0,0),wr.call(this,m,r,n,0,0),Tr.call(this,r,n,a,s)}}},{key:"clear",value:function(){this.draw.clear()}}])}();N(),K(),Q();var Cr=[["A3",11.69,16.54],["A4",8.27,11.69],["A5",5.83,8.27],["B4",9.84,13.9],["B5",6.93,9.84]],Ar=["landscape","portrait"];function Mr(e){return parseInt(96*e,10)}function Or(e){"cancel"===e?this.el.hide():this.toPrint()}function Rr(e){var t=this.paper,r=Cr[e.target.value];t.w=Mr(r[1]),t.h=Mr(r[2]),this.preview()}function Ir(e){this.paper.orientation=Ar[e.target.value],this.preview()}var Nr=/* @__PURE__ */function(){return J(function e(t){var r,n;Y(this,e),this.paper={w:Mr(Cr[0][1]),h:Mr(Cr[0][2]),padding:50,orientation:Ar[0],get width(){return"landscape"===this.orientation?this.h:this.w},get height(){return"landscape"===this.orientation?this.w:this.h}},this.data=t,this.el=re("div","".concat(et,"-print")).children(re("div","".concat(et,"-print-bar")).children(re("div","-title").child("Print settings"),re("div","-right").children(re("div","".concat(et,"-buttons")).children(new Yt("cancel").on("click",Or.bind(this,"cancel")),new Yt("next","primary").on("click",Or.bind(this,"next"))))),re("div","".concat(et,"-print-content")).children(this.contentEl=re("div","-content"),re("div","-sider").child(re("form","").children(re("fieldset","").children(re("label","").child("".concat(Me("print.size"))),(r=re("select","")).children.apply(r,I(Cr.map(function(e,t){return re("option","").attr("value",t).child("".concat(e[0]," ( ").concat(e[1],"''x").concat(e[2],"'' )"))}))).on("change",Rr.bind(this))),re("fieldset","").children(re("label","").child("".concat(Me("print.orientation"))),(n=re("select","")).children.apply(n,I(Ar.map(function(e,t){return re("option","").attr("value",t).child("".concat(Me("print.orientations")[t]))}))).on("change",Ir.bind(this))))))).hide()},[{key:"resetData",value:function(e){this.data=e}},{key:"preview",value:function(){var e=this,t=this.data,r=this.paper,n=r.width,i=r.height,a=r.padding,s=n-2*a,o=i-2*a,l=t.contentRange(),c=parseInt(l.h/o,10)+1,u=s/l.w,f=a,h=a;u>1&&(f+=(s-l.w)/2);var d=0,p=0;this.contentEl.html(""),this.canvases=[];for(var m={sri:0,sci:0,eri:0,eci:0},v=function(){var r=0,a=0,s=re("div","".concat(et,"-canvas-card")),c=re("canvas","".concat(et,"-canvas"));e.canvases.push(c.el);var v=new rr(c.el,n,i);for(v.save(),v.translate(f,h),u<1&&v.scale(u,u);d<=l.eri;d+=1){var g=t.rows.getHeight(d);if(!((r+=g)<o)){a=-(r-g);break}for(var b=0;b<=l.eci;b+=1)br(v,t,d,b,p),m.eci=b}m.eri=d,v.restore(),v.save(),v.translate(f,h),u<1&&v.scale(u,u);var y=p;t.eachMergesInView(m,function(e){var r=e.sri,n=e.sci;br(v,t,r,n,y)}),v.restore(),m.sri=m.eri,m.sci=m.eci,p+=a,e.contentEl.child(re("div","".concat(et,"-canvas-card-wraper")).child(s.child(c)))},g=0;g<c;g+=1)v();this.el.show()}},{key:"toPrint",value:function(){this.el.hide();var e=this.paper,t=re("iframe","").hide().el;window.document.body.appendChild(t);var r=t.contentWindow,n=r.document,i=document.createElement("style");i.innerHTML="\n @page { size: ".concat(e.width,"px ").concat(e.height,"px; };\n canvas {\n page-break-before: auto; \n page-break-after: always;\n image-rendering: pixelated;\n };\n "),n.head.appendChild(i),this.canvases.forEach(function(e){var t=e.cloneNode(!1);t.getContext("2d").drawImage(e,0,0),n.body.appendChild(t)}),r.print()}}])}();N(),K(),Q();var Pr=[{key:"copy",title:Oe("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:Oe("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:Oe("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:Oe("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:Oe("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:Oe("contextmenu.insertRow")},{key:"insert-column",title:Oe("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:Oe("contextmenu.deleteRow")},{key:"delete-column",title:Oe("contextmenu.deleteColumn")},{key:"delete-cell-text",title:Oe("contextmenu.deleteCellText")},{key:"hide",title:Oe("contextmenu.hide")},{key:"divider"},{key:"validation",title:Oe("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:Oe("contextmenu.cellprintable")},{key:"cell-non-printable",title:Oe("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:Oe("contextmenu.celleditable")},{key:"cell-non-editable",title:Oe("contextmenu.cellnoneditable")}];function Dr(e){var t=this;return"divider"===e.key?re("div","".concat(et,"-item divider")):re("div","".concat(et,"-item")).on("click",function(){t.itemClick(e.key),t.hide()}).children(e.title(),re("div","label").child(e.label||""))}function Fr(){var e=this;return Pr.map(function(t){return Dr.call(e,t)})}var jr=/* @__PURE__ */function(){return J(function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Y(this,e),this.menuItems=Fr.call(this),this.el=(r=re("div","".concat(et,"-contextmenu"))).children.apply(r,I(this.menuItems)).hide(),this.viewFn=t,this.itemClick=function(){},this.isHide=n,this.setMode("range")},[{key:"setMode",value:function(e){var t=this.menuItems[12];"row-col"===e?t.show():t.hide()}},{key:"hide",value:function(){var e=this.el;e.hide(),Ke(e)}},{key:"setPosition",value:function(e,t){if(!this.isHide){var r=this.el,n=r.show().offset().width,i=this.viewFn(),a=i.height/2,s=e;i.width-e<=n&&(s-=n),r.css("left","".concat(s,"px")),t>a?r.css("bottom","".concat(i.height-t,"px")).css("max-height","".concat(t,"px")).css("top","auto"):r.css("top","".concat(t,"px")).css("max-height","".concat(i.height-t,"px")).css("bottom","auto"),Ze(r)}}}])}();var Lr=w(()=>{At()});function Br(){return Br="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ct(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},Br.apply(null,arguments)}var zr=w(()=>{Lr()});zr(),K(),Q();var Ur=/* @__PURE__ */function(){return J(function e(t,r,n){Y(this,e),this.tip="",t&&(this.tip=Me("toolbar.".concat(t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})))),r&&(this.tip+=" (".concat(r,")")),this.tag=t,this.shortcut=r,this.value=n,this.el=this.element(),this.change=function(){}},[{key:"element",value:function(){var e=this,t=this.tip;return re("div","".concat(et,"-toolbar-btn")).on("mouseenter",function(t){e.tip&&function(e,t){if(!t.classList.contains("active")){var r=t.getBoundingClientRect(),n=r.left,i=r.top,a=r.width,s=r.height,o=re("div","".concat(et,"-tooltip")).html(e).show();document.body.appendChild(o.el);var l=o.box();o.css("left","".concat(n+a/2-l.width/2,"px")).css("top","".concat(i+s+2,"px")),Ge(t,"mouseleave",function(){document.body.contains(o.el)&&document.body.removeChild(o.el)}),Ge(t,"click",function(){document.body.contains(o.el)&&document.body.removeChild(o.el)})}}(e.tip,t.target)}).attr("data-tooltip",t)}},{key:"setState",value:function(){}}])}();function Hr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hr=function(){return!!e})()}K(),Q(),Et(),At(),It();var Wr=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Hr()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,arguments)}return Rt(e,Ur),J(e,[{key:"dropdown",value:function(){}},{key:"getValue",value:function(e){return e}},{key:"element",value:function(){var t=this,r=this.tag;return this.dd=this.dropdown(),this.dd.change=function(e){return t.change(r,t.getValue(e))},function(e,t,r,n){var i=Br(Ct(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}(e,"element",this,3)([]).child(this.dd)}},{key:"setState",value:function(e){e&&(this.value=e,this.dd.setTitle(e))}}])}();function Vr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vr=function(){return!!e})()}K(),Q(),Et(),At(),It();var $r=/* @__PURE__ */function(){function e(t,r,n,i){var a,s;Y(this,e),s=function(e,t,r){return t=Ct(t),Tt(e,Vr()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["div","".concat(et,"-dropdown ").concat(i)]),s.title=t,s.change=function(){},s.headerClick=function(){},"string"==typeof t?s.title=re("div","".concat(et,"-dropdown-title")).child(t):n&&s.title.addClass("arrow-left"),s.contentEl=re("div","".concat(et,"-dropdown-content")).css("width",r).hide();for(var o=arguments.length,l=new Array(o>4?o-4:0),c=4;c<o;c++)l[c-4]=arguments[c];return(a=s).setContentChildren.apply(a,l),s.headerEl=re("div","".concat(et,"-dropdown-header")),s.headerEl.on("click",function(){"block"!==s.contentEl.css("display")?s.show():s.hide()}).children(s.title,n?re("div","".concat(et,"-icon arrow-right")).child(re("div","".concat(et,"-icon-img arrow-down"))):""),s.children(s.headerEl,s.contentEl),s}return Rt(e,te),J(e,[{key:"setContentChildren",value:function(){var e;(this.contentEl.html(""),arguments.length>0)&&(e=this.contentEl).children.apply(e,arguments)}},{key:"setTitle",value:function(e){this.title.html(e),this.hide()}},{key:"show",value:function(){var e=this;this.contentEl.show(),this.parent().active(),Ze(this.parent(),function(){e.hide()})}},{key:"hide",value:function(){this.parent().active(!1),this.contentEl.hide(),Ke(this.parent())}}])}();function qr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qr=function(){return!!e})()}N(),K(),Q(),Et(),At(),It();var Xr=/* @__PURE__ */function(){function e(t,r){var n;Y(this,e);var i=new Pt("align-".concat(r)),a=t.map(function(e){return(t="align-".concat(e),re("div","".concat(et,"-item")).child(new Pt(t))).on("click",function(){n.setTitle(e),n.change(e)});var t});return n=function(e,t,r){return t=Ct(t),Tt(e,qr()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,[i,"auto",!0,"bottom-left"].concat(I(a)))}return Rt(e,$r),J(e,[{key:"setTitle",value:function(e){this.title.setName("align-".concat(e)),this.hide()}}])}();function Gr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gr=function(){return!!e})()}K(),Q(),Et(),At(),It();var Yr=/* @__PURE__ */function(){function e(t){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Gr()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["align","",t])}return Rt(e,Wr),J(e,[{key:"dropdown",value:function(){var e=this.value;return new Xr(["left","center","right"],e)}}])}();function Kr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Kr=function(){return!!e})()}K(),Q(),Et(),At(),It();var Zr=/* @__PURE__ */function(){function e(t){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Kr()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["valign","",t])}return Rt(e,Wr),J(e,[{key:"dropdown",value:function(){var e=this.value;return new Xr(["top","middle","bottom"],e)}}])}();function Jr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jr=function(){return!!e})()}K(),Q(),Et(),At(),zr(),It();var Qr=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Jr()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,arguments)}return Rt(e,Ur),J(e,[{key:"element",value:function(){var t=this,r=this.tag;return function(e,t,r,n){var i=Br(Ct(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}(e,"element",this,3)([]).child(new Pt(r)).on("click",function(){return t.click()})}},{key:"click",value:function(){this.change(this.tag,this.toggle())}},{key:"setState",value:function(e){this.el.active(e)}},{key:"toggle",value:function(){return this.el.toggle()}},{key:"active",value:function(){return this.el.hasClass("active")}}])}();function en(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(en=function(){return!!e})()}K(),Q(),Et(),At(),It();var tn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,en()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["autofilter"])}return Rt(e,Qr),J(e,[{key:"setState",value:function(){}}])}();function rn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rn=function(){return!!e})()}Q(),K(),Et(),At(),It();var nn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,rn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["font-bold","Ctrl+B"])}return Rt(e,Qr),J(e)}();function an(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(an=function(){return!!e})()}Q(),K(),Et(),At(),It();var sn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,an()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["font-italic","Ctrl+I"])}return Rt(e,Qr),J(e)}();function on(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(on=function(){return!!e})()}Q(),K(),Et(),At(),It();var ln=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,on()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["strike","Ctrl+U"])}return Rt(e,Qr),J(e)}();function cn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cn=function(){return!!e})()}Q(),K(),Et(),At(),It();var un=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,cn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["underline","Ctrl+U"])}return Rt(e,Qr),J(e)}();N(),Q(),K();var fn=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],hn=[["#f2f2f2","#7f7f7f","#d0cecf","#d5dce4","#deeaf6","#fce5d5","#ededed","#fff2cd","#d9e2f3","#e3efd9"],["#d8d8d8","#595959","#afabac","#adb8ca","#bdd7ee","#f7ccac","#dbdbdb","#ffe59a","#b3c6e7","#c5e0b3"],["#bfbfbf","#3f3f3f","#756f6f","#8596b0","#9cc2e6","#f4b184","#c9c9c9","#fed964","#8eaada","#a7d08c"],["#a5a5a5","#262626","#3a3839","#333f4f","#2e75b5","#c45a10","#7b7b7b","#bf8e01","#2f5596","#538136"],["#7f7f7f","#0c0c0c","#171516","#222a35","#1f4e7a","#843c0a","#525252","#7e6000","#203864","#365624"]],dn=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function pn(e){var t=this;return re("td","").child(re("div","".concat(et,"-color-palette-cell")).on("click.stop",function(){return t.change(e)}).css("background-color",e))}var mn=/* @__PURE__ */J(function e(){var t,r,n,i=this;Y(this,e),this.el=re("div","".concat(et,"-color-palette")),this.change=function(){};var a=re("table","").children((t=re("tbody","")).children.apply(t,[(r=re("tr","".concat(et,"-theme-color-placeholders"))).children.apply(r,I(fn.map(function(e){return pn.call(i,e)})))].concat(I(hn.map(function(e){var t;return(t=re("tr","".concat(et,"-theme-colors"))).children.apply(t,I(e.map(function(e){return pn.call(i,e)})))})),[(n=re("tr","".concat(et,"-standard-colors"))).children.apply(n,I(dn.map(function(e){return pn.call(i,e)})))])));this.el.child(a)});function vn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vn=function(){return!!e})()}K(),Q(),Et(),At(),It();var gn=/* @__PURE__ */function(){function e(t,r){var n;Y(this,e);var i=new Pt(t).css("height","16px").css("border-bottom","3px solid ".concat(r)),a=new mn;return a.change=function(e){n.setTitle(e),n.change(e)},n=function(e,t,r){return t=Ct(t),Tt(e,vn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,[i,"auto",!1,"bottom-left",a.el])}return Rt(e,$r),J(e,[{key:"setTitle",value:function(e){this.title.css("border-color",e),this.hide()}}])}();function bn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bn=function(){return!!e})()}N(),Q(),K(),Et(),At(),It();var yn=[["thin",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" style="user-select: none;"></line></svg>'],["medium",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="2" style="user-select: none;"><line x1="0" y1="1.0" x2="50" y2="1.0" stroke-width="2" stroke="black" style="user-select: none;"></line></svg>'],["thick",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="3" style="user-select: none;"><line x1="0" y1="1.5" x2="50" y2="1.5" stroke-width="3" stroke="black" style="user-select: none;"></line></svg>'],["dashed",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="2" style="user-select: none;"></line></svg>'],["dotted",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="1" style="user-select: none;"></line></svg>']],wn=/* @__PURE__ */function(){function e(t){var r;Y(this,e);var n=new Pt("line-type"),i=0,a=yn.map(function(e,n){return re("div","".concat(et,"-item state ").concat(t===e[0]?"checked":"")).on("click",function(){a[i].toggle("checked"),a[n].toggle("checked"),i=n,r.hide(),r.change(e)}).child(re("div","".concat(et,"-line-type")).html(e[1]))});return r=function(e,t,r){return t=Ct(t),Tt(e,bn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,[n,"auto",!1,"bottom-left"].concat(I(a)))}return Rt(e,$r),J(e)}();function _n(){var e;return re("table","").child((e=re("tbody","")).children.apply(e,arguments))}function kn(e){var t=this;return re("td","").child(re("div","".concat(et,"-border-palette-cell")).child(new Pt("border-".concat(e))).on("click",function(){t.mode=e;var r=t.mode,n=t.style,i=t.color;t.change({mode:r,style:n,color:i})}))}N(),G(),Q(),K();var xn=/* @__PURE__ */J(function e(){var t,r,n=this;Y(this,e),this.color="#000",this.style="thin",this.mode="all",this.change=function(){},this.ddColor=new gn("line-color",this.color),this.ddColor.change=function(e){n.color=e},this.ddType=new wn(this.style),this.ddType.change=function(e){n.style=X(e,1)[0]},this.el=re("div","".concat(et,"-border-palette"));var i=_n(re("tr","").children(re("td","".concat(et,"-border-palette-left")).child(_n((t=re("tr","")).children.apply(t,I(["all","inside","horizontal","vertical","outside"].map(function(e){return kn.call(n,e)}))),(r=re("tr","")).children.apply(r,I(["left","top","right","bottom","none"].map(function(e){return kn.call(n,e)}))))),re("td","".concat(et,"-border-palette-right")).children(re("div","".concat(et,"-toolbar-btn")).child(this.ddColor.el),re("div","".concat(et,"-toolbar-btn")).child(this.ddType.el))));this.el.child(i)});function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sn=function(){return!!e})()}Q(),K(),Et(),At(),It();var Tn=/* @__PURE__ */function(){function e(){var t;Y(this,e);var r=new Pt("border-all"),n=new xn;return n.change=function(e){t.change(e),t.hide()},t=function(e,t,r){return t=Ct(t),Tt(e,Sn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,[r,"auto",!1,"bottom-left",n.el])}return Rt(e,$r),J(e)}();function En(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(En=function(){return!!e})()}K(),Q(),Et(),At(),It();var Cn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,En()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["border"])}return Rt(e,Wr),J(e,[{key:"dropdown",value:function(){return new Tn}}])}();function An(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(An=function(){return!!e})()}K(),Q(),Et(),At(),zr(),It();var Mn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,An()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,arguments)}return Rt(e,Ur),J(e,[{key:"element",value:function(){var t=this;return function(e,t,r,n){var i=Br(Ct(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}(e,"element",this,3)([]).child(new Pt(this.tag)).on("click",function(){return t.change(t.tag)})}},{key:"setState",value:function(e){this.el.disabled(e)}}])}();function On(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(On=function(){return!!e})()}Q(),K(),Et(),At(),It();var Rn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,On()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["clearformat"])}return Rt(e,Mn),J(e)}();function In(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(In=function(){return!!e})()}K(),Q(),Et(),At(),It();var Nn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,In()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["paintformat"])}return Rt(e,Qr),J(e,[{key:"setState",value:function(){}}])}();function Pn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pn=function(){return!!e})()}K(),Q(),Et(),At(),It();var Dn=/* @__PURE__ */function(){function e(t){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Pn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["color",void 0,t])}return Rt(e,Wr),J(e,[{key:"dropdown",value:function(){var e=this.tag,t=this.value;return new gn(e,t)}}])}();function Fn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fn=function(){return!!e})()}K(),Q(),Et(),At(),It();var jn=/* @__PURE__ */function(){function e(t){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Fn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["bgcolor",void 0,t])}return Rt(e,Wr),J(e,[{key:"dropdown",value:function(){var e=this.tag,t=this.value;return new gn(e,t)}}])}();function Ln(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ln=function(){return!!e})()}N(),Q(),K(),Et(),At(),It();var Bn=/* @__PURE__ */function(){function e(){var t;Y(this,e);var r=ir.map(function(e){return re("div","".concat(et,"-item")).on("click",function(){t.setTitle("".concat(e.pt)),t.change(e)}).child("".concat(e.pt))});return t=function(e,t,r){return t=Ct(t),Tt(e,Ln()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["10","60px",!0,"bottom-left"].concat(I(r)))}return Rt(e,$r),J(e)}();function zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zn=function(){return!!e})()}K(),Q(),Et(),At(),It();var Un=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,zn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["font-size"])}return Rt(e,Wr),J(e,[{key:"getValue",value:function(e){return e.pt}},{key:"dropdown",value:function(){return new Bn}}])}();function Hn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hn=function(){return!!e})()}N(),Q(),K(),Et(),At(),It();var Wn=/* @__PURE__ */function(){function e(){var t;Y(this,e);var r=nr.map(function(e){return re("div","".concat(et,"-item")).on("click",function(){t.setTitle(e.title),t.change(e)}).child(e.title)});return t=function(e,t,r){return t=Ct(t),Tt(e,Hn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,[nr[0].title,"160px",!0,"bottom-left"].concat(I(r)))}return Rt(e,$r),J(e)}();function Vn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vn=function(){return!!e})()}K(),Q(),Et(),At(),It();var $n=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Vn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["font-name"])}return Rt(e,Wr),J(e,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new Wn}}])}();function qn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qn=function(){return!!e})()}N(),K(),Q(),Et(),At(),It();var Xn=/* @__PURE__ */function(){function e(){var t;Y(this,e);var r=dr.slice(0);return r.splice(2,0,{key:"divider"}),r.splice(8,0,{key:"divider"}),r=r.map(function(e){var r=re("div","".concat(et,"-item"));return"divider"===e.key?r.addClass("divider"):(r.child(e.title()).on("click",function(){t.setTitle(e.title()),t.change(e)}),e.label&&r.child(re("div","label").html(e.label))),r}),t=function(e,t,r){return t=Ct(t),Tt(e,qn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["Normal","220px",!0,"bottom-left"].concat(I(r)))}return Rt(e,$r),J(e,[{key:"setTitle",value:function(e){for(var t=0;t<dr.length;t+=1)dr[t].key===e&&this.title.html(dr[t].title());this.hide()}}])}();function Gn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gn=function(){return!!e})()}K(),Q(),Et(),At(),It();var Yn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Gn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["format"])}return Rt(e,Wr),J(e,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new Xn}}])}();function Kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Kn=function(){return!!e})()}N(),Q(),K(),Et(),At(),It();var Zn=/* @__PURE__ */function(){function e(){var t;Y(this,e);var r=lr.map(function(e){return re("div","".concat(et,"-item")).on("click",function(){t.hide(),t.change(e)}).child(e.key)});return t=function(e,t,r){return t=Ct(t),Tt(e,Kn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,[new Pt("formula"),"180px",!0,"bottom-left"].concat(I(r)))}return Rt(e,$r),J(e)}();function Jn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jn=function(){return!!e})()}K(),Q(),Et(),At(),It();var Qn=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,Jn()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["formula"])}return Rt(e,Wr),J(e,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new Zn}}])}();function ei(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ei=function(){return!!e})()}Q(),K(),Et(),At(),It();var ti=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,ei()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["freeze"])}return Rt(e,Qr),J(e)}();function ri(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ri=function(){return!!e})()}K(),Q(),Et(),At(),It();var ni=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,ri()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["merge"])}return Rt(e,Qr),J(e,[{key:"setState",value:function(e,t){this.el.active(e).disabled(t)}}])}();function ii(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ii=function(){return!!e})()}Q(),K(),Et(),At(),It();var ai=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,ii()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["redo","Ctrl+Y"])}return Rt(e,Mn),J(e)}();function si(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(si=function(){return!!e})()}Q(),K(),Et(),At(),It();var oi=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,si()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["undo","Ctrl+Z"])}return Rt(e,Mn),J(e)}();function li(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(li=function(){return!!e})()}Q(),K(),Et(),At(),It();var ci=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,li()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["print","Ctrl+P"])}return Rt(e,Mn),J(e)}();function ui(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ui=function(){return!!e})()}Q(),K(),Et(),At(),It();var fi=/* @__PURE__ */function(){function e(){return Y(this,e),function(e,t,r){return t=Ct(t),Tt(e,ui()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,["textwrap"])}return Rt(e,Qr),J(e)}();function hi(e,t,r){return t=Ct(t),Tt(e,di()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}function di(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(di=function(){return!!e})()}Q(),K(),Et(),At(),It();var pi=/* @__PURE__ */function(){function e(){var t;Y(this,e);var r=new Pt("ellipsis"),n=re("div","".concat(et,"-toolbar-more"));return(t=hi(this,e,[r,"auto",!1,"bottom-right",n])).moreBtns=n,t.contentEl.css("max-width","420px"),t}return Rt(e,$r),J(e)}(),mi=/* @__PURE__ */function(){function e(){var t;return Y(this,e),(t=hi(this,e,["more"])).el.hide(),t}return Rt(e,Wr),J(e,[{key:"dropdown",value:function(){return new pi}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}])}();function vi(){return re("div","".concat(et,"-toolbar-divider"))}function gi(){var e=this;this.btns2=[],this.items.forEach(function(t){if(Array.isArray(t))t.forEach(function(t){var r=t.el,n=r.box(),i=r.computedStyle(),a=i.marginLeft,s=i.marginRight;e.btns2.push([r,n.width+parseInt(a,10)+parseInt(s,10)])});else{var r=t.box(),n=t.computedStyle(),i=n.marginLeft,a=n.marginRight;e.btns2.push([t,r.width+parseInt(i,10)+parseInt(a,10)])}})}function bi(){var e,t,r=this.el,n=this.btns,i=this.moreEl,a=this.btns2,s=i.dd,o=s.moreBtns,l=s.contentEl;r.css("width","".concat(this.widthFn(),"px"));var c=r.box(),u=160,f=12,h=[],d=[];a.forEach(function(e,t){var r=X(e,2),n=r[0],i=r[1];u+=i,t===a.length-1||u<c.width?h.push(n):(f+=i,d.push(n))}),(e=n.html("")).children.apply(e,h),(t=o.html("")).children.apply(t,d),l.css("width","".concat(f,"px")),d.length>0?i.show():i.hide()}function yi(e){var t=this,r=new Ur;r.el.on("click",function(){e.onClick&&e.onClick(t.data.getData(),t.data)}),r.tip=e.tip||"";var n=e.el;if(e.icon&&(n=re("img").attr("src",e.icon)),n){var i=re("div","".concat(et,"-icon"));i.child(n),r.el.child(i)}return r}K(),Q(),G();var wi=/* @__PURE__ */function(){return J(function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Y(this,e),this.data=t,this.change=function(){},this.widthFn=r,this.isHide=i;var a=t.defaultStyle();this.items=[[this.undoEl=new oi,this.redoEl=new ai,new ci,this.paintformatEl=new Nn,this.clearformatEl=new Rn],vi(),[this.formatEl=new Yn],vi(),[this.fontEl=new $n,this.fontSizeEl=new Un],vi(),[this.boldEl=new nn,this.italicEl=new sn,this.underlineEl=new un,this.strikeEl=new ln,this.textColorEl=new Dn(a.color)],vi(),[this.fillColorEl=new jn(a.bgcolor),this.borderEl=new Cn,this.mergeEl=new ni],vi(),[this.alignEl=new Yr(a.align),this.valignEl=new Zr(a.valign),this.textwrapEl=new fi],vi(),[this.freezeEl=new ti,this.autofilterEl=new tn,this.formulaEl=new Qn]];var s=t.settings.extendToolbar,o=void 0===s?{}:s;if(o.left&&o.left.length>0){this.items.unshift(vi());var l=o.left.map(yi.bind(this));this.items.unshift(l)}if(o.right&&o.right.length>0){this.items.push(vi());var c=o.right.map(yi.bind(this));this.items.push(c)}this.items.push([this.moreEl=new mi]),this.el=re("div","".concat(et,"-toolbar")),this.btns=re("div","".concat(et,"-toolbar-btns")),this.items.forEach(function(e){Array.isArray(e)?e.forEach(function(e){n.btns.child(e.el),e.change=function(){n.change.apply(n,arguments)}}):n.btns.child(e.el)}),this.el.child(this.btns),i?this.el.hide():(this.reset(),setTimeout(function(){gi.call(n),bi.call(n)},0),Ge(window,"resize",function(){bi.call(n)}))},[{key:"paintformatActive",value:function(){return this.paintformatEl.active()}},{key:"paintformatToggle",value:function(){this.paintformatEl.toggle()}},{key:"trigger",value:function(e){this["".concat(e,"El")].click()}},{key:"resetData",value:function(e){this.data=e,this.reset()}},{key:"reset",value:function(){if(!this.isHide){var e=this.data,t=e.getSelectedCellStyle();this.undoEl.setState(!e.canUndo()),this.redoEl.setState(!e.canRedo()),this.mergeEl.setState(e.canUnmerge(),!e.selector.multiple()),this.autofilterEl.setState(!e.canAutofilter());var r=t.font,n=t.format;this.formatEl.setState(n),this.fontEl.setState(r.name),this.fontSizeEl.setState(r.size),this.boldEl.setState(r.bold),this.italicEl.setState(r.italic),this.underlineEl.setState(t.underline),this.strikeEl.setState(t.strike),this.textColorEl.setState(t.color),this.fillColorEl.setState(t.bgcolor),this.alignEl.setState(t.align),this.valignEl.setState(t.valign),this.textwrapEl.setState(t.textwrap),this.freezeEl.setState(e.freezeIsActive())}}}])}();N(),K(),Q();var _i=/* @__PURE__ */function(){return J(function e(t,r){var n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"600px";Y(this,e),this.title=t,this.el=re("div","".concat(et,"-modal")).css("width",a).children(re("div","".concat(et,"-modal-header")).children(new Pt("close").on("click.stop",function(){return i.hide()}),this.title),(n=re("div","".concat(et,"-modal-content"))).children.apply(n,I(r))).hide()},[{key:"show",value:function(){var e=this;this.dimmer=re("div","".concat(et,"-dimmer active")),document.body.appendChild(this.dimmer.el);var t=this.el.show().box(),r=t.width,n=t.height,i=document.documentElement,a=i.clientHeight,s=i.clientWidth;this.el.offset({left:(s-r)/2,top:(a-n)/3}),window.xkeydownEsc=function(t){27===t.keyCode&&e.hide()},Ge(window,"keydown",window.xkeydownEsc)}},{key:"hide",value:function(){this.el.hide(),document.body.removeChild(this.dimmer.el),Ye(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}])}();K(),Q();var ki=/* @__PURE__ */function(){return J(function e(t,r){var n=this;Y(this,e),this.vchange=function(){},this.el=re("div","".concat(et,"-form-input")),this.input=re("input","").css("width",t).on("input",function(e){return n.vchange(e)}).attr("placeholder",r),this.el.child(this.input)},[{key:"focus",value:function(){var e=this;setTimeout(function(){e.input.el.focus()},10)}},{key:"hint",value:function(e){this.input.attr("placeholder",e)}},{key:"val",value:function(e){return this.input.val(e)}}])}();K(),Q();var xi=/* @__PURE__ */function(){return J(function e(t,r,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){};Y(this,e),this.key=t,this.getTitle=a,this.vchange=function(){},this.el=re("div","".concat(et,"-form-select")),this.suggest=new xt(r.map(function(e){return{key:e,title:i.getTitle(e)}}),function(e){i.itemClick(e.key),s(e.key),i.vchange(e.key)},n,this.el),this.el.children(this.itemEl=re("div","input-text").html(this.getTitle(t)),this.suggest.el).on("click",function(){return i.show()})},[{key:"show",value:function(){this.suggest.search("")}},{key:"itemClick",value:function(e){this.key=e,this.itemEl.html(this.getTitle(e))}},{key:"val",value:function(e){return void 0!==e?(this.key=e,this.itemEl.html(this.getTitle(e)),this):this.key}}])}();K(),Q();var Si={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/},Ti=/* @__PURE__ */function(){return J(function e(t,r,n,i){var a=this;Y(this,e),this.label="",this.rule=r,n&&(this.label=re("label","label").css("width","".concat(i,"px")).html(n)),this.tip=re("div","tip").child("tip").hide(),this.input=t,this.input.vchange=function(){return a.validate()},this.el=re("div","".concat(et,"-form-field")).children(this.label,t.el,this.tip)},[{key:"isShow",value:function(){return"none"!==this.el.css("display")}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"val",value:function(e){return this.input.val(e)}},{key:"hint",value:function(e){this.input.hint(e)}},{key:"validate",value:function(){var e=this.input,t=this.rule,r=this.tip,n=this.el,i=e.val();return t.required&&/^\s*$/.test(i)?(r.html(Me("validation.required")),n.addClass("error"),!1):!t.type&&!t.pattern||(t.pattern||Si[t.type]).test(i)?(n.removeClass("error"),!0):(r.html(Me("validation.notMatch")),n.addClass("error"),!1)}}])}();function Ei(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ei=function(){return!!e})()}K(),Q(),Et(),At(),It();var Ci=/* @__PURE__ */function(){function e(){var t;Y(this,e);var r=new Ti(new xi("cell",["cell"],"100%",function(e){return Me("dataValidation.modeType.".concat(e))}),{required:!0},"".concat(Me("dataValidation.range"),":"),100),n=new Ti(new ki("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),i=new Ti(new xi("list",["list","number","date","phone","email"],"100%",function(e){return Me("dataValidation.type.".concat(e))},function(e){return t.criteriaSelected(e)}),{required:!0},"".concat(Me("dataValidation.criteria"),":"),100),a=new Ti(new xi("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",function(e){return Me("dataValidation.operator.".concat(e))},function(e){return t.criteriaOperatorSelected(e)}),{required:!0}).hide(),s=new Ti(new ki("70px","10"),{required:!0}).hide(),o=new Ti(new ki("70px","100"),{required:!0,type:"number"}).hide(),l=new Ti(new ki("120px","a,b,c"),{required:!0}),c=new Ti(new ki("70px","10"),{required:!0,type:"number"}).hide();return(t=function(e,t,r){return t=Ct(t),Tt(e,Ei()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,[Me("contextmenu.validation"),[re("div","".concat(et,"-form-fields")).children(r.el,n.el),re("div","".concat(et,"-form-fields")).children(i.el,a.el,s.el,o.el,c.el,l.el),re("div","".concat(et,"-buttons")).children(new Yt("cancel").on("click",function(){return t.btnClick("cancel")}),new Yt("remove").on("click",function(){return t.btnClick("remove")}),new Yt("save","primary").on("click",function(){return t.btnClick("save")}))]])).mf=r,t.rf=n,t.cf=i,t.of=a,t.minvf=s,t.maxvf=o,t.vf=c,t.svf=l,t.change=function(){},t}return Rt(e,_i),J(e,[{key:"showVf",value:function(e){var t="date"===e?"2018-11-12":"10",r=this.vf;r.input.hint(t),r.show()}},{key:"criteriaSelected",value:function(e){var t=this.of,r=this.minvf,n=this.maxvf,i=this.vf,a=this.svf;"date"===e||"number"===e?(t.show(),r.rule.type=e,n.rule.type=e,"date"===e?(r.hint("2018-11-12"),n.hint("2019-11-12")):(r.hint("10"),n.hint("100")),r.show(),n.show(),i.hide(),a.hide()):("list"===e?a.show():a.hide(),i.hide(),t.hide(),r.hide(),n.hide())}},{key:"criteriaOperatorSelected",value:function(e){if(e){var t=this.minvf,r=this.maxvf,n=this.vf;if("be"===e||"nbe"===e)t.show(),r.show(),n.hide();else{var i=this.cf.val();n.rule.type=i,"date"===i?n.hint("2018-11-12"):n.hint("10"),n.show(),t.hide(),r.hide()}}}},{key:"btnClick",value:function(e){if("cancel"===e)this.hide();else if("remove"===e)this.change("remove"),this.hide();else if("save"===e){for(var t=["mf","rf","cf","of","svf","vf","minvf","maxvf"],r=0;r<t.length;r+=1){var n=this[t[r]];if(n.isShow()&&!n.validate())return}var i=this.mf.val(),a=this.rf.val(),s=this.cf.val(),o=this.of.val(),l=this.svf.val();"number"!==s&&"date"!==s||(l="be"===o||"nbe"===o?[this.minvf.val(),this.maxvf.val()]:this.vf.val()),this.change("save",i,a,{type:s,operator:o,required:!1,value:l}),this.hide()}}},{key:"setValue",value:function(e){if(e){var t=this.mf,r=this.rf,n=this.cf,i=this.of,a=this.svf,s=this.vf,o=this.minvf,l=this.maxvf,c=e.mode,u=e.ref,f=e.validator||{type:"list"},h=f.type,d=f.operator,p=f.value;t.val(c||"cell"),r.val(u),n.val(h),i.val(d),Array.isArray(p)?(o.val(p[0]),l.val(p[1])):(a.val(p||""),s.val(p||"")),this.criteriaSelected(h),this.criteriaOperatorSelected(d)}this.show()}}])}();function Ai(e){return re("div","".concat(et,"-item ").concat(e))}function Mi(e){var t=this;return Ai("state").child(Me("sort.".concat(e))).on("click.stop",function(){return t.itemClick(e)})}function Oi(e){var t=this,r=this.filterbEl,n=this.filterValues;r.html(""),Object.keys(e).forEach(function(i,a){var s=e[i],o=n.includes(i)?"checked":"";r.child(re("div","".concat(et,"-item state ").concat(o)).on("click.stop",function(){return t.filterClick(a,i)}).children(""===i?Me("filter.empty"):i,re("div","label").html("(".concat(s,")"))))})}function Ri(){var e=this.filterhEl,t=this.filterValues,r=this.values;e.html("".concat(t.length," / ").concat(r.length)),e.checked(t.length===r.length)}K(),Q();var Ii=/* @__PURE__ */function(){return J(function e(){var t=this;Y(this,e),this.filterbEl=re("div","".concat(et,"-body")),this.filterhEl=re("div","".concat(et,"-header state")).on("click.stop",function(){return t.filterClick(0,"all")}),this.el=re("div","".concat(et,"-sort-filter")).children(this.sortAscEl=Mi.call(this,"asc"),this.sortDescEl=Mi.call(this,"desc"),Ai("divider"),re("div","".concat(et,"-filter")).children(this.filterhEl,this.filterbEl),re("div","".concat(et,"-buttons")).children(new Yt("cancel").on("click",function(){return t.btnClick("cancel")}),new Yt("ok","primary").on("click",function(){return t.btnClick("ok")}))).hide(),this.ci=null,this.sortDesc=null,this.values=null,this.filterValues=[]},[{key:"btnClick",value:function(e){if("ok"===e){var t=this.ci,r=this.sort,n=this.filterValues;this.ok&&this.ok(t,r,"in",n)}this.hide()}},{key:"itemClick",value:function(e){this.sort=e;var t=this.sortAscEl,r=this.sortDescEl;t.checked("asc"===e),r.checked("desc"===e)}},{key:"filterClick",value:function(e,t){var r=this.filterbEl,n=this.filterValues,i=this.values,a=r.children();"all"===t?a.length===n.length?(this.filterValues=[],a.forEach(function(e){return re(e).checked(!1)})):(this.filterValues=Array.from(i),a.forEach(function(e){return re(e).checked(!0)})):re(a[e]).toggle("checked")?n.push(t):n.splice(n.findIndex(function(e){return e===t}),1),Ri.call(this)}},{key:"set",value:function(e,t,r,n){this.ci=e;var i=this.sortAscEl,a=this.sortDescEl;null!==n?(this.sort=n.order,i.checked(n.asc()),a.checked(n.desc())):(this.sortDesc=null,i.checked(!1),a.checked(!1)),this.values=Object.keys(t),this.filterValues=r?Array.from(r.value):Object.keys(t),Oi.call(this,t,r),Ri.call(this)}},{key:"setOffset",value:function(e){var t=this;this.el.offset(e).show();var r=1;Ze(this.el,function(){r<=0&&t.hide(),r-=1})}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide(),Ke(this.el)}}])}();function Ni(e,t){var r=re("div","".concat(et,"-toast")),n=re("div","".concat(et,"-dimmer active"));r.children(re("div","".concat(et,"-toast-header")).children(new Pt("close").on("click.stop",function(){return document.body.removeChild(r.el),void document.body.removeChild(n.el)}),e),re("div","".concat(et,"-toast-content")).html(t)),document.body.appendChild(r.el),document.body.appendChild(n.el);var i=r.box(),a=i.width,s=i.height,o=document.documentElement,l=o.clientHeight,c=o.clientWidth;r.offset({left:(c-a)/2,top:(l-s)/3})}function Pi(e,t){var r,n=this;return function(){for(var i=n,a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];var l=s;r||(r=setTimeout(function(){r=null,e.apply(i,l)},t))}}function Di(){var e=this.data,t=this.verticalScrollbar,r=this.horizontalScrollbar,n=e.getSelectedRect(),i=n.l,a=n.t,s=n.left,o=n.top,l=n.width,c=n.height,u=this.getTableOffset();if(Math.abs(s)+l>u.width)r.move({left:i+l-u.width});else{var f=e.freezeTotalWidth();s<f&&r.move({left:i-1-f})}if(Math.abs(o)+c>u.height)t.move({top:a+c-u.height-1});else{var h=e.freezeTotalHeight();o<h&&t.move({top:a-1-h})}}function Fi(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==t||-1!==r){this.table;var a=this.selector;this.toolbar;var s=this.data,o=this.contextMenu,l=s.getCell(t,r);e?(a.setEnd(t,r,i),this.trigger("cells-selected",l,a.range)):(a.set(t,r,n),this.trigger("cell-selected",l,t,r)),o.setMode(-1===t||-1===r?"row-col":"range")}}function ji(e,t){var r=this.selector,n=this.data,i=n.rows,a=n.cols,s=X(r.indexes,2),o=s[0],l=s[1],c=r.range,u=c.eri,f=c.eci;if(e){var h=X(r.moveIndexes,2);o=h[0],l=h[1]}"left"===t?l>0&&(l-=1):"right"===t?(f!==l&&(l=f),l<a.len-1&&(l+=1)):"up"===t?o>0&&(o-=1):"down"===t?(u!==o&&(o=u),o<i.len-1&&(o+=1)):"row-first"===t?l=0:"row-last"===t?l=a.len-1:"col-first"===t?o=0:"col-last"===t&&(o=i.len-1),e&&(r.moveIndexes=[o,l]),Fi.call(this,e,o,l),Di.call(this)}function Li(e){if(0===e.buttons&&e.target.className!=="".concat("x-spreadsheet","-resizer-hover")){var t=e.offsetX,r=e.offsetY,n=this.rowResizer,i=this.colResizer,a=this.tableEl,s=this.data,o=s.rows,l=s.cols;if(t>l.indexWidth&&r>o.height)return n.hide(),void i.hide();var c=a.box(),u=s.getCellRectByXY(e.offsetX,e.offsetY);u.ri>=0&&-1===u.ci?(u.width=l.indexWidth,n.show(u,{width:c.width}),o.isHide(u.ri-1)?n.showUnhide(u.ri):n.hideUnhide()):n.hide(),-1===u.ri&&u.ci>=0?(u.height=o.height,i.show(u,{height:c.height}),l.isHide(u.ci-1)?i.showUnhide(u.ci):i.hideUnhide()):i.hide()}}function Bi(e){var t=this.verticalScrollbar,r=this.horizontalScrollbar,n=this.data,i=t.scroll().top,a=r.scroll().left,s=n.rows,o=n.cols,l=e.deltaY,c=e.deltaX,u=function(e,t){var r=e,n=0;do{n=t(r),r+=1}while(n<=0);return n},f=function(e){if(e>0){var r=n.scroll.ri+1;if(r<s.len){var a=u(r,function(e){return s.getHeight(e)});t.move({top:i+a-1})}}else{var o=n.scroll.ri-1;if(o>=0){var l=u(o,function(e){return s.getHeight(e)});t.move({top:0===o?0:i-l})}}},h=Math.abs(l),d=Math.abs(c),p=Math.max(h,d);/Firefox/i.test(window.navigator.userAgent)&&Pi(f(e.detail),50),p===d&&Pi(function(e){if(e>0){var t=n.scroll.ci+1;if(t<o.len){var i=u(t,function(e){return o.getWidth(e)});r.move({left:a+i-1})}}else{var s=n.scroll.ci-1;if(s>=0){var l=u(s,function(e){return o.getWidth(e)});r.move({left:0===s?0:a-l})}}}(c),50),p===h&&Pi(f(l),50)}function zi(e,t){var r=this.verticalScrollbar,n=this.horizontalScrollbar,i=r.scroll().top,a=n.scroll().left;"left"===e||"right"===e?n.move({left:a-t}):"up"!==e&&"down"!==e||r.move({top:i-t})}function Ui(){var e=this.data,t=this.verticalScrollbar,r=this.getTableOffset().height,n=e.exceptRowTotalHeight(0,-1);t.set(r,e.rows.totalHeight()-n)}function Hi(){var e=this.data,t=this.horizontalScrollbar,r=this.getTableOffset().width;e&&t.set(r,e.cols.totalWidth())}function Wi(){var e=this.selector,t=this.data,r=this.editor,n=X(t.freeze,2),i=n[0],a=n[1];if(i>0||a>0){var s=t.freezeTotalWidth(),o=t.freezeTotalHeight();r.setFreezeLengths(s,o)}e.resetAreaOffset()}function Vi(){var e=this.tableEl,t=this.overlayerEl,r=this.overlayerCEl,n=this.table,i=this.toolbar,a=this.selector,s=this.el,o=this.getTableOffset(),l=this.getRect();e.attr(l),t.offset(l),r.offset(o),s.css("width","".concat(l.width,"px")),Ui.call(this),Hi.call(this),Wi.call(this),n.render(),i.reset(),a.reset()}function $i(){var e=this.data,t=this.selector;e.clearClipboard(),t.hideClipboard()}function qi(e){var t=this.data,r=this.selector;"read"!==t.settings.mode&&(t.copy(),t.copyToSystemClipboard(e),r.showClipboard())}function Xi(){var e=this.data,t=this.selector;"read"!==e.settings.mode&&(e.cut(),t.showClipboard())}function Gi(e,t){var r=this,n=this.data;if("read"!==n.settings.mode)if(n.clipboard.isClear())n.pasteFromSystemClipboard(function(){return Vi.call(r)},function(e){r.trigger("pasted-clipboard",e)});else if(n.paste(e,function(e){return Ni("Tip",e)}))Vi.call(this);else if(t){var i=t.clipboardData.getData("text/plain");this.data.pasteFromText(i),Vi.call(this)}}function Yi(){this.data.hideRowsOrCols(),Vi.call(this)}function Ki(e,t){this.data.unhideRowsOrCols(e,t),Vi.call(this)}function Zi(){this.data.autofilter(),Vi.call(this)}function Ji(){var e=this.toolbar;e.paintformatActive()&&(Gi.call(this,"format"),$i.call(this),e.paintformatToggle())}function Qi(e){var t=this,r=this.selector,n=this.data,i=this.table,a=this.sortFilter,s=e.offsetX,o=e.offsetY,l=e.target.className==="".concat(et,"-selector-corner"),c=n.getCellRectByXY(s,o),u=c.left,f=c.top,h=c.width,d=c.height,p=c.ri,m=c.ci,v=n.autoFilter;if(v.includes(p,m)&&u+h-20<s&&f+d-20<o){var g=v.items(m,function(e,t){return n.rows.getCell(e,t)});return a.hide(),a.set(m,g,v.getFilter(m),v.getSort(m)),void a.setOffset({left:u,top:f+d+2})}e.shiftKey||(l?r.showAutofill(p,m):Fi.call(this,!1,p,m),Je(window,function(e){var i=n.getCellRectByXY(e.offsetX,e.offsetY);p=i.ri,m=i.ci,l?r.showAutofill(p,m):1!==e.buttons||e.shiftKey||Fi.call(t,!0,p,m,!0,!0)},function(){l&&r.arange&&"read"!==n.settings.mode&&n.autofill(r.arange,"all",function(e){return Ni("Tip",e)})&&i.render(),r.hideAutofill(),Ji.call(t)})),l||1!==e.buttons||e.shiftKey&&Fi.call(this,!0,p,m)}function ea(){var e=this.editor,t=this.data.getSelectedRect(),r=this.getTableOffset(),n="top";t.top>r.height/2&&(n="bottom"),e.setOffset(t,n)}function ta(){var e=this.editor,t=this.data;"read"!==t.settings.mode&&(ea.call(this),e.setCell(t.getSelectedCell(),t.getSelectedValidator()),$i.call(this))}function ra(e){var t=this,r=this.data,n=this.table,i=this.selector;r.scrolly(e,function(){i.resetBRLAreaOffset(),ea.call(t),n.render()})}function na(e){var t=this,r=this.data,n=this.table,i=this.selector;r.scrollx(e,function(){i.resetBRTAreaOffset(),ea.call(t),n.render()})}function ia(e,t){var r=e.ri,n=this.table,i=this.selector,a=this.data,s=i.range,o=s.sri,l=s.eri;if(r>=o&&r<=l)for(var c=o;c<=l;c+=1)a.rows.setHeight(c,t);else a.rows.setHeight(r,t);n.render(),i.resetAreaOffset(),Ui.call(this),ea.call(this)}function aa(e,t){var r=e.ci,n=this.table,i=this.selector,a=this.data,s=i.range,o=s.sci,l=s.eci;if(r>=o&&r<=l)for(var c=o;c<=l;c+=1)a.cols.setWidth(c,t);else a.cols.setWidth(r,t);n.render(),i.resetAreaOffset(),Hi.call(this),ea.call(this)}function sa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"finished",r=this.data,n=this.table;if("read"!==r.settings.mode){r.setSelectedCellText(e,t);var i=r.selector,a=i.ri,s=i.ci;"finished"===t?n.render():this.trigger("cell-edited",e,a,s)}}function oa(e){var t=this.data;"read"!==t.settings.mode&&("insert-row"===e?t.insert("row"):"delete-row"===e?t.delete("row"):"insert-column"===e?t.insert("column"):"delete-column"===e?t.delete("column"):"delete-cell"===e?t.deleteCell():"delete-cell-format"===e?t.deleteCell("format"):"delete-cell-text"===e?t.deleteCell("text"):"cell-printable"===e?t.setSelectedCellAttr("printable",!0):"cell-non-printable"===e?t.setSelectedCellAttr("printable",!1):"cell-editable"===e?t.setSelectedCellAttr("editable",!0):"cell-non-editable"===e&&t.setSelectedCellAttr("editable",!1),$i.call(this),Vi.call(this))}function la(e,t){var r=this.data;if("undo"===e)this.undo();else if("redo"===e)this.redo();else if("print"===e)this.print.preview();else if("paintformat"===e)!0===t?qi.call(this):$i.call(this);else if("clearformat"===e)oa.call(this,"delete-cell-format");else if("link"===e);else if("chart"===e);else if("autofilter"===e)Zi.call(this);else if("freeze"===e)if(t){var n=r.selector,i=n.ri,a=n.ci;this.freeze(i,a)}else this.freeze(0,0);else r.setSelectedCellAttr(e,t),"formula"!==e||r.selector.multiple()||ta.call(this),Vi.call(this)}function ca(e,t,r,n){this.data.setAutoFilter(e,t,r,n),Vi.call(this)}function ua(){var e,t,r,n,i,a,s=this,o=this.selector,l=this.overlayerEl,c=this.rowResizer,u=this.colResizer,f=this.verticalScrollbar,h=this.horizontalScrollbar,d=this.editor,p=this.contextMenu,m=this.toolbar,v=this.modalValidation,g=this.sortFilter;l.on("mousemove",function(e){Li.call(s,e)}).on("mousedown",function(e){p.hide(),2===e.buttons?(s.data.xyInSelectedRect(e.offsetX,e.offsetY)||Qi.call(s,e),p.setPosition(e.offsetX,e.offsetY),e.stopPropagation()):2===e.detail?ta.call(s):Qi.call(s,e)}).on("mousewheel.stop",function(e){Bi.call(s,e)}).on("mouseout",function(e){var t=e.offsetX;e.offsetY<=0&&u.hide(),t<=0&&c.hide()}),o.inputChange=function(e){sa.call(s,e,"input"),ta.call(s)},e=l.el,r=(t={move:function(e,t){zi.call(s,e,t)}}).move,n=t.end,i=0,a=0,Ge(e,"touchstart",function(e){var t=e.touches[0],r=t.pageX,n=t.pageY;i=r,a=n}),Ge(e,"touchmove",function(e){if(r){var t=e.changedTouches[0],n=t.pageX,s=t.pageY,o=n-i,l=s-a;(Math.abs(o)>10||Math.abs(l)>10)&&(Qe(o,l,e,r),i=n,a=s),e.preventDefault()}}),Ge(e,"touchend",function(e){if(n){var t=e.changedTouches[0],r=t.pageX,s=t.pageY;Qe(r-i,s-a,e,n)}}),m.change=function(e,t){return la.call(s,e,t)},g.ok=function(e,t,r,n){return ca.call(s,e,t,r,n)},c.finishedFn=function(e,t){ia.call(s,e,t)},u.finishedFn=function(e,t){aa.call(s,e,t)},c.unhideFn=function(e){Ki.call(s,"row",e)},u.unhideFn=function(e){Ki.call(s,"col",e)},f.moveFn=function(e,t){ra.call(s,e,t)},h.moveFn=function(e,t){na.call(s,e,t)},d.change=function(e,t){sa.call(s,t,e)},v.change=function(e){if("save"===e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(t=s.data).addValidation.apply(t,n)}else s.data.removeValidation()},p.itemClick=function(e){"validation"===e?v.setValue(s.data.getSelectedValidation()):"copy"===e?qi.call(s):"cut"===e?Xi.call(s):"paste"===e?Gi.call(s,"all"):"paste-value"===e?Gi.call(s,"text"):"paste-format"===e?Gi.call(s,"format"):"hide"===e?Yi.call(s):oa.call(s,e)},Ge(window,"resize",function(){s.reload()}),Ge(window,"click",function(e){s.focusing=l.contains(e.target)}),Ge(window,"paste",function(e){s.focusing&&(Gi.call(s,"all",e),e.preventDefault())}),Ge(window,"copy",function(e){s.focusing&&(qi.call(s,e),e.preventDefault())}),Ge(window,"keydown",function(e){if(s.focusing){var t=e.keyCode||e.which,r=e.key,n=e.ctrlKey,i=e.shiftKey,a=e.metaKey;if(n||a)switch(t){case 90:s.undo(),e.preventDefault();break;case 89:s.redo(),e.preventDefault();break;case 67:case 86:default:break;case 88:Xi.call(s),e.preventDefault();break;case 85:m.trigger("underline"),e.preventDefault();break;case 37:ji.call(s,i,"row-first"),e.preventDefault();break;case 38:ji.call(s,i,"col-first"),e.preventDefault();break;case 39:ji.call(s,i,"row-last"),e.preventDefault();break;case 40:ji.call(s,i,"col-last"),e.preventDefault();break;case 32:Fi.call(s,!1,-1,s.data.selector.ci,!1),e.preventDefault();break;case 66:m.trigger("bold");break;case 73:m.trigger("italic")}else{switch(t){case 32:i&&Fi.call(s,!1,s.data.selector.ri,-1,!1);break;case 27:p.hide(),$i.call(s);break;case 37:ji.call(s,i,"left"),e.preventDefault();break;case 38:ji.call(s,i,"up"),e.preventDefault();break;case 39:ji.call(s,i,"right"),e.preventDefault();break;case 40:ji.call(s,i,"down"),e.preventDefault();break;case 9:d.clear(),ji.call(s,!1,i?"left":"right"),e.preventDefault();break;case 13:d.clear(),ji.call(s,!1,i?"up":"down"),e.preventDefault();break;case 8:oa.call(s,"delete-cell-text"),e.preventDefault()}"Delete"===r?(oa.call(s,"delete-cell-text"),e.preventDefault()):t>=65&&t<=90||t>=48&&t<=57||t>=96&&t<=105||"="===e.key?(sa.call(s,e.key,"input"),ta.call(s)):113===t&&ta.call(s)}}})}K(),Q(),G();var fa=/* @__PURE__ */function(){return J(function e(t,r){var n=this;Y(this,e),this.eventMap=function(){var e=/* @__PURE__ */new Map;function t(t,r){return e.has(t)&&(n=e.get(t),Array.isArray(n)&&n.push(r)||!1)||e.set(t,[].concat(r));var n}function r(t,r){return e.has(t)&&((i=(n=e.get(t)).indexOf(r))>=0&&n.splice(i,1)&&0===e.get(t).length&&e.delete(t));var n,i}return{get current(){return e},on:t,once:function(e,n){var i=function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];n.call.apply(n,[null].concat(a)),r(e,i)};return t(e,i)},fire:function(t,r){return e.has(t)&&function(){var n,i=qe(e.get(t));try{for(i.s();!(n=i.n()).done;){var a=n.value;a.call.apply(a,[null].concat(I(r)))}}catch(s){i.e(s)}finally{i.f()}}()},removeListener:r,removeAllListeners:function(){e.clear()}}}();var i=r.settings,a=i.view,s=i.showToolbar,o=i.showContextmenu;this.el=re("div","".concat(et,"-sheet")),this.toolbar=new wi(r,a.width,!s),this.print=new Nr(r),t.children(this.toolbar.el,this.el,this.print.el),this.data=r,this.tableEl=re("canvas","".concat(et,"-table")),this.rowResizer=new tt(!1,r.rows.height),this.colResizer=new tt(!0,r.cols.minWidth),this.verticalScrollbar=new rt(!0),this.horizontalScrollbar=new rt(!1),this.editor=new Xt(cr,function(){return n.getTableOffset()},r.rows.height),this.modalValidation=new Ci,this.contextMenu=new jr(function(){return n.getRect()},!o),this.selector=new bt(r),this.overlayerCEl=re("div","".concat(et,"-overlayer-content")).children(this.editor.el,this.selector.el),this.overlayerEl=re("div","".concat(et,"-overlayer")).child(this.overlayerCEl),this.sortFilter=new Ii,this.el.children(this.tableEl,this.overlayerEl.el,this.rowResizer.el,this.colResizer.el,this.verticalScrollbar.el,this.horizontalScrollbar.el,this.contextMenu.el,this.modalValidation.el,this.sortFilter.el),this.table=new Er(this.tableEl.el,r),ua.call(this),Vi.call(this)},[{key:"on",value:function(e,t){return this.eventMap.on(e,t),this}},{key:"trigger",value:function(e){for(var t=this.eventMap,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.fire(e,n)}},{key:"resetData",value:function(e){this.editor.clear(),this.data=e,Ui.call(this),Hi.call(this),this.toolbar.resetData(e),this.print.resetData(e),this.selector.resetData(e),this.table.resetData(e)}},{key:"loadData",value:function(e){return this.data.setData(e),Vi.call(this),this}},{key:"freeze",value:function(e,t){return this.data.setFreeze(e,t),Vi.call(this),this}},{key:"undo",value:function(){this.data.undo(),Vi.call(this)}},{key:"redo",value:function(){this.data.redo(),Vi.call(this)}},{key:"reload",value:function(){return Vi.call(this),this}},{key:"getRect",value:function(){var e=this.data;return{width:e.viewWidth(),height:e.viewHeight()}}},{key:"getTableOffset",value:function(){var e=this.data,t=e.rows,r=e.cols,n=this.getRect(),i=n.width,a=n.height;return{width:i-r.indexWidth,height:a-t.height,left:r.indexWidth,top:t.height}}},{key:"scrollbarMove",value:function(){Di.call(this)}},{key:"setSelector",value:function(e,t){Fi.call(this,!1,e,t),this.scrollbarMove()}}])}();function ha(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ha=function(){return!!e})()}G(),N(),K(),Q(),Et(),At(),It();var da=/* @__PURE__ */function(){function e(t){var r;return Y(this,e),r=function(e,t,r){return t=Ct(t),Tt(e,ha()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}(this,e,[new Pt("ellipsis"),"auto",!1,"top-left"]),r.contentClick=t,r}return Rt(e,$r),J(e,[{key:"reset",value:function(e){var t=this,r=e.map(function(e,r){return re("div","".concat(et,"-item")).css("width","150px").css("font-weight","normal").on("click",function(){t.contentClick(r),t.hide()}).child(e)});this.setContentChildren.apply(this,I(r))}},{key:"setTitle",value:function(){}}])}(),pa=[{key:"delete",title:Oe("contextmenu.deleteSheet")}];function ma(e){var t=this;return re("div","".concat(et,"-item")).child(e.title()).on("click",function(){t.itemClick(e.key),t.hide()})}function va(){var e=this;return pa.map(function(t){return ma.call(e,t)})}var ga=/* @__PURE__ */function(){return J(function e(){var t;Y(this,e),this.el=(t=re("div","".concat(et,"-contextmenu")).css("width","160px")).children.apply(t,I(va.call(this))).hide(),this.itemClick=function(){}},[{key:"hide",value:function(){var e=this.el;e.hide(),Ke(e)}},{key:"setOffset",value:function(e){var t=this.el;t.offset(e),t.show(),Ze(t)}}])}(),ba=/* @__PURE__ */function(){return J(function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};Y(this,e),this.swapFunc=n,this.updateFunc=a,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new da(function(e){t.clickSwap2(t.items[e])}),this.contextMenu=new ga,this.contextMenu.itemClick=i,this.el=re("div","".concat(et,"-topbar")).children(this.contextMenu.el,this.menuEl=re("ul","".concat(et,"-menu")).child(re("li","").children(new Pt("add").on("click",function(){r()}),re("span","").child(this.moreEl))))},[{key:"addItem",value:function(e,t,r){var n=this;this.dataNames.push(e);var i=re("li",t?"active":"").child(e);i.on("click",function(){n.clickSwap2(i)}).on("contextmenu",function(e){if("read"!==r.mode){var t=e.target,a=t.offsetLeft,s=t.offsetHeight;n.contextMenu.setOffset({left:a,bottom:s+1}),n.deleteEl=i}}).on("dblclick",function(){if("read"!==r.mode){var e=i.html(),t=new ki("auto","");t.val(e),t.input.on("blur",function(t){var r=t.target.value,i=n.dataNames.findIndex(function(t){return t===e});n.renameItem(i,r)}),i.html("").child(t.el),t.focus()}}),t&&this.clickSwap(i),this.items.push(i),this.menuEl.child(i),this.moreEl.reset(this.dataNames)}},{key:"renameItem",value:function(e,t){this.dataNames.splice(e,1,t),this.moreEl.reset(this.dataNames),this.items[e].html("").child(t),this.updateFunc(e,t)}},{key:"clear",value:function(){var e=this;this.items.forEach(function(t){e.menuEl.removeChild(t.el)}),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}},{key:"deleteItem",value:function(){var e=this.activeEl,t=this.deleteEl;if(this.items.length>1){var r=this.items.findIndex(function(e){return e===t});return this.items.splice(r,1),this.dataNames.splice(r,1),this.menuEl.removeChild(t.el),this.moreEl.reset(this.dataNames),e===t?(this.activeEl=X(this.items,1)[0],this.activeEl.toggle(),[r,0]):[r,-1]}return[-1]}},{key:"clickSwap2",value:function(e){var t=this.items.findIndex(function(t){return t===e});this.clickSwap(e),this.activeEl.toggle(),this.swapFunc(t)}},{key:"clickSwap",value:function(e){null!==this.activeEl&&this.activeEl.toggle(),this.activeEl=e}}])}();function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}G(),K(),Q();var wa=/* @__PURE__ */function(){return J(function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Y(this,e);var i=t;this.options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(r),!0).forEach(function(t){B(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ya(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({showBottomBar:!0},n),this.sheetIndex=1,this.datas=[],"string"==typeof t&&(i=document.querySelector(t)),this.topbar=this.options.showBottomBar?new ba(function(){if("read"!==r.options.mode){var e=r.addSheet();r.sheet.resetData(e)}},function(e){var t=r.datas[e];r.sheet.resetData(t)},function(){r.deleteSheet()},function(e,t){r.datas[e].name=t,r.sheet.trigger("change")}):null,this.data=this.addSheet();var a=re("div","".concat(et)).on("contextmenu",function(e){return e.preventDefault()});null!==this.topbar&&a.child(this.topbar.el),i.appendChild(a.el),this.sheet=new fa(a,this.data)},[{key:"addSheet",value:function(e){var t=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e||"sheet".concat(this.sheetIndex),i=new $e(n,this.options);return i.change=function(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];(e=t.sheet).trigger.apply(e,["change"].concat(n))},this.datas.push(i),null!==this.topbar&&this.topbar.addItem(n,r,this.options),this.sheetIndex+=1,i}},{key:"deleteSheet",value:function(){if(null!==this.topbar){var e=X(this.topbar.deleteItem(),2),t=e[0],r=e[1];t>=0&&(this.datas.splice(t,1),r>=0&&this.sheet.resetData(this.datas[r]),this.sheet.trigger("change"))}}},{key:"loadData",value:function(e){var t=Array.isArray(e)?e:[e];if(null!==this.topbar&&this.topbar.clear(),this.datas=[],t.length>0)for(var r=0;r<t.length;r+=1){var n=t[r],i=this.addSheet(n.name,0===r);i.setData(n),0===r&&this.sheet.resetData(i)}return this}},{key:"getData",value:function(){return this.datas.map(function(e){return e.getData()})}},{key:"cellText",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.datas[n].setCellText(e,t,r,"finished"),this}},{key:"cell",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.datas[r].getCell(e,t)}},{key:"cellStyle",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.datas[r].getCellStyle(e,t)}},{key:"reRender",value:function(){return this.sheet.table.render(),this}},{key:"on",value:function(e,t){return this.sheet.on(e,t),this}},{key:"validate",value:function(){return this.data.validations.errors.size<=0}},{key:"change",value:function(e){return this.sheet.on("change",e),this}}],[{key:"locale",value:function(e,t){Re(e,t)}}])}();function _a(e,t,r,n,i,a,s){try{var o=e[a](s),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,i)}function ka(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(e){_a(a,n,i,s,o,"next",e)}function o(e){_a(a,n,i,s,o,"throw",e)}s(void 0)})}}window&&(window.x_spreadsheet=function(e){return new wa(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},window.x_spreadsheet.locale=function(e,t){return Re(e,t)});var xa=w(()=>{});function Sa(e,t){this.v=e,this.k=t}var Ta=w(()=>{});function Ea(e){return new Sa(e,0)}var Ca=w(()=>{Ta()});function Aa(e){var t,r;function n(t,r){try{var a=e[t](r),s=a.value,o=s instanceof Sa;Promise.resolve(o?s.v:s).then(function(r){if(o){var l="return"===t&&s.k?t:"next";if(!s.k||r.done)return n(l,r);r=e[l](r).value}i(!!a.done,r)},function(e){n("throw",e)})}catch(e){i(2,e)}}function i(e,i){2===e?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise(function(a,s){var o={key:e,arg:i,resolve:a,reject:s,next:null};r?r=r.next=o:(t=r=o,n(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}var Ma=w(()=>{Ta(),Aa.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Aa.prototype.next=function(e){return this._invoke("next",e)},Aa.prototype.throw=function(e){return this._invoke("throw",e)},Aa.prototype.return=function(e){return this._invoke("return",e)}}),Oa=/* @__PURE__ */_((e,t)=>{t.exports=function(e,t){this.v=e,this.k=t},t.exports.__esModule=!0,t.exports.default=t.exports}),Ra=/* @__PURE__ */_((e,t)=>{function r(e,n,i,a){var s=Object.defineProperty;try{s({},"",{})}catch(e){s=0}t.exports=r=function(e,t,n,i){function a(t,n){r(e,t,function(e){return this._invoke(t,n,e)})}t?s?s(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n,i,a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}),Ia=/* @__PURE__ */_((e,t)=>{var r=Ra();function n(){var e,i,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.toStringTag||"@@toStringTag";function l(t,n,a,s){var o=n&&n.prototype instanceof u?n:u,l=Object.create(o.prototype);return r(l,"_invoke",function(t,r,n){var a,s,o,l=0,u=n||[],f=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return a=t,s=0,o=e,h.n=r,c}};function d(t,r){for(s=t,o=r,i=0;!f&&l&&!n&&i<u.length;i++){var n,a=u[i],d=h.p,p=a[2];t>3?(n=p===r)&&(o=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=d&&((n=t<2&&d<a[1])?(s=0,h.v=r,h.n=a[1]):d<p&&(n=t<3||a[0]>r||r>p)&&(a[4]=t,a[5]=r,h.n=p,s=0))}if(n||t>1)return c;throw f=!0,r}return function(n,u,p){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,p),s=u,o=p;(i=s<2?e:o)||!f;){a||(s?s<3?(s>1&&(h.n=-1),d(s,o)):h.n=o:h.v=o);try{if(l=2,a){if(s||(n="next"),i=a[n]){if(!(i=i.call(a,o)))throw TypeError("iterator result is not an object");if(!i.done)return i;o=i.value,s<2&&(s=0)}else 1===s&&(i=a.return)&&i.call(a),s<2&&(o=TypeError("The iterator does not provide a '"+n+"' method"),s=1);a=e}else if((i=(f=h.n<0)?o:t.call(r,h))!==c)break}catch(i){a=e,s=1,o=i}finally{l=1}}return{value:i,done:f}}}(t,a,s),!0),l}var c={};function u(){}function f(){}function h(){}i=Object.getPrototypeOf;var d=[][s]?i(i([][s]())):(r(i={},s,function(){return this}),i),p=h.prototype=u.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,r(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return f.prototype=h,r(p,"constructor",h),r(h,"constructor",f),f.displayName="GeneratorFunction",r(h,o,"GeneratorFunction"),r(p),r(p,o,"Generator"),r(p,s,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(t.exports=n=function(){return{w:l,m:m}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}),Na=/* @__PURE__ */_((e,t)=>{var r=Oa(),n=Ra();t.exports=function e(t,i){function a(e,n,s,o){try{var l=t[e](n),c=l.value;return c instanceof r?i.resolve(c.v).then(function(e){a("next",e,s,o)},function(e){a("throw",e,s,o)}):i.resolve(c).then(function(e){l.value=e,s(l)},function(e){return a("throw",e,s,o)})}catch(t){o(t)}}var s;this.next||(n(e.prototype),n(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(e,t,r){function n(){return new i(function(t,n){a(e,r,t,n)})}return s=s?s.then(n,n):n()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports}),Pa=/* @__PURE__ */_((e,t)=>{var r=Ia(),n=Na();t.exports=function(e,t,i,a,s){return new n(r().w(e,t,i,a),s||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports}),Da=/* @__PURE__ */_((e,t)=>{var r=Pa();t.exports=function(e,t,n,i,a){var s=r(e,t,n,i,a);return s.next().then(function(e){return e.done?e.value:s.next()})},t.exports.__esModule=!0,t.exports.default=t.exports}),Fa=/* @__PURE__ */_((e,t)=>{t.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.exports.__esModule=!0,t.exports.default=t.exports}),ja=/* @__PURE__ */_((e,t)=>{function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}),La=/* @__PURE__ */_((e,t)=>{var r=ja().default;t.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports}),Ba=/* @__PURE__ */_((e,t)=>{var r=Oa(),n=Ia(),i=Da(),a=Pa(),s=Na(),o=Fa(),l=La();function c(){var e=n(),u=e.m(c),f=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var d={throw:1,return:2,break:3,continue:3};function p(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,d[e],t)},delegateYield:function(e,i,a){return t.resultName=i,r(n.d,l(e),a)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(t.exports=c=function(){return{wrap:function(t,r,n,i){return e.w(p(t),r,n,i&&i.reverse())},isGeneratorFunction:h,mark:e.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,r,n,s){return(h(t)?a:i)(p(e),t,r,n,s)},keys:o,values:l}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}),za=/* @__PURE__ */_((e,t)=>{D();var r=Ba()();t.exports=r;try{regeneratorRuntime=r}catch(n){"object"===("undefined"==typeof globalThis?"undefined":P(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),Ua=/* @__PURE__ */_((e,t)=>{zr(),Et(),At(),It(),G(),z(),N(),xa(),K(),Q(),D(),Ca(),Ma();var r=/* @__PURE__ */k(za());function n(e,t,r,n){var i=Br(Ct(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function i(e,t,r){return t=Ct(t),Tt(e,a()?Reflect.construct(t,r||[],Ct(e).constructor):t.apply(e,r))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){B(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){var t,r,n,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new f(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function f(e){function t(e){if(Object(e)!==e)return Promise.reject(/* @__PURE__ */new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return f=function(e){this.s=e,this.n=e.next},f.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}!function(r){if("object"===(void 0===e?"undefined":P(e))&&void 0!==t)t.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ExcelJS=r()}}(function(){return function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){var l="function"==typeof x&&x;if(!o&&l)return l(s,!0);if(a)return a(s,!0);var c=/* @__PURE__ */new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var a="function"==typeof x&&x,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,n){var i=e("fs"),a=e("fast-csv"),s=e("dayjs/plugin/customParseFormat"),o=e("dayjs/plugin/utc"),l=e("dayjs").extend(s).extend(o),c=e("../utils/stream-buf"),u=e("../utils/utils").fs.exists,f={true:!0,false:!1,"#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!"}};t.exports=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.workbook=t,this.worksheet=null},[{key:"readFile",value:(t=ka(/* @__PURE__ */r.default.mark(function e(t,n){var a,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},e.next=1,u(t);case 1:if(e.sent){e.next=2;break}throw new Error("File not found: ".concat(t));case 2:return a=i.createReadStream(t),e.next=3,this.read(a,n);case 3:return s=e.sent,a.close(),e.abrupt("return",s);case 4:case"end":return e.stop()}},e,this)})),function(e,r){return t.apply(this,arguments)})},{key:"read",value:function(e,t){var r=this;return t=t||{},new Promise(function(n,i){var s=r.workbook.addWorksheet(t.sheetName),o=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],c=t.map||function(e){if(""===e)return null;var t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;var r=o.reduce(function(t,r){if(t)return t;var n=l(e,r,!0);return n.isValid()?n:null},null);if(r)return new Date(r.valueOf());var n=f[e];return void 0!==n?n:e},u=a.parse(t.parserOptions).on("data",function(e){s.addRow(e.map(c))}).on("end",function(){u.emit("worksheet",s)});u.on("worksheet",n).on("error",i),e.pipe(u)})}},{key:"createInputStream",value:function(){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")}},{key:"write",value:function(e,t){var r=this;return new Promise(function(n,i){t=t||{};var s=r.workbook.getWorksheet(t.sheetName||t.sheetId),o=a.format(t.formatterOptions);e.on("finish",function(){n()}),o.on("error",i),o.pipe(e);var c=t,u=c.dateFormat,f=c.dateUTC,h=t.map||function(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)return u?f?l.utc(e).format(u):l(e).format(u):f?l.utc(e).format():l(e).format();if(e.error)return e.error;if("object"===P(e))return JSON.stringify(e)}return e},d=void 0===t.includeEmptyRows||t.includeEmptyRows,p=1;s&&s.eachRow(function(e,t){if(d)for(;p++<t-1;)o.write([]);var r=e.values;r.shift(),o.write(r.map(h)),p=t}),o.end()})}},{key:"writeFile",value:function(e,t){var r={encoding:(t=t||{}).encoding||"utf8"},n=i.createWriteStream(e,r);return this.write(n,t)}},{key:"writeBuffer",value:(e=ka(/* @__PURE__ */r.default.mark(function e(t){var n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=new c,e.next=1,this.write(n,t);case 1:return e.abrupt("return",n.read());case 2:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t}()},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,r){var n=e("../utils/col-cache");t.exports=/* @__PURE__ */function(){function e(t,r){Y(this,e);var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=t,r)if("string"==typeof r){var a=n.decodeAddress(r);this.nativeCol=a.col+i,this.nativeColOff=0,this.nativeRow=a.row+i,this.nativeRowOff=0}else void 0!==r.nativeCol?(this.nativeCol=r.nativeCol||0,this.nativeColOff=r.nativeColOff||0,this.nativeRow=r.nativeRow||0,this.nativeRowOff=r.nativeRowOff||0):void 0!==r.col?(this.col=r.col+i,this.row=r.row+i):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}return J(e,[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}],[{key:"asInstance",value:function(t){return t instanceof e||null==t?t:new e(t)}}])}()},{"../utils/col-cache":19}],3:[function(e,t,r){var n=e("../utils/col-cache"),i=e("../utils/under-dash"),a=e("./enums"),s=e("../utils/shared-formula").slideFormula,o=e("./note"),l=/* @__PURE__ */function(){function e(t,r,i){if(Y(this,e),!t||!r)throw new Error("A Cell needs a Row");this._row=t,this._column=r,n.validateAddress(i),this._address=i,this._value=_.create(e.Types.Null,this),this.style=this._mergeStyle(t.style,r.style,{}),this._mergeCount=0}return J(e,[{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this.style.numFmt=e}},{key:"font",get:function(){return this.style.font},set:function(e){this.style.font=e}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this.style.alignment=e}},{key:"border",get:function(){return this.style.border},set:function(e){this.style.border=e}},{key:"fill",get:function(){return this.style.fill},set:function(e){this.style.fill=e}},{key:"protection",get:function(){return this.style.protection},set:function(e){this.style.protection=e}},{key:"_mergeStyle",value:function(e,t,r){var n=e&&e.numFmt||t&&t.numFmt;n&&(r.numFmt=n);var i=e&&e.font||t&&t.font;i&&(r.font=i);var a=e&&e.alignment||t&&t.alignment;a&&(r.alignment=a);var s=e&&e.border||t&&t.border;s&&(r.border=s);var o=e&&e.fill||t&&t.fill;o&&(r.fill=o);var l=e&&e.protection||t&&t.protection;return l&&(r.protection=l),r}},{key:"address",get:function(){return this._address}},{key:"row",get:function(){return this._row.number}},{key:"col",get:function(){return this._column.number}},{key:"$col$row",get:function(){return"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===e.Types.Merge}},{key:"merge",value:function(t,r){this._value.release(),this._value=_.create(e.Types.Merge,this,t),r||(this.style=t.style)}},{key:"unmerge",value:function(){this.type===e.Types.Merge&&(this._value.release(),this._value=_.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(t){return this._value.type===e.Types.Merge&&this._value.isMergedTo(t)}},{key:"master",get:function(){return this.type===e.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===e.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(t){this.type!==e.Types.Merge?(this._value.release(),this._value=_.create(_.getType(t),this,t)):this._value.master.value=t}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(e){this._comment=new o(e)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return i.escapeHtml(this.text)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(t){this.type===e.Types.String&&(this._value=_.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:t}))}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(e){this.names=[e]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(e){var t=this,r=this.workbook.definedNames;r.removeAllNames(this.fullAddress),e.forEach(function(e){r.addEx(t.fullAddress,e)})}},{key:"addName",value:function(e){this.workbook.definedNames.addEx(this.fullAddress,e)}},{key:"removeName",value:function(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(e){this._dataValidations.add(this.address,e)}},{key:"model",get:function(){var e=this._value.model;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e},set:function(e){if(this._value.release(),this._value=_.create(e.type,this),this._value.model=e,e.comment&&"note"===e.comment.type)this._comment=o.fromModel(e.comment);e.style?this.style=e.style:this.style={}}}])}();l.Types=a.ValueType;var c=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.model={address:t.address,type:l.Types.Null}},[{key:"value",get:function(){return null},set:function(e){}},{key:"type",get:function(){return l.Types.Null}},{key:"effectiveType",get:function(){return l.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}}])}(),u=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.Number,value:r}},[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return l.Types.Number}},{key:"effectiveType",get:function(){return l.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),f=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.String,value:r}},[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return l.Types.String}},{key:"effectiveType",get:function(){return l.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),h=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.String,value:r}},[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"toString",value:function(){return this.model.value.richText.map(function(e){return e.text}).join("")}},{key:"type",get:function(){return l.Types.RichText}},{key:"effectiveType",get:function(){return l.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}}])}(),d=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.Date,value:r}},[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return l.Types.Date}},{key:"effectiveType",get:function(){return l.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),p=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.Hyperlink,text:r?r.text:void 0,hyperlink:r?r.hyperlink:void 0},r&&r.tooltip&&(this.model.tooltip=r.tooltip)},[{key:"value",get:function(){var e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e},set:function(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(e){this.model.text=e}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(e){this.model.hyperlink=e}},{key:"type",get:function(){return l.Types.Hyperlink}},{key:"effectiveType",get:function(){return l.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}}])}(),m=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.Merge,master:r?r.address:void 0},this._master=r,r&&r.addMergeRef()},[{key:"value",get:function(){return this._master.value},set:function(e){e instanceof l?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}},{key:"isMergedTo",value:function(e){return e===this._master}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return l.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}}])}(),v=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.cell=t,this.model={address:t.address,type:l.Types.Formula,shareType:r?r.shareType:void 0,ref:r?r.ref:void 0,formula:r?r.formula:void 0,sharedFormula:r?r.sharedFormula:void 0,result:r?r.result:void 0}},[{key:"_copyModel",value:function(e){var t={},r=function(r){var n=e[r];n&&(t[r]=n)};return r("formula"),r("result"),r("ref"),r("shareType"),r("sharedFormula"),t}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(e){this.model=this._copyModel(e)}},{key:"validate",value:function(e){switch(_.getType(e)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells: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)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(e){this.model.formula=e}},{key:"formulaType",get:function(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(e){this.model.result=e}},{key:"type",get:function(){return l.Types.Formula}},{key:"effectiveType",get:function(){var e=this.model.result;return null==e?a.ValueType.Null:e instanceof String||"string"==typeof e?a.ValueType.String:"number"==typeof e?a.ValueType.Number:e instanceof Date?a.ValueType.Date:e.text&&e.hyperlink?a.ValueType.Hyperlink:e.formula?a.ValueType.Formula:a.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var e=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=e&&s(e.formula,e.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}}])}(),g=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.SharedString,value:r}},[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return l.Types.SharedString}},{key:"effectiveType",get:function(){return l.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),b=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.Boolean,value:r}},[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return l.Types.Boolean}},{key:"effectiveType",get:function(){return l.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),y=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.Error,value:r}},[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return l.Types.Error}},{key:"effectiveType",get:function(){return l.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}}])}(),w=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.model={address:t.address,type:l.Types.String,value:JSON.stringify(r),rawValue:r}},[{key:"value",get:function(){return this.model.rawValue},set:function(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}},{key:"type",get:function(){return l.Types.String}},{key:"effectiveType",get:function(){return l.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),_={getType:function(e){return null==e?l.Types.Null:e instanceof String||"string"==typeof e?l.Types.String:"number"==typeof e?l.Types.Number:"boolean"==typeof e?l.Types.Boolean:e instanceof Date?l.Types.Date:e.text&&e.hyperlink?l.Types.Hyperlink:e.formula||e.sharedFormula?l.Types.Formula:e.richText?l.Types.RichText:e.sharedString?l.Types.SharedString:e.error?l.Types.Error:l.Types.JSON},types:[{t:l.Types.Null,f:c},{t:l.Types.Number,f:u},{t:l.Types.String,f:f},{t:l.Types.Date,f:d},{t:l.Types.Hyperlink,f:p},{t:l.Types.Formula,f:v},{t:l.Types.Merge,f:m},{t:l.Types.JSON,f:w},{t:l.Types.SharedString,f:g},{t:l.Types.RichText,f:h},{t:l.Types.Boolean,f:b},{t:l.Types.Error,f:y}].reduce(function(e,t){return e[t.t]=t.f,e},[]),create:function(e,t,r){var n=this.types[e];if(!n)throw new Error("Could not create Value of type ".concat(e));return new n(t,r)}};t.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,r){var n=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache");t.exports=/* @__PURE__ */function(){function e(t,r,n){Y(this,e),this._worksheet=t,this._number=r,!1!==n&&(this.defn=n)}return J(e,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return a.n2l(this._number)}},{key:"isCustomWidth",get:function(){return void 0!==this.width&&9!==this.width}},{key:"defn",get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:"headers",get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:"header",get:function(){return this._header},set:function(e){var t=this;void 0!==e?(this._header=e,this.headers.forEach(function(e,r){t._worksheet.getCell(r+1,t.number).value=e})):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"toString",value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:"equivalentTo",value:function(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&n.isEqual(this.style,e.style)}},{key:"isDefault",get:function(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;var e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"eachCell",value:function(e,t){var r=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,function(e,n){t(e.getCell(r),n)})}},{key:"values",get:function(){var e=[];return this.eachCell(function(t,r){t&&t.type!==i.ValueType.Null&&(e[r]=t.value)}),e},set:function(e){var t=this;if(e){var r=this.number,n=0;e.hasOwnProperty("0")&&(n=1),e.forEach(function(e,i){t._worksheet.getCell(i+n,r).value=e})}}},{key:"_applyStyle",value:function(e,t){return this.style[e]=t,this.eachCell(function(r){r[e]=t}),t}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}}],[{key:"toModel",value:function(e){var t=[],r=null;return e&&e.forEach(function(e,n){e.isDefault?r&&(r=null):r&&e.equivalentTo(r)?r.max=n+1:(r={min:n+1,max:n+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(r))}),t.length?t:void 0}},{key:"fromModel",value:function(t,r){var n=[],i=1,a=0;for(r=(r=r||[]).sort(function(e,t){return e.min-t.min});a<r.length;){for(var s=r[a++];i<s.min;)n.push(new e(t,i++));for(;i<=s.max;)n.push(new e(t,i++,s))}return n.length?n:null}}])}()},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,r){t.exports=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.model=t||{}},[{key:"add",value:function(e,t){return this.model[e]=t}},{key:"find",value:function(e){return this.model[e]}},{key:"remove",value:function(e){this.model[e]=void 0}}])}()},{}],6:[function(e,t,r){var n=e("../utils/under-dash"),i=e("../utils/col-cache"),a=e("../utils/cell-matrix"),s=e("./range"),o=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=/* @__PURE__ */function(){return J(function e(){Y(this,e),this.matrixMap={}},[{key:"getMatrix",value:function(e){return this.matrixMap[e]||(this.matrixMap[e]=new a)}},{key:"add",value:function(e,t){var r=i.decodeEx(e);this.addEx(r,t)}},{key:"addEx",value:function(e,t){var r=this.getMatrix(t);if(e.top)for(var n=e.left;n<=e.right;n++)for(var a=e.top;a<=e.bottom;a++){var s={sheetName:e.sheetName,address:i.n2l(n)+a,row:a,col:n};r.addCellEx(s)}else r.addCellEx(e)}},{key:"remove",value:function(e,t){var r=i.decodeEx(e);this.removeEx(r,t)}},{key:"removeEx",value:function(e,t){this.getMatrix(t).removeCellEx(e)}},{key:"removeAllNames",value:function(e){n.each(this.matrixMap,function(t){t.removeCellEx(e)})}},{key:"forEach",value:function(e){n.each(this.matrixMap,function(t,r){t.forEach(function(t){e(r,t)})})}},{key:"getNames",value:function(e){return this.getNamesEx(i.decodeEx(e))}},{key:"getNamesEx",value:function(e){return n.map(this.matrixMap,function(t,r){return t.findCellEx(e)&&r}).filter(Boolean)}},{key:"_explore",value:function(e,t){t.mark=!1;var r,n,i=t.sheetName,a=new s(t.row,t.col,t.row,t.col,i);function o(r,n){var s=e.findCellAt(i,r,t.col);return!(!s||!s.mark)&&(a[n]=r,s.mark=!1,!0)}for(n=t.row-1;o(n,"top");n--);for(n=t.row+1;o(n,"bottom");n++);function l(t,r){var s=[];for(n=a.top;n<=a.bottom;n++){var o=e.findCellAt(i,n,t);if(!o||!o.mark)return!1;s.push(o)}a[r]=t;for(var l=0;l<s.length;l++)s[l].mark=!1;return!0}for(r=t.col-1;l(r,"left");r--);for(r=t.col+1;l(r,"right");r++);return a}},{key:"getRanges",value:function(e,t){var r=this;return(t=t||this.matrixMap[e])?(t.forEach(function(e){e.mark=!0}),{name:e,ranges:t.map(function(e){return e.mark&&r._explore(t,e)}).filter(Boolean).map(function(e){return e.$shortRange})}):{name:e,ranges:[]}}},{key:"normaliseMatrix",value:function(e,t){e.forEachInSheet(t,function(e,t,r){e&&(e.row===t&&e.col===r||(e.row=t,e.col=r,e.address=i.n2l(r)+t))})}},{key:"spliceRows",value:function(e,t,r,i){var a=this;n.each(this.matrixMap,function(n){n.spliceRows(e,t,r,i),a.normaliseMatrix(n,e)})}},{key:"spliceColumns",value:function(e,t,r,i){var a=this;n.each(this.matrixMap,function(n){n.spliceColumns(e,t,r,i),a.normaliseMatrix(n,e)})}},{key:"model",get:function(){var e=this;return n.map(this.matrixMap,function(t,r){return e.getRanges(r,t)}).filter(function(e){return e.ranges.length})},set:function(e){var t=this.matrixMap={};e.forEach(function(e){var r=t[e.name]=new a;e.ranges.forEach(function(e){o.test(e.split("!").pop()||"")&&r.addCell(e)})})}}])}()},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,r){t.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!"}}},{}],8:[function(e,t,r){var n=e("../utils/col-cache"),i=e("./anchor");t.exports=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.worksheet=t,this.model=r},[{key:"model",get:function(){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:function(e){var t=e.type,r=e.imageId,a=e.range,s=e.hyperlinks;if(this.type=t,this.imageId=r,"image"===t)if("string"==typeof a){var o=n.decode(a);this.range={tl:new i(this.worksheet,{col:o.left,row:o.top},-1),br:new i(this.worksheet,{col:o.right,row:o.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,a.tl,0),br:a.br&&new i(this.worksheet,a.br,0),ext:a.ext,editAs:a.editAs,hyperlinks:s||a.hyperlinks}}}])}()},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,r){var n=e("../utils/under-dash"),i=/* @__PURE__ */function(){function e(t){Y(this,e),this.note=t}return J(e,[{key:"model",get:function(){var t=null;if("string"===P(this.note))t={type:"note",note:{texts:[{text:this.note}]}};else t={type:"note",note:this.note};return n.deepMerge({},e.DEFAULT_CONFIGS,t)},set:function(e){var t=e.note,r=t.texts;1===r.length&&1===Object.keys(r[0]).length?this.note=r[0].text:this.note=t}}],[{key:"fromModel",value:function(t){var r=new e;return r.model=t,r}}])}();i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,r){var n=e("../utils/col-cache");t.exports=/* @__PURE__ */function(){function e(){Y(this,e),this.decode(arguments)}return J(e,[{key:"setTLBR",value:function(e,t,r,i,a){if(arguments.length<4){var s=n.decodeAddress(e),o=n.decodeAddress(t);this.model={top:Math.min(s.row,o.row),left:Math.min(s.col,o.col),bottom:Math.max(s.row,o.row),right:Math.max(s.col,o.col),sheetName:r},this.setTLBR(s.row,s.col,o.row,o.col,a)}else this.model={top:Math.min(e,r),left:Math.min(t,i),bottom:Math.max(e,r),right:Math.max(t,i),sheetName:a}}},{key:"decode",value:function(t){switch(t.length){case 5:this.setTLBR(t[0],t[1],t[2],t[3],t[4]);break;case 4:this.setTLBR(t[0],t[1],t[2],t[3]);break;case 3:this.setTLBR(t[0],t[1],t[2]);break;case 2:this.setTLBR(t[0],t[1]);break;case 1:var r=t[0];if(r instanceof e)this.model={top:r.model.top,left:r.model.left,bottom:r.model.bottom,right:r.model.right,sheetName:r.sheetName};else if(r instanceof Array)this.decode(r);else if(r.top&&r.left&&r.bottom&&r.right)this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName};else{var i=n.decodeEx(r);i.top?this.model={top:i.top,left:i.left,bottom:i.bottom,right:i.right,sheetName:i.sheetName}:this.model={top:i.row,left:i.col,bottom:i.row,right:i.col,sheetName:i.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() - ".concat(t.length))}}},{key:"top",get:function(){return this.model.top||1},set:function(e){this.model.top=e}},{key:"left",get:function(){return this.model.left||1},set:function(e){this.model.left=e}},{key:"bottom",get:function(){return this.model.bottom||1},set:function(e){this.model.bottom=e}},{key:"right",get:function(){return this.model.right||1},set:function(e){this.model.right=e}},{key:"sheetName",get:function(){return this.model.sheetName},set:function(e){this.model.sheetName=e}},{key:"_serialisedSheetName",get:function(){var e=this.model.sheetName;return e?/^[a-zA-Z0-9]*$/.test(e)?"".concat(e,"!"):"'".concat(e,"'!"):""}},{key:"expand",value:function(e,t,r,n){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||n>this.right)&&(this.right=n)}},{key:"expandRow",value:function(e){if(e){var t=e.dimensions,r=e.number;t&&this.expand(r,t.min,r,t.max)}}},{key:"expandToAddress",value:function(e){var t=n.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}},{key:"tl",get:function(){return n.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(n.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return n.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(n.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&(!(e.bottom<this.top)&&(!(e.top>this.bottom)&&(!(e.right<this.left)&&!(e.left>this.right))))}},{key:"contains",value:function(e){var t=n.decodeEx(e);return this.containsEx(t)}},{key:"containsEx",value:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&(e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right)}},{key:"forEachAddress",value:function(e){for(var t=this.left;t<=this.right;t++)for(var r=this.top;r<=this.bottom;r++)e(n.encodeAddress(r,t),r,t)}}])}()},{"../utils/col-cache":19}],11:[function(e,t,r){var n=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache"),s=e("./cell");t.exports=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this._worksheet=t,this._number=r,this._cells=[],this.style={},this.outlineLevel=0},[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"commit",value:function(){this._worksheet._commitRow(this)}},{key:"destroy",value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:"findCell",value:function(e){return this._cells[e-1]}},{key:"getCellEx",value:function(e){var t=this._cells[e.col-1];if(!t){var r=this._worksheet.getColumn(e.col);t=new s(this,r,e.address),this._cells[e.col-1]=t}return t}},{key:"getCell",value:function(e){if("string"==typeof e){var t=this._worksheet.getColumnKey(e);e=t?t.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}},{key:"splice",value:function(e,t){for(var r=e+t,n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];var s,o,l,c=i.length-t,u=this._cells.length;if(c<0)for(s=e+i.length;s<=u;s++)l=this._cells[s-1],(o=this._cells[s-c-1])?((l=this.getCell(s)).value=o.value,l.style=o.style,l._comment=o._comment):l&&(l.value=null,l.style={},l._comment=void 0);else if(c>0)for(s=u;s>=r;s--)(o=this._cells[s-1])?((l=this.getCell(s+c)).value=o.value,l.style=o.style,l._comment=o._comment):this._cells[s+c-1]=void 0;for(s=0;s<i.length;s++)(l=this.getCell(e+s)).value=i[s],l.style={},l._comment=void 0}},{key:"eachCell",value:function(e,t){if(t||(t=e,e=null),e&&e.includeEmpty)for(var r=this._cells.length,n=1;n<=r;n++)t(this.getCell(n),n);else this._cells.forEach(function(e,r){e&&e.type!==i.ValueType.Null&&t(e,r+1)})}},{key:"addPageBreak",value:function(e,t){var r=this._worksheet,n=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,a={id:this._number,max:i,man:1};n&&(a.min=n),r.rowBreaks.push(a)}},{key:"values",get:function(){var e=[];return this._cells.forEach(function(t){t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)}),e},set:function(e){var t=this;if(this._cells=[],e)if(e instanceof Array){var r=0;e.hasOwnProperty("0")&&(r=1),e.forEach(function(e,n){void 0!==e&&(t.getCellEx({address:a.encodeAddress(t._number,n+r),row:t._number,col:n+r}).value=e)})}else this._worksheet.eachColumnKey(function(r,n){void 0!==e[n]&&(t.getCellEx({address:a.encodeAddress(t._number,r.number),row:t._number,col:r.number}).value=e[n])});else;}},{key:"hasValues",get:function(){return n.some(this._cells,function(e){return e&&e.type!==i.ValueType.Null})}},{key:"cellCount",get:function(){return this._cells.length}},{key:"actualCellCount",get:function(){var e=0;return this.eachCell(function(){e++}),e}},{key:"dimensions",get:function(){var e=0,t=0;return this._cells.forEach(function(r){r&&r.type!==i.ValueType.Null&&((!e||e>r.col)&&(e=r.col),t<r.col&&(t=r.col))}),e>0?{min:e,max:t}:null}},{key:"_applyStyle",value:function(e,t){return this.style[e]=t,this._cells.forEach(function(r){r&&(r[e]=t)}),t}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var e=[],t=0,r=0;return this._cells.forEach(function(n){if(n){var i=n.model;i&&((!t||t>n.col)&&(t=n.col),r<n.col&&(r=n.col),e.push(i))}}),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:function(e){var t,r=this;if(e.number!==this._number)throw new Error("Invalid row number in model");this._cells=[],e.cells.forEach(function(e){if(e.type===s.Types.Merge);else{var n;if(e.address)n=a.decodeAddress(e.address);else if(t){var i=t.row,o=t.col+1;n={row:i,col:o,address:a.encodeAddress(i,o),$col$row:"$".concat(a.n2l(o),"$").concat(i)}}t=n,r.getCellEx(n).model=e}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}])}()},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,r){var n=e("../utils/col-cache"),i=/* @__PURE__ */function(){return J(function e(t,r,n){Y(this,e),this.table=t,this.column=r,this.index=n},[{key:"_set",value:function(e,t){this.table.cacheState(),this.column[e]=t}},{key:"name",get:function(){return this.column.name},set:function(e){this._set("name",e)}},{key:"filterButton",get:function(){return this.column.filterButton},set:function(e){this.column.filterButton=e}},{key:"style",get:function(){return this.column.style},set:function(e){this.column.style=e}},{key:"totalsRowLabel",get:function(){return this.column.totalsRowLabel},set:function(e){this._set("totalsRowLabel",e)}},{key:"totalsRowFunction",get:function(){return this.column.totalsRowFunction},set:function(e){this._set("totalsRowFunction",e)}},{key:"totalsRowResult",get:function(){return this.column.totalsRowResult},set:function(e){this._set("totalsRowResult",e)}},{key:"totalsRowFormula",get:function(){return this.column.totalsRowFormula},set:function(e){this._set("totalsRowFormula",e)}}])}();t.exports=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this.worksheet=t,r&&(this.table=r,this.validate(),this.store())},[{key:"getFormula",value:function(e){switch(e.totalsRowFunction){case"none":return null;case"average":return"SUBTOTAL(101,".concat(this.table.name,"[").concat(e.name,"])");case"countNums":return"SUBTOTAL(102,".concat(this.table.name,"[").concat(e.name,"])");case"count":return"SUBTOTAL(103,".concat(this.table.name,"[").concat(e.name,"])");case"max":return"SUBTOTAL(104,".concat(this.table.name,"[").concat(e.name,"])");case"min":return"SUBTOTAL(105,".concat(this.table.name,"[").concat(e.name,"])");case"stdDev":return"SUBTOTAL(106,".concat(this.table.name,"[").concat(e.name,"])");case"var":return"SUBTOTAL(107,".concat(this.table.name,"[").concat(e.name,"])");case"sum":return"SUBTOTAL(109,".concat(this.table.name,"[").concat(e.name,"])");case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: ".concat(e.totalsRowFunction))}}},{key:"width",get:function(){return this.table.columns.length}},{key:"height",get:function(){return this.table.rows.length}},{key:"filterHeight",get:function(){return this.height+(this.table.headerRow?1:0)}},{key:"tableHeight",get:function(){return this.filterHeight+(this.table.totalsRow?1:0)}},{key:"validate",value:function(){var e=this,t=this.table,r=function(e,t,r){void 0===e[t]&&(e[t]=r)};r(t,"headerRow",!0),r(t,"totalsRow",!1),r(t,"style",{}),r(t.style,"theme","TableStyleMedium2"),r(t.style,"showFirstColumn",!1),r(t.style,"showLastColumn",!1),r(t.style,"showRowStripes",!1),r(t.style,"showColumnStripes",!1);var i=function(e,t){if(!e)throw new Error(t)};i(t.ref,"Table must have ref"),i(t.columns,"Table must have column definitions"),i(t.rows,"Table must have row definitions"),t.tl=n.decodeAddress(t.ref);var a=t.tl,s=a.row,o=a.col;i(s>0,"Table must be on valid row"),i(o>0,"Table must be on valid col");var l=this.width,c=this.filterHeight,u=this.tableHeight;t.autoFilterRef=n.encode(s,o,s+c-1,o+l-1),t.tableRef=n.encode(s,o,s+u-1,o+l-1),t.columns.forEach(function(t,n){i(t.name,"Column ".concat(n," must have a name")),0===n?r(t,"totalsRowLabel","Total"):(r(t,"totalsRowFunction","none"),t.totalsRowFormula=e.getFormula(t))})}},{key:"store",value:function(){var e=this,t=function(e,t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})},r=this.worksheet,n=this.table,i=n.tl,a=i.row,s=i.col,o=0;if(n.headerRow){var l=r.getRow(a+o++);n.columns.forEach(function(e,r){var n=e.style,i=e.name,a=l.getCell(s+r);a.value=i,t(a,n)})}if(n.rows.forEach(function(e){var i=r.getRow(a+o++);e.forEach(function(e,r){var a=i.getCell(s+r);a.value=e,t(a,n.columns[r].style)})}),n.totalsRow){var c=r.getRow(a+o++);n.columns.forEach(function(r,n){var i=c.getCell(s+n);0===n?i.value=r.totalsRowLabel:e.getFormula(r)?i.value={formula:r.totalsRowFormula,result:r.totalsRowResult}:i.value=null,t(i,r.style)})}}},{key:"load",value:function(e){var t=this,r=this.table,n=r.tl,i=n.row,a=n.col,s=0;if(r.headerRow){var o=e.getRow(i+s++);r.columns.forEach(function(e,t){o.getCell(a+t).value=e.name})}if(r.rows.forEach(function(t){var r=e.getRow(i+s++);t.forEach(function(e,t){r.getCell(a+t).value=e})}),r.totalsRow){var l=e.getRow(i+s++);r.columns.forEach(function(e,r){var n=l.getCell(a+r);0===r?n.value=e.totalsRowLabel:t.getFormula(e)&&(n.value={formula:e.totalsRowFormula,result:e.totalsRowResult})})}}},{key:"model",get:function(){return this.table},set:function(e){this.table=e}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var e=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var t=0;t<this._cache.tableHeight;t++)for(var r=this.worksheet.getRow(e.row+t),i=0;i<this._cache.width;i++){r.getCell(e.col+i).value=null}else{for(var a=this.tableHeight;a<this._cache.tableHeight;a++)for(var s=this.worksheet.getRow(e.row+a),o=0;o<this._cache.width;o++){s.getCell(e.col+o).value=null}for(var l=0;l<this.tableHeight;l++)for(var c=this.worksheet.getRow(e.row+l),u=this.width;u<this._cache.width;u++){c.getCell(e.col+u).value=null}}this.store()}}},{key:"addRow",value:function(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}},{key:"removeRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}},{key:"getColumn",value:function(e){var t=this.table.columns[e];return new i(this,t,e)}},{key:"addColumn",value:function(e,t,r){this.cacheState(),void 0===r?(this.table.columns.push(e),this.table.rows.forEach(function(e,r){e.push(t[r])})):(this.table.columns.splice(r,0,e),this.table.rows.forEach(function(e,n){e.splice(r,0,t[n])}))}},{key:"removeColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach(function(r){r.splice(e,t)})}},{key:"_assign",value:function(e,t,r){this.cacheState(),e[t]=r}},{key:"ref",get:function(){return this.table.ref},set:function(e){this._assign(this.table,"ref",e)}},{key:"name",get:function(){return this.table.name},set:function(e){this.table.name=e}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(e){this.table.displayName=e}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(e){this._assign(this.table,"headerRow",e)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(e){this._assign(this.table,"totalsRow",e)}},{key:"theme",get:function(){return this.table.style.name},set:function(e){this.table.style.name=e}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(e){this.table.style.showFirstColumn=e}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(e){this.table.style.showLastColumn=e}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(e){this.table.style.showRowStripes=e}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(e){this.table.style.showColumnStripes=e}}])}()},{"../utils/col-cache":19}],13:[function(e,t,r){var n=e("./worksheet"),i=e("./defined-names"),a=e("../xlsx/xlsx"),s=e("../csv/csv");t.exports=/* @__PURE__ */function(){return J(function e(){Y(this,e),this.category="",this.company="",this.created=/* @__PURE__ */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 i},[{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new s(this)),this._csv}},{key:"nextId",get:function(){for(var e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}},{key:"addWorksheet",value:function(e,t){var r=this.nextId;t&&("string"==typeof t?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),t={properties:{tabColor:t}}));var i=this._worksheets.reduce(function(e,t){return(t&&t.orderNo)>e?t.orderNo:e},0),a=new n(Object.assign({},t,{id:r,name:e,orderNo:i+1,workbook:this}));return this._worksheets[r]=a,a}},{key:"removeWorksheetEx",value:function(e){delete this._worksheets[e.id]}},{key:"removeWorksheet",value:function(e){var t=this.getWorksheet(e);t&&t.destroy()}},{key:"getWorksheet",value:function(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find(function(t){return t&&t.name===e}):void 0}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort(function(e,t){return e.orderNo-t.orderNo}).filter(Boolean)}},{key:"eachSheet",value:function(e){this.worksheets.forEach(function(t){e(t,t.id)})}},{key:"definedNames",get:function(){return this._definedNames}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(e){var t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}},{key:"getImage",value:function(e){return this.media[e]}},{key:"model",get:function(){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(function(e){return e.model}),sheets:this.worksheets.map(function(e){return 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:function(e){var t=this;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(function(r){var i=r.id,a=r.name,s=r.state,o=e.sheets&&e.sheets.findIndex(function(e){return e.id===i});(t._worksheets[i]=new n({id:i,name:a,orderNo:o,state:s,workbook:t})).model=r}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}])}()},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,r){var n=e("../utils/under-dash"),i=e("../utils/col-cache"),a=e("./range"),s=e("./row"),o=e("./column"),l=e("./enums"),c=e("./image"),u=e("./table"),f=e("./data-validations"),h=e("../utils/encryptor"),d=e("../utils/copy-style").copyStyle;t.exports=/* @__PURE__ */function(){return J(function e(t){Y(this,e),t=t||{},this._workbook=t.workbook,this.id=t.id,this.orderNo=t.orderNo,this.name=t.name,this.state=t.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},t.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:!(!t.pageSetup||!t.pageSetup.fitToWidth&&!t.pageSetup.fitToHeight||t.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},t.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},t.headerFooter),this.dataValidations=new f,this.views=t.views||[],this.autoFilter=t.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]},[{key:"name",get:function(){return this._name},set:function(e){if(void 0===e&&(e="sheet".concat(this.id)),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error("Worksheet name ".concat(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: ".concat(e));if(e&&e.length>31&&(console.warn("Worksheet name ".concat(e," exceeds 31 chars. This will be truncated")),e=e.substring(0,31)),this._workbook._worksheets.find(function(t){return t&&t.name.toLowerCase()===e.toLowerCase()}))throw new Error("Worksheet name already exists: ".concat(e));this._name=e}}},{key:"workbook",get:function(){return this._workbook}},{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"dimensions",get:function(){var e=new a;return this._rows.forEach(function(t){if(t){var r=t.dimensions;r&&e.expand(t.number,r.min,t.number,r.max)}}),e}},{key:"columns",get:function(){return this._columns},set:function(e){var t=this;this._headerRowCount=e.reduce(function(e,t){var r=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,r)},0);var r=1,n=this._columns=[];e.forEach(function(e){var i=new o(t,r++,!1);n.push(i),i.defn=e})}},{key:"getColumnKey",value:function(e){return this._keys[e]}},{key:"setColumnKey",value:function(e,t){this._keys[e]=t}},{key:"deleteColumnKey",value:function(e){delete this._keys[e]}},{key:"eachColumnKey",value:function(e){n.each(this._keys,e)}},{key:"getColumn",value:function(e){if("string"==typeof e){var t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length)for(var r=this._columns.length+1;r<=e;)this._columns.push(new o(this,r++));return this._columns[e-1]}},{key:"spliceColumns",value:function(e,t){for(var r=this,n=this._rows.length,i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];if(a.length>0)for(var o=function(n){var i=[e,t];a.forEach(function(e){i.push(e[n]||null)});var s=r.getRow(n+1);s.splice.apply(s,i)},l=0;l<n;l++)o(l);else this._rows.forEach(function(r){r&&r.splice(e,t)});var c=a.length-t,u=e+t,f=this._columns.length;if(c<0)for(var h=e+a.length;h<=f;h++)this.getColumn(h).defn=this.getColumn(h-c).defn;else if(c>0)for(var d=f;d>=u;d--)this.getColumn(d+c).defn=this.getColumn(d).defn;for(var p=e;p<e+a.length;p++)this.getColumn(p).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,a.length)}},{key:"lastColumn",get:function(){return this.getColumn(this.columnCount)}},{key:"columnCount",get:function(){var e=0;return this.eachRow(function(t){e=Math.max(e,t.cellCount)}),e}},{key:"actualColumnCount",get:function(){var e=[],t=0;return this.eachRow(function(r){r.eachCell(function(r){var n=r.col;e[n]||(e[n]=!0,t++)})}),t}},{key:"_commitRow",value:function(){}},{key:"_lastRowNumber",get:function(){for(var e=this._rows,t=e.length;t>0&&void 0===e[t-1];)t--;return t}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"findRow",value:function(e){return this._rows[e-1]}},{key:"findRows",value:function(e,t){return this._rows.slice(e-1,e-1+t)}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var e=0;return this.eachRow(function(){e++}),e}},{key:"getRow",value:function(e){var t=this._rows[e-1];return t||(t=this._rows[e-1]=new s(this,e)),t}},{key:"getRows",value:function(e,t){if(!(t<1)){for(var r=[],n=e;n<e+t;n++)r.push(this.getRow(n));return r}}},{key:"addRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",r=this._nextRow,n=this.getRow(r);return n.values=e,this._setStyleOption(r,"i"===t[0]?t:"n"),n}},{key:"addRows",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",n=[];return e.forEach(function(e){n.push(t.addRow(e,r))}),n}},{key:"insertRow",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,r),this.getRow(e)}},{key:"insertRows",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows.apply(this,[e,0].concat(I(t))),"n"!==r)for(var n=0;n<t.length;n++)"o"===r[0]&&void 0!==this.findRow(t.length+e+n)?this._copyStyle(t.length+e+n,e+n,"+"===r[1]):"i"===r[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+n,"+"===r[1]);return this.getRows(e,t.length)}},{key:"_setStyleOption",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}},{key:"_copyStyle",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getRow(e),i=this.getRow(t);i.style=d(n.style),n.eachCell({includeEmpty:r},function(e,t){i.getCell(t).style=d(e.style)}),i.height=n.height}},{key:"duplicateRow",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this._rows[e-1],a=new Array(t).fill(i.values);this.spliceRows.apply(this,[e+1,n?0:t].concat(I(a)));for(var s=function(){var t=r._rows[e+o];t.style=i.style,t.height=i.height,i.eachCell({includeEmpty:!0},function(e,r){t.getCell(r).style=e.style})},o=0;o<t;o++)s()}},{key:"spliceRows",value:function(e,t){for(var r=this,n=e+t,i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];var o,l,c=a.length,u=c-t,f=this._rows.length;if(u<0){e===f&&(this._rows[f-1]=void 0);var h=function(){if(l=r._rows[o-1]){var e=r.getRow(o+u);e.values=l.values,e.style=l.style,e.height=l.height,l.eachCell({includeEmpty:!0},function(t,r){e.getCell(r).style=t.style}),r._rows[o-1]=void 0}else r._rows[o+u-1]=void 0};for(o=n;o<=f;o++)h()}else if(u>0){var d=function(){if(l=r._rows[o-1]){var e=r.getRow(o+u);e.values=l.values,e.style=l.style,e.height=l.height,l.eachCell({includeEmpty:!0},function(t,n){if(e.getCell(n).style=t.style,"MergeValue"===t._value.constructor.name){var i=r.getRow(t._row._number+c).getCell(n),a=t._value._master,s=r.getRow(a._row._number+c).getCell(a._column._number);i.merge(s)}})}else r._rows[o+u-1]=void 0};for(o=f;o>=n;o--)d()}for(o=0;o<c;o++){var p=this.getRow(e+o);p.style={},p.values=a[o]}this.workbook.definedNames.spliceRows(this.name,e,t,c)}},{key:"eachRow",value:function(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty)for(var r=this._rows.length,n=1;n<=r;n++)t(this.getRow(n),n);else this._rows.forEach(function(e){e&&e.hasValues&&t(e,e.number)})}},{key:"getSheetValues",value:function(){var e=[];return this._rows.forEach(function(t){t&&(e[t.number]=t.values)}),e}},{key:"findCell",value:function(e,t){var r=i.getAddress(e,t),n=this._rows[r.row-1];return n?n.findCell(r.col):void 0}},{key:"getCell",value:function(e,t){var r=i.getAddress(e,t);return this.getRow(r.row).getCellEx(r)}},{key:"mergeCells",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=new a(t);this._mergeCellsInternal(n)}},{key:"mergeCellsWithoutStyle",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=new a(t);this._mergeCellsInternal(n,!0)}},{key:"_mergeCellsInternal",value:function(e,t){n.each(this._merges,function(t){if(t.intersects(e))throw new Error("Cannot merge already merged cells")});for(var r=this.getCell(e.top,e.left),i=e.top;i<=e.bottom;i++)for(var a=e.left;a<=e.right;a++)(i>e.top||a>e.left)&&this.getCell(i,a).merge(r,t);this._merges[r.address]=e}},{key:"_unMergeMaster",value:function(e){var t=this._merges[e.address];if(t){for(var r=t.top;r<=t.bottom;r++)for(var n=t.left;n<=t.right;n++)this.getCell(r,n).unmerge();delete this._merges[e.address]}}},{key:"hasMerges",get:function(){return n.some(this._merges,Boolean)}},{key:"unMergeCells",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=new a(t),i=n.top;i<=n.bottom;i++)for(var s=n.left;s<=n.right;s++){var o=this.findCell(i,s);o&&(o.type===l.ValueType.Merge?this._unMergeMaster(o.master):this._merges[o.address]&&this._unMergeMaster(o))}}},{key:"fillFormula",value:function(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared",s=i.decode(e),o=s.top,l=s.left,c=s.bottom,u=s.right,f=u-l+1,h=i.encodeAddress(o,l),d="shared"===a;n="function"==typeof r?r:Array.isArray(r)?Array.isArray(r[0])?function(e,t){return r[e-o][t-l]}:function(e,t){return r[(e-o)*f+(t-l)]}:function(){};for(var p=!0,m=o;m<=c;m++)for(var v=l;v<=u;v++)p?(this.getCell(m,v).value={shareType:a,formula:t,ref:e,result:n(m,v)},p=!1):this.getCell(m,v).value=d?{sharedFormula:h,result:n(m,v)}:n(m,v)}},{key:"addImage",value:function(e,t){var r={type:"image",imageId:e,range:t};this._media.push(new c(this,r))}},{key:"getImages",value:function(){return this._media.filter(function(e){return"image"===e.type})}},{key:"addBackgroundImage",value:function(e){var t={type:"background",imageId:e};this._media.push(new c(this,t))}},{key:"getBackgroundImageId",value:function(){var e=this._media.find(function(e){return"background"===e.type});return e&&e.imageId}},{key:"protect",value:function(e,t){var r=this;return new Promise(function(n){r.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(r.sheetProtection.algorithmName="SHA-512",r.sheetProtection.saltValue=h.randomBytes(16).toString("base64"),r.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,r.sheetProtection.hashValue=h.convertPasswordToHash(e,"SHA512",r.sheetProtection.saltValue,r.sheetProtection.spinCount)),t&&(r.sheetProtection=Object.assign(r.sheetProtection,t),!e&&"spinCount"in t&&delete r.sheetProtection.spinCount),n()})}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(e){var t=new u(this,e);return this.tables[e.name]=t,t}},{key:"getTable",value:function(e){return this.tables[e]}},{key:"removeTable",value:function(e){delete this.tables[e]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(e){this.conditionalFormattings.push(e)}},{key:"removeConditionalFormatting",value:function(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e}},{key:"model",get:function(){var 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(function(e){return e.model}),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(function(e){return e.model}),conditionalFormattings:this.conditionalFormattings};e.cols=o.toModel(this.columns);var t=e.rows=[],r=e.dimensions=new a;return this._rows.forEach(function(e){var n=e&&e.model;n&&(r.expand(n.number,n.min,n.number,n.max),t.push(n))}),e.merges=[],n.each(this._merges,function(t){e.merges.push(t.range)}),e},set:function(e){var t=this;this.name=e.name,this._columns=o.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new f(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(function(e){return new c(t,e)}),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce(function(e,t){var r=new u;return r.model=t,e[t.name]=r,e},{}),this.conditionalFormattings=e.conditionalFormattings}},{key:"_parseRows",value:function(e){var t=this;this._rows=[],e.rows.forEach(function(e){var r=new s(t,e.number);t._rows[r.number-1]=r,r.model=e})}},{key:"_parseMergeCells",value:function(e){var t=this;n.each(e.mergeCells,function(e){t.mergeCellsWithoutStyle(e)})}}])}()},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,r){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");var n={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach(function(e){n[e]=i[e]}),t.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,r){var n="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");r.bufferToString=function(e){return"string"==typeof e?e:n?n.decode(e):e.toString()}},{}],17:[function(e,t,r){var n="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),i=e("buffer").Buffer;r.stringToBuffer=function(e){return"string"!=typeof e?e:n?i.from(n.encode(e).buffer):i.from(e)}},{buffer:220}],18:[function(e,t,r){var n=e("./under-dash"),i=e("./col-cache");t.exports=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.template=t,this.sheets={}},[{key:"addCell",value:function(e){this.addCellEx(i.decodeEx(e))}},{key:"getCell",value:function(e){return this.findCellEx(i.decodeEx(e),!0)}},{key:"findCell",value:function(e){return this.findCellEx(i.decodeEx(e),!1)}},{key:"findCellAt",value:function(e,t,r){var n=this.sheets[e],i=n&&n[t];return i&&i[r]}},{key:"addCellEx",value:function(e){if(e.top)for(var t=e.top;t<=e.bottom;t++)for(var r=e.left;r<=e.right;r++)this.getCellAt(e.sheetName,t,r);else this.findCellEx(e,!0)}},{key:"getCellEx",value:function(e){return this.findCellEx(e,!0)}},{key:"findCellEx",value:function(e,t){var r=this.findSheet(e,t),n=this.findSheetRow(r,e,t);return this.findRowCell(n,e,t)}},{key:"getCellAt",value:function(e,t,r){var n=this.sheets[e]||(this.sheets[e]=[]),a=n[t]||(n[t]=[]);return a[r]||(a[r]={sheetName:e,address:i.n2l(r)+t,row:t,col:r})}},{key:"removeCellEx",value:function(e){var t=this.findSheet(e);if(t){var r=this.findSheetRow(t,e);r&&delete r[e.col]}}},{key:"forEachInSheet",value:function(e,t){var r=this.sheets[e];r&&r.forEach(function(e,r){e&&e.forEach(function(e,n){e&&t(e,r,n)})})}},{key:"forEach",value:function(e){var t=this;n.each(this.sheets,function(r,n){t.forEachInSheet(n,e)})}},{key:"map",value:function(e){var t=[];return this.forEach(function(r){t.push(e(r))}),t}},{key:"findSheet",value:function(e,t){var r=e.sheetName;return this.sheets[r]?this.sheets[r]:t?this.sheets[r]=[]:void 0}},{key:"findSheetRow",value:function(e,t,r){var n=t.row;return e&&e[n]?e[n]:r?e[n]=[]:void 0}},{key:"findRowCell",value:function(e,t,r){var n=t.col;return e&&e[n]?e[n]:r?e[n]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}},{key:"spliceRows",value:function(e,t,r,n){var i=this.sheets[e];if(i){for(var a=[],s=0;s<n;s++)a.push([]);i.splice.apply(i,[t,r].concat(a))}}},{key:"spliceColumns",value:function(e,t,r,i){var a=this.sheets[e];if(a){for(var s=[],o=0;o<i;o++)s.push(null);n.each(a,function(e){e.splice.apply(e,[t,r].concat(s))})}}}])}()},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,r){var n=/^[A-Z]+\d+$/,i={_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:function(e){return e<=26?1:e<=676?2:3},_fill:function(e){var t,r,n,i,a,s=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;s<=26;)t=this._dictionary[s-1],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(s=27;s<=702;)n=(r=s-27)%26,i=Math.floor(r/26),t=this._dictionary[i]+this._dictionary[n],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(s=703;s<=16384;)n=(r=s-703)%26,i=Math.floor(r/26)%26,a=Math.floor(r/676),t=this._dictionary[a]+this._dictionary[i]+this._dictionary[n],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=3}},l2n:function(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: ".concat(e));return this._l2n[e]},n2l:function(e){if(e<1||e>16384)throw new Error("".concat(e," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress:function(e){if(!n.test(e))throw new Error("Invalid Address: ".concat(e));return!0},decodeAddress:function(e){var t=e.length<5&&this._hash[e];if(t)return t;for(var r,n=!1,i="",a=0,s=!1,o="",l=0,c=0;c<e.length;c++)if(r=e.charCodeAt(c),!s&&r>=65&&r<=90)n=!0,i+=e[c],a=26*a+r-64;else if(r>=48&&r<=57)s=!0,o+=e[c],l=10*l+r-48;else if(s&&n&&36!==r)break;if(n){if(a>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(i))}else a=void 0;s||(l=void 0);var u={address:e=i+o,col:a,row:l,$col$row:"$".concat(i,"$").concat(o)};return a<=100&&l<=100&&(this._hash[e]=u,this._hash[u.$col$row]=u),u},getAddress:function(e,t){if(t){var r=this.n2l(t)+e;return this.decodeAddress(r)}return this.decodeAddress(e)},decode:function(e){var t=e.split(":");if(2===t.length){var r=this.decodeAddress(t[0]),n=this.decodeAddress(t[1]),i={top:Math.min(r.row,n.row),left:Math.min(r.col,n.col),bottom:Math.max(r.row,n.row),right:Math.max(r.col,n.col)};return i.tl=this.n2l(i.left)+i.top,i.br=this.n2l(i.right)+i.bottom,i.dimensions="".concat(i.tl,":").concat(i.br),i}return this.decodeAddress(e)},decodeEx:function(e){var t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=t[1]||t[2],n=t[3],i=n.split(":");if(i.length>1){var a=this.decodeAddress(i[0]),s=this.decodeAddress(i[1]),o=Math.min(a.row,s.row),l=Math.min(a.col,s.col),u=Math.max(a.row,s.row),f=Math.max(a.col,s.col);return a=this.n2l(l)+o,s=this.n2l(f)+u,{top:o,left:l,bottom:u,right:f,sheetName:r,tl:{address:a,col:l,row:o,$col$row:"$".concat(this.n2l(l),"$").concat(o),sheetName:r},br:{address:s,col:f,row:u,$col$row:"$".concat(this.n2l(f),"$").concat(u),sheetName:r},dimensions:"".concat(a,":").concat(s)}}if(n.startsWith("#"))return r?{sheetName:r,error:n}:{error:n};var h=this.decodeAddress(n);return r?c({sheetName:r},h):h},encodeAddress:function(e,t){return i.n2l(t)+e},encode:function(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(i.encodeAddress(arguments[0],arguments[1]),":").concat(i.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(e,t){var r=X(e,5),n=r[0],i=r[1],a=r[3],s=r[4],o=X(t,2),l=o[0],c=o[1];return l>=n&&l<=a&&c>=i&&c<=s}};t.exports=i},{}],20:[function(e,t,r){var n=function(e,t){return c(c({},e),t.reduce(function(t,r){return e[r]&&(t[r]=c({},e[r])),t},{}))},i=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e[r]&&(t[r]=n(e[r],i))};r.copyStyle=function(e){if(!e)return e;if(t=e,0===Object.keys(t).length)return{};var t,r=c({},e);return i(e,r,"font",["color"]),i(e,r,"alignment"),i(e,r,"protection"),e.border&&(i(e,r,"border"),i(e.border,r.border,"top",["color"]),i(e.border,r.border,"left",["color"]),i(e.border,r.border,"bottom",["color"]),i(e.border,r.border,"right",["color"]),i(e.border,r.border,"diagonal",["color"])),e.fill&&(i(e,r,"fill",["fgColor","bgColor","center"]),e.fill.stops&&(r.fill.stops=e.fill.stops.map(function(e){return n(e,["color"])}))),r}},{}],21:[function(e,t,r){(function(r){(function(){var n=e("crypto");t.exports={hash:function(e){for(var t=n.createHash(e),i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return t.update(r.concat(a)),t.digest()},convertPasswordToHash:function(e,t,i,a){if(t=t.toLowerCase(),n.getHashes().indexOf(t)<0)throw new Error("Hash algorithm '".concat(t,"' not supported!"));for(var s=r.from(e,"utf16le"),o=this.hash(t,r.from(i,"base64"),s),l=0;l<a;l++){var c=r.alloc(4);c.writeUInt32LE(l,0),o=this.hash(t,o,c)}return o.toString("base64")},randomBytes:function(e){return n.randomBytes(e)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,n){var i=e("saxes").SaxesParser,a=e("readable-stream").PassThrough,s=e("./browser-buffer-decode").bufferToString;t.exports=/* @__PURE__ */function(){var e,t=(e=/* @__PURE__ */r.default.mark(function e(t){var n,o,l,c,f,h,d,p,m,v;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.pipe&&!t[Symbol.asyncIterator]&&(t=t.pipe(new a)),(n=new i).on("error",function(e){o=e}),l=[],n.on("opentag",function(e){return l.push({eventType:"opentag",value:e})}),n.on("text",function(e){return l.push({eventType:"text",value:e})}),n.on("closetag",function(e){return l.push({eventType:"closetag",value:e})}),c=!1,f=!1,e.prev=1,d=u(t);case 2:return e.next=3,Ea(d.next());case 3:if(!(c=!(p=e.sent).done)){e.next=7;break}if(m=p.value,n.write(s(m)),!o){e.next=4;break}throw o;case 4:return e.next=5,l;case 5:l=[];case 6:c=!1,e.next=2;break;case 7:e.next=9;break;case 8:e.prev=8,v=e.catch(1),f=!0,h=v;case 9:if(e.prev=9,e.prev=10,!c||null==d.return){e.next=11;break}return e.next=11,Ea(d.return());case 11:if(e.prev=11,!f){e.next=12;break}throw h;case 12:return e.finish(11);case 13:return e.finish(9);case 14:case"end":return e.stop()}},e,null,[[1,8,9,14],[10,,11,13]])}),function(){return new Aa(e.apply(this,arguments))});return function(e){return t.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,r){var n=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,r){var s=n.decode(t),o=n.decode(r);return e.replace(i,function(e,t,r,i,l){if(l)return e;var c=a.exec(i);if(c){var u=c[1],f=c[2].toUpperCase(),h=c[3],d=c[4];if(f.length>3||3===f.length&&f>"XFD")return e;var p=n.l2n(f),m=parseInt(d,10);return u||(p+=o.col-s.col),h||(m+=o.row-s.row),(t||"")+(u||"")+n.n2l(p)+(h||"")+m}return e})}}},{"./col-cache":19}],24:[function(e,t,n){(function(n,i){(function(){var a=e("readable-stream"),s=e("./utils"),o=e("./string-buf"),l=/* @__PURE__ */function(){return J(function e(t,r){Y(this,e),this._data=t,this._encoding=r},[{key:"length",get:function(){return this.toBuffer().length}},{key:"copy",value:function(e,t,r,n){return this.toBuffer().copy(e,t,r,n)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}}])}(),c=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this._data=t},[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(e,t,r,n){return this._data._buf.copy(e,t,r,n)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}}])}(),u=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this._data=t},[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(e,t,r,n){this._data.copy(e,t,r,n)}},{key:"toBuffer",value:function(){return this._data}}])}(),f=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.size=t,this.buffer=i.alloc(t),this.iRead=0,this.iWrite=0},[{key:"toBuffer",value:function(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;var e=i.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}},{key:"read",value:function(e){var t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=i.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}},{key:"write",value:function(e,t,r){var n=Math.min(r,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+n),this.iWrite+=n,n}}])}(),h=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};s.inherits(h,a.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(function(e){return e.toBuffer()}))}},_getWritableBuffer:function(){if(this.buffers.length){var e=this.buffers[this.buffers.length-1];if(!e.full)return e}var t=new f(this.bufSize);return this.buffers.push(t),t},_pipe:function(e){var t=this;return ka(/* @__PURE__ */r.default.mark(function n(){var i;return r.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i=function(t){return new Promise(function(r){t.write(e.toBuffer(),function(){r()})})},r.next=1,Promise.all(t.pipes.map(i));case 1:case"end":return r.stop()}},n)}))()},_writeToBuffers:function(e){for(var t=0,r=e.length;t<r;){t+=this._getWritableBuffer().write(e,t,r-t)}},write:function(e,t,a){var f=this;return ka(/* @__PURE__ */r.default.mark(function h(){var d;return r.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t instanceof Function&&(a=t,t="utf8"),a=a||s.nop,!(e instanceof o)){r.next=1;break}d=new c(e),r.next=4;break;case 1:if(!(e instanceof i)){r.next=2;break}d=new u(e),r.next=4;break;case 2:if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer)){r.next=3;break}d=new l(e,t),r.next=4;break;case 3:throw new Error("Chunk must be one of type String, Buffer or StringBuf.");case 4:if(!f.pipes.length){r.next=9;break}if(!f.batch){r.next=5;break}for(f._writeToBuffers(d);!f.corked&&f.buffers.length>1;)f._pipe(f.buffers.shift());r.next=8;break;case 5:if(f.corked){r.next=7;break}return r.next=6,f._pipe(d);case 6:a(),r.next=8;break;case 7:f._writeToBuffers(d),n.nextTick(a);case 8:r.next=10;break;case 9:f.paused||f.emit("data",d.toBuffer()),f._writeToBuffers(d),f.emit("readable");case 10:return r.abrupt("return",!0);case 11:case"end":return r.stop()}},h)}))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(e,t,r){var n=this,i=function(e){e?r(e):(n._flush(),n.pipes.forEach(function(e){e.end()}),n.emit("finish"))};e?this.write(e,t,i):i()},read:function(e){var t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){var r=this.buffers[0],n=r.read(e);e-=n.length,t.push(n),r.eod&&r.full&&this.buffers.shift()}return i.concat(t)}return t=this.buffers.map(function(e){return e.toBuffer()}).filter(Boolean),this.buffers=[],i.concat(t)},setEncoding:function(e){this.encoding=e},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe:function(e){this.pipes=this.pipes.filter(function(t){return t!==e})},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),t.exports=h}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,r){(function(e){(function(){t.exports=/* @__PURE__ */function(){return J(function t(r){Y(this,t),this._buf=e.alloc(r&&r.size||16384),this._encoding=r&&r.encoding||"utf8",this._inPos=0,this._buffer=void 0},[{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(e){e=e||0,this._buffer=void 0,this._inPos=e}},{key:"_grow",value:function(t){for(var r=2*this._buf.length;r<t;)r*=2;var n=e.alloc(r);this._buf.copy(n,0),this._buf=n}},{key:"addText",value:function(e){this._buffer=void 0;for(var t=this._inPos+this._buf.write(e,this._inPos,this._encoding);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}},{key:"addStringBuf",value:function(e){e.length&&(this._buffer=void 0,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)}}])}()}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,r){var n=Object.prototype.toString,i=/["&<>]/,a={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach(function(r){t(e[r],r)}))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some(function(r){return t(e[r],r)}))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every(function(r){return t(e[r],r)}))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return t(e[r],r)}):[]},keyBy:function(e,t){return e.reduce(function(e,r){return e[r[t]]=r,e},{})},isEqual:function(e,t){var r,n=P(e),i=P(t),o=Array.isArray(e),l=Array.isArray(t);if(n!==i)return!1;if("object"===P(e)){if(o||l)return!(!o||!l)&&(e.length===t.length&&e.every(function(e,r){var n=t[r];return a.isEqual(e,n)}));if(null===e||null===t)return e===t;if(r=Object.keys(e),Object.keys(t).length!==r.length)return!1;var c,u=s(r);try{for(u.s();!(c=u.n()).done;){var f=c.value;if(!t.hasOwnProperty(f))return!1}}catch(h){u.e(h)}finally{u.f()}return a.every(e,function(e,r){var n=t[r];return a.isEqual(e,n)})}return e===t},escapeHtml:function(e){var t=i.exec(e);if(!t)return e;for(var r="",n="",a=0,s=t.index;s<e.length;s++){switch(e.charAt(s)){case'"':n=""";break;case"&":n="&";break;case"'":n="'";break;case"<":n="<";break;case">":n=">";break;default:continue}a!==s&&(r+=e.substring(a,s)),a=s+1,r+=n}return a!==s?r+e.substring(a,s):r},strcmp:function(e,t){return e<t?-1:e>t?1:0},isUndefined:function(e){return"[object Undefined]"===n.call(e)},isObject:function(e){return"[object Object]"===n.call(e)},deepMerge:function(){var e,t,r,n=arguments[0]||{},i=arguments.length;function s(i,s){e=n[s],r=Array.isArray(i),a.isObject(i)||r?(r?(r=!1,t=e&&Array.isArray(e)?e:[]):t=e&&a.isObject(e)?e:{},n[s]=a.deepMerge(t,i)):a.isUndefined(i)||(n[s]=i)}for(var o=0;o<i;o++)a.each(arguments[o],s);return n}};t.exports=a},{}],27:[function(e,t,r){(function(r,n){(function(){var i=e("fs"),a=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,s={nop:function(){},promiseImmediate:function(e){return new Promise(function(t){r.setImmediate?n(function(){t(e)}):setTimeout(function(){t(e)},1)})},inherits:function(e,t,r,n){e.super_=t,n||(n=r,r=null),r&&Object.keys(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))});var i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};n&&Object.keys(n).forEach(function(e){i[e]=Object.getOwnPropertyDescriptor(n,e)}),e.prototype=Object.create(t.prototype,i)},dateToExcel:function(e,t){return 25569+e.getTime()/864e5-(t?1462:0)},excelToDate:function(e,t){var r=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(r)},parsePath:function(e){var t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath:function(e){var t=s.parsePath(e);return"".concat(t.path,"/_rels/").concat(t.name,".rels")},xmlEncode:function(e){var t=a.exec(e);if(!t)return e;for(var r="",n="",i=0,s=t.index;s<e.length;s++){var o=e.charCodeAt(s);switch(o){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;case 127:n="";break;default:if(o<=31&&(o<=8||o>=11&&13!==o)){n="";break}continue}i!==s&&(r+=e.substring(i,s)),i=s+1,n&&(r+=n)}return i!==s?r+e.substring(i,s):r},xmlDecode:function(e){return e.replace(/&([a-z]*);/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return e}})},validInt:function(e){var t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:function(e){return!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)},fs:{exists:function(e){return new Promise(function(t){i.access(e,i.constants.F_OK,function(e){t(!e)})})}},toIsoDateString:function(e){return e.toIsoString().subsstr(0,10)},parseBoolean:function(e){return!0===e||"true"===e||1===e||"1"===e}};t.exports=s}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,r){var n=e("./under-dash"),i=e("./utils"),a=">";function s(e,t,r){e.push(" ".concat(t,'="').concat(i.xmlEncode(r.toString()),'"'))}function o(e,t){if(t){var r=[];n.each(t,function(e,t){void 0!==e&&s(r,t,e)}),e.push(r.join(""))}}var l=/* @__PURE__ */function(){return J(function e(){Y(this,e),this._xml=[],this._stack=[],this._rollbacks=[]},[{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"openXml",value:function(e){var t=this._xml;t.push("<?xml"),o(t,e),t.push("?>\n")}},{key:"openNode",value:function(e,t){var r=this.tos,n=this._xml;r&&this.open&&n.push(a),this._stack.push(e),n.push("<"),n.push(e),o(n,t),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&s(this._xml,e,t)}},{key:"addAttributes",value:function(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");o(this._xml,e)}},{key:"writeText",value:function(e){var t=this._xml;this.open&&(t.push(a),this.open=!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}},{key:"writeXml",value:function(e){this.open&&(this._xml.push(a),this.open=!1),this.leaf=!1,this._xml.push(e)}},{key:"closeNode",value:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(a)),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(e,t,r){this.openNode(e,t),void 0!==r&&this.writeText(r),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])}();l.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=l},{"./under-dash":26,"./utils":27}],29:[function(e,t,n){(function(n){(function(){var a=e("events"),s=e("jszip"),o=e("./stream-buf"),l=e("./browser-buffer-encode").stringToBuffer;t.exports={ZipWriter:/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),r.zip=new s,r.stream=new o,r}return Rt(t,e),J(t,[{key:"append",value:function(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(n.browser&&"string"==typeof e&&(e=l(e)),this.zip.file(t.name,e))}},{key:"finalize",value:(a=ka(/* @__PURE__ */r.default.mark(function e(){var t;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.zip.generateAsync(this.options);case 1:t=e.sent,this.stream.end(t),this.emit("finish");case 2:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"read",value:function(e){return this.stream.read(e)}},{key:"setEncoding",value:function(e){return this.stream.setEncoding(e)}},{key:"pause",value:function(){return this.stream.pause()}},{key:"resume",value:function(){return this.stream.resume()}},{key:"isPaused",value:function(){return this.stream.isPaused()}},{key:"pipe",value:function(e,t){return this.stream.pipe(e,t)}},{key:"unpipe",value:function(e){return this.stream.unpipe(e)}},{key:"unshift",value:function(e){return this.stream.unshift(e)}},{key:"wrap",value:function(e){return this.stream.wrap(e)}}]);var a}(a.EventEmitter)}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,r){t.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"}}},{}],31:[function(e,t,r){t.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"}},{}],32:[function(e,t,n){var i=e("../../utils/parse-sax"),a=e("../../utils/xml-stream");t.exports=/* @__PURE__ */function(){function e(){Y(this,e)}return J(e,[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(e){}},{key:"parseText",value:function(e){}},{key:"parseClose",value:function(e){}},{key:"reconcile",value:function(e,t){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(t){t instanceof e?t.reset():t.xform&&t.xform.reset()})}},{key:"mergeModel",value:function(e){this.model=Object.assign(this.model||{},e)}},{key:"parse",value:(n=ka(/* @__PURE__ */r.default.mark(function e(t){var n,i,a,o,l,c,f,h,d,p,m,v,g;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=!1,i=!1,e.prev=1,o=u(t);case 2:return e.next=3,o.next();case 3:if(!(n=!(l=e.sent).done)){e.next=13;break}c=l.value,f=s(c),e.prev=4,f.s();case 5:if((h=f.n()).done){e.next=9;break}if(d=h.value,p=d.eventType,m=d.value,"opentag"!==p){e.next=6;break}this.parseOpen(m),e.next=8;break;case 6:if("text"!==p){e.next=7;break}this.parseText(m),e.next=8;break;case 7:if("closetag"!==p){e.next=8;break}if(this.parseClose(m.name)){e.next=8;break}return e.abrupt("return",this.model);case 8:e.next=5;break;case 9:e.next=11;break;case 10:e.prev=10,v=e.catch(4),f.e(v);case 11:return e.prev=11,f.f(),e.finish(11);case 12:n=!1,e.next=2;break;case 13:e.next=15;break;case 14:e.prev=14,g=e.catch(1),i=!0,a=g;case 15:if(e.prev=15,e.prev=16,!n||null==o.return){e.next=17;break}return e.next=17,o.return();case 17:if(e.prev=17,!i){e.next=18;break}throw a;case 18:return e.finish(17);case 19:return e.finish(15);case 20:return e.abrupt("return",this.model);case 21:case"end":return e.stop()}},e,this,[[1,14,15,20],[4,10,11,12],[16,,17,19]])})),function(e){return n.apply(this,arguments)})},{key:"parseStream",value:(t=ka(/* @__PURE__ */r.default.mark(function e(t){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.parse(i(t)));case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"xml",get:function(){return this.toXml(this.model)}},{key:"toXml",value:function(e){var t=new a;return this.render(t,e),t.xml}}],[{key:"toAttribute",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(r)return t}else if(r||e!==t)return e.toString()}},{key:"toStringAttribute",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,r,n)}},{key:"toStringValue",value:function(e,t){return void 0===e?t:e}},{key:"toBoolAttribute",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(r)return t}else if(r||e!==t)return e?"1":"0"}},{key:"toBoolValue",value:function(e,t){return void 0===e?t:"1"===e}},{key:"toIntAttribute",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,r,n)}},{key:"toIntValue",value:function(e,t){return void 0===e?t:parseInt(e,10)}},{key:"toFloatAttribute",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,r,n)}},{key:"toFloatValue",value:function(e,t){return void 0===e?t:parseFloat(e)}}]);var t,n}()},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,r){var n=e("../base-xform"),a=e("../../../utils/col-cache"),s=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}},{key:"parseOpen",value:function(e){return"definedName"===e.name&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}},{key:"parseText",value:function(e){this._parsedText.push(e)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:l(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}])}(n);function o(e){try{return a.decodeEx(e),!0}catch(t){return!1}}function l(e){var t=[],r=!1,n="";return e.split(",").forEach(function(e){if(e){var i=(e.match(/'/g)||[]).length;if(i){var a=i%2==0;!r&&a&&o(e)?t.push(e):r&&!a?(r=!1,o(n+e)&&t.push(n+e),n=""):(r=!0,n+="".concat(e,","))}else r?n+="".concat(e,","):o(e)&&t.push(e)}}),t}t.exports=s},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,r){var n=e("../../../utils/utils");t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}},{key:"parseOpen",value:function(e){return"sheet"===e.name&&(this.model={name:n.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(e){return"calcPr"===e.name&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],36:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],37:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,t){var r={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(r.visibility=t.visibility),e.leafNode("workbookView",r)}},{key:"parseOpen",value:function(e){if("workbookView"===e.name){var t=this.model={},r=function(e,r,n){var i=void 0!==r?t[e]=parseInt(r,10):n;void 0!==i&&(t[e]=i)};return r("x",e.attributes.xWindow,0),r("y",e.attributes.yWindow,0),r("width",e.attributes.windowWidth,25e3),r("height",e.attributes.windowHeight,1e4),n="visibility",i=e.attributes.visibility,a="visible",void 0!==(s=void 0!==i?t[n]=i:a)&&(t[n]=s),r("activeTab",e.attributes.activeTab,void 0),r("firstSheet",e.attributes.firstSheet,void 0),!0}var n,i,a,s;return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],38:[function(e,t,r){var n=e("../../../utils/under-dash"),a=e("../../../utils/col-cache"),s=e("../../../utils/xml-stream"),o=e("../base-xform"),l=e("../static-xform"),c=e("../list-xform"),u=e("./defined-name-xform"),f=e("./sheet-xform"),h=e("./workbook-view-xform"),d=e("./workbook-properties-xform"),p=e("./workbook-calc-properties-xform"),m=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={fileVersion:t.STATIC_XFORMS.fileVersion,workbookPr:new d,bookViews:new c({tag:"bookViews",count:!1,childXform:new h}),sheets:new c({tag:"sheets",count:!1,childXform:new f}),definedNames:new c({tag:"definedNames",count:!1,childXform:new u}),calcPr:new p},e}return Rt(t,e),J(t,[{key:"prepare",value:function(e){e.sheets=e.worksheets;var t=[],r=0;e.sheets.forEach(function(e){if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach(function(n){var i=n.split(":"),a={name:"_xlnm.Print_Area",ranges:["'".concat(e.name,"'!$").concat(i[0],":$").concat(i[1])],localSheetId:r};t.push(a)}),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){var n=[];if(e.pageSetup.printTitlesColumn){var i=e.pageSetup.printTitlesColumn.split(":");n.push("'".concat(e.name,"'!$").concat(i[0],":$").concat(i[1]))}if(e.pageSetup.printTitlesRow){var a=e.pageSetup.printTitlesRow.split(":");n.push("'".concat(e.name,"'!$").concat(a[0],":$").concat(a[1]))}var s={name:"_xlnm.Print_Titles",ranges:n,localSheetId:r};t.push(s)}r++}),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach(function(e,t){e.name=e.type+(t+1)})}},{key:"render",value:function(e,r){e.openXml(s.StdDocAttributes),e.openNode("workbook",t.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,r.properties),this.map.bookViews.render(e,r.views),this.map.sheets.render(e,r.sheets),this.map.definedNames.render(e,r.definedNames),this.map.calcPr.render(e,r.calcProperties),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):("workbook"===e.name||(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"workbook"!==e||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}},{key:"reconcile",value:function(e){var t,r=(e.workbookRels||[]).reduce(function(e,t){return e[t.Id]=t,e},{}),i=[],s=0;(e.sheets||[]).forEach(function(n){var a=r[n.rId];a&&(t=e.worksheetHash["xl/".concat(a.Target.replace(/^(\s|\/xl\/)+/,""))])&&(t.name=n.name,t.id=n.id,t.state=n.state,i[s++]=t)});var o=[];n.each(e.definedNames,function(e){if("_xlnm.Print_Area"===e.name){if(t=i[e.localSheetId]){t.pageSetup||(t.pageSetup={});var r=a.decodeEx(e.ranges[0]);t.pageSetup.printArea=t.pageSetup.printArea?"".concat(t.pageSetup.printArea,"&&").concat(r.dimensions):r.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(t=i[e.localSheetId]){t.pageSetup||(t.pageSetup={});var n=e.ranges.join(","),s=/\$/g,l=n.match(/\$\d+:\$\d+/);if(l&&l.length){var c=l[0];t.pageSetup.printTitlesRow=c.replace(s,"")}var u=n.match(/\$[A-Z]+:\$[A-Z]+/);if(u&&u.length){var f=u[0];t.pageSetup.printTitlesColumn=f.replace(s,"")}}}else o.push(e)}),e.definedNames=o,e.media.forEach(function(e,t){e.index=t})}}])}(o);m.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"},m.STATIC_XFORMS={fileVersion:new l({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=m},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,r){var n=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),a=e("../base-xform"),s=t.exports=function(e){this.model=e};i.inherits(s,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new n),this._richTextXform},render:function(e,t){var r=this;t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach(function(t){r.richTextXform.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model=c({type:"note",note:{texts:[]}},e.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,r){var n=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),a=e("../base-xform"),s=e("./comment-xform"),o=t.exports=function(){this.map={comment:new s}};i.inherits(o,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(e,t){var r=this;t=t||this.model,e.openXml(n.StdDocAttributes),e.openNode("comments",o.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach(function(t){r.map.comment.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t))._model=e,r}return Rt(t,e),J(t,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(e,t,r){(t===r[2]||"x:SizeWithCells"===this.tag&&t===r[1])&&e.leafNode(this.tag)}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../../base-xform"))},{"../../base-xform":32}],42:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t))._model=e,r}return Rt(t,e),J(t,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(e){this.text=e}},{key:"parseClose",value:function(){return!1}}])}(e("../../base-xform"))},{"../../base-xform":32}],43:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x:Anchor"}},{key:"getAnchorRect",value:function(e){var t=Math.floor(e.left),r=Math.floor(68*(e.left-t)),n=Math.floor(e.top),i=Math.floor(18*(e.top-n)),a=Math.floor(e.right),s=Math.floor(68*(e.right-a)),o=Math.floor(e.bottom);return[t,r,n,i,a,s,o,Math.floor(18*(e.bottom-o))]}},{key:"getDefaultRect",value:function(e){var t=e.col,r=Math.max(e.row-2,0);return[t,6,r,14,t+2,2,r+4,16]}},{key:"render",value:function(e,t){var r=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,r.join(", "))}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(e){this.text=e}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],44:[function(e,t,r){var n=e("../base-xform"),a=e("./vml-anchor-xform"),s=e("./style/vml-protection-xform"),o=e("./style/vml-position-xform"),l=["twoCells","oneCells","absolute"];t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"x:Anchor":new a,"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"})},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x:ClientData"}},{key:"render",value:function(e,t){var r=t.note,n=r.protection,i=r.editAs;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,i,l),this.map["x:SizeWithCells"].render(e,i,l),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}},{key:"parseOpen",value:function(e){if(e.name===this.tag)this.reset(),this.model={anchor:[],protection:{},editAs:""};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}},{key:"normalizeModel",value:function(){var e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=l[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}}])}(n)},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,r){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),s=e("./vml-shape-xform"),o=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"v:shape":new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xml"}},{key:"render",value:function(e,r){var i=this;e.openXml(n.StdDocAttributes),e.openNode(this.tag,t.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(),r.comments.forEach(function(t,r){i.map["v:shape"].render(e,t,r)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset(),this.model={comments:[]};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}},{key:"reconcile",value:function(e,t){var r=this;e.anchors.forEach(function(e){e.br?r.map["xdr:twoCellAnchor"].reconcile(e,t):r.map["xdr:oneCellAnchor"].reconcile(e,t)})}}])}(a);o.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"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,r){var n=e("../base-xform"),a=e("./vml-textbox-xform"),s=e("./vml-client-data-xform"),o=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"v:textbox":new a,"x:ClientData":new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"v:shape"}},{key:"render",value:function(e,r,n){e.openNode("v:shape",t.V_SHAPE_ATTRIBUTES(r,n)),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,r),this.map["x:ClientData"].render(e,r),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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,!1)}}])}(n);o.V_SHAPE_ATTRIBUTES=function(e,t){return{id:"_x0000_s".concat(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}},t.exports=o},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"v:textbox"}},{key:"conversionUnit",value:function(e,t,r){return"".concat(parseFloat(e)*t.toFixed(2)).concat(r)}},{key:"reverseConversionUnit",value:function(e){var t=this;return(e||"").split(",").map(function(e){return Number(parseFloat(t.conversionUnit(parseFloat(e),.1,"")).toFixed(2))})}},{key:"render",value:function(e,t){var r=this,n={style:"mso-direction-alt:auto"};if(t&&t.note){var i=(t.note&&t.note.margins).inset;Array.isArray(i)&&(i=i.map(function(e){return r.conversionUnit(e,10,"mm")}).join(",")),i&&(n.inset=i)}e.openNode("v:textbox",n),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name!==this.tag||(this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../base-xform"))},{"../base-xform":32}],48:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"createNewModel",value:function(e){return{}}},{key:"parseOpen",value:function(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"onParserClose",value:function(e,t){this.model[e]=t.model}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}])}(e("./base-xform"))},{"./base-xform":32}],49:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return"HeadingPairs"===e.name}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return"HeadingPairs"!==e}}])}(e("../base-xform"))},{"../base-xform":32}],50:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach(function(t){e.leafNode("vt:lpstr",void 0,t.name)}),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return"TitlesOfParts"===e.name}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return"TitlesOfParts"!==e}}])}(e("../base-xform"))},{"../base-xform":32}],51:[function(e,t,r){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),s=e("../simple/string-xform"),o=e("./app-heading-pairs-xform"),l=e("./app-titles-of-parts-xform"),c=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new l},e}return Rt(t,e),J(t,[{key:"render",value:function(e,r){e.openXml(n.StdDocAttributes),e.openNode("Properties",t.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,r.worksheets),this.map.TitleOfParts.render(e,r.worksheets),this.map.Company.render(e,r.company||""),this.map.Manager.render(e,r.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"Properties"===e.name||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"Properties"!==e||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}])}(a);c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,r){var n=e("../../../utils/xml-stream"),a=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,r){e.openXml(n.StdDocAttributes),e.openNode("Types",t.PROPERTY_ATTRIBUTES);var i={};(r.media||[]).forEach(function(t){if("image"===t.type){var r=t.extension;i[r]||(i[r]=!0,e.leafNode("Default",{Extension:r,ContentType:"image/".concat(r)}))}}),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"}),r.worksheets.forEach(function(t){var r="/xl/worksheets/sheet".concat(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"}),r.sharedStrings&&r.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),r.tables&&r.tables.forEach(function(t){e.leafNode("Override",{PartName:"/xl/tables/".concat(t.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),r.drawings&&r.drawings.forEach(function(t){e.leafNode("Override",{PartName:"/xl/drawings/".concat(t.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),r.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),r.commentRefs.forEach(function(t){var r=t.commentName;e.leafNode("Override",{PartName:"/xl/".concat(r,".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()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,r){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),s=e("../simple/date-xform"),o=e("../simple/string-xform"),l=e("../simple/integer-xform"),c=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).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:t.DateFormat}),"cp:revision":new l({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:t.DateAttrs,format:t.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:t.DateAttrs,format:t.DateFormat})},e}return Rt(t,e),J(t,[{key:"render",value:function(e,r){e.openXml(n.StdDocAttributes),e.openNode("cp:coreProperties",t.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,r.creator),this.map["dc:title"].render(e,r.title),this.map["dc:subject"].render(e,r.subject),this.map["dc:description"].render(e,r.description),this.map["dc:identifier"].render(e,r.identifier),this.map["dc:language"].render(e,r.language),this.map["cp:keywords"].render(e,r.keywords),this.map["cp:category"].render(e,r.category),this.map["cp:lastModifiedBy"].render(e,r.lastModifiedBy),this.map["cp:lastPrinted"].render(e,r.lastPrinted),this.map["cp:revision"].render(e,r.revision),this.map["cp:version"].render(e,r.version),this.map["cp:contentStatus"].render(e,r.contentStatus),this.map["cp:contentType"].render(e,r.contentType),this.map["dcterms:created"].render(e,r.created),this.map["dcterms:modified"].render(e,r.modified),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return 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},!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}}])}(a);c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.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"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"render",value:function(e,t){e.leafNode("Relationship",t)}},{key:"parseOpen",value:function(e){return"Relationship"===e.name&&(this.model=e.attributes,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],55:[function(e,t,r){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),s=e("./relationship-xform"),o=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={Relationship:new s},e}return Rt(t,e),J(t,[{key:"render",value:function(e,r){var i=this;r=r||this._values,e.openXml(n.StdDocAttributes),e.openNode("Relationships",t.RELATIONSHIPS_ATTRIBUTES),r.forEach(function(t){i.map.Relationship.render(e,t)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if("Relationships"===e.name)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===e)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(e))}}])}(a);o.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"reconcilePicture",value:function(e,t){if(e&&e.rId){var r=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){var n=r[1],i=t.mediaIndex[n];return t.media[i]}}}}])}(e("../base-xform"))},{"../base-xform":32}],57:[function(e,t,r){var n=e("../base-xform"),a=e("./blip-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"a:blip":new a},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xdr:blipFill"}},{key:"render",value:function(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()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:blip"].model,!1)}}])}(n)},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"a:blip"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}},{key:"parseOpen",value:function(e){return e.name!==this.tag||(this.model={rId:e.attributes["r:embed"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../base-xform"))},{"../base-xform":32}],59:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xdr:cNvPicPr"}},{key:"render",value:function(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../base-xform"))},{"../base-xform":32}],60:[function(e,t,r){var n=e("../base-xform"),a=e("./hlink-click-xform"),s=e("./ext-lst-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"a:hlinkClick":new a,"a:extLst":new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xdr:cNvPr"}},{key:"render",value:function(e,t){e.openNode(this.tag,{id:t.index,name:"Picture ".concat(t.index)}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}])}(n)},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,r){var n=e("../base-xform"),a=e("../simple/integer-xform");t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).tag=e.tag,r.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})},r}return Rt(t,e),J(t,[{key:"render",value:function(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()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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},!1)}}])}(n)},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,r){var n=e("../../../utils/col-cache"),a=e("../../../utils/xml-stream"),s=e("../base-xform"),o=e("./two-cell-anchor-xform"),l=e("./one-cell-anchor-xform");var c=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new l},e}return Rt(t,e),J(t,[{key:"prepare",value:function(e){var t=this;e.anchors.forEach(function(e,r){e.anchorType=function(e){return("string"==typeof e.range?n.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(e),t.map[e.anchorType].prepare(e,{index:r})})}},{key:"tag",get:function(){return"xdr:wsDr"}},{key:"render",value:function(e,r){var n=this;e.openXml(a.StdDocAttributes),e.openNode(this.tag,t.DRAWING_ATTRIBUTES),r.anchors.forEach(function(t){n.map[t.anchorType].render(e,t)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset(),this.model={anchors:[]};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}},{key:"reconcile",value:function(e,t){var r=this;e.anchors.forEach(function(e){e.br?r.map["xdr:twoCellAnchor"].reconcile(e,t):r.map["xdr:oneCellAnchor"].reconcile(e,t)})}}])}(s);c.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=c},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"a:extLst"}},{key:"render",value:function(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()}},{key:"parseOpen",value:function(e){return e.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../base-xform"))},{"../base-xform":32}],64:[function(e,t,r){var n=e("../base-xform"),a=9525;t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).tag=e.tag,r.map={},r}return Rt(t,e),J(t,[{key:"render",value:function(e,t){e.openNode(this.tag);var r=Math.floor(t.width*a),n=Math.floor(t.height*a);e.addAttribute("cx",r),e.addAttribute("cy",n),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/a,height:parseInt(e.attributes.cy||"0",10)/a},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(n)},{"../base-xform":32}],65:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"a:hlinkClick"}},{key:"render",value:function(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}},{key:"parseOpen",value:function(e){return e.name!==this.tag||(this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],66:[function(e,t,r){var n=e("../base-xform"),a=e("./c-nv-pr-xform"),s=e("./c-nv-pic-pr-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xdr:nvPicPr"}},{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}])}(n)},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,r){var n=e("./base-cell-anchor-xform"),a=e("../static-xform"),s=e("./cell-position-xform"),o=e("./ext-xform"),l=e("./pic-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new l,"xdr:clientData":new a({tag:"xdr:clientData"})},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xdr:oneCellAnchor"}},{key:"prepare",value:function(e,t){this.map["xdr:pic"].prepare(e.picture,t)}},{key:"render",value:function(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()}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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,!1)}},{key:"reconcile",value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}}])}(n)},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,r){var n=e("../base-xform"),a=e("../static-xform"),s=e("./blip-fill-xform"),o=e("./nv-pic-pr-xform"),l=e("./sp-pr");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"xdr:nvPicPr":new o,"xdr:blipFill":new s,"xdr:spPr":new a(l)},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xdr:pic"}},{key:"prepare",value:function(e,t){e.index=t.index+1}},{key:"render",value:function(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()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}])}(n)},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,r){t.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"}]}]}},{}],70:[function(e,t,r){var n=e("./base-cell-anchor-xform"),a=e("../static-xform"),s=e("./cell-position-xform"),o=e("./pic-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new a({tag:"xdr:clientData"})},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xdr:twoCellAnchor"}},{key:"prepare",value:function(e,t){this.map["xdr:pic"].prepare(e.picture,t)}},{key:"render",value:function(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()}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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,!1)}},{key:"reconcile",value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}}])}(n)},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).tag=e.tag,r.always=!!e.always,r.count=e.count,r.empty=e.empty,r.$count=e.$count||"count",r.$=e.$,r.childXform=e.childXform,r.maxItems=e.maxItems,r}return Rt(t,e),J(t,[{key:"prepare",value:function(e,t){var r=this.childXform;e&&e.forEach(function(e,n){t.index=n,r.prepare(e,t)})}},{key:"render",value:function(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);var r=this.childXform;(t||[]).forEach(function(t,n){r.render(e,t,n)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(e,t){if(e){var r=this.childXform;e.forEach(function(e){r.reconcile(e,t)})}}}])}(e("./base-xform"))},{"./base-xform":32}],72:[function(e,t,r){var n=e("../../../utils/col-cache");t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"autoFilter"}},{key:"render",value:function(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{var r=function(e){return"string"==typeof e?e:n.getAddress(e.row,e.column).address},i=r(t.from),a=r(t.to);i&&a&&e.leafNode("autoFilter",{ref:"".concat(i,":").concat(a)})}}},{key:"parseOpen",value:function(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}])}(e("../base-xform"))},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,r){var n=e("../../../utils/utils"),a=e("../base-xform"),s=e("../../../doc/range"),o=e("../../../doc/enums"),l=e("../strings/rich-text-xform");function u(e){if(null==e)return o.ValueType.Null;if(e instanceof String||"string"==typeof e)return o.ValueType.String;if("number"==typeof e)return o.ValueType.Number;if("boolean"==typeof e)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")}t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).richTextXForm=new l,e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"c"}},{key:"prepare",value:function(e,t){var r,n=t.styles.addStyleModel(e.style||{},(r=e).type===o.ValueType.Formula?u(r.result):r.type);switch(n&&(e.styleId=n),e.comment&&t.comments.push(c(c({},e.comment),{},{ref:e.address})),e.type){case o.ValueType.String:case o.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case o.ValueType.Date:t.date1904&&(e.date1904=!0);break;case o.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(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=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){var i=t.formulae[e.sharedFormula];if(!i)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(e.address));void 0===i.si?(i.shareType="shared",i.si=t.siFormulae++,i.range=new s(i.address,e.address)):i.range&&i.range.expandToAddress(e.address),e.si=i.si}}}},{key:"renderFormula",value:function(e,t){var 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:void 0!==t.si&&(r={t:"shared",si:t.si})}switch(u(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,n.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(e,t){var r=this;if(t.type!==o.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),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:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach(function(t){r.richTextXForm.render(e,t)}),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case o.ValueType.Date:e.leafNode("v",null,n.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case o.ValueType.Formula:this.renderFormula(e,t);case o.ValueType.Merge:}e.closeNode()}}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}},{key:"parseClose",value:function(e){switch(e){case"c":var t=this.model;if(t.formula||t.shareType)t.type=o.ValueType.Formula,t.value&&("str"===this.t?t.result=n.xmlDecode(t.value):"b"===this.t?t.result=0!==parseInt(t.value,10):"e"===this.t?t.result={error:t.value}:t.result=parseFloat(t.value),t.value=void 0);else if(void 0!==t.value)switch(this.t){case"s":t.type=o.ValueType.String,t.value=parseInt(t.value,10);break;case"str":t.type=o.ValueType.String,t.value=n.xmlDecode(t.value);break;case"inlineStr":t.type=o.ValueType.String;break;case"b":t.type=o.ValueType.Boolean,t.value=0!==parseInt(t.value,10);break;case"e":t.type=o.ValueType.Error,t.value={error:t.value};break;default:t.type=o.ValueType.Number,t.value=parseFloat(t.value)}else t.styleId?t.type=o.ValueType.Null:t.type=o.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}},{key:"reconcile",value:function(e,t){var r=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(r&&(e.style=r),void 0!==e.styleId&&(e.styleId=void 0),e.type){case o.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=o.ValueType.RichText);break;case o.ValueType.Number:r&&n.isDateFmt(r.numFmt)&&(e.type=o.ValueType.Date,e.value=n.excelToDate(e.value,t.date1904));break;case o.ValueType.Formula:void 0!==e.result&&r&&n.isDateFmt(r.numFmt)&&(e.result=n.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}var i=t.hyperlinkMap[e.address];i&&(e.type===o.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=o.ValueType.Hyperlink,e.hyperlink=i);var a=t.commentsMap&&t.commentsMap[e.address];a&&(e.comment=a)}}])}(a)},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,r){var n=e("../../base-xform");t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x14:cfIcon"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}},{key:"parseOpen",value:function(e){var t=e.attributes;this.model={iconSet:t.iconSet,iconId:n.toIntValue(t.iconId)}}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(n)},{"../../base-xform":32}],75:[function(e,t,r){var n=e("uuid").v4,a=e("../../base-xform"),s=e("../../composite-xform"),o=e("./databar-ext-xform"),l=e("./icon-set-ext-xform"),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"x14:dataBar":e.databarXform=new o,"x14:iconSet":e.iconSetXform=new l},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x14:cfRule"}},{key:"prepare",value:function(e){t.isExt(e)&&(e.x14Id="{".concat(n(),"}").toUpperCase())}},{key:"render",value:function(e,r){if(t.isExt(r))switch(r.type){case"dataBar":this.renderDataBar(e,r);break;case"iconSet":this.renderIconSet(e,r)}}},{key:"renderDataBar",value:function(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}},{key:"renderIconSet",value:function(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||"{".concat(n(),"}")}),this.iconSetXform.render(e,t),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{type:t.type,x14Id:t.id,priority:a.toIntValue(t.priority)}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}}],[{key:"isExt",value:function(e){return"dataBar"===e.type?o.isExt(e):!("iconSet"!==e.type||!e.custom&&!c[e.iconSet])}}])}(s)},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,r){var n=e("../../composite-xform"),a=e("./f-ext-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"xm:f":e.fExtXform=new a},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x14:cfvo"}},{key:"render",value:function(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}},{key:"createNewModel",value:function(e){return{type:e.attributes.type}}},{key:"onParserClose",value:function(e,t){if("xm:f"===e)this.model.value=t.model?parseFloat(t.model):0}}])}(n)},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,r){var n=e("../../composite-xform"),a=e("./sqref-ext-xform"),s=e("./cf-rule-ext-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"xm:sqref":e.sqRef=new a,"x14:cfRule":e.cfRule=new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x14:conditionalFormatting"}},{key:"prepare",value:function(e,t){var r=this;e.rules.forEach(function(e){r.cfRule.prepare(e,t)})}},{key:"render",value:function(e,t){var r=this;t.rules.some(s.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(s.isExt).forEach(function(t){return r.cfRule.render(e,t)}),this.sqRef.render(e,t.ref),e.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}])}(n)},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,r){var n=e("../../composite-xform"),a=e("./cf-rule-ext-xform"),s=e("./conditional-formatting-ext-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"x14:conditionalFormatting":e.cfXform=new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x14:conditionalFormattings"}},{key:"hasContent",value:function(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some(function(e){return e.rules.some(a.isExt)})),e.hasExtContent}},{key:"prepare",value:function(e,t){var r=this;e.forEach(function(e){r.cfXform.prepare(e,t)})}},{key:"render",value:function(e,t){var r=this;this.hasContent(t)&&(e.openNode(this.tag),t.forEach(function(t){return r.cfXform.render(e,t)}),e.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(e,t){this.model.push(t.model)}}])}(n)},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,r){var n=e("../../base-xform"),a=e("../../composite-xform"),s=e("../../style/color-xform"),o=e("./cfvo-ext-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"x14:cfvo":e.cfvoXform=new o,"x14:borderColor":e.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":e.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":e.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":e.axisColorXform=new s("x14:axisColor")},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x14:dataBar"}},{key:"render",value:function(e,t){var r=this;e.openNode(this.tag,{minLength:n.toIntAttribute(t.minLength,0,!0),maxLength:n.toIntAttribute(t.maxLength,100,!0),border:n.toBoolAttribute(t.border,!1),gradient:n.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:n.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toAttribute(t.axisPosition,"auto"),direction:n.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach(function(t){r.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()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{cfvo:[],minLength:n.toIntValue(t.minLength,0),maxLength:n.toIntValue(t.maxLength,100),border:n.toBoolValue(t.border,!1),gradient:n.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:n.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toStringValue(t.axisPosition,"auto"),direction:n.toStringValue(t.direction,"leftToRight")}}},{key:"onParserClose",value:function(e,t){var r=X(e.split(":"),2)[1];if("cfvo"===r)this.model.cfvo.push(t.model);else this.model[r]=t.model}}],[{key:"isExt",value:function(e){return!e.gradient}}])}(a)},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xm:f"}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../../base-xform"))},{"../../base-xform":32}],81:[function(e,t,r){var n=e("../../base-xform"),a=e("../../composite-xform"),s=e("./cfvo-ext-xform"),o=e("./cf-icon-ext-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"x14:cfvo":e.cfvoXform=new s,"x14:cfIcon":e.cfIconXform=new o},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x14:iconSet"}},{key:"render",value:function(e,t){var r=this;e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet),reverse:n.toBoolAttribute(t.reverse,!1),showValue:n.toBoolAttribute(t.showValue,!0),custom:n.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach(function(t){r.cfvoXform.render(e,t)}),t.icons&&t.icons.forEach(function(t,n){t.iconId=n,r.cfIconXform.render(e,t)}),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{cfvo:[],iconSet:n.toStringValue(t.iconSet,"3TrafficLights"),reverse:n.toBoolValue(t.reverse,!1),showValue:n.toBoolValue(t.showValue,!0)}}},{key:"onParserClose",value:function(e,t){var r=X(e.split(":"),2)[1];switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[r]=t.model}}}])}(a)},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xm:sqref"}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../../base-xform"))},{"../../base-xform":32}],83:[function(e,t,r){var n=e("../../base-xform"),a=e("../../composite-xform"),s=e("../../../../doc/range"),o=e("./databar-xform"),l=e("./ext-lst-ref-xform"),u=e("./formula-xform"),f=e("./color-scale-xform"),h=e("./icon-set-xform"),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={dataBar:e.databarXform=new o,extLst:e.extLstRefXform=new l,formula:e.formulaXform=new u,colorScale:e.colorScaleXform=new f,iconSet:e.iconSetXform=new h},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"cfRule"}},{key:"render",value:function(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)}}},{key:"renderExpression",value:function(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}},{key:"renderCellIs",value:function(e,t){var r=this;e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach(function(t){r.formulaXform.render(e,t)}),e.closeNode()}},{key:"renderTop10",value:function(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:n.toBoolAttribute(t.percent,!1),bottom:n.toBoolAttribute(t.bottom,!1),rank:n.toIntValue(t.rank,10,!0)})}},{key:"renderAboveAverage",value:function(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:n.toBoolAttribute(t.aboveAverage,!0)})}},{key:"renderDataBar",value:function(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}},{key:"renderColorScale",value:function(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}},{key:"renderIconSet",value:function(e,r){t.isPrimitive(r)&&(e.openNode(this.tag,{type:"iconSet",priority:r.priority}),this.iconSetXform.render(e,r),e.closeNode())}},{key:"renderText",value:function(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:n.toStringAttribute(t.operator,"containsText")});var r=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new s(e.ref).tl;switch(e.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(e.text,'",').concat(t,")))");case"containsBlanks":return"LEN(TRIM(".concat(t,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(t,"))>0");case"containsErrors":return"ISERROR(".concat(t,")");case"notContainsErrors":return"NOT(ISERROR(".concat(t,"))");default:return}}(t);r&&this.formulaXform.render(e,r),e.closeNode()}},{key:"renderTimePeriod",value:function(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});var r=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new s(e.ref).tl;switch(e.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(t,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(t,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(t,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(t,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(t,",1)=TODAY()-1");case"today":return"FLOOR(".concat(t,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(t,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(t,",1)<=6,FLOOR(").concat(t,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(t,")=MONTH(TODAY()),YEAR(").concat(t,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0+1)))");default:return}}(t);r&&this.formulaXform.render(e,r),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return c(c({},function(e){var t=e.type,r=e.operator;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:r}}}(t)),{},{dxfId:n.toIntValue(t.dxfId),priority:n.toIntValue(t.priority),timePeriod:t.timePeriod,percent:n.toBoolValue(t.percent),bottom:n.toBoolValue(t.bottom),rank:n.toIntValue(t.rank),aboveAverage:n.toBoolValue(t.aboveAverage)})}},{key:"onParserClose",value:function(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)}}}],[{key:"isPrimitive",value:function(e){return"iconSet"!==e.type||!e.custom&&!d[e.iconSet]}}])}(a)},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,r){var n=e("../../base-xform");t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"cfvo"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}},{key:"parseOpen",value:function(e){this.model={type:e.attributes.type,value:n.toFloatValue(e.attributes.val)}}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(n)},{"../../base-xform":32}],85:[function(e,t,r){var n=e("../../composite-xform"),a=e("../../style/color-xform"),s=e("./cfvo-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={cfvo:e.cfvoXform=new s,color:e.colorXform=new a},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"colorScale"}},{key:"render",value:function(e,t){var r=this;e.openNode(this.tag),t.cfvo.forEach(function(t){r.cfvoXform.render(e,t)}),t.color.forEach(function(t){r.colorXform.render(e,t)}),e.closeNode()}},{key:"createNewModel",value:function(e){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(e,t){this.model[e].push(t.model)}}])}(n)},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,r){var n=e("../../composite-xform"),a=e("./cf-rule-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={cfRule:new a},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"render",value:function(e,t){var r=this;t.rules.some(a.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach(function(n){a.isPrimitive(n)&&(n.ref=t.ref,r.map.cfRule.render(e,n))}),e.closeNode())}},{key:"createNewModel",value:function(e){return{ref:e.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(e,t){this.model.rules.push(t.model)}}])}(n)},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,r){var n=e("../../base-xform"),a=e("./conditional-formatting-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).cfXform=new a,e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(e,t){var r=e.reduce(function(e,t){return Math.max.apply(Math,[e].concat(I(t.rules.map(function(e){return e.priority||0}))))},1);e.forEach(function(e){e.rules.forEach(function(e){e.priority||(e.priority=r++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))})})}},{key:"render",value:function(e,t){var r=this;t.forEach(function(t){r.cfXform.render(e,t)})}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"conditionalFormatting"===e.name&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(!!this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0,!1))}},{key:"reconcile",value:function(e,t){e.forEach(function(e){e.rules.forEach(function(e){void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}])}(n)},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,r){var n=e("../../composite-xform"),a=e("../../style/color-xform"),s=e("./cfvo-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={cfvo:e.cfvoXform=new s,color:e.colorXform=new a},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"dataBar"}},{key:"render",value:function(e,t){var r=this;e.openNode(this.tag),t.cfvo.forEach(function(t){r.cfvoXform.render(e,t)}),this.colorXform.render(e,t.color),e.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}])}(n)},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,r){var n=e("../../base-xform"),a=e("../../composite-xform"),s=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"x14:id"}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(n),o=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"x14:id":e.idXform=new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"ext"}},{key:"render",value:function(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()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){this.model.x14Id=t.model}}])}(a);t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={ext:new o},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"extLst"}},{key:"render",value:function(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}}])}(a)},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"formula"}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../../base-xform"))},{"../../base-xform":32}],91:[function(e,t,r){var n=e("../../base-xform"),a=e("../../composite-xform"),s=e("./cfvo-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={cfvo:e.cfvoXform=new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"iconSet"}},{key:"render",value:function(e,t){var r=this;e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(t.reverse,!1),showValue:n.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(function(t){r.cfvoXform.render(e,t)}),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{iconSet:n.toStringValue(t.iconSet,"3TrafficLights"),reverse:n.toBoolValue(t.reverse),showValue:n.toBoolValue(t.showValue),cfvo:[]}}},{key:"onParserClose",value:function(e,t){this.model[e].push(t.model)}}])}(a)},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,r){var n=e("../../../utils/utils");t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"col"}},{key:"prepare",value:function(e,t){var r=t.styles.addStyleModel(e.style||{});r&&(e.styleId=r)}},{key:"render",value:function(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}},{key:"parseOpen",value:function(e){if("col"===e.name){var t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),n.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),n.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),n.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}])}(e("../base-xform"))},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,r){var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),s=e("../../../utils/col-cache"),o=e("../base-xform"),l=e("../../../doc/range");function u(e,t,r,n){var i=t[r];void 0!==i?e[r]=i:void 0!==n&&(e[r]=n)}function f(e,t,r,n){var i=t[r];void 0!==i?e[r]=a.parseBoolean(i):void 0!==n&&(e[r]=n)}t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"dataValidations"}},{key:"render",value:function(e,t){var r=function(e){var t=n.map(e,function(e,t){return{address:t,dataValidation:e,marked:!1}}).sort(function(e,t){return n.strcmp(e.address,t.address)}),r=n.keyBy(t,"address"),i=function(t,r,i){for(var a=0;a<r;a++){var o=s.encodeAddress(t.row+a,i);if(!e[o]||!n.isEqual(e[t.address],e[o]))return!1}return!0};return t.map(function(t){if(!t.marked){var a=s.decodeEx(t.address);if(a.dimensions)return r[a.dimensions].marked=!0,c(c({},t.dataValidation),{},{sqref:t.address});for(var o=1,l=s.encodeAddress(a.row+o,a.col);e[l]&&n.isEqual(t.dataValidation,e[l]);)o++,l=s.encodeAddress(a.row+o,a.col);for(var u=1;i(a,o,a.col+u);)u++;for(var f=0;f<o;f++)for(var h=0;h<u;h++)l=s.encodeAddress(a.row+f,a.col+h),r[l].marked=!0;if(o>1||u>1){var d=a.row+(o-1),p=a.col+(u-1);return c(c({},t.dataValidation),{},{sqref:"".concat(t.address,":").concat(s.encodeAddress(d,p))})}return c(c({},t.dataValidation),{},{sqref:t.address})}return null}).filter(Boolean)}(t);r.length&&(e.openNode("dataValidations",{count:r.length}),r.forEach(function(t){e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach(function(r,n){e.openNode("formula".concat(n+1)),"date"===t.type?e.writeText(a.dateToExcel(new Date(r))):e.writeText(r),e.closeNode()}),e.closeNode()}),e.closeNode())}},{key:"parseOpen",value:function(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=e.attributes.sqref;var t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&f(t,e.attributes,"allowBlank"),f(t,e.attributes,"showInputMessage"),f(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:u(t,e.attributes,"operator","between")}return u(t,e.attributes,"promptTitle"),u(t,e.attributes,"prompt"),u(t,e.attributes,"errorStyle"),u(t,e.attributes,"errorTitle"),u(t,e.attributes,"error"),this._dataValidation=t,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._formula&&this._formula.push(e)}},{key:"parseClose",value:function(e){var t=this;switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(function(e){e.includes(":")?new l(e).forEachAddress(function(e){t.model[e]=t._dataValidation}):t.model[e]=t._dataValidation}),!0;case"formula1":case"formula2":var r=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":r=parseInt(r,10);break;case"decimal":r=parseFloat(r);break;case"date":r=a.excelToDate(parseFloat(r))}return this._dataValidation.formulae.push(r),this._formula=void 0,!0;default:return!0}}}])}(o)},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"dimension"}},{key:"render",value:function(e,t){t&&e.leafNode("dimension",{ref:t})}},{key:"parseOpen",value:function(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],95:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"drawing"}},{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],96:[function(e,t,r){var n=e("../composite-xform"),a=e("./cf-ext/conditional-formattings-ext-xform"),s=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={"x14:conditionalFormattings":e.conditionalFormattings=new a},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"ext"}},{key:"hasContent",value:function(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}},{key:"prepare",value:function(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}},{key:"render",value:function(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()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){this.model[e]=t.model}}])}(n);t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={ext:e.ext=new s},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"extLst"}},{key:"prepare",value:function(e,t){this.ext.prepare(e,t)}},{key:"hasContent",value:function(e){return this.ext.hasContent(e)}},{key:"render",value:function(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}}])}(n)},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"headerFooter"}},{key:"render",value:function(e,t){if(t){e.addRollback();var r=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),r=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),r=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),r=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),r=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),r=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),r=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),r=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),r=!0),r?(e.closeNode(),e.commit()):e.rollback()}}},{key:"parseOpen",value:function(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}},{key:"parseText",value:function(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}}},{key:"parseClose",value:function(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}])}(e("../base-xform"))},{"../base-xform":32}],98:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"hyperlink"}},{key:"render",value:function(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}},{key:"parseOpen",value:function(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"isInternalLink",value:function(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}])}(e("../base-xform"))},{"../base-xform":32}],99:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"mergeCell"}},{key:"render",value:function(e,t){e.leafNode("mergeCell",{ref:t})}},{key:"parseOpen",value:function(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],100:[function(e,t,r){var n=e("../../../utils/under-dash"),i=e("../../../doc/range"),a=e("../../../utils/col-cache"),s=e("../../../doc/enums");t.exports=/* @__PURE__ */function(){return J(function e(){Y(this,e),this.merges={}},[{key:"add",value:function(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{var t="".concat(e.master,":").concat(e.address);this.merges[e.master]=new i(t)}}},{key:"mergeCells",get:function(){return n.map(this.merges,function(e){return e.range})}},{key:"reconcile",value:function(e,t){n.each(e,function(e){for(var r=a.decode(e),n=r.top;n<=r.bottom;n++)for(var i=t[n-1],o=r.left;o<=r.right;o++){var l=i.cells[o-1];l?l.type===s.ValueType.Merge&&(l.master=r.tl):i.cells[o]={type:s.ValueType.Null,address:a.encodeAddress(n,o)}}})}},{key:"getMasterAddress",value:function(e){var t=this.hash[e];return t&&t.tl}}])}()},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,r){var n=e("../base-xform"),a=function(e){return void 0!==e};t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"outlinePr"}},{key:"render",value:function(e,t){return!(!t||!a(t.summaryBelow)&&!a(t.summaryRight))&&(e.leafNode(this.tag,{summaryBelow:a(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:a(t.summaryRight)?Number(t.summaryRight):void 0}),!0)}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={summaryBelow:a(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:a(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(n)},{"../base-xform":32}],102:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"brk"}},{key:"render",value:function(e,t){e.leafNode("brk",t)}},{key:"parseOpen",value:function(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],103:[function(e,t,r){var n=e("../../../utils/under-dash");t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"pageMargins"}},{key:"render",value:function(e,t){if(t){var r={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};n.some(r,function(e){return void 0!==e})&&e.leafNode(this.tag,r)}}},{key:"parseOpen",value:function(e){return e.name===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)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"pageSetUpPr"}},{key:"render",value:function(e,t){return!(!t||!t.fitToPage)&&(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),!0)}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],105:[function(e,t,r){var n=e("../../../utils/under-dash"),a=e("../base-xform");function s(e){return e?"1":void 0}function o(e){if("overThenDown"===e)return e}function l(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function c(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"pageSetup"}},{key:"render",value:function(e,t){if(t){var r={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:o(t.pageOrder),blackAndWhite:s(t.blackAndWhite),draft:s(t.draft),cellComments:l(t.cellComments),errors:c(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:s(t.firstPageNumber),usePrinterDefaults:s(t.usePrinterDefaults),copies:t.copies};n.some(r,function(e){return void 0!==e})&&e.leafNode(this.tag,r)}}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),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:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,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:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0);var t}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a)},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"picture"}},{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],107:[function(e,t,r){var n=e("../../../utils/under-dash"),a=e("../base-xform");function s(e){return e?"1":void 0}t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"printOptions"}},{key:"render",value:function(e,t){if(t){var r={headings:s(t.showRowColHeaders),gridLines:s(t.showGridLines),horizontalCentered:s(t.horizontalCentered),verticalCentered:s(t.verticalCentered)};n.some(r,function(e){return void 0!==e})&&e.leafNode(this.tag,r)}}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a)},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,r){var n=e("./page-breaks-xform");t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,[{tag:"rowBreaks",count:!0,childXform:new n}])}return Rt(t,e),J(t,[{key:"render",value:function(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));var r=this.childXform;t.forEach(function(t){r.render(e,t)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}])}(e("../list-xform"))},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,r){var n=e("../base-xform"),a=e("../../../utils/utils"),s=e("./cell-xform");t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).maxItems=e&&e.maxItems,r.map={c:new s},r}return Rt(t,e),J(t,[{key:"tag",get:function(){return"row"}},{key:"prepare",value:function(e,t){var r=t.styles.addStyleModel(e.style);r&&(e.styleId=r);var n=this.map.c;e.cells.forEach(function(e){n.prepare(e,t)})}},{key:"render",value:function(e,t,r){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans","".concat(t.min,":").concat(t.max)),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");var n=this.map.c;t.cells.forEach(function(t){n.render(e,t,r)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;var t=e.attributes.spans?e.attributes.spans.split(":").map(function(e){return parseInt(e,10)}):[void 0,void 0],r=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(r.styleId=parseInt(e.attributes.s,10)),a.parseBoolean(e.attributes.hidden)&&(r.hidden=!0),a.parseBoolean(e.attributes.bestFit)&&(r.bestFit=!0),e.attributes.ht&&(r.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(r.outlineLevel=parseInt(e.attributes.outlineLevel,10)),a.parseBoolean(e.attributes.collapsed)&&(r.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);var r=this.map.c;e.cells.forEach(function(e){r.reconcile(e,t)})}}])}(n)},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,r){var n=e("../../../utils/under-dash");t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"sheetFormatPr"}},{key:"render",value:function(e,t){if(t){var r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(r.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(r.customHeight="1"),n.some(r,function(e){return void 0!==e})&&e.leafNode("sheetFormatPr",r)}}},{key:"parseOpen",value:function(e){return"sheetFormatPr"===e.name&&(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)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,r){var n=e("../base-xform"),a=e("../style/color-xform"),s=e("./page-setup-properties-xform"),o=e("./outline-properties-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={tabColor:new a("tabColor"),pageSetUpPr:new s,outlinePr:new o},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"sheetPr"}},{key:"render",value:function(e,t){if(t){e.addRollback(),e.openNode("sheetPr");var r=!1;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)?(e.closeNode(),e.commit()):e.rollback()}}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){return!!this.parser&&(this.parser.parseText(e),!0)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}])}(n)},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,r){var n=e("../../../utils/under-dash"),a=e("../base-xform");function s(e,t){return e?t:void 0}function o(e,t){return e===t||void 0}t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"sheetProtection"}},{key:"render",value:function(e,t){if(t){var r={sheet:s(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:s(t.formatCells,"0"),formatColumns:s(t.formatColumns,"0"),formatRows:s(t.formatRows,"0"),insertColumns:s(t.insertColumns,"0"),insertRows:s(t.insertRows,"0"),insertHyperlinks:s(t.insertHyperlinks,"0"),deleteColumns:s(t.deleteColumns,"0"),deleteRows:s(t.deleteRows,"0"),sort:s(t.sort,"0"),autoFilter:s(t.autoFilter,"0"),pivotTables:s(t.pivotTables,"0")};t.sheet&&(r.algorithmName=t.algorithmName,r.hashValue=t.hashValue,r.saltValue=t.saltValue,r.spinCount=t.spinCount,r.objects=s(!1===t.objects,"1"),r.scenarios=s(!1===t.scenarios,"1")),n.some(r,function(e){return void 0!==e})&&e.leafNode(this.tag,r)}}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={sheet:o(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:o(e.attributes.formatCells,"0"),formatColumns:o(e.attributes.formatColumns,"0"),formatRows:o(e.attributes.formatRows,"0"),insertColumns:o(e.attributes.insertColumns,"0"),insertRows:o(e.attributes.insertRows,"0"),insertHyperlinks:o(e.attributes.insertHyperlinks,"0"),deleteColumns:o(e.attributes.deleteColumns,"0"),deleteRows:o(e.attributes.deleteRows,"0"),sort:o(e.attributes.sort,"0"),autoFilter:o(e.attributes.autoFilter,"0"),pivotTables:o(e.attributes.pivotTables,"0")},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)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a)},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,r){var n=e("../../../utils/col-cache"),a=e("../base-xform"),s={frozen:"frozen",frozenSplit:"frozen",split:"split"};t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"sheetView"}},{key:"prepare",value:function(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}},{key:"render",value:function(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});var r,i,a,s,o=function(t,r,n){n&&e.addAttribute(t,r)};switch(o("rightToLeft","1",!0===t.rightToLeft),o("tabSelected","1",t.tabSelected),o("showRuler","0",!1===t.showRuler),o("showRowColHeaders","0",!1===t.showRowColHeaders),o("showGridLines","0",!1===t.showGridLines),o("zoomScale",t.zoomScale,t.zoomScale),o("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),o("view",t.style,t.style),t.state){case"frozen":i=t.xSplit||0,a=t.ySplit||0,r=t.topLeftCell||n.getAddress(a+1,i+1).address,s=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:r,activePane:s,state:"frozen"}),e.leafNode("selection",{pane:s,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return 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},!0;case"selection":var t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){var t,r;return"sheetView"!==e||(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},"split"===this.model.state&&(t.activePane=this.pane.activePane),(r=this.selections[this.pane.activePane])&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(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)&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1)}},{key:"reconcile",value:function(){}}])}(a)},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"tablePart"}},{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],115:[function(e,t,r){var n=e("../../../utils/under-dash"),a=e("../../../utils/col-cache"),s=e("../../../utils/xml-stream"),o=e("../../rel-type"),l=e("./merges"),c=e("../base-xform"),u=e("../list-xform"),f=e("./row-xform"),h=e("./col-xform"),d=e("./dimension-xform"),p=e("./hyperlink-xform"),m=e("./merge-cell-xform"),v=e("./data-validations-xform"),g=e("./sheet-properties-xform"),b=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),w=e("./sheet-protection-xform"),_=e("./page-margins-xform"),k=e("./page-setup-xform"),x=e("./print-options-xform"),S=e("./auto-filter-xform"),T=e("./picture-xform"),E=e("./drawing-xform"),C=e("./table-part-xform"),A=e("./row-breaks-xform"),M=e("./header-footer-xform"),O=e("./cf/conditional-formattings-xform"),R=e("./ext-lst-xform"),I=function(e,t){if(!t||!t.length)return e;if(!e||!e.length)return t;var r={},n={};return e.forEach(function(e){r[e.ref]=e,e.rules.forEach(function(e){var t=e.x14Id;t&&(n[t]=e)})}),t.forEach(function(t){t.rules.forEach(function(i){var a=n[i.x14Id];a?function(e,t){Object.keys(t).forEach(function(r){var n=e[r],i=t[r];void 0===n&&void 0!==i&&(e[r]=i)})}(a,i):r[t.ref]?r[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})})}),e},N=/* @__PURE__ */function(e){function t(e){var r;Y(this,t),r=i(this,t);var n=e||{},a=n.maxRows,s=n.maxCols,o=n.ignoreNodes;return r.ignoreNodes=o||[],r.map={sheetPr:new g,dimension:new d,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new b,cols:new u({tag:"cols",count:!1,childXform:new h}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new f({maxItems:s}),maxItems:a}),autoFilter:new S,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new m}),rowBreaks:new A,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new p}),pageMargins:new _,dataValidations:new v,pageSetup:new k,headerFooter:new M,printOptions:new x,picture:new T,drawing:new E,sheetProtection:new w,tableParts:new u({tag:"tableParts",count:!0,childXform:new C}),conditionalFormatting:new O,extLst:new R},r}return Rt(t,e),J(t,[{key:"prepare",value:function(e,t){var r=this;t.merges=new l,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;var n=e.rels=[];function i(e){return"rId".concat(e.length+1)}if(e.hyperlinks.forEach(function(e){var t=i(n);e.rId=t,n.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:"External"})}),e.comments.length>0){var s={Id:i(n),Type:o.Comments,Target:"../comments".concat(e.id,".xml")};n.push(s);var c={Id:i(n),Type:o.VmlDrawing,Target:"../drawings/vmlDrawing".concat(e.id,".vml")};n.push(c),e.comments.forEach(function(e){e.refAddress=a.decodeAddress(e.ref)}),t.commentRefs.push({commentName:"comments".concat(e.id),vmlDrawing:"vmlDrawing".concat(e.id)})}var u,f=[];e.media.forEach(function(a){if("background"===a.type){var s=i(n);u=t.media[a.imageId],n.push({Id:s,Type:o.Image,Target:"../media/".concat(u.name,".").concat(u.extension)}),e.background={rId:s},e.image=t.media[a.imageId]}else if("image"===a.type){var l=e.drawing;u=t.media[a.imageId],l||(l=e.drawing={rId:i(n),name:"drawing".concat(++t.drawingsCount),anchors:[],rels:[]},t.drawings.push(l),n.push({Id:l.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(l.name,".xml")}));var c=r.preImageId===a.imageId?f[a.imageId]:f[l.rels.length];c||(c=i(l.rels),f[l.rels.length]=c,l.rels.push({Id:c,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(u.name,".").concat(u.extension)}));var h={picture:{rId:c},range:a.range};if(a.hyperlinks&&a.hyperlinks.hyperlink){var d=i(l.rels);f[l.rels.length]=d,h.picture.hyperlinks={tooltip:a.hyperlinks.tooltip,rId:d},l.rels.push({Id:d,Type:o.Hyperlink,Target:a.hyperlinks.hyperlink,TargetMode:"External"})}r.preImageId=a.imageId,l.anchors.push(h)}}),e.tables.forEach(function(e){var r=i(n);e.rId=r,n.push({Id:r,Type:o.Table,Target:"../tables/".concat(e.target)}),e.columns.forEach(function(e){var r=e.style;r&&(e.dxfId=t.styles.addDxfStyle(r))})}),this.map.extLst.prepare(e,t)}},{key:"render",value:function(e,r){e.openXml(s.StdDocAttributes),e.openNode("worksheet",t.WORKSHEET_ATTRIBUTES);var n=r.properties?{defaultRowHeight:r.properties.defaultRowHeight,dyDescent:r.properties.dyDescent,outlineLevelCol:r.properties.outlineLevelCol,outlineLevelRow:r.properties.outlineLevelRow}:void 0;r.properties&&r.properties.defaultColWidth&&(n.defaultColWidth=r.properties.defaultColWidth);var i={outlineProperties:r.properties&&r.properties.outlineProperties,tabColor:r.properties&&r.properties.tabColor,pageSetup:r.pageSetup&&r.pageSetup.fitToPage?{fitToPage:r.pageSetup.fitToPage}:void 0},a=r.pageSetup&&r.pageSetup.margins,l={showRowColHeaders:r.pageSetup&&r.pageSetup.showRowColHeaders,showGridLines:r.pageSetup&&r.pageSetup.showGridLines,horizontalCentered:r.pageSetup&&r.pageSetup.horizontalCentered,verticalCentered:r.pageSetup&&r.pageSetup.verticalCentered},c=r.sheetProtection;this.map.sheetPr.render(e,i),this.map.dimension.render(e,r.dimensions),this.map.sheetViews.render(e,r.views),this.map.sheetFormatPr.render(e,n),this.map.cols.render(e,r.cols),this.map.sheetData.render(e,r.rows),this.map.sheetProtection.render(e,c),this.map.autoFilter.render(e,r.autoFilter),this.map.mergeCells.render(e,r.mergeCells),this.map.conditionalFormatting.render(e,r.conditionalFormattings),this.map.dataValidations.render(e,r.dataValidations),this.map.hyperlinks.render(e,r.hyperlinks),this.map.printOptions.render(e,l),this.map.pageMargins.render(e,a),this.map.pageSetup.render(e,r.pageSetup),this.map.headerFooter.render(e,r.headerFooter),this.map.rowBreaks.render(e,r.rowBreaks),this.map.drawing.render(e,r.drawing),this.map.picture.render(e,r.background),this.map.tableParts.render(e,r.tables),this.map.extLst.render(e,r),r.rels&&r.rels.forEach(function(t){t.Type===o.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})}),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(n.each(this.map,function(e){e.reset()}),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("worksheet"===e){var t=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(t.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(t.outlineProperties=this.map.sheetPr.model.outlineProperties);var r={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},n=Object.assign(r,this.map.pageSetup.model,this.map.printOptions.model),i=I(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return 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:t,views:this.map.sheetViews.model,pageSetup:n,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:i},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}},{key:"reconcile",value:function(e,t){var r=(e.relationships||[]).reduce(function(r,n){if(r[n.Id]=n,n.Type===o.Comments&&(e.comments=t.comments[n.Target].comments),n.Type===o.VmlDrawing&&e.comments&&e.comments.length){var i=t.vmlDrawings[n.Target].comments;e.comments.forEach(function(e,t){e.note=Object.assign({},e.note,i[t])})}return r},{});if(t.commentsMap=(e.comments||[]).reduce(function(e,t){return t.ref&&(e[t.ref]=t),e},{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce(function(e,t){return t.rId&&(e[t.address]=r[t.rId].Target),e},{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach(function(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=[],e.drawing){var n=r[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(n){var i=n[1];t.drawings[i].anchors.forEach(function(t){if(t.medium){var r={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(r)}})}}var a=e.background&&r[e.background.rId];if(a){var s=a.Target.split("/media/")[1],l=t.mediaIndex&&t.mediaIndex[s];void 0!==l&&e.media.push({type:"background",imageId:l})}e.tables=(e.tables||[]).map(function(e){var n=r[e.rId];return t.tables[n.Target]}),delete e.relationships,delete e.hyperlinks,delete e.comments}}])}(c);N.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"},t.exports=N},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).tag=e.tag,r.attr=e.attr,r}return Rt(t,e),J(t,[{key:"render",value:function(e,t){t&&(e.openNode(this.tag),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.model=!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],117:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).tag=e.tag,r.attr=e.attr,r.attrs=e.attrs,r._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(t){return""}},r._parse=e.parse||function(e){return new Date(e)},r}return Rt(t,e),J(t,[{key:"render",value:function(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}])}(e("../base-xform"))},{"../base-xform":32}],118:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).tag=e.tag,r.attr=e.attr,r.attrs=e.attrs,r.zero=e.zero,r}return Rt(t,e),J(t,[{key:"render",value:function(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}])}(e("../base-xform"))},{"../base-xform":32}],119:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).tag=e.tag,r.attr=e.attr,r.attrs=e.attrs,r}return Rt(t,e),J(t,[{key:"render",value:function(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=this.text.join("")),!1}}])}(e("../base-xform"))},{"../base-xform":32}],120:[function(e,t,r){var n=e("./base-xform"),a=e("../../utils/xml-stream");function s(e,t){e.openNode(t.tag,t.$),t.c&&t.c.forEach(function(t){s(e,t)}),t.t&&e.writeText(t.t),e.closeNode()}t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t))._model=e,r}return Rt(t,e),J(t,[{key:"render",value:function(e){if(!this._xml){var t=new a;s(t,this._model),this._xml=t.xml}e.writeXml(this._xml)}},{key:"parseOpen",value:function(){return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this._model.tag}}])}(n)},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,r){var n=e("./text-xform"),a=e("./rich-text-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={r:new a,t:new n},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"rPh"}},{key:"render",value:function(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){var r=this.map.r;t.richText.forEach(function(t){r.render(e,t)})}else t&&this.map.t.render(e,t.text);e.closeNode()}},{key:"parseOpen",value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}])}(e("../base-xform"))},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,r){var n=e("./text-xform"),a=e("../style/font-xform"),s=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).model=e,r}return Rt(t,e),J(t,[{key:"tag",get:function(){return"r"}},{key:"textXform",get:function(){return this._textXform||(this._textXform=new n)}},{key:"fontXform",get:function(){return this._fontXform||(this._fontXform=new a(t.FONT_OPTIONS))}},{key:"render",value:function(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}])}(e("../base-xform"));s.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=s},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,r){var n=e("./text-xform"),a=e("./rich-text-xform"),s=e("./phonetic-text-xform");t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).model=e,r.map={r:new a,t:new n,rPh:new s},r}return Rt(t,e),J(t,[{key:"tag",get:function(){return"si"}},{key:"render",value:function(e,t){var r=this;e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach(function(t){r.map.r.render(e,t)}):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}])}(e("../base-xform"))},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,r){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),s=e("./shared-string-xform");t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).model=e||{values:[],count:0},r.hash=Object.create(null),r.rich=Object.create(null),r}return Rt(t,e),J(t,[{key:"sharedStringXform",get:function(){return this._sharedStringXform||(this._sharedStringXform=new s)}},{key:"values",get:function(){return this.model.values}},{key:"uniqueCount",get:function(){return this.model.values.length}},{key:"count",get:function(){return this.model.count}},{key:"getString",value:function(e){return this.model.values[e]}},{key:"add",value:function(e){return e.richText?this.addRichText(e):this.addText(e)}},{key:"addText",value:function(e){var t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}},{key:"addRichText",value:function(e){var t=this.sharedStringXform.toXml(e),r=this.rich[t];return void 0===r&&(r=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,r}},{key:"render",value:function(e,t){t=t||this._values,e.openXml(n.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});var r=this.sharedStringXform;t.values.forEach(function(t){r.render(e,t)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===e)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(e))}}])}(a)},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"t"}},{key:"render",value:function(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}},{key:"model",get:function(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,function(e,t){return String.fromCharCode(parseInt(t,16))})}},{key:"parseOpen",value:function(e){return"t"===e.name&&(this._text=[],!0)}},{key:"parseText",value:function(e){this._text.push(e)}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],126:[function(e,t,r){var n=e("../../../doc/enums"),a=e("../../../utils/utils"),s=e("../base-xform"),o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(function(e,t){return e[t]=!0,e},{}),horizontal:function(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(function(e,t){return e[t]=!0,e},{}),vertical:function(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:function(e){return!!e||void 0},shrinkToFit:function(e){return!!e||void 0},textRotation:function(e){return"vertical"===e||(e=a.validInt(e))>=-90&&e<=90?e:void 0},indent:function(e){return e=a.validInt(e),Math.max(0,e)},readingOrder:function(e){switch(e){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return}}},l=function(e){if(e=o.textRotation(e)){if("vertical"===e)return 255;var t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},c=function(e){var t=a.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}};t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"alignment"}},{key:"render",value:function(e,t){e.addRollback(),e.openNode("alignment");var r=!1;function n(t,n){n&&(e.addAttribute(t,n),r=!0)}n("horizontal",o.horizontal(t.horizontal)),n("vertical",o.vertical(t.vertical)),n("wrapText",!!o.wrapText(t.wrapText)&&"1"),n("shrinkToFit",!!o.shrinkToFit(t.shrinkToFit)&&"1"),n("indent",o.indent(t.indent)),n("textRotation",l(t.textRotation)),n("readingOrder",o.readingOrder(t.readingOrder)),e.closeNode(),r?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={},r=!1;function n(e,n,i){e&&(t[n]=i,r=!0)}n(e.attributes.horizontal,"horizontal",e.attributes.horizontal),n(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),n(e.attributes.wrapText,"wrapText",a.parseBoolean(e.attributes.wrapText)),n(e.attributes.shrinkToFit,"shrinkToFit",a.parseBoolean(e.attributes.shrinkToFit)),n(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),n(e.attributes.textRotation,"textRotation",c(e.attributes.textRotation)),n(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=r?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(s)},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,r){var n=e("../base-xform"),a=e("../../../utils/utils"),s=e("./color-xform"),o=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).name=e,r.map={color:new s},r}return Rt(t,e),J(t,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(e,t,r){var n=t&&t.color||r||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),n&&this.map.color.render(e,n)),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:var t=e.attributes.style;return this.model=t?{style:t}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}},{key:"validStyle",value:function(e){return t.validStyleValues[e]}}])}(n);o.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(function(e,t){return e[t]=!0,e},{}),t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={top:new o("top"),left:new o("left"),bottom:new o("bottom"),right:new o("right"),diagonal:new o("diagonal")},e}return Rt(t,e),J(t,[{key:"render",value:function(e,t){var r=t.color;function n(n,i){n&&!n.color&&t.color&&(n=c(c({},n),{},{color:t.color})),i.render(e,n,r)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),n(t.left,this.map.left),n(t.right,this.map.right),n(t.top,this.map.top),n(t.bottom,this.map.bottom),n(t.diagonal,this.map.diagonal),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"border"===e.name?(this.reset(),this.diagonalUp=a.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=a.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){var t=this.model={},r=function(e,r,n){r&&(n&&Object.assign(r,n),t[e]=r)};r("left",this.map.left.model),r("right",this.map.right.model),r("top",this.map.top.model),r("bottom",this.map.bottom.model),r("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}])}(n)},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).name=e||"color",r}return Rt(t,e),J(t,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}},{key:"parseOpen",value:function(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],129:[function(e,t,r){var n=e("../base-xform"),a=e("./alignment-xform"),s=e("./border-xform"),o=e("./fill-xform"),l=e("./font-xform"),c=e("./numfmt-xform"),u=e("./protection-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={alignment:new a,border:new s,fill:new o,font:new l,numFmt:new c,protection:new u},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"dxf"}},{key:"render",value:function(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){var r={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,r)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):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},!1)}}])}(n)},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,r){var n=e("../base-xform"),a=e("./color-xform"),s=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={color:new a},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"stop"}},{key:"render",value:function(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}])}(n),o=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={fgColor:new a("fgColor"),bgColor:new a("bgColor")},e}return Rt(t,e),J(t,[{key:"name",get:function(){return"pattern"}},{key:"tag",get:function(){return"patternFill"}},{key:"render",value:function(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"patternFill"===e.name?(this.model={type:"pattern",pattern:e.attributes.patternType},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}])}(n),l=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={stop:new s},e}return Rt(t,e),J(t,[{key:"name",get:function(){return"gradient"}},{key:"tag",get:function(){return"gradientFill"}},{key:"render",value:function(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}var r=this.map.stop;t.stops.forEach(function(t){r.render(e,t)}),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":var t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}])}(n),c=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={patternFill:new o,gradientFill:new l},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"fill"}},{key:"render",value:function(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"fill"===e.name?(this.model={},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}},{key:"validStyle",value:function(e){return t.validPatternValues[e]}}])}(n);c.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(function(e,t){return e[t]=!0,e},{}),c.StopXform=s,c.PatternFillXform=o,c.GradientFillXform=l,t.exports=c},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,r){var n=e("./color-xform"),a=e("../simple/boolean-xform"),s=e("../simple/integer-xform"),o=e("../simple/string-xform"),l=e("./underline-xform"),c=e("../../../utils/under-dash"),u=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).options=e||t.OPTIONS,r.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new l},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({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 a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}},r.map[r.options.fontNameTag]={prop:"name",xform:new o({tag:r.options.fontNameTag,attr:"val"})},r}return Rt(t,e),J(t,[{key:"tag",get:function(){return this.options.tagName}},{key:"render",value:function(e,t){var r=this.map;e.openNode(this.options.tagName),c.each(this.map,function(n,i){r[i].xform.render(e,t[n.prop])}),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser&&!this.parser.parseClose(e)){var t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}return e!==this.options.tagName}}])}(e("../base-xform"));u.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=u},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,r){var n=e("../../../utils/under-dash"),a=e("../../defaultnumformats"),s=e("../base-xform");var o,l=(o={},n.each(a,function(e,t){e.f&&(o[e.f]=parseInt(t,10))}),o),c=/* @__PURE__ */function(e){function t(e,r){var n;return Y(this,t),(n=i(this,t)).id=e,n.formatCode=r,n}return Rt(t,e),J(t,[{key:"tag",get:function(){return"numFmt"}},{key:"render",value:function(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}},{key:"parseOpen",value:function(e){return"numFmt"===e.name&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(s);c.getDefaultFmtId=function(e){return l[e]},c.getDefaultFmtCode=function(e){return a[e]&&a[e].f},t.exports=c},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,r){var n=e("../base-xform"),a=function(e,t){return void 0===e?t:e};t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"protection"}},{key:"render",value:function(e,t){e.addRollback(),e.openNode("protection");var r=!1;function n(t,n){void 0!==n&&(e.addAttribute(t,n),r=!0)}n("locked",a(t.locked,!0)?void 0:"0"),n("hidden",a(t.hidden,!1)?"1":void 0),e.closeNode(),r?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden};this.model=!t.locked||t.hidden?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(n)},{"../base-xform":32}],134:[function(e,t,r){var n=e("../base-xform"),a=e("./alignment-xform"),s=e("./protection-xform");t.exports=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).xfId=!(!e||!e.xfId),r.map={alignment:new a,protection:new s},r}return Rt(t,e),J(t,[{key:"tag",get:function(){return"xf"}},{key:"render",value:function(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return 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)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}])}(n)},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,r){var n=e("../../../doc/enums"),a=e("../../../utils/xml-stream"),s=e("../base-xform"),o=e("../static-xform"),l=e("../list-xform"),c=e("./font-xform"),u=e("./fill-xform"),f=e("./border-xform"),h=e("./numfmt-xform"),d=e("./style-xform"),p=e("./dxf-xform"),m=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).map={numFmts:new l({tag:"numFmts",count:!0,childXform:new h}),fonts:new l({tag:"fonts",count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new l({tag:"fills",count:!0,childXform:new u}),borders:new l({tag:"borders",count:!0,childXform:new f}),cellStyleXfs:new l({tag:"cellStyleXfs",count:!0,childXform:new d}),cellXfs:new l({tag:"cellXfs",count:!0,childXform:new d({xfId:!0})}),dxfs:new l({tag:"dxfs",always:!0,count:!0,childXform:new p}),numFmt:new h,font:new c,fill:new u,border:new f,style:new d({xfId:!0}),cellStyles:t.STATIC_XFORMS.cellStyles,tableStyles:t.STATIC_XFORMS.tableStyles,extLst:t.STATIC_XFORMS.extLst},e&&r.init(),r}return Rt(t,e),J(t,[{key:"initIndex",value:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}},{key:"init",value:function(){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=/* @__PURE__ */new WeakMap}},{key:"render",value:function(e,r){r=r||this.model,e.openXml(a.StdDocAttributes),e.openNode("styleSheet",t.STYLESHEET_ATTRIBUTES),this.index?(r.numFmts&&r.numFmts.length&&(e.openNode("numFmts",{count:r.numFmts.length}),r.numFmts.forEach(function(t){e.writeXml(t)}),e.closeNode()),r.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:r.fonts.length,"x14ac:knownFonts":1}),r.fonts.forEach(function(t){e.writeXml(t)}),e.closeNode(),e.openNode("fills",{count:r.fills.length}),r.fills.forEach(function(t){e.writeXml(t)}),e.closeNode(),e.openNode("borders",{count:r.borders.length}),r.borders.forEach(function(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:r.styles.length}),r.styles.forEach(function(t){e.writeXml(t)}),e.closeNode()):(this.map.numFmts.render(e,r.numFmts),this.map.fonts.render(e,r.fonts),this.map.fills.render(e,r.fills),this.map.borders.render(e,r.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,r.styles)),t.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,r.dxfs),t.STATIC_XFORMS.tableStyles.render(e),t.STATIC_XFORMS.extLst.render(e),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"styleSheet"===e.name?(this.initIndex(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){var t=this;if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("styleSheet"===e){this.model={};var r=function(e,r){r.model&&r.model.length&&(t.model[e]=r.model)};if(r("numFmts",this.map.numFmts),r("fonts",this.map.fonts),r("fills",this.map.fills),r("borders",this.map.borders),r("styles",this.map.cellXfs),r("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var n=this.index.numFmt;this.model.numFmts.forEach(function(e){n[e.id]=e.formatCode})}return!1}return!0}},{key:"addStyleModel",value:function(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);var r={};if(t=t||n.ValueType.Number,e.numFmt)r.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case n.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case n.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(r.fontId=this._addFont(e.font)),e.border&&(r.borderId=this._addBorder(e.border)),e.fill&&(r.fillId=this._addFill(e.fill)),e.alignment&&(r.alignment=e.alignment),e.protection&&(r.protection=e.protection);var i=this._addStyle(r);return this.weakMap&&this.weakMap.set(e,i),i}},{key:"getStyleModel",value:function(e){var t=this.model.styles[e];if(!t)return null;var r=this.index.model[e];if(r)return r;if(r=this.index.model[e]={},t.numFmtId){var n=this.index.numFmt[t.numFmtId]||h.getDefaultFmtCode(t.numFmtId);n&&(r.numFmt=n)}function i(e,t,n){if(n||0===n){var i=t[n];i&&(r[e]=i)}}return i("font",this.model.fonts,t.fontId),i("border",this.model.borders,t.borderId),i("fill",this.model.fills,t.fillId),t.alignment&&(r.alignment=t.alignment),t.protection&&(r.protection=t.protection),r}},{key:"addDxfStyle",value:function(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}},{key:"getDxfStyle",value:function(e){return this.model.dxfs[e]}},{key:"_addStyle",value:function(e){var t=this.map.style.toXml(e),r=this.index.style[t];return void 0===r&&(r=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),r}},{key:"_addNumFmtStr",value:function(e){var t=h.getDefaultFmtId(e);if(void 0!==t)return t;if(void 0!==(t=this.index.numFmt[e]))return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;var r=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(r),t}},{key:"_addFont",value:function(e){var t=this.map.font.toXml(e),r=this.index.font[t];return void 0===r&&(r=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),r}},{key:"_addBorder",value:function(e){var t=this.map.border.toXml(e),r=this.index.border[t];return void 0===r&&(r=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),r}},{key:"_addFill",value:function(e){var t=this.map.fill.toXml(e),r=this.index.fill[t];return void 0===r&&(r=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),r}}])}(s);m.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"},m.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"}}]}]})},m.Mock=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).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"}]},e}return Rt(t,e),J(t,[{key:"parseStream",value:function(e){return e.autodrain(),Promise.resolve()}},{key:"addStyleModel",value:function(e,t){return t===n.ValueType.Date?this.dateStyleId:0}},{key:"dateStyleId",get:function(){if(!this._dateStyleId){var e={numFmtId:h.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}},{key:"getStyleModel",value:function(){return{}}}])}(m),t.exports=m},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,r){var n=/* @__PURE__ */function(e){function t(e){var r;return Y(this,t),(r=i(this,t)).model=e,r}return Rt(t,e),J(t,[{key:"tag",get:function(){return"u"}},{key:"render",value:function(e,r){if(!0===(r=r||this.model))e.leafNode("u");else{var n=t.Attributes[r];n&&e.leafNode("u",n)}}},{key:"parseOpen",value:function(e){"u"===e.name&&(this.model=e.attributes.val||!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));n.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=n},{"../base-xform":32}],137:[function(e,t,r){var n=e("../base-xform"),a=e("./filter-column-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={filterColumn:new a},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"autoFilter"}},{key:"prepare",value:function(e){var t=this;e.columns.forEach(function(e,r){t.map.filterColumn.prepare(e,{index:r})})}},{key:"render",value:function(e,t){var r=this;return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach(function(t){r.map.filterColumn.render(e,t)}),e.closeNode(),!0}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(e))}}])}(n)},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"customFilter"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],139:[function(e,t,r){var n=e("../base-xform"),a=e("../list-xform"),s=e("./custom-filter-xform"),o=e("./filter-xform");t.exports=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new s}),filters:new a({tag:"filters",count:!1,empty:!0,childXform:new o})},e}return Rt(t,e),J(t,[{key:"tag",get:function(){return"filterColumn"}},{key:"prepare",value:function(e,t){e.colId=t.index.toString()}},{key:"render",value:function(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0)}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e.attributes;if(e.name===this.tag)return this.model={filterButton:"0"===t.hiddenButton},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}])}(n)},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"filter"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{val:t.val})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],141:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"tableColumn"}},{key:"prepare",value:function(e,t){e.id=t.index+1}},{key:"render",value:function(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],142:[function(e,t,r){t.exports=/* @__PURE__ */function(e){function t(){return Y(this,t),i(this,t,arguments)}return Rt(t,e),J(t,[{key:"tag",get:function(){return"tableStyleInfo"}},{key:"render",value:function(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"))},{"../base-xform":32}],143:[function(e,t,r){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),s=e("../list-xform"),o=e("./auto-filter-xform"),l=e("./table-column-xform"),u=e("./table-style-info-xform"),f=/* @__PURE__ */function(e){function t(){var e;return Y(this,t),(e=i(this,t)).map={autoFilter:new o,tableColumns:new s({tag:"tableColumns",count:!0,empty:!0,childXform:new l}),tableStyleInfo:new u},e}return Rt(t,e),J(t,[{key:"prepare",value:function(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}},{key:"tag",get:function(){return"table"}},{key:"render",value:function(e,r){e.openXml(n.StdDocAttributes),e.openNode(this.tag,c(c({},t.TABLE_ATTRIBUTES),{},{id:r.id,name:r.name,displayName:r.displayName||r.name,ref:r.tableRef,totalsRowCount:r.totalsRow?"1":void 0,totalsRowShown:r.totalsRow?void 0:"1",headerRowCount:r.headerRow?"1":"0"})),this.map.autoFilter.render(e,r),this.map.tableColumns.render(e,r.columns),this.map.tableStyleInfo.render(e,r.style),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e.name,r=e.attributes;if(t===this.tag)this.reset(),this.model={name:r.name,displayName:r.displayName||r.name,tableRef:r.ref,totalsRow:"1"===r.totalsRowCount,headerRow:"1"===r.headerRowCount};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){var t=this;return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach(function(e,r){t.model.columns[r].filterButton=e.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}},{key:"reconcile",value:function(e,t){e.columns.forEach(function(e){void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))})}}])}(a);f.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"},t.exports=f},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,n){(function(n,i){(function(){var a=e("fs"),s=e("jszip"),o=e("readable-stream").PassThrough,l=e("../utils/zip-stream"),c=e("../utils/stream-buf"),f=e("../utils/utils"),h=e("../utils/xml-stream"),d=e("../utils/browser-buffer-decode").bufferToString,p=e("./xform/style/styles-xform"),m=e("./xform/core/core-xform"),v=e("./xform/strings/shared-strings-xform"),g=e("./xform/core/relationships-xform"),b=e("./xform/core/content-types-xform"),y=e("./xform/core/app-xform"),w=e("./xform/book/workbook-xform"),_=e("./xform/sheet/worksheet-xform"),k=e("./xform/drawing/drawing-xform"),x=e("./xform/table/table-xform"),S=e("./xform/comment/comments-xform"),T=e("./xform/comment/vml-notes-xform"),E=e("./xml/theme1");function C(e,t){return new Promise(function(r,n){a.readFile(e,t,function(e,t){e?n(e):r(t)})})}var A=/* @__PURE__ */function(){function e(t){Y(this,e),this.workbook=t}return J(e,[{key:"readFile",value:(Q=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i,s,o;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,f.fs.exists(t);case 1:if(e.sent){e.next=2;break}throw new Error("File not found: ".concat(t));case 2:return i=a.createReadStream(t),e.prev=3,e.next=4,this.read(i,n);case 4:return s=e.sent,i.close(),e.abrupt("return",s);case 5:throw e.prev=5,o=e.catch(3),i.close(),o;case 6:case"end":return e.stop()}},e,this,[[3,5]])})),function(e,t){return Q.apply(this,arguments)})},{key:"parseRels",value:function(e){return(new g).parseStream(e)}},{key:"parseWorkbook",value:function(e){return(new w).parseStream(e)}},{key:"parseSharedStrings",value:function(e){return(new v).parseStream(e)}},{key:"reconcile",value:function(e,t){var r=new w,n=new _(t),i=new k,a=new x;r.reconcile(e);var s={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach(function(t){var r=e.drawings[t],n=e.drawingRels[t];n&&(s.rels=n.reduce(function(e,t){return e[t.Id]=t,e},{}),(r.anchors||[]).forEach(function(e){var t=e.picture&&e.picture.hyperlinks;t&&s.rels[t.rId]&&(t.hyperlink=s.rels[t.rId].Target,delete t.rId)}),i.reconcile(r,s))});var o={styles:e.styles};Object.values(e.tables).forEach(function(e){a.reconcile(e,o)});var l={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(function(t){t.relationships=e.worksheetRels[t.sheetNo],n.reconcile(t,l)}),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}},{key:"_processWorksheetEntry",value:(Z=ka(/* @__PURE__ */r.default.mark(function e(t,n,i,a,s){var o,l;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new _(a),e.next=1,o.parseStream(t);case 1:(l=e.sent).sheetNo=i,n.worksheetHash[s]=l,n.worksheets.push(l);case 2:case"end":return e.stop()}},e)})),function(e,t,r,n,i){return Z.apply(this,arguments)})},{key:"_processCommentEntry",value:(K=ka(/* @__PURE__ */r.default.mark(function e(t,n,i){var a,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new S,e.next=1,a.parseStream(t);case 1:s=e.sent,n.comments["../".concat(i,".xml")]=s;case 2:case"end":return e.stop()}},e)})),function(e,t,r){return K.apply(this,arguments)})},{key:"_processTableEntry",value:(G=ka(/* @__PURE__ */r.default.mark(function e(t,n,i){var a,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new x,e.next=1,a.parseStream(t);case 1:s=e.sent,n.tables["../tables/".concat(i,".xml")]=s;case 2:case"end":return e.stop()}},e)})),function(e,t,r){return G.apply(this,arguments)})},{key:"_processWorksheetRelsEntry",value:(X=ka(/* @__PURE__ */r.default.mark(function e(t,n,i){var a,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new g,e.next=1,a.parseStream(t);case 1:s=e.sent,n.worksheetRels[i]=s;case 2:case"end":return e.stop()}},e)})),function(e,t,r){return X.apply(this,arguments)})},{key:"_processMediaEntry",value:(q=ka(/* @__PURE__ */r.default.mark(function e(t,n,i){var a,s,o;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((a=i.lastIndexOf("."))>=1)){e.next=1;break}return s=i.substr(a+1),o=i.substr(0,a),e.next=1,new Promise(function(e,r){var a=new c;a.on("finish",function(){n.mediaIndex[i]=n.media.length,n.mediaIndex[o]=n.media.length;var t={type:"image",name:o,extension:s,buffer:a.toBuffer()};n.media.push(t),e()}),t.on("error",function(e){r(e)}),t.pipe(a)});case 1:case"end":return e.stop()}},e)})),function(e,t,r){return q.apply(this,arguments)})},{key:"_processDrawingEntry",value:($=ka(/* @__PURE__ */r.default.mark(function e(t,n,i){var a,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new k,e.next=1,a.parseStream(t);case 1:s=e.sent,n.drawings[i]=s;case 2:case"end":return e.stop()}},e)})),function(e,t,r){return $.apply(this,arguments)})},{key:"_processDrawingRelsEntry",value:(V=ka(/* @__PURE__ */r.default.mark(function e(t,n,i){var a,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new g,e.next=1,a.parseStream(t);case 1:s=e.sent,n.drawingRels[i]=s;case 2:case"end":return e.stop()}},e)})),function(e,t,r){return V.apply(this,arguments)})},{key:"_processVmlDrawingEntry",value:(W=ka(/* @__PURE__ */r.default.mark(function e(t,n,i){var a,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new T,e.next=1,a.parseStream(t);case 1:s=e.sent,n.vmlDrawings["../drawings/".concat(i,".vml")]=s;case 2:case"end":return e.stop()}},e)})),function(e,t,r){return W.apply(this,arguments)})},{key:"_processThemeEntry",value:(H=ka(/* @__PURE__ */r.default.mark(function e(t,n,i){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,new Promise(function(e,r){var a=new c;t.on("error",r),a.on("error",r),a.on("finish",function(){n.themes[i]=a.read().toString(),e()}),t.pipe(a)});case 1:case"end":return e.stop()}},e)})),function(e,t,r){return H.apply(this,arguments)})},{key:"createInputStream",value:function(){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")}},{key:"read",value:(U=ka(/* @__PURE__ */r.default.mark(function e(t,n){var a,s,l,c,f,h,d,p;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:!t[Symbol.asyncIterator]&&t.pipe&&(t=t.pipe(new o)),a=[],s=!1,l=!1,e.prev=1,f=u(t);case 2:return e.next=3,f.next();case 3:if(!(s=!(h=e.sent).done)){e.next=5;break}d=h.value,a.push(d);case 4:s=!1,e.next=2;break;case 5:e.next=7;break;case 6:e.prev=6,p=e.catch(1),l=!0,c=p;case 7:if(e.prev=7,e.prev=8,!s||null==f.return){e.next=9;break}return e.next=9,f.return();case 9:if(e.prev=9,!l){e.next=10;break}throw c;case 10:return e.finish(9);case 11:return e.finish(7);case 12:return e.abrupt("return",this.load(i.concat(a),n));case 13:case"end":return e.stop()}},e,this,[[1,6,7,12],[8,,9,11]])})),function(e,t){return U.apply(this,arguments)})},{key:"load",value:(z=ka(/* @__PURE__ */r.default.mark(function e(t,a){var l,c,u,f,h,g,b,w,_,k,x,S,T,E,C,A,M,O,R;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l=a&&a.base64?i.from(t.toString(),"base64"):t,c={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},e.next=1,s.loadAsync(l);case 1:u=e.sent,f=0,h=Object.values(u.files);case 2:if(!(f<h.length)){e.next=43;break}if((g=h[f]).dir){e.next=42;break}if("/"===(b=g.name)[0]&&(b=b.substr(1)),w=void 0,!b.match(/xl\/media\//)&&!b.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){e.next=4;break}return w=new o,M=w,e.next=3,g.async("nodebuffer");case 3:M.write.call(M,e.sent),e.next=9;break;case 4:if(w=new o({writableObjectMode:!0,readableObjectMode:!0}),_=void 0,!n.browser){e.next=6;break}return O=d,e.next=5,g.async("nodebuffer");case 5:_=O(e.sent),e.next=8;break;case 6:return e.next=7,g.async("string");case 7:_=e.sent;case 8:for(k=0;k<_.length;k+=16384)w.write(_.substring(k,k+16384));case 9:w.end(),R=b,e.next="_rels/.rels"===R?10:"xl/workbook.xml"===R?12:"xl/_rels/workbook.xml.rels"===R?14:"xl/sharedStrings.xml"===R?16:"xl/styles.xml"===R?18:"docProps/app.xml"===R?20:"docProps/core.xml"===R?22:24;break;case 10:return e.next=11,this.parseRels(w);case 11:return c.globalRels=e.sent,e.abrupt("continue",42);case 12:return e.next=13,this.parseWorkbook(w);case 13:return x=e.sent,c.sheets=x.sheets,c.definedNames=x.definedNames,c.views=x.views,c.properties=x.properties,c.calcProperties=x.calcProperties,e.abrupt("continue",42);case 14:return e.next=15,this.parseRels(w);case 15:return c.workbookRels=e.sent,e.abrupt("continue",42);case 16:return c.sharedStrings=new v,e.next=17,c.sharedStrings.parseStream(w);case 17:return e.abrupt("continue",42);case 18:return c.styles=new p,e.next=19,c.styles.parseStream(w);case 19:return e.abrupt("continue",42);case 20:return S=new y,e.next=21,S.parseStream(w);case 21:return T=e.sent,c.company=T.company,c.manager=T.manager,e.abrupt("continue",42);case 22:return E=new m,e.next=23,E.parseStream(w);case 23:return C=e.sent,Object.assign(c,C),e.abrupt("continue",42);case 24:if(!(A=b.match(/xl\/worksheets\/sheet(\d+)[.]xml/))){e.next=26;break}return e.next=25,this._processWorksheetEntry(w,c,A[1],a,b);case 25:return e.abrupt("continue",42);case 26:if(!(A=b.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))){e.next=28;break}return e.next=27,this._processWorksheetRelsEntry(w,c,A[1]);case 27:return e.abrupt("continue",42);case 28:if(!(A=b.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))){e.next=30;break}return e.next=29,this._processThemeEntry(w,c,A[1]);case 29:return e.abrupt("continue",42);case 30:if(!(A=b.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))){e.next=32;break}return e.next=31,this._processMediaEntry(w,c,A[1]);case 31:return e.abrupt("continue",42);case 32:if(!(A=b.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))){e.next=34;break}return e.next=33,this._processDrawingEntry(w,c,A[1]);case 33:return e.abrupt("continue",42);case 34:if(!(A=b.match(/xl\/(comments\d+)[.]xml/))){e.next=36;break}return e.next=35,this._processCommentEntry(w,c,A[1]);case 35:return e.abrupt("continue",42);case 36:if(!(A=b.match(/xl\/tables\/(table\d+)[.]xml/))){e.next=38;break}return e.next=37,this._processTableEntry(w,c,A[1]);case 37:return e.abrupt("continue",42);case 38:if(!(A=b.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))){e.next=40;break}return e.next=39,this._processDrawingRelsEntry(w,c,A[1]);case 39:return e.abrupt("continue",42);case 40:if(!(A=b.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))){e.next=42;break}return e.next=41,this._processVmlDrawingEntry(w,c,A[1]);case 41:return e.abrupt("continue",42);case 42:f++,e.next=2;break;case 43:return this.reconcile(c,a),this.workbook.model=c,e.abrupt("return",this.workbook);case 44:case"end":return e.stop()}},e,this)})),function(e,t){return z.apply(this,arguments)})},{key:"addMedia",value:(B=ka(/* @__PURE__ */r.default.mark(function e(t,n){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Promise.all(n.media.map(/* @__PURE__ */function(){var e=ka(/* @__PURE__ */r.default.mark(function e(n){var i,a,s,o;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("image"!==n.type){e.next=4;break}if(i="xl/media/".concat(n.name,".").concat(n.extension),!n.filename){e.next=2;break}return e.next=1,C(n.filename);case 1:return a=e.sent,e.abrupt("return",t.append(a,{name:i}));case 2:if(!n.buffer){e.next=3;break}return e.abrupt("return",t.append(n.buffer,{name:i}));case 3:if(!n.base64){e.next=4;break}return s=n.base64,o=s.substring(s.indexOf(",")+1),e.abrupt("return",t.append(o,{name:i,base64:!0}));case 4:throw new Error("Unsupported media");case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e)})),function(e,t){return B.apply(this,arguments)})},{key:"addDrawings",value:function(e,t){var r=new k,n=new g;t.worksheets.forEach(function(t){var i=t.drawing;if(i){r.prepare(i,{});var a=r.toXml(i);e.append(a,{name:"xl/drawings/".concat(i.name,".xml")}),a=n.toXml(i.rels),e.append(a,{name:"xl/drawings/_rels/".concat(i.name,".xml.rels")})}})}},{key:"addTables",value:function(e,t){var r=new x;t.worksheets.forEach(function(t){t.tables.forEach(function(t){r.prepare(t,{});var n=r.toXml(t);e.append(n,{name:"xl/tables/".concat(t.target)})})})}},{key:"addContentTypes",value:(L=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i,a;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=new b,a=i.toXml(n),t.append(a,{name:"[Content_Types].xml"});case 1:case"end":return e.stop()}},e)})),function(e,t){return L.apply(this,arguments)})},{key:"addApp",value:(j=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i,a;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=new y,a=i.toXml(n),t.append(a,{name:"docProps/app.xml"});case 1:case"end":return e.stop()}},e)})),function(e,t){return j.apply(this,arguments)})},{key:"addCore",value:(F=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=new m,t.append(i.toXml(n),{name:"docProps/core.xml"});case 1:case"end":return e.stop()}},e)})),function(e,t){return F.apply(this,arguments)})},{key:"addThemes",value:(D=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=n.themes||{theme1:E},Object.keys(i).forEach(function(e){var r=i[e],n="xl/theme/".concat(e,".xml");t.append(r,{name:n})});case 1:case"end":return e.stop()}},e)})),function(e,t){return D.apply(this,arguments)})},{key:"addOfficeRels",value:(P=ka(/* @__PURE__ */r.default.mark(function t(n){var i,a;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i=new g,a=i.toXml([{Id:"rId1",Type:e.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:e.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:e.RelType.ExtenderProperties,Target:"docProps/app.xml"}]),n.append(a,{name:"_rels/.rels"});case 1:case"end":return t.stop()}},t)})),function(e){return P.apply(this,arguments)})},{key:"addWorkbookRels",value:(N=ka(/* @__PURE__ */r.default.mark(function t(n,i){var a,s,o,l;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=1,s=[{Id:"rId".concat(a++),Type:e.RelType.Styles,Target:"styles.xml"},{Id:"rId".concat(a++),Type:e.RelType.Theme,Target:"theme/theme1.xml"}],i.sharedStrings.count&&s.push({Id:"rId".concat(a++),Type:e.RelType.SharedStrings,Target:"sharedStrings.xml"}),i.worksheets.forEach(function(t){t.rId="rId".concat(a++),s.push({Id:t.rId,Type:e.RelType.Worksheet,Target:"worksheets/sheet".concat(t.id,".xml")})}),o=new g,l=o.toXml(s),n.append(l,{name:"xl/_rels/workbook.xml.rels"});case 1:case"end":return t.stop()}},t)})),function(e,t){return N.apply(this,arguments)})},{key:"addSharedStrings",value:(I=ka(/* @__PURE__ */r.default.mark(function e(t,n){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.sharedStrings&&n.sharedStrings.count&&t.append(n.sharedStrings.xml,{name:"xl/sharedStrings.xml"});case 1:case"end":return e.stop()}},e)})),function(e,t){return I.apply(this,arguments)})},{key:"addStyles",value:(R=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(i=n.styles.xml)&&t.append(i,{name:"xl/styles.xml"});case 1:case"end":return e.stop()}},e)})),function(e,t){return R.apply(this,arguments)})},{key:"addWorkbook",value:(O=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=new w,t.append(i.toXml(n),{name:"xl/workbook.xml"});case 1:case"end":return e.stop()}},e)})),function(e,t){return O.apply(this,arguments)})},{key:"addWorksheets",value:(M=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i,a,s,o;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=new _,a=new g,s=new S,o=new T,n.worksheets.forEach(function(e){var r=new h;i.render(r,e),t.append(r.xml,{name:"xl/worksheets/sheet".concat(e.id,".xml")}),e.rels&&e.rels.length&&(r=new h,a.render(r,e.rels),t.append(r.xml,{name:"xl/worksheets/_rels/sheet".concat(e.id,".xml.rels")})),e.comments.length>0&&(r=new h,s.render(r,e),t.append(r.xml,{name:"xl/comments".concat(e.id,".xml")}),r=new h,o.render(r,e),t.append(r.xml,{name:"xl/drawings/vmlDrawing".concat(e.id,".vml")}))});case 1:case"end":return e.stop()}},e)})),function(e,t){return M.apply(this,arguments)})},{key:"_finalize",value:function(e){var t=this;return new Promise(function(r,n){e.on("finish",function(){r(t)}),e.on("error",n),e.finalize()})}},{key:"prepareModel",value:function(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||/* @__PURE__ */new Date,e.modified=e.modified||/* @__PURE__ */new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new v,e.styles=e.useStyles?new p(!0):new p.Mock;var r=new w,n=new _;r.prepare(e);var i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];var a=0;e.tables=[],e.worksheets.forEach(function(t){t.tables.forEach(function(t){a++,t.target="table".concat(a,".xml"),t.id=a,e.tables.push(t)}),n.prepare(t,i)})}},{key:"write",value:(A=ka(/* @__PURE__ */r.default.mark(function e(t,n){var i,a;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},i=this.workbook.model,(a=new l.ZipWriter(n.zip)).pipe(t),this.prepareModel(i,n),e.next=1,this.addContentTypes(a,i);case 1:return e.next=2,this.addOfficeRels(a,i);case 2:return e.next=3,this.addWorkbookRels(a,i);case 3:return e.next=4,this.addWorksheets(a,i);case 4:return e.next=5,this.addSharedStrings(a,i);case 5:return e.next=6,this.addDrawings(a,i);case 6:return e.next=7,this.addTables(a,i);case 7:return e.next=8,Promise.all([this.addThemes(a,i),this.addStyles(a,i)]);case 8:return e.next=9,this.addMedia(a,i);case 9:return e.next=10,Promise.all([this.addApp(a,i),this.addCore(a,i)]);case 10:return e.next=11,this.addWorkbook(a,i);case 11:return e.abrupt("return",this._finalize(a));case 12:case"end":return e.stop()}},e,this)})),function(e,t){return A.apply(this,arguments)})},{key:"writeFile",value:function(e,t){var r=this,n=a.createWriteStream(e);return new Promise(function(e,i){n.on("finish",function(){e()}),n.on("error",function(e){i(e)}),r.write(n,t).then(function(){n.end()}).catch(function(e){i(e)})})}},{key:"writeBuffer",value:(t=ka(/* @__PURE__ */r.default.mark(function e(t){var n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=new c,e.next=1,this.write(n,t);case 1:return e.abrupt("return",n.read());case 2:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})}]);var t,A,M,O,R,I,N,P,D,F,j,L,B,z,U,H,W,V,$,q,X,G,K,Z,Q}();A.RelType=e("./rel-type"),t.exports=A}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,r){t.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>'},{}],146:[function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.CsvFormatterStream=void 0;var n=e("stream"),a=e("./formatter");r.CsvFormatterStream=/* @__PURE__ */function(e){function r(e){var t;return Y(this,r),(t=i(this,r,[{writableObjectMode:e.objectMode}])).hasWrittenBOM=!1,t.formatterOptions=e,t.rowFormatter=new a.RowFormatter(e),t.hasWrittenBOM=!e.writeBOM,t}return Rt(r,e),J(r,[{key:"transform",value:function(e){return this.rowFormatter.rowTransform=e,this}},{key:"_transform",value:function(e,r,n){var i=this,a=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,function(e,r){return e?(a=!0,n(e)):(r&&r.forEach(function(e){i.push(t.from(e,"utf8"))}),a=!0,n())})}catch(s){if(a)throw s;n(s)}}},{key:"_flush",value:function(e){var r=this;this.rowFormatter.finish(function(n,i){return n?e(n):(i&&i.forEach(function(e){r.push(t.from(e,"utf8"))}),e())})}}])}(n.Transform)}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FormatterOptions=void 0,r.FormatterOptions=/* @__PURE__ */J(function e(){Y(this,e);var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,r||{}),void 0===(null==r?void 0:r.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==r?void 0:r.quote)?this.quote='"':!1===(null==r?void 0:r.quote)&&(this.quote=""),"string"!=typeof(null==r?void 0:r.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=r.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)})},{}],148:[function(e,t,r){var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.FieldFormatter=void 0;var i=n(e("lodash.isboolean")),a=n(e("lodash.isnil")),s=n(e("lodash.escaperegexp"));r.FieldFormatter=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this._headers=null,this.formatterOptions=t,null!==t.headers&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");var r="[".concat(t.delimiter).concat(s.default(t.rowDelimiter),"|\r|\n]");this.ESCAPE_REGEXP=new RegExp(r)},[{key:"headers",set:function(e){this._headers=e}},{key:"shouldQuote",value:function(e,t){var r=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(r)?r:Array.isArray(r)?r[e]:null!==this._headers&&r[this._headers[e]]}},{key:"format",value:function(e,t,r){var n="".concat(a.default(e)?"":e).replace(/\0/g,""),i=this.formatterOptions;return""!==i.quote&&-1!==n.indexOf(i.quote)?this.quoteField(n.replace(this.REPLACE_REGEXP,i.escapedQuote)):-1!==n.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,r)?this.quoteField(n):n}},{key:"quoteField",value:function(e){var t=this.formatterOptions.quote;return"".concat(t).concat(e).concat(t)}}])}()},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,r){var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.RowFormatter=void 0;var i=n(e("lodash.isfunction")),a=n(e("lodash.isequal")),s=e("./FieldFormatter"),o=e("../types");r.RowFormatter=/* @__PURE__ */function(){function e(t){Y(this,e),this.rowCount=0,this.formatterOptions=t,this.fieldFormatter=new s.FieldFormatter(t),this.headers=t.headers,this.shouldWriteHeaders=t.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),t.transform&&(this.rowTransform=t.transform)}return J(e,[{key:"rowTransform",set:function(t){if(!i.default(t))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(t)}},{key:"format",value:function(e,t){var r=this;this.callTransformer(e,function(n,i){if(n)return t(n);if(!e)return t(null);var a=[];if(i){var s=r.checkHeaders(i),o=s.shouldFormatColumns,l=s.headers;if(r.shouldWriteHeaders&&l&&!r.hasWrittenHeaders&&(a.push(r.formatColumns(l,!0)),r.hasWrittenHeaders=!0),o){var c=r.gatherColumns(i);a.push(r.formatColumns(c,!1))}}return t(null,a)})}},{key:"finish",value:function(e){var t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(/* @__PURE__ */new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}},{key:"checkHeaders",value:function(t){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var r=e.gatherHeaders(t);return this.headers=r,this.fieldFormatter.headers=r,this.shouldWriteHeaders?{shouldFormatColumns:!a.default(r,t),headers:r}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(t){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(t)?e.isRowHashArray(t)?this.headers.map(function(e,r){var n=t[r];return n?n[1]:""}):e.isRowArray(t)&&!this.shouldWriteHeaders?t:this.headers.map(function(e,r){return t[r]}):this.headers.map(function(e){return t[e]})}},{key:"callTransformer",value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:"formatColumns",value:function(e,t){var r=this,n=e.map(function(e,n){return r.fieldFormatter.format(e,n,t)}).join(this.formatterOptions.delimiter),i=this.rowCount;return this.rowCount+=1,i?[this.formatterOptions.rowDelimiter,n].join(""):n}}],[{key:"isRowHashArray",value:function(e){return!!Array.isArray(e)&&(Array.isArray(e[0])&&2===e[0].length)}},{key:"isRowArray",value:function(e){return Array.isArray(e)&&!this.isRowHashArray(e)}},{key:"gatherHeaders",value:function(t){return e.isRowHashArray(t)?t.map(function(e){return e[0]}):Array.isArray(t)?t:Object.keys(t)}},{key:"createTransform",value:function(e){return o.isSyncTransform(e)?function(t,r){var n=null;try{n=e(t)}catch(i){return r(i)}return r(null,n)}:function(t,r){e(t,r)}}}])}()},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FieldFormatter=r.RowFormatter=void 0;var n=e("./RowFormatter");Object.defineProperty(r,"RowFormatter",{enumerable:!0,get:function(){return n.RowFormatter}});var i=e("./FieldFormatter");Object.defineProperty(r,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,r){(function(t){(function(){var n=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(r,"__esModule",{value:!0}),r.writeToPath=r.writeToString=r.writeToBuffer=r.writeToStream=r.write=r.format=r.FormatterOptions=r.CsvFormatterStream=void 0;var a=e("util"),s=e("stream"),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t}(e("fs")),l=e("./FormatterOptions"),c=e("./CsvFormatterStream");!function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)}(e("./types"),r);var u=e("./CsvFormatterStream");Object.defineProperty(r,"CsvFormatterStream",{enumerable:!0,get:function(){return u.CsvFormatterStream}});var f=e("./FormatterOptions");Object.defineProperty(r,"FormatterOptions",{enumerable:!0,get:function(){return f.FormatterOptions}}),r.format=function(e){return new c.CsvFormatterStream(new l.FormatterOptions(e))},r.write=function(e,t){var n=r.format(t),i=a.promisify(function(e,t){n.write(e,void 0,t)});return e.reduce(function(e,t){return e.then(function(){return i(t)})},Promise.resolve()).then(function(){return n.end()}).catch(function(e){n.emit("error",e)}),n},r.writeToStream=function(e,t,n){return r.write(t,n).pipe(e)},r.writeToBuffer=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],a=new s.Writable({write:function(e,t,r){i.push(e),r()}});return new Promise(function(s,o){a.on("error",o).on("finish",function(){return s(t.concat(i))}),r.write(e,n).pipe(a)})},r.writeToString=function(e,t){return r.writeToBuffer(e,t).then(function(e){return e.toString()})},r.writeToPath=function(e,t,n){var i=o.createWriteStream(e,{encoding:"utf8"});return r.write(t,n).pipe(i)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isSyncTransform=void 0,r.isSyncTransform=function(e){return 1===e.length}},{}],153:[function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.CsvParserStream=void 0;var a=e("string_decoder"),s=e("stream"),o=e("./transforms"),l=e("./parser");r.CsvParserStream=/* @__PURE__ */function(e){function r(e){var t;return Y(this,r),(t=i(this,r,[{objectMode:e.objectMode}])).lines="",t.rowCount=0,t.parsedRowCount=0,t.parsedLineCount=0,t.endEmitted=!1,t.headersEmitted=!1,t.parserOptions=e,t.parser=new l.Parser(e),t.headerTransformer=new o.HeaderTransformer(e),t.decoder=new a.StringDecoder(e.encoding),t.rowTransformerValidator=new o.RowTransformerValidator,t}return Rt(r,e),J(r,[{key:"hasHitRowLimit",get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:"shouldEmitRows",get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:"shouldSkipLine",get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}},{key:"transform",value:function(e){return this.rowTransformerValidator.rowTransform=e,this}},{key:"validate",value:function(e){return this.rowTransformerValidator.rowValidator=e,this}},{key:"emit",value:function(e){if("end"===e)return this.endEmitted||(this.endEmitted=!0,n(r,"emit",this,3)(["end",this.rowCount])),!1;for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return n(r,"emit",this,3)([e].concat(i))}},{key:"_transform",value:function(e,t,n){if(this.hasHitRowLimit)return n();var i=r.wrapDoneCallback(n);try{var a=this.lines+this.decoder.write(e),s=this.parse(a,!0);return this.processRows(s,i)}catch(o){return i(o)}}},{key:"_flush",value:function(e){var t=r.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{var n=this.lines+this.decoder.end(),i=this.parse(n,!1);return this.processRows(i,t)}catch(a){return t(a)}}},{key:"parse",value:function(e,t){if(!e)return[];var r=this.parser.parse(e,t),n=r.line,i=r.rows;return this.lines=n,i}},{key:"processRows",value:function(e,r){var n=this,i=e.length,a=function(s){var o=function(e){return e?r(e):s%100!=0?a(s+1):void t(function(){return a(s+1)})};if(n.checkAndEmitHeaders(),s>=i||n.hasHitRowLimit)return r();if(n.parsedLineCount+=1,n.shouldSkipLine)return o();var l=e[s];n.rowCount+=1,n.parsedRowCount+=1;var c=n.rowCount;return n.transformRow(l,function(e,t){if(e)return n.rowCount-=1,o(e);if(!t)return o(/* @__PURE__ */new Error("expected transform result"));if(t.isValid){if(t.row)return n.pushRow(t.row,o)}else n.emit("data-invalid",t.row,c,t.reason);return o()})};a(0)}},{key:"transformRow",value:function(e,t){var r=this;try{this.headerTransformer.transform(e,function(n,i){return n?t(n):i?i.isValid?i.row?r.shouldEmitRows?r.rowTransformerValidator.transformAndValidate(i.row,t):r.skipRow(t):(r.rowCount-=1,r.parsedRowCount-=1,t(null,{row:null,isValid:!0})):r.shouldEmitRows?t(null,{isValid:!1,row:e}):r.skipRow(t):t(/* @__PURE__ */new Error("Expected result from header transform"))})}catch(n){t(n)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(r){t(r)}}}],[{key:"wrapDoneCallback",value:function(e){var t=!1;return function(r){if(r){if(t)throw r;return t=!0,void e(r)}for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e.apply(void 0,i)}}}])}(s.Transform)}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,r){var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ParserOptions=void 0;var i=n(e("lodash.escaperegexp")),a=n(e("lodash.isnil"));r.ParserOptions=/* @__PURE__ */J(function e(t){var r;if(Y(this,e),this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,t||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=null!==(r=this.escape)&&void 0!==r?r:this.quote,this.supportsComments=!a.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)})},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,r){var n=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(r,"__esModule",{value:!0}),r.parseString=r.parseFile=r.parseStream=r.parse=r.ParserOptions=r.CsvParserStream=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t}(e("fs")),s=e("stream"),o=e("./ParserOptions"),l=e("./CsvParserStream");!function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)}(e("./types"),r);var c=e("./CsvParserStream");Object.defineProperty(r,"CsvParserStream",{enumerable:!0,get:function(){return c.CsvParserStream}});var u=e("./ParserOptions");Object.defineProperty(r,"ParserOptions",{enumerable:!0,get:function(){return u.ParserOptions}}),r.parse=function(e){return new l.CsvParserStream(new o.ParserOptions(e))},r.parseStream=function(e,t){return e.pipe(new l.CsvParserStream(new o.ParserOptions(t)))},r.parseFile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.createReadStream(e).pipe(new l.CsvParserStream(new o.ParserOptions(t)))},r.parseString=function(e,t){var r=new s.Readable;return r.push(e),r.push(null),r.pipe(new l.CsvParserStream(new o.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0;var n=e("./Scanner"),i=e("./RowParser"),a=e("./Token");r.Parser=/* @__PURE__ */function(){function e(t){Y(this,e),this.parserOptions=t,this.rowParser=new i.RowParser(this.parserOptions)}return J(e,[{key:"parse",value:function(t,r){var i=new n.Scanner({line:e.removeBOM(t),parserOptions:this.parserOptions,hasMoreData:r});return this.parserOptions.supportsComments?this.parseWithComments(i):this.parseWithoutComments(i)}},{key:"parseWithoutComments",value:function(e){for(var t=[],r=!0;r;)r=this.parseRow(e,t);return{line:e.line,rows:t}}},{key:"parseWithComments",value:function(e){for(var t=this.parserOptions,r=[],n=e.nextCharacterToken;null!==n;n=e.nextCharacterToken)if(a.Token.isTokenComment(n,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:r};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:r};e.truncateToCursor()}else if(!this.parseRow(e,r))break;return{line:e.line,rows:r}}},{key:"parseRow",value:function(e,t){if(!e.nextNonSpaceToken)return!1;var r=this.rowParser.parse(e);return null!==r&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(r)||t.push(r),!0)}}],[{key:"removeBOM",value:function(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}}])}()},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RowParser=void 0;var n=e("./column"),i=e("./Token");r.RowParser=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.parserOptions=t,this.columnParser=new n.ColumnParser(t)},[{key:"parse",value:function(e){for(var t=this.parserOptions,r=e.hasMoreData,n=e,a=[],s=this.getStartToken(n,a);s;){if(i.Token.isTokenRowDelimiter(s))return n.advancePastToken(s),!n.hasMoreCharacters&&i.Token.isTokenCarriageReturn(s,t)&&r?null:(n.truncateToCursor(),a);if(!this.shouldSkipColumnParse(n,s,a)){var o=this.columnParser.parse(n);if(null===o)return null;a.push(o)}s=n.nextNonSpaceToken}return r?null:(n.truncateToCursor(),a)}},{key:"getStartToken",value:function(e,t){var r=e.nextNonSpaceToken;return null!==r&&i.Token.isTokenDelimiter(r,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):r}},{key:"shouldSkipColumnParse",value:function(e,t,r){var n=this.parserOptions;if(i.Token.isTokenDelimiter(t,n)){e.advancePastToken(t);var a=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==a&&i.Token.isTokenRowDelimiter(a))return r.push(""),!0;if(null!==a&&i.Token.isTokenDelimiter(a,n))return r.push(""),!0}return!1}}],[{key:"isEmptyRow",value:function(e){return""===e.join("").replace(/\s+/g,"")}}])}()},{"./Token":159,"./column":164}],158:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Scanner=void 0;var n=e("./Token"),i=/((?:\r\n)|\n|\r)/;r.Scanner=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.cursor=0,this.line=t.line,this.lineLength=this.line.length,this.parserOptions=t.parserOptions,this.hasMoreData=t.hasMoreData,this.cursor=t.cursor||0},[{key:"hasMoreCharacters",get:function(){return this.lineLength>this.cursor}},{key:"nextNonSpaceToken",get:function(){var e=this.lineFromCursor,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;var r=t.exec(e);if(null==r)return null;var i=r[1],a=this.cursor+(r.index||0);return new n.Token({token:i,startCursor:a,endCursor:a+i.length-1})}},{key:"nextCharacterToken",get:function(){var e=this.cursor;return this.lineLength<=e?null:new n.Token({token:this.line[e],startCursor:e,endCursor:e})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}},{key:"advancePastLine",value:function(){var e=i.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:"advanceTo",value:function(e){return this.cursor=e,this}},{key:"advanceToToken",value:function(e){return this.cursor=e.startCursor,this}},{key:"advancePastToken",value:function(e){return this.cursor=e.endCursor+1,this}},{key:"truncateToCursor",value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}])}()},{"./Token":159}],159:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Token=void 0,r.Token=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.token=t.token,this.startCursor=t.startCursor,this.endCursor=t.endCursor},null,[{key:"isTokenRowDelimiter",value:function(e){var t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}},{key:"isTokenCarriageReturn",value:function(e,t){return e.token===t.carriageReturn}},{key:"isTokenComment",value:function(e,t){return t.supportsComments&&!!e&&e.token===t.comment}},{key:"isTokenEscapeCharacter",value:function(e,t){return e.token===t.escapeChar}},{key:"isTokenQuote",value:function(e,t){return e.token===t.quote}},{key:"isTokenDelimiter",value:function(e,t){return e.token===t.delimiter}}])}()},{}],160:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnFormatter=void 0,r.ColumnFormatter=/* @__PURE__ */J(function e(t){Y(this,e),t.trim?this.format=function(e){return e.trim()}:t.ltrim?this.format=function(e){return e.trimLeft()}:t.rtrim?this.format=function(e){return e.trimRight()}:this.format=function(e){return e}})},{}],161:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnParser=void 0;var n=e("./NonQuotedColumnParser"),i=e("./QuotedColumnParser"),a=e("../Token");r.ColumnParser=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.parserOptions=t,this.quotedColumnParser=new i.QuotedColumnParser(t),this.nonQuotedColumnParser=new n.NonQuotedColumnParser(t)},[{key:"parse",value:function(e){var t=e.nextNonSpaceToken;return null!==t&&a.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}])}()},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NonQuotedColumnParser=void 0;var n=e("./ColumnFormatter"),i=e("../Token");r.NonQuotedColumnParser=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.parserOptions=t,this.columnFormatter=new n.ColumnFormatter(t)},[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;for(var t=this.parserOptions,r=[],n=e.nextCharacterToken;n&&(!i.Token.isTokenDelimiter(n,t)&&!i.Token.isTokenRowDelimiter(n));n=e.nextCharacterToken)r.push(n.token),e.advancePastToken(n);return this.columnFormatter.format(r.join(""))}}])}()},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.QuotedColumnParser=void 0;var n=e("./ColumnFormatter"),i=e("../Token");r.QuotedColumnParser=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.parserOptions=t,this.columnFormatter=new n.ColumnFormatter(t)},[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;var t=e.cursor,r=this.gatherDataBetweenQuotes(e),n=r.foundClosingQuote,i=r.col;if(!n){if(e.advanceTo(t),!e.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(e.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(e),i}},{key:"gatherDataBetweenQuotes",value:function(e){for(var t=this.parserOptions,r=!1,n=!1,a=[],s=e.nextCharacterToken;!n&&null!==s;s=e.nextCharacterToken){var o=i.Token.isTokenQuote(s,t);if(!r&&o)r=!0;else if(r)if(i.Token.isTokenEscapeCharacter(s,t)){e.advancePastToken(s);var l=e.nextCharacterToken;null!==l&&(i.Token.isTokenQuote(l,t)||i.Token.isTokenEscapeCharacter(l,t))?(a.push(l.token),s=l):o?n=!0:a.push(s.token)}else o?n=!0:a.push(s.token);e.advancePastToken(s)}return{col:this.columnFormatter.format(a.join("")),foundClosingQuote:n}}},{key:"checkForMalformedColumn",value:function(e){var t=this.parserOptions,r=e.nextNonSpaceToken;if(r){var n=i.Token.isTokenDelimiter(r,t),a=i.Token.isTokenRowDelimiter(r);if(!n&&!a){var s=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error("Parse Error: expected: '".concat(t.escapedDelimiter,"' OR new line got: '").concat(r.token,"'. at '").concat(s))}e.advanceToToken(r)}else e.hasMoreData||e.advancePastLine()}}])}()},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnFormatter=r.QuotedColumnParser=r.NonQuotedColumnParser=r.ColumnParser=void 0;var n=e("./ColumnParser");Object.defineProperty(r,"ColumnParser",{enumerable:!0,get:function(){return n.ColumnParser}});var i=e("./NonQuotedColumnParser");Object.defineProperty(r,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var a=e("./QuotedColumnParser");Object.defineProperty(r,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}});var s=e("./ColumnFormatter");Object.defineProperty(r,"ColumnFormatter",{enumerable:!0,get:function(){return s.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.QuotedColumnParser=r.NonQuotedColumnParser=r.ColumnParser=r.Token=r.Scanner=r.RowParser=r.Parser=void 0;var n=e("./Parser");Object.defineProperty(r,"Parser",{enumerable:!0,get:function(){return n.Parser}});var i=e("./RowParser");Object.defineProperty(r,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var a=e("./Scanner");Object.defineProperty(r,"Scanner",{enumerable:!0,get:function(){return a.Scanner}});var s=e("./Token");Object.defineProperty(r,"Token",{enumerable:!0,get:function(){return s.Token}});var o=e("./column");Object.defineProperty(r,"ColumnParser",{enumerable:!0,get:function(){return o.ColumnParser}}),Object.defineProperty(r,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}}),Object.defineProperty(r,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,r){var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderTransformer=void 0;var i=n(e("lodash.isundefined")),a=n(e("lodash.isfunction")),s=n(e("lodash.uniq")),o=n(e("lodash.groupby"));r.HeaderTransformer=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=t,!0===t.headers?this.shouldUseFirstRow=!0:Array.isArray(t.headers)?this.setHeaders(t.headers):a.default(t.headers)&&(this.headersTransform=t.headers)},[{key:"transform",value:function(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}},{key:"shouldMapRow",value:function(e){var t=this.parserOptions;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}},{key:"processRow",value:function(e){if(!this.headers)return{row:e,isValid:!0};var t=this.parserOptions;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length));return{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}:{row:this.mapHeaders(e),isValid:!0}}},{key:"mapHeaders",value:function(e){for(var t={},r=this.headers,n=this.headersLength,a=0;a<n;a+=1){var s=r[a];if(!i.default(s)){var o=e[a];i.default(o)?t[s]="":t[s]=o}}return t}},{key:"setHeaders",value:function(e){var t,r=e.filter(function(e){return!!e});if(s.default(r).length!==r.length){var n=o.default(r),i=Object.keys(n).filter(function(e){return n[e].length>1});throw new Error("Duplicate headers found ".concat(JSON.stringify(i)))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}])}()},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RowTransformerValidator=void 0;var n,i=(n=e("lodash.isfunction"))&&n.__esModule?n:{default:n},a=e("../types");r.RowTransformerValidator=/* @__PURE__ */function(){function e(){Y(this,e),this._rowTransform=null,this._rowValidator=null}return J(e,[{key:"rowTransform",set:function(t){if(!i.default(t))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(t)}},{key:"rowValidator",set:function(t){if(!i.default(t))throw new TypeError("The validate should be a function");this._rowValidator=e.createValidator(t)}},{key:"transformAndValidate",value:function(e,t){var r=this;return this.callTransformer(e,function(e,n){return e?t(e):n?r.callValidator(n,function(e,r){return e?t(e):r&&!r.isValid?t(null,{row:n,isValid:!1,reason:r.reason}):t(null,{row:n,isValid:!0})}):t(null,{row:null,isValid:!0})})}},{key:"callTransformer",value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:"callValidator",value:function(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}],[{key:"createTransform",value:function(e){return a.isSyncTransform(e)?function(t,r){var n=null;try{n=e(t)}catch(i){return r(i)}return r(null,n)}:e}},{key:"createValidator",value:function(e){return a.isSyncValidate(e)?function(t,r){r(null,{row:t,isValid:e(t)})}:function(t,r){e(t,function(e,n,i){return e?r(e):r(null,n?{row:t,isValid:n,reason:i}:{row:t,isValid:!1,reason:i})})}}}])}()},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderTransformer=r.RowTransformerValidator=void 0;var n=e("./RowTransformerValidator");Object.defineProperty(r,"RowTransformerValidator",{enumerable:!0,get:function(){return n.RowTransformerValidator}});var i=e("./HeaderTransformer");Object.defineProperty(r,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isSyncValidate=r.isSyncTransform=void 0,r.isSyncTransform=function(e){return 1===e.length},r.isSyncValidate=function(e){return 1===e.length}},{}],170:[function(e,t,r){var n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,t,r){var n=e("./encoders"),i=e("./decoders"),a=e("inherits");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){var t=this.name;function r(e){this._initNamed(e,t)}return a(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,r){var n=e("inherits"),i=e("../base/reporter").Reporter,a=e("safer-buffer").Buffer;function s(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+P(e));this.value=e,this.length=e.length}}n(s,i),r.DecoderBuffer=s,s.isDecoderBuffer=function(e){return e instanceof s||"object"===P(e)&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=o,o.isEncoderBuffer=function(e){return e instanceof o||"object"===P(e)&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},o.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,r){var n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,r){var n=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,a=e("../base/buffer").DecoderBuffer,s=e("minimalistic-assert"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function c(e,t,r){var n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};u.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState;l.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!==P(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,s=!0,o=null;if(null!==r.key&&(o=e.enterKey(r.key)),r.optional){var l=null;if(null!==r.explicit?l=r.explicit:null!==r.implicit?l=r.implicit:null!==r.tag&&(l=r.tag),null!==l||r.any){if(s=this._peekTag(e,l,r.any),e.isError(s))return s}else{var c=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),s=!0}catch(m){s=!1}e.restore(c)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){var u=this._decodeTag(e,r.explicit);if(e.isError(u))return u;e=u}var f=e.offset;if(null===r.use&&null===r.choice){var h;r.any&&(h=e.save());var d=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(d))return d;r.any?i=e.raw(h):e=d}if(t&&t.track&&null!==r.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new a(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(p,t)}}return r.obj&&s&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==s?null!==o&&e.exitKey(o):e.leaveKey(o,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some(function(a){var s=e.save(),o=r.choice[a];try{var l=o._decode(e,t);if(e.isError(l))return!1;n={type:a,value:l},i=!0}catch(c){return e.restore(s),!1}return!0},this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},c.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var s=null,o=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,r)._encode(e,t),o=!0;else if(i.children)s=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!==P(e))return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},l))}else null!==i.use?a=this._getUse(i.use,r)._encode(e,t):(s=this._encodePrimitive(i.tag,e),o=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===c?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(c,o,u,s))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},c.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,r){var n=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}r.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof a;if(t=n?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},{inherits:440}],176:[function(e,t,r){function n(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r}),t}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n(r.tag)},{}],177:[function(e,t,r){var n=r;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r}),t},n.der=e("./der")},{"./der":176}],178:[function(e,t,r){var n=e("inherits"),i=e("bn.js"),a=e("../base/buffer").DecoderBuffer,s=e("../base/node"),o=e("../constants/der");function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){s.call(this,"der",e)}function u(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=o.tagClass[r>>6],i=!(32&r);if(31&~r)r&=31;else{var a=r;for(r=0;!(128&~a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}return{cls:n,primitive:i,tag:r,tagStr:o.tag[r]}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(!(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var a=0;a<i;a++){n<<=8;var s=e.readUInt8(r);if(e.isError(s))return s;n|=s}return n}t.exports=l,l.prototype.decode=function(e,t){return a.isDecoderBuffer(e)||(e=new a(e,t)),this.tree._decode(e,t)},n(c,s),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=f(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=u(e,t);if(e.isError(r))return r;var n=f(e,r.primitive,t);if(e.isError(n))return n;var i=void 0;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var s=r.decode(e,"der",n);if(e.isError(s)&&a)break;i.push(s)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<n.length/2;a++)i+=String.fromCharCode(n.readUInt16BE(2*a));return i}if("numstr"===t){var s=e.raw().toString("ascii");return this._isNumstr(s)?s:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var o=e.raw().toString("ascii");return this._isPrintstr(o)?o:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],a=0,s=0;!e.isEmpty();)a<<=7,a|=127&(s=e.readUInt8()),128&s||(i.push(a),a=0);128&s&&i.push(a);var o=i[0]/40|0,l=i[0]%40;if(n=r?i:[o,l].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r,n,i,a,s,o,l=e.raw().toString();if("gentime"===t)r=0|l.slice(0,4),n=0|l.slice(4,6),i=0|l.slice(6,8),a=0|l.slice(8,10),s=0|l.slice(10,12),o=0|l.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|l.slice(0,2),n=0|l.slice(2,4),i=0|l.slice(4,6),a=0|l.slice(6,8),s=0|l.slice(8,10),o=0|l.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,i,a,s,o,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=new i(e.raw());return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,r){var n=e("inherits"),i=e("safer-buffer").Buffer,a=e("./der");function s(e){a.call(this,e),this.enc="pem"}n(s,a),t.exports=s,s.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,l=-1,c=0;c<r.length;c++){var u=r[c].match(s);if(null!==u&&u[2]===n){if(-1!==o){if("END"!==u[1])break;l=c;break}if("BEGIN"!==u[1])break;o=c}}if(-1===o||-1===l)throw new Error("PEM section not found for: "+n);var f=r.slice(o+1,l).join("");f.replace(/[^a-z0-9+/=]+/gi,"");var h=i.from(f,"base64");return a.prototype.decode.call(this,h,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,r){var n=e("inherits"),i=e("safer-buffer").Buffer,a=e("../base/node"),s=e("../constants/der");function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.call(this,"der",e)}function c(e){return e<10?"0"+e:e}t.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(l,a),l.prototype._encodeComposite=function(e,t,r,n){var a=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6,i}(e,t,r,this.reporter);if(n.length<128){var o=i.alloc(2);return o[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n])}for(var l=1,c=n.length;c>=256;c>>=8)l++;var u=i.alloc(2+l);u[0]=a,u[1]=128|l;for(var f=1+l,h=n.length;h>0;f--,h>>=8)u[f]=255&h;return this._createEncoderBuffer([u,n])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=i.alloc(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var a=0;a<e.length;a++)e[a]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var s=0,o=0;o<e.length;o++){var l=e[o];for(s++;l>=128;l>>=7)s++}for(var c=i.alloc(s),u=c.length-1,f=e.length-1;f>=0;f--){var h=e[f];for(c[u--]=127&h;(h>>=7)>0;)c[u--]=128|127&h}return this._createEncoderBuffer(c)},l.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=i.from(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var a=i.alloc(n);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var s=1,o=e;o>=256;o>>=8)s++;for(var l=new Array(s),c=l.length-1;c>=0;c--)l[c]=255&e,e>>=8;return 128&l[0]&&l.unshift(0),this._createEncoderBuffer(i.from(l))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),a.length!==i.defaultBuffer.length)return!1;for(n=0;n<a.length;n++)if(a[n]!==i.defaultBuffer[n])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,t,r){var n=e("inherits"),i=e("./der");function a(e){i.call(this,e),this.enc="pem"}n(a,i),t.exports=a,a.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],a=0;a<r.length;a+=64)n.push(r.slice(a,a+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":181,inherits:440}],184:[function(e,t,r){!function(t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===P(t)?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(S){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,a=Math.min(e.length,r),s=t;s<a;s++){var o=e.charCodeAt(s)-48;i*=n,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"===P(e)&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"===P(e))return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,s,o=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=s<<o&67108863,this.words[a+1]=s>>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);else if("le"===n)for(i=0,a=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=s<<o&67108863,this.words[a+1]=s>>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);return this.strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,a=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=o(e,t,n)<<a,this.words[s]|=67108863&i,a>=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=o(e,t,n)<<a,this.words[s]|=67108863&i,a>=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,c=0,u=r;u<o;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var f=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)f*=t;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,l=s/67108864|0;r.words[0]=o;for(var c=1;c<n;c++){for(var u=l>>>26,f=67108863&l,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[d])+f)/67108864|0,f=67108863&s}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,s=0;s<this.length;s++){var o=this.words[s],l=(16777215&(o<<i|a)).toString(16);n=0!==(a=o>>>24-i&16777215)||s!==this.length-1?c[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],d=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(e);n=(p=p.idivn(d)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var s,o,l="le"===t,c=new e(a),u=this.clone();if(l){for(o=0;!u.isZero();o++)s=u.andln(255),u.iushrn(8),c[o]=s;for(;o<a;o++)c[o]=0}else{for(o=0;o<a-i;o++)c[o]=0;for(o=0;!u.isZero();o++)s=u.andln(255),u.iushrn(8),c[a-o-1]=s}return c},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)t=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<r.length;a++)t=(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var a=0,s=0;s<n.length;s++)a=(t=(0|r.words[s])-(0|n.words[s])+a)>>26,this.words[s]=67108863&t;for(;0!==a&&s<r.length;s++)a=(t=(0|r.words[s])+a)>>26,this.words[s]=67108863&t;if(0===a&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var d=function(e,t,r){var n,i,a,s=e.words,o=t.words,l=r.words,c=0,u=0|s[0],f=8191&u,h=u>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,b=v>>>13,y=0|s[3],w=8191&y,_=y>>>13,k=0|s[4],x=8191&k,S=k>>>13,T=0|s[5],E=8191&T,C=T>>>13,A=0|s[6],M=8191&A,O=A>>>13,R=0|s[7],I=8191&R,N=R>>>13,P=0|s[8],D=8191&P,F=P>>>13,j=0|s[9],L=8191&j,B=j>>>13,z=0|o[0],U=8191&z,H=z>>>13,W=0|o[1],V=8191&W,$=W>>>13,q=0|o[2],X=8191&q,G=q>>>13,Y=0|o[3],K=8191&Y,Z=Y>>>13,J=0|o[4],Q=8191&J,ee=J>>>13,te=0|o[5],re=8191&te,ne=te>>>13,ie=0|o[6],ae=8191&ie,se=ie>>>13,oe=0|o[7],le=8191&oe,ce=oe>>>13,ue=0|o[8],fe=8191&ue,he=ue>>>13,de=0|o[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ve=(c+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,U)|0))<<13)|0;c=((a=Math.imul(h,H))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,H))+Math.imul(m,U)|0,a=Math.imul(m,H);var ge=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(h,V)|0))<<13)|0;c=((a=a+Math.imul(h,$)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,U),i=(i=Math.imul(g,H))+Math.imul(b,U)|0,a=Math.imul(b,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,$)|0;var be=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,H))+Math.imul(_,U)|0,a=Math.imul(_,H),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(b,V)|0,a=a+Math.imul(b,$)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,G)|0;var ye=(c+(n=n+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,U),i=(i=Math.imul(x,H))+Math.imul(S,U)|0,a=Math.imul(S,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,$)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,G)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,Z)|0;var we=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,U),i=(i=Math.imul(E,H))+Math.imul(C,U)|0,a=Math.imul(C,H),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,V)|0,a=a+Math.imul(S,$)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(b,K)|0,a=a+Math.imul(b,Z)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,H))+Math.imul(O,U)|0,a=Math.imul(O,H),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,$)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,K)|0,a=a+Math.imul(_,Z)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,a=a+Math.imul(m,ne)|0;var ke=(c+(n=n+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,se)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,se)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,H))+Math.imul(N,U)|0,a=Math.imul(N,H),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,$)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Z)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(b,re)|0,a=a+Math.imul(b,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,se)|0;var xe=(c+(n=n+Math.imul(f,le)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,H))+Math.imul(F,U)|0,a=Math.imul(F,H),n=n+Math.imul(I,V)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(N,V)|0,a=a+Math.imul(N,$)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,G)|0,n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Z)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,a=a+Math.imul(_,ne)|0,n=n+Math.imul(g,ae)|0,i=(i=i+Math.imul(g,se)|0)+Math.imul(b,ae)|0,a=a+Math.imul(b,se)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,a=a+Math.imul(m,ce)|0;var Se=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,H))+Math.imul(B,U)|0,a=Math.imul(B,H),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(F,V)|0,a=a+Math.imul(F,$)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(N,X)|0,a=a+Math.imul(N,G)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Z)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(C,Q)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(S,re)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,se)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(b,le)|0,a=a+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,a=a+Math.imul(m,he)|0;var Te=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((a=a+Math.imul(h,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,$))+Math.imul(B,V)|0,a=Math.imul(B,$),n=n+Math.imul(D,X)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(F,X)|0,a=a+Math.imul(F,G)|0,n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(N,K)|0,a=a+Math.imul(N,Z)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(C,re)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(x,ae)|0,i=(i=i+Math.imul(x,se)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,se)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,le)|0,a=a+Math.imul(_,ce)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(b,fe)|0,a=a+Math.imul(b,he)|0;var Ee=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,G))+Math.imul(B,X)|0,a=Math.imul(B,G),n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Z)|0)+Math.imul(F,K)|0,a=a+Math.imul(F,Z)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,a=a+Math.imul(N,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(O,re)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,se)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,se)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,a=a+Math.imul(_,he)|0;var Ce=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((a=a+Math.imul(b,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,Z))+Math.imul(B,K)|0,a=Math.imul(B,Z),n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(F,Q)|0,a=a+Math.imul(F,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(N,re)|0,a=a+Math.imul(N,ne)|0,n=n+Math.imul(M,ae)|0,i=(i=i+Math.imul(M,se)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,se)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,fe)|0,a=a+Math.imul(S,he)|0;var Ae=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((a=a+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul(B,Q)|0,a=Math.imul(B,ee),n=n+Math.imul(D,re)|0,i=(i=i+Math.imul(D,ne)|0)+Math.imul(F,re)|0,a=a+Math.imul(F,ne)|0,n=n+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(N,ae)|0,a=a+Math.imul(N,se)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(C,fe)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((a=a+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(B,re)|0,a=Math.imul(B,ne),n=n+Math.imul(D,ae)|0,i=(i=i+Math.imul(D,se)|0)+Math.imul(F,ae)|0,a=a+Math.imul(F,se)|0,n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(N,le)|0,a=a+Math.imul(N,ce)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(O,fe)|0,a=a+Math.imul(O,he)|0;var Oe=(c+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((a=a+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,ae),i=(i=Math.imul(L,se))+Math.imul(B,ae)|0,a=Math.imul(B,se),n=n+Math.imul(D,le)|0,i=(i=i+Math.imul(D,ce)|0)+Math.imul(F,le)|0,a=a+Math.imul(F,ce)|0,n=n+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(N,fe)|0,a=a+Math.imul(N,he)|0;var Re=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((a=a+Math.imul(O,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,ce))+Math.imul(B,le)|0,a=Math.imul(B,ce),n=n+Math.imul(D,fe)|0,i=(i=i+Math.imul(D,he)|0)+Math.imul(F,fe)|0,a=a+Math.imul(F,he)|0;var Ie=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((a=a+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(B,fe)|0,a=Math.imul(B,he);var Ne=(c+(n=n+Math.imul(D,pe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(F,pe)|0))<<13)|0;c=((a=a+Math.imul(F,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Pe=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(B,pe)|0))<<13)|0;return c=((a=Math.imul(B,me))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,l[0]=ve,l[1]=ge,l[2]=be,l[3]=ye,l[4]=we,l[5]=_e,l[6]=ke,l[7]=xe,l[8]=Se,l[9]=Te,l[10]=Ee,l[11]=Ce,l[12]=Ae,l[13]=Me,l[14]=Oe,l[15]=Re,l[16]=Ie,l[17]=Ne,l[18]=Pe,0!==c&&(l[19]=c,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(d=h),i.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?d(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var s=i;i=0;for(var o=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,f=(0|e.words[u])*(0|t.words[c]),h=67108863&f;o=67108863&(h=h+o|0),i+=(s=(s=s+(f/67108864|0)|0)+(h>>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):p(this,e,t),r},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s<a;s++)n[s]=t[e[s]],i[s]=r[e[s]]},m.prototype.transform=function(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var o=s<<1,l=Math.cos(2*Math.PI/o),c=Math.sin(2*Math.PI/o),u=0;u<i;u+=o)for(var f=l,h=c,d=0;d<s;d++){var p=r[u+d],m=n[u+d],v=r[u+d+s],g=n[u+d+s],b=f*v-h*g;g=f*g+h*v,v=b,r[u+d]=p+v,n[u+d]=m+g,r[u+d+s]=p-v,n[u+d+s]=m-g,d!==o&&(b=l*f-c*h,h=l*h+c*f,f=b)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var a=0,s=0;s<t;s++)a+=0|e[s],n[2*s]=8191&a,a>>>=13,n[2*s+1]=8191&a,a>>>=13;for(s=2*t;s<i;++s)n[s]=0;r(0===a),r(!(-8192&a))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),a=this.stub(n),s=new Array(n),o=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,c,n),this.transform(s,a,o,l,n,i),this.transform(c,a,u,f,n,i);for(var d=0;d<n;d++){var p=o[d]*u[d]-l[d]*f[d];l[d]=o[d]*f[d]+l[d]*u[d],o[d]=p}return this.conjugate(o,l,n),this.transform(o,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),p(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var a=r.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(r=r.mul(a));return r},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var o=this.words[t]&a,l=(0|this.words[t])-o<<n;this.words[t]=l|s,s=o>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<<a,l=n;if(i-=s,i=Math.max(0,i),l){for(var c=0;c<s;c++)l.words[c]=this.words[c];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&o}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var i,a,s=e.length+n;this._expand(s);var o=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+o;var l=(0|e.words[i])*t;o=((a-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)o=(a=(0|this.words[i+n])+o)>>26,this.words[i+n]=67108863&a;if(0===o)return this.strip();for(r(-1===o),o=0,i=0;i<this.length;i++)o=(a=-(0|this.words[i])+o)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,s=0|a.words[a.length-1];0!==(r=26-this._countBits(s))&&(a=a.ushln(r),n.iushln(r),s=0|a.words[a.length-1]);var o,l=n.length-a.length;if("mod"!==t){(o=new i(null)).length=l+1,o.words=new Array(o.length);for(var c=0;c<o.length;c++)o.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,o&&(o.words[l]=1));for(var f=l-1;f>=0;f--){var h=67108864*(0|n.words[a.length+f])+(0|n.words[a.length+f-1]);for(h=Math.min(h/s|0,67108863),n._ishlnsubmul(a,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,f),n.isZero()||(n.negative^=1);o&&(o.words[f]=h)}return o&&o.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(a=o.div.neg()),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:a,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(a=o.div.neg()),{div:a,mod:o.mod}):0!==(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,s,o},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),s=new i(0),o=new i(0),l=new i(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0===(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(f)),a.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(o.isOdd()||l.isOdd())&&(o.iadd(u),l.isub(f)),o.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(o),s.isub(l)):(n.isub(t),o.isub(a),l.isub(s))}return{a:o,b:l,gcd:n.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,s=new i(1),o=new i(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(o)):(n.isub(t),o.isub(s))}return(a=0===t.cmpn(1)?s:o).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,s=n;0!==a&&s<this.length;s++){var o=0|this.words[s];a=(o+=a)>>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new k(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(b,g),b.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&r,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&r)<<4|a>>>22,a=s}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,g),n(w,g),n(_,g),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return v[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),s=0;!a.isZero()&&0===a.andln(1);)s++,a.iushrn(1);r(!a.isZero());var o=new i(1).toRed(this),l=o.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),d=this.pow(e,a),p=s;0!==d.cmp(o);){for(var m=d,v=0;0!==m.cmp(o);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new i(1).iushln(p-v-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var a=r[0],s=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var f=c>>u&1;a!==r[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,(4===++o||0===n&&0===u)&&(a=this.mul(a,r[s]),o=0,s=0)):o=0}l=26}return a},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new x(e)},n(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),s=a;return a.cmp(this.m)>=0?s=a.isub(this.m):a.cmpn(0)<0&&(s=a.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],185:[function(e,t,r){r.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=l(e),s=n[0],o=n[1],c=new a(function(e,t,r){return 3*(t+r)/4-r}(0,s,o)),u=0,f=o>0?s-4:s;for(r=0;r<f;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[u++]=255&t);1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=16383,o=0,l=r-i;o<l;o+=s)a.push(u(e,o,o+s>l?l:o+s));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=s[o],i[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(c(n));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],186:[function(e,t,r){!function(t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===P(t)?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(C){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,n,i){for(var a=0,s=0,o=Math.min(e.length,n),l=t;l<o;l++){var c=e.charCodeAt(l)-48;a*=i,s=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&s<i,"Invalid character"),a+=s}return a}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"===P(e)&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"===P(e))return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,s,o=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=s<<o&67108863,this.words[a+1]=s>>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);else if("le"===n)for(i=0,a=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=s<<o&67108863,this.words[a+1]=s>>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);return this._strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,a=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=o(e,t,n)<<a,this.words[s]|=67108863&i,a>=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=o(e,t,n)<<a,this.words[s]|=67108863&i,a>=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,s=a%n,o=Math.min(a,a-s)+r,c=0,u=r;u<o;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var f=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)f*=t;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){c(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(C){i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,s=0;s<this.length;s++){var o=this.words[s],l=(16777215&(o<<i|a)).toString(16);a=o>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==a||s!==this.length-1?f[6-l.length]+l+n:l+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(e);n=(p=p.idivn(u)).isZero()?m+n:f[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,l=s/67108864|0;r.words[0]=o;for(var c=1;c<n;c++){for(var u=l>>>26,f=67108863&l,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;u+=(s=(i=0|e.words[p])*(a=0|t.words[d])+f)/67108864|0,f=67108863&s}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}i.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,a=0;i<this.length;i++){var s=this.words[i]<<a|n;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===a?(r<e.length&&(e[r++]=s>>24&255),n=0,a=0):(n=s>>>24,a+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,a=0;i<this.length;i++){var s=this.words[i]<<a|n;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===a?(r>=0&&(e[r--]=s>>24&255),n=0,a=0):(n=s>>>24,a+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)t=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<r.length;a++)t=(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var a=0,s=0;s<n.length;s++)a=(t=(0|r.words[s])-(0|n.words[s])+a)>>26,this.words[s]=67108863&t;for(;0!==a&&s<r.length;s++)a=(t=(0|r.words[s])+a)>>26,this.words[s]=67108863&t;if(0===a&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,i,a,s=e.words,o=t.words,l=r.words,c=0,u=0|s[0],f=8191&u,h=u>>>13,d=0|s[1],p=8191&d,m=d>>>13,v=0|s[2],g=8191&v,b=v>>>13,y=0|s[3],w=8191&y,_=y>>>13,k=0|s[4],x=8191&k,S=k>>>13,T=0|s[5],E=8191&T,C=T>>>13,A=0|s[6],M=8191&A,O=A>>>13,R=0|s[7],I=8191&R,N=R>>>13,P=0|s[8],D=8191&P,F=P>>>13,j=0|s[9],L=8191&j,B=j>>>13,z=0|o[0],U=8191&z,H=z>>>13,W=0|o[1],V=8191&W,$=W>>>13,q=0|o[2],X=8191&q,G=q>>>13,Y=0|o[3],K=8191&Y,Z=Y>>>13,J=0|o[4],Q=8191&J,ee=J>>>13,te=0|o[5],re=8191&te,ne=te>>>13,ie=0|o[6],ae=8191&ie,se=ie>>>13,oe=0|o[7],le=8191&oe,ce=oe>>>13,ue=0|o[8],fe=8191&ue,he=ue>>>13,de=0|o[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ve=(c+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,U)|0))<<13)|0;c=((a=Math.imul(h,H))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,H))+Math.imul(m,U)|0,a=Math.imul(m,H);var ge=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(h,V)|0))<<13)|0;c=((a=a+Math.imul(h,$)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,U),i=(i=Math.imul(g,H))+Math.imul(b,U)|0,a=Math.imul(b,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,$)|0;var be=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,X)|0))<<13)|0;c=((a=a+Math.imul(h,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,H))+Math.imul(_,U)|0,a=Math.imul(_,H),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(b,V)|0,a=a+Math.imul(b,$)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,G)|0;var ye=(c+(n=n+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,K)|0))<<13)|0;c=((a=a+Math.imul(h,Z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,U),i=(i=Math.imul(x,H))+Math.imul(S,U)|0,a=Math.imul(S,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,$)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,G)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,Z)|0;var we=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,U),i=(i=Math.imul(E,H))+Math.imul(C,U)|0,a=Math.imul(C,H),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,V)|0,a=a+Math.imul(S,$)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(b,K)|0,a=a+Math.imul(b,Z)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((a=a+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,H))+Math.imul(O,U)|0,a=Math.imul(O,H),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,$)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,K)|0,a=a+Math.imul(_,Z)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,a=a+Math.imul(m,ne)|0;var ke=(c+(n=n+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,se)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,se)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,H))+Math.imul(N,U)|0,a=Math.imul(N,H),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,$)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,Z)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(b,re)|0,a=a+Math.imul(b,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,se)|0;var xe=(c+(n=n+Math.imul(f,le)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,H))+Math.imul(F,U)|0,a=Math.imul(F,H),n=n+Math.imul(I,V)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(N,V)|0,a=a+Math.imul(N,$)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,G)|0,n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,Z)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,a=a+Math.imul(_,ne)|0,n=n+Math.imul(g,ae)|0,i=(i=i+Math.imul(g,se)|0)+Math.imul(b,ae)|0,a=a+Math.imul(b,se)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,a=a+Math.imul(m,ce)|0;var Se=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,H))+Math.imul(B,U)|0,a=Math.imul(B,H),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(F,V)|0,a=a+Math.imul(F,$)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(N,X)|0,a=a+Math.imul(N,G)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,Z)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(C,Q)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(S,re)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,se)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(b,le)|0,a=a+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,a=a+Math.imul(m,he)|0;var Te=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((a=a+Math.imul(h,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,$))+Math.imul(B,V)|0,a=Math.imul(B,$),n=n+Math.imul(D,X)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(F,X)|0,a=a+Math.imul(F,G)|0,n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(N,K)|0,a=a+Math.imul(N,Z)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(C,re)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(x,ae)|0,i=(i=i+Math.imul(x,se)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,se)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,le)|0,a=a+Math.imul(_,ce)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(b,fe)|0,a=a+Math.imul(b,he)|0;var Ee=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,G))+Math.imul(B,X)|0,a=Math.imul(B,G),n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Z)|0)+Math.imul(F,K)|0,a=a+Math.imul(F,Z)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,a=a+Math.imul(N,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(O,re)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,se)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,se)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,a=a+Math.imul(_,he)|0;var Ce=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((a=a+Math.imul(b,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,Z))+Math.imul(B,K)|0,a=Math.imul(B,Z),n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(F,Q)|0,a=a+Math.imul(F,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(N,re)|0,a=a+Math.imul(N,ne)|0,n=n+Math.imul(M,ae)|0,i=(i=i+Math.imul(M,se)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,se)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(S,fe)|0,a=a+Math.imul(S,he)|0;var Ae=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((a=a+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul(B,Q)|0,a=Math.imul(B,ee),n=n+Math.imul(D,re)|0,i=(i=i+Math.imul(D,ne)|0)+Math.imul(F,re)|0,a=a+Math.imul(F,ne)|0,n=n+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(N,ae)|0,a=a+Math.imul(N,se)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,ce)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(C,fe)|0,a=a+Math.imul(C,he)|0;var Me=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((a=a+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(B,re)|0,a=Math.imul(B,ne),n=n+Math.imul(D,ae)|0,i=(i=i+Math.imul(D,se)|0)+Math.imul(F,ae)|0,a=a+Math.imul(F,se)|0,n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(N,le)|0,a=a+Math.imul(N,ce)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(O,fe)|0,a=a+Math.imul(O,he)|0;var Oe=(c+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((a=a+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,ae),i=(i=Math.imul(L,se))+Math.imul(B,ae)|0,a=Math.imul(B,se),n=n+Math.imul(D,le)|0,i=(i=i+Math.imul(D,ce)|0)+Math.imul(F,le)|0,a=a+Math.imul(F,ce)|0,n=n+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(N,fe)|0,a=a+Math.imul(N,he)|0;var Re=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((a=a+Math.imul(O,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,ce))+Math.imul(B,le)|0,a=Math.imul(B,ce),n=n+Math.imul(D,fe)|0,i=(i=i+Math.imul(D,he)|0)+Math.imul(F,fe)|0,a=a+Math.imul(F,he)|0;var Ie=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((a=a+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(B,fe)|0,a=Math.imul(B,he);var Ne=(c+(n=n+Math.imul(D,pe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(F,pe)|0))<<13)|0;c=((a=a+Math.imul(F,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Pe=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(B,pe)|0))<<13)|0;return c=((a=Math.imul(B,me))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,l[0]=ve,l[1]=ge,l[2]=be,l[3]=ye,l[4]=we,l[5]=_e,l[6]=ke,l[7]=xe,l[8]=Se,l[9]=Te,l[10]=Ee,l[11]=Ce,l[12]=Ae,l[13]=Me,l[14]=Oe,l[15]=Re,l[16]=Ie,l[17]=Ne,l[18]=Pe,0!==c&&(l[19]=c,r.length++),r};function v(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var s=i;i=0;for(var o=67108863&n,l=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=l;c++){var u=a-c,f=(0|e.words[u])*(0|t.words[c]),h=67108863&f;o=67108863&(h=h+o|0),i+=(s=(s=s+(f/67108864|0)|0)+(h>>>26)|0)>>>26,s&=67108863}r.words[a]=o,n=s,s=i}return 0!==n?r.words[a]=n:r.length--,r._strip()}function g(e,t,r){return v(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?p(this,e,t):r<1024?v(this,e,t):g(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var s=0;s<a;s++)n[s]=t[e[s]],i[s]=r[e[s]]},b.prototype.transform=function(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var o=s<<1,l=Math.cos(2*Math.PI/o),c=Math.sin(2*Math.PI/o),u=0;u<i;u+=o)for(var f=l,h=c,d=0;d<s;d++){var p=r[u+d],m=n[u+d],v=r[u+d+s],g=n[u+d+s],b=f*v-h*g;g=f*g+h*v,v=b,r[u+d]=p+v,n[u+d]=m+g,r[u+d+s]=p-v,n[u+d+s]=m-g,d!==o&&(b=l*f-c*h,h=l*h+c*f,f=b)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,n,i){for(var a=0,s=0;s<t;s++)a+=0|e[s],n[2*s]=8191&a,a>>>=13,n[2*s+1]=8191&a,a>>>=13;for(s=2*t;s<i;++s)n[s]=0;r(0===a),r(!(-8192&a))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),a=this.stub(n),s=new Array(n),o=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,c,n),this.transform(s,a,o,l,n,i),this.transform(c,a,u,f,n,i);for(var d=0;d<n;d++){var p=o[d]*u[d]-l[d]*f[d];l[d]=o[d]*f[d]+l[d]*u[d],o[d]=p}return this.conjugate(o,l,n),this.transform(o,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,s=(67108863&a)+(67108863&n);n>>=26,n+=a/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var a=r.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(r=r.mul(a));return r},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var o=this.words[t]&a,l=(0|this.words[t])-o<<n;this.words[t]=l|s,s=o>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<<a,l=n;if(i-=s,i=Math.max(0,i),l){for(var c=0;c<s;c++)l.words[c]=this.words[c];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&o}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var i,a,s=e.length+n;this._expand(s);var o=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+o;var l=(0|e.words[i])*t;o=((a-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)o=(a=(0|this.words[i+n])+o)>>26,this.words[i+n]=67108863&a;if(0===o)return this._strip();for(r(-1===o),o=0,i=0;i<this.length;i++)o=(a=-(0|this.words[i])+o)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,s=0|a.words[a.length-1];0!==(r=26-this._countBits(s))&&(a=a.ushln(r),n.iushln(r),s=0|a.words[a.length-1]);var o,l=n.length-a.length;if("mod"!==t){(o=new i(null)).length=l+1,o.words=new Array(o.length);for(var c=0;c<o.length;c++)o.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,o&&(o.words[l]=1));for(var f=l-1;f>=0;f--){var h=67108864*(0|n.words[a.length+f])+(0|n.words[a.length+f-1]);for(h=Math.min(h/s|0,67108863),n._ishlnsubmul(a,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(a,1,f),n.isZero()||(n.negative^=1);o&&(o.words[f]=h)}return o&&o._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(a=o.div.neg()),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:a,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(a=o.div.neg()),{div:a,mod:o.mod}):0!==(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var a,s,o},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(n*i+(0|this.words[a]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*n;this.words[i]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),s=new i(0),o=new i(0),l=new i(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0===(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(f)),a.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(o.isOdd()||l.isOdd())&&(o.iadd(u),l.isub(f)),o.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(o),s.isub(l)):(n.isub(t),o.isub(a),l.isub(s))}return{a:o,b:l,gcd:n.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,s=new i(1),o=new i(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(o)):(n.isub(t),o.isub(s))}return(a=0===t.cmpn(1)?s:o).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,s=n;0!==a&&s<this.length;s++){var o=0|this.words[s];a=(o+=a)>>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(_,w),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&r,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&r)<<4|a>>>22,a=s}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(k,w),n(x,w),n(S,w),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new k;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},T.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},T.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),s=0;!a.isZero()&&0===a.andln(1);)s++,a.iushrn(1);r(!a.isZero());var o=new i(1).toRed(this),l=o.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,a),h=this.pow(e,a.addn(1).iushrn(1)),d=this.pow(e,a),p=s;0!==d.cmp(o);){for(var m=d,v=0;0!==m.cmp(o);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new i(1).iushln(p-v-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return h},T.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},T.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var a=r[0],s=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var f=c>>u&1;a!==r[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,(4===++o||0===n&&0===u)&&(a=this.mul(a,r[s]),o=0,s=0)):o=0}l=26}return a},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},n(E,T),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),s=a;return a.cmp(this.m)>=0?s=a.isub(this.m):a.cmpn(0)<0&&(s=a.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],187:[function(e,t,r){var n;function i(e){this.rand=e}if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":P(self)))self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":P(window))&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(s){}},{crypto:188}],188:[function(e,t,r){},{}],189:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function a(e){for(;0<e.length;e++)e[0]=0}function s(e,t,r,n,i){for(var a,s,o,l,c=r[0],u=r[1],f=r[2],h=r[3],d=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],v=e[3]^t[3],g=4,b=1;b<i;b++)a=c[d>>>24]^u[p>>>16&255]^f[m>>>8&255]^h[255&v]^t[g++],s=c[p>>>24]^u[m>>>16&255]^f[v>>>8&255]^h[255&d]^t[g++],o=c[m>>>24]^u[v>>>16&255]^f[d>>>8&255]^h[255&p]^t[g++],l=c[v>>>24]^u[d>>>16&255]^f[p>>>8&255]^h[255&m]^t[g++],d=a,p=s,m=o,v=l;return a=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&v])^t[g++],s=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[v>>>8&255]<<8|n[255&d])^t[g++],o=(n[m>>>24]<<24|n[v>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[g++],l=(n[v>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[g++],[a>>>=0,s>>>=0,o>>>=0,l>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],a=[[],[],[],[]],s=0,o=0,l=0;l<256;++l){var c=o^o<<1^o<<2^o<<3^o<<4;c=c>>>8^255&c^99,r[s]=c,n[c]=s;var u=e[s],f=e[u],h=e[f],d=257*e[c]^16843008*c;i[0][s]=d<<24|d>>>8,i[1][s]=d<<16|d>>>16,i[2][s]=d<<8|d>>>24,i[3][s]=d,d=16843009*h^65537*f^257*u^16843008*s,a[0][c]=d<<24|d>>>8,a[1][c]=d<<16|d>>>16,a[2][c]=d<<8|d>>>24,a[3][c]=d,0===s?s=o=1:(s=u^e[e[e[h^u]]],o^=e[e[o]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:a}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<n;a++){var s=i[a-1];a%t===0?(s=s<<8|s>>>24,s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s],s^=o[a/t|0]<<24):t>6&&a%t===4&&(s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s]),i[a]=i[a-t]^s}for(var c=[],u=0;u<n;u++){var f=n-u,h=i[f-(u%4?0:4)];c[u]=u<4||f<=4?h:l.INV_SUB_MIX[0][l.SBOX[h>>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return s(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),a=n.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},c.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=c},{"safe-buffer":494}],190:[function(e,t,r){var n=e("./aes"),i=e("safe-buffer").Buffer,a=e("cipher-base"),s=e("inherits"),o=e("./ghash"),l=e("buffer-xor"),c=e("./incr32");function u(e,t,r,s){a.call(this);var l=i.alloc(4,0);this._cipher=new n.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new o(u),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new o(r),a=t.length,s=a%16;n.update(t),s&&(s=16-s,n.update(i.alloc(s,0))),n.update(i.alloc(8,0));var l=8*a,u=i.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var f=i.from(e._finID);return c(f),f}(this,r,u),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=u},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,r){var n=e("./encrypter"),i=e("./decrypter"),a=e("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=i.createDecipher,r.createDecipheriv=r.Decipheriv=i.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(a)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,r){var n=e("./authCipher"),i=e("safe-buffer").Buffer,a=e("./modes"),s=e("./streamCipher"),o=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,r){o.call(this),this._cache=new f,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var o=a[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===o.type?new s(o.module,t,r,!0):"auth"===o.type?new n(o.module,t,r,!0):new u(o.module,t,r)}e("inherits")(u,o),u.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},r.createDecipheriv=h},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,r){var n=e("./modes"),i=e("./authCipher"),a=e("safe-buffer").Buffer,s=e("./streamCipher"),o=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,r){o.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}e("inherits")(u,o),u.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return a.concat(n)};var f=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function d(e,t,r){var o=n[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=a.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===o.type?new s(o.module,t,r):"auth"===o.type?new i(o.module,t,r):new u(o.module,t,r)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return a.concat([this.cache,t])},r.createCipheriv=d,r.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);return d(e,i.key,i.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,r){var n=e("safe-buffer").Buffer,i=n.alloc(16,0);function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],s=-1;++s<128;){for(!!(this.state[~~(s/8)]&1<<7-s%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=!!(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=a(i)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=s},{"safe-buffer":494}],195:[function(e,t,r){t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],196:[function(e,t,r){var n=e("buffer-xor");r.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},{"buffer-xor":219}],197:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("buffer-xor");function a(e,t,r){var a=t.length,s=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=n.concat([e._prev,r?t:s]),s}r.encrypt=function(e,t,r){for(var i,s=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){s=n.concat([s,a(e,t,r)]);break}i=e._cache.length,s=n.concat([s,a(e,t.slice(0,i),r)]),t=t.slice(i)}return s}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e,t,r){for(var n,i,s=-1,o=0;++s<8;)n=t&1<<7-s?128:0,o+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>s%8,e._prev=a(e._prev,r?n:i);return o}function a(e,t){var r=e.length,i=-1,a=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)a[i]=e[i]<<1|e[i+1]>>7;return a}r.encrypt=function(e,t,r){for(var a=t.length,s=n.allocUnsafe(a),o=-1;++o<a;)s[o]=i(e,t[o],r);return s}},{"safe-buffer":494}],199:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}r.encrypt=function(e,t,r){for(var a=t.length,s=n.allocUnsafe(a),o=-1;++o<a;)s[o]=i(e,t[o],r);return s}},{"safe-buffer":494}],200:[function(e,t,r){var n=e("buffer-xor"),i=e("safe-buffer").Buffer,a=e("../incr32");function s(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}r.encrypt=function(e,t){var r=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var o=0;o<r;o++){var l=s(e),c=a+16*o;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,r){var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var a in i)i[a].module=n[i[a].mode];t.exports=i},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,t,r){(function(t){(function(){var n=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var a=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,a)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,r){var n=e("./aes"),i=e("safe-buffer").Buffer,a=e("cipher-base");function s(e,t,r,s){a.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=e}e("inherits")(s,a),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,r){var n=e("browserify-des"),i=e("browserify-aes/browser"),a=e("browserify-aes/modes"),s=e("browserify-des/modes"),o=e("evp_bytestokey");function l(e,t,r){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),a[e])r=a[e].key,n=a[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var i=o(t,!1,r,n);return l(e,i.key,i.iv)},r.createCipheriv=r.Cipheriv=l,r.createDecipher=r.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),a[e])r=a[e].key,n=a[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var i=o(t,!1,r,n);return c(e,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(s).concat(i.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,r){var n=e("cipher-base"),i=e("des.js"),a=e("inherits"),s=e("safe-buffer").Buffer,o={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){n.call(this);var t,r=e.mode.toLowerCase(),i=o[r];t=e.decrypt?"decrypt":"encrypt";var a=e.key;s.isBuffer(a)||(a=s.from(a)),"des-ede"!==r&&"des-ede-cbc"!==r||(a=s.concat([a,a.slice(0,8)]));var l=e.iv;s.isBuffer(l)||(l=s.from(l)),this._des=i.create({key:a,iv:l,type:t})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],t.exports=l,a(l,n),l.prototype._update=function(e){return s.from(this._des.update(e))},l.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],209:[function(e,t,r){(function(r){(function(){var n=e("bn.js"),i=e("randombytes");function a(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),s=t.modulus.byteLength(),o=new n(e).mul(i.blinder).umod(t.modulus),l=o.toRed(n.mont(t.prime1)),c=o.toRed(n.mont(t.prime2)),u=t.coefficient,f=t.prime1,h=t.prime2,d=l.redPow(t.exponent1).fromRed(),p=c.redPow(t.exponent2).fromRed(),m=d.isub(p).imul(u).umod(f).imul(h);return p.iadd(m).imul(i.unblinder).umod(t.modulus).toArrayLike(r,"be",s)}s.getr=a,t.exports=s}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,r){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("create-hash"),a=e("readable-stream"),s=e("inherits"),o=e("./sign"),l=e("./verify"),c=e("./algorithms.json");function u(e){a.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){a.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new u(e)}function d(e){return new f(e)}Object.keys(c).forEach(function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),s(u,a.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var r=o(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},s(f,a.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,r){"string"==typeof t&&(t=n.from(t,r)),this.end();var i=this._hash.digest();return l(t,i,e,this._signType,this._tag)},t.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("create-hmac"),a=e("browserify-rsa"),s=e("elliptic").ec,o=e("bn.js"),l=e("parse-asn1"),c=e("./curves.json");function u(e,t,r,a){if((e=n.from(e.toArray())).length<t.byteLength()){var s=n.alloc(t.byteLength()-e.length);e=n.concat([s,e])}var o=r.length,l=function(e,t){e=f(e,t),e=e.mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),c=n.alloc(o);c.fill(1);var u=n.alloc(o);return u=i(a,u).update(c).update(n.from([0])).update(e).update(l).digest(),c=i(a,u).update(c).digest(),{k:u=i(a,u).update(c).update(n.from([1])).update(e).update(l).digest(),v:c=i(a,u).update(c).digest()}}function f(e,t){var r=new o(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function h(e,t,r){var a,s;do{for(a=n.alloc(0);8*a.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),a=n.concat([a,t.v]);s=f(a,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==s.cmp(e));return s}function d(e,t,r,n){return e.toRed(o.mont(r)).redPow(t).fromRed().mod(n)}t.exports=function(e,t,r,i,p){var m=l(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=c[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new s(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){var i,a=t.params.priv_key,s=t.params.p,l=t.params.q,c=t.params.g,p=new o(0),m=f(e,l).mod(l),v=!1,g=u(a,l,e,r);for(;!1===v;)p=d(c,i=h(l,g,r),s,l),0===(v=i.invm(l).imul(m.add(a.mul(p))).mod(l)).cmpn(0)&&(v=!1,p=new o(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}(p,v)}(e,m,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=n.concat([p,e]);for(var v=m.modulus.byteLength(),g=[0,1];e.length+g.length+1<v;)g.push(255);g.push(0);for(var b=-1;++b<e.length;)g.push(e[b]);return a(g,m)},t.exports.getKey=u,t.exports.makeKey=h},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("bn.js"),a=e("elliptic").ec,s=e("parse-asn1"),o=e("./curves.json");function l(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,c,u){var f=s(r);if("ec"===f.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=o[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new a(n),s=r.data.subjectPrivateKey.data;return i.verify(t,e,s)}(e,t,f)}if("dsa"===f.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,a=r.data.q,o=r.data.g,c=r.data.pub_key,u=s.signature.decode(e,"der"),f=u.s,h=u.r;l(f,a),l(h,a);var d=i.mont(n),p=f.invm(a);return 0===o.toRed(d).redPow(new i(t).mul(p).mod(a)).fromRed().mul(c.toRed(d).redPow(h.mul(p).mod(a)).fromRed()).mod(n).mod(a).cmp(h)}(e,t,f)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([u,t]);for(var h=f.modulus.byteLength(),d=[1],p=0;t.length+d.length+2<h;)d.push(255),p++;d.push(0);for(var m=-1;++m<t.length;)d.push(t[m]);d=n.from(d);var v=i.mont(f.modulus);e=(e=new i(e).toRed(v)).redPow(new i(f.publicExponent)),e=n.from(e.fromRed().toArray());var g=p<8?1:0;for(h=Math.min(e.length,d.length),e.length!==d.length&&(g=1),m=-1;++m<h;)g|=e[m]^d[m];return 0===g}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,r){},{}],217:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,r),r.Buffer=s),a(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,r){var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(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 u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}r.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=s(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=s(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,r){(function(e){(function(){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),a=0;a<n;++a)i[a]=t[a]^r[a];return i}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,t,r){(function(t){(function(){var t=e("base64-js"),n=e("ieee754");r.Buffer=s,r.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},r.INSPECT_MAX_BYTES=50;var i=2147483647;function a(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return o(e,t,r)}function o(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=a(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+P(e));if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return n.__proto__=s.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||H(e.length)?a(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+P(e))}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),a(e<0?0:0|f(e))}function u(e){for(var t=e.length<0?0:0|f(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+P(e));var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(i)return n?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function p(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),H(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var a,s=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(a=r;a<o;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*s}else-1!==u&&(a-=a-u),u=-1}else for(r+l>o&&(r=o-l),a=r;a>=0;a--){for(var f=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){f=!1;break}if(f)return a}return-1}function g(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o=parseInt(t.substr(2*s,2),16);if(H(o))return s;e[r+s]=o}return s}function b(e,t,r,n){return z(L(t,e.length-r),e,r,n)}function y(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return y(e,t,r,n)}function _(e,t,r,n){return z(B(t),e,r,n)}function k(e,t,r,n){return z(function(e,t){for(var r,n,i,a=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function x(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,s,o,l,c=e[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(l=(15&c)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(l=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=T));return r}(n)}r.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,r){return o(e,t,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(U(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(U(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},s.prototype.compare=function(e,t,r,n,i){if(U(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+P(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),l=Math.min(a,o),c=this.slice(n,i),u=e.slice(t,r),f=0;f<l;++f)if(c[f]!==u[f]){a=c[f],o=u[f];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=j(e[a]);return i}function M(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function O(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,a){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function D(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,0,r,8),n.write(e,t,r,i,52,8),r+8}s.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<r&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=i-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,n),l=o.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%l]}return this};var F=/[^+/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function B(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("stream").Transform,a=e("string_decoder").StringDecoder;function s(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(s,i),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=s},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,r){var n=e("../internals/is-callable"),i=e("../internals/try-to-string"),a=TypeError;t.exports=function(e){if(n(e))return e;throw new a(i(e)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,r){var n=e("../internals/is-constructor"),i=e("../internals/try-to-string"),a=TypeError;t.exports=function(e){if(n(e))return e;throw new a(i(e)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,r){var n=e("../internals/is-callable"),i=String,a=TypeError;t.exports=function(e){if("object"==P(e)||n(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,t,r){var n=e("../internals/well-known-symbol"),i=e("../internals/object-create"),a=e("../internals/object-define-property").f,s=n("unscopables"),o=Array.prototype;void 0===o[s]&&a(o,s,{configurable:!0,value:i(null)}),t.exports=function(e){o[s][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,r){var n=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,r){var n=e("../internals/is-object"),i=String,a=TypeError;t.exports=function(e){if(n(e))return e;throw new a(i(e)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,t,r){var n=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),a=e("../internals/length-of-array-like"),s=function(e){return function(t,r,s){var o,l=n(t),c=a(l),u=i(s,c);if(e&&r!=r){for(;c>u;)if((o=l[u++])!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,r){var n=e("../internals/function-bind-context"),i=e("../internals/function-uncurry-this"),a=e("../internals/indexed-object"),s=e("../internals/to-object"),o=e("../internals/length-of-array-like"),l=e("../internals/array-species-create"),c=i([].push),u=function(e){var t=1===e,r=2===e,i=3===e,u=4===e,f=6===e,h=7===e,d=5===e||f;return function(p,m,v,g){for(var b,y,w=s(p),_=a(w),k=n(m,v),x=o(_),S=0,T=g||l,E=t?T(p,x):r||h?T(p,0):void 0;x>S;S++)if((d||S in _)&&(y=k(b=_[S],S,w),e))if(t)E[S]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:c(E,b)}else switch(e){case 4:return!1;case 7:c(E,b)}return f?-1:i||u?u:E}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,t,r){var n=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),a=e("../internals/create-property"),s=Array,o=Math.max;t.exports=function(e,t,r){for(var l=i(e),c=n(t,l),u=n(void 0===r?l:r,l),f=s(o(u-c,0)),h=0;c<u;c++,h++)a(f,h,e[c]);return f.length=h,f}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,r){t.exports=e("../internals/function-uncurry-this")([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,r){var n=e("../internals/is-array"),i=e("../internals/is-constructor"),a=e("../internals/is-object"),s=e("../internals/well-known-symbol")("species"),o=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===o||n(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?o:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,r){var n=e("../internals/array-species-constructor");t.exports=function(e,t){return new(n(e))(0===t?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,r){var n=e("../internals/well-known-symbol")("iterator"),i=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(o){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(o){return!1}var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch(o){}return r}},{"../internals/well-known-symbol":357}],235:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=n({}.toString),a=n("".slice);t.exports=function(e){return a(i(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,r){var n=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),a=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("toStringTag"),o=Object,l="Arguments"===a(function(){return arguments}());t.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=o(e),s))?r:l?a(t):"Object"===(n=a(t))&&i(t.callee)?"Arguments":n}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,r){var n=e("../internals/has-own-property"),i=e("../internals/own-keys"),a=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t,r){for(var o=i(t),l=s.f,c=a.f,u=0;u<o.length;u++){var f=o[u];n(e,f)||r&&n(r,f)||l(e,f,c(t,f))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,t,r){var n=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,r){t.exports=!e("../internals/fails")(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":260}],240:[function(e,t,r){t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return i.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,r){var n=e("../internals/to-property-key"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=function(e,t,r){var s=n(t);s in e?i.f(e,s,a(0,r)):e[s]=r}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,r){var n=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,r){var n=e("../internals/is-callable"),i=e("../internals/object-define-property"),a=e("../internals/make-built-in"),s=e("../internals/define-global-property");t.exports=function(e,t,r,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:t;if(n(r)&&a(r,c,o),o.global)l?e[t]=r:s(t,r);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,r){var n=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},{"../internals/global":274}],247:[function(e,t,r){t.exports=!e("../internals/fails")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":260}],248:[function(e,t,r){var n="object"==("undefined"==typeof document?"undefined":P(document))&&document.all;t.exports={all:n,IS_HTMLDDA:void 0===n&&void 0!==n}},{}],249:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/is-object"),a=n.document,s=i(a)&&i(a.createElement);t.exports=function(e){return s?a.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,r){var n=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!n&&!i&&"object"==("undefined"==typeof window?"undefined":P(window))&&"object"==("undefined"==typeof document?"undefined":P(document))},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,r){t.exports="object"==("undefined"==typeof Deno?"undefined":P(Deno))&&Deno&&"object"==P(Deno.version)},{}],252:[function(e,t,r){var n=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":256}],253:[function(e,t,r){var n=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},{"../internals/engine-user-agent":256}],254:[function(e,t,r){var n=e("../internals/global");t.exports="process"===e("../internals/classof-raw")(n.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,r){var n=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(n)},{"../internals/engine-user-agent":256}],256:[function(e,t,r){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],257:[function(e,t,r){var n,i,a=e("../internals/global"),s=e("../internals/engine-user-agent"),o=a.process,l=a.Deno,c=o&&o.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,a=e("../internals/create-non-enumerable-property"),s=e("../internals/define-built-in"),o=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var r,u,f,h,d,p=e.target,m=e.global,v=e.stat;if(r=m?n:v?n[p]||o(p,{}):(n[p]||{}).prototype)for(u in t){if(h=t[u],f=e.dontCallGetSet?(d=i(r,u))&&d.value:r[u],!c(m?u:p+(v?".":"#")+u,e.forced)&&void 0!==f){if(P(h)==P(f))continue;l(h,f)}(e.sham||f&&f.sham)&&a(h,"sham",!0),s(r,u,h,e)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],261:[function(e,t,r){var n=e("../internals/function-bind-native"),i=Function.prototype,a=i.apply,s=i.call;t.exports="object"==("undefined"==typeof Reflect?"undefined":P(Reflect))&&Reflect.apply||(n?s.bind(a):function(){return s.apply(a,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,r){var n=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),a=e("../internals/function-bind-native"),s=n(n.bind);t.exports=function(e,t){return i(e),void 0===t?e:a?s(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,r){t.exports=!e("../internals/fails")(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,t,r){var n=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/has-own-property"),a=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=i(a,"name");t.exports={EXISTS:o,PROPER:o&&"something"===function(){}.name,CONFIGURABLE:o&&(!n||n&&s(a,"name").configurable)}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(a){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,r){var n=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===n(e))return i(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,r){var n=e("../internals/function-bind-native"),i=Function.prototype,a=i.call,s=n&&i.bind.bind(a,a);t.exports=n?s:function(e){return function(){return a.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,r){var n=e("../internals/classof"),i=e("../internals/get-method"),a=e("../internals/is-null-or-undefined"),s=e("../internals/iterators"),o=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!a(e))return i(e,o)||i(e,"@@iterator")||s[n(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/a-callable"),a=e("../internals/an-object"),s=e("../internals/try-to-string"),o=e("../internals/get-iterator-method"),l=TypeError;t.exports=function(e,t){var r=arguments.length<2?o(e):t;if(i(r))return a(n(r,e));throw new l(s(e)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),a=e("../internals/is-callable"),s=e("../internals/classof-raw"),o=e("../internals/to-string"),l=n([].push);t.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==s(c)&&"String"!==s(c)||l(r,o(c))}var u=r.length,f=!0;return function(e,t){if(f)return f=!1,t;if(i(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,r){var n=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,t,r){(function(e){(function(){var r=function(e){return e&&e.Math===Math&&e};t.exports=r("object"==("undefined"==typeof globalThis?"undefined":P(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":P(window))&&window)||r("object"==("undefined"==typeof self?"undefined":P(self))&&self)||r("object"==P(e)&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],275:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,r){t.exports={}},{}],277:[function(e,t,r){t.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(r){}}},{}],278:[function(e,t,r){t.exports=e("../internals/get-built-in")("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/document-create-element");t.exports=!n&&!i(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/classof-raw"),s=Object,o=n("".split);t.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===a(e)?o(e,""):s(e)}:s},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),a=e("../internals/shared-store"),s=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return s(e)}),t.exports=a.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,r){var n,i,a,s=e("../internals/weak-map-basic-detection"),o=e("../internals/global"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),f=e("../internals/shared-store"),h=e("../internals/shared-key"),d=e("../internals/hidden-keys"),p="Object already initialized",m=o.TypeError,v=o.WeakMap;if(s||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new m(p);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},a=function(e){return g.has(e)}}else{var b=h("state");d[b]=!0,n=function(e,t){if(u(e,b))throw new m(p);return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}t.exports={set:n,get:i,has:a,enforce:function(e){return a(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,t,r){var n=e("../internals/well-known-symbol"),i=e("../internals/iterators"),a=n("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||s[a]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,r){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===n(e)}},{"../internals/classof-raw":235}],285:[function(e,t,r){var n=e("../internals/document-all"),i=n.all;t.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},{"../internals/document-all":248}],286:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/is-callable"),s=e("../internals/classof"),o=e("../internals/get-built-in"),l=e("../internals/inspect-source"),c=function(){},u=[],f=o("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),p=!h.test(c),m=function(e){if(!a(e))return!1;try{return f(c,u,e),!0}catch(t){return!1}},v=function(e){if(!a(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,l(e))}catch(t){return!0}};v.sham=!0,t.exports=!f||i(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?v:m},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/is-callable"),a=/#|\.prototype\./,s=function(e,t){var r=l[o(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,r){t.exports=function(e){return null==e}},{}],289:[function(e,t,r){var n=e("../internals/is-callable"),i=e("../internals/document-all"),a=i.all;t.exports=i.IS_HTMLDDA?function(e){return"object"==P(e)?null!==e:n(e)||e===a}:function(e){return"object"==P(e)?null!==e:n(e)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,r){t.exports=!1},{}],291:[function(e,t,r){var n=e("../internals/is-object"),i=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,r){var n=e("../internals/get-built-in"),i=e("../internals/is-callable"),a=e("../internals/object-is-prototype-of"),s=e("../internals/use-symbol-as-uid"),o=Object;t.exports=s?function(e){return"symbol"==P(e)}:function(e){var t=n("Symbol");return i(t)&&a(t.prototype,o(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,r){var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),a=e("../internals/an-object"),s=e("../internals/try-to-string"),o=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),c=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator"),f=e("../internals/get-iterator-method"),h=e("../internals/iterator-close"),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,r){var v,g,b,y,w,_,k,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),T=!(!r||!r.IS_RECORD),E=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),A=n(t,x),M=function(e){return v&&h(v,"normal",e),new p(!0,e)},O=function(e){return S?(a(e),C?A(e[0],e[1],M):A(e[0],e[1])):C?A(e,M):A(e)};if(T)v=e.iterator;else if(E)v=e;else{if(!(g=f(e)))throw new d(s(e)+" is not iterable");if(o(g)){for(b=0,y=l(e);y>b;b++)if((w=O(e[b]))&&c(m,w))return w;return new p(!1)}v=u(e,g)}for(_=T?e.next:v.next;!(k=i(_,v)).done;){try{w=O(k.value)}catch(R){h(v,"throw",R)}if("object"==P(w)&&w&&c(m,w))return w}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/an-object"),a=e("../internals/get-method");t.exports=function(e,t,r){var s,o;i(e);try{if(!(s=a(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(l){o=!0,s=l}if("throw"===t)throw r;if(o)throw s;return i(s),r}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,r){var n=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),a=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),o=e("../internals/iterators"),l=function(){return this};t.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=i(n,{next:a(+!c,r)}),s(e,u,!1,!0),o[u]=l,e}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/is-pure"),s=e("../internals/function-name"),o=e("../internals/is-callable"),l=e("../internals/iterator-create-constructor"),c=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),h=e("../internals/create-non-enumerable-property"),d=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),m=e("../internals/iterators"),v=e("../internals/iterators-core"),g=s.PROPER,b=s.CONFIGURABLE,y=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,_=p("iterator"),k="keys",x="values",S="entries",T=function(){return this};t.exports=function(e,t,r,s,p,v,E){l(r,t,s);var C,A,M,O=function(e){if(e===p&&D)return D;if(!w&&e&&e in N)return N[e];switch(e){case k:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},R=t+" Iterator",I=!1,N=e.prototype,P=N[_]||N["@@iterator"]||p&&N[p],D=!w&&P||O(p),F="Array"===t&&N.entries||P;if(F&&(C=c(F.call(new e)))!==Object.prototype&&C.next&&(a||c(C)===y||(u?u(C,y):o(C[_])||d(C,_,T)),f(C,R,!0,!0),a&&(m[R]=T)),g&&p===x&&P&&P.name!==x&&(!a&&b?h(N,"name",x):(I=!0,D=function(){return i(P,this)})),p)if(A={values:O(x),keys:v?D:O(k),entries:O(S)},E)for(M in A)(w||I||!(M in N))&&d(N,M,A[M]);else n({target:t,proto:!0,forced:w||I},A);return a&&!E||N[_]===D||d(N,_,D,{name:p}),m[t]=D,A}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,t,r){var n,i,a,s=e("../internals/fails"),o=e("../internals/is-callable"),l=e("../internals/is-object"),c=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),h=e("../internals/well-known-symbol"),d=e("../internals/is-pure"),p=h("iterator"),m=!1;[].keys&&("next"in(a=[].keys())?(i=u(u(a)))!==Object.prototype&&(n=i):m=!0),!l(n)||s(function(){var e={};return n[p].call(e)!==e})?n={}:d&&(n=c(n)),o(n[p])||f(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,t,r){arguments[4][276][0].apply(r,arguments)},{dup:276}],299:[function(e,t,r){var n=e("../internals/to-length");t.exports=function(e){return n(e.length)}},{"../internals/to-length":343}],300:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/is-callable"),s=e("../internals/has-own-property"),o=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),u=e("../internals/internal-state"),f=u.enforce,h=u.get,d=String,p=Object.defineProperty,m=n("".slice),v=n("".replace),g=n([].join),b=o&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),y=String(String).split("String"),w=t.exports=function(e,t,r){"Symbol("===m(d(t),0,7)&&(t="["+v(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(o?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&s(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?o&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=f(e);return s(n,"source")||(n.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return a(this)&&h(this).source||c(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,t,r){var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},{}],302:[function(e,t,r){var n,i,a,s,o,l=e("../internals/global"),c=e("../internals/function-bind-context"),u=e("../internals/object-get-own-property-descriptor").f,f=e("../internals/task").set,h=e("../internals/queue"),d=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),m=e("../internals/engine-is-webos-webkit"),v=e("../internals/engine-is-node"),g=l.MutationObserver||l.WebKitMutationObserver,b=l.document,y=l.process,w=l.Promise,_=u(l,"queueMicrotask"),k=_&&_.value;if(!k){var x=new h,S=function(){var e,t;for(v&&(e=y.domain)&&e.exit();t=x.get();)try{t()}catch(r){throw x.head&&n(),r}e&&e.enter()};d||v||m||!g||!b?!p&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,o=c(s.then,s),n=function(){o(S)}):v?n=function(){y.nextTick(S)}:(f=c(f,l),n=function(){f(S)}):(i=!0,a=b.createTextNode(""),new g(S).observe(a,{characterData:!0}),n=function(){a.data=i=!i}),k=function(e){x.head||n(),x.add(e)}}t.exports=k},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,t,r){var n=e("../internals/a-callable"),i=TypeError,a=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new i("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};t.exports.f=function(e){return new a(e)}},{"../internals/a-callable":222}],304:[function(e,t,r){var n=e("../internals/is-regexp"),i=TypeError;t.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":291}],305:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),a=e("../internals/function-call"),s=e("../internals/fails"),o=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),f=e("../internals/indexed-object"),h=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!h||s(function(){if(n&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){t[e]=e}),7!==h({},e)[r]||o(h({},t)).join("")!==i})?function(e,t){for(var r=u(e),i=arguments.length,s=1,h=l.f,d=c.f;i>s;)for(var m,v=f(arguments[s++]),g=h?p(o(v),h(v)):o(v),b=g.length,y=0;b>y;)m=g[y++],n&&!a(d,v,m)||(r[m]=v[m]);return r}:h},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,t,r){var n,i=e("../internals/an-object"),a=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),o=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),f="prototype",h="script",d=u("IE_PROTO"),p=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(a){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?v(n):(t=c("iframe"),r="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):v(n);for(var i=s.length;i--;)delete g[f][s[i]];return g()};o[d]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(p[f]=i(e),r=new p,p[f]=null,r[d]=e):r=g(),void 0===t?r:a.f(r,t)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),a=e("../internals/object-define-property"),s=e("../internals/an-object"),o=e("../internals/to-indexed-object"),l=e("../internals/object-keys");r.f=n&&!i?Object.defineProperties:function(e,t){s(e);for(var r,n=o(t),i=l(t),c=i.length,u=0;c>u;)a.f(e,r=i[u++],n[r]);return e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),a=e("../internals/v8-prototype-define-bug"),s=e("../internals/an-object"),o=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";r.f=n?a?function(e,t,r){if(s(e),t=o(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=u(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:f in r?r[f]:n[f],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=o(t),s(r),i)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/function-call"),a=e("../internals/object-property-is-enumerable"),s=e("../internals/create-property-descriptor"),o=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;r.f=n?f:function(e,t){if(e=o(e),t=l(t),u)try{return f(e,t)}catch(r){}if(c(e,t))return s(!i(a.f,e,t),e[t])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,t,r){var n=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),a=e("../internals/object-get-own-property-names").f,s=e("../internals/array-slice-simple"),o="object"==("undefined"==typeof window?"undefined":P(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return o&&"Window"===n(e)?function(e){try{return a(e)}catch(t){return s(o)}}(e):a(i(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,r){var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,r){var n=e("../internals/has-own-property"),i=e("../internals/is-callable"),a=e("../internals/to-object"),s=e("../internals/shared-key"),o=e("../internals/correct-prototype-getter"),l=s("IE_PROTO"),c=Object,u=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=a(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,t,r){t.exports=e("../internals/function-uncurry-this")({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),a=e("../internals/to-indexed-object"),s=e("../internals/array-includes").indexOf,o=e("../internals/hidden-keys"),l=n([].push);t.exports=function(e,t){var r,n=a(e),c=0,u=[];for(r in n)!i(o,r)&&i(n,r)&&l(u,r);for(;t.length>c;)i(n,r=t[c++])&&(~s(u,r)||l(u,r));return u}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,t,r){var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,r){var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;r.f=i&&!n.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},{}],318:[function(e,t,r){var n=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),a=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(s){}return function(r,n){return i(r),a(n),t?e(r,n):r.__proto__=n,r}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/function-uncurry-this"),s=e("../internals/object-get-prototype-of"),o=e("../internals/object-keys"),l=e("../internals/to-indexed-object"),c=a(e("../internals/object-property-is-enumerable").f),u=a([].push),f=n&&i(function(){var e=Object.create(null);return e[2]=2,!c(e,2)}),h=function(e){return function(t){for(var r,i=l(t),a=o(i),h=f&&null===s(i),d=a.length,p=0,m=[];d>p;)r=a[p++],n&&!(h?r in i:c(i,r))||u(m,e?[r,i[r]]:i[r]);return m}};t.exports={entries:h(!0),values:h(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/is-callable"),a=e("../internals/is-object"),s=TypeError;t.exports=function(e,t){var r,o;if("string"===t&&i(r=e.toString)&&!a(o=n(r,e)))return o;if(i(r=e.valueOf)&&!a(o=n(r,e)))return o;if("string"!==t&&i(r=e.toString)&&!a(o=n(r,e)))return o;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,r){var n=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),a=e("../internals/object-get-own-property-names"),s=e("../internals/object-get-own-property-symbols"),o=e("../internals/an-object"),l=i([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=s.f;return r?l(t,r(e)):t}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,t,r){t.exports=e("../internals/global")},{"../internals/global":274}],323:[function(e,t,r){t.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},{}],324:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/promise-native-constructor"),a=e("../internals/is-callable"),s=e("../internals/is-forced"),o=e("../internals/inspect-source"),l=e("../internals/well-known-symbol"),c=e("../internals/engine-is-browser"),u=e("../internals/engine-is-deno"),f=e("../internals/is-pure"),h=e("../internals/engine-v8-version"),d=i&&i.prototype,p=l("species"),m=!1,v=a(n.PromiseRejectionEvent);t.exports={CONSTRUCTOR:s("Promise",function(){var e=o(i),t=e!==String(i);if(!t&&66===h)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(e)){var r=new i(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[p]=n,!(m=r.then(function(){})instanceof n))return!0}return!t&&(c||u)&&!v}),REJECTION_EVENT:v,SUBCLASSING:m}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,t,r){t.exports=e("../internals/global").Promise},{"../internals/global":274}],326:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/is-object"),a=e("../internals/new-promise-capability");t.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=a.f(e);return(0,r.resolve)(t),r.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,r){var n=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration");t.exports=e("../internals/promise-constructor-detection").CONSTRUCTOR||!i(function(e){n.all(e).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,r){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=n},{}],329:[function(e,t,r){var n=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,r){var n=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),a=e("../internals/well-known-symbol"),s=e("../internals/descriptors"),o=a("species");t.exports=function(e){var t=n(e);s&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,t,r){var n=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),a=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,a)&&n(e,a,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,r){var n=e("../internals/shared"),i=e("../internals/uid"),a=n("keys");t.exports=function(e){return a[e]||(a[e]=i(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/define-global-property"),a="__core-js_shared__";t.exports=n[a]||i(a,{})},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,r){var n=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/a-constructor"),a=e("../internals/is-null-or-undefined"),s=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||a(r=n(o)[s])?t:i(r)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,r){var n=e("../internals/engine-v8-version"),i=e("../internals/fails"),a=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/get-built-in"),a=e("../internals/well-known-symbol"),s=e("../internals/define-built-in");t.exports=function(){var e=i("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,o=a("toPrimitive");t&&!t[o]&&s(t,o,function(e){return n(r,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,t,r){t.exports=e("../internals/symbol-constructor-detection")&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,r){var n,i,a,s,o=e("../internals/global"),l=e("../internals/function-apply"),c=e("../internals/function-bind-context"),u=e("../internals/is-callable"),f=e("../internals/has-own-property"),h=e("../internals/fails"),d=e("../internals/html"),p=e("../internals/array-slice"),m=e("../internals/document-create-element"),v=e("../internals/validate-arguments-length"),g=e("../internals/engine-is-ios"),b=e("../internals/engine-is-node"),y=o.setImmediate,w=o.clearImmediate,_=o.process,k=o.Dispatch,x=o.Function,S=o.MessageChannel,T=o.String,E=0,C={},A="onreadystatechange";h(function(){n=o.location});var M=function(e){if(f(C,e)){var t=C[e];delete C[e],t()}},O=function(e){return function(){M(e)}},R=function(e){M(e.data)},I=function(e){o.postMessage(T(e),n.protocol+"//"+n.host)};y&&w||(y=function(e){v(arguments.length,1);var t=u(e)?e:x(e),r=p(arguments,1);return C[++E]=function(){l(t,void 0,r)},i(E),E},w=function(e){delete C[e]},b?i=function(e){_.nextTick(O(e))}:k&&k.now?i=function(e){k.now(O(e))}:S&&!g?(s=(a=new S).port2,a.port1.onmessage=R,i=c(s.postMessage,s)):o.addEventListener&&u(o.postMessage)&&!o.importScripts&&n&&"file:"!==n.protocol&&!h(I)?(i=I,o.addEventListener("message",R,!1)):i=A in m("script")?function(e){d.appendChild(m("script"))[A]=function(){d.removeChild(this),M(e)}}:function(e){setTimeout(O(e),0)}),t.exports={set:y,clear:w}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,t,r){var n=e("../internals/to-integer-or-infinity"),i=Math.max,a=Math.min;t.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):a(r,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,r){var n=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return n(i(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,r){var n=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},{"../internals/math-trunc":301}],343:[function(e,t,r){var n=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,r){var n=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(n(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/is-object"),a=e("../internals/is-symbol"),s=e("../internals/get-method"),o=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!i(e)||a(e))return e;var r,l=s(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||a(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,t,r){var n=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,r){var n={};n[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(n)},{"../internals/well-known-symbol":357}],348:[function(e,t,r){var n=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":236}],349:[function(e,t,r){var n=String;t.exports=function(e){try{return n(e)}catch(t){return"Object"}}},{}],350:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=0,a=Math.random(),s=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+a,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,r){t.exports=e("../internals/symbol-constructor-detection")&&!Symbol.sham&&"symbol"==P(Symbol.iterator)},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails");t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,r){var n=TypeError;t.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}},{}],354:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/is-callable"),a=n.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,r){var n=e("../internals/path"),i=e("../internals/has-own-property"),a=e("../internals/well-known-symbol-wrapped"),s=e("../internals/object-define-property").f;t.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||s(t,e,{value:a.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,r){r.f=e("../internals/well-known-symbol")},{"../internals/well-known-symbol":357}],357:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/shared"),a=e("../internals/has-own-property"),s=e("../internals/uid"),o=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),c=n.Symbol,u=i("wks"),f=l?c.for||c:c&&c.withoutSetter||s;t.exports=function(e){return a(u,e)||(u[e]=o&&a(c,e)?c[e]:f("Symbol."+e)),u[e]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-iteration").findIndex,a=e("../internals/add-to-unscopables"),s="findIndex",o=!0;s in[]&&Array(1)[s](function(){o=!1}),n({target:"Array",proto:!0,forced:o},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-iteration").find,a=e("../internals/add-to-unscopables"),s="find",o=!0;s in[]&&Array(1)[s](function(){o=!1}),n({target:"Array",proto:!0,forced:o},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-includes").includes,a=e("../internals/fails"),s=e("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:a(function(){return!Array(1).includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,r){var n=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),a=e("../internals/iterators"),s=e("../internals/internal-state"),o=e("../internals/object-define-property").f,l=e("../internals/iterator-define"),c=e("../internals/create-iter-result-object"),u=e("../internals/is-pure"),f=e("../internals/descriptors"),h="Array Iterator",d=s.set,p=s.getterFor(h);t.exports=l(Array,"Array",function(e,t){d(this,{type:h,target:n(e),index:0,kind:t})},function(){var e=p(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(r){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)},"values");var m=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!u&&f&&"values"!==m.name)try{o(m,"name",{value:"values"})}catch(v){}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/function-apply"),s=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),l=e("../internals/fails"),c=e("../internals/is-callable"),u=e("../internals/is-symbol"),f=e("../internals/array-slice"),h=e("../internals/get-json-replacer-function"),d=e("../internals/symbol-constructor-detection"),p=String,m=i("JSON","stringify"),v=o(/./.exec),g=o("".charAt),b=o("".charCodeAt),y=o("".replace),w=o(1..toString),_=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,S=!d||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))}),T=l(function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")}),E=function(e,t){var r=f(arguments),n=h(t);if(c(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(c(n)&&(t=s(n,this,p(e),t)),!u(t))return t},a(m,null,r)},C=function(e,t,r){var n=g(r,t-1),i=g(r,t+1);return v(k,e)&&!v(x,i)||v(x,e)&&!v(k,n)?"\\u"+w(b(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:S||T},{stringify:function(e,t,r){var n=f(arguments),i=a(S?E:m,null,n);return T&&"string"==typeof i?y(i,_,C):i}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,t,r){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/object-assign");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),a=e("../internals/fails"),s=e("../internals/object-get-own-property-symbols"),o=e("../internals/to-object");n({target:"Object",stat:!0,forced:!i||a(function(){s.f(1)})},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(o(e)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/to-object"),a=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")(function(){a(1)})},{keys:function(e){return a(i(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/object-to-array").values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),o=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,u=o(function(){var r=a(t.resolve),s=[],o=0,u=1;l(e,function(e){var a=o++,l=!1;u++,i(r,t,e).then(function(e){l||(l=!0,s[a]=e,--u||n(s))},c)}),--u||n(s)});return u.error&&c(u.value),r.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/is-pure"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,s=e("../internals/promise-native-constructor"),o=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/define-built-in"),u=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(s)){var f=o("Promise").prototype.catch;u.catch!==f&&c(u,"catch",f,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,t,r){var n,i,a,s=e("../internals/export"),o=e("../internals/is-pure"),l=e("../internals/engine-is-node"),c=e("../internals/global"),u=e("../internals/function-call"),f=e("../internals/define-built-in"),h=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),m=e("../internals/a-callable"),v=e("../internals/is-callable"),g=e("../internals/is-object"),b=e("../internals/an-instance"),y=e("../internals/species-constructor"),w=e("../internals/task").set,_=e("../internals/microtask"),k=e("../internals/host-report-errors"),x=e("../internals/perform"),S=e("../internals/queue"),T=e("../internals/internal-state"),E=e("../internals/promise-native-constructor"),C=e("../internals/promise-constructor-detection"),A=e("../internals/new-promise-capability"),M="Promise",O=C.CONSTRUCTOR,R=C.REJECTION_EVENT,I=C.SUBCLASSING,N=T.getterFor(M),P=T.set,D=E&&E.prototype,F=E,j=D,L=c.TypeError,B=c.document,z=c.process,U=A.f,H=U,W=!!(B&&B.createEvent&&c.dispatchEvent),V="unhandledrejection",$=function(e){var t;return!(!g(e)||!v(t=e.then))&&t},q=function(e,t){var r,n,i,a=t.value,s=1===t.state,o=s?e.ok:e.fail,l=e.resolve,c=e.reject,f=e.domain;try{o?(s||(2===t.rejection&&Z(t),t.rejection=1),!0===o?r=a:(f&&f.enter(),r=o(a),f&&(f.exit(),i=!0)),r===e.promise?c(new L("Promise-chain cycle")):(n=$(r))?u(n,r,l,c):l(r)):c(a)}catch(h){f&&!i&&f.exit(),c(h)}},X=function(e,t){e.notified||(e.notified=!0,_(function(){for(var r,n=e.reactions;r=n.get();)q(r,e);e.notified=!1,t&&!e.rejection&&Y(e)}))},G=function(e,t,r){var n,i;W?((n=B.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!R&&(i=c["on"+e])?i(n):e===V&&k("Unhandled promise rejection",r)},Y=function(e){u(w,c,function(){var t,r=e.facade,n=e.value;if(K(e)&&(t=x(function(){l?z.emit("unhandledRejection",n,r):G(V,r,n)}),e.rejection=l||K(e)?2:1,t.error))throw t.value})},K=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){u(w,c,function(){var t=e.facade;l?z.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)})},J=function(e,t,r){return function(n){e(t,n,r)}},Q=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,X(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new L("Promise can't be resolved itself");var n=$(t);n?_(function(){var r={done:!1};try{u(n,t,J(ee,r,e),J(Q,r,e))}catch(i){Q(r,i,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(i){Q({done:!1},i,e)}}};if(O&&(j=(F=function(e){b(this,j),m(e),u(n,this);var t=N(this);try{e(J(ee,t),J(Q,t))}catch(r){Q(t,r)}}).prototype,(n=function(e){P(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(j,"then",function(e,t){var r=N(this),n=U(y(this,F));return r.parent=!0,n.ok=!v(e)||e,n.fail=v(t)&&t,n.domain=l?z.domain:void 0,0===r.state?r.reactions.add(n):_(function(){q(n,r)}),n.promise}),i=function(){var e=new n,t=N(e);this.promise=e,this.resolve=J(ee,t),this.reject=J(Q,t)},A.f=U=function(e){return e===F||void 0===e?new i(e):H(e)},!o&&v(E)&&D!==Object.prototype)){a=D.then,I||f(D,"then",function(e,t){var r=this;return new F(function(e,t){u(a,r,e,t)}).then(e,t)},{unsafe:!0});try{delete D.constructor}catch(te){}h&&h(D,j)}s({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:F}),d(F,M,!1,!0),p(M)},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/is-pure"),a=e("../internals/promise-native-constructor"),s=e("../internals/fails"),o=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/species-constructor"),u=e("../internals/promise-resolve"),f=e("../internals/define-built-in"),h=a&&a.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!a&&s(function(){h.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=c(this,o("Promise")),r=l(e);return this.then(r?function(r){return u(t,e()).then(function(){return r})}:e,r?function(r){return u(t,e()).then(function(){throw r})}:e)}}),!i&&l(a)){var d=o("Promise").prototype.finally;h.finally!==d&&f(h,"finally",d,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,t,r){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),o=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,r=s.f(t),n=r.reject,c=o(function(){var s=a(t.resolve);l(e,function(e){i(s,t,e).then(r.resolve,n)})});return c.error&&n(c.value),r.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=a.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-resolve"),c=i("Promise"),u=a&&!o;n({target:"Promise",stat:!0,forced:a||o},{resolve:function(e){return l(u&&this===c?s:this,e)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),a=e("../internals/to-absolute-index"),s=RangeError,o=String.fromCharCode,l=String.fromCodePoint,c=i([].join);n({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],a(t,1114111)!==t)throw new s(t+" is not a valid code point");r[i]=t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320)}return c(r,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),a=e("../internals/not-a-regexp"),s=e("../internals/require-object-coercible"),o=e("../internals/to-string"),l=e("../internals/correct-is-regexp-logic"),c=i("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(o(s(this)),o(a(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,t,r){e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/global"),a=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),o=e("../internals/is-pure"),l=e("../internals/descriptors"),c=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),f=e("../internals/has-own-property"),h=e("../internals/object-is-prototype-of"),d=e("../internals/an-object"),p=e("../internals/to-indexed-object"),m=e("../internals/to-property-key"),v=e("../internals/to-string"),g=e("../internals/create-property-descriptor"),b=e("../internals/object-create"),y=e("../internals/object-keys"),w=e("../internals/object-get-own-property-names"),_=e("../internals/object-get-own-property-names-external"),k=e("../internals/object-get-own-property-symbols"),x=e("../internals/object-get-own-property-descriptor"),S=e("../internals/object-define-property"),T=e("../internals/object-define-properties"),E=e("../internals/object-property-is-enumerable"),C=e("../internals/define-built-in"),A=e("../internals/define-built-in-accessor"),M=e("../internals/shared"),O=e("../internals/shared-key"),R=e("../internals/hidden-keys"),I=e("../internals/uid"),N=e("../internals/well-known-symbol"),P=e("../internals/well-known-symbol-wrapped"),D=e("../internals/well-known-symbol-define"),F=e("../internals/symbol-define-to-primitive"),j=e("../internals/set-to-string-tag"),L=e("../internals/internal-state"),B=e("../internals/array-iteration").forEach,z=O("hidden"),U="Symbol",H="prototype",W=L.set,V=L.getterFor(U),$=Object[H],q=i.Symbol,X=q&&q[H],G=i.RangeError,Y=i.TypeError,K=i.QObject,Z=x.f,J=S.f,Q=_.f,ee=E.f,te=s([].push),re=M("symbols"),ne=M("op-symbols"),ie=M("wks"),ae=!K||!K[H]||!K[H].findChild,se=function(e,t,r){var n=Z($,t);n&&delete $[t],J(e,t,r),n&&e!==$&&J($,t,n)},oe=l&&u(function(){return 7!==b(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?se:J,le=function(e,t){var r=re[e]=b(X);return W(r,{type:U,tag:e,description:t}),l||(r.description=t),r},ce=function(e,t,r){e===$&&ce(ne,t,r),d(e);var n=m(t);return d(r),f(re,n)?(r.enumerable?(f(e,z)&&e[z][n]&&(e[z][n]=!1),r=b(r,{enumerable:g(0,!1)})):(f(e,z)||J(e,z,g(1,{})),e[z][n]=!0),oe(e,n,r)):J(e,n,r)},ue=function(e,t){d(e);var r=p(t);return B(y(r).concat(pe(r)),function(t){l&&!a(fe,r,t)||ce(e,t,r[t])}),e},fe=function(e){var t=m(e),r=a(ee,this,t);return!(this===$&&f(re,t)&&!f(ne,t))&&(!(r||!f(this,t)||!f(re,t)||f(this,z)&&this[z][t])||r)},he=function(e,t){var r=p(e),n=m(t);if(r!==$||!f(re,n)||f(ne,n)){var i=Z(r,n);return!i||!f(re,n)||f(r,z)&&r[z][n]||(i.enumerable=!0),i}},de=function(e){var t=Q(p(e)),r=[];return B(t,function(e){f(re,e)||f(R,e)||te(r,e)}),r},pe=function(e){var t=e===$,r=Q(t?ne:p(e)),n=[];return B(r,function(e){!f(re,e)||t&&!f($,e)||te(n,re[e])}),n};c||(q=function(){if(h(X,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=I(e),r=function(e){this===$&&a(r,ne,e),f(this,z)&&f(this[z],t)&&(this[z][t]=!1);var n=g(1,e);try{oe(this,t,n)}catch(i){if(!(i instanceof G))throw i;se(this,t,n)}};return l&&ae&&oe($,t,{configurable:!0,set:r}),le(t,e)},C(X=q[H],"toString",function(){return V(this).tag}),C(q,"withoutSetter",function(e){return le(I(e),e)}),E.f=fe,S.f=ce,T.f=ue,x.f=he,w.f=_.f=de,k.f=pe,P.f=function(e){return le(N(e),e)},l&&(A(X,"description",{configurable:!0,get:function(){return V(this).description}}),o||C($,"propertyIsEnumerable",fe,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),B(y(ie),function(e){D(e)}),n({target:U,stat:!0,forced:!c},{useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?b(e):ue(b(e),t)},defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:he}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:de}),F(),j(q,U),R[z]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/has-own-property"),s=e("../internals/to-string"),o=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=o("string-to-symbol-registry"),u=o("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=s(e);if(a(c,t))return c[t];var r=i("Symbol")(t);return c[t]=r,u[r]=t,r}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,t,r){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/has-own-property"),a=e("../internals/is-symbol"),s=e("../internals/try-to-string"),o=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=o("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!a(e))throw new TypeError(s(e)+" is not a symbol");if(i(c,e))return c[e]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,t,r){function n(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"===P(e)},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===n(e)},r.isObject=function(e){return"object"===P(e)&&null!==e},r.isDate=function(e){return"[object Date]"===n(e)},r.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===P(e)||void 0===e},r.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,t,r){(function(r){(function(){var n=e("elliptic"),i=e("bn.js");t.exports=function(e){return new s(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function o(e,t,n){Array.isArray(e)||(e=e.toArray());var i=new r(e);if(n&&i.length<n){var a=new r(n-i.length);a.fill(0),i=r.concat([a,i])}return t?i.toString(t):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,n){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),o(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),o(r,e)},s.prototype.getPrivateKey=function(e){return o(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",r.isBuffer(e)||(e=new r(e,t));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],386:[function(e,t,r){var n=e("inherits"),i=e("md5.js"),a=e("ripemd160"),s=e("sha.js"),o=e("cipher-base");function l(e){o.call(this,"digest"),this._hash=e}n(l,o),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new l(s(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,r){var n=e("md5.js");t.exports=function(e){return(new n).update(e).digest()}},{"md5.js":450}],388:[function(e,t,r){var n=e("inherits"),i=e("./legacy"),a=e("cipher-base"),s=e("safe-buffer").Buffer,o=e("create-hash/md5"),l=e("ripemd160"),c=e("sha.js"),u=s.alloc(128);function f(e,t){a.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<r&&(t=s.concat([t,u],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),o=0;o<r;o++)n[o]=54^t[o],i[o]=92^t[o];this._hash="rmd160"===e?new l:c(e),this._hash.update(n)}n(f,a),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(o,t):new f(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,r){var n=e("inherits"),i=e("safe-buffer").Buffer,a=e("cipher-base"),s=i.alloc(128),o=64;function l(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>o?t=e(t):t.length<o&&(t=i.concat([t,s],o));for(var r=this._ipad=i.allocUnsafe(o),n=this._opad=i.allocUnsafe(o),l=0;l<o;l++)r[l]=54^t[l],n[l]=92^t[l];this._hash=[r]}n(l,a),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=l},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,r){r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var n=e("browserify-sign/algos"),i=Object.keys(n),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);r.getHashes=function(){return a};var s=e("pbkdf2");r.pbkdf2=s.pbkdf2,r.pbkdf2Sync=s.pbkdf2Sync;var o=e("browserify-cipher");r.Cipher=o.Cipher,r.createCipher=o.createCipher,r.Cipheriv=o.Cipheriv,r.createCipheriv=o.createCipheriv,r.Decipher=o.Decipher,r.createDecipher=o.createDecipher,r.Decipheriv=o.Decipheriv,r.createDecipheriv=o.createDecipheriv,r.getCiphers=o.getCiphers,r.listCiphers=o.listCiphers;var l=e("diffie-hellman");r.DiffieHellmanGroup=l.DiffieHellmanGroup,r.createDiffieHellmanGroup=l.createDiffieHellmanGroup,r.getDiffieHellman=l.getDiffieHellman,r.createDiffieHellman=l.createDiffieHellman,r.DiffieHellman=l.DiffieHellman;var c=e("browserify-sign");r.createSign=c.createSign,r.Sign=c.Sign,r.createVerify=c.createVerify,r.Verify=c.Verify,r.createECDH=e("create-ecdh");var u=e("public-encrypt");r.publicEncrypt=u.publicEncrypt,r.privateEncrypt=u.privateEncrypt,r.publicDecrypt=u.publicDecrypt,r.privateDecrypt=u.privateDecrypt;var f=e("randomfill");r.randomFill=f.randomFill,r.randomFillSync=f.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,t,r){!function(e,n){"object"==P(r)&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs=n()}(void 0,function(){var e=6e4,t=36e5,r="millisecond",n="second",i="minute",a="hour",s="day",o="week",l="month",c="quarter",u="year",f="date",h="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},g={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,l),a=r-i<0,s=t.clone().add(n+(a?-1:1),l);return+(-(n+(r-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:o,d:s,D:f,h:a,m:i,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=m;var w="$isDayjsObject",_=function(e){return e instanceof T||!(!e||!e[w])},k=function e(t,r,n){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();y[a]&&(i=a),r&&(y[a]=r,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;y[o]=t,i=o}return!n&&i&&(b=i),i||!n&&b},x=function(e,t){if(_(e))return e.clone();var r="object"==P(t)?t:{};return r.date=e,r.args=arguments,new T(r)},S=g;S.l=k,S.i=_,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)/* @__PURE__ */return new Date(NaN);if(S.u(t))/* @__PURE__ */return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var r=x(e);return this.startOf(t)<=r&&r<=this.endOf(t)},v.isAfter=function(e,t){return x(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<x(e)},v.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var r=this,c=!!S.u(t)||t,h=S.p(e),d=function(e,t){var n=S.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(s)},p=function(e,t){return S.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case u:return c?d(1,0):d(31,11);case l:return c?d(1,v):d(0,v+1);case o:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return d(c?g-w:g+(6-w),v);case s:case f:return p(b+"Hours",0);case a:return p(b+"Minutes",1);case i:return p(b+"Seconds",2);case n:return p(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var o,c=S.p(e),h="set"+(this.$u?"UTC":""),d=(o={},o[s]=h+"Date",o[f]=h+"Date",o[l]=h+"Month",o[u]=h+"FullYear",o[a]=h+"Hours",o[i]=h+"Minutes",o[n]=h+"Seconds",o[r]=h+"Milliseconds",o)[c],p=c===s?this.$D+(t-this.$W):t;if(c===l||c===u){var m=this.clone().set(f,1);m.$d[d](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(r,c){var f,h=this;r=Number(r);var d=S.p(c),p=function(e){var t=x(h);return S.w(t.date(t.date()+Math.round(e*r)),h)};if(d===l)return this.set(l,this.$M+r);if(d===u)return this.set(u,this.$y+r);if(d===s)return p(1);if(d===o)return p(7);var m=(f={},f[i]=e,f[a]=t,f[n]=1e3,f)[d]||1,v=this.$d.getTime()+r*m;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),a=this.$H,s=this.$m,o=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,f=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},d=function(e){return S.s(a%12||12,e,"0")},m=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(p,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return o+1;case"MM":return S.s(o+1,2,"0");case"MMM":return f(r.monthsShort,o,c,3);case"MMMM":return f(c,o);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,l,2);case"ddd":return f(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return S.s(a,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(a,s,!0);case"A":return m(a,s,!1);case"m":return String(s);case"mm":return S.s(s,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,h){var d,p=this,m=S.p(f),v=x(r),g=(v.utcOffset()-this.utcOffset())*e,b=this-v,y=function(){return S.m(p,v)};switch(m){case u:d=y()/12;break;case l:d=y();break;case c:d=y()/3;break;case o:d=(b-g)/6048e5;break;case s:d=(b-g)/864e5;break;case a:d=b/t;break;case i:d=b/e;break;case n:d=b/1e3;break;default:d=b}return h?d:S.a(d)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=k(e,t,!0);return n&&(r.$L=n),r},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),E=T.prototype;return x.prototype=E,[["$ms",r],["$s",n],["$m",i],["$H",a],["$W",s],["$M",l],["$y",u],["$D",f]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),x.extend=function(e,t){return e.$i||(e(t,T,x),e.$i=!0),x},x.locale=k,x.isDayjs=_,x.unix=function(e){return x(1e3*e)},x.en=y[b],x.Ls=y,x.p={},x})},{}],392:[function(e,t,r){!function(e,n){"object"==P(r)&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=n()}(void 0,function(){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|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,n=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},o=function(e){return function(t){this[e]=+t}},l=[/[+-]\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)}],c=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var r,n=a.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){r=i>12;break}}else r=e===(t?"pm":"PM");return r},f={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,o("seconds")],ss:[n,o("seconds")],m:[n,o("minutes")],mm:[n,o("minutes")],H:[n,o("hours")],h:[n,o("hours")],HH:[n,o("hours")],hh:[n,o("hours")],D:[n,o("day")],DD:[r,o("day")],Do:[i,function(e){var t=a.ordinal;if(this.day=e.match(/\d+/)[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[n,o("month")],MM:[r,o("month")],MMM:[i,function(e){var t=c("months"),r=(c("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:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,o("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,o("year")],Z:l,ZZ:l};function h(r){for(var n=r,i=a&&a.formats,s=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,n){var a=n&&n.toUpperCase();return r||i[n]||e[n]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})})).match(t),o=s.length,l=0;l<o;l+=1){var c=s[l],u=f[c],h=u&&u[0],d=u&&u[1];s[l]=d?{regex:h,parser:d}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<o;r+=1){var i=s[r];if("string"==typeof i)n+=i.length;else{var a=i.regex,l=i.parser,c=e.slice(n),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}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&&(s=e.parseTwoDigitYear);var n=t.prototype,i=n.parse;n.parse=function(e){var t=e.date,n=e.utc,s=e.args;this.$u=n;var o=s[1];if("string"==typeof o){var l=!0===s[2],c=!0===s[3],u=l||c,f=s[2];c&&(f=s[2]),a=this.$locale(),!l&&f&&(a=r.Ls[f]),this.$d=function(e,t,r){try{if(["x","X"].indexOf(t)>-1)/* @__PURE__ */return new Date(("X"===t?1e3:1)*e);var n=h(t)(e),i=n.year,a=n.month,s=n.day,o=n.hours,l=n.minutes,c=n.seconds,u=n.milliseconds,f=n.zone,d=/* @__PURE__ */new Date,p=s||(i||a?1:d.getDate()),m=i||d.getFullYear(),v=0;i&&!a||(v=a>0?a-1:d.getMonth());var g=o||0,b=l||0,y=c||0,w=u||0;return f?new Date(Date.UTC(m,v,p,g,b,y,w+60*f.offset*1e3)):r?new Date(Date.UTC(m,v,p,g,b,y,w)):new Date(m,v,p,g,b,y,w)}catch(e){/* @__PURE__ */
|
|
2
|
+
return new Date("")}}(t,o,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),u&&t!=this.format(o)&&(this.$d=/* @__PURE__ */new Date("")),a={}}else if(o instanceof Array)for(var d=o.length,p=1;p<=d;p+=1){s[1]=o[p-1];var m=r.apply(this,s);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===d&&(this.$d=/* @__PURE__ */new Date(""))}else i.call(this,e)}}})},{}],393:[function(e,t,r){!function(e,n){"object"==P(r)&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_utc=n()}(void 0,function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,a){var s=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},s.utc=function(t){var r=a(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},s.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var o=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var l=s.init;s.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 l.call(this)};var c=s.utcOffset;s.utcOffset=function(n,i){var a=this.$utils().u;if(a(n))return this.$u?0:a(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],a=i[0],s=60*+i[1]+ +i[2];return 0===s?0:"+"===a?s:-s}(n),null===n))return this;var s=Math.abs(n)<=16?60*n:n,o=this;if(i)return o.$offset=s,o.$u=0===n,o;if(0!==n){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(s+l,e)).$offset=s,o.$x.$localOffset=l}else o=this.utc();return o};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=s.diff;s.diff=function(e,t,r){if(e&&this.$u===e.$u)return h.call(this,e,t,r);var n=this.local(),i=a(e).local();return h.call(n,i,t,r)}}})},{}],394:[function(e,t,r){r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,r){var n=e("minimalistic-assert"),i=e("inherits"),a={};function s(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(a),n=0;n<r.length;n++){var s=r[n];t.prototype[s]=a[s]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){this._cbcState=new s(this.options.iv)},a._update=function(e,t,r,n){var i=this._cbcState,a=this.constructor.super_.prototype,s=i.iv;if("encrypt"===this.type){for(var o=0;o<this.blockSize;o++)s[o]^=e[t+o];a._update.call(this,s,0,r,n);for(o=0;o<this.blockSize;o++)s[o]=r[n+o]}else{a._update.call(this,e,t,r,n);for(o=0;o<this.blockSize;o++)r[n+o]^=s[o];for(o=0;o<this.blockSize;o++)s[o]=e[t+o]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,r){var n=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,r){var n=e("minimalistic-assert"),i=e("inherits"),a=e("./utils"),s=e("./cipher");function o(){this.tmp=new Array(2),this.keys=null}function l(e){s.call(this,e);var t=new o;this._desState=t,this.deriveKeys(t,e.key)}i(l,s),t.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var s=0;s<e.keys.length;s+=2){var o=c[s>>>1];r=a.r28shl(r,o),i=a.r28shl(i,o),a.pc2(r,i,e.keys,s)}},l.prototype._update=function(e,t,r,n){var i=this._desState,s=a.readUInt32BE(e,t),o=a.readUInt32BE(e,t+4);a.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],a.writeUInt32BE(r,s,n),a.writeUInt32BE(r,o,n+4)},l.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},l.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,r,n,i){for(var s=t,o=r,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];a.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var f=a.substitute(c,u),h=o;o=(s^a.permute(f))>>>0,s=h}a.rip(o,s,n,i)},l.prototype._decrypt=function(e,t,r,n,i){for(var s=r,o=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];a.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var f=a.substitute(c,u),h=s;s=(o^a.permute(f))>>>0,o=h}a.rip(s,o,n,i)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,r){var n=e("minimalistic-assert"),i=e("inherits"),a=e("./cipher"),s=e("./des");function o(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:a})]:[s.create({type:"decrypt",key:a}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r})]}function l(e){a.call(this,e),this._edeState=new o(this.type,this.options.key)}i(l,a),t.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},l.prototype._pad=s.prototype._pad,l.prototype._unpad=s.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,r){r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,a=0,s=6;s>=0;s-=2){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>>o+s&1;for(o=0;o<=24;o+=8)i<<=1,i|=e>>>o+s&1}for(s=6;s>=0;s-=2){for(o=1;o<=25;o+=8)a<<=1,a|=t>>>o+s&1;for(o=1;o<=25;o+=8)a<<=1,a|=e>>>o+s&1}r[n+0]=i>>>0,r[n+1]=a>>>0},r.rip=function(e,t,r,n){for(var i=0,a=0,s=0;s<4;s++)for(var o=24;o>=0;o-=8)i<<=1,i|=t>>>o+s&1,i<<=1,i|=e>>>o+s&1;for(s=4;s<8;s++)for(o=24;o>=0;o-=8)a<<=1,a|=t>>>o+s&1,a<<=1,a|=e>>>o+s&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.pc1=function(e,t,r,n){for(var i=0,a=0,s=7;s>=5;s--){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>o+s&1;for(o=0;o<=24;o+=8)i<<=1,i|=e>>o+s&1}for(o=0;o<=24;o+=8)i<<=1,i|=t>>o+s&1;for(s=1;s<=3;s++){for(o=0;o<=24;o+=8)a<<=1,a|=t>>o+s&1;for(o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1}for(o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,i){for(var a=0,s=0,o=n.length>>>1,l=0;l<o;l++)a<<=1,a|=e>>>n[l]&1;for(l=o;l<n.length;l++)s<<=1,s|=t>>>n[l]&1;r[i+0]=a>>>0,r[i+1]=s>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)n<<=6,n|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r<a.length;r++)t<<=1,t|=e>>>a[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],a=0;a<t;a+=r)i.push(n.slice(a,a+r));return i.join(" ")}},{}],400:[function(e,t,r){(function(t){(function(){var n=e("./lib/generatePrime"),i=e("./lib/primes.json"),a=e("./lib/dh");var s={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){return new a(new t(i[e].prime,"hex"),new t(i[e].gen,"hex"))},r.createDiffieHellman=r.DiffieHellman=function e(r,i,o,l){return t.isBuffer(i)||void 0===s[i]?e(r,"binary",i,o):(i=i||"binary",l=l||"binary",o=o||new t([2]),t.isBuffer(o)||(o=new t(o,l)),"number"==typeof r?new a(n(r,o),o,!0):(t.isBuffer(r)||(r=new t(r,i)),new a(r,o,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,r){(function(r){(function(){var n=e("bn.js"),i=new(e("miller-rabin")),a=new n(24),s=new n(11),o=new n(10),l=new n(3),c=new n(7),u=e("./generatePrime"),f=e("randombytes");function h(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._pub=new n(e),this}function d(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._priv=new n(e),this}t.exports=m;var p={};function m(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=d):this._primeCode=8}function v(e,t){var n=new r(e.toArray());return t?n.toString(t):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var f,h=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return h+=1,h+="02"===r||"05"===r?8:4,p[n]=h,h;switch(i.test(e.shrn(1))||(h+=2),r){case"02":e.mod(a).cmp(s)&&(h+=8);break;case"05":(f=e.mod(o)).cmp(l)&&f.cmp(c)&&(h+=8);break;default:h+=4}return p[n]=h,h}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){e=(e=new n(e)).toRed(this._prime);var t=new r(e.redPow(this._priv).fromRed().toArray()),i=this.getPrime();if(t.length<i.length){var a=new r(i.length-t.length);a.fill(0),t=r.concat([a,t])}return t},m.prototype.getPublicKey=function(e){return v(this._pub,e)},m.prototype.getPrivateKey=function(e){return v(this._priv,e)},m.prototype.getPrime=function(e){return v(this.__prime,e)},m.prototype.getGenerator=function(e){return v(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.__gen=e,this._gen=new n(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,r){var n=e("randombytes");t.exports=b,b.simpleSieve=v,b.fermatTest=g;var i=e("bn.js"),a=new i(24),s=new(e("miller-rabin")),o=new i(1),l=new i(2),c=new i(5);new i(16),new i(8);var u=new i(10),f=new i(3);new i(7);var h=new i(11),d=new i(4);new i(12);var p=null;function m(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!==0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}function v(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function g(e){var t=i.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function b(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(o),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(u).cmp(f);)r.iadd(d)}else for(;r.mod(a).cmp(h);)r.iadd(d);if(v(p=r.shrn(1))&&v(r)&&g(p)&&g(r)&&s.test(p)&&s.test(r))return r}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],405:[function(e,t,r){var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,t,r){var n=e("bn.js"),i=e("../utils"),a=i.getNAF,s=i.getJSF,o=i.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r=e._getDoubles(),n=a(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var s,l,c=[];for(s=0;s<n.length;s+=r.step){l=0;for(var u=s+r.step-1;u>=s;u--)l=(l<<1)+n[u];c.push(l)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(s=0;s<c.length;s++)(l=c[s])===d?h=h.mixedAdd(r.points[s]):l===-d&&(h=h.mixedAdd(r.points[s].neg()));f=f.add(h)}return f.toP()},l.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=a(t,r,this._bitLength),l=this.jpoint(null,null,null),c=s.length-1;c>=0;c--){for(var u=0;c>=0&&0===s[c];c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var f=s[c];o(0!==f),l="affine"===e.type?f>0?l.mixedAdd(i[f-1>>1]):l.mixedAdd(i[-f-1>>1].neg()):f>0?l.add(i[f-1>>1]):l.add(i[-f-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,n,i){var o,l,c,u=this._wnafT1,f=this._wnafT2,h=this._wnafT3,d=0;for(o=0;o<n;o++){var p=(c=t[o])._getNAFPoints(e);u[o]=p.wnd,f[o]=p.points}for(o=n-1;o>=1;o-=2){var m=o-1,v=o;if(1===u[m]&&1===u[v]){var g=[t[m],null,null,t[v]];0===t[m].y.cmp(t[v].y)?(g[1]=t[m].add(t[v]),g[2]=t[m].toJ().mixedAdd(t[v].neg())):0===t[m].y.cmp(t[v].y.redNeg())?(g[1]=t[m].toJ().mixedAdd(t[v]),g[2]=t[m].add(t[v].neg())):(g[1]=t[m].toJ().mixedAdd(t[v]),g[2]=t[m].toJ().mixedAdd(t[v].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=s(r[m],r[v]);for(d=Math.max(y[0].length,d),h[m]=new Array(d),h[v]=new Array(d),l=0;l<d;l++){var w=0|y[0][l],_=0|y[1][l];h[m][l]=b[3*(w+1)+(_+1)],h[v][l]=0,f[m]=g}}else h[m]=a(r[m],u[m],this._bitLength),h[v]=a(r[v],u[v],this._bitLength),d=Math.max(h[m].length,d),d=Math.max(h[v].length,d)}var k=this.jpoint(null,null,null),x=this._wnafT4;for(o=d;o>=0;o--){for(var S=0;o>=0;){var T=!0;for(l=0;l<n;l++)x[l]=0|h[l][o],0!==x[l]&&(T=!1);if(!T)break;S++,o--}if(o>=0&&S++,k=k.dblp(S),o<0)break;for(l=0;l<n;l++){var E=x[l];0!==E&&(E>0?c=f[l][E-1>>1]:E<0&&(c=f[l][-E-1>>1].neg()),k="affine"===c.type?k.mixedAdd(c):k.add(c))}}for(o=0;o<n;o++)f[o]=null;return i?k:k.toP()},l.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?o(e[e.length-1]%2==0):7===e[0]&&o(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,r){var n=e("../utils"),i=e("bn.js"),a=e("inherits"),s=e("./base"),o=n.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(l,s),t.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var l=o.fromRed().isOdd();return(t&&!l||!t&&l)&&(o=o.redNeg()),this.point(e,o)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(a.redInvm());if(0===s.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(c,s.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=n.redAdd(t),s=a.redSub(r),o=n.redSub(t),l=i.redMul(s),c=a.redMul(o),u=i.redMul(o),f=s.redMul(a);return this.curve.point(l,c,f,u)},c.prototype._projDbl=function(){var e,t,r,n,i,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(o)).redAdd(l);this.zOne?(e=s.redSub(o).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(l)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),a=c.redSub(i).redISub(i),e=s.redSub(o).redISub(l).redMul(a),t=c.redMul(n.redSub(l)),r=c.redMul(a))}else n=o.redAdd(l),i=this.curve._mulC(this.z).redSqr(),a=n.redSub(i).redSub(i),e=this.curve._mulC(s.redISub(n)).redMul(a),t=this.curve._mulC(n).redMul(o.redISub(l)),r=n.redMul(a);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=i.redSub(n),o=i.redAdd(n),l=r.redAdd(t),c=a.redMul(s),u=o.redMul(l),f=a.redMul(l),h=s.redMul(o);return this.curve.point(c,u,h,f)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),l=i.redSub(o),c=i.redAdd(o),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),f=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(s.redSub(this.curve._mulA(a))),r=l.redMul(c)):(t=n.redMul(c).redMul(s.redSub(a)),r=this.curve._mulC(l).redMul(c)),this.curve.point(f,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,r){var n=r;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,r){var n=e("bn.js"),i=e("inherits"),a=e("./base"),s=e("../utils");function o(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(l,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new l(this,e,t)},o.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=i.redMul(n),o=t.z.redMul(a.redAdd(s).redSqr()),l=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,l)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,r){var n=e("../utils"),i=e("bn.js"),a=e("inherits"),s=e("./base"),o=n.assert;function l(e){s.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(l,s),t.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],o(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(a).fromRed(),n.redSub(a).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,n,a,s,o,l,c,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),g=new i(1),b=0;0!==h.cmpn(0);){var y=d.div(h);c=d.sub(y.mul(h)),u=v.sub(y.mul(p));var w=g.sub(y.mul(m));if(!n&&c.cmp(f)<0)t=l.neg(),r=p,n=c.neg(),a=u;else if(n&&2===++b)break;l=c,d=h,h=c,v=p,p=u,g=m,m=w}s=c.neg(),o=u;var _=n.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:a},{a:s,b:o}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),o=a.mul(n.a),l=i.mul(r.b),c=a.mul(n.b);return{k1:e.sub(s).sub(o),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var a=n.fromRed().isOdd();return(t&&!a||!t&&a)&&(n=n.redNeg()),this.point(e,n)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var s=this._endoSplit(t[a]),o=e[a],l=o._getBeta();s.k1.negative&&(s.k1.ineg(),o=o.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),n[2*a]=o,n[2*a+1]=l,i[2*a]=s.k1,i[2*a+1]=s.k2}for(var c=this._wnafMulAdd(1,n,i,2*a,r),u=0;u<2*a;u++)n[u]=null,i[u]=null;return c},a(c,s.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var a=t[2];return n.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[n].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[n].concat(a.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,s.BasePoint),l.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=n.redSub(i),l=a.redSub(s);if(0===o.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),f=n.redMul(c),h=l.redSqr().redIAdd(u).redISub(f).redISub(f),d=l.redMul(f.redISub(h)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(h,d,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(n),o=i.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),u=r.redMul(l),f=o.redSqr().redIAdd(c).redISub(u).redISub(u),h=o.redMul(u.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(s);return this.curve.jpoint(f,h,d)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,a=this.x,s=this.y,o=this.z,l=o.redSqr().redSqr(),c=s.redAdd(s);for(t=0;t<e;t++){var u=a.redSqr(),f=c.redSqr(),h=f.redSqr(),d=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=a.redMul(f),m=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=d.redMul(v);g=g.redIAdd(g).redISub(h);var b=c.redMul(o);t+1<e&&(l=l.redMul(h)),a=m,o=b,c=g}return this.curve.jpoint(a,c.redMul(i),o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(a);s=s.redIAdd(s);var o=n.redAdd(n).redIAdd(n),l=o.redSqr().redISub(s).redISub(s),c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=o.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(u).redISub(h);d=d.redIAdd(d);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),v=h.redIAdd(h);v=(v=v.redIAdd(v)).redIAdd(v),e=m.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(a);s=s.redIAdd(s);var o=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=o.redSqr().redISub(s).redISub(s);e=l;var c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),t=o.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(u).redMul(this.x.redAdd(u));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var v=f.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=d.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),a=t.redSqr(),s=r.redSqr(),o=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(s),u=o.redSqr().redISub(c.redAdd(c)),f=c.redISub(u),h=s.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=o.redMul(f).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,d,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),o=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(a)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(s).redSqr().redISub(a).redISub(o).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(o).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(s.redMul(o)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(o);return this.curve.jpoint(f,h,d)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,r){var n,i=r,a=e("hash.js"),s=e("./curve"),o=e("./utils").assert;function l(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(u){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,r){var n=e("bn.js"),i=e("hmac-drbg"),a=e("../utils"),s=e("../curves"),o=e("brorand"),l=a.assert,c=e("./key"),u=e("./signature");function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=f,f.prototype.keyPair=function(e){return new c(this,e)},f.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,a){"object"===P(r)&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),l=e.toArray("be",s),c=new i({hash:this.hash,entropy:o,nonce:l,pers:a.pers,persEnc:a.persEnc||"utf8"}),f=this.n.sub(new n(1)),h=0;;h++){var d=a.k?a.k(h):new n(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(f)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var m=p.getX(),v=m.umod(this.n);if(0!==v.cmpn(0)){var g=d.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(v)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),b^=1),new u({r:v,s:g,recoveryParam:b})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var a=(t=new u(t,"hex")).r,s=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o,l=s.invm(this.n),c=l.mul(e).umod(this.n),f=l.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},f.prototype.recoverPubKey=function(e,t,r,i){l((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,s=new n(e),o=t.r,c=t.s,f=1&r,h=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");o=h?this.curve.pointFromX(o.add(this.curve.n),f):this.curve.pointFromX(o,f);var d=t.r.invm(a),p=a.sub(s).mul(d).umod(a),m=c.mul(d).umod(a);return this.g.mulAdd(p,o,m)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,t,r){var n=e("bn.js"),i=e("../utils").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,t,r){var n=e("bn.js"),i=e("../utils"),a=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,a=0,s=t.place;a<n;a++,s++)i<<=8,i|=e[s],i>>>=0;return!(i<=127)&&(t.place=s,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}t.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=l(e,r);if(!1===a)return!1;if(a+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var s=l(e,r);if(!1===s)return!1;var c=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var u=l(e,r);if(!1===u)return!1;if(e.length!==u+r.place)return!1;var f=e.slice(r.place,u+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new n(c),this.s=new n(f),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var a=n.concat(r),s=[48];return u(s,a.length),s=s.concat(a),i.encode(s,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,r){var n=e("hash.js"),i=e("../curves"),a=e("../utils"),s=a.assert,o=a.parseBytes,l=e("./key"),c=e("./signature");function u(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=u,u.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),a=this.encodePoint(i),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),l=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:a})},u.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=!!(128&e[t]),i=a.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,r){var n=e("../utils"),i=n.assert,a=n.parseBytes,s=n.cachedProperty;function o(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}o.fromPublic=function(e,t){return t instanceof o?t:new o(e,{pub:t})},o.fromSecret=function(e,t){return t instanceof o?t:new o(e,{secret:t})},o.prototype.secret=function(){return this._secret},s(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(o,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),s(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},o.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},o.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},o.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=o},{"../utils":419}],417:[function(e,t,r){var n=e("bn.js"),i=e("../utils"),a=i.assert,s=i.cachedProperty,o=i.parseBytes;function l(e,t){this.eddsa=e,"object"!==P(t)&&(t=o(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},{"../utils":419,"bn.js":420}],418:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,t,r){var n=r,i=e("bn.js"),a=e("minimalistic-assert"),s=e("minimalistic-crypto-utils");n.assert=a,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,a=e.clone(),s=0;s<n.length;s++){var o,l=a.andln(i-1);a.isOdd()?(o=l>(i>>1)-1?(i>>1)-l:l,a.isubn(o)):o=0,n[s]=o,a.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var s,o,l=e.andln(3)+i&3,c=t.andln(3)+a&3;3===l&&(l=-1),3===c&&(c=-1),s=1&l?3!==(n=e.andln(7)+i&7)&&5!==n||2!==c?l:-l:0,r[0].push(s),o=1&c?3!==(n=t.andln(7)+a&7)&&5!==n||2!==l?c:-c:0,r[1].push(o),2*i===s+1&&(i=1-i),2*a===o+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],421:[function(e,t,r){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,t,r){var n=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var o,l=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),o=0===c.x}catch(g){o=!1}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,r,i){var a,s,o;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),o=s[t]):(s=e._events=n(null),e._eventsCount=0),o){if("function"==typeof o?o=s[t]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),!o.warned&&(a=u(e))&&a>0&&o.length>a){o.warned=!0;var l=/* @__PURE__ */new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,"object"===("undefined"==typeof console?"undefined":P(console))&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else o=s[t]=r,++e._eventsCount;return e}function h(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=a.call(h,n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(!n)return[];var i=n[t];return i?"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):v(i,i.length):[]}function m(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function v(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}o?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');l=e}}):s.defaultMaxListeners=l,s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){var t,r,n,i,a,s,o="error"===e;if(s=this._events)o=o&&null==s.error;else if(!o)return!1;if(o){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=/* @__PURE__ */new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(r=s[e]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=v(e,n),a=0;a<n;++a)i[a].call(r)}(r,c,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,a=v(e,i),s=0;s<i;++s)a[s].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(e,t,r,n,i){if(t)e.call(r,n,i);else for(var a=e.length,s=v(e,a),o=0;o<a;++o)s[o].call(r,n,i)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,r,n,i,a){if(t)e.call(r,n,i,a);else for(var s=e.length,o=v(e,s),l=0;l<s;++l)o[l].call(r,n,i,a)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),a=1;a<n;a++)i[a-1]=arguments[a];!function(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,a=v(e,i),s=0;s<i;++s)a[s].apply(r,n)}(r,c,this,i)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,i,a,s,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(r=i[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=n(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){o=r[s].listener,a=s;break}if(a<0)return this;0===a?r.shift():function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,a),1===r.length&&(i[e]=r[0]),i.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.removeAllListeners=function(e){var t,r,a=this._events;if(!a)return this;if(!a.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):a[e]&&(0===--this._eventsCount?this._events=n(null):delete a[e]),this;if(0===arguments.length){var s,o=i(a);for(r=0;r<o.length;++r)"removeListener"!==(s=o[r])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if("function"==typeof(t=a[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("md5.js");t.exports=function(e,t,r,a){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,o=n.alloc(s),l=n.alloc(a||0),c=n.alloc(0);s>0||a>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var f=0;if(s>0){var h=o.length-s;f=Math.min(s,c.length),c.copy(o,h,0,f),s-=f}if(f<c.length&&a>0){var d=l.length-a,p=Math.min(a,c.length-f);c.copy(l,d,f,f+p),a-=p}}return c.fill(0),{key:o,iv:l}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CsvParserStream=r.ParserOptions=r.parseFile=r.parseStream=r.parseString=r.parse=r.FormatterOptions=r.CsvFormatterStream=r.writeToPath=r.writeToString=r.writeToBuffer=r.writeToStream=r.write=r.format=void 0;var n=e("@fast-csv/format");Object.defineProperty(r,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(r,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(r,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(r,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(r,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(r,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(r,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(r,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var i=e("@fast-csv/parse");Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(r,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(r,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(r,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(r,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(r,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,o=8*e.length;o>0;++s)this._length[s]+=o,(o=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*o);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,r){var n=r;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,r){var n=e("./utils"),i=e("minimalistic-assert");function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}r.BlockHash=a,a.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a<this.padLength;a++)n[i++]=0;return n}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,r){var n=e("./utils"),i=e("minimalistic-assert");function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}t.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,r){var n=e("./utils"),i=e("./common"),a=n.rotl32,s=n.sum32,o=n.sum32_3,l=n.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),r.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],b=r,y=n,w=i,_=c,k=u,x=0;x<80;x++){var S=s(a(l(r,f(x,n,i,c),e[p[x]+t],h(x)),v[x]),u);r=u,u=c,c=a(i,10),i=n,n=S,S=s(a(l(b,f(79-x,y,w,_),e[m[x]+t],d(x)),g[x]),k),b=k,k=_,_=a(w,10),w=y,y=S}S=o(this.h[1],i,_),this.h[1]=o(this.h[2],c,k),this.h[2]=o(this.h[3],u,b),this.h[3]=o(this.h[4],r,y),this.h[4]=o(this.h[0],n,w),this.h[0]=S},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,t,r){r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,r){var n=e("../utils"),i=e("../common"),a=e("./common"),s=n.rotl32,o=n.sum32,l=n.sum32_5,c=a.ft_1,u=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,u),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],h=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=l(s(i,5),c(p,a,u,h),d,r[n],f[p]);d=h,h=u,u=s(a,30),a=i,i=m}this.h[0]=o(this.h[0],i),this.h[1]=o(this.h[1],a),this.h[2]=o(this.h[2],u),this.h[3]=o(this.h[3],h),this.h[4]=o(this.h[4],d)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,r){var n=e("../utils"),i=e("./256");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(a,i),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,t,r){var n=e("../utils"),i=e("../common"),a=e("./common"),s=e("minimalistic-assert"),o=n.sum32,l=n.sum32_4,c=n.sum32_5,u=a.ch32,f=a.maj32,h=a.s0_256,d=a.s1_256,p=a.g0_256,m=a.g1_256,v=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(b,v),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],v=this.h[2],g=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var k=c(_,d(b),u(b,y,w),this.k[n],r[n]),x=o(h(i),f(i,a,v));_=w,w=y,y=b,b=o(g,k),g=v,v=a,a=i,i=o(k,x)}this.h[0]=o(this.h[0],i),this.h[1]=o(this.h[1],a),this.h[2]=o(this.h[2],v),this.h[3]=o(this.h[3],g),this.h[4]=o(this.h[4],b),this.h[5]=o(this.h[5],y),this.h[6]=o(this.h[6],w),this.h[7]=o(this.h[7],_)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,r){var n=e("../utils"),i=e("./512");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(a,i),t.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,t,r){var n=e("../utils"),i=e("../common"),a=e("minimalistic-assert"),s=n.rotr64_hi,o=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,f=n.sum64_hi,h=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,v=n.sum64_5_lo,g=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,r,n,i){var a=e&r^~e&i;return a<0&&(a+=4294967296),a}function _(e,t,r,n,i,a){var s=t&n^~t&a;return s<0&&(s+=4294967296),s}function k(e,t,r,n,i){var a=e&r^e&i^r&i;return a<0&&(a+=4294967296),a}function x(e,t,r,n,i,a){var s=t&n^t&a^n&a;return s<0&&(s+=4294967296),s}function S(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function C(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=o(e,t,1)^o(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}function R(e,t){var r=o(e,t,19)^o(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(y,g),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=O(r[n-4],r[n-3]),a=R(r[n-4],r[n-3]),s=r[n-14],o=r[n-13],l=A(r[n-30],r[n-29]),c=M(r[n-30],r[n-29]),u=r[n-32],f=r[n-31];r[n]=d(i,a,s,o,l,c,u,f),r[n+1]=p(i,a,s,o,l,c,u,f)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],s=this.h[2],o=this.h[3],l=this.h[4],c=this.h[5],d=this.h[6],p=this.h[7],g=this.h[8],b=this.h[9],y=this.h[10],A=this.h[11],M=this.h[12],O=this.h[13],R=this.h[14],I=this.h[15];a(this.k.length===r.length);for(var N=0;N<r.length;N+=2){var P=R,D=I,F=E(g,b),j=C(g,b),L=w(g,b,y,A,M),B=_(g,b,y,A,M,O),z=this.k[N],U=this.k[N+1],H=r[N],W=r[N+1],V=m(P,D,F,j,L,B,z,U,H,W),$=v(P,D,F,j,L,B,z,U,H,W);P=S(n,i),D=T(n,i),F=k(n,i,s,o,l),j=x(n,i,s,o,l,c);var q=f(P,D,F,j),X=h(P,D,F,j);R=M,I=O,M=y,O=A,y=g,A=b,g=f(d,p,V,$),b=h(p,p,V,$),d=l,p=c,l=s,c=o,s=n,o=i,n=f(V,$,q,X),i=h(V,$,q,X)}u(this.h,0,n,i),u(this.h,2,s,o),u(this.h,4,l,c),u(this.h,6,d,p),u(this.h,8,g,b),u(this.h,10,y,A),u(this.h,12,M,O),u(this.h,14,R,I)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,r){var n=e("../utils").rotr32;function i(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function s(e,t,r){return e^t^r}r.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?s(t,r,n):2===e?a(t,r,n):void 0},r.ch32=i,r.maj32=a,r.p32=s,r.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},r.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},r.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":437}],437:[function(e,t,r){var n=e("minimalistic-assert");function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function o(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=e("inherits"),r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)r.push(parseInt(e[a]+e[a+1],16))}else for(var n=0,a=0;a<e.length;a++){var s=e.charCodeAt(a);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=63&s|128):i(e,a)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++a)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(a=0;a<e.length;a++)r[a]=0|e[a];return r},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},r.htonl=a,r.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=o(i.toString(16))}return r},r.zero2=s,r.zero8=o,r.join32=function(e,t,r,i){var a=r-t;n(a%4==0);for(var s=new Array(a/4),o=0,l=t;o<s.length;o++,l+=4){var c;c="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],s[o]=c>>>0}return s},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0;e[t]=(a<n?1:0)+r+i>>>0,e[t+1]=a},r.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,a,s,o){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+a>>>0)<a?1:0,e+r+i+s+(l+=(c=c+o>>>0)<o?1:0)>>>0},r.sum64_4_lo=function(e,t,r,n,i,a,s,o){return t+n+a+o>>>0},r.sum64_5_hi=function(e,t,r,n,i,a,s,o,l,c){var u=0,f=t;return u+=(f=f+n>>>0)<t?1:0,u+=(f=f+a>>>0)<a?1:0,u+=(f=f+o>>>0)<o?1:0,e+r+i+s+l+(u+=(f=f+c>>>0)<c?1:0)>>>0},r.sum64_5_lo=function(e,t,r,n,i,a,s,o,l,c){return t+n+a+o+c>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,r){var n=e("hash.js"),i=e("minimalistic-crypto-utils"),a=e("minimalistic-assert");function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}t.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var s=a.slice(0,e);return this._update(r),this._reseed++,i.encode(s,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,r){r.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,l=(1<<o)-1,c=l>>1,u=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-u)-1,d>>=-u,u+=o;u>0;a=256*a+e[t+f],f+=h,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=n;u>0;s=256*s+e[t+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),a-=c}return(d?-1:1)*s*Math.pow(2,a-n)},r.write=function(e,t,r,n,i,a){var s,o,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=u?(o=0,s=u):s+f>=1?(o=(t*l-1)*Math.pow(2,i),s+=f):(o=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&o,d+=p,o/=256,i-=8);for(s=s<<i|o,c+=i;c>0;e[r+d]=255&s,d+=p,s/=256,c-=8);e[r+d-p]|=128*m}},{}],440:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],441:[function(e,t,r){(function(n,i,a,s,o,l,c,u){(function(){!function(e){"object"==P(r)&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(r,n,i){function a(o,l){if(!n[o]){if(!r[o]){var c="function"==typeof e&&e;if(!l&&c)return c(o,!0);if(s)return s(o,!0);var u=/* @__PURE__ */new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[o]={exports:{}};r[o][0].call(f.exports,function(e){return a(r[o][1][e]||e)},f,f.exports,t,r,n,i)}return n[o].exports}for(var s="function"==typeof e&&e,o=0;o<i.length;o++)a(i[o]);return a}({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,s,o,l,c,u=[],f=0,h=e.length,d=h,p="string"!==n.getTypeOf(e);f<e.length;)d=h-f,i=p?(t=e[f++],r=f<h?e[f++]:0,f<h?e[f++]:0):(t=e.charCodeAt(f++),r=f<h?e.charCodeAt(f++):0,f<h?e.charCodeAt(f++):0),s=t>>2,o=(3&t)<<4|r>>4,l=1<d?(15&r)<<2|i>>6:64,c=2<d?63&i:64,u.push(a.charAt(s)+a.charAt(o)+a.charAt(l)+a.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,s,o,l,c=0,u=0,f="data:";if(e.substr(0,5)===f)throw new Error("Invalid base64 input, it looks like a data url.");var h,d=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&d--,e.charAt(e.length-2)===a.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|d):new Array(0|d);c<e.length;)t=a.indexOf(e.charAt(c++))<<2|(s=a.indexOf(e.charAt(c++)))>>4,r=(15&s)<<4|(o=a.indexOf(e.charAt(c++)))>>2,n=(3&o)<<6|(l=a.indexOf(e.charAt(c++))),h[u++]=t,64!==o&&(h[u++]=r),64!==l&&(h[u++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r){var n=i,a=0+r;e^=-1;for(var s=0;s<a;s++)e=e>>>8^n[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,r){var n=i,a=0+r;e^=-1;for(var s=0;s<a;s++)e=e>>>8^n[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),s=e("./stream/GenericWorker"),o=n?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(o,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,s,u){var f,h,d=e.file,p=e.compression,m=u!==o.utf8encode,v=a.transformTo("string",u(d.name)),g=a.transformTo("string",o.utf8encode(d.name)),b=d.comment,y=a.transformTo("string",u(b)),w=a.transformTo("string",o.utf8encode(b)),_=g.length!==d.name.length,k=w.length!==b.length,x="",S="",T="",E=d.dir,C=d.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var M=0;t&&(M|=8),m||!_&&!k||(M|=2048);var O=0,R=0;E&&(O|=16),"UNIX"===s?(R=798,O|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(d.unixPermissions,E)):(R=20,O|=function(e){return 63&(e||0)}(d.dosPermissions)),f=C.getUTCHours(),f<<=6,f|=C.getUTCMinutes(),f<<=5,f|=C.getUTCSeconds()/2,h=C.getUTCFullYear()-1980,h<<=4,h|=C.getUTCMonth()+1,h<<=5,h|=C.getUTCDate(),_&&(S=n(1,1)+n(l(v),4)+g,x+="up"+n(S.length,2)+S),k&&(T=n(1,1)+n(l(y),4)+w,x+="uc"+n(T.length,2)+T);var I="";return I+="\n\0",I+=n(M,2),I+=p.magic,I+=n(f,2),I+=n(h,2),I+=n(A.crc32,4),I+=n(A.compressedSize,4),I+=n(A.uncompressedSize,4),I+=n(v.length,2),I+=n(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+I+v+x,dirRecord:c.CENTRAL_FILE_HEADER+n(R,2)+I+n(y.length,2)+"\0\0\0\0"+n(O,4)+n(i,4)+v+x+y}}var a=e("../utils"),s=e("../stream/GenericWorker"),o=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,s),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=function(e,t,r,i,s){var o=a.transformTo("string",s(i));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(o.length,2)+o}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},u.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},u.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var a=new i(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach(function(e,r){s++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(i,o).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(a)}),a.entriesCount=s}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;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 n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),i=e("./external"),a=e("./utf8"),s=e("./zipEntries"),o=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new o);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(/* @__PURE__ */new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(/* @__PURE__ */new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new s(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var a=0;a<n.length;a++)r.push(c(n[a]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),a=i.files,s=0;s<a.length;s++){var o=a[s],l=o.fileNameStr,c=n.resolve(o.fileNameStr);r.file(c,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders}),o.dir||(r.file(c).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:void 0!==a,newBufferFrom:function(e,t){if(a.from&&a.from!==Uint8Array.from)return a.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new a(e,t)},allocBuffer:function(e){if(a.alloc)return a.alloc(e);var t=new a(e);return t.fill(0),t},isBuffer:function(e){return a.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=a.getTypeOf(t),o=a.extend(r||{},l);o.date=o.date||/* @__PURE__ */new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(e=m(e)),o.createFolders&&(n=p(e))&&v.call(this,n,!0);var f="string"===i&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!f),(t instanceof c&&0===t.uncompressedSize||o.dir||!t||0===t.length)&&(o.base64=!1,o.binary=!0,t="",o.compression="STORE",i="string");var g;g=t instanceof c||t instanceof s?t:h.isNode&&h.isStream(t)?new d(e,t):a.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var b=new u(e,g,o);this.files[e]=b}var i=e("./utf8"),a=e("./utils"),s=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),f=e("./generate"),h=e("./nodejsUtils"),d=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},v=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(g(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(g(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=v.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");a.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=f.generateWorker(this,r,n)}catch(e){(t=new s("error")).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){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),s=e("./StringReader"),o=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new o(e):i.uint8array?new l(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),s=e("./GenericWorker"),o=e("../base64"),l=e("../support"),c=e("../external"),u=null;if(l.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function f(e,t,r){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=r,n.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(e){this._worker=new s("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return function(e,t){return new c.Promise(function(r,i){var s=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",function(e,r){s.push(e),t&&t(r)}).on("error",function(e){s=[],i(e)}).on("end",function(){try{r(function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return n.transformTo(e,t)}}(c,function(e,t){var r,n=0,i=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":for(i=new Uint8Array(s),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return a.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,s),u))}catch(e){i(e)}s=[]}).resume()})}(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==a,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=/* @__PURE__ */new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),s=e("./stream/GenericWorker"),o=new Array(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}o[254]=o[254]=1,r.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,r,n,a,s,o=e.length,l=0;for(a=0;a<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),a=s=0;s<l;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,a,s=e.length,l=new Array(2*s);for(t=r=0;t<s;)if((i=e[t++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<s;)i=i<<6|63&e[t++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,s),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}(t),l=t;s!==t.length&&(i.uint8array?(l=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(l=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,s),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),s=e("./external");function o(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,n){r.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function f(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function h(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=f;var d={};d.string={string:o,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},d.array={string:f,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},d.arraybuffer={string:function(e){return f(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:f,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return a.newBufferFrom(e)}},d.nodebuffer={string:f,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:o},r.transformTo=function(e,t){return t=t||"",e?(r.checkSupport(e),d[r.getTypeOf(t)][e](t)):t},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&a.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){u(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,a,o,c){return s.Promise.resolve(t).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)}):e}).then(function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(c?t=i.decode(t):a&&!0!==o&&(t=function(e){return l(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(/* @__PURE__ */new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),s=e("./zipEntry"),o=e("./support");function l(e){this.files=[],this.loadOptions=e}l.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 ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",r=i.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={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?/* @__PURE__ */new Error("Corrupted zip: can't find end of central directory"):/* @__PURE__ */new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),s=e("./crc32"),o=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),s=e("./utf8"),o=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!n&&(t=t.pipe(new s.Utf8EncodeWorker)),!a&&n&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),o.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<c.length;f++)n.prototype[c[f]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,s=new i(u),o=e.document.createTextNode("");s.observe(o,{characterData:!0}),r=function(){o.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||r()}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var a={},s=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function f(e,t,r){n(function(){var n;try{n=t(r)}catch(n){return a.reject(e,n)}n===e?a.reject(e,/* @__PURE__ */new TypeError("Cannot resolve promise with itself")):a.resolve(e,n)})}function h(e){var t=e&&e.then;if(e&&("object"==P(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function i(t){r||(r=!0,a.resolve(e,t))}var s=p(function(){t(i,n)});"error"===s.status&&n(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(i);return this.state!==l?f(r,this.state===o?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)d(e,n);else{e.state=o,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return a.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(/* @__PURE__ */new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var s=new Array(r),o=0,l=-1,c=new this(i);++l<r;)u(e[l],l);return c;function u(e,i){t.resolve(e).then(function(e){s[i]=e,++o!==r||n||(n=!0,a.resolve(c,s))},function(e){n||(n=!0,a.reject(c,e))})}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(/* @__PURE__ */new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,s=-1,o=new this(i);++s<t;)n=e[s],this.resolve(n).then(function(e){r||(r=!0,a.resolve(o,e))},function(e){r||(r=!0,a.reject(o,e))});return o}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),s=e("./zlib/messages"),o=e("./zlib/zstream"),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(s[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,u)))throw new Error(s[r]);this._dict_set=!0}}function u(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}c.prototype.push=function(e,t){var r,s,o=this.strm,c=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(c),o.next_out=0,o.avail_out=c),1!==(r=n.deflate(o,s))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==s||(this.onEnd(0),!(o.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=c,r.deflate=u,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),s=e("./zlib/constants"),o=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(o[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}f.prototype.push=function(e,t){var r,o,l,c,f,h,d=this.strm,p=this.options.chunkSize,m=this.options.dictionary,v=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?d.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(r=n.inflate(d,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(h="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===s.Z_BUF_ERROR&&!0===v&&(r=s.Z_OK,v=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&r!==s.Z_STREAM_END&&(0!==d.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(d.output,d.next_out),c=d.next_out-l,f=a.buf2string(d.output,l),d.next_out=c,d.avail_out=p-c,c&&i.arraySet(d.output,d.output,l,c,0),this.onData(f)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(v=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(d.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=f,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=P(r))throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,s;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)a=e[t],s.set(a,i),i+=a.length;return s}},a={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var s=new n.Buf8(256),o=0;o<256;o++)s[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,r.string2buf=function(e){var t,r,i,a,s,o=e.length,l=0;for(a=0;a<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),a=s=0;s<l;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,a,o=t||e.length,c=new Array(2*o);for(r=n=0;r<o;)if((i=e[r++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&r<o;)i=i<<6|63&e[r++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e,a=e>>>16&65535,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--s;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var a=n,s=i+r;e^=-1;for(var o=i;o<s;o++)e=e>>>8^a[255&(e^t[o])];return-1^e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),a=e("./trees"),s=e("./adler32"),o=e("./crc32"),l=e("./messages"),c=-2,u=258,f=262,h=113;function d(e,t){return e.msg=l[t],t}function p(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function v(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(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,0===t.pending&&(t.pending_out=0))}function g(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function b(e,t){e.pending_buf[e.pending++]=t}function y(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function w(e,t){var r,n,i=e.max_chain_length,a=e.strstart,s=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,c=e.window,h=e.w_mask,d=e.prev,p=e.strstart+u,m=c[a+s-1],v=c[a+s];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(c[(r=t)+s]===v&&c[r+s-1]===m&&c[r]===c[a]&&c[++r]===c[a+1]){a+=2,r++;do{}while(c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&a<p);if(n=u-(p-a),a=p-u,s<n){if(e.match_start=t,o<=(s=n))break;m=c[a+s-1],v=c[a+s]}}}while((t=d[t&h])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead}function _(e){var t,r,n,a,l,c,u,h,d,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-f)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;n=e.head[--t],e.head[t]=m<=n?n-m:0,--r;);for(t=r=m;n=e.prev[--t],e.prev[t]=m<=n?n-m:0,--r;);a+=m}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,h=e.strstart+e.lookahead,p=void 0,(d=a)<(p=c.avail_in)&&(p=d),r=0===p?0:(c.avail_in-=p,i.arraySet(u,c.input,c.next_in,p,h),1===c.state.wrap?c.adler=s(c.adler,u,p,h):2===c.state.wrap&&(c.adler=o(c.adler,u,p,h)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function k(e,t){for(var r,n;;){if(e.lookahead<f){if(_(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-f&&(e.match_length=w(e,r)),e.match_length>=3)if(n=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}function x(e,t){for(var r,n,i;;){if(e.lookahead<f){if(_(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-f&&(e.match_length=w(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(g(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=a._tr_tally(e,0,e.window[e.strstart-1]))&&g(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}function S(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function T(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(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 E(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:h,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):d(e,c)}function C(e){var t=E(e);return 0===t&&function(e){e.window_size=2*e.w_size,m(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function A(e,t,r,n,a,s){if(!e)return c;var o=1;if(-1===t&&(t=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),a<1||9<a||8!==r||n<8||15<n||t<0||9<t||s<0||4<s)return d(e,c);8===n&&(n=9);var l=new T;return(e.state=l).strm=e,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,C(e)}n=[new S(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,g(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(g(e,!1),e.strm.avail_out),1)}),new S(4,4,8,4,k),new S(4,5,16,8,k),new S(4,6,32,32,k),new S(4,4,16,16,x),new S(8,16,32,32,x),new S(8,16,128,128,x),new S(8,32,128,256,x),new S(32,128,258,1024,x),new S(32,258,258,4096,x)],r.deflateInit=function(e,t){return A(e,t,8,15,8,0)},r.deflateInit2=A,r.deflateReset=C,r.deflateResetKeep=E,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},r.deflate=function(e,t){var r,i,s,l;if(!e||!e.state||5<t||t<0)return e?d(e,c):c;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return d(e,0===e.avail_out?-5:c);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,b(i,31),b(i,139),b(i,8),i.gzhead?(b(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),b(i,255&i.gzhead.time),b(i,i.gzhead.time>>8&255),b(i,i.gzhead.time>>16&255),b(i,i.gzhead.time>>24&255),b(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),b(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(b(i,255&i.gzhead.extra.length),b(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=o(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(b(i,0),b(i,0),b(i,0),b(i,0),b(i,0),b(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),b(i,3),i.status=h);else{var f=8+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=h,y(i,f),0!==i.strstart&&(y(i,e.adler>>>16),y(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=o(e.adler,i.pending_buf,i.pending-s,s)),v(e),s=i.pending,i.pending!==i.pending_buf_size));)b(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=o(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=o(e.adler,i.pending_buf,i.pending-s,s)),v(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,b(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=o(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=o(e.adler,i.pending_buf,i.pending-s,s)),v(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,b(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=o(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&v(e),i.pending+2<=i.pending_buf_size&&(b(i,255&e.adler),b(i,e.adler>>8&255),e.adler=0,i.status=h)):i.status=h),0!==i.pending){if(v(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(r)&&4!==t)return d(e,-5);if(666===i.status&&0!==e.avail_in)return d(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var w=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(_(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,s,o=e.window;;){if(e.lookahead<=u){if(_(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=o[i=e.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){s=e.strstart+u;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<s);e.match_length=u-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==w&&4!==w||(i.status=666),1===w||3===w)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===w&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),v(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(b(i,255&e.adler),b(i,e.adler>>8&255),b(i,e.adler>>16&255),b(i,e.adler>>24&255),b(i,255&e.total_in),b(i,e.total_in>>8&255),b(i,e.total_in>>16&255),b(i,e.total_in>>24&255)):(y(i,e.adler>>>16),y(i,65535&e.adler)),v(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==h&&666!==t?d(e,c):(e.state=null,t===h?d(e,-3):0):c},r.deflateSetDictionary=function(e,t){var r,n,a,o,l,u,f,h,d=t.length;if(!e||!e.state)return c;if(2===(o=(r=e.state).wrap)||1===o&&42!==r.status||r.lookahead)return c;for(1===o&&(e.adler=s(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===o&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,d-r.w_size,r.w_size,0),t=h,d=r.w_size),l=e.avail_in,u=e.next_in,f=e.input,e.avail_in=d,e.next_in=0,e.input=t,_(r);r.lookahead>=3;){for(n=r.strstart,a=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--a;);r.strstart=n,r.lookahead=2,_(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=f,e.avail_in=l,r.wrap=o,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,i,a,s,o,l,c,u,f,h,d,p,m,v,g,b,y,w,_,k,x,S=e.state,T=e.next_in,E=e.input;r=T+(e.avail_in-5),n=e.next_out,x=e.output,i=n-(t-e.avail_out),a=n+(e.avail_out-257),s=S.dmax,o=S.wsize,l=S.whave,c=S.wnext,u=S.window,f=S.hold,h=S.bits,d=S.lencode,p=S.distcode,m=(1<<S.lenbits)-1,v=(1<<S.distbits)-1;e:do{h<15&&(f+=E[T++]<<h,h+=8,f+=E[T++]<<h,h+=8),g=d[f&m];t:for(;;){if(f>>>=b=g>>>24,h-=b,0==(b=g>>>16&255))x[n++]=65535&g;else{if(!(16&b)){if(!(64&b)){g=d[(65535&g)+(f&(1<<b)-1)];continue t}if(32&b){S.mode=12;break e}e.msg="invalid literal/length code",S.mode=30;break e}y=65535&g,(b&=15)&&(h<b&&(f+=E[T++]<<h,h+=8),y+=f&(1<<b)-1,f>>>=b,h-=b),h<15&&(f+=E[T++]<<h,h+=8,f+=E[T++]<<h,h+=8),g=p[f&v];r:for(;;){if(f>>>=b=g>>>24,h-=b,!(16&(b=g>>>16&255))){if(!(64&b)){g=p[(65535&g)+(f&(1<<b)-1)];continue r}e.msg="invalid distance code",S.mode=30;break e}if(w=65535&g,h<(b&=15)&&(f+=E[T++]<<h,(h+=8)<b&&(f+=E[T++]<<h,h+=8)),s<(w+=f&(1<<b)-1)){e.msg="invalid distance too far back",S.mode=30;break e}if(f>>>=b,h-=b,(b=n-i)<w){if(l<(b=w-b)&&S.sane){e.msg="invalid distance too far back",S.mode=30;break e}if(k=u,(_=0)===c){if(_+=o-b,b<y){for(y-=b;x[n++]=u[_++],--b;);_=n-w,k=x}}else if(c<b){if(_+=o+c-b,(b-=c)<y){for(y-=b;x[n++]=u[_++],--b;);if(_=0,c<y){for(y-=b=c;x[n++]=u[_++],--b;);_=n-w,k=x}}}else if(_+=c-b,b<y){for(y-=b;x[n++]=u[_++],--b;);_=n-w,k=x}for(;2<y;)x[n++]=k[_++],x[n++]=k[_++],x[n++]=k[_++],y-=3;y&&(x[n++]=k[_++],1<y&&(x[n++]=k[_++]))}else{for(_=n-w;x[n++]=x[_++],x[n++]=x[_++],x[n++]=x[_++],2<(y-=3););y&&(x[n++]=x[_++],1<y&&(x[n++]=x[_++]))}break}}break}}while(T<r&&n<a);T-=y=h>>3,f&=(1<<(h-=y<<3))-1,e.next_in=T,e.next_out=n,e.avail_in=T<r?r-T+5:5-(T-r),e.avail_out=n<a?a-n+257:257-(n-a),S.hold=f,S.bits=h}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),s=e("./inffast"),o=e("./inftrees"),l=-2;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):l}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,f(e)):l}function d(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,h(e))):l}function p(e,t){var r,n;return e?(n=new u,(e.state=n).window=null,0!==(r=d(e,t))&&(e.state=null),r):l}var m,v,g=!0;function b(e){if(g){var t;for(m=new n.Buf32(512),v=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(2,e.lens,0,32,v,0,e.work,{bits:5}),g=!1}e.lencode=m,e.lenbits=9,e.distcode=v,e.distbits=5}function y(e,t,r,i){var a,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(a=s.wsize-s.wnext)&&(a=i),n.arraySet(s.window,t,r-i,a,s.wnext),(i-=a)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}r.inflateReset=h,r.inflateReset2=d,r.inflateResetKeep=f,r.inflateInit=function(e){return p(e,15)},r.inflateInit2=p,r.inflate=function(e,t){var r,u,f,h,d,p,m,v,g,w,_,k,x,S,T,E,C,A,M,O,R,I,N,P,D=0,F=new n.Buf8(4),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(r=e.state).mode&&(r.mode=13),d=e.next_out,f=e.output,m=e.avail_out,h=e.next_in,u=e.input,p=e.avail_in,v=r.hold,g=r.bits,w=p,_=m,I=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;g<16;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(2&r.wrap&&35615===v){F[r.check=0]=255&v,F[1]=v>>>8&255,r.check=a(r.check,F,2,0),g=v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",r.mode=30;break}if(g-=4,R=8+(15&(v>>>=4)),0===r.wbits)r.wbits=R;else if(R>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<R,e.adler=r.check=1,r.mode=512&v?10:12,g=v=0;break;case 2:for(;g<16;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(r.flags=v,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=v>>8&1),512&r.flags&&(F[0]=255&v,F[1]=v>>>8&255,r.check=a(r.check,F,2,0)),g=v=0,r.mode=3;case 3:for(;g<32;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}r.head&&(r.head.time=v),512&r.flags&&(F[0]=255&v,F[1]=v>>>8&255,F[2]=v>>>16&255,F[3]=v>>>24&255,r.check=a(r.check,F,4,0)),g=v=0,r.mode=4;case 4:for(;g<16;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}r.head&&(r.head.xflags=255&v,r.head.os=v>>8),512&r.flags&&(F[0]=255&v,F[1]=v>>>8&255,r.check=a(r.check,F,2,0)),g=v=0,r.mode=5;case 5:if(1024&r.flags){for(;g<16;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}r.length=v,r.head&&(r.head.extra_len=v),512&r.flags&&(F[0]=255&v,F[1]=v>>>8&255,r.check=a(r.check,F,2,0)),g=v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(k=r.length)&&(k=p),k&&(r.head&&(R=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,h,k,R)),512&r.flags&&(r.check=a(r.check,u,k,h)),p-=k,h+=k,r.length-=k),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break e;for(k=0;R=u[h+k++],r.head&&R&&r.length<65536&&(r.head.name+=String.fromCharCode(R)),R&&k<p;);if(512&r.flags&&(r.check=a(r.check,u,k,h)),p-=k,h+=k,R)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break e;for(k=0;R=u[h+k++],r.head&&R&&r.length<65536&&(r.head.comment+=String.fromCharCode(R)),R&&k<p;);if(512&r.flags&&(r.check=a(r.check,u,k,h)),p-=k,h+=k,R)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;g<16;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(v!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}g=v=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;g<32;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}e.adler=r.check=c(v),g=v=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=d,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=g,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){v>>>=7&g,g-=7&g,r.mode=27;break}for(;g<3;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}switch(r.last=1&v,g-=1,3&(v>>>=1)){case 0:r.mode=14;break;case 1:if(b(r),r.mode=20,6!==t)break;v>>>=2,g-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}v>>>=2,g-=2;break;case 14:for(v>>>=7&g,g-=7&g;g<32;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&v,g=v=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(k=r.length){if(p<k&&(k=p),m<k&&(k=m),0===k)break e;n.arraySet(f,u,h,k,d),p-=k,h+=k,m-=k,d+=k,r.length-=k;break}r.mode=12;break;case 17:for(;g<14;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(r.nlen=257+(31&v),v>>>=5,g-=5,r.ndist=1+(31&v),v>>>=5,g-=5,r.ncode=4+(15&v),v>>>=4,g-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;g<3;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}r.lens[j[r.have++]]=7&v,v>>>=3,g-=3}for(;r.have<19;)r.lens[j[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},I=o(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,I){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;E=(D=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,C=65535&D,!((T=D>>>24)<=g);){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(C<16)v>>>=T,g-=T,r.lens[r.have++]=C;else{if(16===C){for(P=T+2;g<P;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(v>>>=T,g-=T,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}R=r.lens[r.have-1],k=3+(3&v),v>>>=2,g-=2}else if(17===C){for(P=T+3;g<P;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}g-=T,R=0,k=3+(7&(v>>>=T)),v>>>=3,g-=3}else{for(P=T+7;g<P;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}g-=T,R=0,k=11+(127&(v>>>=T)),v>>>=7,g-=7}if(r.have+k>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=R}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,N={bits:r.lenbits},I=o(1,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,I){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},I=o(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,I){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=p&&258<=m){e.next_out=d,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=g,s(e,_),d=e.next_out,f=e.output,m=e.avail_out,h=e.next_in,u=e.input,p=e.avail_in,v=r.hold,g=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;E=(D=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,C=65535&D,!((T=D>>>24)<=g);){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(E&&!(240&E)){for(A=T,M=E,O=C;E=(D=r.lencode[O+((v&(1<<A+M)-1)>>A)])>>>16&255,C=65535&D,!(A+(T=D>>>24)<=g);){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}v>>>=A,g-=A,r.back+=A}if(v>>>=T,g-=T,r.back+=T,r.length=C,0===E){r.mode=26;break}if(32&E){r.back=-1,r.mode=12;break}if(64&E){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&E,r.mode=22;case 22:if(r.extra){for(P=r.extra;g<P;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}r.length+=v&(1<<r.extra)-1,v>>>=r.extra,g-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;E=(D=r.distcode[v&(1<<r.distbits)-1])>>>16&255,C=65535&D,!((T=D>>>24)<=g);){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(!(240&E)){for(A=T,M=E,O=C;E=(D=r.distcode[O+((v&(1<<A+M)-1)>>A)])>>>16&255,C=65535&D,!(A+(T=D>>>24)<=g);){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}v>>>=A,g-=A,r.back+=A}if(v>>>=T,g-=T,r.back+=T,64&E){e.msg="invalid distance code",r.mode=30;break}r.offset=C,r.extra=15&E,r.mode=24;case 24:if(r.extra){for(P=r.extra;g<P;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}r.offset+=v&(1<<r.extra)-1,v>>>=r.extra,g-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break e;if(k=_-m,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}x=k>r.wnext?(k-=r.wnext,r.wsize-k):r.wnext-k,k>r.length&&(k=r.length),S=r.window}else S=f,x=d-r.offset,k=r.length;for(m<k&&(k=m),m-=k,r.length-=k;f[d++]=S[x++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;f[d++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;g<32;){if(0===p)break e;p--,v|=u[h++]<<g,g+=8}if(_-=m,e.total_out+=_,r.total+=_,_&&(e.adler=r.check=r.flags?a(r.check,f,_,d-_):i(r.check,f,_,d-_)),_=m,(r.flags?v:c(v))!==r.check){e.msg="incorrect data check",r.mode=30;break}g=v=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;g<32;){if(0===p)break e;p--,v+=u[h++]<<g,g+=8}if(v!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}g=v=0}r.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;default:return l}return e.next_out=d,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=v,r.bits=g,(r.wsize||_!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&y(e,e.output,e.next_out,_-e.avail_out)?(r.mode=31,-4):(w-=e.avail_in,_-=e.avail_out,e.total_in+=w,e.total_out+=_,r.total+=_,r.wrap&&_&&(e.adler=r.check=r.flags?a(r.check,f,_,e.next_out-_):i(r.check,f,_,e.next_out-_)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==w&&0===_||4===t)&&0===I&&(I=-5),I)},r.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,0):l},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?l:11===r.mode&&i(1,t,n,0)!==r.check?-3:y(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):l},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[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],a=[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],s=[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],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,c,u,f,h){var d,p,m,v,g,b,y,w,_,k=h.bits,x=0,S=0,T=0,E=0,C=0,A=0,M=0,O=0,R=0,I=0,N=null,P=0,D=new n.Buf16(16),F=new n.Buf16(16),j=null,L=0;for(x=0;x<=15;x++)D[x]=0;for(S=0;S<l;S++)D[t[r+S]]++;for(C=k,E=15;1<=E&&0===D[E];E--);if(E<C&&(C=E),0===E)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(T=1;T<E&&0===D[T];T++);for(C<T&&(C=T),x=O=1;x<=15;x++)if(O<<=1,(O-=D[x])<0)return-1;if(0<O&&(0===e||1!==E))return-1;for(F[1]=0,x=1;x<15;x++)F[x+1]=F[x]+D[x];for(S=0;S<l;S++)0!==t[r+S]&&(f[F[t[r+S]]++]=S);if(b=0===e?(N=j=f,19):1===e?(N=i,P-=257,j=a,L-=257,256):(N=s,j=o,-1),x=T,g=u,M=S=I=0,m=-1,v=(R=1<<(A=C))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(y=x-M,_=f[S]<b?(w=0,f[S]):f[S]>b?(w=j[L+f[S]],N[P+f[S]]):(w=96,0),d=1<<x-M,T=p=1<<A;c[g+(I>>M)+(p-=d)]=y<<24|w<<16|_,0!==p;);for(d=1<<x-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,S++,0==--D[x]){if(x===E)break;x=t[r+f[S]]}if(C<x&&(I&v)!==m){for(0===M&&(M=C),g+=T,O=1<<(A=x-M);A+M<E&&!((O-=D[A+M])<=0);)A++,O<<=1;if(R+=1<<A,1===e&&852<R||2===e&&592<R)return 1;c[m=I&v]=C<<24|A<<16|g-u}}return 0!==I&&(c[g+I]=x-M<<24|4194304),h.bits=C,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){var n=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var a=256,s=286,o=30,l=15,c=[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],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);i(d);var p=new Array(60);i(p);var m=new Array(512);i(m);var v=new Array(256);i(v);var g=new Array(29);i(g);var b,y,w,_=new Array(o);function k(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?m[e]:m[256+(e>>>7)]}function T(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,T(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function C(e,t,r){E(e,r[2*t],r[2*t+1])}function A(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function M(e,t,r){var n,i,a=new Array(16),s=0;for(n=1;n<=l;n++)a[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=A(a[o]++,o))}}function O(e){var t;for(t=0;t<s;t++)e.dyn_ltree[2*t]=0;for(t=0;t<o;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function R(e){8<e.bi_valid?T(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function I(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function N(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&I(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!I(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function P(e,t,r){var n,i,s,o,l=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===n?C(e,i,t):(C(e,(s=v[i])+a+1,t),0!==(o=c[s])&&E(e,i-=g[s],o),C(e,s=S(--n),r),0!==(o=u[s])&&E(e,n-=_[s],o)),l<e.last_lit;);C(e,256,t)}function D(e,t){var r,n,i,a=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<c;r++)0!==a[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,o&&(e.static_len-=s[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)N(e,a,r);for(i=c;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],N(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,N(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,s,o,c=t.dyn_tree,u=t.max_code,f=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(a=0;a<=l;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)m<(a=c[2*c[2*(n=e.heap[r])+1]+1]+1)&&(a=m,v++),c[2*n+1]=a,u<n||(e.bl_count[a]++,s=0,p<=n&&(s=d[n-p]),o=c[2*n],e.opt_len+=o*(a+s),h&&(e.static_len+=o*(f[2*n+1]+s)));if(0!==v){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(a=m;0!==a;a--)for(n=e.bl_count[a];0!==n;)u<(i=e.heap[--r])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),n--)}}(e,t),M(a,u,e.bl_count)}function F(e,t,r){var n,i,a=-1,s=t[1],o=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++o<l&&i===s||(o<c?e.bl_tree[2*i]+=o:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=i,c=(o=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4))}function j(e,t,r){var n,i,a=-1,s=t[1],o=0,l=7,c=4;for(0===s&&(l=138,c=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++o<l&&i===s)){if(o<c)for(;C(e,i,e.bl_tree),0!=--o;);else 0!==i?(i!==a&&(C(e,i,e.bl_tree),o--),C(e,16,e.bl_tree),E(e,o-3,2)):o<=10?(C(e,17,e.bl_tree),E(e,o-3,3)):(C(e,18,e.bl_tree),E(e,o-11,7));a=i,c=(o=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4)}}i(_);var L=!1;function B(e,t,r,i){E(e,0+(i?1:0),3),function(e,t,r){R(e),T(e,r),T(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}r._tr_init=function(e){L||(function(){var e,t,r,n,i,a=new Array(16);for(n=r=0;n<28;n++)for(g[n]=r,e=0;e<1<<c[n];e++)v[r++]=n;for(v[r-1]=n,n=i=0;n<16;n++)for(_[n]=i,e=0;e<1<<u[n];e++)m[i++]=n;for(i>>=7;n<o;n++)for(_[n]=i<<7,e=0;e<1<<u[n]-7;e++)m[256+i++]=n;for(t=0;t<=l;t++)a[t]=0;for(e=0;e<=143;)d[2*e+1]=8,e++,a[8]++;for(;e<=255;)d[2*e+1]=9,e++,a[9]++;for(;e<=279;)d[2*e+1]=7,e++,a[7]++;for(;e<=287;)d[2*e+1]=8,e++,a[8]++;for(M(d,287,a),e=0;e<o;e++)p[2*e+1]=5,p[2*e]=A(e,5);b=new k(d,c,257,s,l),y=new k(p,u,0,o,l),w=new k(new Array(0),f,0,19,7)}(),L=!0),e.l_desc=new x(e.dyn_ltree,b),e.d_desc=new x(e.dyn_dtree,y),e.bl_desc=new x(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,O(e)},r._tr_stored_block=B,r._tr_flush_block=function(e,t,r,n){var i,s,o=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<a;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),D(e,e.l_desc),D(e,e.d_desc),o=function(e){var t;for(F(e,e.dyn_ltree,e.l_desc.max_code),F(e,e.dyn_dtree,e.d_desc.max_code),D(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*h[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?B(e,t,r,n):4===e.strategy||s===i?(E(e,2+(n?1:0),3),P(e,d,p)):(E(e,4+(n?1:0),3),function(e,t,r,n){var i;for(E(e,t-257,5),E(e,r-1,5),E(e,n-4,4),i=0;i<n;i++)E(e,e.bl_tree[2*h[i]+1],3);j(e,e.dyn_ltree,t-1),j(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),P(e,e.dyn_ltree,e.dyn_dtree)),O(e),n&&R(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(v[r]+a+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){E(e,2,3),C(e,256,d),function(e){16===e.bi_valid?(T(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e){if(!e.setImmediate){var t,r,i,a,s=1,o={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,t="[object process]"==={}.toString.call(e.process)?function(e){n.nextTick(function(){h(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",d,!1):e.attachEvent("onmessage",d),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];return o[s]={callback:e,args:r},t(s),s++},u.clearImmediate=f}function f(e){delete o[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=o[e];if(t){l=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{f(e),l=!1}}}}function d(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,t,r){(function(e){(function(){var r="[object Symbol]",n=/[\\^$.*+?()[\]{}|]/g,i=RegExp(n.source),a="object"==P(e)&&e&&e.Object===Object&&e,s="object"==("undefined"==typeof self?"undefined":P(self))&&self&&self.Object===Object&&self,o=a||s||Function("return this")(),l=Object.prototype.toString,c=o.Symbol,u=c?c.prototype:void 0,f=u?u.toString:void 0;function h(e){if("string"==typeof e)return e;if(function(e){return"symbol"==P(e)||function(e){return!!e&&"object"==P(e)}(e)&&l.call(e)==r}(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}t.exports=function(e){var t;return(e=null==(t=e)?"":h(t))&&i.test(e)?e.replace(n,"\\$&"):e}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],443:[function(e,t,r){(function(e){(function(){var n="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",p="[object Promise]",m="[object RegExp]",v="[object Set]",g="[object String]",b="[object Symbol]",y="[object WeakMap]",w="[object ArrayBuffer]",_="[object DataView]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,S=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[a]=M[s]=M[w]=M[o]=M[_]=M[l]=M[c]=M[u]=M[f]=M[h]=M[d]=M[m]=M[v]=M[g]=M[y]=!1;var O="object"==P(e)&&e&&e.Object===Object&&e,R="object"==("undefined"==typeof self?"undefined":P(self))&&self&&self.Object===Object&&self,I=O||R||Function("return this")(),N="object"==P(r)&&r&&!r.nodeType&&r,D=N&&"object"==P(t)&&t&&!t.nodeType&&t,F=D&&D.exports===N&&O.process,j=function(){try{return F&&F.binding("util")}catch(e){}}(),L=j&&j.isTypedArray;function B(e,t,r,n){for(var i=-1,a=e?e.length:0;++i<a;){var s=e[i];t(n,s,r(s),e)}return n}function z(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function H(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function W(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var V,$,q,X=Array.prototype,G=Function.prototype,Y=Object.prototype,K=I["__core-js_shared__"],Z=(V=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"",J=G.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=I.Symbol,ne=I.Uint8Array,ie=Y.propertyIsEnumerable,ae=X.splice,se=($=Object.keys,q=Object,function(e){return $(q(e))}),oe=He(I,"DataView"),le=He(I,"Map"),ce=He(I,"Promise"),ue=He(I,"Set"),fe=He(I,"WeakMap"),he=He(Object,"create"),de=Ke(oe),pe=Ke(le),me=Ke(ce),ve=Ke(ue),ge=Ke(fe),be=re?re.prototype:void 0,ye=be?be.valueOf:void 0,we=be?be.toString:void 0;function _e(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Se(e){var t=-1,r=e?e.length:0;for(this.__data__=new xe;++t<r;)this.add(e[t])}function Te(e){this.__data__=new ke(e)}function Ee(e,t){var r=nt(e)||rt(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var a in e)!t&&!Q.call(e,a)||i&&("length"==a||Ve(a,n))||r.push(a);return r}function Ce(e,t){for(var r=e.length;r--;)if(tt(e[r][0],t))return r;return-1}function Ae(e,t,r,n){return Re(e,function(e,i,a){t(n,e,r(e),a)}),n}_e.prototype.clear=function(){this.__data__=he?he(null):{}},_e.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_e.prototype.get=function(e){var t=this.__data__;if(he){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},_e.prototype.has=function(e){var t=this.__data__;return he?void 0!==t[e]:Q.call(t,e)},_e.prototype.set=function(e,t){return this.__data__[e]=he&&void 0===t?n:t,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0)&&(r==t.length-1?t.pop():ae.call(t,r,1),!0)},ke.prototype.get=function(e){var t=this.__data__,r=Ce(t,e);return r<0?void 0:t[r][1]},ke.prototype.has=function(e){return Ce(this.__data__,e)>-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new _e,map:new(le||ke),string:new _e}},xe.prototype.delete=function(e){return Ue(this,e).delete(e)},xe.prototype.get=function(e){return Ue(this,e).get(e)},xe.prototype.has=function(e){return Ue(this,e).has(e)},xe.prototype.set=function(e,t){return Ue(this,e).set(e,t),this},Se.prototype.add=Se.prototype.push=function(e){return this.__data__.set(e,n),this},Se.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new ke},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!le||n.length<199)return n.push([e,t]),this;r=this.__data__=new xe(n)}return r.set(e,t),this};var Me,Oe,Re=(Me=function(e,t){return e&&Ie(e,t,ft)},function(e,t){if(null==e)return e;if(!it(e))return Me(e,t);for(var r=e.length,n=Oe?r:-1,i=Object(e);(Oe?n--:++n<r)&&!1!==t(i[n],n,i););return e}),Ie=function(e){return function(t,r,n){for(var i=-1,a=Object(t),s=n(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===r(a[l],l,a))break}return t}}();function Ne(e,t){for(var r=0,n=(t=$e(t,e)?[t]:Be(t)).length;null!=e&&r<n;)e=e[Ye(t[r++])];return r&&r==n?e:void 0}function Pe(e,t){return null!=e&&t in Object(e)}function De(e,t,r,n,i){return e===t||(null==e||null==t||!ot(e)&&!lt(t)?e!=e&&t!=t:function(e,t,r,n,i,u){var p=nt(e),y=nt(t),k=s,x=s;p||(k=(k=We(e))==a?d:k);y||(x=(x=We(t))==a?d:x);var S=k==d&&!U(e),T=x==d&&!U(t),E=k==x;if(E&&!S)return u||(u=new Te),p||ut(e)?ze(e,t,r,n,i,u):function(e,t,r,n,i,a,s){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!n(new ne(e),new ne(t)));case o:case l:case h:return tt(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case f:var u=H;case v:var d=2&a;if(u||(u=W),e.size!=t.size&&!d)return!1;var p=s.get(e);if(p)return p==t;a|=1,s.set(e,t);var y=ze(u(e),u(t),n,i,a,s);return s.delete(e),y;case b:if(ye)return ye.call(e)==ye.call(t)}return!1}(e,t,k,r,n,i,u);if(!(2&i)){var C=S&&Q.call(e,"__wrapped__"),A=T&&Q.call(t,"__wrapped__");if(C||A){var M=C?e.value():e,O=A?t.value():t;return u||(u=new Te),r(M,O,n,i,u)}}return!!E&&(u||(u=new Te),function(e,t,r,n,i,a){var s=2&i,o=ft(e),l=o.length;if(l!=ft(t).length&&!s)return!1;var c=l;for(;c--;){var u=o[c];if(!(s?u in t:Q.call(t,u)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var h=!0;a.set(e,t),a.set(t,e);var d=s;for(;++c<l;){var p=e[u=o[c]],m=t[u];if(n)var v=s?n(m,p,u,t,e,a):n(p,m,u,e,t,a);if(!(void 0===v?p===m||r(p,m,n,i,a):v)){h=!1;break}d||(d="constructor"==u)}if(h&&!d){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,i,u))}(e,t,De,r,n,i))}function Fe(e){return!(!ot(e)||function(e){return!!Z&&Z in e}(e))&&(at(e)||U(e)?te:C).test(Ke(e))}function je(e){return"function"==typeof e?e:null==e?ht:"object"==P(e)?nt(e)?(n=e[0],i=e[1],$e(n)&&qe(i)?Xe(Ye(n),i):function(e){var t=function(e,t,r){var n=null==e?void 0:Ne(e,t);return void 0===n?r:n}(e,n);return void 0===t&&t===i?function(e,t){return null!=e&&function(e,t,r){t=$e(t,e)?[t]:Be(t);for(var n,i=-1,a=t.length;++i<a;){var s=Ye(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||!!(a=e?e.length:0)&&st(a)&&Ve(s,a)&&(nt(e)||rt(e))}(e,t,Pe)}(e,n):De(i,t,void 0,3)}):(r=function(e){for(var t=ft(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,qe(i)]}return t}(t=e),1==r.length&&r[0][2]?Xe(r[0][0],r[0][1]):function(e){return e===t||function(e,t,r,n){var i=r.length,a=i,s=!n;if(null==e)return!a;for(e=Object(e);i--;){var o=r[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<a;){var l=(o=r[i])[0],c=e[l],u=o[1];if(s&&o[2]){if(void 0===c&&!(l in e))return!1}else{var f=new Te;if(n)var h=n(c,u,l,e,t,f);if(!(void 0===h?De(u,c,n,3,f):h))return!1}}return!0}(e,t,r)}):function(e){return $e(e)?(t=Ye(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Ne(t,e)}}(e);var t}(e);var t,r,n,i}function Le(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||Y))return se(e);var t,r,n=[];for(var i in Object(e))Q.call(e,i)&&"constructor"!=i&&n.push(i);return n}function Be(e){return nt(e)?e:Ge(e)}function ze(e,t,r,n,i,a){var s=2&i,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,f=!0,h=1&i?new Se:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var d=e[u],p=t[u];if(n)var m=s?n(p,d,u,t,e,a):n(d,p,u,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!z(t,function(e,t){if(!h.has(t)&&(d===e||r(d,e,n,i,a)))return h.add(t)})){f=!1;break}}else if(d!==p&&!r(d,p,n,i,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function Ue(e,t){var r,n,i=e.__data__;return("string"==(n=P(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function He(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(r)?r:void 0}var We=function(e){return ee.call(e)};function Ve(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function $e(e,t){if(nt(e))return!1;var r=P(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ct(e))||(x.test(e)||!k.test(e)||null!=t&&e in Object(t))}function qe(e){return e==e&&!ot(e)}function Xe(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}(oe&&We(new oe(/* @__PURE__ */new ArrayBuffer(1)))!=_||le&&We(new le)!=f||ce&&We(ce.resolve())!=p||ue&&We(new ue)!=v||fe&&We(new fe)!=y)&&(We=function(e){var t=ee.call(e),r=t==d?e.constructor:void 0,n=r?Ke(r):void 0;if(n)switch(n){case de:return _;case pe:return f;case me:return p;case ve:return v;case ge:return y}return t});var Ge=et(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ct(e))return we?we.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return S.test(e)&&r.push(""),e.replace(T,function(e,t,n,i){r.push(n?i.replace(E,"$1"):t||e)}),r});function Ye(e){if("string"==typeof e||ct(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ke(e){if(null!=e){try{return J.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ze,Je,Qe=(Ze=function(e,t,r){Q.call(e,r)?e[r].push(t):e[r]=[t]},function(e,t){var r=nt(e)?B:Ae,n=Je?Je():{};return r(e,Ze,je(t),n)});function et(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s),s};return r.cache=new(et.Cache||xe),r}function tt(e,t){return e===t||e!=e&&t!=t}function rt(e){return function(e){return lt(e)&&it(e)}(e)&&Q.call(e,"callee")&&(!ie.call(e,"callee")||ee.call(e)==a)}et.Cache=xe;var nt=Array.isArray;function it(e){return null!=e&&st(e.length)&&!at(e)}function at(e){var t=ot(e)?ee.call(e):"";return t==u||"[object GeneratorFunction]"==t}function st(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function ot(e){var t=P(e);return!!e&&("object"==t||"function"==t)}function lt(e){return!!e&&"object"==P(e)}function ct(e){return"symbol"==P(e)||lt(e)&&ee.call(e)==b}var ut=L?function(e){return function(t){return e(t)}}(L):function(e){return lt(e)&&st(e.length)&&!!M[ee.call(e)]};function ft(e){return it(e)?Ee(e):Le(e)}function ht(e){return e}t.exports=Qe}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,r){var n=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==P(e)}(e)&&"[object Boolean]"==n.call(e)}},{}],445:[function(e,t,r){(function(e){(function(){var n="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",p="[object Promise]",m="[object RegExp]",v="[object Set]",g="[object String]",b="[object Symbol]",y="[object WeakMap]",w="[object ArrayBuffer]",_="[object DataView]",k=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[a]=S[s]=S[w]=S[o]=S[_]=S[l]=S[c]=S[u]=S[f]=S[h]=S[d]=S[m]=S[v]=S[g]=S[y]=!1;var T="object"==P(e)&&e&&e.Object===Object&&e,E="object"==("undefined"==typeof self?"undefined":P(self))&&self&&self.Object===Object&&self,C=T||E||Function("return this")(),A="object"==P(r)&&r&&!r.nodeType&&r,M=A&&"object"==P(t)&&t&&!t.nodeType&&t,O=M&&M.exports===A,R=O&&T.process,I=function(){try{return R&&R.binding&&R.binding("util")}catch(e){}}(),N=I&&I.isTypedArray;function D(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function F(e,t){return e.has(t)}function j(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function L(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var B,z,U,H=Array.prototype,W=Function.prototype,V=Object.prototype,$=C["__core-js_shared__"],q=W.toString,X=V.hasOwnProperty,G=(B=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",Y=V.toString,K=RegExp("^"+q.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=O?C.Buffer:void 0,J=C.Symbol,Q=C.Uint8Array,ee=V.propertyIsEnumerable,te=H.splice,re=J?J.toStringTag:void 0,ne=Object.getOwnPropertySymbols,ie=Z?Z.isBuffer:void 0,ae=(z=Object.keys,U=Object,function(e){return z(U(e))}),se=Pe(C,"DataView"),oe=Pe(C,"Map"),le=Pe(C,"Promise"),ce=Pe(C,"Set"),ue=Pe(C,"WeakMap"),fe=Pe(Object,"create"),he=Le(se),de=Le(oe),pe=Le(le),me=Le(ce),ve=Le(ue),ge=J?J.prototype:void 0,be=ge?ge.valueOf:void 0;function ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function we(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _e(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new _e;++t<r;)this.add(e[t])}function xe(e){this.size=(this.__data__=new we(e)).size}function Se(e,t){var r=Ue(e),n=!r&&ze(e),i=!r&&!n&&He(e),a=!r&&!n&&!i&&Xe(e),s=r||n||i||a,o=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=o.length;for(var c in e)!t&&!X.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||je(c,l))||o.push(c);return o}function Te(e,t){for(var r=e.length;r--;)if(Be(e[r][0],t))return r;return-1}function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":re&&re in Object(e)?function(e){var t=X.call(e,re),r=e[re];try{e[re]=void 0;var n=!0}catch(a){}var i=Y.call(e);n&&(t?e[re]=r:delete e[re]);return i}(e):function(e){return Y.call(e)}(e)}function Ce(e){return qe(e)&&Ee(e)==a}function Ae(e,t,r,n,i){return e===t||(null==e||null==t||!qe(e)&&!qe(t)?e!=e&&t!=t:function(e,t,r,n,i,u){var p=Ue(e),y=Ue(t),k=p?s:Fe(e),x=y?s:Fe(t),S=(k=k==a?d:k)==d,T=(x=x==a?d:x)==d,E=k==x;if(E&&He(e)){if(!He(t))return!1;p=!0,S=!1}if(E&&!S)return u||(u=new xe),p||Xe(e)?Re(e,t,r,n,i,u):function(e,t,r,n,i,a,s){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!a(new Q(e),new Q(t)));case o:case l:case h:return Be(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case f:var u=j;case v:var d=1&n;if(u||(u=L),e.size!=t.size&&!d)return!1;var p=s.get(e);if(p)return p==t;n|=2,s.set(e,t);var y=Re(u(e),u(t),n,i,a,s);return s.delete(e),y;case b:if(be)return be.call(e)==be.call(t)}return!1}(e,t,k,r,n,i,u);if(!(1&r)){var C=S&&X.call(e,"__wrapped__"),A=T&&X.call(t,"__wrapped__");if(C||A){var M=C?e.value():e,O=A?t.value():t;return u||(u=new xe),i(M,O,r,n,u)}}return!!E&&(u||(u=new xe),function(e,t,r,n,i,a){var s=1&r,o=Ie(e),l=o.length;if(l!=Ie(t).length&&!s)return!1;var c=l;for(;c--;){var u=o[c];if(!(s?u in t:X.call(t,u)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var h=!0;a.set(e,t),a.set(t,e);var d=s;for(;++c<l;){var p=e[u=o[c]],m=t[u];if(n)var v=s?n(m,p,u,t,e,a):n(p,m,u,e,t,a);if(!(void 0===v?p===m||i(p,m,r,n,a):v)){h=!1;break}d||(d="constructor"==u)}if(h&&!d){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,i,u))}(e,t,r,n,Ae,i))}function Me(e){return!(!$e(e)||function(e){return!!G&&G in e}(e))&&(We(e)?K:k).test(Le(e))}function Oe(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||V))return ae(e);var t,r,n=[];for(var i in Object(e))X.call(e,i)&&"constructor"!=i&&n.push(i);return n}function Re(e,t,r,n,i,a){var s=1&r,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,f=!0,h=2&r?new ke:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var d=e[u],p=t[u];if(n)var m=s?n(p,d,u,t,e,a):n(d,p,u,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!D(t,function(e,t){if(!F(h,t)&&(d===e||i(d,e,r,n,a)))return h.push(t)})){f=!1;break}}else if(d!==p&&!i(d,p,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function Ie(e){return function(e,t,r){var n=t(e);return Ue(e)?n:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(n,r(e))}(e,Ge,De)}function Ne(e,t){var r,n,i=e.__data__;return("string"==(n=P(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Pe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(r)?r:void 0}ye.prototype.clear=function(){this.__data__=fe?fe(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(fe){var r=t[e];return r===n?void 0:r}return X.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return fe?void 0!==t[e]:X.call(t,e)},ye.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fe&&void 0===t?n:t,this},we.prototype.clear=function(){this.__data__=[],this.size=0},we.prototype.delete=function(e){var t=this.__data__,r=Te(t,e);return!(r<0)&&(r==t.length-1?t.pop():te.call(t,r,1),--this.size,!0)},we.prototype.get=function(e){var t=this.__data__,r=Te(t,e);return r<0?void 0:t[r][1]},we.prototype.has=function(e){return Te(this.__data__,e)>-1},we.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},_e.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(oe||we),string:new ye}},_e.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},_e.prototype.get=function(e){return Ne(this,e).get(e)},_e.prototype.has=function(e){return Ne(this,e).has(e)},_e.prototype.set=function(e,t){var r=Ne(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ke.prototype.add=ke.prototype.push=function(e){return this.__data__.set(e,n),this},ke.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new we,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!oe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new _e(n)}return r.set(e,t),this.size=r.size,this};var De=ne?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}(ne(e),function(t){return ee.call(e,t)}))}:function(){return[]},Fe=Ee;function je(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){if(null!=e){try{return q.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Be(e,t){return e===t||e!=e&&t!=t}(se&&Fe(new se(/* @__PURE__ */new ArrayBuffer(1)))!=_||oe&&Fe(new oe)!=f||le&&Fe(le.resolve())!=p||ce&&Fe(new ce)!=v||ue&&Fe(new ue)!=y)&&(Fe=function(e){var t=Ee(e),r=t==d?e.constructor:void 0,n=r?Le(r):"";if(n)switch(n){case he:return _;case de:return f;case pe:return p;case me:return v;case ve:return y}return t});var ze=Ce(function(){return arguments}())?Ce:function(e){return qe(e)&&X.call(e,"callee")&&!ee.call(e,"callee")},Ue=Array.isArray;var He=ie||function(){return!1};function We(e){if(!$e(e))return!1;var t=Ee(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function $e(e){var t=P(e);return null!=e&&("object"==t||"function"==t)}function qe(e){return null!=e&&"object"==P(e)}var Xe=N?function(e){return function(t){return e(t)}}(N):function(e){return qe(e)&&Ve(e.length)&&!!S[Ee(e)]};function Ge(e){return null!=(t=e)&&Ve(t.length)&&!We(t)?Se(e):Oe(e);var t}t.exports=function(e,t){return Ae(e,t)}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],446:[function(e,t,r){(function(e){(function(){var r="object"==P(e)&&e&&e.Object===Object&&e,n="object"==("undefined"==typeof self?"undefined":P(self))&&self&&self.Object===Object&&self,i=r||n||Function("return this")(),a=Object.prototype,s=a.hasOwnProperty,o=a.toString,l=i.Symbol,c=l?l.toStringTag:void 0;function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=s.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(a){}var i=o.call(e);n&&(t?e[c]=r:delete e[c]);return i}(e):function(e){return o.call(e)}(e)}t.exports=function(e){if(!function(e){var t=P(e);return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=u(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],447:[function(e,t,r){t.exports=function(e){return null==e}},{}],448:[function(e,t,r){t.exports=function(e){return void 0===e}},{}],449:[function(e,t,r){(function(e){(function(){var r="__lodash_hash_undefined__",n=1/0,i="[object Function]",a="[object GeneratorFunction]",s=/^\[object .+?Constructor\]$/,o="object"==P(e)&&e&&e.Object===Object&&e,l="object"==("undefined"==typeof self?"undefined":P(self))&&self&&self.Object===Object&&self,c=o||l||Function("return this")();function u(e,t){return!(!e||!e.length)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var i=e.length,a=r+(n?1:-1);for(;n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}(e,h,r);var n=r-1,i=e.length;for(;++n<i;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function f(e,t,r){for(var n=-1,i=e?e.length:0;++n<i;)if(r(t,e[n]))return!0;return!1}function h(e){return e!=e}function d(e,t){return e.has(t)}function p(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var m,v=Array.prototype,g=Function.prototype,b=Object.prototype,y=c["__core-js_shared__"],w=(m=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",_=g.toString,k=b.hasOwnProperty,x=b.toString,S=RegExp("^"+_.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=v.splice,E=L(c,"Map"),C=L(c,"Set"),A=L(Object,"create");function M(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function O(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function R(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function I(e){var t=-1,r=e?e.length:0;for(this.__data__=new R;++t<r;)this.add(e[t])}function N(e,t){for(var r=e.length;r--;)if(B(e[r][0],t))return r;return-1}function D(e){return!(!z(e)||(t=e,w&&w in t))&&(function(e){var t=z(e)?x.call(e):"";return t==i||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}(e)?S:s).test(function(e){if(null!=e){try{return _.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}M.prototype.clear=function(){this.__data__=A?A(null):{}},M.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},M.prototype.get=function(e){var t=this.__data__;if(A){var n=t[e];return n===r?void 0:n}return k.call(t,e)?t[e]:void 0},M.prototype.has=function(e){var t=this.__data__;return A?void 0!==t[e]:k.call(t,e)},M.prototype.set=function(e,t){return this.__data__[e]=A&&void 0===t?r:t,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(e){var t=this.__data__,r=N(t,e);return!(r<0)&&(r==t.length-1?t.pop():T.call(t,r,1),!0)},O.prototype.get=function(e){var t=this.__data__,r=N(t,e);return r<0?void 0:t[r][1]},O.prototype.has=function(e){return N(this.__data__,e)>-1},O.prototype.set=function(e,t){var r=this.__data__,n=N(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},R.prototype.clear=function(){this.__data__={hash:new M,map:new(E||O),string:new M}},R.prototype.delete=function(e){return j(this,e).delete(e)},R.prototype.get=function(e){return j(this,e).get(e)},R.prototype.has=function(e){return j(this,e).has(e)},R.prototype.set=function(e,t){return j(this,e).set(e,t),this},I.prototype.add=I.prototype.push=function(e){return this.__data__.set(e,r),this},I.prototype.has=function(e){return this.__data__.has(e)};var F=C&&1/p(new C([,-0]))[1]==n?function(e){return new C(e)}:function(){};function j(e,t){var r,n,i=e.__data__;return("string"==(n=P(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function L(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return D(r)?r:void 0}function B(e,t){return e===t||e!=e&&t!=t}function z(e){var t=P(e);return!!e&&("object"==t||"function"==t)}t.exports=function(e){return e&&e.length?function(e,t,r){var n=-1,i=u,a=e.length,s=!0,o=[],l=o;if(r)s=!1,i=f;else if(a>=200){var c=t?null:F(e);if(c)return p(c);s=!1,i=d,l=new I}else l=t?[]:o;e:for(;++n<a;){var h=e[n],m=t?t(h):h;if(h=r||0!==h?h:0,s&&m==m){for(var v=l.length;v--;)if(l[v]===m)continue e;t&&l.push(m),o.push(h)}else i(l,m,r)||(l!==o&&l.push(m),o.push(h))}return o}(e):[]}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],450:[function(e,t,r){var n=e("inherits"),i=e("hash-base"),a=e("safe-buffer").Buffer,s=new Array(16);function o(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,a,s){return l(e+(t&r|~t&n)+i+a|0,s)+t|0}function u(e,t,r,n,i,a,s){return l(e+(t&n|r&~n)+i+a|0,s)+t|0}function f(e,t,r,n,i,a,s){return l(e+(t^r^n)+i+a|0,s)+t|0}function h(e,t,r,n,i,a,s){return l(e+(r^(t|~n))+i+a|0,s)+t|0}n(o,i),o.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,a=this._d;r=c(r,n,i,a,e[0],3614090360,7),a=c(a,r,n,i,e[1],3905402710,12),i=c(i,a,r,n,e[2],606105819,17),n=c(n,i,a,r,e[3],3250441966,22),r=c(r,n,i,a,e[4],4118548399,7),a=c(a,r,n,i,e[5],1200080426,12),i=c(i,a,r,n,e[6],2821735955,17),n=c(n,i,a,r,e[7],4249261313,22),r=c(r,n,i,a,e[8],1770035416,7),a=c(a,r,n,i,e[9],2336552879,12),i=c(i,a,r,n,e[10],4294925233,17),n=c(n,i,a,r,e[11],2304563134,22),r=c(r,n,i,a,e[12],1804603682,7),a=c(a,r,n,i,e[13],4254626195,12),i=c(i,a,r,n,e[14],2792965006,17),r=u(r,n=c(n,i,a,r,e[15],1236535329,22),i,a,e[1],4129170786,5),a=u(a,r,n,i,e[6],3225465664,9),i=u(i,a,r,n,e[11],643717713,14),n=u(n,i,a,r,e[0],3921069994,20),r=u(r,n,i,a,e[5],3593408605,5),a=u(a,r,n,i,e[10],38016083,9),i=u(i,a,r,n,e[15],3634488961,14),n=u(n,i,a,r,e[4],3889429448,20),r=u(r,n,i,a,e[9],568446438,5),a=u(a,r,n,i,e[14],3275163606,9),i=u(i,a,r,n,e[3],4107603335,14),n=u(n,i,a,r,e[8],1163531501,20),r=u(r,n,i,a,e[13],2850285829,5),a=u(a,r,n,i,e[2],4243563512,9),i=u(i,a,r,n,e[7],1735328473,14),r=f(r,n=u(n,i,a,r,e[12],2368359562,20),i,a,e[5],4294588738,4),a=f(a,r,n,i,e[8],2272392833,11),i=f(i,a,r,n,e[11],1839030562,16),n=f(n,i,a,r,e[14],4259657740,23),r=f(r,n,i,a,e[1],2763975236,4),a=f(a,r,n,i,e[4],1272893353,11),i=f(i,a,r,n,e[7],4139469664,16),n=f(n,i,a,r,e[10],3200236656,23),r=f(r,n,i,a,e[13],681279174,4),a=f(a,r,n,i,e[0],3936430074,11),i=f(i,a,r,n,e[3],3572445317,16),n=f(n,i,a,r,e[6],76029189,23),r=f(r,n,i,a,e[9],3654602809,4),a=f(a,r,n,i,e[12],3873151461,11),i=f(i,a,r,n,e[15],530742520,16),r=h(r,n=f(n,i,a,r,e[2],3299628645,23),i,a,e[0],4096336452,6),a=h(a,r,n,i,e[7],1126891415,10),i=h(i,a,r,n,e[14],2878612391,15),n=h(n,i,a,r,e[5],4237533241,21),r=h(r,n,i,a,e[12],1700485571,6),a=h(a,r,n,i,e[3],2399980690,10),i=h(i,a,r,n,e[10],4293915773,15),n=h(n,i,a,r,e[1],2240044497,21),r=h(r,n,i,a,e[8],1873313359,6),a=h(a,r,n,i,e[15],4264355552,10),i=h(i,a,r,n,e[6],2734768916,15),n=h(n,i,a,r,e[13],1309151649,21),r=h(r,n,i,a,e[4],4149444226,6),a=h(a,r,n,i,e[11],3174756917,10),i=h(i,a,r,n,e[2],718787259,15),n=h(n,i,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=o},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,r){var n=e("bn.js"),i=e("brorand");function a(e){this.rand=e||new i.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var i=e.bitLength(),a=n.mont(e),s=new n(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var o=e.subn(1),l=0;!o.testn(l);l++);for(var c=e.shrn(l),u=o.toRed(a);t>0;t--){var f=this._randrange(new n(2),o);r&&r(f);var h=f.toRed(a).redPow(c);if(0!==h.cmp(s)&&0!==h.cmp(u)){for(var d=1;d<l;d++){if(0===(h=h.redSqr()).cmp(s))return!1;if(0===h.cmp(u))break}if(d===l)return!1}}return!0},a.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),a=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),o=0;!s.testn(o);o++);for(var l=e.shrn(o),c=s.toRed(i);t>0;t--){var u=this._randrange(new n(2),s),f=e.gcd(u);if(0!==f.cmpn(1))return f;var h=u.toRed(i).redPow(l);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var d=1;d<o;d++){if(0===(h=h.redSqr()).cmp(a))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(c))break}if(d===o)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],453:[function(e,t,r){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],454:[function(e,t,r){var n=r;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),a=i>>8,s=255&i;a?r.push(a,s):r.push(s)}return r},n.zero2=i,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}},{}],455:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,r){var n=e("asn1.js");r.certificate=e("./certificate"),r.RSAPrivateKey=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),r.RSAPublicKey=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),r.PublicKey=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())});var i=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});r.PrivateKey=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())}),r.EncryptedPrivateKey=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),r.DSAPrivateKey=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),r.DSAparam=n.define("DSAparam",function(){this.int()}),r.ECPrivateKey=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(a),this.key("publicKey").optional().explicit(1).bitstr())});var a=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,t,r){var n=e("asn1.js"),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),l=n.define("RelativeDistinguishedName",function(){this.setof(a)}),c=n.define("RDNSequence",function(){this.seqof(l)}),u=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())});t.exports=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())})},{"asn1.js":170}],458:[function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=e("evp_bytestokey"),o=e("browserify-aes"),l=e("safe-buffer").Buffer;t.exports=function(e,t){var r,c=e.toString(),u=c.match(n);if(u){var f="aes"+u[1],h=l.from(u[2],"hex"),d=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=s(t,h.slice(0,8),parseInt(u[1],10)).key,m=[],v=o.createDecipheriv(f,p,h);m.push(v.update(d)),m.push(v.final()),r=l.concat(m)}else{var g=c.match(a);r=l.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,r){var n=e("./asn1"),i=e("./aesid.json"),a=e("./fixProc"),s=e("browserify-aes"),o=e("pbkdf2"),l=e("safe-buffer").Buffer;function c(e){var t;"object"!==P(e)||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var r,c,u=a(e,t),f=u.tag,h=u.data;switch(f){case"CERTIFICATE":c=n.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(h,"der")),r=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,f=parseInt(a.split("-")[1],10)/8,h=o.pbkdf2Sync(t,r,n,f,"sha1"),d=s.createDecipheriv(a,h,c),p=[];return p.push(d.update(u)),p.push(d.final()),l.concat(p)}(h=n.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(r=(c=n.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=n.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=c,c.signature=n.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,r){r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,t,r){(function(r){(function(){var n,i,a=e("safe-buffer").Buffer,s=e("./precondition"),o=e("./default-encoding"),l=e("./sync"),c=e("./to-buffer"),u=r.crypto&&r.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function d(){return i||(i=r.process&&r.process.nextTick?r.process.nextTick:r.queueMicrotask?r.queueMicrotask:r.setImmediate?r.setImmediate:r.setTimeout)}function p(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return a.from(e)})}t.exports=function(e,t,i,m,v,g){"function"==typeof v&&(g=v,v=void 0);var b=f[(v=v||"sha1").toLowerCase()];if(b&&"function"==typeof r.Promise){if(s(i,m),e=c(e,o,"Password"),t=c(t,o,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){d()(function(){t(null,e)})},function(e){d()(function(){t(e)})})}(function(e){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=p(n=n||a.alloc(8),n,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t}(b).then(function(r){return r?p(e,t,i,m,b):l(e,t,i,m,v)}),g)}else d()(function(){var r;try{r=l(e,t,i,m,v)}catch(n){return g(n)}g(null,r)})}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,t,r){(function(e,r){(function(){var n;n=r.process&&r.process.browser?"utf-8":r.process&&r.process.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467}],463:[function(e,t,r){var n=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,r){var n=e("create-hash/md5"),i=e("ripemd160"),a=e("sha.js"),s=e("safe-buffer").Buffer,o=e("./precondition"),l=e("./default-encoding"),c=e("./to-buffer"),u=s.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var o=function(e){function t(t){return a(e).update(t).digest()}function r(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?r:"md5"===e?n:t}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=o(t):t.length<l&&(t=s.concat([t,u],l));for(var c=s.allocUnsafe(l+f[e]),h=s.allocUnsafe(l+f[e]),d=0;d<l;d++)c[d]=54^t[d],h[d]=92^t[d];var p=s.allocUnsafe(l+r+4);c.copy(p,0,0,l),this.ipad1=p,this.ipad2=c,this.opad=h,this.alg=e,this.blocksize=l,this.hash=o,this.size=f[e]}h.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,n,i){o(r,n);var a=new h(i=i||"sha1",e=c(e,l,"Password"),(t=c(t,l,"Salt")).length),u=s.allocUnsafe(n),d=s.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var p=0,m=f[i],v=Math.ceil(n/m),g=1;g<=v;g++){d.writeUInt32BE(g,t.length);for(var b=a.run(d,a.ipad1),y=b,w=1;w<r;w++){y=a.run(y,a.ipad2);for(var _=0;_<m;_++)b[_]^=y[_]}b.copy(u,p),p+=m}return u}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,r){var n=e("safe-buffer").Buffer;t.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,r){(function(e){(function(){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,s,o=arguments.length;switch(o){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,r)});case 3:return e.nextTick(function(){t.call(null,r,n)});case 4:return e.nextTick(function(){t.call(null,r,n,i)});default:for(a=new Array(o-1),s=0;s<a.length;)a[s++]=arguments[s];return e.nextTick(function(){t.apply(null,a)})}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,t,r){var n,i,a=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var c,u=[],f=!1,h=-1;function d(){f&&c&&(f=!1,c.length?u=c.concat(u):h=-1,u.length&&p())}function p(){if(!f){var e=l(d);f=!0;for(var t=u.length;t;){for(c=u,u=[];++h<t;)c&&c[h].run();h=-1,t=u.length}c=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new m(e,t)),1!==u.length||f||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],468:[function(e,t,r){r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,r){var n=e("create-hash"),i=e("safe-buffer").Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var r,s=i.alloc(0),o=0;s.length<t;)r=a(o++),s=i.concat([s,n("sha1").update(e).update(r).digest()]);return s.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],471:[function(e,t,r){var n=e("parse-asn1"),i=e("./mgf"),a=e("./xor"),s=e("bn.js"),o=e("browserify-rsa"),l=e("create-hash"),c=e("./withPublic"),u=e("safe-buffer").Buffer;t.exports=function(e,t,r){var f;f=e.padding?e.padding:r?1:4;var h,d=n(e),p=d.modulus.byteLength();if(t.length>p||new s(t).cmp(d.modulus)>=0)throw new Error("decryption error");h=r?c(new s(t),d):o(t,d);var m=u.alloc(p-h.length);if(h=u.concat([m,h],p),4===f)return function(e,t){var r=e.modulus.byteLength(),n=l("sha1").update(u.alloc(0)).digest(),s=n.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,s+1),c=t.slice(s+1),f=a(c,i(a(o,i(c,s)),r-s-1));if(function(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,f.slice(0,s)))throw new Error("decryption error");var h=s;for(;0===f[h];)h++;if(1!==f[h++])throw new Error("decryption error");return f.slice(h)}(d,h);if(1===f)return function(e,t,r){var n=t.slice(0,2),i=2,a=0;for(;0!==t[i++];)if(i>=t.length){a++;break}var s=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&a++;s.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(i)}(0,h,r);if(3===f)return h;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,r){var n=e("parse-asn1"),i=e("randombytes"),a=e("create-hash"),s=e("./mgf"),o=e("./xor"),l=e("bn.js"),c=e("./withPublic"),u=e("browserify-rsa"),f=e("safe-buffer").Buffer;t.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var d,p=n(e);if(4===h)d=function(e,t){var r=e.modulus.byteLength(),n=t.length,c=a("sha1").update(f.alloc(0)).digest(),u=c.length,h=2*u;if(n>r-h-2)throw new Error("message too long");var d=f.alloc(r-n-h-2),p=r-u-1,m=i(u),v=o(f.concat([c,d,f.alloc(1,1),t],p),s(m,p)),g=o(m,s(v,u));return new l(f.concat([f.alloc(1),g,v],r))}(p,t);else if(1===h)d=function(e,t,r){var n,a=t.length,s=e.modulus.byteLength();if(a>s-11)throw new Error("message too long");n=r?f.alloc(s-a-3,255):function(e){var t,r=f.allocUnsafe(e),n=0,a=i(2*e),s=0;for(;n<e;)s===a.length&&(a=i(2*e),s=0),(t=a[s++])&&(r[n++]=t);return r}(s-a-3);return new l(f.concat([f.from([0,r?1:2]),n,f.alloc(1),t],s))}(p,t,r);else{if(3!==h)throw new Error("unknown padding");if((d=new l(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?u(d,p):c(d,p)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,r){var n=e("bn.js"),i=e("safe-buffer").Buffer;t.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,r){t.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},{}],475:[function(e,t,r){(function(r,n){(function(){var i=65536;var a=e("safe-buffer").Buffer,s=n.crypto||n.msCrypto;s&&s.getRandomValues?t.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=a.allocUnsafe(e);if(e>0)if(e>i)for(var o=0;o<e;o+=i)s.getRandomValues(n.slice(o,o+i));else s.getRandomValues(n);return"function"==typeof t?r.nextTick(function(){t(null,n)}):n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,t,r){(function(t,n){(function(){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=e("safe-buffer"),s=e("randombytes"),o=a.Buffer,l=a.kMaxLength,c=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function h(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>l)throw new RangeError("buffer too small")}function d(e,r,n,i){if(t.browser){var a=e.buffer,o=new Uint8Array(a,r,n);return c.getRandomValues(o),i?void t.nextTick(function(){i(null,e)}):e}if(!i)return s(n).copy(e,r),e;s(n,function(t,n){if(t)return i(t);n.copy(e,r),i(null,e)})}c&&c.getRandomValues||!t.browser?(r.randomFill=function(e,t,r,i){if(!(o.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return f(t,e.length),h(r,t,e.length),d(e,t,r,i)},r.randomFillSync=function(e,t,r){void 0===t&&(t=0);if(!(o.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(t,e.length),void 0===r&&(r=e.length-t);return h(r,t,e.length),d(e,t,r)}):(r.randomFill=i,r.randomFillSync=i)}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,r){var n={};function i(e,t,r){r||(r=Error);var i=/* @__PURE__ */function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function a(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i,s,o;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))o="The ".concat(e," ").concat(n," ").concat(a(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(l," ").concat(n," ").concat(a(t,"type"))}return o+=". Received type ".concat(P(r))},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],478:[function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var i=e("./_stream_readable"),a=e("./_stream_writable");e("inherits")(c,i);for(var s=n(a.prototype),o=0;o<s.length;o++){var l=s[o];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,t,r){(function(r,n){(function(){var i;t.exports=T,T.ReadableState=S,e("events").EventEmitter;var a=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),o=e("buffer").Buffer,l=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=e("util");c=u&&u.debuglog?u.debuglog("stream"):function(){};var f,h,d,p=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),v=e("./internal/streams/state").getHighWaterMark,g=e("../errors").codes,b=g.ERR_INVALID_ARG_TYPE,y=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(T,s);var k=m.errorOrDestroy,x=["error","close","destroy","pause","resume"];function S(t,r,n){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=e("string_decoder/").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||e("./_stream_duplex"),!(this instanceof T))return new T(t);var r=this instanceof i;this._readableState=new S(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function E(e,t,r,n,i){c("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,R(e)))}(e,s);else if(i||(a=function(e,t){var r;n=t,o.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(s,t)),a)k(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),n)s.endEmitted?k(e,new _):C(e,s,t,!0);else if(s.ended)k(e,new y);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):I(e,s)):C(e,s,t,!1)}else n||(s.reading=!1,I(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function C(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&O(e)),I(e,t)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=o.from(e,t),t=""),r=!0),E(this,e,t,!1,r)},T.prototype.unshift=function(e){return E(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){f||(f=e("string_decoder/").StringDecoder);var r=new f(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var A=1073741824;function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(R,e))}function R(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function I(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function P(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function F(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(z,t,e))}function z(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}T.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):O(this),null;if(0===(e=M(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(r,t))),null===(n=e>0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(e){k(this,new w("_read()"))},T.prototype.pipe=function(e,t){var n=this,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)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?v:l;function o(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",o),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",h),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){c("onend"),e.end()}i.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",o);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,j(e))}}(n);e.on("drain",u);var f=!1;function h(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==U(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){c("onerror",t),v(),e.removeListener("error",d),0===a(e,"error")&&k(e,t)}function p(){e.removeListener("finish",m),v()}function m(){c("onfinish"),e.removeListener("close",p),v()}function v(){c("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",p),e.once("finish",m),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=U(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?O(this):i.reading||r.nextTick(D,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(P,this),n},T.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(P,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(F,e,t))}(this,e)),e.paused=!1,this},T.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<x.length;a++)e.on(x[a],this.emit.bind(this,x[a]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=e("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=L,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(t,r){return void 0===d&&(d=e("./internal/streams/from")),d(T,t,r)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,t,r){t.exports=u;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new o;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,t,r){(function(r,n){(function(){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var a;t.exports=T,T.WritableState=S;var s={deprecate:e("util-deprecate")},o=e("./internal/streams/stream"),l=e("buffer").Buffer,c=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,f=e("./internal/streams/destroy"),h=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,p=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function x(){}function S(t,n,s){a=a||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=n instanceof a),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,a=n.writecb;if("function"!=typeof a)throw new v;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,a){--t.pendingcb,n?(r.nextTick(a,i),r.nextTick(R,e,t),e._writableState.errorEmitted=!0,k(e,i)):(a(i),e._writableState.errorEmitted=!0,k(e,i),R(e,t))}(e,n,i,t,a);else{var s=M(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||A(e,n),i?r.nextTick(C,e,n,s,a):C(e,n,s,a)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function T(t){var r=this instanceof(a=a||e("./_stream_duplex"));if(!r&&!u.call(T,this))return new T(t);this._writableState=new S(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function E(e,t,r,n,i,a,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function C(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),R(e,t)}function A(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,l=!0;r;)a[o]=r,r.isBuf||(l=!1),r=r.next,o+=1;a.allBuffers=l,E(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(E(e,t,!1,t.objectMode?1:c.length,c,u,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),R(e,t)})}function R(e,t){var n=M(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(O,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(T,o),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===T&&(e&&e._writableState instanceof S)}})):u=function(e){return e instanceof this},T.prototype.pipe=function(){k(this,new g)},T.prototype.write=function(e,t,n){var i,a=this._writableState,s=!1,o=!a.objectMode&&(i=e,l.isBuffer(i)||i instanceof c);return o&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=x),a.ending?function(e,t){var n=new w;k(e,n),r.nextTick(t,n)}(this,n):(o||function(e,t,n,i){var a;return null===n?a=new y:"string"==typeof n||t.objectMode||(a=new p("chunk",["string","Buffer"],n)),!a||(k(e,a),r.nextTick(i,a),!1)}(this,a,e,n))&&(a.pendingcb++,s=function(e,t,r,n,i,a){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var o=t.objectMode?1:n.length;t.length+=o;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,o,n,i,a);return c}(this,a,o,e,t,n)),s},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new m("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=f.destroy,T.prototype._undestroy=f.undestroy,T.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==P(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===P(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=e("./end-of-stream"),s=Symbol("lastResolve"),o=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[u]=null,e[s]=null,e[o]=null,t(d(r,!1)))}}function m(e){r.nextTick(p,e)}var v=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[l]?n(e[l]):t(d(void 0,!0))})});var n,i=this[u];if(i)n=new Promise(function(e,t){return function(r,n){e.then(function(){t[c]?r(d(void 0,!0)):t[f](r,n)},n)}}(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(d(a,!1));n=new Promise(this[f])}return this[u]=n,n}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(d(void 0,!0))})})}),n),v);t.exports=function(e){var t,r=Object.create(g,(i(t={},h,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[h].read();n?(r[u]=null,r[s]=null,r[o]=null,e(d(n,!1))):(r[s]=e,r[o]=t)},writable:!0}),t));return r[u]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[o];return null!==t&&(r[u]=null,r[s]=null,r[o]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[u]=null,r[s]=null,r[o]=null,n(d(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!==P(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===P(t)?t:String(t)}var l=e("buffer").Buffer,c=e("util").inspect,u=c&&c.custom||"inspect";function f(e,t,r){l.prototype.copy.call(e,t,r)}t.exports=/* @__PURE__ */function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t=l.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?n+=i:n+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0===(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:220,util:188}],485:[function(e,t,r){(function(e){(function(){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,a){var s=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(a?a(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!a&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):a?(e.nextTick(n,s),a(t)):e.nextTick(n,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,a){if("function"==typeof r)return e(t,null,r);r||(r={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(a||i);var s=r.readable||!1!==r.readable&&t.readable,o=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){o=!1,c=!0,s||a.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){s=!1,f=!0,o||a.call(t)},d=function(e){a.call(t,e)},p=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),a.call(t,e)):o&&!c?(t._writableState&&t._writableState.ended||(e=new n),a.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?o&&!t._writableState&&(t.on("end",l),t.on("close",l)):(t.on("complete",u),t.on("abort",p),t.req?m():t.on("request",m)),t.on("end",h),t.on("finish",u),!1!==r.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}},{"../../../errors":477}],487:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,r){var n;var i=e("../../../errors").codes,a=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function o(e){if(e)throw e}function l(e){e()}function c(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var u,f=function(e){return e.length?"function"!=typeof e[e.length-1]?o:e.pop():o}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var h=r.map(function(t,i){var a=i<r.length-1;return function(t,r,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var o=!1;t.on("close",function(){o=!0}),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},function(e){if(e)return a(e);o=!0,a()});var l=!1;return function(e){if(!o&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}(t,a,i>0,function(e){u||(u=e),e&&h.forEach(l),a||(h.forEach(l),f(u))})});return r.reduce(c)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,r){t.exports=e("events").EventEmitter},{events:422}],491:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,r){var n=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(N){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof g?t:g,s=Object.create(a.prototype);return i(s,"_invoke",{value:E(e,r,new O(n||[]))}),s}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(N){return{type:"throw",arg:N}}}e.wrap=u;var h="suspendedStart",d="suspendedYield",p="executing",m="completed",v={};function g(){}function b(){}function y(){}var w={};c(w,s,function(){return this});var _=Object.getPrototypeOf,k=_&&_(_(R([])));k&&k!==r&&n.call(k,s)&&(w=k);var x=y.prototype=g.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function T(e,t){function r(i,a,s,o){var l=f(e[i],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"===P(u)&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,s,o)},function(e){r("throw",e,s,o)}):t.resolve(u).then(function(e){c.value=e,s(c)},function(e){return r("throw",e,s,o)})}o(l.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t(function(t,i){r(e,n,t,i)})}return a=a?a.then(i,i):i()}})}function E(e,t,r){var n=h;return function(i,a){if(n===p)throw new Error("Generator is already running");if(n===m){if("throw"===i)throw a;return I()}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var o=C(s,r);if(o){if(o===v)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var l=f(e,t,r);if("normal"===l.type){if(n=r.done?m:d,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=m,r.method="throw",r.arg=l.arg)}}}function C(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=/* @__PURE__ */new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=f(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var s=a.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):s:(r.method="throw",r.arg=/* @__PURE__ */new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function R(e){if(e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return b.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(T.prototype),c(T.prototype,o,function(){return this}),e.AsyncIterator=T,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var s=new T(u(t,r,n,i),a);return e.isGeneratorFunction(r)?s:s.next().then(function(e){return e.done?e.value:s.next()})},S(x),c(x,l,"Generator"),c(x,s,function(){return this}),c(x,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=R,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return o.type="throw",o.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}("object"===P(t)?t.exports:{});try{regeneratorRuntime=n}catch(i){"object"===("undefined"==typeof globalThis?"undefined":P(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},{}],493:[function(e,t,r){var n=e("buffer").Buffer,i=e("inherits"),a=e("hash-base"),s=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,i,a,s,o){return p(e+(t^r^n)+a+s|0,o)+i|0}function v(e,t,r,n,i,a,s,o){return p(e+(t&r|~t&n)+a+s|0,o)+i|0}function g(e,t,r,n,i,a,s,o){return p(e+((t|~r)^n)+a+s|0,o)+i|0}function b(e,t,r,n,i,a,s,o){return p(e+(t&n|r&~n)+a+s|0,o)+i|0}function y(e,t,r,n,i,a,s,o){return p(e+(t^(r|~n))+a+s|0,o)+i|0}i(d,a),d.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,x=0|this._d,S=0|this._e,T=0;T<80;T+=1){var E,C;T<16?(E=m(r,n,i,a,d,e[o[T]],f[0],c[T]),C=y(w,_,k,x,S,e[l[T]],h[0],u[T])):T<32?(E=v(r,n,i,a,d,e[o[T]],f[1],c[T]),C=b(w,_,k,x,S,e[l[T]],h[1],u[T])):T<48?(E=g(r,n,i,a,d,e[o[T]],f[2],c[T]),C=g(w,_,k,x,S,e[l[T]],h[2],u[T])):T<64?(E=b(r,n,i,a,d,e[o[T]],f[3],c[T]),C=v(w,_,k,x,S,e[l[T]],h[3],u[T])):(E=y(r,n,i,a,d,e[o[T]],f[4],c[T]),C=m(w,_,k,x,S,e[l[T]],h[4],u[T])),r=d,d=a,a=p(i,10),i=n,n=E,w=S,S=x,x=p(k,10),k=_,_=C}var A=this._b+i+x|0;this._b=this._c+a+S|0,this._c=this._d+d+w|0,this._d=this._e+r+_|0,this._e=this._a+n+k|0,this._a=A},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=d},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,r),r.Buffer=s),s.prototype=Object.create(i.prototype),a(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,r){(function(r){(function(){var n,i=e("buffer"),a=i.Buffer,s={};for(n in i)i.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=i[n]);var o=s.Buffer={};for(n in a)a.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(o[n]=a[n]);if(s.Buffer.prototype=a.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+P(e));if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+P(e));return a(e,t,r)}),o.alloc||(o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+P(e));if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=a(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=r.binding("buffer").kStringMaxLength}catch(l){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("xmlchars/xml/1.0/ed5"),i=e("xmlchars/xml/1.1/ed2"),a=e("xmlchars/xmlns/1.0/ed3"),o=n.isS,l=n.isChar,c=n.isNameStartChar,u=n.isNameChar,f=n.S_LIST,h=n.NAME_RE,d=i.isChar,p=a.isNCNameStartChar,m=a.isNCNameChar,v=a.NC_NAME_RE,g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",y={__proto__:null,xml:g,xmlns:b},w={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},_=-1,k=-2,x=13,S=33,T=10,E=60,C=61,A=62,M=63,O=93,R=function(e){return 34===e||39===e},N=[34,39],D=[].concat(N,[91,A]),F=[].concat(N,[E,O]),j=[C,M].concat(I(f)),L=[].concat(I(f),[A,38,E]);function B(e,t,r){switch(t){case"xml":r!==g&&e.fail("xml prefix must be bound to ".concat(g,"."));break;case"xmlns":r!==b&&e.fail("xmlns prefix must be bound to ".concat(b,"."))}switch(r){case b:e.fail(""===t?"the default namespace may not be set to ".concat(r,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(b,"."));break;case g:switch(t){case"xml":break;case"":e.fail("the default namespace may not be set to ".concat(r,"."));break;default:e.fail("may not assign the xml namespace to another prefix.")}}}var z=function(e){return v.test(e)},U=function(e){return h.test(e)};r.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var H={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"};r.SaxesParser=/* @__PURE__ */function(){return J(function e(t){Y(this,e),this.opt=null!=t?t:{},this.fragmentOpt=!!this.opt.fragment;var r=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,r){this.nameStartCheck=p,this.nameCheck=m,this.isName=z,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},y);var n=this.opt.additionalNamespaces;null!=n&&(!function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];B(e,i,t[i])}}(this,n),Object.assign(this.ns,n))}else this.nameStartCheck=c,this.nameCheck=u,this.isName=U,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()},[{key:"closed",get:function(){return this._closed}},{key:"_init",value:function(){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=void 0,this.forbiddenState=0,this.attribList=[];var t=this.fragmentOpt;this.state=t?x:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;var r=this.opt.defaultXMLVersion;if(void 0===r){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");r="1.0"}this.setXMLVersion(r),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(w),null===(e=this.readyHandler)||void 0===e||e.call(this)}},{key:"position",get:function(){return this.chunkPosition+this.i}},{key:"columnIndex",get:function(){return this.position-this.positionAtNewLine}},{key:"on",value:function(e,t){this[H[e]]=t}},{key:"off",value:function(e){this[H[e]]=void 0}},{key:"makeError",value:function(e){var t,r=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(r.length>0&&(r+=":"),r+="".concat(this.line,":").concat(this.column)),r.length>0&&(r+=": "),new Error(r+e)}},{key:"fail",value:function(e){var t=this.makeError(e),r=this.errorHandler;if(void 0===r)throw t;return r(t),this}},{key:"write",value:function(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");var t=!1;null===e?(t=!0,e=""):"object"===P(e)&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e="".concat(this.carriedFromPrevious).concat(e),this.carriedFromPrevious=void 0);var r=e.length,n=e.charCodeAt(r-1);!t&&(13===n||n>=55296&&n<=56319)&&(this.carriedFromPrevious=e[r-1],r--,e=e.slice(0,r));var i=this.stateTable;for(this.chunk=e,this.i=0;this.i<r;)i[this.state].call(this);return this.chunkPosition+=r,t?this.end():this}},{key:"close",value:function(){return this.write(null)}},{key:"getCode10",value:function(){var e=this.chunk,t=this.i;if(this.prevI=t,this.i=t+1,t>=e.length)return _;var r=e.charCodeAt(t);if(this.column++,r<55296){if(r>=32||9===r)return r;switch(r){case T:return this.line++,this.column=0,this.positionAtNewLine=this.position,T;case 13:return e.charCodeAt(t+1)===T&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,k;default:return this.fail("disallowed character."),r}}if(r>56319)return r>=57344&&r<=65533||this.fail("disallowed character."),r;var n=65536+1024*(r-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,n>1114111&&this.fail("disallowed character."),n}},{key:"getCode11",value:function(){var e=this.chunk,t=this.i;if(this.prevI=t,this.i=t+1,t>=e.length)return _;var r=e.charCodeAt(t);if(this.column++,r<55296){if(r>31&&r<127||r>159&&8232!==r||9===r)return r;switch(r){case T:return this.line++,this.column=0,this.positionAtNewLine=this.position,T;case 13:var n=e.charCodeAt(t+1);n!==T&&133!==n||(this.i=t+2);case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,k;default:return this.fail("disallowed character."),r}}if(r>56319)return r>=57344&&r<=65533||this.fail("disallowed character."),r;var i=65536+1024*(r-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,i>1114111&&this.fail("disallowed character."),i}},{key:"getCodeNorm",value:function(){var e=this.getCode();return e===k?T:e}},{key:"unget",value:function(){this.i=this.prevI,this.column--}},{key:"captureTo",value:function(e){for(var t=this.i,r=this.chunk;;){var n=this.getCode(),i=n===k,a=i?T:n;if(a===_||e.includes(a))return this.text+=r.slice(t,this.prevI),a;i&&(this.text+="".concat(r.slice(t,this.prevI),"\n"),t=this.i)}}},{key:"captureToChar",value:function(e){for(var t=this.i,r=this.chunk;;){var n=this.getCode();switch(n){case k:this.text+="".concat(r.slice(t,this.prevI),"\n"),t=this.i,n=T;break;case _:return this.text+=r.slice(t),!1}if(n===e)return this.text+=r.slice(t,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var e=this.chunk,t=this.i;;){var r=this.getCode();if(r===_)return this.name+=e.slice(t),_;if(!u(r))return this.name+=e.slice(t,this.prevI),r===k?T:r}}},{key:"skipSpaces",value:function(){for(;;){var e=this.getCodeNorm();if(e===_||!o(e))return e}}},{key:"setXMLVersion",value:function(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=l,this.getCode=this.getCode10):(this.isChar=d,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}},{key:"sBeginWhitespace",value:function(){var e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case E:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case _:break;default:this.unget(),this.state=x,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var e,t=this.captureTo(D);switch(t){case A:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=x,this.doctype=!0;break;case _:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:R(t)&&(this.state=3,this.q=t)}}},{key:"sDoctypeQuote",value:function(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}},{key:"sDTD",value:function(){var e=this.captureTo(F);e!==_&&(this.text+=String.fromCodePoint(e),e===O?this.state=2:e===E?this.state=6:R(e)&&(this.state=5,this.q=e))}},{key:"sDTDQuoted",value:function(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case M:this.state=11;break;default:this.state=4}}},{key:"sDTDOpenWakaBang",value:function(){var e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(45)&&(this.text+="-",this.state=9)}},{key:"sDTDCommentEnding",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}},{key:"sDTDCommentEnded",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===A?this.state=4:(this.fail("malformed comment."),this.state=8)}},{key:"sDTDPI",value:function(){this.captureToChar(M)&&(this.text+="?",this.state=12)}},{key:"sDTDPIEnding",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===A&&(this.state=4)}},{key:"sText",value:function(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var e=this.i,t=this.chunk;e:for(;;)switch(this.getCode()){case k:this.entity+="".concat(t.slice(e,this.prevI),"\n"),e=this.i;break;case 59:var r=this.entityReturnState,n=this.entity+t.slice(e,this.prevI);this.state=r;var i=void 0;""===n?(this.fail("empty entity name."),i="&;"):(i=this.parseEntity(n),this.entity=""),r===x&&void 0===this.textHandler||(this.text+=i);break e;case _:this.entity+=t.slice(e);break e}}},{key:"sOpenWaka",value:function(){var e=this.getCode();if(c(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case M:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=x,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(45)&&(this.state=18)}},{key:"sCommentEnding",value:function(){var e,t=this.getCodeNorm();45===t?(this.state=19,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(t)),this.state=17)}},{key:"sCommentEnded",value:function(){var e=this.getCodeNorm();e!==A?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(e)),this.state=17):this.state=x}},{key:"sCData",value:function(){this.captureToChar(O)&&(this.state=21)}},{key:"sCDataEnding",value:function(){var e=this.getCodeNorm();e===O?this.state=22:(this.text+="]".concat(String.fromCodePoint(e)),this.state=20)}},{key:"sCDataEnding2",value:function(){var e,t=this.getCodeNorm();switch(t){case A:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=x;break;case O:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(t)),this.state=20}}},{key:"sPIFirstChar",value:function(){var e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===M||o(e)?(this.fail("processing instruction without a target."),this.state=e===M?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}},{key:"sPIRest",value:function(){for(var e=this.chunk,t=this.i;;){var r=this.getCodeNorm();if(r===_)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(r)){this.piTarget+=e.slice(t,this.prevI);var n=r===M;n||o(r)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?S:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(r));break}}}},{key:"sPIBody",value:function(){if(0===this.text.length){var e=this.getCodeNorm();e===M?this.state=26:o(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(M)&&(this.state=26)}},{key:"sPIEnding",value:function(){var e,t=this.getCodeNorm();if(t===A){var r=this.piTarget;"xml"===r.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:r,body:this.text}),this.piTarget=this.text="",this.state=x}else t===M?this.text+="?":(this.text+="?".concat(String.fromCodePoint(t)),this.state=25);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var e=this.skipSpaces();e!==M?e!==_&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=S}},{key:"sXMLDeclName",value:function(){var e=this.captureTo(j);if(e===M)return this.state=S,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(o(e)||e===C){if(this.name+=this.text,this.text="",!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 ".concat(this.xmlDeclExpects[0],"."));break;default:this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")))}this.state=e===C?30:29}}},{key:"sXMLDeclEq",value:function(){var e=this.getCodeNorm();if(e===M)return this.state=S,void this.fail("XML declaration is incomplete.");o(e)||(e!==C&&this.fail("value required."),this.state=30)}},{key:"sXMLDeclValueStart",value:function(){var e=this.getCodeNorm();if(e===M)return this.state=S,void this.fail("XML declaration is incomplete.");o(e)||(R(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}},{key:"sXMLDeclValue",value:function(){var e=this.captureTo([this.q,M]);if(e===M)return this.state=S,this.text="",void this.fail("XML declaration is incomplete.");if(e!==_){var t=this.text;switch(this.text="",this.name){case"version":this.xmlDeclExpects=["encoding","standalone"];var r=t;this.xmlDecl.version=r,/^1\.[0-9]+$/.test(r)?this.opt.forceXMLVersion||this.setXMLVersion(r):this.fail("version number must match /^1\\.[0-9]+$/.");break;case"encoding":/^[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":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}}},{key:"sXMLDeclSeparator",value:function(){var e=this.getCodeNorm();e!==M?(o(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=S}},{key:"sXMLDeclEnding",value:function(){var e;this.getCodeNorm()===A?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=x):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}},{key:"sOpenTag",value:function(){var e,t=this.captureNameChars();if(t!==_){var r=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=r.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,r),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case A:this.openTag();break;case 47:this.state=35;break;default:o(t)||this.fail("disallowed character in tag name."),this.state=36}}}},{key:"sOpenTagSlash",value:function(){this.getCode()===A?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}},{key:"sAttrib",value:function(){var e=this.skipSpaces();e!==_&&(c(e)?(this.unget(),this.state=37):e===A?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}},{key:"sAttribName",value:function(){var e=this.captureNameChars();e===C?this.state=39:o(e)?this.state=38:e===A?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):e!==_&&this.fail("disallowed character in attribute name.")}},{key:"sAttribNameSawWhite",value:function(){var e=this.skipSpaces();switch(e){case _:return;case C:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",e===A?this.openTag():c(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}},{key:"sAttribValue",value:function(){var e=this.getCodeNorm();R(e)?(this.q=e,this.state=40):o(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}},{key:"sAttribValueQuoted",value:function(){for(var e=this.q,t=this.chunk,r=this.i;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(r,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(r,this.prevI),this.state=14,void(this.entityReturnState=40);case T:case k:case 9:this.text+="".concat(t.slice(r,this.prevI)," "),r=this.i;break;case E:return this.text+=t.slice(r,this.prevI),void this.fail("disallowed character.");case _:return void(this.text+=t.slice(r))}}},{key:"sAttribValueClosed",value:function(){var e=this.getCodeNorm();o(e)?this.state=36:e===A?this.openTag():47===e?this.state=35:c(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}},{key:"sAttribValueUnquoted",value:function(){var e=this.captureTo(L);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case E:this.fail("disallowed character.");break;case _:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",e===A?this.openTag():this.state=36}}},{key:"sCloseTag",value:function(){var e=this.captureNameChars();e===A?this.closeTag():o(e)?this.state=44:e!==_&&this.fail("disallowed character in closing tag.")}},{key:"sCloseTagSawWhite",value:function(){switch(this.skipSpaces()){case A:this.closeTag();break;case _:break;default:this.fail("disallowed character in closing tag.")}}},{key:"handleTextInRoot",value:function(){var e=this.i,t=this.forbiddenState,r=this.chunk,n=this.textHandler;e:for(;;)switch(this.getCode()){case E:if(this.state=15,void 0!==n){var i=this.text,a=r.slice(e,this.prevI);0!==i.length?(n(i+a),this.text=""):0!==a.length&&n(a)}t=0;break e;case 38:this.state=14,this.entityReturnState=x,void 0!==n&&(this.text+=r.slice(e,this.prevI)),t=0;break e;case O:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case A:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case k:void 0!==n&&(this.text+="".concat(r.slice(e,this.prevI),"\n")),e=this.i,t=0;break;case _:void 0!==n&&(this.text+=r.slice(e));break e;default:t=0}this.forbiddenState=t}},{key:"handleTextOutsideRoot",value:function(){var e=this.i,t=this.chunk,r=this.textHandler,n=!1;e:for(;;){var i=this.getCode();switch(i){case E:if(this.state=15,void 0!==r){var a=this.text,s=t.slice(e,this.prevI);0!==a.length?(r(a+s),this.text=""):0!==s.length&&r(s)}break e;case 38:this.state=14,this.entityReturnState=x,void 0!==r&&(this.text+=t.slice(e,this.prevI)),n=!0;break e;case k:void 0!==r&&(this.text+="".concat(t.slice(e,this.prevI),"\n")),e=this.i;break;case _:void 0!==r&&(this.text+=t.slice(e));break e;default:o(i)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(e,t){var r,n=this.qname(e),i=n.prefix,a=n.local,s={name:e,prefix:i,local:a,value:t};if(this.attribList.push(s),null===(r=this.attributeHandler)||void 0===r||r.call(this,s),"xmlns"===i){var o=t.trim();"1.0"===this.currentXMLVersion&&""===o&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[a]=o,B(this,a,o)}else if("xmlns"===e){var l=t.trim();this.topNS[""]=l,B(this,"",l)}}},{key:"pushAttribPlain",value:function(e,t){var r,n={name:e,value:t};this.attribList.push(n),null===(r=this.attributeHandler)||void 0===r||r.call(this,n)}},{key:"end",value:function(){var e,t;this.sawRoot||this.fail("document must contain a root element.");for(var r=this.tags;r.length>0;){var n=r.pop();this.fail("unclosed tag: ".concat(n.name))}0!==this.state&&this.state!==x&&this.fail("unexpected end.");var i=this.text;return 0!==i.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,i),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}},{key:"resolve",value:function(e){var t,r,n=this.topNS[e];if(void 0!==n)return n;for(var i=this.tags,a=i.length-1;a>=0;a--)if(void 0!==(n=i[a].ns[e]))return n;return void 0!==(n=this.ns[e])?n:null===(r=(t=this.opt).resolvePrefix)||void 0===r?void 0:r.call(t,e)}},{key:"qname",value:function(e){var t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};var r=e.slice(t+1),n=e.slice(0,t);return(""===n||""===r||r.includes(":"))&&this.fail("malformed name: ".concat(e,".")),{prefix:n,local:r}}},{key:"processAttribsNS",value:function(){var e,t=this.attribList,r=this.tag,n=this.qname(r.name),i=n.prefix,a=n.local;r.prefix=i,r.local=a;var o=r.uri=null!==(e=this.resolve(i))&&void 0!==e?e:"";if(""!==i&&("xmlns"===i&&this.fail('tags may not have "xmlns" as prefix.'),""===o&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(i),".")),r.uri=i)),0!==t.length){var l,c=r.attributes,u=/* @__PURE__ */new Set,f=s(t);try{for(f.s();!(l=f.n()).done;){var h=l.value,d=h.name,p=h.prefix,m=h.local,v=void 0,g=void 0;""===p?(v="xmlns"===d?b:"",g=d):(void 0===(v=this.resolve(p))&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(p),".")),v=p),g="{".concat(v,"}").concat(m)),u.has(g)&&this.fail("duplicate attribute: ".concat(g,".")),u.add(g),h.uri=v,c[d]=h}}catch(y){f.e(y)}finally{f.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var e,t=this.attribList,r=this.tag.attributes,n=s(t);try{for(n.s();!(e=n.n()).done;){var i=e.value,a=i.name,o=i.value;void 0!==r[a]&&this.fail("duplicate attribute: ".concat(a,".")),r[a]=o}}catch(l){n.e(l)}finally{n.f()}this.attribList=[]}},{key:"openTag",value:function(){var e;this.processAttribs();var t=this.tags,r=this.tag;r.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,r),t.push(r),this.state=x,this.name=""}},{key:"openSelfClosingTag",value:function(){var e,t,r;this.processAttribs();var n=this.tags,i=this.tag;i.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,i),null===(t=this.closeTagHandler)||void 0===t||t.call(this,i),null===(this.tag=null!==(r=n[n.length-1])&&void 0!==r?r:null)&&(this.closedRoot=!0),this.state=x,this.name=""}},{key:"closeTag",value:function(){var e=this.tags,t=this.name;if(this.state=x,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");for(var r=this.closeTagHandler,n=e.length;n-- >0;){var i=this.tag=e.pop();if(this.topNS=i.ns,null==r||r(i),i.name===t)break;this.fail("unexpected close tag.")}0===n?this.closedRoot=!0:n<0&&(this.fail("unmatched closing tag: ".concat(t,".")),this.text+="</".concat(t,">"))}},{key:"parseEntity",value:function(e){if("#"!==e[0]){var t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),"&".concat(e,";"))}var r=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?r=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(r=parseInt(e.slice(1),10)),this.isChar(r)?String.fromCodePoint(r):(this.fail("malformed character entity."),"&".concat(e,";"))}}])}()},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,o=0;o<a;){for(var l=s%i,c=Math.min(a-o,i-l),u=0;u<c;u++)r[l+u]=e[o+u];o+=c,(s+=c)%i===0&&this._update(r)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":494}],498:[function(e,t,r){var n=t.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=e("./sha"),n.sha1=e("./sha1"),n.sha224=e("./sha224"),n.sha256=e("./sha256"),n.sha384=e("./sha384"),n.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,r){var n=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var h=0;h<80;++h){var d=~~(h/20),p=c(r)+f(d,n,i,a)+o+t[h]+s[d]|0;o=a,a=i,i=u(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,r){var n=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,i.call(this,64,56)}function c(e){return e<<1|e>>>31}function u(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=c(t[l-3]^t[l-8]^t[l-14]^t[l-16]);for(var d=0;d<80;++d){var p=~~(d/20),m=u(r)+h(p,n,i,a)+o+t[d]+s[p]|0;o=a,a=i,i=f(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,r){var n=e("inherits"),i=e("./sha256"),a=e("./hash"),s=e("safe-buffer").Buffer,o=new Array(64);function l(){this.init(),this._w=o,a.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=l},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,r){var n=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function l(){this.init(),this._w=o,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,l=0|this._f,m=0|this._g,v=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=p(t[g-2])+t[g-7]+d(t[g-15])+t[g-16]|0;for(var b=0;b<64;++b){var y=v+h(o)+c(o,l,m)+s[b]+t[b]|0,w=f(r)+u(r,n,i)|0;v=m,m=l,l=o,o=a+y|0,a=i,i=n,n=r,r=y+w|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=l+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},l.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,r){var n=e("inherits"),i=e("./sha512"),a=e("./hash"),s=e("safe-buffer").Buffer,o=new Array(160);function l(){this.init(),this._w=o,a.call(this,128,112)}n(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=l},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,r){var n=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function l(){this.init(),this._w=o,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,o=0|this._eh,l=0|this._fh,b=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,x=0|this._dl,S=0|this._el,T=0|this._fl,E=0|this._gl,C=0|this._hl,A=0;A<32;A+=2)t[A]=e.readInt32BE(4*A),t[A+1]=e.readInt32BE(4*A+4);for(;A<160;A+=2){var M=t[A-30],O=t[A-30+1],R=d(M,O),I=p(O,M),N=m(M=t[A-4],O=t[A-4+1]),P=v(O,M),D=t[A-14],F=t[A-14+1],j=t[A-32],L=t[A-32+1],B=I+F|0,z=R+D+g(B,I)|0;z=(z=z+N+g(B=B+P|0,P)|0)+j+g(B=B+L|0,L)|0,t[A]=z,t[A+1]=B}for(var U=0;U<160;U+=2){z=t[U],B=t[U+1];var H=u(r,n,i),W=u(w,_,k),V=f(r,w),$=f(w,r),q=h(o,S),X=h(S,o),G=s[U],Y=s[U+1],K=c(o,l,b),Z=c(S,T,E),J=C+X|0,Q=y+q+g(J,C)|0;Q=(Q=(Q=Q+K+g(J=J+Z|0,Z)|0)+G+g(J=J+Y|0,Y)|0)+z+g(J=J+B|0,B)|0;var ee=$+W|0,te=V+H+g(ee,$)|0;y=b,C=E,b=l,E=T,l=o,T=S,o=a+Q+g(S=x+J|0,x)|0,a=i,x=k,i=n,k=_,n=r,_=w,r=Q+te+g(w=J+ee|0,J)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+x|0,this._el=this._el+S|0,this._fl=this._fl+T|0,this._gl=this._gl+E|0,this._hl=this._hl+C|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,k)|0,this._dh=this._dh+a+g(this._dl,x)|0,this._eh=this._eh+o+g(this._el,S)|0,this._fh=this._fh+l+g(this._fl,T)|0,this._gh=this._gh+b+g(this._gl,E)|0,this._hh=this._hh+y+g(this._hl,C)|0},l.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,r){t.exports=i;var n=e("events").EventEmitter;function i(){n.call(this)}e("inherits")(i,n),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",o),r.on("close",l));var s=!1;function o(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],507:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,r){var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=f;var a=Object.create(e("core-util-is"));a.inherits=e("inherits");var s=e("./_stream_readable"),o=e("./_stream_writable");a.inherits(f,s);for(var l=i(o.prototype),c=0;c<l.length;c++){var u=l[c];f.prototype[u]||(f.prototype[u]=o.prototype[u])}function f(e){if(!(this instanceof f))return new f(e);s.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,r){t.exports=a;var n=e("./_stream_transform"),i=Object.create(e("core-util-is"));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,t,r){(function(r,n){(function(){var i=e("process-nextick-args");t.exports=y;var a,s=e("isarray");y.ReadableState=b,e("events").EventEmitter;var o=function(e,t){return e.listeners(t).length},l=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(e("core-util-is"));f.inherits=e("inherits");var h=e("util"),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),v=e("./internal/streams/destroy");f.inherits(y,l);var g=["error","close","destroy","pause","resume"];function b(t,r){t=t||{};var n=r instanceof(a=a||e("./_stream_duplex"));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(a=a||e("./_stream_duplex"),!(this instanceof y))return new y(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function w(e,t,r,n,i){var a,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,s)):(i||(a=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=/* @__PURE__ */new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?s.endEmitted?e.emit("error",/* @__PURE__ */new Error("stream.unshift() after end event")):_(e,s,t,!0):s.ended?e.emit("error",/* @__PURE__ */new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?_(e,s,t,!1):E(e,s)):_(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&S(e)),E(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},y.prototype.unshift=function(e){return w(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var k=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(T,e):T(e))}function T(e){d("emit readable"),e.emit("readable"),O(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(C,e,t))}function C(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function A(e){d("readable nexttick read 0"),e.read(0)}function M(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(s===a.length?i+=a:i+=a.slice(0,e),0===(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),0===(e-=s)){s===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}y.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):S(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",/* @__PURE__ */new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?y:u;function c(t,r){d("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),e.removeListener("close",g),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",m),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function u(){d("onend"),e.end()}a.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,O(e))}}(n);e.on("drain",f);var h=!1;var p=!1;function m(t){d("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==P(a.pipes,e))&&!h&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),n.pause())}function v(t){d("onerror",t),y(),e.removeListener("error",v),0===o(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",b),y()}function b(){d("onfinish"),e.removeListener("close",g),y()}function y(){d("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",v),e.once("close",g),e.once("finish",b),e.emit("pipe",n),a.flowing||(d("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=P(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},y.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):i.nextTick(A,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),this},y.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<g.length;a++)e.on(g[a],this.emit.bind(this,g[a]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=R}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,t,r){t.exports=s;var n=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",/* @__PURE__ */new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){l(e,t,r)}):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,t,r){(function(r,n,i){(function(){var a=e("process-nextick-args");function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=b;var o,l=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;b.WritableState=g;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var u={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,d=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,m=e("./internal/streams/destroy");function v(){}function g(t,r){o=o||e("./_stream_duplex"),t=t||{};var n=r instanceof o;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,i);else{var s=k(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?l(w,e,r,s,i):w(e,r,s,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function b(t){if(o=o||e("./_stream_duplex"),!(p.call(b,this)||this instanceof o))return new b(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function y(e,t,r,n,i,a,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var o=0,l=!0;r;)i[o]=r,r.isBuf||(l=!1),r=r.next,o+=1;i.allBuffers=l,y(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,u,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var r=k(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(b,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===b&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",/* @__PURE__ */new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,i=this._writableState,s=!1,o=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof d);return o&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=v),i.ended?function(e,t){var r=/* @__PURE__ */new Error("write after end");e.emit("error",r),a.nextTick(t,r)}(this,r):(o||function(e,t,r,n){var i=!0,s=!1;return null===r?s=/* @__PURE__ */new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=/* @__PURE__ */new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),a.nextTick(n,s),i=!1),i}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,i,a){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var o=t.objectMode?1:n.length;t.length+=o;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,o,n,i,a);return l}(this,i,o,e,t,r)),s},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||_(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(/* @__PURE__ */new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("util");function a(e,t,r){e.copy(t,r)}t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)a(r.data,t,i),i+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":520,util:188}],514:[function(e,t,r){var n=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,t,r){arguments[4][490][0].apply(r,arguments)},{dup:490,events:422}],516:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,r){arguments[4][217][0].apply(r,arguments)},{buffer:220,dup:217}],521:[function(e,t,r){arguments[4][218][0].apply(r,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,r){arguments[4][218][0].apply(r,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,r){(function(t,n){(function(){var i=e("process/browser.js").nextTick,a=Function.prototype.apply,s=Array.prototype.slice,o={},l=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&s.call(arguments,1);return o[t]=!0,i(function(){o[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof n?n:function(e){delete o[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,t,r){(function(e){(function(){function r(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],525:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],526:[function(e,t,r){t.exports=function(e){return e&&"object"===P(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],527:[function(e,t,r){(function(t,n){(function(){var i=/%[sdj%]/g;r.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,a=n.length,s=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),l=n[r];r<a;l=n[++r])m(l)||!w(l)?s+=" "+l:s+=" "+o(l);return s},r.deprecate=function(e,i){if(b(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}};var a,s={};function o(e,t){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(t)?n.showHidden=t:t&&r._extend(n,t),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,e,n.depth)}function l(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function u(e,t,n){if(e.customInspect&&t&&x(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return g(i)||(i=u(e,i,n)),i}var a=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,t);if(a)return a;var s=Object.keys(t),o=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),k(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(t);if(0===s.length){if(x(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(y(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return f(t)}var c,w="",S=!1,T=["{","}"];return d(t)&&(S=!0,T=["[","]"]),x(t)&&(w=" [Function"+(t.name?": "+t.name:"")+"]"),y(t)&&(w=" "+RegExp.prototype.toString.call(t)),_(t)&&(w=" "+Date.prototype.toUTCString.call(t)),k(t)&&(w=" "+f(t)),0!==s.length||S&&0!=t.length?n<0?y(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=S?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s<o;++s)C(t,String(s))?a.push(h(e,t,r,n,String(s),!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(h(e,t,r,n,i,!0))}),a}(e,t,n,o,s):s.map(function(r){return h(e,t,n,o,r,S)}),e.seen.pop(),function(e,t,r){return e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,w,T)):T[0]+w+T[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,a){var s,o,l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(l.get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),C(n,i)||(s="["+i+"]"),o||(e.seen.indexOf(l.value)<0?(o=m(r)?u(e,l.value,null):u(e,l.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n")):o=e.stylize("[Circular]","special")),b(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function d(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function y(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"===P(e)&&null!==e}function _(e){return w(e)&&"[object Date]"===S(e)}function k(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function x(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(b(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=t.pid;s[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else s[e]=function(){};return s[e]},r.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=p,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=v,r.isString=g,r.isSymbol=function(e){return"symbol"===P(e)},r.isUndefined=b,r.isRegExp=y,r.isObject=w,r.isDate=_,r.isError=k,r.isFunction=x,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===P(e)||void 0===e},r.isBuffer=e("./support/isBuffer");var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(t=[T((e=/* @__PURE__ */new Date).getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),E[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return f.default}});var n=h(e("./v1.js")),i=h(e("./v3.js")),a=h(e("./v4.js")),s=h(e("./v5.js")),o=h(e("./nil.js")),l=h(e("./version.js")),c=h(e("./validate.js")),u=h(e("./stringify.js")),f=h(e("./parse.js"));function h(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,t,r){function n(e){return 14+(e+64>>>9<<4)+1}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,n,a,s){return i((o=i(i(t,e),i(n,s)))<<(l=a)|o>>>32-l,r);var o,l}function s(e,t,r,n,i,s,o){return a(t&r|~t&n,e,t,i,s,o)}function o(e,t,r,n,i,s,o){return a(t&n|r&~n,e,t,i,s,o)}function l(e,t,r,n,i,s,o){return a(t^r^n,e,t,i,s,o)}function c(e,t,r,n,i,s,o){return a(r^(t|~n),e,t,i,s,o)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var a=e[i>>5]>>>i%32&255,s=parseInt(n.charAt(a>>>4&15)+n.charAt(15&a),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;for(var r=1732584193,a=-271733879,u=-1732584194,f=271733878,h=0;h<e.length;h+=16){var d=r,p=a,m=u,v=f;r=s(r,a,u,f,e[h],7,-680876936),f=s(f,r,a,u,e[h+1],12,-389564586),u=s(u,f,r,a,e[h+2],17,606105819),a=s(a,u,f,r,e[h+3],22,-1044525330),r=s(r,a,u,f,e[h+4],7,-176418897),f=s(f,r,a,u,e[h+5],12,1200080426),u=s(u,f,r,a,e[h+6],17,-1473231341),a=s(a,u,f,r,e[h+7],22,-45705983),r=s(r,a,u,f,e[h+8],7,1770035416),f=s(f,r,a,u,e[h+9],12,-1958414417),u=s(u,f,r,a,e[h+10],17,-42063),a=s(a,u,f,r,e[h+11],22,-1990404162),r=s(r,a,u,f,e[h+12],7,1804603682),f=s(f,r,a,u,e[h+13],12,-40341101),u=s(u,f,r,a,e[h+14],17,-1502002290),r=o(r,a=s(a,u,f,r,e[h+15],22,1236535329),u,f,e[h+1],5,-165796510),f=o(f,r,a,u,e[h+6],9,-1069501632),u=o(u,f,r,a,e[h+11],14,643717713),a=o(a,u,f,r,e[h],20,-373897302),r=o(r,a,u,f,e[h+5],5,-701558691),f=o(f,r,a,u,e[h+10],9,38016083),u=o(u,f,r,a,e[h+15],14,-660478335),a=o(a,u,f,r,e[h+4],20,-405537848),r=o(r,a,u,f,e[h+9],5,568446438),f=o(f,r,a,u,e[h+14],9,-1019803690),u=o(u,f,r,a,e[h+3],14,-187363961),a=o(a,u,f,r,e[h+8],20,1163531501),r=o(r,a,u,f,e[h+13],5,-1444681467),f=o(f,r,a,u,e[h+2],9,-51403784),u=o(u,f,r,a,e[h+7],14,1735328473),r=l(r,a=o(a,u,f,r,e[h+12],20,-1926607734),u,f,e[h+5],4,-378558),f=l(f,r,a,u,e[h+8],11,-2022574463),u=l(u,f,r,a,e[h+11],16,1839030562),a=l(a,u,f,r,e[h+14],23,-35309556),r=l(r,a,u,f,e[h+1],4,-1530992060),f=l(f,r,a,u,e[h+4],11,1272893353),u=l(u,f,r,a,e[h+7],16,-155497632),a=l(a,u,f,r,e[h+10],23,-1094730640),r=l(r,a,u,f,e[h+13],4,681279174),f=l(f,r,a,u,e[h],11,-358537222),u=l(u,f,r,a,e[h+3],16,-722521979),a=l(a,u,f,r,e[h+6],23,76029189),r=l(r,a,u,f,e[h+9],4,-640364487),f=l(f,r,a,u,e[h+12],11,-421815835),u=l(u,f,r,a,e[h+15],16,530742520),r=c(r,a=l(a,u,f,r,e[h+2],23,-995338651),u,f,e[h],6,-198630844),f=c(f,r,a,u,e[h+7],10,1126891415),u=c(u,f,r,a,e[h+14],15,-1416354905),a=c(a,u,f,r,e[h+5],21,-57434055),r=c(r,a,u,f,e[h+12],6,1700485571),f=c(f,r,a,u,e[h+3],10,-1894986606),u=c(u,f,r,a,e[h+10],15,-1051523),a=c(a,u,f,r,e[h+1],21,-2054922799),r=c(r,a,u,f,e[h+8],6,1873313359),f=c(f,r,a,u,e[h+15],10,-30611744),u=c(u,f,r,a,e[h+6],15,-1560198380),a=c(a,u,f,r,e[h+13],21,1309151649),r=c(r,a,u,f,e[h+4],6,-145523070),f=c(f,r,a,u,e[h+11],10,-1120210379),u=c(u,f,r,a,e[h+2],15,718787259),a=c(a,u,f,r,e[h+9],21,-343485551),r=i(r,d),a=i(a,p),u=i(u,m),f=i(f,v)}return[r,a,u,f]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(n(t)),i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))}},{}],530:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n};r.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},{"./validate.js":541}],532:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,t,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};var i=new Uint8Array(16)},{}],534:[function(e,t,r){function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,l=Math.ceil(o/16),c=new Array(l),u=0;u<l;++u){for(var f=new Uint32Array(16),h=0;h<16;++h)f[h]=e[64*u+4*h]<<24|e[64*u+4*h+1]<<16|e[64*u+4*h+2]<<8|e[64*u+4*h+3];c[u]=f}c[l-1][14]=8*(e.length-1)/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<l;++d){for(var p=new Uint32Array(80),m=0;m<16;++m)p[m]=c[d][m];for(var v=16;v<80;++v)p[v]=i(p[v-3]^p[v-8]^p[v-14]^p[v-16],1);for(var g=r[0],b=r[1],y=r[2],w=r[3],_=r[4],k=0;k<80;++k){var x=Math.floor(k/20),S=i(g,5)+n(x,b,y,w)+_+t[x]+p[k]>>>0;_=w,w=y,y=i(b,30)>>>0,b=g,g=S}r[0]=r[0]+g>>>0,r[1]=r[1]+b>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+w>>>0,r[4]=r[4]+_>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{}],535:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n};for(var a=[],s=0;s<256;++s)a.push((s+256).toString(16).substr(1));r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase();if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":541}],536:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i,a=o(e("./rng.js")),s=o(e("./stringify.js"));function o(e){return e&&e.__esModule?e:{default:e}}var l=0,c=0;r.default=function(e,t,r){var o=t&&r||0,u=t||new Array(16),f=(e=e||{}).node||n,h=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==h){var d=e.random||(e.rng||a.default)();null==f&&(f=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==h&&(h=i=16383&(d[6]<<8|d[7]))}var p=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:c+1,v=p-l+(m-c)/1e4;if(v<0&&void 0===e.clockseq&&(h=h+1&16383),(v<0||p>l)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,c=m,i=h;var g=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;u[o++]=g>>>24&255,u[o++]=g>>>16&255,u[o++]=g>>>8&255,u[o++]=255&g;var b=p/4294967296*1e4&268435455;u[o++]=b>>>8&255,u[o++]=255&b,u[o++]=b>>>24&15|16,u[o++]=b>>>16&255,u[o++]=h>>>8|128,u[o++]=255&h;for(var y=0;y<6;++y)u[o+y]=f[y];return t||(0,s.default)(u)}},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(e("./v35.js")),i=a(e("./md5.js"));function a(e){return e&&e.__esModule?e:{default:e}}r.default=(0,n.default)("v3",48,i.default)},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){function a(e,a,s,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof a&&(a=(0,i.default)(a)),16!==a.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+e.length);if(l.set(a),l.set(e,a.length),(l=r(l))[6]=15&l[6]|t,l[8]=63&l[8]|128,s){o=o||0;for(var c=0;c<16;++c)s[o+c]=l[c];return s}return(0,n.default)(l)}try{a.name=e}catch(l){}return a.DNS=s,a.URL=o,a},r.URL=r.DNS=void 0;var n=a(e("./stringify.js")),i=a(e("./parse.js"));function a(e){return e&&e.__esModule?e:{default:e}}var s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=s;var o="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=o},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(e("./rng.js")),i=a(e("./stringify.js"));function a(e){return e&&e.__esModule?e:{default:e}}r.default=function(e,t,r){var a=(e=e||{}).random||(e.rng||n.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=a[s];return t}return(0,i.default)(a)}},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=a(e("./v35.js")),i=a(e("./sha1.js"));function a(e){return e&&e.__esModule?e:{default:e}}r.default=(0,n.default)("v5",80,i.default)},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("./regex.js"))&&n.__esModule?n:{default:n};r.default=function(e){return"string"==typeof e&&i.default.test(e)}},{"./regex.js":532}],542:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n};r.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},{"./validate.js":541}],543:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CHAR="\t\n\r --�𐀀-",r.S=" \t\r\n",r.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",r.NAME_CHAR="-"+r.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.CHAR_RE=new RegExp("^["+r.CHAR+"]$","u"),r.S_RE=new RegExp("^["+r.S+"]+$","u"),r.NAME_START_CHAR_RE=new RegExp("^["+r.NAME_START_CHAR+"]$","u"),r.NAME_CHAR_RE=new RegExp("^["+r.NAME_CHAR+"]$","u"),r.NAME_RE=new RegExp("^["+r.NAME_START_CHAR+"]["+r.NAME_CHAR+"]*$","u"),r.NMTOKEN_RE=new RegExp("^["+r.NAME_CHAR+"]+$","u");function n(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}r.S_LIST=[32,10,13,9],r.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isS=function(e){return 32===e||10===e||13===e||9===e},r.isNameStartChar=n,r.isNameChar=function(e){return n(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],544:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CHAR="--�𐀀-",r.RESTRICTED_CHAR="-\b\v\f---",r.S=" \t\r\n",r.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",r.NAME_CHAR="-"+r.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.CHAR_RE=new RegExp("^["+r.CHAR+"]$","u"),r.RESTRICTED_CHAR_RE=new RegExp("^["+r.RESTRICTED_CHAR+"]$","u"),r.S_RE=new RegExp("^["+r.S+"]+$","u"),r.NAME_START_CHAR_RE=new RegExp("^["+r.NAME_START_CHAR+"]$","u"),r.NAME_CHAR_RE=new RegExp("^["+r.NAME_CHAR+"]$","u"),r.NAME_RE=new RegExp("^["+r.NAME_START_CHAR+"]["+r.NAME_CHAR+"]*$","u"),r.NMTOKEN_RE=new RegExp("^["+r.NAME_CHAR+"]+$","u");function n(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}r.S_LIST=[32,10,13,9],r.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isRestrictedChar=function(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},r.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isS=function(e){return 32===e||10===e||13===e||9===e},r.isNameStartChar=n,r.isNameChar=function(e){return n(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],545:[function(e,t,r){function n(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",r.NC_NAME_CHAR="-"+r.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.NC_NAME_START_CHAR_RE=new RegExp("^["+r.NC_NAME_START_CHAR+"]$","u"),r.NC_NAME_CHAR_RE=new RegExp("^["+r.NC_NAME_CHAR+"]$","u"),r.NC_NAME_RE=new RegExp("^["+r.NC_NAME_START_CHAR+"]["+r.NC_NAME_CHAR+"]*$","u"),r.isNCNameStartChar=n,r.isNCNameChar=function(e){return n(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)})}),Ha=/* @__PURE__ */k(Ua());xa();var Wa=/* @__PURE__ */k(za());function Va(){return(Va=ka(/* @__PURE__ */Wa.default.mark(function e(t,r){return Wa.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=1;break}return e.abrupt("return");case 1:r instanceof ArrayBuffer&&(r=new Blob([r])),$a(t,URL.createObjectURL(r));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function $a(e,t){var r=document.createElement("a");r.download=e,r.style.display="none",r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}var Xa=/^\s+/,Ga=/\s+$/;function Ya(e,t){if(t=t||{},(e=e||"")instanceof Ya)return e;if(!(this instanceof Ya))return new Ya(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,s=!1,o=!1;"string"==typeof e&&(e=function(e){e=e.replace(Xa,"").replace(Ga,"").toLowerCase();var t,r=!1;if(hs[e])e=hs[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=Ts.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Ts.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ts.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Ts.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ts.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Ts.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ts.hex8.exec(e))?{r:gs(t[1]),g:gs(t[2]),b:gs(t[3]),a:_s(t[4]),format:r?"name":"hex8"}:(t=Ts.hex6.exec(e))?{r:gs(t[1]),g:gs(t[2]),b:gs(t[3]),format:r?"name":"hex"}:(t=Ts.hex4.exec(e))?{r:gs(t[1]+""+t[1]),g:gs(t[2]+""+t[2]),b:gs(t[3]+""+t[3]),a:_s(t[4]+""+t[4]),format:r?"name":"hex8"}:!!(t=Ts.hex3.exec(e))&&{r:gs(t[1]+""+t[1]),g:gs(t[2]+""+t[2]),b:gs(t[3]+""+t[3]),format:r?"name":"hex"}}(e));"object"==qa(e)&&(Es(e.r)&&Es(e.g)&&Es(e.b)?(l=e.r,c=e.g,u=e.b,t={r:255*ms(l,255),g:255*ms(c,255),b:255*ms(u,255)},s=!0,o="%"===String(e.r).substr(-1)?"prgb":"rgb"):Es(e.h)&&Es(e.s)&&Es(e.v)?(n=ys(e.s),i=ys(e.v),t=function(e,t,r){e=6*ms(e,360),t=ms(t,100),r=ms(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),s=r*(1-i*t),o=r*(1-(1-i)*t),l=n%6,c=[r,s,a,a,o,r][l],u=[o,r,r,s,a,a][l],f=[a,a,o,r,r,s][l];return{r:255*c,g:255*u,b:255*f}}(e.h,n,i),s=!0,o="hsv"):Es(e.h)&&Es(e.s)&&Es(e.l)&&(n=ys(e.s),a=ys(e.l),t=function(e,t,r){var n,i,a;function s(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=ms(e,360),t=ms(t,100),r=ms(r,100),0===t)n=i=a=r;else{var o=r<.5?r*(1+t):r+t-r*t,l=2*r-o;n=s(l,o,e+1/3),i=s(l,o,e),a=s(l,o,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,n,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(r=e.a));var l,c,u;return r=ps(r),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function Ka(e,t,r){e=ms(e,255),t=ms(t,255),r=ms(r,255);var n,i,a=Math.max(e,t,r),s=Math.min(e,t,r),o=(a+s)/2;if(a==s)n=i=0;else{var l=a-s;switch(i=o>.5?l/(2-a-s):l/(a+s),a){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,l:o}}function Za(e,t,r){e=ms(e,255),t=ms(t,255),r=ms(r,255);var n,i,a=Math.max(e,t,r),s=Math.min(e,t,r),o=a,l=a-s;if(i=0===a?0:l/a,a==s)n=0;else{switch(a){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,v:o}}function Ja(e,t,r,n){var i=[bs(Math.round(e).toString(16)),bs(Math.round(t).toString(16)),bs(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Qa(e,t,r,n){return[bs(ws(n)),bs(Math.round(e).toString(16)),bs(Math.round(t).toString(16)),bs(Math.round(r).toString(16))].join("")}function es(e,t){t=0===t?0:t||10;var r=Ya(e).toHsl();return r.s-=t/100,r.s=vs(r.s),Ya(r)}function ts(e,t){t=0===t?0:t||10;var r=Ya(e).toHsl();return r.s+=t/100,r.s=vs(r.s),Ya(r)}function rs(e){return Ya(e).desaturate(100)}function ns(e,t){t=0===t?0:t||10;var r=Ya(e).toHsl();return r.l+=t/100,r.l=vs(r.l),Ya(r)}function is(e,t){t=0===t?0:t||10;var r=Ya(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),Ya(r)}function as(e,t){t=0===t?0:t||10;var r=Ya(e).toHsl();return r.l-=t/100,r.l=vs(r.l),Ya(r)}function ss(e,t){var r=Ya(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,Ya(r)}function os(e){var t=Ya(e).toHsl();return t.h=(t.h+180)%360,Ya(t)}function ls(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Ya(e).toHsl(),n=[Ya(e)],i=360/t,a=1;a<t;a++)n.push(Ya({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function cs(e){var t=Ya(e).toHsl(),r=t.h;return[Ya(e),Ya({h:(r+72)%360,s:t.s,l:t.l}),Ya({h:(r+216)%360,s:t.s,l:t.l})]}function us(e,t,r){t=t||6,r=r||30;var n=Ya(e).toHsl(),i=360/r,a=[Ya(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(Ya(n));return a}function fs(e,t){t=t||6;for(var r=Ya(e).toHsv(),n=r.h,i=r.s,a=r.v,s=[],o=1/t;t--;)s.push(Ya({h:n,s:i,v:a})),a=(a+o)%1;return s}Ya.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=ps(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Za(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Za(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=Ka(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Ka(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return Ja(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,i){var a=[bs(Math.round(e).toString(16)),bs(Math.round(t).toString(16)),bs(Math.round(r).toString(16)),bs(ws(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*ms(this._r,255))+"%",g:Math.round(100*ms(this._g,255))+"%",b:Math.round(100*ms(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*ms(this._r,255))+"%, "+Math.round(100*ms(this._g,255))+"%, "+Math.round(100*ms(this._b,255))+"%)":"rgba("+Math.round(100*ms(this._r,255))+"%, "+Math.round(100*ms(this._g,255))+"%, "+Math.round(100*ms(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(ds[Ja(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Qa(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=Ya(e);r="#"+Qa(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Ya(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(ns,arguments)},brighten:function(){return this._applyModification(is,arguments)},darken:function(){return this._applyModification(as,arguments)},desaturate:function(){return this._applyModification(es,arguments)},saturate:function(){return this._applyModification(ts,arguments)},greyscale:function(){return this._applyModification(rs,arguments)},spin:function(){return this._applyModification(ss,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(us,arguments)},complement:function(){return this._applyCombination(os,arguments)},monochromatic:function(){return this._applyCombination(fs,arguments)},splitcomplement:function(){return this._applyCombination(cs,arguments)},triad:function(){return this._applyCombination(ls,[3])},tetrad:function(){return this._applyCombination(ls,[4])}},Ya.fromRatio=function(e,t){if("object"==qa(e)){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:ys(e[n]));e=r}return Ya(e,t)},Ya.equals=function(e,t){return!(!e||!t)&&Ya(e).toRgbString()==Ya(t).toRgbString()},Ya.random=function(){return Ya.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Ya.mix=function(e,t,r){r=0===r?0:r||50;var n=Ya(e).toRgb(),i=Ya(t).toRgb(),a=r/100;return Ya({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},Ya.readability=function(e,t){var r=Ya(e),n=Ya(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Ya.isReadable=function(e,t,r){var n,i=Ya.readability(e,t),a=!1;switch((n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},Ya.mostReadable=function(e,t,r){var n,i,a,s,o=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,s=r.size;for(var c=0;c<t.length;c++)(n=Ya.readability(e,t[c]))>l&&(l=n,o=Ya(t[c]));return Ya.isReadable(e,o,{level:a,size:s})||!i?o:(r.includeFallbackColors=!1,Ya.mostReadable(e,["#fff","#000"],r))};var hs=Ya.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ds=Ya.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(hs);function ps(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ms(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function vs(e){return Math.min(1,Math.max(0,e))}function gs(e){return parseInt(e,16)}function bs(e){return 1==e.length?"0"+e:""+e}function ys(e){return e<=1&&(e=100*e+"%"),e}function ws(e){return Math.round(255*parseFloat(e)).toString(16)}function _s(e){return gs(e)/255}var ks,xs,Ss,Ts=(xs="[\\s|\\(]+("+(ks="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ks+")[,|\\s]+("+ks+")\\s*\\)?",Ss="[\\s|\\(]+("+ks+")[,|\\s]+("+ks+")[,|\\s]+("+ks+")[,|\\s]+("+ks+")\\s*\\)?",{CSS_UNIT:new RegExp(ks),rgb:new RegExp("rgb"+xs),rgba:new RegExp("rgba"+Ss),hsl:new RegExp("hsl"+xs),hsla:new RegExp("hsla"+Ss),hsv:new RegExp("hsv"+xs),hsva:new RegExp("hsva"+Ss),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Es(e){return!!Ts.CSS_UNIT.exec(e)}var Cs=/* @__PURE__ */_((e,t)=>{D(),function(){var r,n="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",s=16,o=32,l=64,c=128,u=256,f=1/0,h=9007199254740991,d=NaN,p=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",o],["partialRight",l],["rearg",u]],v="[object Arguments]",g="[object Array]",b="[object Boolean]",y="[object Date]",w="[object Error]",_="[object Function]",k="[object GeneratorFunction]",x="[object Map]",S="[object Number]",T="[object Object]",E="[object Promise]",C="[object RegExp]",A="[object Set]",M="[object String]",O="[object Symbol]",R="[object WeakMap]",I="[object ArrayBuffer]",N="[object DataView]",D="[object Float32Array]",F="[object Float64Array]",j="[object Int8Array]",L="[object Int16Array]",B="[object Int32Array]",z="[object Uint8Array]",U="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Y=RegExp(X.source),K=RegExp(G.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(ne.source),ae=/^\s+/,se=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",Re="["+xe+"]",Ie="["+Me+"]",Ne="["+Se+"]",Pe="\\d+",De="["+Te+"]",Fe="["+Ee+"]",je="[^"+xe+Me+Pe+Te+Ee+Ce+"]",Le="\\ud83c[\\udffb-\\udfff]",Be="[^"+xe+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Ce+"]",We="\\u200d",Ve="(?:"+Fe+"|"+je+")",$e="(?:"+He+"|"+je+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Xe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ne+"|"+Le+")"+"?",Ye="["+Ae+"]?",Ke=Ye+Ge+("(?:"+We+"(?:"+[Be,ze,Ue].join("|")+")"+Ye+Ge+")*"),Ze="(?:"+[De,ze,Ue].join("|")+")"+Ke,Je="(?:"+[Be+Ne+"?",Ne,ze,Ue,Re].join("|")+")",Qe=RegExp(Oe,"g"),et=RegExp(Ne,"g"),tt=RegExp(Le+"(?="+Le+")|"+Je+Ke,"g"),rt=RegExp([He+"?"+Fe+"+"+qe+"(?="+[Ie,He,"$"].join("|")+")",$e+"+"+Xe+"(?="+[Ie,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+qe,He+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ze].join("|"),"g"),nt=RegExp("["+We+xe+Se+Ae+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ot={};ot[D]=ot[F]=ot[j]=ot[L]=ot[B]=ot[z]=ot[U]=ot[H]=ot[W]=!0,ot[v]=ot[g]=ot[I]=ot[b]=ot[N]=ot[y]=ot[w]=ot[_]=ot[x]=ot[S]=ot[T]=ot[C]=ot[A]=ot[M]=ot[R]=!1;var lt={};lt[v]=lt[g]=lt[I]=lt[N]=lt[b]=lt[y]=lt[D]=lt[F]=lt[j]=lt[L]=lt[B]=lt[x]=lt[S]=lt[T]=lt[C]=lt[A]=lt[M]=lt[O]=lt[z]=lt[U]=lt[H]=lt[W]=!0,lt[w]=lt[_]=lt[R]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ft=parseInt,ht="object"==("undefined"==typeof global?"undefined":P(global))&&global&&global.Object===Object&&global,dt="object"==("undefined"==typeof self?"undefined":P(self))&&self&&self.Object===Object&&self,pt=ht||dt||Function("return this")(),mt="object"==(void 0===e?"undefined":P(e))&&e&&!e.nodeType&&e,vt=mt&&"object"==(void 0===t?"undefined":P(t))&&t&&!t.nodeType&&t,gt=vt&&vt.exports===mt,bt=gt&&ht.process,yt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),wt=yt&&yt.isArrayBuffer,_t=yt&&yt.isDate,kt=yt&&yt.isMap,xt=yt&&yt.isRegExp,St=yt&&yt.isSet,Tt=yt&&yt.isTypedArray;function Et(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 Ct(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var s=e[i];t(n,s,r(s),e)}return n}function At(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Mt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Ot(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Rt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}function It(e,t){return!(null==e||!e.length)&&Ht(e,t,0)>-1}function Nt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function Pt(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Dt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Ft(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function jt(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function Lt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Bt=qt("length");function zt(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function Ut(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Ht(e,t,r){return t==t?function(e,t,r){var n=r-1,i=e.length;for(;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Ut(e,Vt,r)}function Wt(e,t,r,n){for(var i=r-1,a=e.length;++i<a;)if(n(e[i],t))return i;return-1}function Vt(e){return e!=e}function $t(e,t){var r=null==e?0:e.length;return r?Yt(e,t)/r:d}function qt(e){return function(t){return null==t?r:t[e]}}function Xt(e){return function(t){return null==e?r:e[t]}}function Gt(e,t,r,n,i){return i(e,function(e,i,a){r=n?(n=!1,e):t(r,e,i,a)}),r}function Yt(e,t){for(var n,i=-1,a=e.length;++i<a;){var s=t(e[i]);s!==r&&(n=n===r?s:n+s)}return n}function Kt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Zt(e){return e?e.slice(0,pr(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function Qt(e,t){return Pt(t,function(t){return e[t]})}function er(e,t){return e.has(t)}function tr(e,t){for(var r=-1,n=e.length;++r<n&&Ht(t,e[r],0)>-1;);return r}function rr(e,t){for(var r=e.length;r--&&Ht(t,e[r],0)>-1;);return r}var nr=Xt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ir=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(e){return"\\"+ct[e]}function sr(e){return nt.test(e)}function or(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function lr(e,t){return function(r){return e(t(r))}}function cr(e,t){for(var r=-1,n=e.length,i=0,s=[];++r<n;){var o=e[r];o!==t&&o!==a||(e[r]=a,s[i++]=r)}return s}function ur(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function fr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function hr(e){return sr(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Bt(e)}function dr(e){return sr(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function pr(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var mr=Xt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vr=function e(t){var se,xe=(t=null==t?pt:vr.defaults(pt.Object(),t,vr.pick(pt,at))).Array,Se=t.Date,Te=t.Error,Ee=t.Function,Ce=t.Math,Ae=t.Object,Me=t.RegExp,Oe=t.String,Re=t.TypeError,Ie=xe.prototype,Ne=Ee.prototype,Pe=Ae.prototype,De=t["__core-js_shared__"],Fe=Ne.toString,je=Pe.hasOwnProperty,Le=0,Be=(se=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+se:"",ze=Pe.toString,Ue=Fe.call(Ae),He=pt._,We=Me("^"+Fe.call(je).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=gt?t.Buffer:r,$e=t.Symbol,qe=t.Uint8Array,Xe=Ve?Ve.allocUnsafe:r,Ge=lr(Ae.getPrototypeOf,Ae),Ye=Ae.create,Ke=Pe.propertyIsEnumerable,Ze=Ie.splice,Je=$e?$e.isConcatSpreadable:r,tt=$e?$e.iterator:r,nt=$e?$e.toStringTag:r,ct=function(){try{var e=da(Ae,"defineProperty");return e({},"",{}),e}catch(t){}}(),ht=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,dt=Se&&Se.now!==pt.Date.now&&Se.now,mt=t.setTimeout!==pt.setTimeout&&t.setTimeout,vt=Ce.ceil,bt=Ce.floor,yt=Ae.getOwnPropertySymbols,Bt=Ve?Ve.isBuffer:r,Xt=t.isFinite,gr=Ie.join,br=lr(Ae.keys,Ae),yr=Ce.max,wr=Ce.min,_r=Se.now,kr=t.parseInt,xr=Ce.random,Sr=Ie.reverse,Tr=da(t,"DataView"),Er=da(t,"Map"),Cr=da(t,"Promise"),Ar=da(t,"Set"),Mr=da(t,"WeakMap"),Or=da(Ae,"create"),Rr=Mr&&new Mr,Ir={},Nr=Ba(Tr),Pr=Ba(Er),Dr=Ba(Cr),Fr=Ba(Ar),jr=Ba(Mr),Lr=$e?$e.prototype:r,Br=Lr?Lr.valueOf:r,zr=Lr?Lr.toString:r;function Ur(e){if(ro(e)&&!$s(e)&&!(e instanceof $r)){if(e instanceof Vr)return e;if(je.call(e,"__wrapped__"))return za(e)}return new Vr(e)}var Hr=function(){function e(){}return function(t){if(!to(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Wr(){}function Vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function $r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Xr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Yr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Gr;++t<r;)this.add(e[t])}function Kr(e){this.size=(this.__data__=new Xr(e)).size}function Zr(e,t){var r=$s(e),n=!r&&Vs(e),i=!r&&!n&&Ys(e),a=!r&&!n&&!i&&uo(e),s=r||n||i||a,o=s?Kt(e.length,Oe):[],l=o.length;for(var c in e)!t&&!je.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||wa(c,l))||o.push(c);return o}function Jr(e){var t=e.length;return t?e[Kn(0,t-1)]:r}function Qr(e,t){return Fa(Ri(e),cn(t,0,e.length))}function en(e){return Fa(Ri(e))}function tn(e,t,n){(n!==r&&!Us(e[t],n)||n===r&&!(t in e))&&on(e,t,n)}function rn(e,t,n){var i=e[t];je.call(e,t)&&Us(i,n)&&(n!==r||t in e)||on(e,t,n)}function nn(e,t){for(var r=e.length;r--;)if(Us(e[r][0],t))return r;return-1}function an(e,t,r,n){return pn(e,function(e,i,a){t(n,e,r(e),a)}),n}function sn(e,t){return e&&Ii(t,No(t),e)}function on(e,t,r){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ln(e,t){for(var n=-1,i=t.length,a=xe(i),s=null==e;++n<i;)a[n]=s?r:Ao(e,t[n]);return a}function cn(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function un(e,t,n,i,a,s){var o,l=1&t,c=2&t,u=4&t;if(n&&(o=a?n(e,i,a,s):n(e)),o!==r)return o;if(!to(e))return e;var f=$s(e);if(f){if(o=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!l)return Ri(e,o)}else{var h=va(e),d=h==_||h==k;if(Ys(e))return Ti(e,l);if(h==T||h==v||d&&!a){if(o=c||d?{}:ba(e),!l)return c?function(e,t){return Ii(e,ma(e),t)}(e,function(e,t){return e&&Ii(t,Po(t),e)}(o,e)):function(e,t){return Ii(e,pa(e),t)}(e,sn(o,e))}else{if(!lt[h])return a?e:{};o=function(e,t,r){var n=e.constructor;switch(t){case I:return Ei(e);case b:case y:return new n(+e);case N:return function(e,t){var r=t?Ei(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case D:case F:case j:case L:case B:case z:case U:case H:case W:return Ci(e,r);case x:return new n;case S:case M:return new n(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new n;case O:return i=e,Br?Ae(Br.call(i)):{}}var i}(e,h,l)}}s||(s=new Kr);var p=s.get(e);if(p)return p;s.set(e,o),oo(e)?e.forEach(function(r){o.add(un(r,t,n,r,e,s))}):no(e)&&e.forEach(function(r,i){o.set(i,un(r,t,n,i,e,s))});var m=f?r:(u?c?sa:aa:c?Po:No)(e);return At(m||e,function(r,i){m&&(r=e[i=r]),rn(o,i,un(r,t,n,i,e,s))}),o}function fn(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ae(e);i--;){var a=n[i],s=t[a],o=e[a];if(o===r&&!(a in e)||!s(o))return!1}return!0}function hn(e,t,i){if("function"!=typeof e)throw new Re(n);return Ia(function(){e.apply(r,i)},t)}function dn(e,t,r,n){var i=-1,a=It,s=!0,o=e.length,l=[],c=t.length;if(!o)return l;r&&(t=Pt(t,Jt(r))),n?(a=Nt,s=!1):t.length>=200&&(a=er,s=!1,t=new Yr(t));e:for(;++i<o;){var u=e[i],f=null==r?u:r(u);if(u=n||0!==u?u:0,s&&f==f){for(var h=c;h--;)if(t[h]===f)continue e;l.push(u)}else a(t,f,n)||l.push(u)}return l}Ur.templateSettings={escape:Z,evaluate:J,interpolate:Q,variable:"",imports:{_:Ur}},Ur.prototype=Wr.prototype,Ur.prototype.constructor=Ur,Vr.prototype=Hr(Wr.prototype),Vr.prototype.constructor=Vr,$r.prototype=Hr(Wr.prototype),$r.prototype.constructor=$r,qr.prototype.clear=function(){this.__data__=Or?Or(null):{},this.size=0},qr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qr.prototype.get=function(e){var t=this.__data__;if(Or){var n=t[e];return n===i?r:n}return je.call(t,e)?t[e]:r},qr.prototype.has=function(e){var t=this.__data__;return Or?t[e]!==r:je.call(t,e)},qr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Or&&t===r?i:t,this},Xr.prototype.clear=function(){this.__data__=[],this.size=0},Xr.prototype.delete=function(e){var t=this.__data__,r=nn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ze.call(t,r,1),--this.size,!0)},Xr.prototype.get=function(e){var t=this.__data__,n=nn(t,e);return n<0?r:t[n][1]},Xr.prototype.has=function(e){return nn(this.__data__,e)>-1},Xr.prototype.set=function(e,t){var r=this.__data__,n=nn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(Er||Xr),string:new qr}},Gr.prototype.delete=function(e){var t=fa(this,e).delete(e);return this.size-=t?1:0,t},Gr.prototype.get=function(e){return fa(this,e).get(e)},Gr.prototype.has=function(e){return fa(this,e).has(e)},Gr.prototype.set=function(e,t){var r=fa(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Yr.prototype.add=Yr.prototype.push=function(e){return this.__data__.set(e,i),this},Yr.prototype.has=function(e){return this.__data__.has(e)},Kr.prototype.clear=function(){this.__data__=new Xr,this.size=0},Kr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Kr.prototype.get=function(e){return this.__data__.get(e)},Kr.prototype.has=function(e){return this.__data__.has(e)},Kr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Xr){var n=r.__data__;if(!Er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gr(n)}return r.set(e,t),this.size=r.size,this};var pn=Di(kn),mn=Di(xn,!0);function vn(e,t){var r=!0;return pn(e,function(e,n,i){return r=!!t(e,n,i)}),r}function gn(e,t,n){for(var i=-1,a=e.length;++i<a;){var s=e[i],o=t(s);if(null!=o&&(l===r?o==o&&!co(o):n(o,l)))var l=o,c=s}return c}function bn(e,t){var r=[];return pn(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function yn(e,t,r,n,i){var a=-1,s=e.length;for(r||(r=ya),i||(i=[]);++a<s;){var o=e[a];t>0&&r(o)?t>1?yn(o,t-1,r,n,i):Dt(i,o):n||(i[i.length]=o)}return i}var wn=Fi(),_n=Fi(!0);function kn(e,t){return e&&wn(e,t,No)}function xn(e,t){return e&&_n(e,t,No)}function Sn(e,t){return Rt(t,function(t){return Js(e[t])})}function Tn(e,t){for(var n=0,i=(t=_i(t,e)).length;null!=e&&n<i;)e=e[La(t[n++])];return n&&n==i?e:r}function En(e,t,r){var n=t(e);return $s(e)?n:Dt(n,r(e))}function Cn(e){return null==e?e===r?"[object Undefined]":"[object Null]":nt&&nt in Ae(e)?function(e){var t=je.call(e,nt),n=e[nt];try{e[nt]=r;var i=!0}catch(s){}var a=ze.call(e);i&&(t?e[nt]=n:delete e[nt]);return a}(e):function(e){return ze.call(e)}(e)}function An(e,t){return e>t}function Mn(e,t){return null!=e&&je.call(e,t)}function On(e,t){return null!=e&&t in Ae(e)}function Rn(e,t,n){for(var i=n?Nt:It,a=e[0].length,s=e.length,o=s,l=xe(s),c=1/0,u=[];o--;){var f=e[o];o&&t&&(f=Pt(f,Jt(t))),c=wr(f.length,c),l[o]=!n&&(t||a>=120&&f.length>=120)?new Yr(o&&f):r}f=e[0];var h=-1,d=l[0];e:for(;++h<a&&u.length<c;){var p=f[h],m=t?t(p):p;if(p=n||0!==p?p:0,!(d?er(d,m):i(u,m,n))){for(o=s;--o;){var v=l[o];if(!(v?er(v,m):i(e[o],m,n)))continue e}d&&d.push(m),u.push(p)}}return u}function In(e,t,n){var i=null==(e=Ma(e,t=_i(t,e)))?e:e[La(Za(t))];return null==i?r:Et(i,e,n)}function Nn(e){return ro(e)&&Cn(e)==v}function Pn(e,t,n,i,a){return e===t||(null==e||null==t||!ro(e)&&!ro(t)?e!=e&&t!=t:function(e,t,n,i,a,s){var o=$s(e),l=$s(t),c=o?g:va(e),u=l?g:va(t),f=(c=c==v?T:c)==T,h=(u=u==v?T:u)==T,d=c==u;if(d&&Ys(e)){if(!Ys(t))return!1;o=!0,f=!1}if(d&&!f)return s||(s=new Kr),o||uo(e)?na(e,t,n,i,a,s):function(e,t,r,n,i,a,s){switch(r){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!a(new qe(e),new qe(t)));case b:case y:case S:return Us(+e,+t);case w:return e.name==t.name&&e.message==t.message;case C:case M:return e==t+"";case x:var o=or;case A:var l=1&n;if(o||(o=ur),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var u=na(o(e),o(t),n,i,a,s);return s.delete(e),u;case O:if(Br)return Br.call(e)==Br.call(t)}return!1}(e,t,c,n,i,a,s);if(!(1&n)){var p=f&&je.call(e,"__wrapped__"),m=h&&je.call(t,"__wrapped__");if(p||m){var _=p?e.value():e,k=m?t.value():t;return s||(s=new Kr),a(_,k,n,i,s)}}return!!d&&(s||(s=new Kr),function(e,t,n,i,a,s){var o=1&n,l=aa(e),c=l.length;if(c!=aa(t).length&&!o)return!1;var u=c;for(;u--;){var f=l[u];if(!(o?f in t:je.call(t,f)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);var m=o;for(;++u<c;){var v=e[f=l[u]],g=t[f];if(i)var b=o?i(g,v,f,t,e,s):i(v,g,f,e,t,s);if(!(b===r?v===g||a(v,g,n,i,s):b)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,i,a,s))}(e,t,n,i,Pn,a))}function Dn(e,t,n,i){var a=n.length,s=a,o=!i;if(null==e)return!s;for(e=Ae(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=n[a])[0],u=e[c],f=l[1];if(o&&l[2]){if(u===r&&!(c in e))return!1}else{var h=new Kr;if(i)var d=i(u,f,c,e,t,h);if(!(d===r?Pn(f,u,3,i,h):d))return!1}}return!0}function Fn(e){return!(!to(e)||(t=e,Be&&Be in t))&&(Js(e)?We:ge).test(Ba(e));var t}function jn(e){return"function"==typeof e?e:null==e?al:"object"==P(e)?$s(e)?Wn(e[0],e[1]):Hn(e):pl(e)}function Ln(e){if(!Ta(e))return br(e);var t=[];for(var r in Ae(e))je.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Bn(e){if(!to(e))return function(e){var t=[];if(null!=e)for(var r in Ae(e))t.push(r);return t}(e);var t=Ta(e),r=[];for(var n in e)("constructor"!=n||!t&&je.call(e,n))&&r.push(n);return r}function zn(e,t){return e<t}function Un(e,t){var r=-1,n=Xs(e)?xe(e.length):[];return pn(e,function(e,i,a){n[++r]=t(e,i,a)}),n}function Hn(e){var t=ha(e);return 1==t.length&&t[0][2]?Ca(t[0][0],t[0][1]):function(r){return r===e||Dn(r,e,t)}}function Wn(e,t){return ka(e)&&Ea(t)?Ca(La(e),t):function(n){var i=Ao(n,e);return i===r&&i===t?Mo(n,e):Pn(t,i,3)}}function Vn(e,t,n,i,a){e!==t&&wn(t,function(s,o){if(a||(a=new Kr),to(s))!function(e,t,n,i,a,s,o){var l=Oa(e,n),c=Oa(t,n),u=o.get(c);if(u)return void tn(e,n,u);var f=s?s(l,c,n+"",e,t,o):r,h=f===r;if(h){var d=$s(c),p=!d&&Ys(c),m=!d&&!p&&uo(c);f=c,d||p||m?$s(l)?f=l:Gs(l)?f=Ri(l):p?(h=!1,f=Ti(c,!0)):m?(h=!1,f=Ci(c,!0)):f=[]:ao(c)||Vs(c)?(f=l,Vs(l)?f=yo(l):to(l)&&!Js(l)||(f=ba(c))):h=!1}h&&(o.set(c,f),a(f,c,i,s,o),o.delete(c));tn(e,n,f)}(e,t,o,n,Vn,i,a);else{var l=i?i(Oa(e,o),s,o+"",e,t,a):r;l===r&&(l=s),tn(e,o,l)}},Po)}function $n(e,t){var n=e.length;if(n)return wa(t+=t<0?n:0,n)?e[t]:r}function qn(e,t,r){t=t.length?Pt(t,function(e){return $s(e)?function(t){return Tn(t,1===e.length?e[0]:e)}:e}):[al];var n=-1;return t=Pt(t,Jt(ua())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(Un(e,function(e,r,i){var a=Pt(t,function(t){return t(e)});return{criteria:a,index:++n,value:e}}),function(e,t){return function(e,t,r){var n=-1,i=e.criteria,a=t.criteria,s=i.length,o=r.length;for(;++n<s;){var l=Ai(i[n],a[n]);if(l)return n>=o?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)})}function Xn(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var s=t[n],o=Tn(e,s);r(o,s)&&ti(a,_i(s,e),o)}return a}function Gn(e,t,r,n){var i=n?Wt:Ht,a=-1,s=t.length,o=e;for(e===t&&(t=Ri(t)),r&&(o=Pt(e,Jt(r)));++a<s;)for(var l=0,c=t[a],u=r?r(c):c;(l=i(o,u,l,n))>-1;)o!==e&&Ze.call(o,l,1),Ze.call(e,l,1);return e}function Yn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==a){var a=i;wa(i)?Ze.call(e,i,1):di(e,i)}}return e}function Kn(e,t){return e+bt(xr()*(t-e+1))}function Zn(e,t){var r="";if(!e||t<1||t>h)return r;do{t%2&&(r+=e),(t=bt(t/2))&&(e+=e)}while(t);return r}function Jn(e,t){return Na(Aa(e,t,al),e+"")}function Qn(e){return Jr(Ho(e))}function ei(e,t){var r=Ho(e);return Fa(r,cn(t,0,r.length))}function ti(e,t,n,i){if(!to(e))return e;for(var a=-1,s=(t=_i(t,e)).length,o=s-1,l=e;null!=l&&++a<s;){var c=La(t[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=o){var f=l[c];(u=i?i(f,c,l):r)===r&&(u=to(f)?f:wa(t[a+1])?[]:{})}rn(l,c,u),l=l[c]}return e}var ri=Rr?function(e,t){return Rr.set(e,t),e}:al,ni=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:rl(t),writable:!0})}:al;function ii(e){return Fa(Ho(e))}function ai(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=xe(i);++n<i;)a[n]=e[n+t];return a}function si(e,t){var r;return pn(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function oi(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var a=n+i>>>1,s=e[a];null!==s&&!co(s)&&(r?s<=t:s<t)?n=a+1:i=a}return i}return li(e,t,al,r)}function li(e,t,n,i){var a=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,l=null===t,c=co(t),u=t===r;a<s;){var f=bt((a+s)/2),h=n(e[f]),d=h!==r,p=null===h,m=h==h,v=co(h);if(o)var g=i||m;else g=u?m&&(i||d):l?m&&d&&(i||!p):c?m&&d&&!p&&(i||!v):!p&&!v&&(i?h<=t:h<t);g?a=f+1:s=f}return wr(s,4294967294)}function ci(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var s=e[r],o=t?t(s):s;if(!r||!Us(o,l)){var l=o;a[i++]=0===s?0:s}}return a}function ui(e){return"number"==typeof e?e:co(e)?d:+e}function fi(e){if("string"==typeof e)return e;if($s(e))return Pt(e,fi)+"";if(co(e))return zr?zr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function hi(e,t,r){var n=-1,i=It,a=e.length,s=!0,o=[],l=o;if(r)s=!1,i=Nt;else if(a>=200){var c=t?null:Zi(e);if(c)return ur(c);s=!1,i=er,l=new Yr}else l=t?[]:o;e:for(;++n<a;){var u=e[n],f=t?t(u):u;if(u=r||0!==u?u:0,s&&f==f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),o.push(u)}else i(l,f,r)||(l!==o&&l.push(f),o.push(u))}return o}function di(e,t){var r=-1,n=(t=_i(t,e)).length;if(!n)return!0;for(;++r<n;){var i=La(t[r]);if("__proto__"===i&&!je.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&r<n-1)return!1}var a=Ma(e,t);return null==a||delete a[La(Za(t))]}function pi(e,t,r,n){return ti(e,t,r(Tn(e,t)),n)}function mi(e,t,r,n){for(var i=e.length,a=n?i:-1;(n?a--:++a<i)&&t(e[a],a,e););return r?ai(e,n?0:a,n?a+1:i):ai(e,n?a+1:0,n?i:a)}function vi(e,t){var r=e;return r instanceof $r&&(r=r.value()),Ft(t,function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))},r)}function gi(e,t,r){var n=e.length;if(n<2)return n?hi(e[0]):[];for(var i=-1,a=xe(n);++i<n;)for(var s=e[i],o=-1;++o<n;)o!=i&&(a[i]=dn(a[i]||s,e[o],t,r));return hi(yn(a,1),t,r)}function bi(e,t,n){for(var i=-1,a=e.length,s=t.length,o={};++i<a;){var l=i<s?t[i]:r;n(o,e[i],l)}return o}function yi(e){return Gs(e)?e:[]}function wi(e){return"function"==typeof e?e:al}function _i(e,t){return $s(e)?e:ka(e,t)?[e]:ja(wo(e))}var ki=Jn;function xi(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ai(e,t,n)}var Si=ht||function(e){return pt.clearTimeout(e)};function Ti(e,t){if(t)return e.slice();var r=e.length,n=Xe?Xe(r):new e.constructor(r);return e.copy(n),n}function Ei(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Ci(e,t){var r=t?Ei(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ai(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,s=co(e),o=t!==r,l=null===t,c=t==t,u=co(t);if(!l&&!u&&!s&&e>t||s&&o&&c&&!l&&!u||i&&o&&c||!n&&c||!a)return 1;if(!i&&!s&&!u&&e<t||u&&n&&a&&!i&&!s||l&&n&&a||!o&&a||!c)return-1}return 0}function Mi(e,t,r,n){for(var i=-1,a=e.length,s=r.length,o=-1,l=t.length,c=yr(a-s,0),u=xe(l+c),f=!n;++o<l;)u[o]=t[o];for(;++i<s;)(f||i<a)&&(u[r[i]]=e[i]);for(;c--;)u[o++]=e[i++];return u}function Oi(e,t,r,n){for(var i=-1,a=e.length,s=-1,o=r.length,l=-1,c=t.length,u=yr(a-o,0),f=xe(u+c),h=!n;++i<u;)f[i]=e[i];for(var d=i;++l<c;)f[d+l]=t[l];for(;++s<o;)(h||i<a)&&(f[d+r[s]]=e[i++]);return f}function Ri(e,t){var r=-1,n=e.length;for(t||(t=xe(n));++r<n;)t[r]=e[r];return t}function Ii(e,t,n,i){var a=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],c=i?i(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),a?on(n,l,c):rn(n,l,c)}return n}function Ni(e,t){return function(r,n){var i=$s(r)?Ct:an,a=t?t():{};return i(r,e,ua(n,2),a)}}function Pi(e){return Jn(function(t,n){var i=-1,a=n.length,s=a>1?n[a-1]:r,o=a>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(a--,s):r,o&&_a(n[0],n[1],o)&&(s=a<3?r:s,a=1),t=Ae(t);++i<a;){var l=n[i];l&&e(t,l,i,s)}return t})}function Di(e,t){return function(r,n){if(null==r)return r;if(!Xs(r))return e(r,n);for(var i=r.length,a=t?i:-1,s=Ae(r);(t?a--:++a<i)&&!1!==n(s[a],a,s););return r}}function Fi(e){return function(t,r,n){for(var i=-1,a=Ae(t),s=n(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===r(a[l],l,a))break}return t}}function ji(e){return function(t){var n=sr(t=wo(t))?dr(t):r,i=n?n[0]:t.charAt(0),a=n?xi(n,1).join(""):t.slice(1);return i[e]()+a}}function Li(e){return function(t){return Ft(Qo($o(t).replace(Qe,"")),e,"")}}function Bi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Hr(e.prototype),n=e.apply(r,t);return to(n)?n:r}}function zi(e){return function(t,n,i){var a=Ae(t);if(!Xs(t)){var s=ua(n,3);t=No(t),n=function(e){return s(a[e],e,a)}}var o=e(t,n,i);return o>-1?a[s?t[o]:o]:r}}function Ui(e){return ia(function(t){var i=t.length,a=i,s=Vr.prototype.thru;for(e&&t.reverse();a--;){var o=t[a];if("function"!=typeof o)throw new Re(n);if(s&&!l&&"wrapper"==la(o))var l=new Vr([],!0)}for(a=l?a:i;++a<i;){var c=la(o=t[a]),u="wrapper"==c?oa(o):r;l=u&&xa(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[la(u[0])].apply(l,u[3]):1==o.length&&xa(o)?l[c]():l.thru(o)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&$s(r))return l.plant(r).value();for(var n=0,a=i?t[n].apply(this,e):r;++n<i;)a=t[n].call(this,a);return a}})}function Hi(e,t,n,i,a,s,o,l,u,f){var h=t&c,d=1&t,p=2&t,m=24&t,v=512&t,g=p?r:Bi(e);return function c(){for(var b=arguments.length,y=xe(b),w=b;w--;)y[w]=arguments[w];if(m)var _=ca(c),k=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(y,_);if(i&&(y=Mi(y,i,a,m)),s&&(y=Oi(y,s,o,m)),b-=k,m&&b<f){var x=cr(y,_);return Yi(e,t,Hi,c.placeholder,n,y,x,l,u,f-b)}var S=d?n:this,T=p?S[e]:e;return b=y.length,l?y=function(e,t){var n=e.length,i=wr(t.length,n),a=Ri(e);for(;i--;){var s=t[i];e[i]=wa(s,n)?a[s]:r}return e}(y,l):v&&b>1&&y.reverse(),h&&u<b&&(y.length=u),this&&this!==pt&&this instanceof c&&(T=g||Bi(T)),T.apply(S,y)}}function Wi(e,t){return function(r,n){return function(e,t,r,n){return kn(e,function(e,i,a){t(n,r(e),i,a)}),n}(r,e,t(n),{})}}function Vi(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;"string"==typeof n||"string"==typeof i?(n=fi(n),i=fi(i)):(n=ui(n),i=ui(i)),a=e(n,i)}return a}}function $i(e){return ia(function(t){return t=Pt(t,Jt(ua())),Jn(function(r){var n=this;return e(t,function(e){return Et(e,n,r)})})})}function qi(e,t){var n=(t=t===r?" ":fi(t)).length;if(n<2)return n?Zn(t,e):t;var i=Zn(t,vt(e/hr(t)));return sr(t)?xi(dr(i),0,e).join(""):i.slice(0,e)}function Xi(e){return function(t,n,i){return i&&"number"!=typeof i&&_a(t,n,i)&&(n=i=r),t=mo(t),n===r?(n=t,t=0):n=mo(n),function(e,t,r,n){for(var i=-1,a=yr(vt((t-e)/(r||1)),0),s=xe(a);a--;)s[n?a:++i]=e,e+=r;return s}(t,n,i=i===r?t<n?1:-1:mo(i),e)}}function Gi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=bo(t),r=bo(r)),e(t,r)}}function Yi(e,t,n,i,a,s,c,u,f,h){var d=8&t;t|=d?o:l,4&(t&=~(d?l:o))||(t&=-4);var p=[e,t,a,d?s:r,d?c:r,d?r:s,d?r:c,u,f,h],m=n.apply(r,p);return xa(e)&&Ra(m,p),m.placeholder=i,Pa(m,e,t)}function Ki(e){var t=Ce[e];return function(e,r){if(e=bo(e),(r=null==r?0:wr(vo(r),292))&&Xt(e)){var n=(wo(e)+"e").split("e");return+((n=(wo(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Zi=Ar&&1/ur(new Ar([,-0]))[1]==f?function(e){return new Ar(e)}:ul;function Ji(e){return function(t){var r=va(t);return r==x?or(t):r==A?fr(t):function(e,t){return Pt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Qi(e,t,i,f,h,d,p,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Re(n);var g=f?f.length:0;if(g||(t&=-97,f=h=r),p=p===r?p:yr(vo(p),0),m=m===r?m:vo(m),g-=h?h.length:0,t&l){var b=f,y=h;f=h=r}var w=v?r:oa(e),_=[e,t,i,f,h,b,y,d,p,m];if(w&&function(e,t){var r=e[1],n=t[1],i=r|n,s=i<131,o=n==c&&8==r||n==c&&r==u&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!s&&!o)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var f=e[3];e[3]=f?Mi(f,l,t[4]):l,e[4]=f?cr(e[3],a):t[4]}(l=t[5])&&(f=e[5],e[5]=f?Oi(f,l,t[6]):l,e[6]=f?cr(e[5],a):t[6]);(l=t[7])&&(e[7]=l);n&c&&(e[8]=null==e[8]?t[8]:wr(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(_,w),e=_[0],t=_[1],i=_[2],f=_[3],h=_[4],!(m=_[9]=_[9]===r?v?0:e.length:yr(_[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==s?function(e,t,n){var i=Bi(e);return function a(){for(var s=arguments.length,o=xe(s),l=s,c=ca(a);l--;)o[l]=arguments[l];var u=s<3&&o[0]!==c&&o[s-1]!==c?[]:cr(o,c);return(s-=u.length)<n?Yi(e,t,Hi,a.placeholder,r,o,u,r,r,n-s):Et(this&&this!==pt&&this instanceof a?i:e,this,o)}}(e,t,m):t!=o&&33!=t||h.length?Hi.apply(r,_):function(e,t,r,n){var i=1&t,a=Bi(e);return function t(){for(var s=-1,o=arguments.length,l=-1,c=n.length,u=xe(c+o),f=this&&this!==pt&&this instanceof t?a:e;++l<c;)u[l]=n[l];for(;o--;)u[l++]=arguments[++s];return Et(f,i?r:this,u)}}(e,t,i,f);else var k=function(e,t,r){var n=1&t,i=Bi(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,i);return Pa((w?ri:Ra)(k,_),e,t)}function ea(e,t,n,i){return e===r||Us(e,Pe[n])&&!je.call(i,n)?t:e}function ta(e,t,n,i,a,s){return to(e)&&to(t)&&(s.set(t,e),Vn(e,t,r,ta,s),s.delete(t)),e}function ra(e){return ao(e)?r:e}function na(e,t,n,i,a,s){var o=1&n,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var h=-1,d=!0,p=2&n?new Yr:r;for(s.set(e,t),s.set(t,e);++h<l;){var m=e[h],v=t[h];if(i)var g=o?i(v,m,h,t,e,s):i(m,v,h,e,t,s);if(g!==r){if(g)continue;d=!1;break}if(p){if(!Lt(t,function(e,t){if(!er(p,t)&&(m===e||a(m,e,n,i,s)))return p.push(t)})){d=!1;break}}else if(m!==v&&!a(m,v,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function ia(e){return Na(Aa(e,r,qa),e+"")}function aa(e){return En(e,No,pa)}function sa(e){return En(e,Po,ma)}var oa=Rr?function(e){return Rr.get(e)}:ul;function la(e){for(var t=e.name+"",r=Ir[t],n=je.call(Ir,t)?r.length:0;n--;){var i=r[n],a=i.func;if(null==a||a==e)return i.name}return t}function ca(e){return(je.call(Ur,"placeholder")?Ur:e).placeholder}function ua(){var e=Ur.iteratee||sl;return e=e===sl?jn:e,arguments.length?e(arguments[0],arguments[1]):e}function fa(e,t){var r,n,i=e.__data__;return("string"==(n=P(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ha(e){for(var t=No(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ea(i)]}return t}function da(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Fn(n)?n:r}var pa=yt?function(e){return null==e?[]:(e=Ae(e),Rt(yt(e),function(t){return Ke.call(e,t)}))}:gl,ma=yt?function(e){for(var t=[];e;)Dt(t,pa(e)),e=Ge(e);return t}:gl,va=Cn;function ga(e,t,r){for(var n=-1,i=(t=_i(t,e)).length,a=!1;++n<i;){var s=La(t[n]);if(!(a=null!=e&&r(e,s)))break;e=e[s]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&eo(i)&&wa(s,i)&&($s(e)||Vs(e))}function ba(e){return"function"!=typeof e.constructor||Ta(e)?{}:Hr(Ge(e))}function ya(e){return $s(e)||Vs(e)||!!(Je&&e&&e[Je])}function wa(e,t){var r=P(e);return!!(t=null==t?h:t)&&("number"==r||"symbol"!=r&&ye.test(e))&&e>-1&&e%1==0&&e<t}function _a(e,t,r){if(!to(r))return!1;var n=P(t);return!!("number"==n?Xs(r)&&wa(t,r.length):"string"==n&&t in r)&&Us(r[t],e)}function ka(e,t){if($s(e))return!1;var r=P(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!co(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ae(t))}function xa(e){var t=la(e),r=Ur[t];if("function"!=typeof r||!(t in $r.prototype))return!1;if(e===r)return!0;var n=oa(r);return!!n&&e===n[0]}(Tr&&va(new Tr(/* @__PURE__ */new ArrayBuffer(1)))!=N||Er&&va(new Er)!=x||Cr&&va(Cr.resolve())!=E||Ar&&va(new Ar)!=A||Mr&&va(new Mr)!=R)&&(va=function(e){var t=Cn(e),n=t==T?e.constructor:r,i=n?Ba(n):"";if(i)switch(i){case Nr:return N;case Pr:return x;case Dr:return E;case Fr:return A;case jr:return R}return t});var Sa=De?Js:bl;function Ta(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Ea(e){return e==e&&!to(e)}function Ca(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Ae(n)))}}function Aa(e,t,n){return t=yr(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=yr(r.length-t,0),s=xe(a);++i<a;)s[i]=r[t+i];i=-1;for(var o=xe(t+1);++i<t;)o[i]=r[i];return o[t]=n(s),Et(e,this,o)}}function Ma(e,t){return t.length<2?e:Tn(e,ai(t,0,-1))}function Oa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ra=Da(ri),Ia=mt||function(e,t){return pt.setTimeout(e,t)},Na=Da(ni);function Pa(e,t,r){var n=t+"";return Na(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return At(m,function(r){var n="_."+r[0];t&r[1]&&!It(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(n),r)))}function Da(e){var t=0,n=0;return function(){var i=_r(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Fa(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var s=Kn(n,a),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var ja=function(e){var t=Ds(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,function(e,r,n,i){t.push(n?i.replace(he,"$1"):r||e)}),t});function La(e){if("string"==typeof e||co(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ba(e){if(null!=e){try{return Fe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function za(e){if(e instanceof $r)return e.clone();var t=new Vr(e.__wrapped__,e.__chain__);return t.__actions__=Ri(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ua=Jn(function(e,t){return Gs(e)?dn(e,yn(t,1,Gs,!0)):[]}),Ha=Jn(function(e,t){var n=Za(t);return Gs(n)&&(n=r),Gs(e)?dn(e,yn(t,1,Gs,!0),ua(n,2)):[]}),Wa=Jn(function(e,t){var n=Za(t);return Gs(n)&&(n=r),Gs(e)?dn(e,yn(t,1,Gs,!0),r,n):[]});function Va(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:vo(r);return i<0&&(i=yr(n+i,0)),Ut(e,ua(t,3),i)}function $a(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=vo(n),a=n<0?yr(i+a,0):wr(a,i-1)),Ut(e,ua(t,3),a,!0)}function qa(e){return null!=e&&e.length?yn(e,1):[]}function Xa(e){return e&&e.length?e[0]:r}var Ga=Jn(function(e){var t=Pt(e,yi);return t.length&&t[0]===e[0]?Rn(t):[]}),Ya=Jn(function(e){var t=Za(e),n=Pt(e,yi);return t===Za(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Rn(n,ua(t,2)):[]}),Ka=Jn(function(e){var t=Za(e),n=Pt(e,yi);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Rn(n,r,t):[]});function Za(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Ja=Jn(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?Gn(e,t):e}var es=ia(function(e,t){var r=null==e?0:e.length,n=ln(e,t);return Yn(e,Pt(t,function(e){return wa(e,r)?+e:e}).sort(Ai)),n});function ts(e){return null==e?e:Sr.call(e)}var rs=Jn(function(e){return hi(yn(e,1,Gs,!0))}),ns=Jn(function(e){var t=Za(e);return Gs(t)&&(t=r),hi(yn(e,1,Gs,!0),ua(t,2))}),is=Jn(function(e){var t=Za(e);return t="function"==typeof t?t:r,hi(yn(e,1,Gs,!0),r,t)});function as(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,function(e){if(Gs(e))return t=yr(e.length,t),!0}),Kt(t,function(t){return Pt(e,qt(t))})}function ss(e,t){if(!e||!e.length)return[];var n=as(e);return null==t?n:Pt(n,function(e){return Et(t,r,e)})}var os=Jn(function(e,t){return Gs(e)?dn(e,t):[]}),ls=Jn(function(e){return gi(Rt(e,Gs))}),cs=Jn(function(e){var t=Za(e);return Gs(t)&&(t=r),gi(Rt(e,Gs),ua(t,2))}),us=Jn(function(e){var t=Za(e);return t="function"==typeof t?t:r,gi(Rt(e,Gs),r,t)}),fs=Jn(as);var hs=Jn(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ss(e,n)});function ds(e){var t=Ur(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var ms=ia(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return ln(t,e)};return!(t>1||this.__actions__.length)&&i instanceof $r&&wa(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:ps,args:[a],thisArg:r}),new Vr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(a)});var vs=Ni(function(e,t,r){je.call(e,r)?++e[r]:on(e,r,1)});var gs=zi(Va),bs=zi($a);function ys(e,t){return($s(e)?At:pn)(e,ua(t,3))}function ws(e,t){return($s(e)?Mt:mn)(e,ua(t,3))}var _s=Ni(function(e,t,r){je.call(e,r)?e[r].push(t):on(e,r,[t])});var ks=Jn(function(e,t,r){var n=-1,i="function"==typeof t,a=Xs(e)?xe(e.length):[];return pn(e,function(e){a[++n]=i?Et(t,e,r):In(e,t,r)}),a}),xs=Ni(function(e,t,r){on(e,r,t)});function Ss(e,t){return($s(e)?Pt:Un)(e,ua(t,3))}var Ts=Ni(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var Es=Jn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&_a(e,t[0],t[1])?t=[]:r>2&&_a(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,yn(t,1),[])}),Cs=dt||function(){return pt.Date.now()};function As(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Qi(e,c,r,r,r,r,t)}function Ms(e,t){var i;if("function"!=typeof t)throw new Re(n);return e=vo(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var Os=Jn(function(e,t,r){var n=1;if(r.length){var i=cr(r,ca(Os));n|=o}return Qi(e,n,t,r,i)}),Rs=Jn(function(e,t,r){var n=3;if(r.length){var i=cr(r,ca(Rs));n|=o}return Qi(t,n,e,r,i)});function Is(e,t,i){var a,s,o,l,c,u,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new Re(n);function m(t){var n=a,i=s;return a=s=r,f=t,l=e.apply(i,n)}function v(e){var n=e-u;return u===r||n>=t||n<0||d&&e-f>=o}function g(){var e=Cs();if(v(e))return b(e);c=Ia(g,function(e){var r=t-(e-u);return d?wr(r,o-(e-f)):r}(e))}function b(e){return c=r,p&&a?m(e):(a=s=r,l)}function y(){var e=Cs(),n=v(e);if(a=arguments,s=this,u=e,n){if(c===r)return function(e){return f=e,c=Ia(g,t),h?m(e):l}(u);if(d)return Si(c),c=Ia(g,t),m(u)}return c===r&&(c=Ia(g,t)),l}return t=bo(t)||0,to(i)&&(h=!!i.leading,o=(d="maxWait"in i)?yr(bo(i.maxWait)||0,t):o,p="trailing"in i?!!i.trailing:p),y.cancel=function(){c!==r&&Si(c),f=0,a=u=s=c=r},y.flush=function(){return c===r?l:b(Cs())},y}var Ns=Jn(function(e,t){return hn(e,1,t)}),Ps=Jn(function(e,t,r){return hn(e,bo(t)||0,r)});function Ds(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(Ds.Cache||Gr),r}function Fs(e){if("function"!=typeof e)throw new Re(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ds.Cache=Gr;var js=ki(function(e,t){var r=(t=1==t.length&&$s(t[0])?Pt(t[0],Jt(ua())):Pt(yn(t,1),Jt(ua()))).length;return Jn(function(n){for(var i=-1,a=wr(n.length,r);++i<a;)n[i]=t[i].call(this,n[i]);return Et(e,this,n)})}),Ls=Jn(function(e,t){return Qi(e,o,r,t,cr(t,ca(Ls)))}),Bs=Jn(function(e,t){return Qi(e,l,r,t,cr(t,ca(Bs)))}),zs=ia(function(e,t){return Qi(e,u,r,r,r,t)});function Us(e,t){return e===t||e!=e&&t!=t}var Hs=Gi(An),Ws=Gi(function(e,t){return e>=t}),Vs=Nn(function(){return arguments}())?Nn:function(e){return ro(e)&&je.call(e,"callee")&&!Ke.call(e,"callee")},$s=xe.isArray,qs=wt?Jt(wt):function(e){return ro(e)&&Cn(e)==I};function Xs(e){return null!=e&&eo(e.length)&&!Js(e)}function Gs(e){return ro(e)&&Xs(e)}var Ys=Bt||bl,Ks=_t?Jt(_t):function(e){return ro(e)&&Cn(e)==y};function Zs(e){if(!ro(e))return!1;var t=Cn(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ao(e)}function Js(e){if(!to(e))return!1;var t=Cn(e);return t==_||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qs(e){return"number"==typeof e&&e==vo(e)}function eo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function to(e){var t=P(e);return null!=e&&("object"==t||"function"==t)}function ro(e){return null!=e&&"object"==P(e)}var no=kt?Jt(kt):function(e){return ro(e)&&va(e)==x};function io(e){return"number"==typeof e||ro(e)&&Cn(e)==S}function ao(e){if(!ro(e)||Cn(e)!=T)return!1;var t=Ge(e);if(null===t)return!0;var r=je.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Fe.call(r)==Ue}var so=xt?Jt(xt):function(e){return ro(e)&&Cn(e)==C};var oo=St?Jt(St):function(e){return ro(e)&&va(e)==A};function lo(e){return"string"==typeof e||!$s(e)&&ro(e)&&Cn(e)==M}function co(e){return"symbol"==P(e)||ro(e)&&Cn(e)==O}var uo=Tt?Jt(Tt):function(e){return ro(e)&&eo(e.length)&&!!ot[Cn(e)]};var fo=Gi(zn),ho=Gi(function(e,t){return e<=t});function po(e){if(!e)return[];if(Xs(e))return lo(e)?dr(e):Ri(e);if(tt&&e[tt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[tt]());var t=va(e);return(t==x?or:t==A?ur:Ho)(e)}function mo(e){return e?(e=bo(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vo(e){var t=mo(e),r=t%1;return t==t?r?t-r:t:0}function go(e){return e?cn(vo(e),0,p):0}function bo(e){if("number"==typeof e)return e;if(co(e))return d;if(to(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=to(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var r=ve.test(e);return r||be.test(e)?ft(e.slice(2),r?2:8):me.test(e)?d:+e}function yo(e){return Ii(e,Po(e))}function wo(e){return null==e?"":fi(e)}var _o=Pi(function(e,t){if(Ta(t)||Xs(t))Ii(t,No(t),e);else for(var r in t)je.call(t,r)&&rn(e,r,t[r])}),ko=Pi(function(e,t){Ii(t,Po(t),e)}),xo=Pi(function(e,t,r,n){Ii(t,Po(t),e,n)}),So=Pi(function(e,t,r,n){Ii(t,No(t),e,n)}),To=ia(ln);var Eo=Jn(function(e,t){e=Ae(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&_a(t[0],t[1],a)&&(i=1);++n<i;)for(var s=t[n],o=Po(s),l=-1,c=o.length;++l<c;){var u=o[l],f=e[u];(f===r||Us(f,Pe[u])&&!je.call(e,u))&&(e[u]=s[u])}return e}),Co=Jn(function(e){return e.push(r,ta),Et(Fo,r,e)});function Ao(e,t,n){var i=null==e?r:Tn(e,t);return i===r?n:i}function Mo(e,t){return null!=e&&ga(e,t,On)}var Oo=Wi(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=r},rl(al)),Ro=Wi(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),je.call(e,t)?e[t].push(r):e[t]=[r]},ua),Io=Jn(In);function No(e){return Xs(e)?Zr(e):Ln(e)}function Po(e){return Xs(e)?Zr(e,!0):Bn(e)}var Do=Pi(function(e,t,r){Vn(e,t,r)}),Fo=Pi(function(e,t,r,n){Vn(e,t,r,n)}),jo=ia(function(e,t){var r={};if(null==e)return r;var n=!1;t=Pt(t,function(t){return t=_i(t,e),n||(n=t.length>1),t}),Ii(e,sa(e),r),n&&(r=un(r,7,ra));for(var i=t.length;i--;)di(r,t[i]);return r});var Lo=ia(function(e,t){return null==e?{}:function(e,t){return Xn(e,t,function(t,r){return Mo(e,r)})}(e,t)});function Bo(e,t){if(null==e)return{};var r=Pt(sa(e),function(e){return[e]});return t=ua(t),Xn(e,r,function(e,r){return t(e,r[0])})}var zo=Ji(No),Uo=Ji(Po);function Ho(e){return null==e?[]:Qt(e,No(e))}var Wo=Li(function(e,t,r){return t=t.toLowerCase(),e+(r?Vo(t):t)});function Vo(e){return Jo(wo(e).toLowerCase())}function $o(e){return(e=wo(e))&&e.replace(we,nr).replace(et,"")}var qo=Li(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Xo=Li(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Go=ji("toLowerCase");var Yo=Li(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Ko=Li(function(e,t,r){return e+(r?" ":"")+Jo(t)});var Zo=Li(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Jo=ji("toUpperCase");function Qo(e,t,n){return e=wo(e),(t=n?r:t)===r?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var el=Jn(function(e,t){try{return Et(e,r,t)}catch(n){return Zs(n)?n:new Te(n)}}),tl=ia(function(e,t){return At(t,function(t){t=La(t),on(e,t,Os(e[t],e))}),e});function rl(e){return function(){return e}}var nl=Ui(),il=Ui(!0);function al(e){return e}function sl(e){return jn("function"==typeof e?e:un(e,1))}var ol=Jn(function(e,t){return function(r){return In(r,e,t)}}),ll=Jn(function(e,t){return function(r){return In(e,r,t)}});function cl(e,t,r){var n=No(t),i=Sn(t,n);null!=r||to(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Sn(t,No(t)));var a=!(to(r)&&"chain"in r&&!r.chain),s=Js(e);return At(i,function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__);return(r.__actions__=Ri(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Dt([this.value()],arguments))})}),e}function ul(){}var fl=$i(Pt),hl=$i(Ot),dl=$i(Lt);function pl(e){return ka(e)?qt(La(e)):function(e){return function(t){return Tn(t,e)}}(e)}var ml=Xi(),vl=Xi(!0);function gl(){return[]}function bl(){return!1}var yl=Vi(function(e,t){return e+t},0),wl=Ki("ceil"),_l=Vi(function(e,t){return e/t},1),kl=Ki("floor");var xl,Sl=Vi(function(e,t){return e*t},1),Tl=Ki("round"),El=Vi(function(e,t){return e-t},0);return Ur.after=function(e,t){if("function"!=typeof t)throw new Re(n);return e=vo(e),function(){if(--e<1)return t.apply(this,arguments)}},Ur.ary=As,Ur.assign=_o,Ur.assignIn=ko,Ur.assignInWith=xo,Ur.assignWith=So,Ur.at=To,Ur.before=Ms,Ur.bind=Os,Ur.bindAll=tl,Ur.bindKey=Rs,Ur.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $s(e)?e:[e]},Ur.chain=ds,Ur.chunk=function(e,t,n){t=(n?_a(e,t,n):t===r)?1:yr(vo(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,o=xe(vt(i/t));a<i;)o[s++]=ai(e,a,a+=t);return o},Ur.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i},Ur.concat=function(){var e=arguments.length;if(!e)return[];for(var t=xe(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Dt($s(r)?Ri(r):[r],yn(t,1))},Ur.cond=function(e){var t=null==e?0:e.length,r=ua();return e=t?Pt(e,function(e){if("function"!=typeof e[1])throw new Re(n);return[r(e[0]),e[1]]}):[],Jn(function(r){for(var n=-1;++n<t;){var i=e[n];if(Et(i[0],this,r))return Et(i[1],this,r)}})},Ur.conforms=function(e){return function(e){var t=No(e);return function(r){return fn(r,e,t)}}(un(e,1))},Ur.constant=rl,Ur.countBy=vs,Ur.create=function(e,t){var r=Hr(e);return null==t?r:sn(r,t)},Ur.curry=function e(t,n,i){var a=Qi(t,8,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},Ur.curryRight=function e(t,n,i){var a=Qi(t,s,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},Ur.debounce=Is,Ur.defaults=Eo,Ur.defaultsDeep=Co,Ur.defer=Ns,Ur.delay=Ps,Ur.difference=Ua,Ur.differenceBy=Ha,Ur.differenceWith=Wa,Ur.drop=function(e,t,n){var i=null==e?0:e.length;return i?ai(e,(t=n||t===r?1:vo(t))<0?0:t,i):[]},Ur.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ai(e,0,(t=i-(t=n||t===r?1:vo(t)))<0?0:t):[]},Ur.dropRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0,!0):[]},Ur.dropWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0):[]},Ur.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&_a(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=vo(n))<0&&(n=-n>a?0:a+n),(i=i===r||i>a?a:vo(i))<0&&(i+=a),i=n>i?0:go(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},Ur.filter=function(e,t){return($s(e)?Rt:bn)(e,ua(t,3))},Ur.flatMap=function(e,t){return yn(Ss(e,t),1)},Ur.flatMapDeep=function(e,t){return yn(Ss(e,t),f)},Ur.flatMapDepth=function(e,t,n){return n=n===r?1:vo(n),yn(Ss(e,t),n)},Ur.flatten=qa,Ur.flattenDeep=function(e){return null!=e&&e.length?yn(e,f):[]},Ur.flattenDepth=function(e,t){return null!=e&&e.length?yn(e,t=t===r?1:vo(t)):[]},Ur.flip=function(e){return Qi(e,512)},Ur.flow=nl,Ur.flowRight=il,Ur.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];on(n,i[0],i[1])}return n},Ur.functions=function(e){return null==e?[]:Sn(e,No(e))},Ur.functionsIn=function(e){return null==e?[]:Sn(e,Po(e))},Ur.groupBy=_s,Ur.initial=function(e){return null!=e&&e.length?ai(e,0,-1):[]},Ur.intersection=Ga,Ur.intersectionBy=Ya,Ur.intersectionWith=Ka,Ur.invert=Oo,Ur.invertBy=Ro,Ur.invokeMap=ks,Ur.iteratee=sl,Ur.keyBy=xs,Ur.keys=No,Ur.keysIn=Po,Ur.map=Ss,Ur.mapKeys=function(e,t){var r={};return t=ua(t,3),kn(e,function(e,n,i){on(r,t(e,n,i),e)}),r},Ur.mapValues=function(e,t){var r={};return t=ua(t,3),kn(e,function(e,n,i){on(r,n,t(e,n,i))}),r},Ur.matches=function(e){return Hn(un(e,1))},Ur.matchesProperty=function(e,t){return Wn(e,un(t,1))},Ur.memoize=Ds,Ur.merge=Do,Ur.mergeWith=Fo,Ur.method=ol,Ur.methodOf=ll,Ur.mixin=cl,Ur.negate=Fs,Ur.nthArg=function(e){return e=vo(e),Jn(function(t){return $n(t,e)})},Ur.omit=jo,Ur.omitBy=function(e,t){return Bo(e,Fs(ua(t)))},Ur.once=function(e){return Ms(2,e)},Ur.orderBy=function(e,t,n,i){return null==e?[]:($s(t)||(t=null==t?[]:[t]),$s(n=i?r:n)||(n=null==n?[]:[n]),qn(e,t,n))},Ur.over=fl,Ur.overArgs=js,Ur.overEvery=hl,Ur.overSome=dl,Ur.partial=Ls,Ur.partialRight=Bs,Ur.partition=Ts,Ur.pick=Lo,Ur.pickBy=Bo,Ur.property=pl,Ur.propertyOf=function(e){return function(t){return null==e?r:Tn(e,t)}},Ur.pull=Ja,Ur.pullAll=Qa,Ur.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Gn(e,t,ua(r,2)):e},Ur.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gn(e,t,r,n):e},Ur.pullAt=es,Ur.range=ml,Ur.rangeRight=vl,Ur.rearg=zs,Ur.reject=function(e,t){return($s(e)?Rt:bn)(e,Fs(ua(t,3)))},Ur.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],a=e.length;for(t=ua(t,3);++n<a;){var s=e[n];t(s,n,e)&&(r.push(s),i.push(n))}return Yn(e,i),r},Ur.rest=function(e,t){if("function"!=typeof e)throw new Re(n);return Jn(e,t=t===r?t:vo(t))},Ur.reverse=ts,Ur.sampleSize=function(e,t,n){return t=(n?_a(e,t,n):t===r)?1:vo(t),($s(e)?Qr:ei)(e,t)},Ur.set=function(e,t,r){return null==e?e:ti(e,t,r)},Ur.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:ti(e,t,n,i)},Ur.shuffle=function(e){return($s(e)?en:ii)(e)},Ur.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&_a(e,t,n)?(t=0,n=i):(t=null==t?0:vo(t),n=n===r?i:vo(n)),ai(e,t,n)):[]},Ur.sortBy=Es,Ur.sortedUniq=function(e){return e&&e.length?ci(e):[]},Ur.sortedUniqBy=function(e,t){return e&&e.length?ci(e,ua(t,2)):[]},Ur.split=function(e,t,n){return n&&"number"!=typeof n&&_a(e,t,n)&&(t=n=r),(n=n===r?p:n>>>0)?(e=wo(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=fi(t))&&sr(e)?xi(dr(e),0,n):e.split(t,n):[]},Ur.spread=function(e,t){if("function"!=typeof e)throw new Re(n);return t=null==t?0:yr(vo(t),0),Jn(function(r){var n=r[t],i=xi(r,0,t);return n&&Dt(i,n),Et(e,this,i)})},Ur.tail=function(e){var t=null==e?0:e.length;return t?ai(e,1,t):[]},Ur.take=function(e,t,n){return e&&e.length?ai(e,0,(t=n||t===r?1:vo(t))<0?0:t):[]},Ur.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ai(e,(t=i-(t=n||t===r?1:vo(t)))<0?0:t,i):[]},Ur.takeRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!1,!0):[]},Ur.takeWhile=function(e,t){return e&&e.length?mi(e,ua(t,3)):[]},Ur.tap=function(e,t){return t(e),e},Ur.throttle=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new Re(n);return to(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),Is(e,t,{leading:i,maxWait:t,trailing:a})},Ur.thru=ps,Ur.toArray=po,Ur.toPairs=zo,Ur.toPairsIn=Uo,Ur.toPath=function(e){return $s(e)?Pt(e,La):co(e)?[e]:Ri(ja(wo(e)))},Ur.toPlainObject=yo,Ur.transform=function(e,t,r){var n=$s(e),i=n||Ys(e)||uo(e);if(t=ua(t,4),null==r){var a=e&&e.constructor;r=i?n?new a:[]:to(e)&&Js(a)?Hr(Ge(e)):{}}return(i?At:kn)(e,function(e,n,i){return t(r,e,n,i)}),r},Ur.unary=function(e){return As(e,1)},Ur.union=rs,Ur.unionBy=ns,Ur.unionWith=is,Ur.uniq=function(e){return e&&e.length?hi(e):[]},Ur.uniqBy=function(e,t){return e&&e.length?hi(e,ua(t,2)):[]},Ur.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?hi(e,r,t):[]},Ur.unset=function(e,t){return null==e||di(e,t)},Ur.unzip=as,Ur.unzipWith=ss,Ur.update=function(e,t,r){return null==e?e:pi(e,t,wi(r))},Ur.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:pi(e,t,wi(n),i)},Ur.values=Ho,Ur.valuesIn=function(e){return null==e?[]:Qt(e,Po(e))},Ur.without=os,Ur.words=Qo,Ur.wrap=function(e,t){return Ls(wi(t),e)},Ur.xor=ls,Ur.xorBy=cs,Ur.xorWith=us,Ur.zip=fs,Ur.zipObject=function(e,t){return bi(e||[],t||[],rn)},Ur.zipObjectDeep=function(e,t){return bi(e||[],t||[],ti)},Ur.zipWith=hs,Ur.entries=zo,Ur.entriesIn=Uo,Ur.extend=ko,Ur.extendWith=xo,cl(Ur,Ur),Ur.add=yl,Ur.attempt=el,Ur.camelCase=Wo,Ur.capitalize=Vo,Ur.ceil=wl,Ur.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=bo(n))==n?n:0),t!==r&&(t=(t=bo(t))==t?t:0),cn(bo(e),t,n)},Ur.clone=function(e){return un(e,4)},Ur.cloneDeep=function(e){return un(e,5)},Ur.cloneDeepWith=function(e,t){return un(e,5,t="function"==typeof t?t:r)},Ur.cloneWith=function(e,t){return un(e,4,t="function"==typeof t?t:r)},Ur.conformsTo=function(e,t){return null==t||fn(e,t,No(t))},Ur.deburr=$o,Ur.defaultTo=function(e,t){return null==e||e!=e?t:e},Ur.divide=_l,Ur.endsWith=function(e,t,n){e=wo(e),t=fi(t);var i=e.length,a=n=n===r?i:cn(vo(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},Ur.eq=Us,Ur.escape=function(e){return(e=wo(e))&&K.test(e)?e.replace(G,ir):e},Ur.escapeRegExp=function(e){return(e=wo(e))&&ie.test(e)?e.replace(ne,"\\$&"):e},Ur.every=function(e,t,n){var i=$s(e)?Ot:vn;return n&&_a(e,t,n)&&(t=r),i(e,ua(t,3))},Ur.find=gs,Ur.findIndex=Va,Ur.findKey=function(e,t){return zt(e,ua(t,3),kn)},Ur.findLast=bs,Ur.findLastIndex=$a,Ur.findLastKey=function(e,t){return zt(e,ua(t,3),xn)},Ur.floor=kl,Ur.forEach=ys,Ur.forEachRight=ws,Ur.forIn=function(e,t){return null==e?e:wn(e,ua(t,3),Po)},Ur.forInRight=function(e,t){return null==e?e:_n(e,ua(t,3),Po)},Ur.forOwn=function(e,t){return e&&kn(e,ua(t,3))},Ur.forOwnRight=function(e,t){return e&&xn(e,ua(t,3))},Ur.get=Ao,Ur.gt=Hs,Ur.gte=Ws,Ur.has=function(e,t){return null!=e&&ga(e,t,Mn)},Ur.hasIn=Mo,Ur.head=Xa,Ur.identity=al,Ur.includes=function(e,t,r,n){e=Xs(e)?e:Ho(e),r=r&&!n?vo(r):0;var i=e.length;return r<0&&(r=yr(i+r,0)),lo(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ht(e,t,r)>-1},Ur.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:vo(r);return i<0&&(i=yr(n+i,0)),Ht(e,t,i)},Ur.inRange=function(e,t,n){return t=mo(t),n===r?(n=t,t=0):n=mo(n),function(e,t,r){return e>=wr(t,r)&&e<yr(t,r)}(e=bo(e),t,n)},Ur.invoke=Io,Ur.isArguments=Vs,Ur.isArray=$s,Ur.isArrayBuffer=qs,Ur.isArrayLike=Xs,Ur.isArrayLikeObject=Gs,Ur.isBoolean=function(e){return!0===e||!1===e||ro(e)&&Cn(e)==b},Ur.isBuffer=Ys,Ur.isDate=Ks,Ur.isElement=function(e){return ro(e)&&1===e.nodeType&&!ao(e)},Ur.isEmpty=function(e){if(null==e)return!0;if(Xs(e)&&($s(e)||"string"==typeof e||"function"==typeof e.splice||Ys(e)||uo(e)||Vs(e)))return!e.length;var t=va(e);if(t==x||t==A)return!e.size;if(Ta(e))return!Ln(e).length;for(var r in e)if(je.call(e,r))return!1;return!0},Ur.isEqual=function(e,t){return Pn(e,t)},Ur.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Pn(e,t,r,n):!!i},Ur.isError=Zs,Ur.isFinite=function(e){return"number"==typeof e&&Xt(e)},Ur.isFunction=Js,Ur.isInteger=Qs,Ur.isLength=eo,Ur.isMap=no,Ur.isMatch=function(e,t){return e===t||Dn(e,t,ha(t))},Ur.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Dn(e,t,ha(t),n)},Ur.isNaN=function(e){return io(e)&&e!=+e},Ur.isNative=function(e){if(Sa(e))throw new Te("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Fn(e)},Ur.isNil=function(e){return null==e},Ur.isNull=function(e){return null===e},Ur.isNumber=io,Ur.isObject=to,Ur.isObjectLike=ro,Ur.isPlainObject=ao,Ur.isRegExp=so,Ur.isSafeInteger=function(e){return Qs(e)&&e>=-9007199254740991&&e<=h},Ur.isSet=oo,Ur.isString=lo,Ur.isSymbol=co,Ur.isTypedArray=uo,Ur.isUndefined=function(e){return e===r},Ur.isWeakMap=function(e){return ro(e)&&va(e)==R},Ur.isWeakSet=function(e){return ro(e)&&"[object WeakSet]"==Cn(e)},Ur.join=function(e,t){return null==e?"":gr.call(e,t)},Ur.kebabCase=qo,Ur.last=Za,Ur.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=vo(n))<0?yr(i+a,0):wr(a,i-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,a):Ut(e,Vt,a,!0)},Ur.lowerCase=Xo,Ur.lowerFirst=Go,Ur.lt=fo,Ur.lte=ho,Ur.max=function(e){return e&&e.length?gn(e,al,An):r},Ur.maxBy=function(e,t){return e&&e.length?gn(e,ua(t,2),An):r},Ur.mean=function(e){return $t(e,al)},Ur.meanBy=function(e,t){return $t(e,ua(t,2))},Ur.min=function(e){return e&&e.length?gn(e,al,zn):r},Ur.minBy=function(e,t){return e&&e.length?gn(e,ua(t,2),zn):r},Ur.stubArray=gl,Ur.stubFalse=bl,Ur.stubObject=function(){return{}},Ur.stubString=function(){return""},Ur.stubTrue=function(){return!0},Ur.multiply=Sl,Ur.nth=function(e,t){return e&&e.length?$n(e,vo(t)):r},Ur.noConflict=function(){return pt._===this&&(pt._=He),this},Ur.noop=ul,Ur.now=Cs,Ur.pad=function(e,t,r){e=wo(e);var n=(t=vo(t))?hr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return qi(bt(i),r)+e+qi(vt(i),r)},Ur.padEnd=function(e,t,r){e=wo(e);var n=(t=vo(t))?hr(e):0;return t&&n<t?e+qi(t-n,r):e},Ur.padStart=function(e,t,r){e=wo(e);var n=(t=vo(t))?hr(e):0;return t&&n<t?qi(t-n,r)+e:e},Ur.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),kr(wo(e).replace(ae,""),t||0)},Ur.random=function(e,t,n){if(n&&"boolean"!=typeof n&&_a(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=mo(e),t===r?(t=e,e=0):t=mo(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=xr();return wr(e+a*(t-e+ut("1e-"+((a+"").length-1))),t)}return Kn(e,t)},Ur.reduce=function(e,t,r){var n=$s(e)?Ft:Gt,i=arguments.length<3;return n(e,ua(t,4),r,i,pn)},Ur.reduceRight=function(e,t,r){var n=$s(e)?jt:Gt,i=arguments.length<3;return n(e,ua(t,4),r,i,mn)},Ur.repeat=function(e,t,n){return t=(n?_a(e,t,n):t===r)?1:vo(t),Zn(wo(e),t)},Ur.replace=function(){var e=arguments,t=wo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ur.result=function(e,t,n){var i=-1,a=(t=_i(t,e)).length;for(a||(a=1,e=r);++i<a;){var s=null==e?r:e[La(t[i])];s===r&&(i=a,s=n),e=Js(s)?s.call(e):s}return e},Ur.round=Tl,Ur.runInContext=e,Ur.sample=function(e){return($s(e)?Jr:Qn)(e)},Ur.size=function(e){if(null==e)return 0;if(Xs(e))return lo(e)?hr(e):e.length;var t=va(e);return t==x||t==A?e.size:Ln(e).length},Ur.snakeCase=Yo,Ur.some=function(e,t,n){var i=$s(e)?Lt:si;return n&&_a(e,t,n)&&(t=r),i(e,ua(t,3))},Ur.sortedIndex=function(e,t){return oi(e,t)},Ur.sortedIndexBy=function(e,t,r){return li(e,t,ua(r,2))},Ur.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=oi(e,t);if(n<r&&Us(e[n],t))return n}return-1},Ur.sortedLastIndex=function(e,t){return oi(e,t,!0)},Ur.sortedLastIndexBy=function(e,t,r){return li(e,t,ua(r,2),!0)},Ur.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=oi(e,t,!0)-1;if(Us(e[r],t))return r}return-1},Ur.startCase=Ko,Ur.startsWith=function(e,t,r){return e=wo(e),r=null==r?0:cn(vo(r),0,e.length),t=fi(t),e.slice(r,r+t.length)==t},Ur.subtract=El,Ur.sum=function(e){return e&&e.length?Yt(e,al):0},Ur.sumBy=function(e,t){return e&&e.length?Yt(e,ua(t,2)):0},Ur.template=function(e,t,n){var i=Ur.templateSettings;n&&_a(e,t,n)&&(t=r),e=wo(e),t=So({},t,i,ea);var a=So({},t.imports,i.imports,ea),s=No(a),o=Qt(a,s);At(s,function(e){if(fe.test(e))throw new Te("Invalid `imports` option passed into `_.template`")});var l,c,u=0,f=t.interpolate||_e,h="__p += '",d=Me((t.escape||_e).source+"|"+f.source+"|"+(f===Q?de:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),p="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(d,function(t,r,n,i,a,s){return n||(n=i),h+=e.slice(u,s).replace(ke,ar),r&&(l=!0,h+="' +\n__e("+r+") +\n'"),a&&(c=!0,h+="';\n"+a+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=s+t.length,t}),h+="';\n";var m=je.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new Te("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(c?h.replace(V,""):h).replace($,"$1").replace(q,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=el(function(){return Ee(s,p+"return "+h).apply(r,o)});if(v.source=h,Zs(v))throw v;return v},Ur.times=function(e,t){if((e=vo(e))<1||e>h)return[];var r=p,n=wr(e,p);t=ua(t),e-=p;for(var i=Kt(n,t);++r<e;)t(r);return i},Ur.toFinite=mo,Ur.toInteger=vo,Ur.toLength=go,Ur.toLower=function(e){return wo(e).toLowerCase()},Ur.toNumber=bo,Ur.toSafeInteger=function(e){return e?cn(vo(e),-9007199254740991,h):0===e?e:0},Ur.toString=wo,Ur.toUpper=function(e){return wo(e).toUpperCase()},Ur.trim=function(e,t,n){if((e=wo(e))&&(n||t===r))return Zt(e);if(!e||!(t=fi(t)))return e;var i=dr(e),a=dr(t);return xi(i,tr(i,a),rr(i,a)+1).join("")},Ur.trimEnd=function(e,t,n){if((e=wo(e))&&(n||t===r))return e.slice(0,pr(e)+1);if(!e||!(t=fi(t)))return e;var i=dr(e);return xi(i,0,rr(i,dr(t))+1).join("")},Ur.trimStart=function(e,t,n){if((e=wo(e))&&(n||t===r))return e.replace(ae,"");if(!e||!(t=fi(t)))return e;var i=dr(e);return xi(i,tr(i,dr(t))).join("")},Ur.truncate=function(e,t){var n=30,i="...";if(to(t)){var a="separator"in t?t.separator:a;n="length"in t?vo(t.length):n,i="omission"in t?fi(t.omission):i}var s=(e=wo(e)).length;if(sr(e)){var o=dr(e);s=o.length}if(n>=s)return e;var l=n-hr(i);if(l<1)return i;var c=o?xi(o,0,l).join(""):e.slice(0,l);if(a===r)return c+i;if(o&&(l+=c.length-l),so(a)){if(e.slice(l).search(a)){var u,f=c;for(a.global||(a=Me(a.source,wo(pe.exec(a))+"g")),a.lastIndex=0;u=a.exec(f);)var h=u.index;c=c.slice(0,h===r?l:h)}}else if(e.indexOf(fi(a),l)!=l){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+i},Ur.unescape=function(e){return(e=wo(e))&&Y.test(e)?e.replace(X,mr):e},Ur.uniqueId=function(e){var t=++Le;return wo(e)+t},Ur.upperCase=Zo,Ur.upperFirst=Jo,Ur.each=ys,Ur.eachRight=ws,Ur.first=Xa,cl(Ur,(xl={},kn(Ur,function(e,t){je.call(Ur.prototype,t)||(xl[t]=e)}),xl),{chain:!1}),Ur.VERSION="4.18.1",At(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Ur[e].placeholder=Ur}),At(["drop","take"],function(e,t){$r.prototype[e]=function(n){n=n===r?1:yr(vo(n),0);var i=this.__filtered__&&!t?new $r(this):this.clone();return i.__filtered__?i.__takeCount__=wr(n,i.__takeCount__):i.__views__.push({size:wr(n,p),type:e+(i.__dir__<0?"Right":"")}),i},$r.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),At(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;$r.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),At(["head","last"],function(e,t){var r="take"+(t?"Right":"");$r.prototype[e]=function(){return this[r](1).value()[0]}}),At(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");$r.prototype[e]=function(){return this.__filtered__?new $r(this):this[r](1)}}),$r.prototype.compact=function(){return this.filter(al)},$r.prototype.find=function(e){return this.filter(e).head()},$r.prototype.findLast=function(e){return this.reverse().find(e)},$r.prototype.invokeMap=Jn(function(e,t){return"function"==typeof e?new $r(this):this.map(function(r){return In(r,e,t)})}),$r.prototype.reject=function(e){return this.filter(Fs(ua(e)))},$r.prototype.slice=function(e,t){e=vo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $r(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=vo(t))<0?n.dropRight(-t):n.take(t-e)),n)},$r.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$r.prototype.toArray=function(){return this.take(p)},kn($r.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Ur[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);a&&(Ur.prototype[t]=function(){var t=this.__wrapped__,o=i?[1]:arguments,l=t instanceof $r,c=o[0],u=l||$s(t),f=function(e){var t=a.apply(Ur,Dt([e],o));return i&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,d=!!this.__actions__.length,p=s&&!h,m=l&&!d;if(!s&&u){t=m?t:new $r(this);var v=e.apply(t,o);return v.__actions__.push({func:ps,args:[f],thisArg:r}),new Vr(v,h)}return p&&m?e.apply(this,o):(v=this.thru(f),p?i?v.value()[0]:v.value():v)})}),At(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ie[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ur.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply($s(i)?i:[],e)}return this[r](function(r){return t.apply($s(r)?r:[],e)})}}),kn($r.prototype,function(e,t){var r=Ur[t];if(r){var n=r.name+"";je.call(Ir,n)||(Ir[n]=[]),Ir[n].push({name:t,func:r})}}),Ir[Hi(r,2).name]=[{name:"wrapper",func:r}],$r.prototype.clone=function(){var e=new $r(this.__wrapped__);return e.__actions__=Ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ri(this.__views__),e},$r.prototype.reverse=function(){if(this.__filtered__){var e=new $r(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$r.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=$s(e),n=t<0,i=r?e.length:0,a=function(e,t,r){var n=-1,i=r.length;for(;++n<i;){var a=r[n],s=a.size;switch(a.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=wr(t,e+s);break;case"takeRight":e=yr(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=a.start,o=a.end,l=o-s,c=n?o:s-1,u=this.__iteratees__,f=u.length,h=0,d=wr(l,this.__takeCount__);if(!r||!n&&i==l&&d==l)return vi(e,this.__actions__);var p=[];e:for(;l--&&h<d;){for(var m=-1,v=e[c+=t];++m<f;){var g=u[m],b=g.iteratee,y=g.type,w=b(v);if(2==y)v=w;else if(!w){if(1==y)continue e;break e}}p[h++]=v}return p},Ur.prototype.at=ms,Ur.prototype.chain=function(){return ds(this)},Ur.prototype.commit=function(){return new Vr(this.value(),this.__chain__)},Ur.prototype.next=function(){this.__values__===r&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Ur.prototype.plant=function(e){for(var t,n=this;n instanceof Wr;){var i=za(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},Ur.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $r){var t=e;return this.__actions__.length&&(t=new $r(this)),(t=t.reverse()).__actions__.push({func:ps,args:[ts],thisArg:r}),new Vr(t,this.__chain__)}return this.thru(ts)},Ur.prototype.toJSON=Ur.prototype.valueOf=Ur.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},Ur.prototype.first=Ur.prototype.head,tt&&(Ur.prototype[tt]=function(){return this}),Ur}();"function"==typeof define&&"object"==P(define.amd)&&define.amd?(pt._=vr,define(function(){return vr})):vt?((vt.exports=vr)._=vr,mt._=vr):pt._=vr}.call(e)}),As=Cs();function Ms(e){for(var t=(e=e.replace("#","")).match(/../g),r=0;r<3;r++)t[r]=parseInt(t[r],16);return t}function Os(e,t,r){for(var n=[e.toString(16),t.toString(16),r.toString(16)],i=0;i<3;i++)1==n[i].length&&(n[i]="0"+n[i]);return"#"+n.join("")}var Rs=/* @__PURE__ */_((e,t)=>{D(),function(r,n){"object"==(void 0===e?"undefined":P(e))&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define(n):(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs=n()}(e,function(){var e=6e4,t=36e5,r="millisecond",n="second",i="minute",a="hour",s="day",o="week",l="month",c="quarter",u="year",f="date",h="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},g={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,l),a=r-i<0,s=t.clone().add(n+(a?-1:1),l);return+(-(n+(r-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:o,d:s,D:f,h:a,m:i,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=m;var w="$isDayjsObject",_=function(e){return e instanceof T||!(!e||!e[w])},k=function e(t,r,n){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();y[a]&&(i=a),r&&(y[a]=r,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;y[o]=t,i=o}return!n&&i&&(b=i),i||!n&&b},x=function(e,t){if(_(e))return e.clone();var r="object"==P(t)?t:{};return r.date=e,r.args=arguments,new T(r)},S=g;S.l=k,S.i=_,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)/* @__PURE__ */return new Date(NaN);if(S.u(t))/* @__PURE__ */return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var r=x(e);return this.startOf(t)<=r&&r<=this.endOf(t)},v.isAfter=function(e,t){return x(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<x(e)},v.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var r=this,c=!!S.u(t)||t,h=S.p(e),d=function(e,t){var n=S.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(s)},p=function(e,t){return S.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case u:return c?d(1,0):d(31,11);case l:return c?d(1,v):d(0,v+1);case o:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return d(c?g-w:g+(6-w),v);case s:case f:return p(b+"Hours",0);case a:return p(b+"Minutes",1);case i:return p(b+"Seconds",2);case n:return p(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var o,c=S.p(e),h="set"+(this.$u?"UTC":""),d=(o={},o[s]=h+"Date",o[f]=h+"Date",o[l]=h+"Month",o[u]=h+"FullYear",o[a]=h+"Hours",o[i]=h+"Minutes",o[n]=h+"Seconds",o[r]=h+"Milliseconds",o)[c],p=c===s?this.$D+(t-this.$W):t;if(c===l||c===u){var m=this.clone().set(f,1);m.$d[d](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(r,c){var f,h=this;r=Number(r);var d=S.p(c),p=function(e){var t=x(h);return S.w(t.date(t.date()+Math.round(e*r)),h)};if(d===l)return this.set(l,this.$M+r);if(d===u)return this.set(u,this.$y+r);if(d===s)return p(1);if(d===o)return p(7);var m=(f={},f[i]=e,f[a]=t,f[n]=1e3,f)[d]||1,v=this.$d.getTime()+r*m;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),a=this.$H,s=this.$m,o=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,f=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},d=function(e){return S.s(a%12||12,e,"0")},m=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(p,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return o+1;case"MM":return S.s(o+1,2,"0");case"MMM":return f(r.monthsShort,o,c,3);case"MMMM":return f(c,o);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,l,2);case"ddd":return f(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return S.s(a,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(a,s,!0);case"A":return m(a,s,!1);case"m":return String(s);case"mm":return S.s(s,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,h){var d,p=this,m=S.p(f),v=x(r),g=(v.utcOffset()-this.utcOffset())*e,b=this-v,y=function(){return S.m(p,v)};switch(m){case u:d=y()/12;break;case l:d=y();break;case c:d=y()/3;break;case o:d=(b-g)/6048e5;break;case s:d=(b-g)/864e5;break;case a:d=b/t;break;case i:d=b/e;break;case n:d=b/1e3;break;default:d=b}return h?d:S.a(d)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=k(e,t,!0);return n&&(r.$L=n),r},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),E=T.prototype;return x.prototype=E,[["$ms",r],["$s",n],["$m",i],["$H",a],["$W",s],["$M",l],["$y",u],["$D",f]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),x.extend=function(e,t){return e.$i||(e(t,T,x),e.$i=!0),x},x.locale=k,x.isDayjs=_,x.unix=function(e){return x(1e3*e)},x.en=y[b],x.Ls=y,x.p={},x})}),Is=/* @__PURE__ */k(Rs()),Ns={version:"0.18.5"},Ps=1200,Ds=1252,Fs=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],js={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Ls=function(e){-1!=Fs.indexOf(e)&&(Ds=js[0]=e)};var Bs=function(e){Ps=e,Ls(e)};function zs(){Bs(1200),Ls(1252)}function Us(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function Hs(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var Ws,Vs=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return 255==t&&254==r?function(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}(e.slice(2)):254==t&&255==r?Hs(e.slice(2)):65279==t?e.slice(1):e},$s=function(e){return String.fromCharCode(e)},qs=function(e){return String.fromCharCode(e)},Xs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Gs(e){for(var t="",r=0,n=0,i=0,a=0,s=0,o=0,l=0,c=0;c<e.length;)a=(r=e.charCodeAt(c++))>>2,s=(3&r)<<4|(n=e.charCodeAt(c++))>>4,o=(15&n)<<2|(i=e.charCodeAt(c++))>>6,l=63&i,isNaN(n)?o=l=64:isNaN(i)&&(l=64),t+=Xs.charAt(a)+Xs.charAt(s)+Xs.charAt(o)+Xs.charAt(l);return t}function Ys(e){var t="",r=0,n=0,i=0,a=0,s=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)r=Xs.indexOf(e.charAt(l++))<<2|(a=Xs.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(r),n=(15&a)<<4|(s=Xs.indexOf(e.charAt(l++)))>>2,64!==s&&(t+=String.fromCharCode(n)),i=(3&s)<<6|(o=Xs.indexOf(e.charAt(l++))),64!==o&&(t+=String.fromCharCode(i));return t}var Ks=/* @__PURE__ */function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),Zs=/* @__PURE__ */function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function Js(e){return Ks?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function Qs(e){return Ks?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var eo=function(e){return Ks?Zs(e,"binary"):e.split("").map(function(e){return 255&e.charCodeAt(0)})};function to(e){if("undefined"==typeof ArrayBuffer)return eo(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=255&e.charCodeAt(n);return t}function ro(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function no(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return no(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var io=Ks?function(e){return Buffer.concat(e.map(function(e){return Buffer.isBuffer(e)?e:Zs(e)}))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if("string"==typeof e[t])throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(e){return Array.isArray(e)?e:[].slice.call(e)}))};var ao=/\u0000/g,so=/[\u0001-\u0006]/g;function oo(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function lo(e,t){var r=""+e;return r.length>=t?r:kl("0",t-r.length)+r}function co(e,t){var r=""+e;return r.length>=t?r:kl(" ",t-r.length)+r}function uo(e,t){var r=""+e;return r.length>=t?r:r+kl(" ",t-r.length)}var fo=/* @__PURE__ */Math.pow(2,32);function ho(e,t){return e>fo||e<-fo?function(e,t){var r=""+Math.round(e);return r.length>=t?r:kl("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:kl("0",t-r.length)+r}(Math.round(e),t)}function po(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var mo=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],vo=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var go={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},bo={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},yo={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function wo(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,s=1,o=0,l=1,c=0,u=0,f=Math.floor(i);c<t&&(o=(f=Math.floor(i))*s+a,u=f*c+l,!(i-f<5e-8));)i=1/(i-f),a=s,s=o,l=c,c=u;if(u>t&&(c>t?(u=l,o=a):(u=c,o=s)),!r)return[0,n*o,u];var h=Math.floor(n*o/u);return[h,n*o-h*u,u]}function _o(e,t,r){if(e>2958465||e<0)return null;var n=0|e,i=Math.floor(86400*(e-n)),a=0,s=[],o={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(n+=1462),o.u>.9999&&(o.u=0,86400==++i&&(o.T=i=0,++n,++o.D)),60===n)s=r?[1317,10,29]:[1900,2,29],a=3;else if(0===n)s=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),r&&(a=function(e,t){t[0]-=581;var r=e.getDay();e<60&&(r=(r+6)%7);return r}(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var ko=/* @__PURE__ */new Date(1899,11,31,0,0,0),xo=/* @__PURE__ */ko.getTime(),So=/* @__PURE__ */new Date(1900,2,1,0,0,0);function To(e,t){var r=/* @__PURE__ */e.getTime();return t?r-=1262304e5:e>=So&&(r+=864e5),(r-(xo+/* @__PURE__ */6e4*(e.getTimezoneOffset()-/* @__PURE__ */ko.getTimezoneOffset())))/864e5}function Eo(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Co(e){var t,r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=r>=-4&&r<=-1?e.toPrecision(10+r):Math.abs(r)<=9?function(e){var t=e<0?12:11,r=Eo(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10)).length<=t?r:e.toExponential(5)}(e):10===r?e.toFixed(10).substr(0,12):function(e){var t=Eo(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),Eo(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function Ao(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):Co(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return Yo(14,To(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Mo(e,t,r,n){var i,a="",s=0,o=0,l=r.y,c=0;switch(e){case 98:l=r.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,c=2;break;default:i=l%1e4,c=4}break;case 109:switch(t.length){case 1:case 2:i=r.m,c=t.length;break;case 3:return vo[r.m-1][1];case 5:return vo[r.m-1][0];default:return vo[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=r.d,c=t.length;break;case 3:return mo[r.q][0];default:return mo[r.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==r.u||"s"!=t&&"ss"!=t?(o=n>=2?3===n?1e3:100:1===n?10:1,(s=Math.round(o*(r.S+r.u)))>=60*o&&(s=0),"s"===t?0===s?"0":""+s/o:(a=lo(s,2+n),"ss"===t?a.substr(0,2):"."+a.substr(2,t.length-1))):lo(r.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*r.D+r.H;break;case"[m]":case"[mm]":i=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":i=60*(60*(24*r.D+r.H)+r.M)+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:i=l,c=1}return c>0?lo(i,c):""}function Oo(e){if(e.length<=3)return e;for(var t=e.length%3,r=e.substr(0,t);t!=e.length;t+=3)r+=(r.length>0?",":"")+e.substr(t,3);return r}var Ro=/%/g;function Io(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Io(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),-1===(r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i)).indexOf("e")){var s=Math.floor(Math.log(t)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,t,r,n){return t+r+n.substr(0,(i+a)%i)+"."+n.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var No=/# (\?+)( ?)\/( ?)(\d+)/;var Po=/^#*0*\.([0#]+)/,Do=/\).*[0#]/,Fo=/\(###\) ###\\?-####/;function jo(e){for(var t,r="",n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function Lo(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Bo(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function zo(e,t,r){if(40===e.charCodeAt(0)&&!t.match(Do)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?zo("n",n,r):"("+zo("n",n,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var n=t.length-1;44===t.charCodeAt(n-1);)--n;return Wo(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var n=t.replace(Ro,""),i=t.length-n.length;return Wo(e,n,r*Math.pow(10,2*i))+kl("%",i)}(e,t,r);if(-1!==t.indexOf("E"))return Io(t,r);if(36===t.charCodeAt(0))return"$"+zo(e,t.substr(" "==t.charAt(1)?2:1),r);var i,a,s,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+ho(l,t.length);if(t.match(/^[#?]+$/))return"0"===(i=ho(r,0))&&(i=""),i.length>t.length?i:jo(t.substr(0,t.length-i.length))+i;if(a=t.match(No))return function(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),s=i-a*n,o=n;return r+(0===a?"":""+a)+" "+(0===s?kl(" ",e[1].length+1+e[4].length):co(s,e[1].length)+e[2]+"/"+e[3]+lo(o,e[4].length))}(a,l,c);if(t.match(/^#+0+$/))return c+ho(l,t.length-t.indexOf("0"));if(a=t.match(Po))return i=Lo(r,a[1].length).replace(/^([^\.]+)$/,"$1."+jo(a[1])).replace(/\.$/,"."+jo(a[1])).replace(/\.(\d*)$/,function(e,t){return"."+t+kl("0",jo(a[1]).length-t.length)}),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+Lo(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+Oo(ho(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+zo(e,t,-r):Oo(""+(Math.floor(r)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(r,a[1].length)))+"."+lo(Bo(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return zo(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=oo(zo(e,t.replace(/[\\-]/g,""),r)),s=0,oo(oo(t.replace(/\\/g,"")).replace(/[0#]/g,function(e){return s<i.length?i.charAt(s++):"0"===e?"0":""}));if(t.match(Fo))return"("+(i=zo(e,"##########",r)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=wo(l,Math.pow(10,s)-1,!1),i=""+c," "==(u=Wo("n",a[1],o[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],(u=uo(o[2],s)).length<a[4].length&&(u=jo(a[4].substr(a[4].length-u.length))+u),i+=u;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),c+((o=wo(l,Math.pow(10,s)-1,!0))[0]||(o[1]?"":"0"))+" "+(o[1]?co(o[1],s)+a[2]+"/"+a[3]+uo(o[2],s):kl(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=ho(r,0),t.length<=i.length?i:jo(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var f=t.indexOf(".")-s,h=t.length-i.length-f;return jo(t.substr(0,f)+i+t.substr(t.length-h))}if(a=t.match(/^00,000\.([#0]*0)$/))return s=Bo(r,a[1].length),r<0?"-"+zo(e,t,-r):Oo(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?lo(0,3-e.length):"")+e})+"."+lo(s,a[1].length);switch(t){case"###,##0.00":return zo(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=Oo(ho(l,0));return"0"!==d?c+d:"";case"###,###.00":return zo(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return zo(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Uo(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Uo(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),!(r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i)).match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,t,r,n){return t+r+n.substr(0,(i+a)%i)+"."+n.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Ho(e,t,r){if(40===e.charCodeAt(0)&&!t.match(Do)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ho("n",n,r):"("+Ho("n",n,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var n=t.length-1;44===t.charCodeAt(n-1);)--n;return Wo(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var n=t.replace(Ro,""),i=t.length-n.length;return Wo(e,n,r*Math.pow(10,2*i))+kl("%",i)}(e,t,r);if(-1!==t.indexOf("E"))return Uo(t,r);if(36===t.charCodeAt(0))return"$"+Ho(e,t.substr(" "==t.charAt(1)?2:1),r);var i,a,s,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+lo(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,0===r&&(i=""),i.length>t.length?i:jo(t.substr(0,t.length-i.length))+i;if(a=t.match(No))return function(e,t,r){return r+(0===t?"":""+t)+kl(" ",e[1].length+2+e[4].length)}(a,l,c);if(t.match(/^#+0+$/))return c+lo(l,t.length-t.indexOf("0"));if(a=t.match(Po))return i=(i=(""+r).replace(/^([^\.]+)$/,"$1."+jo(a[1])).replace(/\.$/,"."+jo(a[1]))).replace(/\.(\d*)$/,function(e,t){return"."+t+kl("0",jo(a[1]).length-t.length)}),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+Oo(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ho(e,t,-r):Oo(""+r)+"."+kl("0",a[1].length);if(a=t.match(/^#,#*,#0/))return Ho(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=oo(Ho(e,t.replace(/[\\-]/g,""),r)),s=0,oo(oo(t.replace(/\\/g,"")).replace(/[0#]/g,function(e){return s<i.length?i.charAt(s++):"0"===e?"0":""}));if(t.match(Fo))return"("+(i=Ho(e,"##########",r)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=wo(l,Math.pow(10,s)-1,!1),i=""+c," "==(u=Wo("n",a[1],o[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],(u=uo(o[2],s)).length<a[4].length&&(u=jo(a[4].substr(a[4].length-u.length))+u),i+=u;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),c+((o=wo(l,Math.pow(10,s)-1,!0))[0]||(o[1]?"":"0"))+" "+(o[1]?co(o[1],s)+a[2]+"/"+a[3]+uo(o[2],s):kl(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:jo(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var f=t.indexOf(".")-s,h=t.length-i.length-f;return jo(t.substr(0,f)+i+t.substr(t.length-h))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Ho(e,t,-r):Oo(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?lo(0,3-e.length):"")+e})+"."+lo(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=Oo(""+l);return"0"!==d?c+d:"";default:if(t.match(/\.[0#?]*$/))return Ho(e,t.slice(0,t.lastIndexOf(".")),r)+jo(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Wo(e,t,r){return(0|r)===r?Ho(e,t,r):zo(e,t,r)}var Vo=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function $o(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":po(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(n=r;"]"!==e.charAt(t++)&&t<e.length;)n+=e.charAt(t);if(n.match(Vo))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||"\\"==r&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var qo=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Xo(e,t){if(null==t)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0}return!1}function Go(e,t){var r=function(e){for(var t=[],r=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(i,n-i),i=n+1}if(t[t.length]=e.substr(i),!0===r)throw new Error("Format |"+e+"| unterminated string ");return t}(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if("number"!=typeof t)return[4,4===r.length||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"]}var a=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[n,a];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var s=r[0].match(qo),o=r[1].match(qo);return Xo(t,s)?[n,r[0]]:Xo(t,o)?[n,r[1]]:[n,r[null!=s&&null!=o?2:1]]}return[n,a]}function Yo(e,t,r){null==r&&(r={});var n="";switch(typeof e){case"string":n="m/d/yy"==e&&r.dateNF?r.dateNF:e;break;case"number":null==(n=14==e&&r.dateNF?r.dateNF:(null!=r.table?r.table:go)[e])&&(n=r.table&&r.table[bo[e]]||go[bo[e]]),null==n&&(n=yo[e]||"General")}if(po(n,0))return Ao(t,r);t instanceof Date&&(t=To(t,r.date1904));var i=Go(n,t);if(po(i[1]))return Ao(t,r);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,r,n){for(var i,a,s,o=[],l="",c=0,u="",f="t",h="H";c<e.length;)switch(u=e.charAt(c)){case"G":if(!po(e,c))throw new Error("unrecognized character "+u+" in "+e);o[o.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(s=e.charCodeAt(++c))&&c<e.length;)l+=String.fromCharCode(s);o[o.length]={t:"t",v:l},++c;break;case"\\":var d=e.charAt(++c),p="("===d||")"===d?d:"t";o[o.length]={t:p,v:d},++c;break;case"_":o[o.length]={t:"t",v:" "},c+=2;break;case"@":o[o.length]={t:"T",v:t},++c;break;case"B":case"b":if("1"===e.charAt(c+1)||"2"===e.charAt(c+1)){if(null==i&&null==(i=_o(t,r,"2"===e.charAt(c+1))))return"";o[o.length]={t:"X",v:e.substr(c,2)},f=u,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==i&&null==(i=_o(t,r)))return"";for(l=u;++c<e.length&&e.charAt(c).toLowerCase()===u;)l+=u;"m"===u&&"h"===f.toLowerCase()&&(u="M"),"h"===u&&(u=h),o[o.length]={t:u,v:l},f=u;break;case"A":case"a":case"上":var m={t:u,v:u};if(null==i&&(i=_o(t,r)),"A/P"===e.substr(c,3).toUpperCase()?(null!=i&&(m.v=i.H>=12?"P":"A"),m.t="T",h="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",c+=5,h="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"下午":"上午"),m.t="T",c+=5,h="h"):(m.t="t",++c),null==i&&"T"===m.t)return"";o[o.length]=m,f=u;break;case"[":for(l=u;"]"!==e.charAt(c++)&&c<e.length;)l+=e.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(Vo)){if(null==i&&null==(i=_o(t,r)))return"";o[o.length]={t:"Z",v:l.toLowerCase()},f=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",$o(e)||(o[o.length]={t:"t",v:l}));break;case".":if(null!=i){for(l=u;++c<e.length&&"0"===(u=e.charAt(c));)l+=u;o[o.length]={t:"s",v:l};break}case"0":case"#":for(l=u;++c<e.length&&"0#?.,E+-%".indexOf(u=e.charAt(c))>-1;)l+=u;o[o.length]={t:"n",v:l};break;case"?":for(l=u;e.charAt(++c)===u;)l+=u;o[o.length]={t:u,v:l},f=u;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":o[o.length]={t:1===n?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=u;c<e.length&&"0123456789".indexOf(e.charAt(++c))>-1;)l+=e.charAt(c);o[o.length]={t:"D",v:l};break;case" ":o[o.length]={t:u,v:u},++c;break;case"$":o[o.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);o[o.length]={t:"t",v:u},++c}var v,g=0,b=0;for(c=o.length-1,f="t";c>=0;--c)switch(o[c].t){case"h":case"H":o[c].t=h,f="h",g<1&&(g=1);break;case"s":(v=o[c].v.match(/\.0+$/))&&(b=Math.max(b,v[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":f=o[c].t;break;case"m":"s"===f&&(o[c].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&o[c].v.match(/[Hh]/)&&(g=1),g<2&&o[c].v.match(/[Mm]/)&&(g=2),g<3&&o[c].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M)}var y,w="";for(c=0;c<o.length;++c)switch(o[c].t){case"t":case"T":case" ":case"D":break;case"X":o[c].v="",o[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":o[c].v=Mo(o[c].t.charCodeAt(0),o[c].v,i,b),o[c].t="t";break;case"n":case"?":for(y=c+1;null!=o[y]&&("?"===(u=o[y].t)||"D"===u||(" "===u||"t"===u)&&null!=o[y+1]&&("?"===o[y+1].t||"t"===o[y+1].t&&"/"===o[y+1].v)||"("===o[c].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===o[y].v||" "===o[y].v&&null!=o[y+1]&&"?"==o[y+1].t));)o[c].v+=o[y].v,o[y]={v:"",t:";"},++y;w+=o[c].v,c=y-1;break;case"G":o[c].t="t",o[c].v=Ao(t,r)}var _,k,x="";if(w.length>0){40==w.charCodeAt(0)?(_=t<0&&45===w.charCodeAt(0)?-t:t,k=Wo("n",w,_)):(k=Wo("n",w,_=t<0&&n>1?-t:t),_<0&&o[0]&&"t"==o[0].t&&(k=k.substr(1),o[0].v="-"+o[0].v)),y=k.length-1;var S=o.length;for(c=0;c<o.length;++c)if(null!=o[c]&&"t"!=o[c].t&&o[c].v.indexOf(".")>-1){S=c;break}var T=o.length;if(S===o.length&&-1===k.indexOf("E")){for(c=o.length-1;c>=0;--c)null!=o[c]&&-1!=="n?".indexOf(o[c].t)&&(y>=o[c].v.length-1?(y-=o[c].v.length,o[c].v=k.substr(y+1,o[c].v.length)):y<0?o[c].v="":(o[c].v=k.substr(0,y+1),y=-1),o[c].t="t",T=c);y>=0&&T<o.length&&(o[T].v=k.substr(0,y+1)+o[T].v)}else if(S!==o.length&&-1===k.indexOf("E")){for(y=k.indexOf(".")-1,c=S;c>=0;--c)if(null!=o[c]&&-1!=="n?".indexOf(o[c].t)){for(a=o[c].v.indexOf(".")>-1&&c===S?o[c].v.indexOf(".")-1:o[c].v.length-1,x=o[c].v.substr(a+1);a>=0;--a)y>=0&&("0"===o[c].v.charAt(a)||"#"===o[c].v.charAt(a))&&(x=k.charAt(y--)+x);o[c].v=x,o[c].t="t",T=c}for(y>=0&&T<o.length&&(o[T].v=k.substr(0,y+1)+o[T].v),y=k.indexOf(".")+1,c=S;c<o.length;++c)if(null!=o[c]&&(-1!=="n?(".indexOf(o[c].t)||c===S)){for(a=o[c].v.indexOf(".")>-1&&c===S?o[c].v.indexOf(".")+1:0,x=o[c].v.substr(0,a);a<o[c].v.length;++a)y<k.length&&(x+=k.charAt(y++));o[c].v=x,o[c].t="t",T=c}}}for(c=0;c<o.length;++c)null!=o[c]&&"n?".indexOf(o[c].t)>-1&&(_=n>1&&t<0&&c>0&&"-"===o[c-1].v?-t:t,o[c].v=Wo(o[c].t,o[c].v,_),o[c].t="t");var E="";for(c=0;c!==o.length;++c)null!=o[c]&&(E+=o[c].v);return E}(i[1],t,r,i[0])}function Ko(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(null!=go[r]){if(go[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return go[t]=e,t}function Zo(e){for(var t=0;392!=t;++t)void 0!==e[t]&&Ko(e[t],t)}function Jo(){go=function(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}()}var Qo={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},el=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var tl=/* @__PURE__ */function(){var e={};e.version="1.2.0";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();var r=function(e){var t=0,r=0,n=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)i[n]=e[n];for(n=0;256!=n;++n)for(r=e[n],t=256+n;t<4096;t+=256)r=i[t]=r>>>8^e[255&r];var a=[];for(n=1;16!=n;++n)a[n-1]="undefined"!=typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return a}(t),n=r[0],i=r[1],a=r[2],s=r[3],o=r[4],l=r[5],c=r[6],u=r[7],f=r[8],h=r[9],d=r[10],p=r[11],m=r[12],v=r[13],g=r[14];return e.table=t,e.bstr=function(e,r){for(var n=-1^r,i=0,a=e.length;i<a;)n=n>>>8^t[255&(n^e.charCodeAt(i++))];return~n},e.buf=function(e,r){for(var b=-1^r,y=e.length-15,w=0;w<y;)b=g[e[w++]^255&b]^v[e[w++]^b>>8&255]^m[e[w++]^b>>16&255]^p[e[w++]^b>>>24]^d[e[w++]]^h[e[w++]]^f[e[w++]]^u[e[w++]]^c[e[w++]]^l[e[w++]]^o[e[w++]]^s[e[w++]]^a[e[w++]]^i[e[w++]]^n[e[w++]]^t[e[w++]];for(y+=15;w<y;)b=b>>>8^t[255&(b^e[w++])];return~b},e.str=function(e,r){for(var n=-1^r,i=0,a=e.length,s=0,o=0;i<a;)(s=e.charCodeAt(i++))<128?n=n>>>8^t[255&(n^s)]:s<2048?n=(n=n>>>8^t[255&(n^(192|s>>6&31))])>>>8^t[255&(n^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),o=1023&e.charCodeAt(i++),n=(n=(n=(n=n>>>8^t[255&(n^(240|s>>8&7))])>>>8^t[255&(n^(128|s>>2&63))])>>>8^t[255&(n^(128|o>>6&15|(3&s)<<4))])>>>8^t[255&(n^(128|63&o))]):n=(n=(n=n>>>8^t[255&(n^(224|s>>12&15))])>>>8^t[255&(n^(128|s>>6&63))])>>>8^t[255&(n^(128|63&s))];return~n},e}(),rl=/* @__PURE__ */function(){var e,t={};function r(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function n(e){if("/"==e.charAt(e.length-1))return n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function i(e,t){"string"==typeof t&&(t=new Date(t));var r=t.getHours();r=(r=r<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,r);var n=t.getFullYear()-1980;n=(n=n<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,n)}function a(e){xu(e,0);for(var t={},r=0;e.l<=e.length-4;){var n=e.read_shift(2),i=e.read_shift(2),a=e.l+i,s={};if(21589===n)1&(r=e.read_shift(1))&&(s.mtime=e.read_shift(4)),i>5&&(2&r&&(s.atime=e.read_shift(4)),4&r&&(s.ctime=e.read_shift(4))),s.mtime&&(s.mt=/* @__PURE__ */new Date(1e3*s.mtime));e.l=a,t[n]=s}return t}function s(){return e||(e={})}function o(e,t){if(80==e[0]&&75==e[1])return ne(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=k(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var r=t&&t.root||"",n=(Ks&&Buffer.isBuffer(e)?e.toString("binary"):k(e)).split("\r\n"),i=0,a="";for(i=0;i<n.length;++i)if(a=n[i],/^Content-Location:/i.test(a)&&(a=a.slice(a.indexOf("file")),r||(r=a.slice(0,a.lastIndexOf("/")+1)),a.slice(0,r.length)!=r))for(;r.length>0&&(r=(r=r.slice(0,r.length-1)).slice(0,r.lastIndexOf("/")+1),a.slice(0,r.length)!=r););var s=(n[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var o="--"+(s[1]||""),l={FileIndex:[],FullPaths:[]};h(l);var c,u=0;for(i=0;i<n.length;++i){var f=n[i];f!==o&&f!==o+"--"||(u++&&ce(l,n.slice(c,i),r),c=i)}return l}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var r,n,i,a,s,o,d=512,p=[],m=e.slice(0,512);xu(m,0);var v=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(b,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(r=v[0]){case 3:d=512;break;case 4:d=4096;break;case 0:if(0==v[1])return ne(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+r)}512!==d&&xu(m=e.slice(0,d),28);var y=e.slice(0,d);!function(e,t){var r=9;switch(e.l+=2,r=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+r);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+r);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+r)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,r);var w=m.read_shift(4,"i");if(3===r&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);m.l+=4,a=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),s=m.read_shift(4,"i"),n=m.read_shift(4,"i"),o=m.read_shift(4,"i"),i=m.read_shift(4,"i");for(var _=-1,x=0;x<109&&!((_=m.read_shift(4,"i"))<0);++x)p[x]=_;var S=function(e,t){for(var r=Math.ceil(e.length/t)-1,n=[],i=1;i<r;++i)n[i-1]=e.slice(i*t,(i+1)*t);return n[r-1]=e.slice(r*t),n}(e,d);c(o,i,S,d,p);var T=function(e,t,r,n){var i=e.length,a=[],s=[],o=[],l=[],c=n-1,u=0,f=0,h=0,d=0;for(u=0;u<i;++u)if(o=[],(h=u+t)>=i&&(h-=i),!s[h]){l=[];var p=[];for(f=h;f>=0;){p[f]=!0,s[f]=!0,o[o.length]=f,l.push(e[f]);var m=r[Math.floor(4*f/n)];if(n<4+(d=4*f&c))throw new Error("FAT boundary crossed: "+f+" 4 "+n);if(!e[m])break;if(p[f=mu(e[m],d)])break}a[h]={nodes:o,data:$c([l])}}return a}(S,a,p,d);T[a].name="!Directory",n>0&&s!==g&&(T[s].name="!MiniFAT"),T[p[0]].name="!FAT",T.fat_addrs=p,T.ssz=d;var E=[],C=[],A=[];!function(e,t,r,n,i,a,s,o){for(var c,h=0,d=n.length?2:0,p=t[e].data,m=0,v=0;m<p.length;m+=128){var b=p.slice(m,m+128);xu(b,64),v=b.read_shift(2),c=Xc(b,0,v-d),n.push(c);var y={name:c,type:b.read_shift(1),color:b.read_shift(1),L:b.read_shift(4,"i"),R:b.read_shift(4,"i"),C:b.read_shift(4,"i"),clsid:b.read_shift(16),state:b.read_shift(4,"i"),start:0,size:0};b.read_shift(2)+b.read_shift(2)+b.read_shift(2)+b.read_shift(2)!==0&&(y.ct=f(b,b.l-8)),b.read_shift(2)+b.read_shift(2)+b.read_shift(2)+b.read_shift(2)!==0&&(y.mt=f(b,b.l-8)),y.start=b.read_shift(4,"i"),y.size=b.read_shift(4,"i"),y.size<0&&y.start<0&&(y.size=y.type=0,y.start=g,y.name=""),5===y.type?(h=y.start,i>0&&h!==g&&(t[h].name="!StreamData")):y.size>=4096?(y.storage="fat",void 0===t[y.start]&&(t[y.start]=u(r,y.start,t.fat_addrs,t.ssz)),t[y.start].name=y.name,y.content=t[y.start].data.slice(0,y.size)):(y.storage="minifat",y.size<0?y.size=0:h!==g&&y.start!==g&&t[h]&&(y.content=l(y,t[h].data,(t[o]||{}).data))),y.content&&xu(y.content,0),a[c]=y,s.push(y)}}(a,T,S,E,n,{},C,s),function(e,t,r){for(var n=0,i=0,a=0,s=0,o=0,l=r.length,c=[],u=[];n<l;++n)c[n]=u[n]=n,t[n]=r[n];for(;o<u.length;++o)i=e[n=u[o]].L,a=e[n].R,s=e[n].C,c[n]===n&&(-1!==i&&c[i]!==i&&(c[n]=c[i]),-1!==a&&c[a]!==a&&(c[n]=c[a])),-1!==s&&(c[s]=n),-1!==i&&n!=c[n]&&(c[i]=c[n],u.lastIndexOf(i)<o&&u.push(i)),-1!==a&&n!=c[n]&&(c[a]=c[n],u.lastIndexOf(a)<o&&u.push(a));for(n=1;n<l;++n)c[n]===n&&(-1!==a&&c[a]!==a?c[n]=c[a]:-1!==i&&c[i]!==i&&(c[n]=c[i]));for(n=1;n<l;++n)if(0!==e[n].type){if((o=n)!=c[o])do{o=c[o],t[n]=t[o]+"/"+t[n]}while(0!==o&&-1!==c[o]&&o!=c[o]);c[n]=-1}for(t[0]+="/",n=1;n<l;++n)2!==e[n].type&&(t[n]+="/")}(C,A,E),E.shift();var M={FileIndex:C,FullPaths:A};return t&&t.raw&&(M.raw={header:y,sectors:S}),M}function l(e,t,r){for(var n=e.start,i=e.size,a=[],s=n;r&&i>0&&s>=0;)a.push(t.slice(s*v,s*v+v)),i-=v,s=mu(r,4*s);return 0===a.length?Tu(0):io(a).slice(0,e.size)}function c(e,t,r,n,i){var a=g;if(e===g){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var s=r[e],o=(n>>>2)-1;if(!s)return;for(var l=0;l<o&&(a=mu(s,4*l))!==g;++l)i.push(a);c(mu(s,n-4),t-1,r,n,i)}}function u(e,t,r,n,i){var a=[],s=[];i||(i=[]);var o=n-1,l=0,c=0;for(l=t;l>=0;){i[l]=!0,a[a.length]=l,s.push(e[l]);var u=r[Math.floor(4*l/n)];if(n<4+(c=4*l&o))throw new Error("FAT boundary crossed: "+l+" 4 "+n);if(!e[u])break;l=mu(e[u],c)}return{nodes:a,data:$c([s])}}function f(e,t){/* @__PURE__ */
|
|
3
|
+
return new Date(1e3*(pu(e,t+4)/1e7*Math.pow(2,32)+pu(e,t)/1e7-11644473600))}function h(e,t){var r=t||{},n=r.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=n+"/",e.FileIndex[0]={name:n,type:5}),r.CLSID&&(e.FileIndex[0].clsid=r.CLSID),function(e){var t="Sh33tJ5";if(rl.find(e,"/"+t))return;var r=Tu(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.FileIndex.push({name:t,type:2,content:r,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),d(e)}(e)}function d(e,t){h(e);for(var i=!1,a=!1,s=e.FullPaths.length-1;s>=0;--s){var o=e.FileIndex[s];switch(o.type){case 0:a?i=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(o.R*o.L*o.C)&&(i=!0),o.R>-1&&o.L>-1&&o.R==o.L&&(i=!0);break;default:i=!0}}if(i||t){var l=new Date(1987,1,19),c=0,u=Object.create?Object.create(null):{},f=[];for(s=0;s<e.FullPaths.length;++s)u[e.FullPaths[s]]=!0,0!==e.FileIndex[s].type&&f.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<f.length;++s){var d=r(f[s][0]);(a=u[d])||(f.push([d,{name:n(d).replace("/",""),type:1,clsid:w,ct:l,mt:l,content:null}]),u[d]=!0)}for(f.sort(function(e,t){return function(e,t){for(var r=e.split("/"),n=t.split("/"),i=0,a=0,s=Math.min(r.length,n.length);i<s;++i){if(a=r[i].length-n[i].length)return a;if(r[i]!=n[i])return r[i]<n[i]?-1:1}return r.length-n.length}(e[0],t[0])}),e.FullPaths=[],e.FileIndex=[],s=0;s<f.length;++s)e.FullPaths[s]=f[s][0],e.FileIndex[s]=f[s][1];for(s=0;s<f.length;++s){var p=e.FileIndex[s],m=e.FullPaths[s];if(p.name=n(m).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||w,0===s)p.C=f.length>1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(c=s+1;c<f.length&&r(e.FullPaths[c])!=m;++c);for(p.C=c>=f.length?-1:c,c=s+1;c<f.length&&r(e.FullPaths[c])!=r(m);++c);p.R=c>=f.length?-1:c,p.type=1}else r(e.FullPaths[s+1]||"")==r(m)&&(p.R=s+1),p.type=2}}}function p(e,t){var r=t||{};if("mad"==r.fileType)return function(e,t){for(var r=t||{},n=r.boundary||"SheetJS",i=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(n="------="+n).slice(2)+'"',"","",""],a=e.FullPaths[0],s=a,o=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(s=e.FullPaths[l].slice(a.length),(o=e.FileIndex[l]).size&&o.content&&"Sh33tJ5"!=s){s=s.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"});for(var c=o.content,u=Ks&&Buffer.isBuffer(c)?c.toString("binary"):k(c),f=0,h=Math.min(1024,u.length),d=0,p=0;p<=h;++p)(d=u.charCodeAt(p))>=32&&d<128&&++f;var m=f>=4*h/5;i.push(n),i.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+s),i.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),i.push("Content-Type: "+se(o,s)),i.push(""),i.push(m?le(u):oe(u))}return i.push(n+"--\r\n"),i.join("\r\n")}(e,r);if(d(e),"zip"===r.fileType)return function(e,t){var r=t||{},n=[],a=[],s=Tu(1),o=r.compression?8:0,l=0,c=0,u=0,f=0,h=0,d=e.FullPaths[0],p=d,m=e.FileIndex[0],v=[],g=0;for(c=1;c<e.FullPaths.length;++c)if(p=e.FullPaths[c].slice(d.length),(m=e.FileIndex[c]).size&&m.content&&"Sh33tJ5"!=p){var b=f,y=Tu(p.length);for(u=0;u<p.length;++u)y.write_shift(1,127&p.charCodeAt(u));y=y.slice(0,y.l),v[h]=tl.buf(m.content,0);var w=m.content;8==o&&(w=x(w)),(s=Tu(30)).write_shift(4,67324752),s.write_shift(2,20),s.write_shift(2,l),s.write_shift(2,o),m.mt?i(s,m.mt):s.write_shift(4,0),s.write_shift(-4,8&l?0:v[h]),s.write_shift(4,8&l?0:w.length),s.write_shift(4,8&l?0:m.content.length),s.write_shift(2,y.length),s.write_shift(2,0),f+=s.length,n.push(s),f+=y.length,n.push(y),f+=w.length,n.push(w),8&l&&((s=Tu(12)).write_shift(-4,v[h]),s.write_shift(4,w.length),s.write_shift(4,m.content.length),f+=s.l,n.push(s)),(s=Tu(46)).write_shift(4,33639248),s.write_shift(2,0),s.write_shift(2,20),s.write_shift(2,l),s.write_shift(2,o),s.write_shift(4,0),s.write_shift(-4,v[h]),s.write_shift(4,w.length),s.write_shift(4,m.content.length),s.write_shift(2,y.length),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(4,0),s.write_shift(4,b),g+=s.l,a.push(s),g+=y.length,a.push(y),++h}return s=Tu(22),s.write_shift(4,101010256),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,h),s.write_shift(2,h),s.write_shift(4,g),s.write_shift(4,f),s.write_shift(2,0),io([io(n),io(a),s])}(e,r);var n=function(e){for(var t=0,r=0,n=0;n<e.FileIndex.length;++n){var i=e.FileIndex[n];if(i.content){var a=i.content.length;a>0&&(a<4096?t+=a+63>>6:r+=a+511>>9)}}for(var s=e.FullPaths.length+3>>2,o=t+127>>7,l=(t+7>>3)+r+s+o,c=l+127>>7,u=c<=109?0:Math.ceil((c-109)/127);l+c+u+127>>7>c;)u=++c<=109?0:Math.ceil((c-109)/127);var f=[1,u,c,o,s,r,t,0];return e.FileIndex[0].size=t<<6,f[7]=(e.FileIndex[0].start=f[0]+f[1]+f[2]+f[3]+f[4]+f[5])+(f[6]+7>>3),f}(e),a=Tu(n[7]<<9),s=0,o=0;for(s=0;s<8;++s)a.write_shift(1,y[s]);for(s=0;s<8;++s)a.write_shift(2,0);for(a.write_shift(2,62),a.write_shift(2,3),a.write_shift(2,65534),a.write_shift(2,9),a.write_shift(2,6),s=0;s<3;++s)a.write_shift(2,0);for(a.write_shift(4,0),a.write_shift(4,n[2]),a.write_shift(4,n[0]+n[1]+n[2]+n[3]-1),a.write_shift(4,0),a.write_shift(4,4096),a.write_shift(4,n[3]?n[0]+n[1]+n[2]-1:g),a.write_shift(4,n[3]),a.write_shift(-4,n[1]?n[0]-1:g),a.write_shift(4,n[1]),s=0;s<109;++s)a.write_shift(-4,s<n[2]?n[1]+s:-1);if(n[1])for(o=0;o<n[1];++o){for(;s<236+127*o;++s)a.write_shift(-4,s<n[2]?n[1]+s:-1);a.write_shift(-4,o===n[1]-1?g:o+1)}var l=function(e){for(o+=e;s<o-1;++s)a.write_shift(-4,s+1);e&&(++s,a.write_shift(-4,g))};for(o=s=0,o+=n[1];s<o;++s)a.write_shift(-4,_.DIFSECT);for(o+=n[2];s<o;++s)a.write_shift(-4,_.FATSECT);l(n[3]),l(n[4]);for(var c=0,u=0,f=e.FileIndex[0];c<e.FileIndex.length;++c)(f=e.FileIndex[c]).content&&((u=f.content.length)<4096||(f.start=o,l(u+511>>9)));for(l(n[6]+7>>3);511&a.l;)a.write_shift(-4,_.ENDOFCHAIN);for(o=s=0,c=0;c<e.FileIndex.length;++c)(f=e.FileIndex[c]).content&&(!(u=f.content.length)||u>=4096||(f.start=o,l(u+63>>6)));for(;511&a.l;)a.write_shift(-4,_.ENDOFCHAIN);for(s=0;s<n[4]<<2;++s){var h=e.FullPaths[s];if(h&&0!==h.length){f=e.FileIndex[s],0===s&&(f.start=f.size?f.start-1:g);var p=0===s&&r.root||f.name;if(u=2*(p.length+1),a.write_shift(64,p,"utf16le"),a.write_shift(2,u),a.write_shift(1,f.type),a.write_shift(1,f.color),a.write_shift(-4,f.L),a.write_shift(-4,f.R),a.write_shift(-4,f.C),f.clsid)a.write_shift(16,f.clsid,"hex");else for(c=0;c<4;++c)a.write_shift(4,0);a.write_shift(4,f.state||0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,f.start),a.write_shift(4,f.size),a.write_shift(4,0)}else{for(c=0;c<17;++c)a.write_shift(4,0);for(c=0;c<3;++c)a.write_shift(4,-1);for(c=0;c<12;++c)a.write_shift(4,0)}}for(s=1;s<e.FileIndex.length;++s)if((f=e.FileIndex[s]).size>=4096)if(a.l=f.start+1<<9,Ks&&Buffer.isBuffer(f.content))f.content.copy(a,a.l,0,f.size),a.l+=f.size+511&-512;else{for(c=0;c<f.size;++c)a.write_shift(1,f.content[c]);for(;511&c;++c)a.write_shift(1,0)}for(s=1;s<e.FileIndex.length;++s)if((f=e.FileIndex[s]).size>0&&f.size<4096)if(Ks&&Buffer.isBuffer(f.content))f.content.copy(a,a.l,0,f.size),a.l+=f.size+63&-64;else{for(c=0;c<f.size;++c)a.write_shift(1,f.content[c]);for(;63&c;++c)a.write_shift(1,0)}if(Ks)a.l=a.length;else for(;a.l<a.length;)a.write_shift(1,0);return a}t.version="1.2.1";var m,v=64,g=-2,b="d0cf11e0a1b11ae1",y=[208,207,17,224,161,177,26,225],w="00000000000000000000000000000000",_={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:g,FREESECT:-1,HEADER_SIGNATURE:b,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:w,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function k(e){for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function x(e){return m?m.deflateRawSync(e):G(e)}var S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=[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],E=[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];function C(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var A="undefined"!=typeof Uint8Array,M=A?new Uint8Array(256):[],O=0;O<256;++O)M[O]=C(O);function R(e,t){var r=M[255&e];return t<=8?r>>>8-t:(r=r<<8|M[e>>8&255],t<=16?r>>>16-t:(r=r<<8|M[e>>16&255])>>>24-t)}function I(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=6?0:e[n+1]<<8))>>>r&3}function N(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=5?0:e[n+1]<<8))>>>r&7}function P(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=3?0:e[n+1]<<8))>>>r&31}function D(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=1?0:e[n+1]<<8))>>>r&127}function F(e,t,r){var n=7&t,i=t>>>3,a=(1<<r)-1,s=e[i]>>>n;return r<8-n?s&a:(s|=e[i+1]<<8-n,r<16-n?s&a:(s|=e[i+2]<<16-n,r<24-n?s&a:(s|=e[i+3]<<24-n)&a))}function j(e,t,r){var n=7&t,i=t>>>3;return n<=5?e[i]|=(7&r)<<n:(e[i]|=r<<n&255,e[i+1]=(7&r)>>8-n),t+3}function L(e,t,r){return r=(1&r)<<(7&t),e[t>>>3]|=r,t+1}function B(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=r,t+8}function z(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=255&r,e[n+2]=r>>>8,t+16}function U(e,t){var r=e.length,n=2*r>t?2*r:t+5,i=0;if(r>=t)return e;if(Ks){var a=Qs(n);if(e.copy)e.copy(a);else for(;i<e.length;++i)a[i]=e[i];return a}if(A){var s=new Uint8Array(n);if(s.set)s.set(e);else for(;i<r;++i)s[i]=e[i];return s}return e.length=n,e}function H(e){for(var t=new Array(e),r=0;r<e;++r)t[r]=0;return t}function W(e,t,r){var n=1,i=0,a=0,s=0,o=0,l=e.length,c=A?new Uint16Array(32):H(32);for(a=0;a<32;++a)c[a]=0;for(a=l;a<r;++a)e[a]=0;l=e.length;var u=A?new Uint16Array(l):H(l);for(a=0;a<l;++a)c[i=e[a]]++,n<i&&(n=i),u[a]=0;for(c[0]=0,a=1;a<=n;++a)c[a+16]=o=o+c[a-1]<<1;for(a=0;a<l;++a)0!=(o=e[a])&&(u[a]=c[o+16]++);var f=0;for(a=0;a<l;++a)if(0!=(f=e[a]))for(o=R(u[a],n)>>n-f,s=(1<<n+4-f)-1;s>=0;--s)t[o|s<<f]=15&f|a<<4;return n}var V=A?new Uint16Array(512):H(512),$=A?new Uint16Array(32):H(32);if(!A){for(var q=0;q<512;++q)V[q]=0;for(q=0;q<32;++q)$[q]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);W(e,$,32);var r=[];for(t=0;t<=143;t++)r.push(8);for(;t<=255;t++)r.push(9);for(;t<=279;t++)r.push(7);for(;t<=287;t++)r.push(8);W(r,V,288)}();var X=/* @__PURE__ */function(){for(var e=A?new Uint8Array(32768):[],t=0,r=0;t<E.length-1;++t)for(;r<E[t+1];++r)e[r]=t;for(;r<32768;++r)e[r]=29;var n=A?new Uint8Array(259):[];for(t=0,r=0;t<T.length-1;++t)for(;r<T[t+1];++r)n[r]=t;return function(t,r){return t.length<8?function(e,t){for(var r=0;r<e.length;){var n=Math.min(65535,e.length-r),i=r+n==e.length;for(t.write_shift(1,+i),t.write_shift(2,n),t.write_shift(2,65535&~n);n-- >0;)t[t.l++]=e[r++]}return t.l}(t,r):function(t,r){for(var i=0,a=0,s=A?new Uint16Array(32768):[];a<t.length;){var o=Math.min(65535,t.length-a);if(o<10){for(7&(i=j(r,i,+!(a+o!=t.length)))&&(i+=8-(7&i)),r.l=i/8|0,r.write_shift(2,o),r.write_shift(2,65535&~o);o-- >0;)r[r.l++]=t[a++];i=8*r.l}else{i=j(r,i,+!(a+o!=t.length)+2);for(var l=0;o-- >0;){var c=t[a],u=-1,f=0;if((u=s[l=32767&(l<<5^c)])&&((u|=-32768&a)>a&&(u-=32768),u<a))for(;t[u+f]==t[a+f]&&f<250;)++f;if(f>2){(c=n[f])<=22?i=B(r,i,M[c+1]>>1)-1:(B(r,i,3),B(r,i+=5,M[c-23]>>5),i+=3);var h=c<8?0:c-4>>2;h>0&&(z(r,i,f-T[c]),i+=h),c=e[a-u],i=B(r,i,M[c]>>3),i-=3;var d=c<4?0:c-2>>1;d>0&&(z(r,i,a-u-E[c]),i+=d);for(var p=0;p<f;++p)s[l]=32767&a,l=32767&(l<<5^t[a]),++a;o-=f-1}else c<=143?c+=48:i=L(r,i,1),i=B(r,i,M[c]),s[l]=32767&a,++a}i=B(r,i,0)-1}}return r.l=(i+7)/8|0,r.l}(t,r)}}();function G(e){var t=Tu(50+Math.floor(1.1*e.length)),r=X(e,t);return t.slice(0,r)}var Y=A?new Uint16Array(32768):H(32768),K=A?new Uint16Array(32768):H(32768),Z=A?new Uint16Array(128):H(128),J=1,Q=1;function ee(e,t){var r=P(e,t)+257,n=P(e,t+=5)+1,i=function(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=4?0:e[n+1]<<8))>>>r&15}(e,t+=5)+4;t+=4;for(var a=0,s=A?new Uint8Array(19):H(19),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=A?new Uint8Array(8):H(8),u=A?new Uint8Array(8):H(8),f=s.length,h=0;h<i;++h)s[S[h]]=a=N(e,t),l<a&&(l=a),c[a]++,t+=3;var d=0;for(c[0]=0,h=1;h<=l;++h)u[h]=d=d+c[h-1]<<1;for(h=0;h<f;++h)0!=(d=s[h])&&(o[h]=u[d]++);var p=0;for(h=0;h<f;++h)if(0!=(p=s[h])){d=M[o[h]]>>8-p;for(var m=(1<<7-p)-1;m>=0;--m)Z[d|m<<p]=7&p|h<<3}var v=[];for(l=1;v.length<r+n;)switch(t+=7&(d=Z[D(e,t)]),d>>>=3){case 16:for(a=3+I(e,t),t+=2,d=v[v.length-1];a-- >0;)v.push(d);break;case 17:for(a=3+N(e,t),t+=3;a-- >0;)v.push(0);break;case 18:for(a=11+D(e,t),t+=7;a-- >0;)v.push(0);break;default:v.push(d),l<d&&(l=d)}var g=v.slice(0,r),b=v.slice(r);for(h=r;h<286;++h)g[h]=0;for(h=n;h<30;++h)b[h]=0;return J=W(g,Y,286),Q=W(b,K,30),t}function te(e,t){var r=function(e,t){if(3==e[0]&&!(3&e[1]))return[Js(t),2];for(var r=0,n=0,i=Qs(t||1<<18),a=0,s=i.length>>>0,o=0,l=0;!(1&n);)if(n=N(e,r),r+=3,n>>>1!=0)for(n>>1==1?(o=9,l=5):(r=ee(e,r),o=J,l=Q);;){!t&&s<a+32767&&(s=(i=U(i,a+32767)).length);var c=F(e,r,o),u=n>>>1==1?V[c]:Y[c];if(r+=15&u,(u>>>=4)>>>8&255){if(256==u)break;var f=(u-=257)<8?0:u-4>>2;f>5&&(f=0);var h=a+T[u];f>0&&(h+=F(e,r,f),r+=f),c=F(e,r,l),r+=15&(u=n>>>1==1?$[c]:K[c]);var d=(u>>>=4)<4?0:u-2>>1,p=E[u];for(d>0&&(p+=F(e,r,d),r+=d),!t&&s<h&&(s=(i=U(i,h+100)).length);a<h;)i[a]=i[a-p],++a}else i[a++]=u}else{7&r&&(r+=8-(7&r));var m=e[r>>>3]|e[(r>>>3)+1]<<8;if(r+=32,m>0)for(!t&&s<a+m&&(s=(i=U(i,a+m)).length);m-- >0;)i[a++]=e[r>>>3],r+=8}return t?[i,r+7>>>3]:[i.slice(0,a),r+7>>>3]}(e.slice(e.l||0),t);return e.l+=r[1],r[0]}function re(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function ne(e,t){var r=e;xu(r,0);var n={FileIndex:[],FullPaths:[]};h(n,{root:t.root});for(var i=r.length-4;(80!=r[i]||75!=r[i+1]||5!=r[i+2]||6!=r[i+3])&&i>=0;)--i;r.l=i+4,r.l+=4;var s=r.read_shift(2);for(r.l+=6,r.l=r.read_shift(4),i=0;i<s;++i){r.l+=20;var o=r.read_shift(4),l=r.read_shift(4),c=r.read_shift(2),u=r.read_shift(2),f=r.read_shift(2);r.l+=8;var d=r.read_shift(4),p=a(r.slice(r.l+c,r.l+c+u));r.l+=c+u+f;var m=r.l;r.l=d+4,ie(r,o,l,n,p),r.l=m}return n}function ie(e,t,r,n,i){e.l+=2;var s=e.read_shift(2),o=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),r=65535&e.read_shift(2),n=/* @__PURE__ */new Date,i=31&r,a=15&(r>>>=5);r>>>=4,n.setMilliseconds(0),n.setFullYear(r+1980),n.setMonth(a-1),n.setDate(i);var s=31&t,o=63&(t>>>=5);return t>>>=6,n.setHours(t),n.setMinutes(o),n.setSeconds(s<<1),n}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var c=e.read_shift(4),u=e.read_shift(4),f=e.read_shift(2),h=e.read_shift(2),d="",p=0;p<f;++p)d+=String.fromCharCode(e[e.l++]);if(h){var v=a(e.slice(e.l,e.l+h));(v[21589]||{}).mt&&(l=v[21589].mt),((i||{})[21589]||{}).mt&&(l=i[21589].mt)}e.l+=h;var g=e.slice(e.l,e.l+c);switch(o){case 8:g=function(e,t){if(!m)return te(e,t);var r=new(0,m.InflateRaw),n=r._processChunk(e.slice(e.l),r._finishFlushFlag);return e.l+=r.bytesRead,n}(e,u);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+o)}var b=!1;8&s&&(134695760==e.read_shift(4)&&(e.read_shift(4),b=!0),c=e.read_shift(4),u=e.read_shift(4)),c!=t&&re(b,"Bad compressed size: "+t+" != "+c),u!=r&&re(b,"Bad uncompressed size: "+r+" != "+u),ue(n,d,g,{unsafe:!0,mt:l})}var ae={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function se(e,t){if(e.ctype)return e.ctype;var r=e.name||"",n=r.match(/\.([^\.]+)$/);return n&&ae[n[1]]||t&&(n=(r=t).match(/[\.\\]([^\.\\])+$/))&&ae[n[1]]?ae[n[1]]:"application/octet-stream"}function oe(e){for(var t=Gs(e),r=[],n=0;n<t.length;n+=76)r.push(t.slice(n,n+76));return r.join("\r\n")+"\r\n"}function le(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)});"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var r=[],n=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),i=0;i<n.length;++i){var a=n[i];if(0!=a.length)for(var s=0;s<a.length;){var o=76,l=a.slice(s,s+o);"="==l.charAt(o-1)?o--:"="==l.charAt(o-2)?o-=2:"="==l.charAt(o-3)&&(o-=3),l=a.slice(s,s+o),(s+=o)<a.length&&(l+="="),r.push(l)}else r.push("")}return r.join("\r\n")}function ce(e,t,r){for(var n,i="",a="",s="",o=0;o<10;++o){var l=t[o];if(!l||l.match(/^\s*$/))break;var c=l.match(/^(.*?):\s*([^\s].*)$/);if(c)switch(c[1].toLowerCase()){case"content-location":i=c[2].trim();break;case"content-type":s=c[2].trim();break;case"content-transfer-encoding":a=c[2].trim()}}switch(++o,a.toLowerCase()){case"base64":n=eo(Ys(t.slice(o).join("")));break;case"quoted-printable":n=function(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r];r<=e.length&&"="==n.charAt(n.length-1);)n=n.slice(0,n.length-1)+e[++r];t.push(n)}for(var i=0;i<t.length;++i)t[i]=t[i].replace(/[=][0-9A-Fa-f]{2}/g,function(e){return String.fromCharCode(parseInt(e.slice(1),16))});return eo(t.join("\r\n"))}(t.slice(o));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+a)}var u=ue(e,i.slice(r.length),n,{unsafe:!0});s&&(u.ctype=s)}function ue(e,t,r,i){var a=i&&i.unsafe;a||h(e);var s=!a&&rl.find(e,t);if(!s){var o=e.FullPaths[0];t.slice(0,o.length)==o?o=t:("/"!=o.slice(-1)&&(o+="/"),o=(o+t).replace("//","/")),s={name:n(t),type:2},e.FileIndex.push(s),e.FullPaths.push(o),a||rl.utils.cfb_gc(e)}return s.content=r,s.size=r?r.length:0,i&&(i.CLSID&&(s.clsid=i.CLSID),i.mt&&(s.mt=i.mt),i.ct&&(s.ct=i.ct)),s}return t.find=function(e,t){var r=e.FullPaths.map(function(e){return e.toUpperCase()}),n=r.map(function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]}),i=!1;47===t.charCodeAt(0)?(i=!0,t=r[0].slice(0,-1)+t):i=-1!==t.indexOf("/");var a=t.toUpperCase(),s=!0===i?r.indexOf(a):n.indexOf(a);if(-1!==s)return e.FileIndex[s];var o=!a.match(so);for(a=a.replace(ao,""),o&&(a=a.replace(so,"!")),s=0;s<r.length;++s){if((o?r[s].replace(so,"!"):r[s]).replace(ao,"")==a)return e.FileIndex[s];if((o?n[s].replace(so,"!"):n[s]).replace(ao,"")==a)return e.FileIndex[s]}return null},t.read=function(t,r){var n=r&&r.type;switch(n||Ks&&Buffer.isBuffer(t)&&(n="buffer"),n||"base64"){case"file":return function(t,r){return s(),o(e.readFileSync(t),r)}(t,r);case"base64":return o(eo(Ys(t)),r);case"binary":return o(eo(t),r)}return o(t,r)},t.parse=o,t.write=function(t,r){var n=p(t,r);switch(r&&r.type||"buffer"){case"file":return s(),e.writeFileSync(r.filename,n),n;case"binary":return"string"==typeof n?n:k(n);case"base64":return Gs("string"==typeof n?n:k(n));case"buffer":if(Ks)return Buffer.isBuffer(n)?n:Zs(n);case"array":return"string"==typeof n?eo(n):n}return n},t.writeFile=function(t,r,n){s();var i=p(t,n);e.writeFileSync(r,i)},t.utils={cfb_new:function(e){var t={};return h(t,e),t},cfb_add:ue,cfb_del:function(e,t){h(e);var r=rl.find(e,t);if(r)for(var n=0;n<e.FileIndex.length;++n)if(e.FileIndex[n]==r)return e.FileIndex.splice(n,1),e.FullPaths.splice(n,1),!0;return!1},cfb_mov:function(e,t,r){h(e);var i=rl.find(e,t);if(i)for(var a=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==i)return e.FileIndex[a].name=n(r),e.FullPaths[a]=r,!0;return!1},cfb_gc:function(e){d(e,!0)},ReadShift:gu,CheckField:ku,prep_blob:xu,bconcat:io,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(r){console.error("cannot use native zlib: "+(r.message||r))}},_deflateRaw:G,_inflateRaw:te,consts:_},t}();function nl(e){return"string"==typeof e?to(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function il(e,t,r){if("undefined"!=typeof Deno){if(r&&"string"==typeof t)switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=to(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n="utf8"==r?cc(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(n,e);if("undefined"!=typeof Blob){var i=new Blob([nl(n)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if("undefined"!=typeof saveAs)return saveAs(i,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var s=document.createElement("a");if(null!=s.download)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var o=File(e);return o.open("w"),o.encoding="binary",Array.isArray(t)&&(t=ro(t)),o.write(t),o.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function al(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function sl(e,t){for(var r=[],n=al(e),i=0;i!==n.length;++i)null==r[e[n[i]][t]]&&(r[e[n[i]][t]]=n[i]);return r}function ol(e){for(var t=[],r=al(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function ll(e){for(var t=[],r=al(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}var cl=/* @__PURE__ */new Date(1899,11,30,0,0,0);function ul(e,t){var r=/* @__PURE__ */e.getTime();return t&&(r-=1263168e5),(r-(/* @__PURE__ */cl.getTime()+/* @__PURE__ */6e4*(e.getTimezoneOffset()-/* @__PURE__ */cl.getTimezoneOffset())))/864e5}var fl=/* @__PURE__ */new Date,hl=/* @__PURE__ */cl.getTime()+/* @__PURE__ */6e4*(fl.getTimezoneOffset()-/* @__PURE__ */cl.getTimezoneOffset()),dl=/* @__PURE__ */fl.getTimezoneOffset();function pl(e){var t=/* @__PURE__ */new Date;return t.setTime(24*e*60*60*1e3+hl),t.getTimezoneOffset()!==dl&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-dl)),t}function ml(e){var t=0,r=0,n=!1,i=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var a=1;a!=i.length;++a)if(i[a]){switch(r=1,a>3&&(n=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":r*=24;case"H":r*=60;case"M":if(!n)throw new Error("Unsupported ISO Duration Field: M");r*=60}t+=r*parseInt(i[a],10)}return t}var vl=/* @__PURE__ */new Date("2017-02-19T19:06:09.000Z"),gl=/* @__PURE__ */isNaN(/* @__PURE__ */vl.getFullYear())?/* @__PURE__ */new Date("2/19/17"):vl,bl=/* @__PURE__ */2017==gl.getFullYear();function yl(e,t){var r=new Date(e);if(bl)return t>0?r.setTime(r.getTime()+60*r.getTimezoneOffset()*1e3):t<0&&r.setTime(r.getTime()-60*r.getTimezoneOffset()*1e3),r;if(e instanceof Date)return e;if(1917==gl.getFullYear()&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=/* @__PURE__ */new Date(a.getTime()-60*a.getTimezoneOffset()*1e3)),a}function wl(e,t){if(Ks&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return cc(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return cc(Hs(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return cc(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return cc(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"","‚":"","ƒ":"","„":"","…":"
","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(e){return r[e]||e})}catch(a){}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function _l(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=_l(e[r]));return t}function kl(e,t){for(var r="";r.length<t;)r+=e;return r}function xl(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return isNaN(t=Number(n))?(n=n.replace(/[(](.*)[)]/,function(e,t){return r=-r,t}),isNaN(t=Number(n))?t:t/r):t/r}var Sl=["january","february","march","april","may","june","july","august","september","october","november","december"];function Tl(e){var t=new Date(e),r=/* @__PURE__ */new Date(NaN),n=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Sl.indexOf(s))return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&101!=n?t:e.match(/[^-0-9:,\/\\]/)?r:t}var El=/* @__PURE__ */function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,r,n){if(e||"string"==typeof r)return t.split(r);for(var i=t.split(r),a=[i[0]],s=1;s<i.length;++s)a.push(n),a.push(i[s]);return a}}();function Cl(e){return e?e.content&&e.type?wl(e.content,!0):e.data?Vs(e.data):e.asNodeBuffer&&Ks?Vs(e.asNodeBuffer().toString("binary")):e.asBinary?Vs(e.asBinary()):e._data&&e._data.getContent?Vs(wl(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function Al(e){if(!e)return null;if(e.data)return Us(e.data);if(e.asNodeBuffer&&Ks)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return"string"==typeof t?Us(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function Ml(e,t){for(var r=e.FullPaths||al(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),i=n.replace(/\\/g,"/"),a=0;a<r.length;++a){var s=r[a].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==s||i==s)return e.files?e.files[r[a]]:e.FileIndex[a]}return null}function Ol(e,t){var r=Ml(e,t);if(null==r)throw new Error("Cannot find file "+t+" in zip");return r}function Rl(e,t,r){if(!r)return(n=Ol(e,t))&&".bin"===n.name.slice(-4)?Al(n):Cl(n);var n;if(!t)return null;try{return Rl(e,t)}catch(i){return null}}function Il(e,t,r){if(!r)return Cl(Ol(e,t));if(!t)return null;try{return Il(e,t)}catch(n){return null}}function Nl(e,t,r){if(!r)return Al(Ol(e,t));if(!t)return null;try{return Nl(e,t)}catch(n){return null}}function Pl(e){for(var t=e.FullPaths||al(e.files),r=[],n=0;n<t.length;++n)"/"!=t[n].slice(-1)&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function Dl(e,t,r){if(e.FullPaths){var n;if("string"==typeof r)return n=Ks?Zs(r):function(e){for(var t=[],r=0,n=e.length+250,i=Js(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[r++]=s;else if(s<2048)i[r++]=192|s>>6&31,i[r++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var o=1023&e.charCodeAt(++a);i[r++]=240|s>>8&7,i[r++]=128|s>>2&63,i[r++]=128|o>>6&15|(3&s)<<4,i[r++]=128|63&o}else i[r++]=224|s>>12&15,i[r++]=128|s>>6&63,i[r++]=128|63&s;r>n&&(t.push(i.slice(0,r)),r=0,i=Js(65535),n=65530)}return t.push(i.slice(0,r)),io(t)}(r),rl.utils.cfb_add(e,t,n);rl.utils.cfb_add(e,t,r)}else e.file(t,r)}function Fl(){return rl.utils.cfb_new()}function jl(e,t){switch(t.type){case"base64":return rl.read(e,{type:"base64"});case"binary":return rl.read(e,{type:"binary"});case"buffer":case"array":return rl.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function Ll(e,t){if("/"==e.charAt(0))return e.slice(1);var r=t.split("/");"/"!=t.slice(-1)&&r.pop();for(var n=e.split("/");0!==n.length;){var i=n.shift();".."===i?r.pop():"."!==i&&r.push(i)}return r.join("/")}var Bl='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',zl=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Ul=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Hl=/* @__PURE__ */Bl.match(Ul)?Ul:/<[^>]*>/g,Wl=/<\w*:/,Vl=/<(\/?)\w+:/;function $l(e,t,r){for(var n={},i=0,a=0;i!==e.length&&(32!==(a=e.charCodeAt(i))&&10!==a&&13!==a);++i);if(t||(n[0]=e.slice(0,i)),i===e.length)return n;var s=e.match(zl),o=0,l="",c=0,u="",f="",h=1;if(s)for(c=0;c!=s.length;++c){for(f=s[c],a=0;a!=f.length&&61!==f.charCodeAt(a);++a);for(u=f.slice(0,a).trim();32==f.charCodeAt(a+1);)++a;for(h=34==(i=f.charCodeAt(a+1))||39==i?1:0,l=f.slice(a+1+h,f.length-h),o=0;o!=u.length&&58!==u.charCodeAt(o);++o);if(o===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),n[u]=l,r||(n[u.toLowerCase()]=l);else{var d=(5===o&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(o+1);if(n[d]&&"ext"==u.slice(o-3,o))continue;n[d]=l,r||(n[d.toLowerCase()]=l)}}return n}function ql(e){return e.replace(Vl,"<$1")}var Xl={""":'"',"'":"'",">":">","<":"<","&":"&"},Gl=/* @__PURE__ */ol(Xl),Yl=/* @__PURE__ */function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function r(n){var i=n+"",a=i.indexOf("<![CDATA[");if(-1==a)return i.replace(e,function(e,t){return Xl[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e}).replace(t,function(e,t){return String.fromCharCode(parseInt(t,16))});var s=i.indexOf("]]>");return r(i.slice(0,a))+i.slice(a+9,s)+r(i.slice(s+3))}}(),Kl=/[&<>'"]/g,Zl=/[\u0000-\u0008\u000b-\u001f]/g;function Jl(e){return(e+"").replace(Kl,function(e){return Gl[e]}).replace(Zl,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Ql(e){return Jl(e).replace(/ /g,"_x0020_")}var ec=/[\u0000-\u001f]/g;function tc(e){return(e+"").replace(Kl,function(e){return Gl[e]}).replace(/\n/g,"<br/>").replace(ec,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}var rc=/* @__PURE__ */function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(r){return r.replace(e,t)}}();function nc(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function ic(e){for(var t="",r=0,n=0,i=0,a=0,s=0,o=0;r<e.length;)(n=e.charCodeAt(r++))<128?t+=String.fromCharCode(n):(i=e.charCodeAt(r++),n>191&&n<224?(s=(31&n)<<6,s|=63&i,t+=String.fromCharCode(s)):(a=e.charCodeAt(r++),n<240?t+=String.fromCharCode((15&n)<<12|(63&i)<<6|63&a):(o=((7&n)<<18|(63&i)<<12|(63&a)<<6|63&(s=e.charCodeAt(r++)))-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(1023&o)))));return t}function ac(e){var t,r,n,i=Js(2*e.length),a=1,s=0,o=0;for(r=0;r<e.length;r+=a)a=1,(n=e.charCodeAt(r))<128?t=n:n<224?(t=64*(31&n)+(63&e.charCodeAt(r+1)),a=2):n<240?(t=4096*(15&n)+64*(63&e.charCodeAt(r+1))+(63&e.charCodeAt(r+2)),a=3):(a=4,t=262144*(7&n)+4096*(63&e.charCodeAt(r+1))+64*(63&e.charCodeAt(r+2))+(63&e.charCodeAt(r+3)),o=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==o&&(i[s++]=255&o,i[s++]=o>>>8,o=0),i[s++]=t%256,i[s++]=t>>>8;return i.slice(0,s).toString("ucs2")}function sc(e){return Zs(e,"binary").toString("utf8")}var oc="foo bar bazâð£",lc=Ks&&(/* @__PURE__ */sc(oc)==/* @__PURE__ */ic(oc)&&sc||/* @__PURE__ */ac(oc)==/* @__PURE__ */ic(oc)&&ac)||ic,cc=Ks?function(e){return Zs(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)))}return t.join("")},uc=/* @__PURE__ */function(){var e={};return function(t,r){var n=t+"|"+(r||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",r||"")}}(),fc=/* @__PURE__ */function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),n=0;n<e.length;++n)r=r.replace(e[n][0],e[n][1]);return r}}(),hc=/* @__PURE__ */function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),dc=/<\/?(?:vt:)?variant>/g,pc=/<(?:vt:)([^>]*)>([\s\S]*)</;function mc(e,t){var r=$l(e),n=e.match(hc(r.baseType))||[],i=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return i}return n.forEach(function(e){var t=e.replace(dc,"").match(pc);t&&i.push({v:lc(t[2]),t:t[1]})}),i}var vc=/(^\s|\s$|\n)/;function gc(e,t){return"<"+e+(t.match(vc)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function bc(e){return al(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function yc(e,t,r){return"<"+e+(null!=r?bc(r):"")+(null!=t?(t.match(vc)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function wc(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function _c(e){if(Ks&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return lc(ro(no(e)));throw new Error("Bad input format: expected Buffer or string")}var kc=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,xc="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",Sc="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Tc="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",Ec="http://schemas.openxmlformats.org/package/2006/content-types",Cc="http://schemas.openxmlformats.org/package/2006/relationships",Ac="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",Mc="http://purl.org/dc/elements/1.1/",Oc="http://purl.org/dc/terms/",Rc="http://purl.org/dc/dcmitype/",Ic="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Nc="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Pc="http://www.w3.org/2001/XMLSchema-instance",Dc="http://www.w3.org/2001/XMLSchema",Fc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],jc="urn:schemas-microsoft-com:office:office",Lc="urn:schemas-microsoft-com:office:excel",Bc="urn:schemas-microsoft-com:office:spreadsheet",zc="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",Uc="http://macVmlSchemaUri",Hc="urn:schemas-microsoft-com:vml",Wc="http://www.w3.org/TR/REC-html40";var Vc=function(e){for(var t=[],r=0;r<e[0].length;++r)if(e[0][r])for(var n=0,i=e[0][r].length;n<i;n+=10240)t.push.apply(t,e[0][r].slice(n,n+10240));return t},$c=Ks?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:Zs(e)})):Vc(e)}:Vc,qc=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(hu(e,i)));return n.join("").replace(ao,"")},Xc=Ks?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(ao,""):qc(e,t,r)}:qc,Gc=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},Yc=Ks?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):Gc(e,t,r)}:Gc,Kc=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(fu(e,i)));return n.join("")},Zc=Ks?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf8",t,r):Kc(e,t,r)}:Kc,Jc=function(e,t){var r=pu(e,t);return r>0?Zc(e,t+4,t+4+r-1):""},Qc=Jc,eu=function(e,t){var r=pu(e,t);return r>0?Zc(e,t+4,t+4+r-1):""},tu=eu,ru=function(e,t){var r=2*pu(e,t);return r>0?Zc(e,t+4,t+4+r-1):""},nu=ru,iu=function(e,t){var r=pu(e,t);return r>0?Xc(e,t+4,t+4+r):""},au=iu,su=function(e,t){var r=pu(e,t);return r>0?Zc(e,t+4,t+4+r):""},ou=su,lu=function(e,t){return function(e,t){for(var r=1-2*(e[t+7]>>>7),n=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],a=5;a>=0;--a)i=256*i+e[t+a];return 2047==n?0==i?r*(1/0):NaN:(0==n?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}(e,t)},cu=lu,uu=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};Ks&&(Qc=function(e,t){if(!Buffer.isBuffer(e))return Jc(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},tu=function(e,t){if(!Buffer.isBuffer(e))return eu(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},nu=function(e,t){if(!Buffer.isBuffer(e))return ru(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},au=function(e,t){if(!Buffer.isBuffer(e))return iu(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},ou=function(e,t){if(!Buffer.isBuffer(e))return su(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},cu=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):lu(e,t)},uu=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array});var fu=function(e,t){return e[t]},hu=function(e,t){return 256*e[t+1]+e[t]},du=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},pu=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},mu=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},vu=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function gu(e,t){var r,n,i,a,s,o,l="",c=[];switch(t){case"dbcs":if(o=this.l,Ks&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)l+=String.fromCharCode(hu(this,o)),o+=2;e*=2;break;case"utf8":l=Zc(this,this.l,this.l+e);break;case"utf16le":e*=2,l=Xc(this,this.l,this.l+e);break;case"wstr":return gu.call(this,e,"dbcs");case"lpstr-ansi":l=Qc(this,this.l),e=4+pu(this,this.l);break;case"lpstr-cp":l=tu(this,this.l),e=4+pu(this,this.l);break;case"lpwstr":l=nu(this,this.l),e=4+2*pu(this,this.l);break;case"lpp4":e=4+pu(this,this.l),l=au(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+pu(this,this.l),l=ou(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(i=fu(this,this.l+e++));)c.push($s(i));l=c.join("");break;case"_wstr":for(e=0,l="";0!==(i=hu(this,this.l+e));)c.push($s(i)),e+=2;e+=2,l=c.join("");break;case"dbcs-cont":for(l="",o=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(o))return i=fu(this,o),this.l=o+1,a=gu.call(this,e-s,i?"dbcs-cont":"sbcs-cont"),c.join("")+a;c.push($s(hu(this,o))),o+=2}l=c.join(""),e*=2;break;case"cpstr":0;case"sbcs-cont":for(l="",o=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(o))return i=fu(this,o),this.l=o+1,a=gu.call(this,e-s,i?"dbcs-cont":"sbcs-cont"),c.join("")+a;c.push($s(fu(this,o))),o+=1}l=c.join("");break;default:switch(e){case 1:return r=fu(this,this.l),this.l++,r;case 2:return r=("i"===t?du:hu)(this,this.l),this.l+=2,r;case 4:case-4:return"i"!==t&&128&this[this.l+3]?(n=pu(this,this.l),this.l+=4,n):(r=(e>0?mu:vu)(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return n=8==e?cu(this,this.l):cu([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;e=8;case 16:l=Yc(this,this.l,e)}}return this.l+=e,l}var bu=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},yu=function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},wu=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function _u(e,t,r){var n=0,i=0;if("dbcs"===r){for(i=0;i!=t.length;++i)wu(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if("sbcs"===r){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);n=t.length}else{if("hex"===r){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===r){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var s=t.charCodeAt(i);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}switch(e){case 1:n=1,this[this.l]=255&t;break;case 2:n=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:n=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:n=4,bu(this,t,this.l);break;case 8:if(n=8,"f"===r){!function(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,s=n?-t:t;isFinite(s)?0==s?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var o=0;o<=5;++o,a/=256)e[r+o]=255&a;e[r+6]=(15&i)<<4|15&a,e[r+7]=i>>4|n}(this,t,this.l);break}case 16:break;case-4:n=4,yu(this,t,this.l)}}return this.l+=n,this}function ku(e,t){var r=Yc(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function xu(e,t){e.l=t,e.read_shift=gu,e.chk=ku,e.write_shift=_u}function Su(e,t){e.l+=t}function Tu(e){var t=Js(e);return xu(t,0),t}function Eu(e,t,r){if(e){var n,i,a;xu(e,e.l||0);for(var s=e.length,o=0,l=0;e.l<s;){128&(o=e.read_shift(1))&&(o=(127&o)+((127&e.read_shift(1))<<7));var c=Lg[o]||Lg[65535];for(a=127&(n=e.read_shift(1)),i=1;i<4&&128&n;++i)a+=(127&(n=e.read_shift(1)))<<7*i;l=e.l+a;var u=c.f&&c.f(e,a,r);if(e.l=l,t(u,c,o))return}}}function Cu(){var e=[],t=Ks?256:2048,r=function(e){var t=Tu(e);return xu(t,0),t},n=r(t),i=function(){n&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&e.push(n),n=null)},a=function(e){return n&&e<n.length-n.l?n:(i(),n=r(Math.max(e+1,t)))};return{next:a,push:function(e){i(),null==(n=e).l&&(n.l=n.length),a(t)},end:function(){return i(),io(e)},_bufs:e}}function Au(e,t,r,n){var i,a=+t;if(!isNaN(a)){n||(n=Lg[a].p||(r||[]).length||0),i=1+(a>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var s=e.next(i);a<=127?s.write_shift(1,a):(s.write_shift(1,128+(127&a)),s.write_shift(1,a>>7));for(var o=0;4!=o;++o){if(!(n>=128)){s.write_shift(1,n);break}s.write_shift(1,128+(127&n)),n>>=7}n>0&&uu(r)&&e.push(r)}}function Mu(e,t,r){var n=_l(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Ou(e,t,r){var n=_l(e);return n.s=Mu(n.s,t.s,r),n.e=Mu(n.e,t.s,r),n}function Ru(e,t){if(e.cRel&&e.c<0)for(e=_l(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=_l(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Lu(e);return e.cRel||null==e.cRel||(r=r.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(r=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(r)),r}function Iu(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Ru(e.s,t.biff)+":"+Ru(e.e,t.biff):(e.s.rRel?"":"$")+Pu(e.s.r)+":"+(e.e.rRel?"":"$")+Pu(e.e.r):(e.s.cRel?"":"$")+Fu(e.s.c)+":"+(e.e.cRel?"":"$")+Fu(e.e.c)}function Nu(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Pu(e){return""+(e+1)}function Du(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Fu(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function ju(e){for(var t=0,r=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function Lu(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Bu(e){var t=e.indexOf(":");return-1==t?{s:ju(e),e:ju(e)}:{s:ju(e.slice(0,t)),e:ju(e.slice(t+1))}}function zu(e,t){return void 0===t||"number"==typeof t?zu(e.s,e.e):("string"!=typeof e&&(e=Lu(e)),"string"!=typeof t&&(t=Lu(t)),e==t?e:e+":"+t)}function Uu(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=e.length;for(r=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===a||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function Hu(e,t){var r="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Yo(e.z,r?ul(t):t)}catch(n){}try{return e.w=Yo((e.XF||{}).numFmtId||(r?14:0),r?ul(t):t)}catch(n){return""+t}}function Wu(e,t,r){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),"e"==e.t?Af[e.v]||e.v:Hu(e,null==t?e.v:t))}function Vu(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function $u(e,t){return function(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),s=0,o=0;if(a&&null!=n.origin){if("number"==typeof n.origin)s=n.origin;else{var l="string"==typeof n.origin?ju(n.origin):n.origin;s=l.r,o=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=Uu(a["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==s&&(c.e.r=s=u.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[f].length;++h)if(void 0!==t[f][h]){var d={v:t[f][h]},p=s+f,m=o+h;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r<p&&(c.e.r=p),c.e.c<m&&(c.e.c=m),!t[f][h]||"object"!=typeof t[f][h]||Array.isArray(t[f][h])||t[f][h]instanceof Date)if(Array.isArray(d.v)&&(d.f=t[f][h][1],d.v=d.v[0]),null===d.v)if(d.f)d.t="n";else if(n.nullError)d.t="e",d.v=0;else{if(!n.sheetStubs)continue;d.t="z"}else"number"==typeof d.v?d.t="n":"boolean"==typeof d.v?d.t="b":d.v instanceof Date?(d.z=n.dateNF||go[14],n.cellDates?(d.t="d",d.w=Yo(d.z,ul(d.v))):(d.t="n",d.v=ul(d.v),d.w=Yo(d.z,d.v))):d.t="s";else d=t[f][h];if(i)a[p]||(a[p]=[]),a[p][m]&&a[p][m].z&&(d.z=a[p][m].z),a[p][m]=d;else{var v=Lu({c:m,r:p});a[v]&&a[v].z&&(d.z=a[v].z),a[v]=d}}}return c.s.c<1e7&&(a["!ref"]=zu(c)),a}(null,e,t)}function qu(e,t){return t||(t=Tu(4)),t.write_shift(4,e),t}function Xu(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Gu(e,t){var r=!1;return null==t&&(r=!0,t=Tu(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Yu(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Ku(e,t){var r=e.l,n=e.read_shift(1),i=Xu(e),a=[],s={t:i,h:i};if(1&n){for(var o=e.read_shift(4),l=0;l!=o;++l)a.push(Yu(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}var Zu=Ku;function Ju(e,t){var r=!1;return null==t&&(r=!0,t=Tu(23+4*e.t.length)),t.write_shift(1,1),Gu(e.t,t),t.write_shift(4,1),function(e,t){t||(t=Tu(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function Qu(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function ef(e,t){return null==t&&(t=Tu(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function tf(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function rf(e,t){return null==t&&(t=Tu(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var nf=Xu,af=Gu;function sf(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function of(e,t){var r=!1;return null==t&&(r=!0,t=Tu(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var lf=Xu,cf=sf,uf=of;function ff(e){var t=e.slice(e.l,e.l+4),r=1&t[0],n=2&t[0];e.l+=4;var i=0===n?cu([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):mu(t,0)>>2;return r?i/100:i}function hf(e,t){null==t&&(t=Tu(4));var r=0,n=0,i=100*e;if(e==(0|e)&&e>=-536870912&&e<1<<29?n=1:i==(0|i)&&i>=-536870912&&i<1<<29&&(n=1,r=1),!n)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((r?i:e)<<2)+(r+2))}function df(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var pf=df,mf=function(e,t){return t||(t=Tu(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function vf(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function gf(e,t){return(t||Tu(8)).write_shift(8,e,"f")}function bf(e,t){if(t||(t=Tu(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),e.rgb&&null==e.theme){var n=e.rgb||"FFFFFF";"number"==typeof n&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function yf(e,t){var r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var wf=80,_f=[wf,81],kf={1:{n:"CodePage",t:2},2:{n:"Category",t:wf},3:{n:"PresentationFormat",t:wf},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:wf},15:{n:"Company",t:wf},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:wf},27:{n:"ContentStatus",t:wf},28:{n:"Language",t:wf},29:{n:"Version",t:wf},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},xf={1:{n:"CodePage",t:2},2:{n:"Title",t:wf},3:{n:"Subject",t:wf},4:{n:"Author",t:wf},5:{n:"Keywords",t:wf},6:{n:"Comments",t:wf},7:{n:"Template",t:wf},8:{n:"LastAuthor",t:wf},9:{n:"RevNumber",t:wf},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:wf},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Sf={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Tf=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Ef(e){return e.map(function(e){return[e>>16&255,e>>8&255,255&e]})}var Cf=/* @__PURE__ */_l(/* @__PURE__ */Ef([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Af={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Mf={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Of={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Rf={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function If(e,t){var r,n=function(e){for(var t=[],r=al(e),n=0;n!==r.length;++n)null==t[e[r[n]]]&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}(Of),i=[];i[i.length]=Bl,i[i.length]=yc("Types",null,{xmlns:Ec,"xmlns:xsd":Dc,"xmlns:xsi":Pc}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(e){return yc("Default",null,{Extension:e[0],ContentType:e[1]})}));var a=function(n){e[n]&&e[n].length>0&&(r=e[n][0],i[i.length]=yc("Override",null,{PartName:("/"==r[0]?"":"/")+r,ContentType:Rf[n][t.bookType]||Rf[n].xlsx}))},s=function(r){(e[r]||[]).forEach(function(e){i[i.length]=yc("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Rf[r][t.bookType]||Rf[r].xlsx})})},o=function(t){(e[t]||[]).forEach(function(e){i[i.length]=yc("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:n[t][0]})})};return a("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var Nf={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Pf(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Df(e,t){var r={"!id":{}};if(!e)return r;"/"!==t.charAt(0)&&(t="/"+t);var n={};return(e.match(Hl)||[]).forEach(function(e){var i=$l(e);if("<Relationship"===i[0]){var a={};a.Type=i.Type,a.Target=i.Target,a.Id=i.Id,i.TargetMode&&(a.TargetMode=i.TargetMode);var s="External"===i.TargetMode?i.Target:Ll(i.Target,t);r[s]=a,n[i.Id]=a}}),r["!id"]=n,r}function Ff(e){var t=[Bl,yc("Relationships",null,{xmlns:Cc})];return al(e["!id"]).forEach(function(r){t[t.length]=yc("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function jf(e,t,r,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,a?i.TargetMode=a:[Nf.HLINK,Nf.XPATH,Nf.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function Lf(e,t,r){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+'"/>\n'," </rdf:Description>\n"].join("")}function Bf(e,t){return[' <rdf:Description rdf:about="'+e+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+'"/>\n'," </rdf:Description>\n"].join("")}function zf(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Ns.version+"</meta:generator></office:meta></office:document-meta>"}var Uf=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Hf=/* @__PURE__ */function(){for(var e=new Array(Uf.length),t=0;t<Uf.length;++t){var r=Uf[t],n="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function Wf(e){var t={};e=lc(e);for(var r=0;r<Uf.length;++r){var n=Uf[r],i=e.match(Hf[r]);null!=i&&i.length>0&&(t[n[1]]=Yl(i[1])),"date"===n[2]&&t[n[1]]&&(t[n[1]]=yl(t[n[1]]))}return t}function Vf(e,t,r,n,i){null==i[e]&&null!=t&&""!==t&&(i[e]=t,t=Jl(t),n[n.length]=r?yc(e,t,r):gc(e,t))}function $f(e,t){var r=t||{},n=[Bl,yc("cp:coreProperties",null,{"xmlns:cp":xc,"xmlns:dc":Mc,"xmlns:dcterms":Oc,"xmlns:dcmitype":Rc,"xmlns:xsi":Pc})],i={};if(!e&&!r.Props)return n.join("");e&&(null!=e.CreatedDate&&Vf("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:wc(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),null!=e.ModifiedDate&&Vf("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:wc(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=Uf.length;++a){var s=Uf[a],o=r.Props&&null!=r.Props[s[1]]?r.Props[s[1]]:e?e[s[1]]:null;!0===o?o="1":!1===o?o="0":"number"==typeof o&&(o=String(o)),null!=o&&Vf(s[0],o,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var qf=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Xf=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Gf(e,t,r,n){var i=[];if("string"==typeof e)i=mc(e,n);else for(var a=0;a<e.length;++a)i=i.concat(e[a].map(function(e){return{v:e}}));var s="string"==typeof t?mc(t,n).map(function(e){return e.v}):t,o=0,l=0;if(s.length>0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=l,r.SheetNames=s.slice(o,o+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=l,r.DefinedNames=s.slice(o,o+l);break;case"Charts":case"Diagramme":r.Chartsheets=l,r.ChartNames=s.slice(o,o+l)}o+=l}}function Yf(e){var t=[],r=yc;return e||(e={}),e.Application="SheetJS",t[t.length]=Bl,t[t.length]=yc("Properties",null,{xmlns:Tc,"xmlns:vt":Nc}),qf.forEach(function(n){if(void 0!==e[n[1]]){var i;switch(n[2]){case"string":i=Jl(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false"}void 0!==i&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+Jl(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Kf=/<[^>]+>[^<]*/g;function Zf(e){var t=[Bl,yc("Properties",null,{xmlns:Sc,"xmlns:vt":Nc})];if(!e)return t.join("");var r=1;return al(e).forEach(function(n){++r,t[t.length]=yc("property",function(e,t){switch(typeof e){case"string":var r=yc("vt:lpwstr",Jl(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return yc((0|e)==e?"vt:i4":"vt:r8",Jl(String(e)));case"boolean":return yc("vt:bool",e?"true":"false")}if(e instanceof Date)return yc("vt:filetime",wc(e));throw new Error("Unable to serialize "+e)}(e[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Jl(n)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Jf,Qf={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function eh(e,t,r){Jf||(Jf=ol(Qf)),e[t=Jf[t]||t]=r}function th(e){var t=e.read_shift(4),r=e.read_shift(4);/* @__PURE__ */
|
|
4
|
+
return new Date(1e3*(r/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function rh(e,t,r){var n=e.l,i=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return i}function nh(e,t,r){var n=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(n.length+1&3)&3),n}function ih(e,t,r){return 31===t?nh(e):rh(e,0,r)}function ah(e,t,r){return ih(e,t,!1===r?0:4)}function sh(e){var t=e.l,r=ch(e,81);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[r,ch(e,3)]}function oh(e,t){for(var r=e.read_shift(4),n={},i=0;i!=r;++i){var a=e.read_shift(4),s=e.read_shift(4);n[a]=e.read_shift(s,1200===t?"utf16le":"utf8").replace(ao,"").replace(so,"!"),1200===t&&s%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),n}function lh(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),r}function ch(e,t,r){var n,i=e.read_shift(2),a=r||{};if(e.l+=2,12!==t&&i!==t&&-1===_f.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(12===t?i:t){case 2:return n=e.read_shift(2,"i"),a.raw||(e.l+=2),n;case 3:return n=e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return n=e.read_shift(4);case 30:return rh(e,0,4).replace(ao,"");case 31:return nh(e);case 64:return th(e);case 65:return lh(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return ah(e,i,!a.raw).replace(ao,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return ih(e,t,0)}(e,i).replace(ao,"");case 4108:return function(e){for(var t=e.read_shift(4),r=[],n=0;n<t/2;++n)r.push(sh(e));return r}(e);case 4126:case 4127:return 4127==i?function(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var i=e.l;r[n]=e.read_shift(0,"lpwstr").replace(ao,""),e.l-i&2&&(e.l+=2)}return r}(e):function(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(ao,"");return r}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function uh(e,t){var r=Tu(4),n=Tu(4);switch(r.write_shift(4,80==e?31:e),e){case 3:n.write_shift(-4,t);break;case 5:(n=Tu(8)).write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,r=t%Math.pow(2,32),n=(t-r)/Math.pow(2,32);n*=1e7;var i=(r*=1e7)/Math.pow(2,32)|0;i>0&&(r%=Math.pow(2,32),n+=i);var a=Tu(8);return a.write_shift(4,r),a.write_shift(4,n),a}(t);break;case 31:case 80:for((n=Tu(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return io([r,n])}function fh(e,t){var r=e.l,n=e.read_shift(4),i=e.read_shift(4),a=[],s=0,o=0,l=-1,c={};for(s=0;s!=i;++s)a[s]=[e.read_shift(4),e.read_shift(4)+r];a.sort(function(e,t){return e[1]-t[1]});var u={};for(s=0;s!=i;++s){if(e.l!==a[s][1]){var f=!0;if(s>0&&t)switch(t[a[s-1][0]].t){case 2:e.l+2===a[s][1]&&(e.l+=2,f=!1);break;case 80:case 4108:e.l<=a[s][1]&&(e.l=a[s][1],f=!1)}if((!t||0==s)&&e.l<=a[s][1]&&(f=!1,e.l=a[s][1]),f)throw new Error("Read Error: Expected address "+a[s][1]+" at "+e.l+" :"+s)}if(t){var h=t[a[s][0]];if(u[h.n]=ch(e,h.t,{raw:!0}),"version"===h.p&&(u[h.n]=String(u[h.n]>>16)+"."+("0000"+String(65535&u[h.n])).slice(-4)),"CodePage"==h.n)switch(u[h.n]){case 0:u[h.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Bs(o=u[h.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+u[h.n])}}else if(1===a[s][0]){if(o=u.CodePage=ch(e,2),Bs(o),-1!==l){var d=e.l;e.l=a[l][1],c=oh(e,o),e.l=d}}else if(0===a[s][0]){if(0===o){l=s,e.l=a[s+1][1];continue}c=oh(e,o)}else{var p,m=c[a[s][0]];switch(e[e.l]){case 65:e.l+=4,p=lh(e);break;case 30:case 31:e.l+=4,p=ah(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,p=e.read_shift(4,"i");break;case 19:e.l+=4,p=e.read_shift(4);break;case 5:e.l+=4,p=e.read_shift(8,"f");break;case 11:e.l+=4,p=bh(e,4);break;case 64:e.l+=4,p=yl(th(e));break;default:throw new Error("unparsed value: "+e[e.l])}u[m]=p}}return e.l=r+n,u}var hh=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function dh(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function ph(e,t,r){var n=Tu(8),i=[],a=[],s=8,o=0,l=Tu(8),c=Tu(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),a.push(l),i.push(c),s+=8+l.length,!t){(c=Tu(8)).write_shift(4,0),i.unshift(c);var u=[Tu(4)];for(u[0].write_shift(4,e.length),o=0;o<e.length;++o){var f=e[o][0];for((l=Tu(8+2*(f.length+1)+(f.length%2?0:2))).write_shift(4,o+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=io(u),a.unshift(l),s+=8+l.length}for(o=0;o<e.length;++o)if((!t||t[e[o][0]])&&!(hh.indexOf(e[o][0])>-1||Xf.indexOf(e[o][0])>-1)&&null!=e[o][1]){var h=e[o][1],d=0;if(t){var p=r[d=+t[e[o][0]]];if("version"==p.p&&"string"==typeof h){var m=h.split(".");h=(+m[0]<<16)+(+m[1]||0)}l=uh(p.t,h)}else{var v=dh(h);-1==v&&(v=31,h=String(h)),l=uh(v,h)}a.push(l),(c=Tu(8)).write_shift(4,t?d:2+o),i.push(c),s+=8+l.length}var g=8*(a.length+1);for(o=0;o<a.length;++o)i[o].write_shift(4,g),g+=a[o].length;return n.write_shift(4,s),n.write_shift(4,a.length),io([n].concat(i).concat(a))}function mh(e,t,r){var n=e.content;if(!n)return{};xu(n,0);var i,a,s,o,l=0;n.chk("feff","Byte Order: "),n.read_shift(2);var c=n.read_shift(4),u=n.read_shift(16);if(u!==rl.utils.consts.HEADER_CLSID&&u!==r)throw new Error("Bad PropertySet CLSID "+u);if(1!==(i=n.read_shift(4))&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(a=n.read_shift(16),o=n.read_shift(4),1===i&&o!==n.l)throw new Error("Length mismatch: "+o+" !== "+n.l);2===i&&(s=n.read_shift(16),l=n.read_shift(4));var f,h=fh(n,t),d={SystemIdentifier:c};for(var p in h)d[p]=h[p];if(d.FMTID=a,1===i)return d;if(l-n.l==2&&(n.l+=2),n.l!==l)throw new Error("Length mismatch 2: "+n.l+" !== "+l);try{f=fh(n,null)}catch(m){}for(p in f)d[p]=f[p];return d.FMTID=[a,s],d}function vh(e,t,r,n,i,a){var s=Tu(i?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,rl.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,i?68:48);var l=ph(e,r,n);if(o.push(l),i){var c=ph(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+l.length),o.push(c)}return io(o)}function gh(e,t){return e.read_shift(t),null}function bh(e,t){return 1===e.read_shift(t)}function yh(e,t){return t||(t=Tu(2)),t.write_shift(2,+!!e),t}function wh(e){return e.read_shift(2,"u")}function _h(e,t){return t||(t=Tu(2)),t.write_shift(2,e),t}function kh(e,t){return function(e,t,r){for(var n=[],i=e.l+t;e.l<i;)n.push(r(e,i-e.l));if(i!==e.l)throw new Error("Slurp error");return n}(e,t,wh)}function xh(e,t,r){return r||(r=Tu(2)),r.write_shift(1,"e"==t?+e:+!!e),r.write_shift(1,"e"==t?1:0),r}function Sh(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont",a=Ps;r&&r.biff>=8&&(Ps=1200),r&&8!=r.biff?12==r.biff&&(i="wstr"):e.read_shift(1)&&(i="dbcs-cont"),r.biff>=2&&r.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return Ps=a,s}function Th(e){var t=Ps;Ps=1200;var r,n=e.read_shift(2),i=e.read_shift(1),a=4&i,s=8&i,o=1+(1&i),l=0,c={};s&&(l=e.read_shift(2)),a&&(r=e.read_shift(4));var u=2==o?"dbcs-cont":"sbcs-cont",f=0===n?"":e.read_shift(n,u);return s&&(e.l+=4*l),a&&(e.l+=r),c.t=f,s||(c.raw="<t>"+c.t+"</t>",c.r=c.t),Ps=t,c}function Eh(e){var t=e.t||"",r=Tu(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Tu(2*t.length);return n.write_shift(2*t.length,t,"utf16le"),io([r,n])}function Ch(e,t,r){if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function Ah(e,t,r){var n=e.read_shift(r&&2==r.biff?1:2);return 0===n?(e.l++,""):Ch(e,n,r)}function Mh(e,t,r){if(r.biff>5)return Ah(e,0,r);var n=e.read_shift(1);return 0===n?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Oh(e,t,r){return r||(r=Tu(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Rh(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(n=!0),e.l=r);var i=e.read_shift((n?t-24:t)>>1,"utf16le").replace(ao,"");return n&&(e.l+=24),i}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return r+n.replace(/\\/g,"/");var i=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return r+e.read_shift(i>>1,"utf16le").replace(ao,"")}(e);default:throw new Error("Unsupported Moniker "+r)}}function Ih(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(ao,""):""}function Nh(e,t){t||(t=Tu(6+2*e.length)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function Ph(e,t){var r=e.l+t,n=e.read_shift(4);if(2!==n)throw new Error("Unrecognized streamVersion: "+n);var i=e.read_shift(2);e.l+=2;var a,s,o,l,c,u,f="";16&i&&(a=Ih(e,e.l)),128&i&&(s=Ih(e,e.l)),257&~i||(o=Ih(e,e.l)),1==(257&i)&&(l=Rh(e,e.l)),8&i&&(f=Ih(e,e.l)),32&i&&(c=e.read_shift(16)),64&i&&(u=th(e)),e.l=r;var h=s||o||l||"";h&&f&&(h+="#"+f),h||(h="#"+f),2&i&&"/"==h.charAt(0)&&"/"!=h.charAt(1)&&(h="file://"+h);var d={Target:h};return c&&(d.guid=c),u&&(d.time=u),a&&(d.Tooltip=a),d}function Dh(e){var t=Tu(512),r=0,n=e.Target;"file://"==n.slice(0,7)&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3}t.write_shift(4,2),t.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)t.write_shift(4,s[r]);if(28==a)Nh(n=n.slice(1),t);else if(2&a){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));var o=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(o.length+1)),r=0;r<o.length;++r)t.write_shift(2,o.charCodeAt(r));t.write_shift(2,0),8&a&&Nh(i>-1?n.slice(i+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));for(var l=0;"../"==n.slice(3*l,3*l+3)||"..\\"==n.slice(3*l,3*l+3);)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,255&n.charCodeAt(r+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Fh(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function jh(e,t){var r=Fh(e);return r[3]=0,r}function Lh(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function Bh(e,t,r,n){return n||(n=Tu(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function zh(e,t,r){var n=r.biff>8?4:2;return[e.read_shift(n),e.read_shift(n,"i"),e.read_shift(n,"i")]}function Uh(e){return[e.read_shift(2),ff(e)]}function Hh(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:r}}}function Wh(e,t){return t||(t=Tu(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Vh(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:r}}}var $h=Vh;function qh(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function Xh(e){e.l+=2,e.l+=e.read_shift(2)}var Gh={0:Xh,4:Xh,5:Xh,6:Xh,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:Xh,9:Xh,10:Xh,11:Xh,12:Xh,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:Xh,15:Xh,16:Xh,17:Xh,18:Xh,19:Xh,20:Xh,21:qh};function Yh(e,t){for(var r=e.l+t,n=[];e.l<r;){var i=e.read_shift(2);e.l-=2;try{n.push(Gh[i](e,r-e.l))}catch(a){return e.l=r,n}}return e.l!=r&&(e.l=r),n}function Kh(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),(t-=2)>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function Zh(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":case"xla":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;default:throw new Error("unsupported BIFF version")}var a=Tu(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function Jh(e,t){var r=!t||t.biff>=8?2:1,n=Tu(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function Qh(e,t,r){var n=0;r&&2==r.biff||(n=e.read_shift(2));var i=e.read_shift(2);return r&&2==r.biff&&(n=1-(i>>15),i&=32767),[{Unsynced:1&n,DyZero:(2&n)>>1,ExAsc:(4&n)>>2,ExDsc:(8&n)>>3},i]}function ed(e,t,r,n){var i=r&&5==r.biff;n||(n=Tu(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return null==a.l&&(a.l=a.length),a}var td=Mh;function rd(e,t,r){var n=e.l+t,i=8!=r.biff&&r.biff?2:4,a=e.read_shift(i),s=e.read_shift(i),o=e.read_shift(2),l=e.read_shift(2);return e.l=n,{s:{r:a,c:o},e:{r:s,c:l}}}function nd(e,t,r,n){var i=r&&5==r.biff;n||(n=Tu(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function id(e,t,r){var n=Lh(e);2!=r.biff&&9!=t||++e.l;var i=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return n.val=i,n.t=!0===i||!1===i?"b":"e",n}var ad=function(e,t,r){return 0===t?"":Mh(e,0,r)};function sd(e,t,r){var n,i=e.read_shift(2),a={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===r.sbcch&&(n=function(e,t,r){e.l+=4,t-=4;var n=e.l+t,i=Sh(e,0,r),a=e.read_shift(2);if(a!==(n-=e.l))throw new Error("Malformed AddinUdf: padding = "+n+" != "+a);return e.l+=a,i}(e,t-2,r)),a.body=n||e.read_shift(t-2),"string"==typeof n&&(a.Name=n),a}var od=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function ld(e,t,r){var n=e.l+t,i=e.read_shift(2),a=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(r&&2==r.biff?1:2),l=0;(!r||r.biff>=5)&&(5!=r.biff&&(e.l+=2),l=e.read_shift(2),5==r.biff&&(e.l+=2),e.l+=4);var c=Ch(e,s,r);32&i&&(c=od[c.charCodeAt(0)]);var u=n-e.l;r&&2==r.biff&&--u;var f=n!=e.l&&0!==o&&u>0?function(e,t,r,n){var i,a=e.l+t,s=Tm(e,n,r);a!==e.l&&(i=Sm(e,a-e.l,s,r));return[s,i]}(e,u,r,o):[];return{chKey:a,Name:c,itab:l,rgce:f}}function cd(e,t,r){if(r.biff<8)return function(e,t,r){3==e[e.l+1]&&e[e.l]++;var n=Sh(e,0,r);return 3==n.charCodeAt(0)?n.slice(1):n}(e,0,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);0!==a--;)n.push(zh(e,r.biff,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function ud(e,t,r){var n=$h(e,6);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,Rm(e,t,r)]}var fd={8:function(e,t){var r=e.l+t;e.l+=10;var n=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=r,{fmt:n}}};function hd(e){var t=Tu(24),r=ju(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return io([t,Dh(e[1])])}function dd(e){var t=e[1].Tooltip,r=Tu(10+2*(t.length+1));r.write_shift(2,2048);var n=ju(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function pd(e,t,r){if(!r.cellStyles)return Su(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),l=e.read_shift(2);2==n&&(e.l+=2);var c={s:i,e:a,w:s,ixfe:o,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}var md=Lh,vd=kh,gd=Ah;var bd=[2,3,48,49,131,139,140,245],yd=/* @__PURE__ */function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=ol({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(t,r){var n=r||{};n.dateNF||(n.dateNF="yyyymmdd");var i=$u(function(t,r){var n=[],i=Js(1);switch(r.type){case"base64":i=eo(Ys(t));break;case"binary":i=eo(t);break;case"buffer":case"array":i=t}xu(i,0);var a=i.read_shift(1),s=!!(136&a),o=!1,l=!1;switch(a){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:o=!0,s=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+a.toString(16))}var c=0,u=521;2==a&&(c=i.read_shift(2)),i.l+=3,2!=a&&(c=i.read_shift(4)),c>1048576&&(c=1e6),2!=a&&(u=i.read_shift(2));var f=i.read_shift(2),h=r.codepage||1252;2!=a&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(h=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);for(var d=[],p={},m=Math.min(i.length,2==a?521:u-10-(o?264:0)),v=l?32:11;i.l<m&&13!=i[i.l];)switch((p={}).name=Ws.utils.decode(h,i.slice(i.l,i.l+v)).replace(/[\u0000\r\n].*$/g,""),i.l+=v,p.type=String.fromCharCode(i.read_shift(1)),2==a||l||(p.offset=i.read_shift(4)),p.len=i.read_shift(1),2==a&&(p.offset=i.read_shift(2)),p.dec=i.read_shift(1),p.name.length&&d.push(p),2!=a&&(i.l+=l?13:14),p.type){case"B":o&&8==p.len||!r.WTF||console.log("Skipping "+p.name+":"+p.type);break;case"G":case"P":r.WTF&&console.log("Skipping "+p.name+":"+p.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+p.type)}if(13!==i[i.l]&&(i.l=u-1),13!==i.read_shift(1))throw new Error("DBF Terminator not found "+i.l+" "+i[i.l]);i.l=u;var g=0,b=0;for(n[0]=[],b=0;b!=d.length;++b)n[0][b]=d[b].name;for(;c-- >0;)if(42!==i[i.l])for(++i.l,n[++g]=[],b=0,b=0;b!=d.length;++b){var y=i.slice(i.l,i.l+d[b].len);i.l+=d[b].len,xu(y,0);var w=Ws.utils.decode(h,y);switch(d[b].type){case"C":w.trim().length&&(n[g][b]=w.replace(/\s+$/,""));break;case"D":8===w.length?n[g][b]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):n[g][b]=w;break;case"F":n[g][b]=parseFloat(w.trim());break;case"+":case"I":n[g][b]=l?2147483648^y.read_shift(-4,"i"):y.read_shift(4,"i");break;case"L":switch(w.trim().toUpperCase()){case"Y":case"T":n[g][b]=!0;break;case"N":case"F":n[g][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+w+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+a.toString(16));n[g][b]="##MEMO##"+(l?parseInt(w.trim(),10):y.read_shift(4));break;case"N":(w=w.replace(/\u0000/g,"").trim())&&"."!=w&&(n[g][b]=+w||0);break;case"@":n[g][b]=/* @__PURE__ */new Date(y.read_shift(-8,"f")-621356832e5);break;case"T":n[g][b]=new Date(864e5*(y.read_shift(4)-2440588)+y.read_shift(4));break;case"Y":n[g][b]=y.read_shift(4,"i")/1e4+y.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":n[g][b]=-y.read_shift(-8,"f");break;case"B":if(o&&8==d[b].len){n[g][b]=y.read_shift(8,"f");break}case"G":case"P":y.l+=d[b].len;break;case"0":if("_NullFlags"===d[b].name)break;default:throw new Error("DBF Unsupported data type "+d[b].type)}}else i.l+=f;if(2!=a&&i.l<i.length&&26!=i[i.l++])throw new Error("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));return r&&r.sheetRows&&(n=n.slice(0,r.sheetRows)),r.DBF=d,n}(t,n),n);return i["!cols"]=n.DBF.map(function(e){return{wch:e.len,DBF:e}}),delete n.DBF,i}var n={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return Vu(r(e,t),t)}catch(n){if(t&&t.WTF)throw n}return{SheetNames:[],Sheets:{}}},to_sheet:r,from_sheet:function(e,r){var i=r||{};if(+i.codepage>=0&&Bs(+i.codepage),"string"==i.type)throw new Error("Cannot write DBF to JS string");var a=Cu(),s=Zb(e,{header:1,raw:!0,cellDates:!0}),o=s[0],l=s.slice(1),c=e["!cols"]||[],u=0,f=0,h=0,d=1;for(u=0;u<o.length;++u)if(((c[u]||{}).DBF||{}).name)o[u]=c[u].DBF.name,++h;else if(null!=o[u]){if(++h,"number"==typeof o[u]&&(o[u]=o[u].toString(10)),"string"!=typeof o[u])throw new Error("DBF Invalid column name "+o[u]+" |"+typeof o[u]+"|");if(o.indexOf(o[u])!==u)for(f=0;f<1024;++f)if(-1==o.indexOf(o[u]+"_"+f)){o[u]+="_"+f;break}}var p=Uu(e["!ref"]),m=[],v=[],g=[];for(u=0;u<=p.e.c-p.s.c;++u){var b="",y="",w=0,_=[];for(f=0;f<l.length;++f)null!=l[f][u]&&_.push(l[f][u]);if(0!=_.length&&null!=o[u]){for(f=0;f<_.length;++f){switch(typeof _[f]){case"number":y="B";break;case"string":default:y="C";break;case"boolean":y="L";break;case"object":y=_[f]instanceof Date?"D":"C"}w=Math.max(w,String(_[f]).length),b=b&&b!=y?"C":y}w>250&&(w=250),"C"==(y=((c[u]||{}).DBF||{}).type)&&c[u].DBF.len>w&&(w=c[u].DBF.len),"B"==b&&"N"==y&&(b="N",g[u]=c[u].DBF.dec,w=c[u].DBF.len),v[u]="C"==b||"N"==y?w:n[b]||0,d+=v[u],m[u]=b}else m[u]="?"}var k=a.next(32);for(k.write_shift(4,318902576),k.write_shift(4,l.length),k.write_shift(2,296+32*h),k.write_shift(2,d),u=0;u<4;++u)k.write_shift(4,0);for(k.write_shift(4,(+t[Ds]||3)<<8),u=0,f=0;u<o.length;++u)if(null!=o[u]){var x=a.next(32),S=(o[u].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);x.write_shift(1,S,"sbcs"),x.write_shift(1,"?"==m[u]?"C":m[u],"sbcs"),x.write_shift(4,f),x.write_shift(1,v[u]||n[m[u]]||0),x.write_shift(1,g[u]||0),x.write_shift(1,2),x.write_shift(4,0),x.write_shift(1,0),x.write_shift(4,0),x.write_shift(4,0),f+=v[u]||n[m[u]]||0}var T=a.next(264);for(T.write_shift(4,13),u=0;u<65;++u)T.write_shift(4,0);for(u=0;u<l.length;++u){var E=a.next(d);for(E.write_shift(1,0),f=0;f<o.length;++f)if(null!=o[f])switch(m[f]){case"L":E.write_shift(1,null==l[u][f]?63:l[u][f]?84:70);break;case"B":E.write_shift(8,l[u][f]||0,"f");break;case"N":var C="0";for("number"==typeof l[u][f]&&(C=l[u][f].toFixed(g[f]||0)),h=0;h<v[f]-C.length;++h)E.write_shift(1,32);E.write_shift(1,C,"sbcs");break;case"D":l[u][f]?(E.write_shift(4,("0000"+l[u][f].getFullYear()).slice(-4),"sbcs"),E.write_shift(2,("00"+(l[u][f].getMonth()+1)).slice(-2),"sbcs"),E.write_shift(2,("00"+l[u][f].getDate()).slice(-2),"sbcs")):E.write_shift(8,"00000000","sbcs");break;case"C":var A=String(null!=l[u][f]?l[u][f]:"").slice(0,v[f]);for(E.write_shift(1,A,"sbcs"),h=0;h<v[f]-A.length;++h)E.write_shift(1,32)}}return a.next(1).write_shift(1,26),a.end()}}}(),wd=/* @__PURE__ */function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+al(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(t,r){var n=e[r];return"number"==typeof n?qs(n):n},n=function(e,t,r){var n=t.charCodeAt(0)-32<<4|r.charCodeAt(0)-48;return 59==n?e:qs(n)};function i(e,i){var a,s=e.split(/[\n\r]+/),o=-1,l=-1,c=0,u=0,f=[],h=[],d=null,p={},m=[],v=[],g=[],b=0;for(+i.codepage>=0&&Bs(+i.codepage);c!==s.length;++c){b=0;var y,w=s[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),_=w.replace(/;;/g,"\0").split(";").map(function(e){return e.replace(/\u0000/g,";")}),k=_[0];if(w.length>0)switch(k){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==_[1].charAt(0)&&h.push(w.slice(3).replace(/;;/g,";"));break;case"C":var x=!1,S=!1,T=!1,E=!1,C=-1,A=-1;for(u=1;u<_.length;++u)switch(_[u].charAt(0)){case"A":case"G":break;case"X":l=parseInt(_[u].slice(1))-1,S=!0;break;case"Y":for(o=parseInt(_[u].slice(1))-1,S||(l=0),a=f.length;a<=o;++a)f[a]=[];break;case"K":'"'===(y=_[u].slice(1)).charAt(0)?y=y.slice(1,y.length-1):"TRUE"===y?y=!0:"FALSE"===y?y=!1:isNaN(xl(y))?isNaN(Tl(y).getDate())||(y=yl(y)):(y=xl(y),null!==d&&$o(d)&&(y=pl(y))),x=!0;break;case"E":E=!0;var M=Zp(_[u].slice(1),{r:o,c:l});f[o][l]=[f[o][l],M];break;case"S":T=!0,f[o][l]=[f[o][l],"S5S"];break;case"R":C=parseInt(_[u].slice(1))-1;break;case"C":A=parseInt(_[u].slice(1))-1;break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}if(x&&(f[o][l]&&2==f[o][l].length?f[o][l][0]=y:f[o][l]=y,d=null),T){if(E)throw new Error("SYLK shared formula cannot have own formula");var O=C>-1&&f[C][A];if(!O||!O[1])throw new Error("SYLK shared formula cannot find base");f[o][l][1]=em(O[1],{r:o-C,c:l-A})}break;case"F":var R=0;for(u=1;u<_.length;++u)switch(_[u].charAt(0)){case"X":l=parseInt(_[u].slice(1))-1,++R;break;case"Y":for(o=parseInt(_[u].slice(1))-1,a=f.length;a<=o;++a)f[a]=[];break;case"M":b=parseInt(_[u].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":d=h[parseInt(_[u].slice(1))];break;case"W":for(g=_[u].slice(1).split(" "),a=parseInt(g[0],10);a<=parseInt(g[1],10);++a)b=parseInt(g[2],10),v[a-1]=0===b?{hidden:!0}:{wch:b},sp(v[a-1]);break;case"C":v[l=parseInt(_[u].slice(1))-1]||(v[l]={});break;case"R":m[o=parseInt(_[u].slice(1))-1]||(m[o]={}),b>0?(m[o].hpt=b,m[o].hpx=cp(b)):0===b&&(m[o].hidden=!0);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}R<1&&(d=null);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}}return m.length>0&&(p["!rows"]=m),v.length>0&&(p["!cols"]=v),i&&i.sheetRows&&(f=f.slice(0,i.sheetRows)),[f,p]}function a(e,t){var r=function(e,t){switch(t.type){case"base64":return i(Ys(e),t);case"binary":return i(e,t);case"buffer":return i(Ks&&Buffer.isBuffer(e)?e.toString("binary"):ro(e),t);case"array":return i(wl(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),n=r[0],a=r[1],s=$u(n,t);return al(a).forEach(function(e){s[e]=a[e]}),s}function s(e,t,r,n){var i="C;Y"+(r+1)+";X"+(n+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+Qp(e.f,{r:r,c:n}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return i}return e["|"]=254,{to_workbook:function(e,t){return Vu(a(e,t),t)},to_sheet:a,from_sheet:function(e,t){var r,n,i=["ID;PWXL;N;E"],a=[],o=Uu(e["!ref"]),l=Array.isArray(e),c="\r\n";i.push("P;PGeneral"),i.push("F;P0;DG0G8;M255"),e["!cols"]&&(n=i,e["!cols"].forEach(function(e,t){var r="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?r+="0":("number"!=typeof e.width||e.wpx||(e.wpx=tp(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=rp(e.wpx)),"number"==typeof e.wch&&(r+=Math.round(e.wch)))," "!=r.charAt(r.length-1)&&n.push(r)})),e["!rows"]&&function(e,t){t.forEach(function(t,r){var n="F;";t.hidden?n+="M0;":t.hpt?n+="M"+20*t.hpt+";":t.hpx&&(n+="M"+20*lp(t.hpx)+";"),n.length>2&&e.push(n+"R"+(r+1))})}(i,e["!rows"]),i.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var u=o.s.r;u<=o.e.r;++u)for(var f=o.s.c;f<=o.e.c;++f){var h=Lu({r:u,c:f});(r=l?(e[u]||[])[f]:e[h])&&(null!=r.v||r.f&&!r.F)&&a.push(s(r,0,u,f))}return i.join(c)+c+a.join(c)+c+"E"+c}}}(),_d=/* @__PURE__ */function(){function e(e,t){for(var r=e.split("\n"),n=-1,i=-1,a=0,s=[];a!==r.length;++a)if("BOT"!==r[a].trim()){if(!(n<0)){for(var o=r[a].trim().split(","),l=o[0],c=o[1],u=r[++a]||"";1&(u.match(/["]/g)||[]).length&&a<r.length-1;)u+="\n"+r[++a];switch(u=u.trim(),+l){case-1:if("BOT"===u){s[++n]=[],i=0;continue}if("EOD"!==u)throw new Error("Unrecognized DIF special command "+u);break;case 0:"TRUE"===u?s[n][i]=!0:"FALSE"===u?s[n][i]=!1:isNaN(xl(c))?isNaN(Tl(c).getDate())?s[n][i]=c:s[n][i]=yl(c):s[n][i]=xl(c),++i;break;case 1:(u=(u=u.slice(1,u.length-1)).replace(/""/g,'"'))&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),s[n][i++]=""!==u?u:null}if("EOD"===u)break}}else s[++n]=[],i=0;return t&&t.sheetRows&&(s=s.slice(0,t.sheetRows)),s}function t(t,r){return $u(function(t,r){switch(r.type){case"base64":return e(Ys(t),r);case"binary":return e(t,r);case"buffer":return e(Ks&&Buffer.isBuffer(t)?t.toString("binary"):ro(t),r);case"array":return e(wl(t),r)}throw new Error("Unrecognized type "+r.type)}(t,r),r)}return{to_workbook:function(e,r){return Vu(t(e,r),r)},to_sheet:t,from_sheet:/* @__PURE__ */function(){var e=function(e,t,r,n,i){e.push(t),e.push(r+","+n),e.push('"'+i.replace(/"/g,'""')+'"')},t=function(e,t,r,n){e.push(t+","+r),e.push(1==t?'"'+n.replace(/"/g,'""')+'"':n)};return function(r){var n,i=[],a=Uu(r["!ref"]),s=Array.isArray(r);e(i,"TABLE",0,1,"sheetjs"),e(i,"VECTORS",0,a.e.r-a.s.r+1,""),e(i,"TUPLES",0,a.e.c-a.s.c+1,""),e(i,"DATA",0,0,"");for(var o=a.s.r;o<=a.e.r;++o){t(i,-1,0,"BOT");for(var l=a.s.c;l<=a.e.c;++l){var c=Lu({r:o,c:l});if(n=s?(r[o]||[])[l]:r[c])switch(n.t){case"n":var u=n.w;u||null==n.v||(u=n.v),null==u?n.f&&!n.F?t(i,1,0,"="+n.f):t(i,1,0,""):t(i,0,u,"V");break;case"b":t(i,0,n.v?1:0,n.v?"TRUE":"FALSE");break;case"s":t(i,1,0,isNaN(n.v)?n.v:'="'+n.v+'"');break;case"d":n.w||(n.w=Yo(n.z||go[14],ul(yl(n.v)))),t(i,0,n.w,"V");break;default:t(i,1,0,"")}else t(i,1,0,"")}}return t(i,-1,0,"EOD"),i.join("\r\n")}}()}}(),kd=/* @__PURE__ */function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(t,r){return $u(function(t,r){for(var n=t.split("\n"),i=-1,a=-1,s=0,o=[];s!==n.length;++s){var l=n[s].trim().split(":");if("cell"===l[0]){var c=ju(l[1]);if(o.length<=c.r)for(i=o.length;i<=c.r;++i)o[i]||(o[i]=[]);switch(i=c.r,a=c.c,l[2]){case"t":o[i][a]=e(l[3]);break;case"v":o[i][a]=+l[3];break;case"vtf":var u=l[l.length-1];case"vtc":"nl"===l[3]?o[i][a]=!!+l[4]:o[i][a]=+l[4],"vtf"==l[2]&&(o[i][a]=[o[i][a],u])}}}return r&&r.sheetRows&&(o=o.slice(0,r.sheetRows)),o}(t,r),r)}var n=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),i=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",a=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),s="--SocialCalcSpreadsheetControlSave--";function o(e){if(!e||!e["!ref"])return"";for(var r,n=[],i=[],a="",s=Bu(e["!ref"]),o=Array.isArray(e),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c)if(a=Lu({r:l,c:c}),(r=o?(e[l]||[])[c]:e[a])&&null!=r.v&&"z"!==r.t){switch(i=["cell",a,"t"],r.t){case"s":case"str":i.push(t(r.v));break;case"n":r.f?(i[2]="vtf",i[3]="n",i[4]=r.v,i[5]=t(r.f)):(i[2]="v",i[3]=r.v);break;case"b":i[2]="vt"+(r.f?"f":"c"),i[3]="nl",i[4]=r.v?"1":"0",i[5]=t(r.f||(r.v?"TRUE":"FALSE"));break;case"d":var u=ul(yl(r.v));i[2]="vtc",i[3]="nd",i[4]=""+u,i[5]=r.w||Yo(r.z||go[14],u);break;case"e":continue}n.push(i.join(":"))}return n.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1"),n.push("valueformat:1:text-wiki"),n.join("\n")}return{to_workbook:function(e,t){return Vu(r(e,t),t)},to_sheet:r,from_sheet:function(e){return[n,i,a,i,o(e),s].join("\n")}}}(),xd=/* @__PURE__ */function(){function e(e,t,r,n,i){i.raw?t[r][n]=e:""===e||("TRUE"===e?t[r][n]=!0:"FALSE"===e?t[r][n]=!1:isNaN(xl(e))?isNaN(Tl(e).getDate())?t[r][n]=e:t[r][n]=yl(e):t[r][n]=xl(e))}var t={44:",",9:"\t",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function n(e){for(var n={},i=!1,a=0,s=0;a<e.length;++a)34==(s=e.charCodeAt(a))?i=!i:!i&&s in t&&(n[s]=(n[s]||0)+1);for(a in s=[],n)Object.prototype.hasOwnProperty.call(n,a)&&s.push([n[a],a]);if(!s.length)for(a in n=r)Object.prototype.hasOwnProperty.call(n,a)&&s.push([n[a],a]);return s.sort(function(e,t){return e[0]-t[0]||r[e[1]]-r[t[1]]}),t[s.pop()[1]]||44}function i(e,t){var r=t||{},i="";var a=r.dense?[]:{},s={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(i=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(i=e.charAt(4),e=e.slice(6)):i=n(e.slice(0,1024)):i=r&&r.FS?r.FS:n(e.slice(0,1024));var o=0,l=0,c=0,u=0,f=0,h=i.charCodeAt(0),d=!1,p=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var v,g,b=null!=r.dateNF?(v=r.dateNF,g=(g="number"==typeof v?go[v]:v).replace(el,"(\\d+)"),new RegExp("^"+g+"$")):null;function y(){var t=e.slice(u,f),n={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)n.t="z";else if(r.raw)n.t="s",n.v=t;else if(0===t.trim().length)n.t="s",n.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(n.t="s",n.v=t.slice(2,-1).replace(/""/g,'"')):1!=t.length?(n.t="n",n.f=t.slice(1)):(n.t="s",n.v=t);else if("TRUE"==t)n.t="b",n.v=!0;else if("FALSE"==t)n.t="b",n.v=!1;else if(isNaN(c=xl(t)))if(!isNaN(Tl(t).getDate())||b&&t.match(b)){n.z=r.dateNF||go[14];var i=0;b&&t.match(b)&&(t=function(e,t,r){var n=-1,i=-1,a=-1,s=-1,o=-1,l=-1;(t.match(el)||[]).forEach(function(e,t){var c=parseInt(r[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":n=c;break;case"d":a=c;break;case"h":s=c;break;case"s":l=c;break;case"m":s>=0?o=c:i=c}}),l>=0&&-1==o&&i>=0&&(o=i,i=-1);var c=(""+(n>=0?n:/* @__PURE__ */(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==s&&-1==o&&-1==l?c:-1==n&&-1==i&&-1==a?u:c+"T"+u}(0,r.dateNF,t.match(b)||[]),i=1),r.cellDates?(n.t="d",n.v=yl(t,i)):(n.t="n",n.v=ul(yl(t,i))),!1!==r.cellText&&(n.w=Yo(n.z,n.v instanceof Date?ul(n.v):n.v)),r.cellNF||delete n.z}else n.t="s",n.v=t;else n.t="n",!1!==r.cellText&&(n.w=t),n.v=c;if("z"==n.t||(r.dense?(a[o]||(a[o]=[]),a[o][l]=n):a[Lu({c:l,r:o})]=n),u=f+1,m=e.charCodeAt(u),s.e.c<l&&(s.e.c=l),s.e.r<o&&(s.e.r=o),p==h)++l;else if(l=0,++o,r.sheetRows&&r.sheetRows<=o)return!0}e:for(;f<e.length;++f)switch(p=e.charCodeAt(f)){case 34:34===m&&(d=!d);break;case h:case 10:case 13:if(!d&&y())break e}return f-u>0&&y(),a["!ref"]=zu(s),a}function a(t,r){return r&&r.PRN?r.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?i(t,r):$u(function(t,r){var n=r||{},i=[];if(!t||0===t.length)return i;for(var a=t.split(/[\r\n]/),s=a.length-1;s>=0&&0===a[s].length;)--s;for(var o=10,l=0,c=0;c<=s;++c)-1==(l=a[c].indexOf(" "))?l=a[c].length:l++,o=Math.max(o,l);for(c=0;c<=s;++c){i[c]=[];var u=0;for(e(a[c].slice(0,o).trim(),i,c,u,n),u=1;u<=(a[c].length-o)/10+1;++u)e(a[c].slice(o+10*(u-1),o+10*u).trim(),i,c,u,n)}return n.sheetRows&&(i=i.slice(0,n.sheetRows)),i}(t,r),r):i(t,r)}function s(e,t){var r="",n="string"==t.type?[0,0,0,0]:Ub(e,t);switch(t.type){case"base64":r=Ys(e);break;case"binary":case"string":r=e;break;case"buffer":65001==t.codepage?r=e.toString("utf8"):(t.codepage,r=Ks&&Buffer.isBuffer(e)?e.toString("binary"):ro(e));break;case"array":r=wl(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==n[0]&&187==n[1]&&191==n[2]?r=lc(r.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?r=lc(r):t.type,"socialcalc:version:"==r.slice(0,19)?kd.to_sheet("string"==t.type?r:lc(r),t):a(r,t)}return{to_workbook:function(e,t){return Vu(s(e,t),t)},to_sheet:s,from_sheet:function(e){for(var t,r=[],n=Uu(e["!ref"]),i=Array.isArray(e),a=n.s.r;a<=n.e.r;++a){for(var s=[],o=n.s.c;o<=n.e.c;++o){var l=Lu({r:a,c:o});if((t=i?(e[a]||[])[o]:e[l])&&null!=t.v){for(var c=(t.w||(Wu(t),t.w)||"").slice(0,10);c.length<10;)c+=" ";s.push(c+(0===o?" ":""))}else s.push(" ")}r.push(s.join(""))}return r.join("\n")}}}();var Sd=/* @__PURE__ */function(){function e(e,t,r){if(e){xu(e,e.l||0);for(var n=r.Enum||g;e.l<e.length;){var i=e.read_shift(2),a=n[i]||n[65535],s=e.read_shift(2),o=e.l+s,l=a.f&&a.f(e,s,r);if(e.l=o,t(l,a,i))return}}}function t(t,r){if(!t)return t;var n=r||{};var i=n.dense?[]:{},a="Sheet1",s="",o=0,l={},c=[],u=[],f={s:{r:0,c:0},e:{r:0,c:0}},h=n.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])n.Enum=g,e(t,function(e,t,r){switch(r){case 0:n.vers=e,e>=4096&&(n.qpro=!0);break;case 6:f=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:n.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==r&&!(112&~e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=n.dateNF||go[14],n.cellDates&&(e[1].t="d",e[1].v=pl(e[1].v))),n.qpro&&e[3]>o&&(i["!ref"]=zu(f),l[a]=i,c.push(a),i=n.dense?[]:{},f={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],a=s||"Sheet"+(o+1),s="");var u=n.dense?(i[e[0].r]||[])[e[0].c]:i[Lu(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}n.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[Lu(e[0])]=e[1]}},n);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);n.Enum=b,14==t[2]&&(n.qpro=!0,t.l=0),e(t,function(e,t,r){switch(r){case 204:a=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>o&&(i["!ref"]=zu(f),l[a]=i,c.push(a),i=n.dense?[]:{},f={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],a="Sheet"+(o+1)),h>0&&e[0].r>=h)break;n.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[Lu(e[0])]=e[1],f.e.c<e[0].c&&(f.e.c=e[0].c),f.e.r<e[0].r&&(f.e.r=e[0].r);break;case 27:e[14e3]&&(u[e[14e3][0]]=e[14e3][1]);break;case 1537:u[e[0]]=e[1],e[0]==o&&(a=e[1])}},n)}if(i["!ref"]=zu(f),l[s||a]=i,c.push(s||a),!u.length)return{SheetNames:c,Sheets:l};for(var d={},p=[],m=0;m<u.length;++m)l[c[m]]?(p.push(u[m]||c[m]),d[u[m]]=l[u[m]]||l[c[m]]):(p.push(u[m]),d[u[m]]={"!ref":"A1"});return{SheetNames:p,Sheets:d}}function r(e,t,r){var n=[{c:0,r:0},{t:"n",v:0},0,0];return r.qpro&&20768!=r.vers?(n[0].c=e.read_shift(1),n[3]=e.read_shift(1),n[0].r=e.read_shift(2),e.l+=2):(n[2]=e.read_shift(1),n[0].c=e.read_shift(2),n[0].r=e.read_shift(2)),n}function n(e,t,n){var i=e.l+t,a=r(e,0,n);if(a[1].t="s",20768==n.vers){e.l++;var s=e.read_shift(1);return a[1].v=e.read_shift(s,"utf8"),a}return n.qpro&&e.l++,a[1].v=e.read_shift(i-e.l,"cstr"),a}function i(e,t,r){var n=Tu(7+r.length);n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(1,39);for(var i=0;i<n.length;++i){var a=r.charCodeAt(i);n.write_shift(1,a>=128?95:a)}return n.write_shift(1,0),n}function a(e,t,r){var n=Tu(7);return n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(2,r,"i"),n}function s(e,t,r){var n=Tu(13);return n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(8,r,"f"),n}function o(e,t,r){var n=32768&t;return t=(n?e:0)+((t&=-32769)>=8192?t-16384:t),(n?"":"$")+(r?Fu(t):Pu(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},c=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function u(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function f(e,t,r,n){var i=Tu(6+n.length);i.write_shift(2,e),i.write_shift(1,r),i.write_shift(1,t),i.write_shift(1,39);for(var a=0;a<n.length;++a){var s=n.charCodeAt(a);i.write_shift(1,s>=128?95:s)}return i.write_shift(1,0),i}function h(e,t){var r=u(e),n=e.read_shift(4),i=e.read_shift(4),a=e.read_shift(2);if(65535==a)return 0===n&&3221225472===i?(r[1].t="e",r[1].v=15):0===n&&3489660928===i?(r[1].t="e",r[1].v=42):r[1].v=0,r;var s=32768&a;return a=(32767&a)-16446,r[1].v=(1-2*s)*(i*Math.pow(2,a+32)+n*Math.pow(2,a)),r}function d(e,t,r,n){var i=Tu(14);if(i.write_shift(2,e),i.write_shift(1,r),i.write_shift(1,t),0==n)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var a,s=0,o=0,l=0;return n<0&&(s=1,n=-n),o=0|Math.log2(n),2147483648&(l=(n/=Math.pow(2,o-31))>>>0)||(++o,l=(n/=2)>>>0),n-=l,l|=2147483648,l>>>=0,a=(n*=Math.pow(2,32))>>>0,i.write_shift(4,a),i.write_shift(4,l),o+=16383+(s?32768:0),i.write_shift(2,o),i}function p(e,t){var r=u(e),n=e.read_shift(8,"f");return r[1].v=n,r}function m(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function v(e,t){var r=Tu(5+e.length);r.write_shift(2,14e3),r.write_shift(2,t);for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);r[r.l++]=i>127?95:i}return r[r.l++]=0,r}var g={0:{n:"BOF",f:wh},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,r){var n={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&r.qpro?(n.s.c=e.read_shift(1),e.l++,n.s.r=e.read_shift(2),n.e.c=e.read_shift(1),e.l++,n.e.r=e.read_shift(2),n):(n.s.c=e.read_shift(2),n.s.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),n.e.c=e.read_shift(2),n.e.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),65535==n.s.c&&(n.s.c=n.e.c=n.s.r=n.e.r=0),n)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,n){var i=r(e,0,n);return i[1].v=e.read_shift(2,"i"),i}},14:{n:"NUMBER",f:function(e,t,n){var i=r(e,0,n);return i[1].v=e.read_shift(8,"f"),i}},15:{n:"LABEL",f:n},16:{n:"FORMULA",f:function(e,t,n){var i=e.l+t,a=r(e,0,n);if(a[1].v=e.read_shift(8,"f"),n.qpro)e.l=i;else{var s=e.read_shift(2);!function(e,t){xu(e,0);var r=[],n=0,i="",a="",s="",u="";for(;e.l<e.length;){var f=e[e.l++];switch(f){case 0:r.push(e.read_shift(8,"f"));break;case 1:a=o(t[0].c,e.read_shift(2),!0),i=o(t[0].r,e.read_shift(2),!1),r.push(a+i);break;case 2:var h=o(t[0].c,e.read_shift(2),!0),d=o(t[0].r,e.read_shift(2),!1);a=o(t[0].c,e.read_shift(2),!0),i=o(t[0].r,e.read_shift(2),!1),r.push(h+d+":"+a+i);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:r.push("("+r.pop()+")");break;case 5:r.push(e.read_shift(2));break;case 6:for(var p="";f=e[e.l++];)p+=String.fromCharCode(f);r.push('"'+p.replace(/"/g,'""')+'"');break;case 8:r.push("-"+r.pop());break;case 23:r.push("+"+r.pop());break;case 22:r.push("NOT("+r.pop()+")");break;case 20:case 21:u=r.pop(),s=r.pop(),r.push(["AND","OR"][f-20]+"("+s+","+u+")");break;default:if(f<32&&c[f])u=r.pop(),s=r.pop(),r.push(s+c[f]+u);else{if(!l[f])return f<=7?console.error("WK1 invalid opcode "+f.toString(16)):f<=24?console.error("WK1 unsupported op "+f.toString(16)):f<=30?console.error("WK1 invalid opcode "+f.toString(16)):f<=115?console.error("WK1 unsupported function opcode "+f.toString(16)):console.error("WK1 unrecognized opcode "+f.toString(16));if(69==(n=l[f][1])&&(n=e[e.l++]),n>r.length)return void console.error("WK1 bad formula parse 0x"+f.toString(16)+":|"+r.join("|")+"|");var m=r.slice(-n);r.length-=n,r.push(l[f][0]+"("+m.join(",")+")")}}}1==r.length?t[1].f=""+r[0]:console.error("WK1 bad formula parse |"+r.join("|")+"|")}(e.slice(e.l,e.l+s),a),e.l+=s}return a}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:n},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(e,t){var r=e[e.l++];r>t-1&&(r=t-1);for(var n="";n.length<r;)n+=String.fromCharCode(e[e.l++]);return n}},65535:{n:""}},b={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var r=u(e);return r[1].t="s",r[1].v=e.read_shift(t-4,"cstr"),r}},23:{n:"NUMBER17",f:h},24:{n:"NUMBER18",f:function(e,t){var r=u(e);r[1].v=e.read_shift(2);var n=r[1].v>>1;if(1&r[1].v)switch(7&n){case 0:n=5e3*(n>>3);break;case 1:n=500*(n>>3);break;case 2:n=(n>>3)/20;break;case 3:n=(n>>3)/200;break;case 4:n=(n>>3)/2e3;break;case 5:n=(n>>3)/2e4;break;case 6:n=(n>>3)/16;break;case 7:n=(n>>3)/64}return r[1].v=n,r}},25:{n:"FORMULA19",f:function(e,t){var r=h(e);return e.l+=t-14,r}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var r={},n=e.l+t;e.l<n;){var i=e.read_shift(2);if(14e3==i){for(r[i]=[0,""],r[i][0]=e.read_shift(2);e[e.l];)r[i][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return r}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var r=u(e),n=e.read_shift(4);return r[1].v=n>>6,r}},38:{n:"??"},39:{n:"NUMBER27",f:p},40:{n:"FORMULA28",f:function(e,t){var r=p(e);return e.l+=t-10,r}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,r){if(r.qpro&&!(t<21)){var n=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[n,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var r=t||{};if(+r.codepage>=0&&Bs(+r.codepage),"string"==r.type)throw new Error("Cannot write WK1 to JS string");var n,o,l=Cu(),c=Uu(e["!ref"]),u=Array.isArray(e),f=[];zg(l,0,(n=1030,(o=Tu(2)).write_shift(2,n),o)),zg(l,6,function(e){var t=Tu(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(c));for(var h=Math.min(c.e.r,8191),d=c.s.r;d<=h;++d)for(var p=Pu(d),m=c.s.c;m<=c.e.c;++m){d===c.s.r&&(f[m]=Fu(m));var v=f[m]+p,g=u?(e[d]||[])[m]:e[v];if(g&&"z"!=g.t)if("n"==g.t)(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?zg(l,13,a(d,m,g.v)):zg(l,14,s(d,m,g.v));else zg(l,15,i(d,m,Wu(g).slice(0,239)))}return zg(l,1),l.end()},book_to_wk3:function(e,t){var r=t||{};if(+r.codepage>=0&&Bs(+r.codepage),"string"==r.type)throw new Error("Cannot write WK3 to JS string");var n=Cu();zg(n,0,function(e){var t=Tu(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var r=0,n=0,i=0,a=0;a<e.SheetNames.length;++a){var s=e.SheetNames[a],o=e.Sheets[s];if(o&&o["!ref"]){++i;var l=Bu(o["!ref"]);r<l.e.r&&(r=l.e.r),n<l.e.c&&(n=l.e.c)}}r>8191&&(r=8191);return t.write_shift(2,r),t.write_shift(1,i),t.write_shift(1,n),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,a=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})["!ref"]&&zg(n,27,v(e.SheetNames[i],a++));var s=0;for(i=0;i<e.SheetNames.length;++i){var o=e.Sheets[e.SheetNames[i]];if(o&&o["!ref"]){for(var l=Uu(o["!ref"]),c=Array.isArray(o),u=[],h=Math.min(l.e.r,8191),p=l.s.r;p<=h;++p)for(var m=Pu(p),g=l.s.c;g<=l.e.c;++g){p===l.s.r&&(u[g]=Fu(g));var b=u[g]+m,y=c?(o[p]||[])[g]:o[b];if(y&&"z"!=y.t)if("n"==y.t)zg(n,23,d(p,g,s,y.v));else zg(n,22,f(p,g,s,Wu(y).slice(0,239)))}++s}}return zg(n,1),n.end()},to_workbook:function(e,r){switch(r.type){case"base64":return t(eo(Ys(e)),r);case"binary":return t(eo(e),r);case"buffer":case"array":return t(e,r)}throw"Unsupported type "+r.type}}}();var Td=/* @__PURE__ */function(){var e=uc("t"),t=uc("rPr");function r(r){var n=r.match(e);if(!n)return{t:"s",v:""};var i={t:"s",v:Yl(n[1])},a=r.match(t);return a&&(i.s=function(e){var t={},r=e.match(Hl),n=0,i=!1;if(r)for(;n!=r.length;++n){var a=$l(r[n]);switch(a[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!a.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==a.val)break;t.cp=js[parseInt(a.val,10)];break;case"<outline":if(!a.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=a.val;break;case"<sz":t.sz=a.val;break;case"<strike":if(!a.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!a.val)break;switch(a.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==a.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==a.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":a.rgb&&(t.color=a.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=a.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=a.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(47!==a[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+a[0])}}return t}(a[1])),i}var n=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(n,"").split(i).map(r).filter(function(e){return e.v})}}(),Ed=/* @__PURE__ */function(){var e=/(\r\n|\n)/g;function t(t){var r=[[],t.v,[]];return t.v?(t.s&&function(e,t,r){var n=[];e.u&&n.push("text-decoration: underline;"),e.uval&&n.push("text-underline-style:"+e.uval+";"),e.sz&&n.push("font-size:"+e.sz+"pt;"),e.outline&&n.push("text-effect: outline;"),e.shadow&&n.push("text-shadow: auto;"),t.push('<span style="'+n.join("")+'">'),e.b&&(t.push("<b>"),r.push("</b>")),e.i&&(t.push("<i>"),r.push("</i>")),e.strike&&(t.push("<s>"),r.push("</s>"));var i=e.valign||"";"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),r.push("</"+i+">")),r.push("</span>")}(t.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"<br/>")+r[2].join("")):""}return function(e){return e.map(t).join("")}}(),Cd=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Ad=/<(?:\w+:)?r>/,Md=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Od(e,t){var r=!t||t.cellHTML,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Yl(lc(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=lc(e),r&&(n.h=tc(n.t))):e.match(Ad)&&(n.r=lc(e),n.t=Yl(lc((e.replace(Md,"").match(Cd)||[]).join("").replace(Hl,""))),r&&(n.h=Ed(Td(n.r)))),n):{t:""}}var Rd=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Id=/<(?:\w+:)?(?:si|sstItem)>/g,Nd=/<\/(?:\w+:)?(?:si|sstItem)>/;var Pd=/^\s|\s$|[\t\n\r]/;function Dd(e,t){if(!t.bookSST)return"";var r=[Bl];r[r.length]=yc("sst",null,{xmlns:Fc[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(null!=e[n]){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(Pd)&&(a+=' xml:space="preserve"'),a+=">"+Jl(i.t)+"</t>"),a+="</si>",r[r.length]=a}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}var Fd=function(e,t){var r=!1;return null==t&&(r=!0,t=Tu(15+4*e.t.length)),t.write_shift(1,0),Gu(e.t,t),r?t.slice(0,t.l):t};function jd(e){var t=Cu();Au(t,159,function(e,t){return t||(t=Tu(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var r=0;r<e.length;++r)Au(t,19,Fd(e[r]));return Au(t,160),t.end()}function Ld(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function Bd(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function zd(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},i=e.read_shift(4),a=[];i-- >0;)a.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=a,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function Ud(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Bd(e,4),t.U=Bd(e,4),t.W=Bd(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function Hd(e,t){var r=e.l+t,n={};n.Flags=63&e.read_shift(4),e.l+=4,n.AlgID=e.read_shift(4);var i=!1;switch(n.AlgID){case 26126:case 26127:case 26128:i=36==n.Flags;break;case 26625:i=4==n.Flags;break;case 0:i=16==n.Flags||4==n.Flags||36==n.Flags;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function Wd(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function Vd(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");return{t:"Std",h:Hd(e,e.read_shift(4)),v:Wd(e,e.length-e.l)}}function $d(){throw new Error("File is password-protected: ECMA-376 Extensible")}function qd(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(Hl,function(e){var r=$l(e);switch(ql(r[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":t.forEach(function(e){n[e]=r[e]});break;case"<dataIntegrity":n.encryptedHmacKey=r.encryptedHmacKey,n.encryptedHmacValue=r.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"<keyEncryptor":n.uri=r.uri;break;case"<encryptedKey":n.encs.push(r);break;default:throw r[0]}}),n}function Xd(e){var t,r,n=0,i=Ld(e),a=i.length+1;for((t=Js(a))[0]=i.length,r=1;r!=a;++r)t[r]=i[r-1];for(r=a-1;r>=0;--r)n=((16384&n?1:0)|n<<1&32767)^t[r];return 52811^n}var Gd=/* @__PURE__ */function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(e,t){return 255&((r=e^t)/2|128*r);var r};return function(i){for(var a,s,o,l=Ld(i),c=function(e){for(var n=t[e.length-1],i=104,a=e.length-1;a>=0;--a)for(var s=e[a],o=0;7!=o;++o)64&s&&(n^=r[i]),s*=2,--i;return n}(l),u=l.length,f=Js(16),h=0;16!=h;++h)f[h]=0;for(1&~u||(a=c>>8,f[u]=n(e[0],a),--u,a=255&c,s=l[l.length-1],f[u]=n(s,a));u>0;)a=c>>8,f[--u]=n(l[u],a),a=255&c,f[--u]=n(l[u],a);for(u=15,o=15-l.length;o>0;)a=c>>8,f[u]=n(e[o],a),--o,a=255&c,f[--u]=n(l[u],a),--u,--o;return f}}(),Yd=function(e){var t=0,r=Gd(e);return function(e){var n=function(e,t,r,n,i){var a,s;for(i||(i=t),n||(n=Gd(e)),a=0;a!=t.length;++a)s=t[a],s=255&((s^=n[r])>>5|s<<3),i[a]=s,++r;return[i,r,n]}("",e,t,r);return t=n[1],n[0]}};function Kd(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,1===n.Info?n.Data=function(e){var t={},r=t.EncryptionVersionInfo=Bd(e,4);if(1!=r.Major||1!=r.Minor)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):n.Data=function(e,t){var r={},n=r.EncryptionVersionInfo=Bd(e,4);if(t-=4,2!=n.Minor)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,r.EncryptionHeader=Hd(e,i),t-=i,r.EncryptionVerifier=Wd(e,t),r}(e,t),n}var Zd=/* @__PURE__ */function(){function e(e,r){switch(r.type){case"base64":return t(Ys(e),r);case"binary":return t(e,r);case"buffer":return t(Ks&&Buffer.isBuffer(e)?e.toString("binary"):ro(e),r);case"array":return t(wl(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){var r=(t||{}).dense?[]:{},n=e.match(/\\trowd.*?\\row\b/g);if(!n.length)throw new Error("RTF missing table");var i={s:{c:0,r:0},e:{c:0,r:n.length-1}};return n.forEach(function(e,t){Array.isArray(r)&&(r[t]=[]);for(var n,a=/\\\w+\b/g,s=0,o=-1;n=a.exec(e);){if("\\cell"===n[0]){var l=e.slice(s,a.lastIndex-n[0].length);if(" "==l[0]&&(l=l.slice(1)),++o,l.length){var c={v:l,t:"s"};Array.isArray(r)?r[t][o]=c:r[Lu({r:t,c:o})]=c}}s=a.lastIndex}o>i.e.c&&(i.e.c=o)}),r["!ref"]=zu(i),r}return{to_workbook:function(t,r){return Vu(e(t,r),r)},to_sheet:e,from_sheet:function(e){for(var t,r=["{\\rtf1\\ansi"],n=Uu(e["!ref"]),i=Array.isArray(e),a=n.s.r;a<=n.e.r;++a){r.push("\\trowd\\trautofit1");for(var s=n.s.c;s<=n.e.c;++s)r.push("\\cellx"+(s+1));for(r.push("\\pard\\intbl"),s=n.s.c;s<=n.e.c;++s){var o=Lu({r:a,c:s});(t=i?(e[a]||[])[s]:e[o])&&(null!=t.v||t.f&&!t.F)&&(r.push(" "+(t.w||(Wu(t),t.w))),r.push("\\cell"))}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}}}();function Jd(e){for(var t=0,r=1;3!=t;++t)r=256*r+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function Qd(e,t){if(0===t)return e;var r=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(t,r,n),a=Math.min(t,r,n),s=i-a;if(0===s)return[0,0,t];var o,l=0,c=i+a;switch(o=s/(c>1?2-c:c),i){case t:l=((r-n)/s+6)%6;break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4}return[l/6,o,c/2]}(function(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}(e));return r[2]=t<0?r[2]*(1+t):1-(1-r[2])*(1-t),Jd(function(e){var t,r=e[0],n=e[1],i=e[2],a=2*n*(i<.5?i:1-i),s=i-a/2,o=[s,s,s],l=6*r;if(0!==n)switch(0|l){case 0:case 6:t=a*l,o[0]+=a,o[1]+=t;break;case 1:t=a*(2-l),o[0]+=t,o[1]+=a;break;case 2:t=a*(l-2),o[1]+=a,o[2]+=t;break;case 3:t=a*(4-l),o[1]+=t,o[2]+=a;break;case 4:t=a*(l-4),o[2]+=a,o[0]+=t;break;case 5:t=a*(6-l),o[2]+=t,o[0]+=a}for(var c=0;3!=c;++c)o[c]=Math.round(255*o[c]);return o}(r))}var ep=6;function tp(e){return Math.floor((e+Math.round(128/ep)/256)*ep)}function rp(e){return Math.floor((e-5)/ep*100+.5)/100}function np(e){return Math.round((e*ep+5)/ep*256)/256}function ip(e){return np(rp(tp(e)))}function ap(e){var t=Math.abs(e-ip(e)),r=ep;if(t>.005)for(ep=1;ep<15;++ep)Math.abs(e-ip(e))<=t&&(t=Math.abs(e-ip(e)),r=ep);ep=r}function sp(e){e.width?(e.wpx=tp(e.width),e.wch=rp(e.wpx),e.MDW=ep):e.wpx?(e.wch=rp(e.wpx),e.width=np(e.wch),e.MDW=ep):"number"==typeof e.wch&&(e.width=np(e.wch),e.wpx=tp(e.width),e.MDW=ep),e.customWidth&&delete e.customWidth}var op=96;function lp(e){return 96*e/op}function cp(e){return e*op/96}var up={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};var fp=["numFmtId","fillId","fontId","borderId","xfId"],hp=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];var dp=/* @__PURE__ */function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(a,s,o){var l,c={};return a?((l=(a=a.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,r){t.NumberFmt=[];for(var n=al(go),i=0;i<n.length;++i)t.NumberFmt[n[i]]=go[n[i]];var a=e[0].match(Hl);if(a)for(i=0;i<a.length;++i){var s=$l(a[i]);switch(ql(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var o=Yl(lc(s.formatCode)),l=parseInt(s.numFmtId,10);if(t.NumberFmt[l]=o,l>0){if(l>392){for(l=392;l>60&&null!=t.NumberFmt[l];--l);t.NumberFmt[l]=o}Ko(o,l)}break;default:if(r.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}(l,c,o),(l=a.match(n))&&function(e,t,r,n){t.Fonts=[];var i={},a=!1;(e[0].match(Hl)||[]).forEach(function(e){var s=$l(e);switch(ql(s[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":t.Fonts.push(i),i={};break;case"<name":s.val&&(i.name=lc(s.val));break;case"<b":i.bold=s.val?nc(s.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=s.val?nc(s.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(s.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=s.val?nc(s.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=s.val?nc(s.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=s.val?nc(s.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=s.val?nc(s.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=s.val?nc(s.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":s.val&&(i.sz=+s.val);break;case"<vertAlign":s.val&&(i.vertAlign=s.val);break;case"<family":s.val&&(i.family=parseInt(s.val,10));break;case"<scheme":s.val&&(i.scheme=s.val);break;case"<charset":if("1"==s.val)break;s.codepage=js[parseInt(s.val,10)];break;case"<color":if(i.color||(i.color={}),s.auto&&(i.color.auto=nc(s.auto)),s.rgb)i.color.rgb=s.rgb.slice(-6);else if(s.indexed){i.color.index=parseInt(s.indexed,10);var o=Cf[i.color.index];81==i.color.index&&(o=Cf[1]),o||(o=Cf[1]),i.color.rgb=o[0].toString(16)+o[1].toString(16)+o[2].toString(16)}else s.theme&&(i.color.theme=parseInt(s.theme,10),s.tint&&(i.color.tint=parseFloat(s.tint)),s.theme&&r.themeElements&&r.themeElements.clrScheme&&(i.color.rgb=Qd(r.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<AlternateContent":case"<ext":a=!0;break;case"</AlternateContent>":case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+s[0]+" in fonts")}})}(l,c,s,o),(l=a.match(r))&&function(e,t,r,n){t.Fills=[];var i={},a=!1;(e[0].match(Hl)||[]).forEach(function(e){var r=$l(e);switch(ql(r[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":i={},t.Fills.push(i);break;case"<gradientFill":case"</gradientFill>":t.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":r.patternType&&(i.patternType=r.patternType);break;case"<bgColor":i.bgColor||(i.bgColor={}),r.indexed&&(i.bgColor.indexed=parseInt(r.indexed,10)),r.theme&&(i.bgColor.theme=parseInt(r.theme,10)),r.tint&&(i.bgColor.tint=parseFloat(r.tint)),r.rgb&&(i.bgColor.rgb=r.rgb.slice(-6));break;case"<fgColor":i.fgColor||(i.fgColor={}),r.theme&&(i.fgColor.theme=parseInt(r.theme,10)),r.tint&&(i.fgColor.tint=parseFloat(r.tint)),null!=r.rgb&&(i.fgColor.rgb=r.rgb.slice(-6));break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+r[0]+" in fills")}})}(l,c,0,o),(l=a.match(i))&&function(e,t,r,n){t.Borders=[];var i={},a=!1;(e[0].match(Hl)||[]).forEach(function(e){var r=$l(e);switch(ql(r[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":i={},r.diagonalUp&&(i.diagonalUp=nc(r.diagonalUp)),r.diagonalDown&&(i.diagonalDown=nc(r.diagonalDown)),t.Borders.push(i);break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+r[0]+" in borders")}})}(l,c,0,o),(l=a.match(t))&&function(e,t,r){var n;t.CellXf=[];var i=!1;(e[0].match(Hl)||[]).forEach(function(e){var a=$l(e),s=0;switch(ql(a[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(n=a)[0],s=0;s<fp.length;++s)n[fp[s]]&&(n[fp[s]]=parseInt(n[fp[s]],10));for(s=0;s<hp.length;++s)n[hp[s]]&&(n[hp[s]]=nc(n[hp[s]]));if(t.NumberFmt&&n.numFmtId>392)for(s=392;s>60;--s)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[s]){n.numFmtId=s;break}t.CellXf.push(n);break;case"<alignment":case"<alignment/>":var o={};a.vertical&&(o.vertical=a.vertical),a.horizontal&&(o.horizontal=a.horizontal),null!=a.textRotation&&(o.textRotation=a.textRotation),a.indent&&(o.indent=a.indent),a.wrapText&&(o.wrapText=nc(a.wrapText)),n.alignment=o;break;case"<AlternateContent":case"<ext":i=!0;break;case"</AlternateContent>":case"</ext>":i=!1;break;default:if(r&&r.WTF&&!i)throw new Error("unrecognized "+a[0]+" in cellXfs")}})}(l,c,o),c):c}}();function pp(e,t){var r,n=[Bl,yc("styleSheet",null,{xmlns:Fc[0],"xmlns:vt":Nc})];return e.SSF&&null!=(r=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)null!=e[n]&&(t[t.length]=yc("numFmt",null,{numFmtId:n,formatCode:Jl(e[n])}))}),1===t.length?"":(t[t.length]="</numFmts>",t[0]=yc("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(n[n.length]=r),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=function(e){var t=[];return t[t.length]=yc("cellXfs",null),e.forEach(function(e){t[t.length]=yc("xf",null,e)}),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=yc("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(n[n.length]=r),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function mp(e,t,r){r||(r=Tu(6+4*t.length)),r.write_shift(2,e),Gu(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return null==r.l&&(r.l=r.length),n}function vp(e,t){t||(t=Tu(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=Tu(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,r),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var r=0;"superscript"==e.vertAlign?r=1:"subscript"==e.vertAlign&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),bf(e.color,t);var n=0;return"major"==e.scheme&&(n=1),"minor"==e.scheme&&(n=2),t.write_shift(1,n),Gu(e.name,t),t.length>t.l?t.slice(0,t.l):t}var gp,bp=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],yp=Su;function wp(e,t){t||(t=Tu(84)),gp||(gp=ol(bp));var r=gp[e.patternType];null==r&&(r=40),t.write_shift(4,r);var n=0;if(40!=r)for(bf({auto:1},t),bf({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function _p(e,t,r){return r||(r=Tu(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function kp(e,t){return t||(t=Tu(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var xp=Su;function Sp(e){var t;Au(e,613,qu(1)),Au(e,46,(t||(t=Tu(51)),t.write_shift(1,0),kp(0,t),kp(0,t),kp(0,t),kp(0,t),kp(0,t),t.length>t.l?t.slice(0,t.l):t)),Au(e,614)}function Tp(e){var t,r;Au(e,619,qu(1)),Au(e,48,(t={xfId:0,builtinId:0,name:"Normal"},r||(r=Tu(52)),r.write_shift(4,t.xfId),r.write_shift(2,1),r.write_shift(1,+t.builtinId),r.write_shift(1,0),of(t.name||"",r),r.length>r.l?r.slice(0,r.l):r)),Au(e,620)}function Ep(e){var t,r,n,i;Au(e,508,(t=0,r="TableStyleMedium9",n="PivotStyleMedium4",(i=Tu(2052)).write_shift(4,t),of(r,i),of(n,i),i.length>i.l?i.slice(0,i.l):i)),Au(e,509)}function Cp(e,t){var r=Cu();return Au(r,278),function(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var n=e[0];n<=e[1];++n)null!=t[n]&&++r}),0!=r&&(Au(e,615,qu(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)null!=t[n]&&Au(e,44,mp(n,t[n]))}),Au(e,616))}}(r,e.SSF),function(e){Au(e,611,qu(1)),Au(e,43,vp({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Au(e,612)}(r),function(e){Au(e,603,qu(2)),Au(e,45,wp({patternType:"none"})),Au(e,45,wp({patternType:"gray125"})),Au(e,604)}(r),Sp(r),function(e){Au(e,626,qu(1)),Au(e,47,_p({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Au(e,627)}(r),function(e,t){Au(e,617,qu(t.length)),t.forEach(function(t){Au(e,47,_p(t,0))}),Au(e,618)}(r,t.cellXfs),Tp(r),function(e){Au(e,505,qu(0)),Au(e,506)}(r),Ep(r),Au(r,279),r.end()}var Ap=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function Mp(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(Hl)||[]).forEach(function(e){var i=$l(e);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=i.val;break;case"<a:sysClr":n.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[Ap.indexOf(i[0])]=n,n={}):n.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function Op(){}function Rp(){}var Ip=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,Np=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,Pp=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;var Dp=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Fp(e,t){var r;e&&0!==e.length||(e=jp());var n={};if(!(r=e.match(Dp)))throw new Error("themeElements not found in theme");return function(e,t,r){var n;t.themeElements={},[["clrScheme",Ip,Mp],["fontScheme",Np,Op],["fmtScheme",Pp,Rp]].forEach(function(i){if(!(n=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](n,t,r)})}(r[0],n,t),n.raw=e,n}function jp(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var r=[Bl];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<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>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<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>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<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>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<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>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function Lp(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e,t){return Su(e,t)}(e,4);break;case 2:t.xclrValue=Fh(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}function Bp(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=Lp(e);break;case 6:n[1]=function(e,t){return Su(e,t)}(e,r);break;case 14:case 15:n[1]=e.read_shift(1===r?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function zp(e,t){t.forEach(function(e){e[0]})}function Up(){var e,t,r=Cu();return Au(r,332),Au(r,334,qu(1)),Au(r,335,((t=Tu(12+2*(e={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,e.flags),t.write_shift(4,e.version),Gu(e.name,t),t.slice(0,t.l))),Au(r,336),Au(r,339,function(e,t){var r=Tu(8+2*t.length);return r.write_shift(4,e),Gu(t,r),r.slice(0,r.l)}(1,"XLDAPR")),Au(r,52),Au(r,35,qu(514)),Au(r,4096,qu(0)),Au(r,4097,_h(1)),Au(r,36),Au(r,53),Au(r,340),Au(r,337,function(e,t){var r=Tu(8);return r.write_shift(4,e),r.write_shift(4,t?1:0),r}(1,!0)),Au(r,51,function(e){var t=Tu(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}([[1,0]])),Au(r,338),Au(r,333),r.end()}function Hp(){var e=[Bl];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),e.join("")}var Wp=1024;function Vp(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[yc("xml",null,{"xmlns:v":Hc,"xmlns:o":jc,"xmlns:x":Lc,"xmlns:mv":Uc}).replace(/\/>/,">"),yc("o:shapelayout",yc("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),yc("v:shapetype",[yc("v:stroke",null,{joinstyle:"miter"}),yc("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Wp<1e3*e;)Wp+=1e3;return t.forEach(function(e){var t=ju(e[0]),r={color2:"#BEFF82",type:"gradient"};"gradient"==r.type&&(r.angle="-180");var n=yc("v:fill","gradient"==r.type?yc("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,r);++Wp,i=i.concat(["<v:shape"+bc({id:"_x0000_s"+Wp,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",n,yc("v:shadow",null,{on:"t",obscured:"t"}),yc("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",gc("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),gc("x:AutoFill","False"),gc("x:Row",String(t.r)),gc("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function $p(e,t,r,n){var i,a=Array.isArray(e);t.forEach(function(t){var s=ju(t.ref);if(a?(e[s.r]||(e[s.r]=[]),i=e[s.r][s.c]):i=e[t.ref],!i){i={t:"z"},a?e[s.r][s.c]=i:e[t.ref]=i;var o=Uu(e["!ref"]||"BDWGO1000001:A1");o.s.r>s.r&&(o.s.r=s.r),o.e.r<s.r&&(o.e.r=s.r),o.s.c>s.c&&(o.s.c=s.c),o.e.c<s.c&&(o.e.c=s.c);var l=zu(o);l!==e["!ref"]&&(e["!ref"]=l)}i.c||(i.c=[]);var c={a:t.author,t:t.t,r:t.r,T:r};t.h&&(c.h=t.h);for(var u=i.c.length-1;u>=0;--u){if(!r&&i.c[u].T)return;r&&!i.c[u].T&&i.c.splice(u,1)}if(r&&n)for(u=0;u<n.length;++u)if(c.a==n[u].id){c.a=n[u].name||c.a;break}i.c.push(c)})}function qp(e){var t=[Bl,yc("comments",null,{xmlns:Fc[0]})],r=[];return t.push("<authors>"),e.forEach(function(e){e[1].forEach(function(e){var n=Jl(e.a);-1==r.indexOf(n)&&(r.push(n),t.push("<author>"+n+"</author>")),e.T&&e.ID&&-1==r.indexOf("tc="+e.ID)&&(r.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))})}),0==r.length&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(e){var n=0,i=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?n=r.indexOf("tc="+e[1][0].ID):e[1].forEach(function(e){e.a&&(n=r.indexOf(Jl(e.a))),i.push(e.t||"")}),t.push('<comment ref="'+e[0]+'" authorId="'+n+'"><text>'),i.length<=1)t.push(gc("t",Jl(i[0]||"")));else{for(var a="Comment:\n "+i[0]+"\n",s=1;s<i.length;++s)a+="Reply:\n "+i[s]+"\n";t.push(gc("t",Jl(a)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Xp(e,t,r){var n=[Bl,yc("ThreadedComments",null,{xmlns:Ac}).replace(/[\/]>/,">")];return e.forEach(function(e){var i="";(e[1]||[]).forEach(function(a,s){if(a.T){a.a&&-1==t.indexOf(a.a)&&t.push(a.a);var o={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};0==s?i=o.id:o.parentId=i,a.ID=o.id,a.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(a.a)).slice(-12)+"}"),n.push(yc("threadedComment",gc("text",a.t||""),o))}else delete a.ID})}),n.push("</ThreadedComments>"),n.join("")}var Gp=Xu;function Yp(e){var t=Cu(),r=[];return Au(t,628),Au(t,630),e.forEach(function(e){e[1].forEach(function(e){r.indexOf(e.a)>-1||(r.push(e.a.slice(0,54)),Au(t,632,function(e){return Gu(e.slice(0,54))}(e.a)))})}),Au(t,631),Au(t,633),e.forEach(function(e){e[1].forEach(function(n){n.iauthor=r.indexOf(n.a),Au(t,635,function(e,t){return null==t&&(t=Tu(36)),t.write_shift(4,e[1].iauthor),mf(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([{s:ju(e[0]),e:ju(e[0])},n])),n.t&&n.t.length>0&&Au(t,637,Ju(n)),Au(t,636),delete n.iauthor})}),Au(t,634),Au(t,629),t.end()}var Kp=["xlsb","xlsm","xlam","biff8","xla"];var Zp=/* @__PURE__ */function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(e,r,n,i){var a=!1,s=!1;0==n.length?s=!0:"["==n.charAt(0)&&(s=!0,n=n.slice(1,-1)),0==i.length?a=!0:"["==i.charAt(0)&&(a=!0,i=i.slice(1,-1));var o=n.length>0?0|parseInt(n,10):0,l=i.length>0?0|parseInt(i,10):0;return a?l+=t.c:--l,s?o+=t.r:--o,r+(a?"":"$")+Fu(l)+(s?"":"$")+Pu(o)}return function(n,i){return t=i,n.replace(e,r)}}(),Jp=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Qp=/* @__PURE__ */function(){return function(e,t){return e.replace(Jp,function(e,r,n,i,a,s){var o=Du(i)-(n?0:t.c),l=Nu(s)-(a?0:t.r);return r+"R"+(0==l?"":a?l+1:"["+l+"]")+"C"+(0==o?"":n?o+1:"["+o+"]")})}}();function em(e,t){return e.replace(Jp,function(e,r,n,i,a,s){return r+("$"==n?n+i:Fu(Du(i)+t.c))+("$"==a?a+s:Pu(Nu(s)+t.r))})}function tm(e,t,r){var n=Bu(t).s,i=ju(r);return em(e,{r:i.r-n.r,c:i.c-n.c})}function rm(e){return e.replace(/_xlfn\./g,"")}function nm(e){e.l+=1}function im(e,t){var r=e.read_shift(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function am(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return sm(e);12==r.biff&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=im(e,2),o=im(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function sm(e){var t=im(e,2),r=im(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function om(e,t,r){if(r.biff<8)return sm(e);var n=e.read_shift(12==r.biff?4:2),i=e.read_shift(12==r.biff?4:2),a=im(e,2),s=im(e,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function lm(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return function(e){var t=im(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}(e);var n=e.read_shift(r&&12==r.biff?4:2),i=im(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function cm(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:255&r,fQuoted:!!(16384&r),cRel:r>>15,rRel:r>>15}}function um(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return function(e){var t=e.read_shift(2),r=e.read_shift(1),n=(32768&t)>>15,i=(16384&t)>>14;t&=16383,1==n&&t>=8192&&(t-=16384);1==i&&r>=128&&(r-=256);return{r:t,c:r,cRel:i,rRel:n}}(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(16384&a)>>14,o=(32768&a)>>15;if(a&=16383,1==o)for(;i>524287;)i-=1048576;if(1==s)for(;a>8191;)a-=16384;return{r:i,c:a,cRel:s,rRel:o}}function fm(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function hm(e){return[e.read_shift(1),e.read_shift(1)]}function dm(e,t){var r=[e.read_shift(1)];if(12==t)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2}switch(r[0]){case 4:r[1]=bh(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=Af[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=vf(e);break;case 2:r[1]=Mh(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function pm(e,t,r){for(var n=e.read_shift(12==r.biff?4:2),i=[],a=0;a!=n;++a)i.push((12==r.biff?pf:Hh)(e,8));return i}function mm(e,t,r){var n=0,i=0;12==r.biff?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,0==--i&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=dm(e,r.biff);return s}function vm(e,t,r){return e.l+=2,[cm(e)]}function gm(e){return e.l+=6,[]}function bm(e){return e.l+=2,[wh(e),1&e.read_shift(2)]}var ym=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var wm={1:{n:"PtgExp",f:function(e,t,r){return e.l++,r&&12==r.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(r&&2==r.biff?1:2)]}},2:{n:"PtgTbl",f:Su},3:{n:"PtgAdd",f:nm},4:{n:"PtgSub",f:nm},5:{n:"PtgMul",f:nm},6:{n:"PtgDiv",f:nm},7:{n:"PtgPower",f:nm},8:{n:"PtgConcat",f:nm},9:{n:"PtgLt",f:nm},10:{n:"PtgLe",f:nm},11:{n:"PtgEq",f:nm},12:{n:"PtgGe",f:nm},13:{n:"PtgGt",f:nm},14:{n:"PtgNe",f:nm},15:{n:"PtgIsect",f:nm},16:{n:"PtgUnion",f:nm},17:{n:"PtgRange",f:nm},18:{n:"PtgUplus",f:nm},19:{n:"PtgUminus",f:nm},20:{n:"PtgPercent",f:nm},21:{n:"PtgParen",f:nm},22:{n:"PtgMissArg",f:nm},23:{n:"PtgStr",f:function(e,t,r){return e.l++,Sh(e,0,r)}},26:{n:"PtgSheet",f:function(e,t,r){return e.l+=5,e.l+=2,e.l+=2==r.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,r){return e.l+=2==r.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Af[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,vf(e)}},32:{n:"PtgArray",f:function(e,t,r){var n=(96&e[e.l++])>>5;return e.l+=2==r.biff?6:12==r.biff?14:7,[n]}},33:{n:"PtgFunc",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[Hm[i],Um[i],n]}},34:{n:"PtgFuncVar",f:function(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[88==n?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[i,(0===a[0]?Um:zm)[a[1]]]}},35:{n:"PtgName",f:function(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[n,0,a]}},36:{n:"PtgRef",f:function(e,t,r){var n=(96&e[e.l])>>5;return e.l+=1,[n,lm(e,0,r)]}},37:{n:"PtgArea",f:function(e,t,r){return[(96&e[e.l++])>>5,am(e,r.biff>=2&&r.biff,r)]}},38:{n:"PtgMemArea",f:function(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=r&&2==r.biff?3:4,[n,e.read_shift(r&&2==r.biff?1:2)]}},39:{n:"PtgMemErr",f:Su},40:{n:"PtgMemNoMem",f:Su},41:{n:"PtgMemFunc",f:function(e,t,r){return[e.read_shift(1)>>>5&3,e.read_shift(r&&2==r.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,12==r.biff&&(e.l+=2),[n]}},43:{n:"PtgAreaErr",f:function(e,t,r){var n=(96&e[e.l++])>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function(e,t,r){var n=(96&e[e.l])>>5;return e.l+=1,[n,um(e,0,r)]}},45:{n:"PtgAreaN",f:function(e,t,r){return[(96&e[e.l++])>>5,om(e,0,r)]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,r){return 5==r.biff?function(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);return r&&5==r.biff&&(e.l+=12),[n,i,lm(e,0,r)]}},59:{n:"PtgArea3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,i=e.read_shift(2,"i");if(r)switch(r.biff){case 5:e.l+=12;break;case 12:0}return[n,i,am(e,0,r)]}},60:{n:"PtgRefErr3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6}return e.l+=a,[n,i]}},61:{n:"PtgAreaErr3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12}return e.l+=a,[n,i]}},255:{}},_m={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},km={1:{n:"PtgElfLel",f:bm},2:{n:"PtgElfRw",f:vm},3:{n:"PtgElfCol",f:vm},6:{n:"PtgElfRwV",f:vm},7:{n:"PtgElfColV",f:vm},10:{n:"PtgElfRadical",f:vm},11:{n:"PtgElfRadicalS",f:gm},13:{n:"PtgElfColS",f:gm},15:{n:"PtgElfColSV",f:gm},16:{n:"PtgElfRadicalLel",f:bm},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2);return{ixti:t,coltype:3&r,rt:ym[r>>2&31],idx:n,c:i,C:a}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},xm={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=r&&2==r.biff?3:4,[n]}},2:{n:"PtgAttrIf",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=2,[n,e.read_shift(r&&2==r.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,r){e.l+=2;for(var n=e.read_shift(r&&2==r.biff?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&2==r.biff?1:2));return i}},8:{n:"PtgAttrGoto",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=2,[n,e.read_shift(r&&2==r.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,r){e.l+=r&&2==r.biff?3:4}},32:{n:"PtgAttrBaxcel",f:fm},33:{n:"PtgAttrBaxcel",f:fm},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),hm(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),hm(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function Sm(e,t,r,n){if(n.biff<8)return Su(e,t);for(var i=e.l+t,a=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=mm(e,0,n),a.push(r[s][1]);break;case"PtgMemArea":r[s][2]=pm(e,r[s][1],n),a.push(r[s][2]);break;case"PtgExp":n&&12==n.biff&&(r[s][1][1]=e.read_shift(4),a.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return 0!==(t=i-e.l)&&a.push(Su(e,t)),a}function Tm(e,t,r){for(var n,i,a=e.l+t,s=[];a!=e.l;)t=a-e.l,i=e[e.l],n=wm[i]||wm[_m[i]],24!==i&&25!==i||(n=(24===i?km:xm)[e[e.l+1]]),n&&n.f?s.push([n.n,n.f(e,t,r)]):Su(e,t);return s}function Em(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],a=0;a<n.length;++a){var s=n[a];if(s)if(2===s[0])i.push('"'+s[1].replace(/"/g,'""')+'"');else i.push(s[1]);else i.push("")}t.push(i.join(","))}return t.join(";")}var Cm={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Am(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=-1==n[1]?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return null!=r.SID?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=-1==n[1]?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(e){return e.Name}).join(";;");default:return e[n[0]][0][3]?(i=-1==n[1]?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Mm(e,t,r){var n=Am(e,t,r);return"#REF"==n?n:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(n,r)}function Om(e,t,r,n,i){var a,s,o,l,c=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},f=[],h=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,v="",g=0,b=e[0].length;g<b;++g){var y=e[0][g];switch(y[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(a=f.pop(),s=f.pop(),m>=0){switch(e[0][m][1][0]){case 0:v=kl(" ",e[0][m][1][1]);break;case 1:v=kl("\r",e[0][m][1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}s+=v,m=-1}f.push(s+Cm[y[0]]+a);break;case"PtgIsect":a=f.pop(),s=f.pop(),f.push(s+" "+a);break;case"PtgUnion":a=f.pop(),s=f.pop(),f.push(s+","+a);break;case"PtgRange":a=f.pop(),s=f.pop(),f.push(s+":"+a);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":o=Mu(y[1][1],u,i),f.push(Ru(o,c));break;case"PtgRefN":o=r?Mu(y[1][1],r,i):y[1][1],f.push(Ru(o,c));break;case"PtgRef3d":h=y[1][1],o=Mu(y[1][2],u,i),p=Mm(n,h,i),f.push(p+"!"+Ru(o,c));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],_=y[1][1];w||(w=0);var k=0==(w&=127)?[]:f.slice(-w);f.length-=w,"User"===_&&(_=k.shift()),f.push(_+"("+k.join(",")+")");break;case"PtgBool":f.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":f.push(y[1]);break;case"PtgNum":f.push(String(y[1]));break;case"PtgStr":f.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=Ou(y[1][1],r?{s:r}:u,i),f.push(Iu(l,i));break;case"PtgArea":l=Ou(y[1][1],u,i),f.push(Iu(l,i));break;case"PtgArea3d":h=y[1][1],l=y[1][2],p=Mm(n,h,i),f.push(p+"!"+Iu(l,i));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgName":d=y[1][2];var x=(n.names||[])[d-1]||(n[0]||[])[d],S=x?x.Name:"SH33TJSNAME"+String(d);S&&"_xlfn."==S.slice(0,6)&&!i.xlfn&&(S=S.slice(6)),f.push(S);break;case"PtgNameX":var T,E=y[1][1];if(d=y[1][2],!(i.biff<=5)){var C="";if(14849==((n[E]||[])[0]||[])[0]||(1025==((n[E]||[])[0]||[])[0]?n[E][d]&&n[E][d].itab>0&&(C=n.SheetNames[n[E][d].itab-1]+"!"):C=n.SheetNames[d-1]+"!"),n[E]&&n[E][d])C+=n[E][d].Name;else if(n[0]&&n[0][d])C+=n[0][d].Name;else{var A=(Am(n,E,i)||"").split(";;");A[d-1]?C=A[d-1]:C+="SH33TJSERRX"}f.push(C);break}E<0&&(E=-E),n[E]&&(T=n[E][d]),T||(T={Name:"SH33TJSERRY"}),f.push(T.Name);break;case"PtgParen":var M="(",O=")";if(m>=0){switch(v="",e[0][m][1][0]){case 2:M=kl(" ",e[0][m][1][1])+M;break;case 3:M=kl("\r",e[0][m][1][1])+M;break;case 4:O=kl(" ",e[0][m][1][1])+O;break;case 5:O=kl("\r",e[0][m][1][1])+O;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}f.push(M+f.pop()+O);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":f.push("#REF!");break;case"PtgExp":o={c:y[1][1],r:y[1][0]};var R={c:r.c,r:r.r};if(n.sharedf[Lu(o)]){var I=n.sharedf[Lu(o)];f.push(Om(I,u,R,n,i))}else{var N=!1;for(a=0;a!=n.arrayf.length;++a)if(s=n.arrayf[a],!(o.c<s[0].s.c||o.c>s[0].e.c||o.r<s[0].s.r||o.r>s[0].e.r)){f.push(Om(s[1],u,R,n,i)),N=!0;break}N||f.push(y[1])}break;case"PtgArray":f.push("{"+Em(y[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=g;break;case"PtgMissArg":f.push("");break;case"PtgList":f.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(y))}if(3!=i.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][g][0])){var P=!0;switch((y=e[0][m])[1][0]){case 4:P=!1;case 0:v=kl(" ",y[1][1]);break;case 5:P=!1;case 1:v=kl("\r",y[1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}f.push((P?v:"")+f.pop()+(P?"":v)),m=-1}}if(f.length>1&&i.WTF)throw new Error("bad formula stack");return f[0]}function Rm(e,t,r){var n,i=e.l+t,a=2==r.biff?1:2,s=e.read_shift(a);if(65535==s)return[[],Su(e,t-2)];var o=Tm(e,s,r);return t!==s+a&&(n=Sm(e,t-s-a,o,r)),e.l=i,[o,n]}function Im(e,t,r){var n,i=e.l+t,a=e.read_shift(2),s=Tm(e,a,r);return 65535==a?[[],Su(e,t-2)]:(t!==a+2&&(n=Sm(e,i-a-2,s,r)),[s,n])}function Nm(e,t,r){var n=e.l+t,i=Lh(e);2==r.biff&&++e.l;var a=function(e){var t;if(65535!==hu(e,e.l+6))return[vf(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),s=e.read_shift(1);2!=r.biff&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=function(e,t,r){var n,i=e.l+t,a=2==r.biff?1:2,s=e.read_shift(a);if(65535==s)return[[],Su(e,t-2)];var o=Tm(e,s,r);return t!==s+a&&(n=Sm(e,t-s-a,o,r)),e.l=i,[o,n]}(e,n-e.l,r);return{cell:i,val:a[0],formula:o,shared:s>>3&1,tt:a[1]}}function Pm(e,t,r,n,i){var a=Bh(t,r,i),s=function(e){if(null==e){var t=Tu(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return gf("number"==typeof e?e:0)}(e.v),o=Tu(6);o.write_shift(2,33),o.write_shift(4,0);for(var l=Tu(e.bf.length),c=0;c<e.bf.length;++c)l[c]=e.bf[c];return io([a,s,o,l])}function Dm(e,t,r){var n=Tm(e,e.read_shift(4),r),i=e.read_shift(4);return[n,i>0?Sm(e,i,n,r):null]}var Fm=Dm,jm=Dm,Lm=Dm,Bm=Dm,zm={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Um={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Hm={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Wm(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,t){return t.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Vm(e){return("of:="+e.replace(Jp,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function $m(e){var t=e.split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function qm(e){return e.replace(/\./,"!")}var Xm={},Gm={},Ym="undefined"!=typeof Map;function Km(e,t,r){var n=0,i=e.length;if(r){if(Ym?r.has(t):Object.prototype.hasOwnProperty.call(r,t))for(var a=Ym?r.get(t):r[t];n<a.length;++n)if(e[a[n]].t===t)return e.Count++,a[n]}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t:t},e.Count++,e.Unique++,r&&(Ym?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function Zm(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(ep=t.MDW),null!=t.width?r.customWidth=1:null!=t.wpx?n=rp(t.wpx):null!=t.wch&&(n=t.wch),n>-1?(r.width=np(n),r.customWidth=1):null!=t.width&&(r.width=t.width),t.hidden&&(r.hidden=!0),null!=t.level&&(r.outlineLevel=r.level=t.level),r}function Jm(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(r=[1,1,1,1,.5,.5]),null==e.left&&(e.left=r[0]),null==e.right&&(e.right=r[1]),null==e.top&&(e.top=r[2]),null==e.bottom&&(e.bottom=r[3]),null==e.header&&(e.header=r[4]),null==e.footer&&(e.footer=r[5])}}function Qm(e,t,r){var n=r.revssf[null!=t.z?t.z:"General"],i=60,a=e.length;if(null==n&&r.ssf)for(;i<392;++i)if(null==r.ssf[i]){Ko(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function ev(e,t,r,n,i,a){try{n.cellNF&&(e.z=go[t])}catch(o){if(n.WTF)throw o}if("z"!==e.t||n.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=yl(e.v)),(!n||!1!==n.cellText)&&"z"!==e.t)try{if(null==go[t]&&Ko(Qo[t]||"General",t),"e"===e.t)e.w=e.w||Af[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Co(e.v);else if("d"===e.t){var s=ul(e.v);e.w=(0|s)===s?s.toString(10):Co(s)}else{if(void 0===e.v)return"";e.w=Ao(e.v,Gm)}else"d"===e.t?e.w=Yo(t,ul(e.v),Gm):e.w=Yo(t,e.v,Gm)}catch(o){if(n.WTF)throw o}if(n.cellStyles&&null!=r)try{e.s=a.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Qd(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Qd(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(o){if(n.WTF&&a.Fills)throw o}}}function tv(e,t,r){if(e&&e["!ref"]){var n=Uu(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}var rv=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,nv=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,iv=/<(?:\w:)?hyperlink [^>]*>/gm,av=/"(\w*:\w*)"/,sv=/<(?:\w:)?col\b[^>]*[\/]?>/g,ov=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,lv=/<(?:\w:)?pageMargins[^>]*\/>/g,cv=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,uv=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,fv=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function hv(e,t,r,n,i,a,s){if(!e)return e;n||(n={"!id":{}});var o=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",f=e.match(nv);f?(c=e.slice(0,f.index),u=e.slice(f.index+f[0].length)):c=u=e;var h=c.match(cv);h?dv(h[0],o,i,r):(h=c.match(uv))&&function(e,t,r,n,i){dv(e.slice(0,e.indexOf(">")),r,n,i)}(h[0],h[1],o,i,r);var d=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=c.slice(d,d+50).match(av);p&&function(e,t){var r=Uu(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=zu(r))}(o,p[1])}var m=c.match(fv);m&&m[1]&&function(e,t){t.Views||(t.Views=[{}]);(e.match(vv)||[]).forEach(function(e,r){var n=$l(e);t.Views[r]||(t.Views[r]={}),+n.zoomScale&&(t.Views[r].zoom=+n.zoomScale),nc(n.rightToLeft)&&(t.Views[r].RTL=!0)})}(m[1],i);var v=[];if(t.cellStyles){var g=c.match(sv);g&&function(e,t){for(var r=!1,n=0;n!=t.length;++n){var i=$l(t[n],!0);i.hidden&&(i.hidden=nc(i.hidden));var a=parseInt(i.min,10)-1,s=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!r&&i.width&&(r=!0,ap(i.width)),sp(i);a<=s;)e[a++]=_l(i)}}(v,g)}f&&bv(f[1],o,t,l,a,s);var b=u.match(ov);b&&(o["!autofilter"]=function(e){return{ref:(e.match(/ref="([^"]*)"/)||[])[1]}}(b[0]));var y=[],w=u.match(rv);if(w)for(d=0;d!=w.length;++d)y[d]=Uu(w[d].slice(w[d].indexOf('"')+1));var _=u.match(iv);_&&function(e,t,r){for(var n=Array.isArray(e),i=0;i!=t.length;++i){var a=$l(lc(t[i]),!0);if(!a.ref)return;var s=((r||{})["!id"]||[])[a.id];s?(a.Target=s.Target,a.location&&(a.Target+="#"+Yl(a.location))):(a.Target="#"+Yl(a.location),s={Target:a.Target,TargetMode:"Internal"}),a.Rel=s,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var o=Uu(a.ref),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c){var u=Lu({c:c,r:l});n?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=a):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=a)}}}(o,_,n);var k,x,S=u.match(lv);if(S&&(o["!margins"]=(k=$l(S[0]),x={},["left","right","top","bottom","header","footer"].forEach(function(e){k[e]&&(x[e]=parseFloat(k[e]))}),x)),!o["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(o["!ref"]=zu(l)),t.sheetRows>0&&o["!ref"]){var T=Uu(o["!ref"]);t.sheetRows<=+T.e.r&&(T.e.r=t.sheetRows-1,T.e.r>l.e.r&&(T.e.r=l.e.r),T.e.r<T.s.r&&(T.s.r=T.e.r),T.e.c>l.e.c&&(T.e.c=l.e.c),T.e.c<T.s.c&&(T.s.c=T.e.c),o["!fullref"]=o["!ref"],o["!ref"]=zu(T))}return v.length>0&&(o["!cols"]=v),y.length>0&&(o["!merges"]=y),o}function dv(e,t,r,n){var i=$l(e);r.Sheets[n]||(r.Sheets[n]={}),i.codeName&&(r.Sheets[n].CodeName=Yl(lc(i.codeName)))}var pv=["objects","scenarios","selectLockedCells","selectUnlockedCells"],mv=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];var vv=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function gv(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var i="",a=e.t,s=e.v;if("z"!==e.t)switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=Af[e.v];break;case"d":n&&n.cellDates?i=yl(e.v,-1).toISOString():((e=_l(e)).t="n",i=""+(e.v=ul(yl(e.v)))),void 0===e.z&&(e.z=go[14]);break;default:i=e.v}var o=gc("v",Jl(i)),l={r:t},c=Qm(n.cellXfs,e,n);switch(0!==c&&(l.s=c),e.t){case"n":case"z":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){o=gc("v",""+Km(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str"}if(e.t!=a&&(e.t=a,e.v=s),"string"==typeof e.f&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=yc("f",Jl(e.f),u)+(null!=e.v?o:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),yc("c",o,l)}var bv=/* @__PURE__ */function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=uc("v"),s=uc("f");return function(o,l,c,u,f,h){for(var d,p,m,v,g,b=0,y="",w=[],_=[],k=0,x=0,S=0,T="",E=0,C=0,A=0,M=0,O=Array.isArray(h.CellXf),R=[],I=[],N=Array.isArray(l),P=[],D={},F=!1,j=!!c.sheetStubs,L=o.split(t),B=0,z=L.length;B!=z;++B){var U=(y=L[B].trim()).length;if(0!==U){var H=0;e:for(b=0;b<U;++b)switch(y[b]){case">":if("/"!=y[b-1]){++b;break e}if(c&&c.cellStyles){if(E=null!=(p=$l(y.slice(H,b),!0)).r?parseInt(p.r,10):E+1,C=-1,c.sheetRows&&c.sheetRows<E)continue;D={},F=!1,p.ht&&(F=!0,D.hpt=parseFloat(p.ht),D.hpx=cp(D.hpt)),"1"==p.hidden&&(F=!0,D.hidden=!0),null!=p.outlineLevel&&(F=!0,D.level=+p.outlineLevel),F&&(P[E-1]=D)}break;case"<":H=b}if(H>=b)break;if(E=null!=(p=$l(y.slice(H,b),!0)).r?parseInt(p.r,10):E+1,C=-1,!(c.sheetRows&&c.sheetRows<E)){u.s.r>E-1&&(u.s.r=E-1),u.e.r<E-1&&(u.e.r=E-1),c&&c.cellStyles&&(D={},F=!1,p.ht&&(F=!0,D.hpt=parseFloat(p.ht),D.hpx=cp(D.hpt)),"1"==p.hidden&&(F=!0,D.hidden=!0),null!=p.outlineLevel&&(F=!0,D.level=+p.outlineLevel),F&&(P[E-1]=D)),w=y.slice(b).split(e);for(var W=0;W!=w.length&&"<"==w[W].trim().charAt(0);++W);for(w=w.slice(W),b=0;b!=w.length;++b)if(0!==(y=w[b].trim()).length){if(_=y.match(r),k=b,x=0,S=0,y="<c "+("<"==y.slice(0,1)?">":"")+y,null!=_&&2===_.length){for(k=0,T=_[1],x=0;x!=T.length&&!((S=T.charCodeAt(x)-64)<1||S>26);++x)k=26*k+S;C=--k}else++C;for(x=0;x!=y.length&&62!==y.charCodeAt(x);++x);if(++x,(p=$l(y.slice(0,x),!0)).r||(p.r=Lu({r:E-1,c:C})),d={t:""},null!=(_=(T=y.slice(x)).match(a))&&""!==_[1]&&(d.v=Yl(_[1])),c.cellFormula){if(null!=(_=T.match(s))&&""!==_[1]){if(d.f=Yl(lc(_[1])).replace(/\r\n/g,"\n"),c.xlfn||(d.f=rm(d.f)),_[0].indexOf('t="array"')>-1)d.F=(T.match(i)||[])[1],d.F.indexOf(":")>-1&&R.push([Uu(d.F),d.F]);else if(_[0].indexOf('t="shared"')>-1){v=$l(_[0]);var V=Yl(lc(_[1]));c.xlfn||(V=rm(V)),I[parseInt(v.si,10)]=[v,V,p.r]}}else(_=T.match(/<f[^>]*\/>/))&&I[(v=$l(_[0])).si]&&(d.f=tm(I[v.si][1],I[v.si][2],p.r));var $=ju(p.r);for(x=0;x<R.length;++x)$.r>=R[x][0].s.r&&$.r<=R[x][0].e.r&&$.c>=R[x][0].s.c&&$.c<=R[x][0].e.c&&(d.F=R[x][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!j)continue;d.t="z"}else d.t=p.t||"n";switch(u.s.c>C&&(u.s.c=C),u.e.c<C&&(u.e.c=C),d.t){case"n":if(""==d.v||null==d.v){if(!j)continue;d.t="z"}else d.v=parseFloat(d.v);break;case"s":if(void 0===d.v){if(!j)continue;d.t="z"}else m=Xm[parseInt(d.v,10)],d.v=m.t,d.r=m.r,c.cellHTML&&(d.h=m.h);break;case"str":d.t="s",d.v=null!=d.v?lc(d.v):"",c.cellHTML&&(d.h=tc(d.v));break;case"inlineStr":_=T.match(n),d.t="s",null!=_&&(m=Od(_[1]))?(d.v=m.t,c.cellHTML&&(d.h=m.h)):d.v="";break;case"b":d.v=nc(d.v);break;case"d":c.cellDates?d.v=yl(d.v,1):(d.v=ul(yl(d.v,1)),d.t="n");break;case"e":c&&!1===c.cellText||(d.w=d.v),d.v=Mf[d.v]}if(A=M=0,g=null,O&&void 0!==p.s&&null!=(g=h.CellXf[p.s])&&(null!=g.numFmtId&&(A=g.numFmtId),c.cellStyles&&null!=g.fillId&&(M=g.fillId)),ev(d,A,M,c,f,h),c.cellDates&&O&&"n"==d.t&&$o(go[A])&&(d.t="d",d.v=pl(d.v)),p.cm&&c.xlmeta){var q=(c.xlmeta.Cell||[])[+p.cm-1];q&&"XLDAPR"==q.type&&(d.D=!0)}if(N){var X=ju(p.r);l[X.r]||(l[X.r]=[]),l[X.r][X.c]=d}else l[p.r]=d}}}}P.length>0&&(l["!rows"]=P)}}();function yv(e,t,r,n){var i,a=[Bl,yc("worksheet",null,{xmlns:Fc[0],"xmlns:r":Ic})],s=r.SheetNames[e],o="",l=r.Sheets[s];null==l&&(l={});var c=l["!ref"]||"A1",u=Uu(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=zu(u)}n||(n={}),l["!comments"]=[];var f=[];!function(e,t,r,n,i){var a=!1,s={},o=null;if("xlsx"!==n.bookType&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch(u){}a=!0,s.codeName=cc(Jl(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),o=(o||"")+yc("outlinePr",null,c)}(a||o)&&(i[i.length]=yc("sheetPr",o,s))}(l,r,e,t,a),a[a.length]=yc("dimension",null,{ref:c}),a[a.length]=function(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),yc("sheetViews",yc("sheetView",null,i),{})}(0,0,0,r),t.sheetFormat&&(a[a.length]=yc("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(a[a.length]=function(e,t){for(var r,n=["<cols>"],i=0;i!=t.length;++i)(r=t[i])&&(n[n.length]=yc("col",null,Zm(i,r)));return n[n.length]="</cols>",n.join("")}(0,l["!cols"])),a[i=a.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(o=function(e,t){var r,n,i=[],a=[],s=Uu(e["!ref"]),o="",l="",c=[],u=0,f=0,h=e["!rows"],d=Array.isArray(e),p={r:l},m=-1;for(f=s.s.c;f<=s.e.c;++f)c[f]=Fu(f);for(u=s.s.r;u<=s.e.r;++u){for(a=[],l=Pu(u),f=s.s.c;f<=s.e.c;++f){r=c[f]+l;var v=d?(e[u]||[])[f]:e[r];void 0!==v&&null!=(o=gv(v,r,e,t))&&a.push(o)}(a.length>0||h&&h[u])&&(p={r:l},h&&h[u]&&((n=h[u]).hidden&&(p.hidden=1),m=-1,n.hpx?m=lp(n.hpx):n.hpt&&(m=n.hpt),m>-1&&(p.ht=m,p.customHeight=1),n.level&&(p.outlineLevel=n.level)),i[i.length]=yc("row",a.join(""),p))}if(h)for(;u<h.length;++u)h&&h[u]&&(p={r:u+1},(n=h[u]).hidden&&(p.hidden=1),m=-1,n.hpx?m=lp(n.hpx):n.hpt&&(m=n.hpt),m>-1&&(p.ht=m,p.customHeight=1),n.level&&(p.outlineLevel=n.level),i[i.length]=yc("row","",p));return i.join("")}(l,t,0,0),o.length>0&&(a[a.length]=o)),a.length>i+1&&(a[a.length]="</sheetData>",a[i]=a[i].replace("/>",">")),l["!protect"]&&(a[a.length]=function(e){var t={sheet:1};return pv.forEach(function(r){null!=e[r]&&e[r]&&(t[r]="1")}),mv.forEach(function(r){null==e[r]||e[r]||(t[r]="0")}),e.password&&(t.password=Xd(e.password).toString(16).toUpperCase()),yc("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(a[a.length]=function(e,t,r,n){var i="string"==typeof e.ref?e.ref:zu(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=Bu(i);s.s.r==s.e.r&&(s.e.r=Bu(t["!ref"]).e.r,i=zu(s));for(var o=0;o<a.length;++o){var l=a[o];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),yc("autoFilter",null,{ref:i})}(l["!autofilter"],l,r,e)),null!=l["!merges"]&&l["!merges"].length>0&&(a[a.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+zu(e[r])+'"/>';return t+"</mergeCells>"}(l["!merges"]));var h,d,p=-1,m=-1;return l["!links"].length>0&&(a[a.length]="<hyperlinks>",l["!links"].forEach(function(e){e[1].Target&&(h={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=jf(n,-1,Jl(e[1].Target).replace(/#.*$/,""),Nf.HLINK),h["r:id"]="rId"+m),(p=e[1].Target.indexOf("#"))>-1&&(h.location=Jl(e[1].Target.slice(p+1))),e[1].Tooltip&&(h.tooltip=Jl(e[1].Tooltip)),a[a.length]=yc("hyperlink",null,h))}),a[a.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(a[a.length]=(Jm(d=l["!margins"]),yc("pageMargins",null,d))),t&&!t.ignoreEC&&null!=t.ignoreEC||(a[a.length]=gc("ignoredErrors",yc("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(m=jf(n,-1,"../drawings/drawing"+(e+1)+".xml",Nf.DRAW),a[a.length]=yc("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=f),l["!comments"].length>0&&(m=jf(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Nf.VML),a[a.length]=yc("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function wv(e,t,r,n){var i=function(e,t,r){var n=Tu(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=20*lp(i.hpx):i.hpt&&(a=20*i.hpt),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,l=n.l;n.l+=4;for(var c={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.c<u<<10)){for(var f=-1,h=-1,d=u<<10;d<u+1<<10;++d)c.c=d,(Array.isArray(r)?(r[c.r]||[])[c.c]:r[Lu(c)])&&(f<0&&(f=d),h=d);f<0||(++o,n.write_shift(4,f),n.write_shift(4,h))}var p=n.l;return n.l=l,n.write_shift(4,o),n.l=p,n.length>n.l?n.slice(0,n.l):n}(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&Au(e,0,i)}var _v=pf,kv=mf;function xv(e){return[tf(e),vf(e),"n"]}var Sv=pf,Tv=mf;var Ev=["left","right","top","bottom","header","footer"];function Cv(e,t,r,n,i,a,s){if(void 0===t.v)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":(t=_l(t)).z=t.z||go[14],t.v=ul(yl(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v}var l={r:r,c:n};switch(l.s=Qm(i.cellXfs,t,i),t.l&&a["!links"].push([Lu(l),t.l]),t.c&&a["!comments"].push([Lu(l),t.c]),t.t){case"s":case"str":return i.bookSST?(o=Km(i.Strings,t.v,i.revStrings),l.t="s",l.v=o,s?Au(e,18,function(e,t,r){return null==r&&(r=Tu(8)),rf(t,r),r.write_shift(4,t.v),r}(0,l)):Au(e,7,function(e,t,r){return null==r&&(r=Tu(12)),ef(t,r),r.write_shift(4,t.v),r}(0,l))):(l.t="str",s?Au(e,17,function(e,t,r){return null==r&&(r=Tu(8+4*e.v.length)),rf(t,r),Gu(e.v,r),r.length>r.l?r.slice(0,r.l):r}(t,l)):Au(e,6,function(e,t,r){return null==r&&(r=Tu(12+4*e.v.length)),ef(t,r),Gu(e.v,r),r.length>r.l?r.slice(0,r.l):r}(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?s?Au(e,13,function(e,t,r){return null==r&&(r=Tu(8)),rf(t,r),hf(e.v,r),r}(t,l)):Au(e,2,function(e,t,r){return null==r&&(r=Tu(12)),ef(t,r),hf(e.v,r),r}(t,l)):s?Au(e,16,function(e,t,r){return null==r&&(r=Tu(12)),rf(t,r),gf(e.v,r),r}(t,l)):Au(e,5,function(e,t,r){return null==r&&(r=Tu(16)),ef(t,r),gf(e.v,r),r}(t,l)),!0;case"b":return l.t="b",s?Au(e,15,function(e,t,r){return null==r&&(r=Tu(5)),rf(t,r),r.write_shift(1,e.v?1:0),r}(t,l)):Au(e,4,function(e,t,r){return null==r&&(r=Tu(9)),ef(t,r),r.write_shift(1,e.v?1:0),r}(t,l)),!0;case"e":return l.t="e",s?Au(e,14,function(e,t,r){return null==r&&(r=Tu(8)),rf(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}(t,l)):Au(e,3,function(e,t,r){return null==r&&(r=Tu(9)),ef(t,r),r.write_shift(1,e.v),r}(t,l)),!0}return s?Au(e,12,function(e,t,r){return null==r&&(r=Tu(4)),rf(t,r)}(0,l)):Au(e,1,function(e,t,r){return null==r&&(r=Tu(8)),ef(t,r)}(0,l)),!0}function Av(e,t){var r,n;t&&t["!merges"]&&(Au(e,177,(r=t["!merges"].length,null==n&&(n=Tu(4)),n.write_shift(4,r),n)),t["!merges"].forEach(function(t){Au(e,176,Tv(t))}),Au(e,178))}function Mv(e,t){t&&t["!cols"]&&(Au(e,390),t["!cols"].forEach(function(t,r){t&&Au(e,60,function(e,t,r){null==r&&(r=Tu(18));var n=Zm(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,256*(n.width||10)),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),"number"==typeof n.width&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}(r,t))}),Au(e,391))}function Ov(e,t){t&&t["!ref"]&&(Au(e,648),Au(e,649,function(e){var t=Tu(24);return t.write_shift(4,4),t.write_shift(4,1),mf(e,t),t}(Uu(t["!ref"]))),Au(e,650))}function Rv(e,t,r){t["!links"].forEach(function(t){t[1].Target&&Au(e,494,function(e,t){var r=Tu(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));mf({s:ju(e[0]),e:ju(e[0])},r),uf("rId"+t,r);var n=e[1].Target.indexOf("#");return Gu((-1==n?"":e[1].Target.slice(n+1))||"",r),Gu(e[1].Tooltip||"",r),Gu("",r),r.slice(0,r.l)}(t,jf(r,-1,t[1].Target.replace(/#.*$/,""),Nf.HLINK)))}),delete t["!links"]}function Iv(e,t,r){Au(e,133),Au(e,137,function(e,t,r){null==r&&(r=Tu(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}(0,r)),Au(e,138),Au(e,134)}function Nv(e,t){var r,n;t["!protect"]&&Au(e,535,(r=t["!protect"],null==n&&(n=Tu(66)),n.write_shift(2,r.password?Xd(r.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){e[1]?n.write_shift(4,null==r[e[0]]||r[e[0]]?0:1):n.write_shift(4,null!=r[e[0]]&&r[e[0]]?0:1)}),n))}function Pv(e,t,r,n){var i=Cu(),a=r.SheetNames[e],s=r.Sheets[a]||{},o=a;try{r&&r.Workbook&&(o=r.Workbook.Sheets[e].CodeName||o)}catch(f){}var l,c,u=Uu(s["!ref"]||"A1");if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Au(i,129),(r.vbaraw||s["!outline"])&&Au(i,147,function(e,t,r){null==r&&(r=Tu(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return bf({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),af(e,r),r.slice(0,r.l)}(o,s["!outline"])),Au(i,148,kv(u)),Iv(i,0,r.Workbook),Mv(i,s),function(e,t,r,n){var i,a=Uu(t["!ref"]||"A1"),s="",o=[];Au(e,145);var l=Array.isArray(t),c=a.e.r;t["!rows"]&&(c=Math.max(a.e.r,t["!rows"].length-1));for(var u=a.s.r;u<=c;++u){s=Pu(u),wv(e,t,a,u);var f=!1;if(u<=a.e.r)for(var h=a.s.c;h<=a.e.c;++h){u===a.s.r&&(o[h]=Fu(h)),i=o[h]+s;var d=l?(t[u]||[])[h]:t[i];f=!!d&&Cv(e,d,u,h,n,t,f)}}Au(e,146)}(i,s,0,t),Nv(i,s),function(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a="string"==typeof i.ref?i.ref:zu(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,o=Bu(a);o.s.r==o.e.r&&(o.e.r=Bu(t["!ref"]).e.r,a=zu(o));for(var l=0;l<s.length;++l){var c=s[l];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+a;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),Au(e,161,mf(Uu(a))),Au(e,162)}}(i,s,r,e),Av(i,s),Rv(i,s,n),s["!margins"]&&Au(i,476,(l=s["!margins"],null==c&&(c=Tu(48)),Jm(l),Ev.forEach(function(e){gf(l[e],c)}),c)),t&&!t.ignoreEC&&null!=t.ignoreEC||Ov(i,s),function(e,t,r,n){if(t["!comments"].length>0){var i=jf(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Nf.VML);Au(e,551,uf("rId"+i)),t["!legacy"]=i}}(i,s,e,n),Au(i,130),i.end()}function Dv(e,t,r,n,i,a){var s=a||{"!type":"chart"};if(!e)return a;var o=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(e){var t=function(e){var t,r=[],n=e.match(/^<c:numCache>/);(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(e){var t=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);t&&(r[+t[1]]=n?+t[2]:t[2])});var i=Yl((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach(function(e){t=e.replace(/<.*?>/g,"")}),[r,i,t]}(e);u.s.r=u.s.c=0,u.e.c=o,c=Fu(o),t[0].forEach(function(e,r){s[c+Pu(r)]={t:"n",v:e,z:t[1]},l=r}),u.e.r<l&&(u.e.r=l),++o}),o>0&&(s["!ref"]=zu(u)),s}var Fv=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],jv=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Lv=[],Bv=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function zv(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],i=0;i!=t.length;++i){var a=t[i];if(null==n[a[0]])n[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof n[a[0]]&&(n[a[0]]=nc(n[a[0]]));break;case"int":"string"==typeof n[a[0]]&&(n[a[0]]=parseInt(n[a[0]],10))}}}function Uv(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(null==e[n[0]])e[n[0]]=n[1];else switch(n[2]){case"bool":"string"==typeof e[n[0]]&&(e[n[0]]=nc(e[n[0]]));break;case"int":"string"==typeof e[n[0]]&&(e[n[0]]=parseInt(e[n[0]],10))}}}function Hv(e){Uv(e.WBProps,Fv),Uv(e.CalcPr,Bv),zv(e.WBView,jv),zv(e.Sheets,Lv),Gm.date1904=nc(e.WBProps.date1904)}var Wv=/* @__PURE__ */"][*?/\\".split("");function Vv(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return Wv.forEach(function(n){if(-1!=e.indexOf(n)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function $v(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,r,n,i=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,r=i,n=!!e.vbaraw,t.forEach(function(e,i){Vv(e);for(var a=0;a<i;++a)if(e==t[a])throw new Error("Duplicate Sheet Name: "+e);if(n){var s=r&&r[i]&&r[i].CodeName||e;if(95==s.charCodeAt(0)&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}});for(var a=0;a<e.SheetNames.length;++a)tv(e.Sheets[e.SheetNames[a]],e.SheetNames[a],a)}var qv=/<\w+:workbook/;function Xv(e){var t=[Bl];t[t.length]=yc("workbook",null,{xmlns:Fc[0],"xmlns:r":Ic});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Fv.forEach(function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(n[t[0]]=e.Workbook.WBProps[t[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=yc("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&i[a]&&i[a].Hidden;++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:Jl(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}t[t.length]=yc("sheet",null,s)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(e){var r={name:e.Name};e.Comment&&(r.comment=e.Comment),null!=e.Sheet&&(r.localSheetId=""+e.Sheet),e.Hidden&&(r.hidden="1"),e.Ref&&(t[t.length]=yc("definedName",Jl(e.Ref),r))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function Gv(e,t){return t||(t=Tu(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),uf(e.strRelID,t),Gu(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function Yv(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function Kv(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var r,n,i=t.Workbook.Sheets,a=0,s=-1,o=-1;a<i.length;++a)!i[a]||!i[a].Hidden&&-1==s?s=a:1==i[a].Hidden&&-1==o&&(o=a);if(!(o>s))Au(e,135),Au(e,158,(r=s,n||(n=Tu(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,r),n.write_shift(4,r),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n)),Au(e,136)}}function Zv(e,t){var r=Cu();return Au(r,131),Au(r,128,function(e,t){t||(t=Tu(127));for(var r=0;4!=r;++r)t.write_shift(4,0);return Gu("SheetJS",t),Gu(Ns.version,t),Gu(Ns.version,t),Gu("7262",t),t.length>t.l?t.slice(0,t.l):t}()),Au(r,153,function(e,t){t||(t=Tu(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),af(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),Kv(r,e),function(e,t){Au(e,143);for(var r=0;r!=t.SheetNames.length;++r)Au(e,156,Gv({Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]}));Au(e,144)}(r,e),Au(r,132),r.end()}function Jv(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],i=!1;t||(t={}),t.biff=12;var a=[],s=[[]];return s.SheetNames=[],s.XTI=[],Lg[16]={n:"BrtFRTArchID$",f:Yv},Eu(e,function(e,o,l){switch(l){case 156:s.SheetNames.push(e.name),r.Sheets.push(e);break;case 153:r.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Om(e.Ptg,0,null,s,t),delete t.SID,delete e.Ptg,a.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:s[0].length?s.push([l,e]):s[0]=[l,e],s[s.length-1].XTI=[];break;case 362:0===s.length&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(e),s.XTI=s.XTI.concat(e);break;case 35:case 37:n.push(l),i=!0;break;case 36:case 38:n.pop(),i=!1;break;default:if(o.T);else if(!i||t.WTF&&37!=n[n.length-1]&&35!=n[n.length-1])throw new Error("Unexpected record 0x"+l.toString(16))}},t),Hv(r),r.Names=a,r.supbooks=s,r}(e,r):function(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,i="xmlns",a={},s=0;if(e.replace(Hl,function(o,l){var c=$l(o);switch(ql(c[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":o.match(qv)&&(i="xmlns"+o.match(/<(\w+):/)[1]),r.xmlns=c[i];break;case"<fileVersion":delete c[0],r.AppVersion=c;break;case"<workbookPr":case"<workbookPr/>":Fv.forEach(function(e){if(null!=c[e[0]])switch(e[2]){case"bool":r.WBProps[e[0]]=nc(c[e[0]]);break;case"int":r.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:r.WBProps[e[0]]=c[e[0]]}}),c.codeName&&(r.WBProps.CodeName=lc(c.codeName));break;case"<workbookView":case"<workbookView/>":delete c[0],r.WBView.push(c);break;case"<sheet":switch(c.state){case"hidden":c.Hidden=1;break;case"veryHidden":c.Hidden=2;break;default:c.Hidden=0}delete c.state,c.name=Yl(lc(c.name)),delete c[0],r.Sheets.push(c);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":n=!1;break;case"<definedName":(a={}).Name=lc(c.name),c.comment&&(a.Comment=c.comment),c.localSheetId&&(a.Sheet=+c.localSheetId),nc(c.hidden||"0")&&(a.Hidden=!0),s=l+o.length;break;case"</definedName>":a.Ref=Yl(lc(e.slice(s,l))),r.Names.push(a);break;case"<calcPr":case"<calcPr/>":delete c[0],r.CalcPr=c;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+c[0]+" in workbook")}return o}),-1===Fc.indexOf(r.xmlns))throw new Error("Unknown Namespace: "+r.xmlns);return Hv(r),r}(e,r)}function Qv(e,t,r,n,i,a,s,o){return".bin"===t.slice(-4)?function(e,t,r,n,i,a,s){if(!e)return e;var o=t||{};n||(n={"!id":{}});var l,c,u,f,h,d,p,m,v,g,b=o.dense?[]:{},y={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=[],_=!1,k=!1,x=[];o.biff=12,o["!row"]=0;var S=0,T=!1,E=[],C={},A=o.supbooks||i.supbooks||[[]];if(A.sharedf=C,A.arrayf=E,A.SheetNames=i.SheetNames||i.Sheets.map(function(e){return e.name}),!o.supbooks&&(o.supbooks=A,i.Names))for(var M=0;M<i.Names.length;++M)A[0][M+1]=i.Names[M];var O,R,I=[],N=[],P=!1;if(Lg[16]={n:"BrtShortReal",f:xv},Eu(e,function(e,t,M){if(!k)switch(M){case 148:l=e;break;case 0:c=e,o.sheetRows&&o.sheetRows<=c.r&&(k=!0),v=Pu(h=c.r),o["!row"]=c.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=cp(e.hpt)),N[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(u={t:e[2]},e[2]){case"n":u.v=e[1];break;case"s":m=Xm[e[1]],u.v=m.t,u.r=m.r;break;case"b":u.v=!!e[1];break;case"e":u.v=e[1],!1!==o.cellText&&(u.w=Af[u.v]);break;case"str":u.t="s",u.v=e[1];break;case"is":u.t="s",u.v=e[1].t}if((f=s.CellXf[e[0].iStyleRef])&&ev(u,f.numFmtId,null,o,a,s),d=-1==e[0].c?d+1:e[0].c,o.dense?(b[h]||(b[h]=[]),b[h][d]=u):b[Fu(d)+v]=u,o.cellFormula){for(T=!1,S=0;S<E.length;++S){var D=E[S];c.r>=D[0].s.r&&c.r<=D[0].e.r&&d>=D[0].s.c&&d<=D[0].e.c&&(u.F=zu(D[0]),T=!0)}!T&&e.length>3&&(u.f=e[3])}if(y.s.r>c.r&&(y.s.r=c.r),y.s.c>d&&(y.s.c=d),y.e.r<c.r&&(y.e.r=c.r),y.e.c<d&&(y.e.c=d),o.cellDates&&f&&"n"==u.t&&$o(go[f.numFmtId])){var F=_o(u.v);F&&(u.t="d",u.v=new Date(F.y,F.m-1,F.d,F.H,F.M,F.S,F.u))}O&&("XLDAPR"==O.type&&(u.D=!0),O=void 0),R&&(R=void 0);break;case 1:case 12:if(!o.sheetStubs||_)break;u={t:"z",v:void 0},d=-1==e[0].c?d+1:e[0].c,o.dense?(b[h]||(b[h]=[]),b[h][d]=u):b[Fu(d)+v]=u,y.s.r>c.r&&(y.s.r=c.r),y.s.c>d&&(y.s.c=d),y.e.r<c.r&&(y.e.r=c.r),y.e.c<d&&(y.e.c=d),O&&("XLDAPR"==O.type&&(u.D=!0),O=void 0),R&&(R=void 0);break;case 176:x.push(e);break;case 49:O=((o.xlmeta||{}).Cell||[])[e-1];break;case 494:var j=n["!id"][e.relId];for(j?(e.Target=j.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=j):""==e.relId&&(e.Target="#"+e.loc),h=e.rfx.s.r;h<=e.rfx.e.r;++h)for(d=e.rfx.s.c;d<=e.rfx.e.c;++d)o.dense?(b[h]||(b[h]=[]),b[h][d]||(b[h][d]={t:"z",v:void 0}),b[h][d].l=e):(p=Lu({c:d,r:h}),b[p]||(b[p]={t:"z",v:void 0}),b[p].l=e);break;case 426:if(!o.cellFormula)break;E.push(e),(g=o.dense?b[h][d]:b[Fu(d)+v]).f=Om(e[1],0,{r:c.r,c:d},A,o),g.F=zu(e[0]);break;case 427:if(!o.cellFormula)break;C[Lu(e[0].s)]=e[1],(g=o.dense?b[h][d]:b[Fu(d)+v]).f=Om(e[1],0,{r:c.r,c:d},A,o);break;case 60:if(!o.cellStyles)break;for(;e.e>=e.s;)I[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},P||(P=!0,ap(e.w/256)),sp(I[e.e+1]);break;case 161:b["!autofilter"]={ref:zu(e)};break;case 476:b["!margins"]=e;break;case 147:i.Sheets[r]||(i.Sheets[r]={}),e.name&&(i.Sheets[r].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:_=!0;break;case 36:_=!1;break;case 37:w.push(M),_=!0;break;case 38:w.pop(),_=!1;break;default:if(t.T);else if(!_||o.WTF)throw new Error("Unexpected record 0x"+M.toString(16))}},o),delete o.supbooks,delete o["!row"],!b["!ref"]&&(y.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(b["!ref"]=zu(l||y)),o.sheetRows&&b["!ref"]){var D=Uu(b["!ref"]);o.sheetRows<=+D.e.r&&(D.e.r=o.sheetRows-1,D.e.r>y.e.r&&(D.e.r=y.e.r),D.e.r<D.s.r&&(D.s.r=D.e.r),D.e.c>y.e.c&&(D.e.c=y.e.c),D.e.c<D.s.c&&(D.s.c=D.e.c),b["!fullref"]=b["!ref"],b["!ref"]=zu(D))}return x.length>0&&(b["!merges"]=x),I.length>0&&(b["!cols"]=I),N.length>0&&(b["!rows"]=N),b}(e,n,r,i,a,s,o):hv(e,n,r,i,a,s,o)}function eg(e,t,r,n,i,a,s,o){return".bin"===t.slice(-4)?function(e,t,r,n,i){if(!e)return e;n||(n={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s=[],o=!1;return Eu(e,function(e,n,l){switch(l){case 550:a["!rel"]=e;break;case 651:i.Sheets[r]||(i.Sheets[r]={}),e.name&&(i.Sheets[r].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:s.push(l);break;case 38:s.pop();break;default:if(n.T>0)s.push(l);else if(n.T<0)s.pop();else if(!o||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}},t),n["!id"][a["!rel"]]&&(a["!drawel"]=n["!id"][a["!rel"]]),a}(e,n,r,i,a):function(e,t,r,n,i){if(!e)return e;n||(n={"!id":{}});var a,s={"!type":"chart","!drawel":null,"!rel":""},o=e.match(cv);return o&&dv(o[0],0,i,r),(a=e.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=a[1]),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}(e,0,r,i,a)}function tg(e,t,r,n){return".bin"===t.slice(-4)?function(e,t,r){var n={NumberFmt:[]};for(var i in go)n.NumberFmt[i]=go[i];n.CellXf=[],n.Fonts=[];var a=[],s=!1;return Eu(e,function(e,i,o){switch(o){case 44:n.NumberFmt[e[0]]=e[1],Ko(e[1],e[0]);break;case 43:n.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Qd(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==a[a.length-1]&&n.CellXf.push(e);break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(o),s=!0;break;case 38:a.pop(),s=!1;break;default:if(i.T>0)a.push(o);else if(i.T<0)a.pop();else if(!s||r.WTF&&37!=a[a.length-1])throw new Error("Unexpected record 0x"+o.toString(16))}}),n}(e,r,n):dp(e,r,n)}function rg(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],n=!1;return Eu(e,function(e,i,a){switch(a){case 159:r.Count=e[0],r.Unique=e[1];break;case 19:r.push(e);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(i.T,!n||t.WTF)throw new Error("Unexpected record 0x"+a.toString(16))}}),r}(e,r):function(e,t){var r=[],n="";if(!e)return r;var i=e.match(Rd);if(i){n=i[2].replace(Id,"").split(Nd);for(var a=0;a!=n.length;++a){var s=Od(n[a].trim(),t);null!=s&&(r[r.length]=s)}i=$l(i[1]),r.Count=i.count,r.Unique=i.uniqueCount}return r}(e,r)}function ng(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],n=[],i={},a=!1;return Eu(e,function(e,s,o){switch(o){case 632:n.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=n[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,r.push(i);break;case 3072:case 37:case 38:break;case 35:a=!0;break;case 36:a=!1;break;default:if(s.T);else if(!a||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),r}(e,r):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&r.push(t[1])}});var a=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach(function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var a=$l(i[0]),s={author:a.authorId&&r[a.authorId]||"sheetjsghost",ref:a.ref,guid:a.guid},o=ju(a.ref);if(!(t.sheetRows&&t.sheetRows<=o.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&Od(l[1])||{r:"",t:"",h:""};s.r=c.r,"<t></t>"==c.r&&(c.t=c.h=""),s.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(s.h=c.h),n.push(s)}}}}),n}(e,r)}function ig(e,t,r){return".bin"===t.slice(-4)?function(e){var t=[];return Eu(e,function(e,r,n){if(63===n)t.push(e);else if(!r.T)throw new Error("Unexpected record 0x"+n.toString(16))}),t}(e):function(e){var t=[];if(!e)return t;var r=1;return(e.match(Hl)||[]).forEach(function(e){var n=$l(e);switch(n[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?r=n.i:n.i=r,t.push(n)}}),t}(e)}function ag(e,t,r,n){if(".bin"===r.slice(-4))return function(e,t,r,n){if(!e)return e;var i=n||{},a=!1;Eu(e,function(e,t,r){switch(r){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:a=!0;break;case 36:a=!1;break;default:if(t.T);else if(!a||i.WTF)throw new Error("Unexpected record 0x"+r.toString(16))}},i)}(e,0,0,n)}function sg(e,t,r){return".bin"===t.slice(-4)?function(e,t,r){var n={Types:[],Cell:[],Value:[]},i=r||{},a=[],s=!1,o=2;return Eu(e,function(e,t,r){switch(r){case 335:n.Types.push({name:e.name});break;case 51:e.forEach(function(e){1==o?n.Cell.push({type:n.Types[e[0]-1].name,index:e[1]}):0==o&&n.Value.push({type:n.Types[e[0]-1].name,index:e[1]})});break;case 337:o=e?1:0;break;case 338:o=2;break;case 35:a.push(r),s=!0;break;case 36:a.pop(),s=!1;break;default:if(t.T);else if(!s||i.WTF&&35!=a[a.length-1])throw new Error("Unexpected record 0x"+r.toString(16))}}),n}(e,0,r):function(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var i,a=!1,s=2;return e.replace(Hl,function(e){var t=$l(e);switch(ql(t[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":n.Types.push({name:t.name});break;case"<futureMetadata":for(var o=0;o<n.Types.length;++o)n.Types[o].name==t.name&&(i=n.Types[o]);break;case"<rc":1==s?n.Cell.push({type:n.Types[t.t-1].name,index:+t.v}):0==s&&n.Value.push({type:n.Types[t.t-1].name,index:+t.v});break;case"<cellMetadata":s=1;break;case"</cellMetadata>":case"</valueMetadata>":s=2;break;case"<valueMetadata":s=0;break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<rvb":if(!i)break;i.offsets||(i.offsets=[]),i.offsets.push(+t.i);break;default:if(!a&&r.WTF)throw new Error("unrecognized "+t[0]+" in metadata")}return e}),n}(e,0,r)}function og(e,t,r,n,i){return(".bin"===t.slice(-4)?Pv:yv)(e,r,n,i)}function lg(e,t,r){return(".bin"===t.slice(-4)?Yp:qp)(e,r)}var cg,ug=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,fg=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function hg(e,t){var r=e.split(/\s+/),n=[];if(t||(n[0]=r[0]),1===r.length)return n;var i,a,s,o=e.match(ug);if(o)for(s=0;s!=o.length;++s)-1===(a=(i=o[s].match(fg))[1].indexOf(":"))?n[i[1]]=i[2].slice(1,i[2].length-1):n["xmlns:"===i[1].slice(0,6)?"xmlns"+i[1].slice(6):i[1].slice(a+1)]=i[2].slice(1,i[2].length-1);return n}function dg(e){var t={};if(1===e.split(/\s+/).length)return t;var r,n,i,a=e.match(ug);if(a)for(i=0;i!=a.length;++i)-1===(n=(r=a[i].match(fg))[1].indexOf(":"))?t[r[1]]=r[2].slice(1,r[2].length-1):t["xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(n+1)]=r[2].slice(1,r[2].length-1);return t}function pg(e,t,r,n){var i=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=nc(n);break;case"i2":case"int":i=parseInt(n,10);break;case"r4":case"float":i=parseFloat(n);break;case"date":case"dateTime.tz":i=yl(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Yl(t)]=i}function mg(e,t,r){if("z"!==e.t){if(!r||!1!==r.cellText)try{"e"===e.t?e.w=e.w||Af[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Co(e.v):e.w=Ao(e.v):e.w=(n=t||"General",i=e.v,"General"===(a=cg[n]||Yl(n))?Ao(i):Yo(a,i))}catch(l){if(r.WTF)throw l}var n,i,a;try{var s=cg[t]||t||"General";if(r.cellNF&&(e.z=s),r.cellDates&&"n"==e.t&&$o(s)){var o=_o(e.v);o&&(e.t="d",e.v=new Date(o.y,o.m-1,o.d,o.H,o.M,o.S,o.u))}}catch(l){if(r.WTF)throw l}}}function vg(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=up[n.Pattern]||n.Pattern)}e[t.ID]=t}function gg(e,t,r,n,i,a,s,o,l,c){var u="General",f=n.StyleID,h={};c=c||{};var d=[],p=0;for(void 0===f&&o&&(f=o.StyleID),void 0===f&&s&&(f=s.StyleID);void 0!==a[f]&&(a[f].nf&&(u=a[f].nf),a[f].Interior&&d.push(a[f].Interior),a[f].Parent);)f=a[f].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=nc(e);break;case"String":n.t="s",n.r=rc(Yl(e)),n.v=e.indexOf("<")>-1?Yl(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),n.v=(yl(e)-new Date(Date.UTC(1899,11,30)))/864e5,n.v!=n.v?n.v=Yl(e):n.v<60&&(n.v=n.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===n.v&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=Mf[e],!1!==c.cellText&&(n.w=e);break;default:""==e&&""==t?n.t="z":(n.t="s",n.v=rc(t||e))}if(mg(n,u,c),!1!==c.cellFormula)if(n.Formula){var m=Yl(n.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),n.f=Zp(m,i),delete n.Formula,"RC"==n.ArrayRange?n.F=Zp("RC:RC",i):n.ArrayRange&&(n.F=Zp(n.ArrayRange,i),l.push([Uu(n.F),n.F]))}else for(p=0;p<l.length;++p)i.r>=l[p][0].s.r&&i.r<=l[p][0].e.r&&i.c>=l[p][0].s.c&&i.c<=l[p][0].e.c&&(n.F=l[p][1]);c.cellStyles&&(d.forEach(function(e){!h.patternType&&e.patternType&&(h.patternType=e.patternType)}),n.s=h),void 0!==n.StyleID&&(n.ixfe=n.StyleID)}function bg(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function yg(e,t){var r=t||{};Jo();var n=Vs(_c(e));"binary"!=r.type&&"array"!=r.type&&"base64"!=r.type||(n=lc(n));var i,a=n.slice(0,1024).toLowerCase(),s=!1;if((1023&(a=a.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&a.indexOf(","),1023&a.indexOf(";"))){var o=_l(r);return o.type="string",xd.to_workbook(n,o)}if(-1==a.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach(function(e){a.indexOf("<"+e)>=0&&(s=!0)}),s)return function(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||0==r.length)throw new Error("Invalid HTML: could not find <table>");if(1==r.length)return Vu(Kg(r[0],t),t);var n={SheetNames:[],Sheets:{}};return r.forEach(function(e,r){ty(n,Kg(e,t),"Sheet"+(r+1))}),n}(n,r);cg={"General Number":"General","General Date":go[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":go[15],"Short Date":go[14],"Long Time":go[19],"Medium Time":go[18],"Short Time":go[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:go[2],Standard:go[4],Percent:go[10],Scientific:go[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,c=[];var u,f={},h=[],d=r.dense?[]:{},p="",m={},v={},g=hg('<Data ss:Type="String">'),b=0,y=0,w=0,_={s:{r:2e6,c:2e6},e:{r:0,c:0}},k={},x={},S="",T=0,E=[],C={},A={},M=0,O=[],R=[],I={},N=[],P=!1,D=[],F=[],j={},L=0,B=0,z={Sheets:[],WBProps:{date1904:!1}},U={};kc.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/gm,"");for(var H="";i=kc.exec(n);)switch(i[3]=(H=i[3]).toLowerCase()){case"data":if("data"==H){if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break}if(c[c.length-1][1])break;"/"===i[1]?gg(n.slice(b,i.index),S,g,"comment"==c[c.length-1][0]?I:m,{c:y,r:w},k,N[y],v,D,r):(S="",g=hg(i[0]),b=i.index+i[0].length);break;case"cell":if("/"===i[1])if(R.length>0&&(m.c=R),(!r.sheetRows||r.sheetRows>w)&&void 0!==m.v&&(r.dense?(d[w]||(d[w]=[]),d[w][y]=m):d[Fu(y)+Pu(w)]=m),m.HRef&&(m.l={Target:Yl(m.HRef)},m.HRefScreenTip&&(m.l.Tooltip=m.HRefScreenTip),delete m.HRef,delete m.HRefScreenTip),(m.MergeAcross||m.MergeDown)&&(L=y+(0|parseInt(m.MergeAcross,10)),B=w+(0|parseInt(m.MergeDown,10)),E.push({s:{c:y,r:w},e:{c:L,r:B}})),r.sheetStubs)if(m.MergeAcross||m.MergeDown){for(var W=y;W<=L;++W)for(var V=w;V<=B;++V)(W>y||V>w)&&(r.dense?(d[V]||(d[V]=[]),d[V][W]={t:"z"}):d[Fu(W)+Pu(V)]={t:"z"});y=L+1}else++y;else m.MergeAcross?y=L+1:++y;else(m=dg(i[0])).Index&&(y=+m.Index-1),y<_.s.c&&(_.s.c=y),y>_.e.c&&(_.e.c=y),"/>"===i[0].slice(-2)&&++y,R=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(w<_.s.r&&(_.s.r=w),w>_.e.r&&(_.e.r=w),"/>"===i[0].slice(-2)&&(v=hg(i[0])).Index&&(w=+v.Index-1),y=0,++w):((v=hg(i[0])).Index&&(w=+v.Index-1),j={},("0"==v.AutoFitHeight||v.Height)&&(j.hpx=parseInt(v.Height,10),j.hpt=lp(j.hpx),F[w]=j),"1"==v.Hidden&&(j.hidden=!0,F[w]=j));break;case"worksheet":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));h.push(p),_.s.r<=_.e.r&&_.s.c<=_.e.c&&(d["!ref"]=zu(_),r.sheetRows&&r.sheetRows<=_.e.r&&(d["!fullref"]=d["!ref"],_.e.r=r.sheetRows-1,d["!ref"]=zu(_))),E.length&&(d["!merges"]=E),N.length>0&&(d["!cols"]=N),F.length>0&&(d["!rows"]=F),f[p]=d}else _={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=y=0,c.push([i[3],!1]),l=hg(i[0]),p=Yl(l.Name),d=r.dense?[]:{},E=[],D=[],F=[],U={name:p,Hidden:0},z.Sheets.push(U);break;case"table":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==i[0].slice(-2))break;c.push([i[3],!1]),N=[],P=!1}break;case"style":"/"===i[1]?vg(k,x,r):x=hg(i[0]);break;case"numberformat":x.nf=Yl(hg(i[0]).Format||"General"),cg[x.nf]&&(x.nf=cg[x.nf]);for(var $=0;392!=$&&go[$]!=x.nf;++$);if(392==$)for($=57;392!=$;++$)if(null==go[$]){Ko(x.nf,$);break}break;case"column":if("table"!==c[c.length-1][0])break;if((u=hg(i[0])).Hidden&&(u.hidden=!0,delete u.Hidden),u.Width&&(u.wpx=parseInt(u.Width,10)),!P&&u.wpx>10){P=!0,ep=6;for(var q=0;q<N.length;++q)N[q]&&sp(N[q])}P&&sp(u),N[u.Index-1||N.length]=u;for(var X=0;X<+u.Span;++X)N[N.length]=_l(u);break;case"namedrange":if("/"===i[1])break;z.Names||(z.Names=[]);var G=$l(i[0]),Y={Name:G.Name,Ref:Zp(G.RefersTo.slice(1),{r:0,c:0})};z.Sheets.length>0&&(Y.Sheet=z.Sheets.length-1),z.Names.push(Y);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?S+=n.slice(T,i.index):T=i.index+i[0].length;break;case"interior":if(!r.cellStyles)break;x.Interior=hg(i[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?eh(C,H,n.slice(M,i.index)):M=i.index+i[0].length;break;case"styles":case"workbook":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else c.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));bg(I),R.push(I)}else c.push([i[3],!1]),I={a:(l=hg(i[0])).Author};break;case"autofilter":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var K=hg(i[0]);d["!autofilter"]={ref:Zp(K.Range).replace(/\$/g,"")},c.push([i[3],!0])}break;case"datavalidation":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;default:if(0==c.length&&"document"==i[3])return rb(n,r);if(0==c.length&&"uof"==i[3])return rb(n,r);var Z=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:Z=!1}break;case"componentoptions":switch(i[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:Z=!1}break;case"excelworkbook":switch(i[3]){case"date1904":z.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:Z=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":case"height":case"width":break;default:Z=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(n.slice(M,i.index)){case"SheetHidden":U.Hidden=1;break;case"SheetVeryHidden":U.Hidden=2}else M=i.index+i[0].length;break;case"header":d["!margins"]||Jm(d["!margins"]={},"xlml"),isNaN(+$l(i[0]).Margin)||(d["!margins"].header=+$l(i[0]).Margin);break;case"footer":d["!margins"]||Jm(d["!margins"]={},"xlml"),isNaN(+$l(i[0]).Margin)||(d["!margins"].footer=+$l(i[0]).Margin);break;case"pagemargins":var J=$l(i[0]);d["!margins"]||Jm(d["!margins"]={},"xlml"),isNaN(+J.Top)||(d["!margins"].top=+J.Top),isNaN(+J.Left)||(d["!margins"].left=+J.Left),isNaN(+J.Right)||(d["!margins"].right=+J.Right),isNaN(+J.Bottom)||(d["!margins"].bottom=+J.Bottom);break;case"displayrighttoleft":z.Views||(z.Views=[]),z.Views[0]||(z.Views[0]={}),z.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].left=!0;break;default:Z=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:Z=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:Z=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:Z=!1}break;case"querytable":switch(i[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:Z=!1}break;case"datavalidation":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:Z=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:Z=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:Z=!1}break;case"smarttags":break;default:Z=!1}if(Z)break;if(i[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+c.join("|");if("customdocumentproperties"===c[c.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?pg(A,H,O,n.slice(M,i.index)):(O=i,M=i.index+i[0].length);break}if(r.WTF)throw"Unrecognized tag: "+i[3]+"|"+c.join("|")}var Q={};return r.bookSheets||r.bookProps||(Q.Sheets=f),Q.SheetNames=h,Q.Workbook=z,Q.SSF=_l(go),Q.Props=C,Q.Custprops=A,Q}function wg(e,t){switch(Pb(t=t||{}),t.type||"base64"){case"base64":return yg(Ys(e),t);case"binary":case"buffer":case"file":return yg(e,t);case"array":return yg(ro(e),t)}}function _g(e,t){var r=[];return e.Props&&r.push(function(e,t){var r=[];return al(Qf).map(function(e){for(var t=0;t<Uf.length;++t)if(Uf[t][1]==e)return Uf[t];for(t=0;t<qf.length;++t)if(qf[t][1]==e)return qf[t];throw e}).forEach(function(n){if(null!=e[n[1]]){var i=t&&t.Props&&null!=t.Props[n[1]]?t.Props[n[1]]:e[n[1]];"date"===n[2]&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof i?i=String(i):!0===i||!1===i?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(gc(Qf[n[1]]||n[1],i))}}),yc("DocumentProperties",r.join(""),{xmlns:jc})}(e.Props,t)),e.Custprops&&r.push(function(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&al(e).forEach(function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var n=0;n<Uf.length;++n)if(t==Uf[n][1])return;for(n=0;n<qf.length;++n)if(t==qf[n][1])return;for(n=0;n<r.length;++n)if(t==r[n])return;var a=e[t],s="string";"number"==typeof a?(s="float",a=String(a)):!0===a||!1===a?(s="boolean",a=a?"1":"0"):a=String(a),i.push(yc(Ql(t),a,{"dt:dt":s}))}}),t&&al(t).forEach(function(r){if(Object.prototype.hasOwnProperty.call(t,r)&&(!e||!Object.prototype.hasOwnProperty.call(e,r))){var n=t[r],a="string";"number"==typeof n?(a="float",n=String(n)):!0===n||!1===n?(a="boolean",n=n?"1":"0"):n instanceof Date?(a="dateTime.tz",n=n.toISOString()):n=String(n),i.push(yc(Ql(r),n,{"dt:dt":a}))}}),"<"+n+' xmlns="'+jc+'">'+i.join("")+"</"+n+">"}(e.Props,e.Custprops)),r.join("")}function kg(e){return yc("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Qp(e.Ref,{r:0,c:0})})}function xg(e,t,r,n,i,a,s){if(!e||null==e.v&&null==e.f)return"";var o={};if(e.f&&(o["ss:Formula"]="="+Jl(Qp(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var l=ju(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=Jl(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=Jl(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],u=0;u!=c.length;++u)c[u].s.c==s.c&&c[u].s.r==s.r&&(c[u].e.c>c[u].s.c&&(o["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(o["ss:MergeDown"]=c[u].e.r-c[u].s.r));var f="",h="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",h=String(e.v);break;case"b":f="Boolean",h=e.v?"1":"0";break;case"e":f="Error",h=Af[e.v];break;case"d":f="DateTime",h=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||go[14]);break;case"s":f="String",h=((e.v||"")+"").replace(Kl,function(e){return Gl[e]}).replace(ec,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}o["ss:StyleID"]="s"+(21+Qm(n.cellXfs,e,n)),o["ss:Index"]=s.c+1;var d=null!=e.v?h:"",p="z"==e.t?"":'<Data ss:Type="'+f+'">'+d+"</Data>";return(e.c||[]).length>0&&(p+=e.c.map(function(e){return yc("Comment",yc("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"}),{"ss:Author":e.a})}).join("")),yc("Cell",p,o)}function Sg(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=cp(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function Tg(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],s=a?function(e,t,r,n){if(!e)return"";if(!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var o=i[s];o.Sheet==r&&(o.Name.match(/^_xlfn\./)||a.push(kg(o)))}return a.join("")}(a,0,e,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?function(e,t){if(!e["!ref"])return"";var r=Uu(e["!ref"]),n=e["!merges"]||[],i=0,a=[];e["!cols"]&&e["!cols"].forEach(function(e,t){sp(e);var r=!!e.width,n=Zm(t,e),i={"ss:Index":t+1};r&&(i["ss:Width"]=tp(n.width)),e.hidden&&(i["ss:Hidden"]="1"),a.push(yc("Column",null,i))});for(var s=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){for(var l=[Sg(o,(e["!rows"]||[])[o])],c=r.s.c;c<=r.e.c;++c){var u=!1;for(i=0;i!=n.length;++i)if(!(n[i].s.c>c||n[i].s.r>o||n[i].e.c<c||n[i].e.r<o)){n[i].s.c==c&&n[i].s.r==o||(u=!0);break}if(!u){var f={r:o,c:c},h=Lu(f),d=s?(e[o]||[])[c]:e[h];l.push(xg(d,h,e,t,0,0,f))}}l.push("</Row>"),l.length>2&&a.push(l.join(""))}return a.join("")}(a,t):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(function(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(yc("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(yc("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(yc("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(yc("Visible",1==n.Workbook.Sheets[r].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<r&&(!n.Workbook.Sheets[a]||n.Workbook.Sheets[a].Hidden);++a);a==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(gc("ProtectContents","True")),e["!protect"].objects&&i.push(gc("ProtectObjects","True")),e["!protect"].scenarios&&i.push(gc("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||i.push(gc("EnableSelection","UnlockedCells")):i.push(gc("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(t){e["!protect"][t[0]]&&i.push("<"+t[1]+"/>")})),0==i.length?"":yc("WorksheetOptions",i.join(""),{xmlns:Lc})}(a,0,e,r)),n.join("")}function Eg(e,t){t||(t={}),e.SSF||(e.SSF=_l(go)),e.SSF&&(Jo(),Zo(e.SSF),t.revssf=ll(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Qm(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(_g(e,t)),r.push(""),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(yc("Worksheet",Tg(n,t,e),{"ss:Name":Jl(e.SheetNames[n])}));return r[2]=function(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(e,t){var n=[];n.push(yc("NumberFormat",null,{"ss:Format":Jl(go[e.numFmtId])}));var i={"ss:ID":"s"+(21+t)};r.push(yc("Style",n.join(""),i))}),yc("Styles",r.join(""))}(0,t),r[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];null==i.Sheet&&(i.Name.match(/^_xlfn\./)||r.push(kg(i)))}return yc("Names",r.join(""))}(e),Bl+yc("Workbook",r.join(""),{xmlns:Bc,"xmlns:o":jc,"xmlns:x":Lc,"xmlns:ss":Bc,"xmlns:dt":zc,"xmlns:html":Wc})}function Cg(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return yf(e,1)}(r),r.length-r.l<=4)return t;var n=r.read_shift(4);return 0==n||n>40?t:(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4||1907505652!==(n=r.read_shift(4))?t:(t.UnicodeClipboardFormat=function(e){return yf(e,2)}(r),0==(n=r.read_shift(4))||n>40?t:(r.l-=4,void(t.Reserved2=r.read_shift(0,"lpwstr")))))}var Ag=[60,1084,2066,2165,2175];function Mg(e,t,r,n,i){var a=n,s=[],o=r.slice(r.l,r.l+a);if(i&&i.enc&&i.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:i.enc.insitu(o)}s.push(o),r.l+=a;for(var l=hu(r,r.l),c=Bg[l],u=0;null!=c&&Ag.indexOf(l)>-1;)a=hu(r,r.l+2),u=r.l+4,2066==l?u+=4:2165!=l&&2175!=l||(u+=12),o=r.slice(u,r.l+4+a),s.push(o),r.l+=4+a,c=Bg[l=hu(r,r.l)];var f=io(s);xu(f,0);var h=0;f.lens=[];for(var d=0;d<s.length;++d)f.lens.push(h),h+=s[d].length;if(f.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+f.length+" < "+n;return t.f(f,f.length,i)}function Og(e,t,r){if("z"!==e.t&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=go[n])}catch(a){if(t.WTF)throw a}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Af[e.v]:0===n||"General"==n?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Co(e.v):e.w=Ao(e.v):e.w=Yo(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(a){if(t.WTF)throw a}if(t.cellDates&&n&&"n"==e.t&&$o(go[n]||String(n))){var i=_o(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function Rg(e,t,r){return{v:e,ixfe:t,t:r}}function Ig(e,t){var r={opts:{}},n={};var i,a,s,o,l,c,u,f,h=t.dense?[]:{},d={},p={},m=null,v=[],g="",b={},y="",w={},_=[],k=[],x=[],S={Sheets:[],WBProps:{date1904:!1},Views:[{}]},T={},E=function(e){return e<8?Cf[e]:e<64&&x[e-8]||Cf[e]},C=function(e,t,r){if(!(j>1||r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&function(e,t,r){var n,i=t.XF.data;i&&i.patternType&&r&&r.cellStyles&&(t.s={},t.s.patternType=i.patternType,(n=Jd(E(i.icvFore)))&&(t.s.fgColor={rgb:n}),(n=Jd(E(i.icvBack)))&&(t.s.bgColor={rgb:n}))}(0,t,r),delete t.ixfe,delete t.XF,i=e,y=Lu(e),p&&p.s&&p.e||(p={s:{r:0,c:0},e:{r:0,c:0}}),e.r<p.s.r&&(p.s.r=e.r),e.c<p.s.c&&(p.s.c=e.c),e.r+1>p.e.r&&(p.e.r=e.r+1),e.c+1>p.e.c&&(p.e.c=e.c+1),r.cellFormula&&t.f)for(var n=0;n<_.length;++n)if(!(_[n][0].s.c>e.c||_[n][0].s.r>e.r||_[n][0].e.c<e.c||_[n][0].e.r<e.r)){t.F=zu(_[n][0]),_[n][0].s.c==e.c&&_[n][0].s.r==e.r||delete t.f,t.f&&(t.f=""+Om(_[n][1],0,e,P,A));break}r.dense?(h[e.r]||(h[e.r]=[]),h[e.r][e.c]=t):h[y]=t}},A={enc:!1,sbcch:0,snames:[],sharedf:w,arrayf:_,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(A.password=t.password);var M=[],O=[],R=[],I=[],N=!1,P=[];P.SheetNames=A.snames,P.sharedf=A.sharedf,P.arrayf=A.arrayf,P.names=[],P.XTI=[];var D,F=0,j=0,L=0,B=[],z=[];A.codepage=1200,Bs(1200);for(var U=!1;e.l<e.length-1;){var H=e.l,W=e.read_shift(2);if(0===W&&10===F)break;var V=e.l===e.length?0:e.read_shift(2),$=Bg[W];if($&&$.f){if(t.bookSheets&&133===F&&133!==W)break;if(F=W,2===$.r||12==$.r){var q=e.read_shift(2);if(V-=2,!A.enc&&q!==W&&((255&q)<<8|q>>8)!==W)throw new Error("rt mismatch: "+q+"!="+W);12==$.r&&(e.l+=10,V-=10)}var X={};if(X=10===W?$.f(e,V,A):Mg(W,$,e,V,A),0==j&&-1===[9,521,1033,2057].indexOf(F))continue;switch(W){case 34:r.opts.Date1904=S.WBProps.date1904=X;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(A.enc||(e.l=0),A.enc=X,!t.password)throw new Error("File is password-protected");if(null==X.valid)throw new Error("Encryption scheme unsupported");if(!X.valid)throw new Error("Password is incorrect");break;case 92:A.lastuser=X;break;case 66:var G=Number(X);switch(G){case 21010:G=1200;break;case 32768:G=1e4;break;case 32769:G=1252}Bs(A.codepage=G),U=!0;break;case 317:A.rrtabid=X;break;case 25:A.winlocked=X;break;case 439:r.opts.RefreshAll=X;break;case 12:r.opts.CalcCount=X;break;case 16:r.opts.CalcDelta=X;break;case 17:r.opts.CalcIter=X;break;case 13:r.opts.CalcMode=X;break;case 14:r.opts.CalcPrecision=X;break;case 95:r.opts.CalcSaveRecalc=X;break;case 15:A.CalcRefMode=X;break;case 2211:r.opts.FullCalc=X;break;case 129:X.fDialog&&(h["!type"]="dialog"),X.fBelow||((h["!outline"]||(h["!outline"]={})).above=!0),X.fRight||((h["!outline"]||(h["!outline"]={})).left=!0);break;case 224:k.push(X);break;case 430:P.push([X]),P[P.length-1].XTI=[];break;case 35:case 547:P[P.length-1].push(X);break;case 24:case 536:D={Name:X.Name,Ref:Om(X.rgce,0,null,P,A)},X.itab>0&&(D.Sheet=X.itab-1),P.names.push(D),P[0]||(P[0]=[],P[0].XTI=[]),P[P.length-1].push(X),"_xlnm._FilterDatabase"==X.Name&&X.itab>0&&X.rgce&&X.rgce[0]&&X.rgce[0][0]&&"PtgArea3d"==X.rgce[0][0][0]&&(z[X.itab-1]={ref:zu(X.rgce[0][0][1][2])});break;case 22:A.ExternCount=X;break;case 23:0==P.length&&(P[0]=[],P[0].XTI=[]),P[P.length-1].XTI=P[P.length-1].XTI.concat(X),P.XTI=P.XTI.concat(X);break;case 2196:if(A.biff<8)break;null!=D&&(D.Comment=X[1]);break;case 18:h["!protect"]=X;break;case 19:0!==X&&A.WTF&&console.error("Password verifier: "+X);break;case 133:d[X.pos]=X,A.snames.push(X.name);break;case 10:if(--j)break;if(p.e){if(p.e.r>0&&p.e.c>0){if(p.e.r--,p.e.c--,h["!ref"]=zu(p),t.sheetRows&&t.sheetRows<=p.e.r){var Y=p.e.r;p.e.r=t.sheetRows-1,h["!fullref"]=h["!ref"],h["!ref"]=zu(p),p.e.r=Y}p.e.r++,p.e.c++}M.length>0&&(h["!merges"]=M),O.length>0&&(h["!objects"]=O),R.length>0&&(h["!cols"]=R),I.length>0&&(h["!rows"]=I),S.Sheets.push(T)}""===g?b=h:n[g]=h,h=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===A.biff&&(A.biff={9:2,521:3,1033:4}[W]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[X.BIFFVer]||8),A.biffguess=0==X.BIFFVer,0==X.BIFFVer&&4096==X.dt&&(A.biff=5,U=!0,Bs(A.codepage=28591)),8==A.biff&&0==X.BIFFVer&&16==X.dt&&(A.biff=2),j++)break;if(h=t.dense?[]:{},A.biff<8&&!U&&(U=!0,Bs(A.codepage=t.codepage||1252)),A.biff<5||0==X.BIFFVer&&4096==X.dt){""===g&&(g="Sheet1"),p={s:{r:0,c:0},e:{r:0,c:0}};var K={pos:e.l-V,name:g};d[K.pos]=K,A.snames.push(g)}else g=(d[H]||{name:""}).name;32==X.dt&&(h["!type"]="chart"),64==X.dt&&(h["!type"]="macro"),M=[],O=[],A.arrayf=_=[],R=[],I=[],N=!1,T={Hidden:(d[H]||{hs:0}).hs,name:g};break;case 515:case 3:case 2:"chart"==h["!type"]&&(t.dense?(h[X.r]||[])[X.c]:h[Lu({c:X.c,r:X.r})])&&++X.c,c={ixfe:X.ixfe,XF:k[X.ixfe]||{},v:X.val,t:"n"},L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C({c:X.c,r:X.r},c,t);break;case 5:case 517:c={ixfe:X.ixfe,XF:k[X.ixfe],v:X.val,t:X.t},L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C({c:X.c,r:X.r},c,t);break;case 638:c={ixfe:X.ixfe,XF:k[X.ixfe],v:X.rknum,t:"n"},L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C({c:X.c,r:X.r},c,t);break;case 189:for(var Z=X.c;Z<=X.C;++Z){var J=X.rkrec[Z-X.c][0];c={ixfe:J,XF:k[J],v:X.rkrec[Z-X.c][1],t:"n"},L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C({c:Z,r:X.r},c,t)}break;case 6:case 518:case 1030:if("String"==X.val){m=X;break}if((c=Rg(X.val,X.cell.ixfe,X.tt)).XF=k[c.ixfe],t.cellFormula){var Q=X.formula;if(Q&&Q[0]&&Q[0][0]&&"PtgExp"==Q[0][0][0]){var ee=Q[0][0][1][0],te=Q[0][0][1][1],re=Lu({r:ee,c:te});w[re]?c.f=""+Om(X.formula,0,X.cell,P,A):c.F=((t.dense?(h[ee]||[])[te]:h[re])||{}).F}else c.f=""+Om(X.formula,0,X.cell,P,A)}L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C(X.cell,c,t),m=X;break;case 7:case 519:if(!m)throw new Error("String record expects Formula");m.val=X,(c=Rg(X,m.cell.ixfe,"s")).XF=k[c.ixfe],t.cellFormula&&(c.f=""+Om(m.formula,0,m.cell,P,A)),L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C(m.cell,c,t),m=null;break;case 33:case 545:_.push(X);var ne=Lu(X[0].s);if(a=t.dense?(h[X[0].s.r]||[])[X[0].s.c]:h[ne],t.cellFormula&&a){if(!m)break;if(!ne||!a)break;a.f=""+Om(X[1],0,X[0],P,A),a.F=zu(X[0])}break;case 1212:if(!t.cellFormula)break;if(y){if(!m)break;w[Lu(m.cell)]=X[0],((a=t.dense?(h[m.cell.r]||[])[m.cell.c]:h[Lu(m.cell)])||{}).f=""+Om(X[0],0,i,P,A)}break;case 253:c=Rg(v[X.isst].t,X.ixfe,"s"),v[X.isst].h&&(c.h=v[X.isst].h),c.XF=k[c.ixfe],L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C({c:X.c,r:X.r},c,t);break;case 513:t.sheetStubs&&(c={ixfe:X.ixfe,XF:k[X.ixfe],t:"z"},L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C({c:X.c,r:X.r},c,t));break;case 190:if(t.sheetStubs)for(var ie=X.c;ie<=X.C;++ie){var ae=X.ixfe[ie-X.c];c={ixfe:ae,XF:k[ae],t:"z"},L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C({c:ie,r:X.r},c,t)}break;case 214:case 516:case 4:(c=Rg(X.val,X.ixfe,"s")).XF=k[c.ixfe],L>0&&(c.z=B[c.ixfe>>8&63]),Og(c,t,r.opts.Date1904),C({c:X.c,r:X.r},c,t);break;case 0:case 512:1===j&&(p=X);break;case 252:v=X;break;case 1054:if(4==A.biff){B[L++]=X[1];for(var se=0;se<L+163&&go[se]!=X[1];++se);se>=163&&Ko(X[1],L+163)}else Ko(X[1],X[0]);break;case 30:B[L++]=X;for(var oe=0;oe<L+163&&go[oe]!=X;++oe);oe>=163&&Ko(X,L+163);break;case 229:M=M.concat(X);break;case 93:O[X.cmo[0]]=A.lastobj=X;break;case 438:A.lastobj.TxO=X;break;case 127:A.lastobj.ImData=X;break;case 440:for(l=X[0].s.r;l<=X[0].e.r;++l)for(o=X[0].s.c;o<=X[0].e.c;++o)(a=t.dense?(h[l]||[])[o]:h[Lu({c:o,r:l})])&&(a.l=X[1]);break;case 2048:for(l=X[0].s.r;l<=X[0].e.r;++l)for(o=X[0].s.c;o<=X[0].e.c;++o)(a=t.dense?(h[l]||[])[o]:h[Lu({c:o,r:l})])&&a.l&&(a.l.Tooltip=X[1]);break;case 28:if(A.biff<=5&&A.biff>=2)break;a=t.dense?(h[X[0].r]||[])[X[0].c]:h[Lu(X[0])];var le=O[X[2]];a||(t.dense?(h[X[0].r]||(h[X[0].r]=[]),a=h[X[0].r][X[0].c]={t:"z"}):a=h[Lu(X[0])]={t:"z"},p.e.r=Math.max(p.e.r,X[0].r),p.s.r=Math.min(p.s.r,X[0].r),p.e.c=Math.max(p.e.c,X[0].c),p.s.c=Math.min(p.s.c,X[0].c)),a.c||(a.c=[]),s={a:X[1],t:le.TxO.t},a.c.push(s);break;case 2173:zp(k[X.ixfe],X.ext);break;case 125:if(!A.cellStyles)break;for(;X.e>=X.s;)R[X.e--]={width:X.w/256,level:X.level||0,hidden:!!(1&X.flags)},N||(N=!0,ap(X.w/256)),sp(R[X.e+1]);break;case 520:var ce={};null!=X.level&&(I[X.r]=ce,ce.level=X.level),X.hidden&&(I[X.r]=ce,ce.hidden=!0),X.hpt&&(I[X.r]=ce,ce.hpt=X.hpt,ce.hpx=cp(X.hpt));break;case 38:case 39:case 40:case 41:h["!margins"]||Jm(h["!margins"]={}),h["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[W]]=X;break;case 161:h["!margins"]||Jm(h["!margins"]={}),h["!margins"].header=X.header,h["!margins"].footer=X.footer;break;case 574:X.RTL&&(S.Views[0].RTL=!0);break;case 146:x=X;break;case 2198:f=X;break;case 140:u=X;break;case 442:g?T.CodeName=X||T.name:S.WBProps.CodeName=X||"ThisWorkbook"}}else $||console.error("Missing Info for XLS Record 0x"+W.toString(16)),e.l+=V}return r.SheetNames=al(d).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return d[e].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&b["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=b)):r.Preamble=b,r.Sheets&&z.forEach(function(e,t){r.Sheets[r.SheetNames[t]]["!autofilter"]=e}),r.Strings=v,r.SSF=_l(go),A.enc&&(r.Encryption=A.enc),f&&(r.Themes=f),r.Metadata={},void 0!==u&&(r.Metadata.Country=u),P.names.length>0&&(S.Names=P.names),r.Workbook=S,r}var Ng="e0859ff2f94f6810ab9108002b27b3d9",Pg="02d5cdd59c2e1b10939708002b2cf9ae",Dg="05d5cdd59c2e1b10939708002b2cf9ae";function Fg(e,t){var r,n,i,a;if(t||(t={}),Pb(t),zs(),t.codepage&&Ls(t.codepage),e.FullPaths){if(rl.find(e,"/encryption"))throw new Error("File is password-protected");r=rl.find(e,"!CompObj"),n=rl.find(e,"/Workbook")||rl.find(e,"/Book")}else{switch(t.type){case"base64":e=eo(Ys(e));break;case"binary":e=eo(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}xu(e,0),n={content:e}}if(r&&Cg(r),t.bookProps&&!t.bookSheets)i={};else{var s=Ks?"buffer":"array";if(n&&n.content)i=Ig(n.content,t);else if((a=rl.find(e,"PerfectOffice_MAIN"))&&a.content)i=Sd.to_workbook(a.content,(t.type=s,t));else{if(!(a=rl.find(e,"NativeContent_MAIN"))||!a.content)throw(a=rl.find(e,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=Sd.to_workbook(a.content,(t.type=s,t))}t.bookVBA&&e.FullPaths&&rl.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=function(e){var t=rl.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if("/"!==r.slice(-1)&&r.match(/_VBA_PROJECT_CUR/)){var i=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");rl.utils.cfb_add(t,i,e.FileIndex[n].content)}}),rl.write(t)}(e))}var o={};return e.FullPaths&&function(e,t,r){var n=rl.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var i=mh(n,kf,Pg);for(var a in i)t[a]=i[a]}catch(c){if(r.WTF)throw c}var s=rl.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var o=mh(s,xf,Ng);for(var l in o)null==t[l]&&(t[l]=o[l])}catch(c){if(r.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(Gf(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,o,t),i.Props=i.Custprops=o,t.bookFiles&&(i.cfb=e),i}function jg(e,t){var r=t||{},n=rl.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return rl.utils.cfb_add(n,i,Yg(e,r)),8==r.biff&&(e.Props||e.Custprops)&&function(e,t){var r,n=[],i=[],a=[],s=0,o=sl(kf,"n"),l=sl(xf,"n");if(e.Props)for(r=al(e.Props),s=0;s<r.length;++s)(Object.prototype.hasOwnProperty.call(o,r[s])?n:Object.prototype.hasOwnProperty.call(l,r[s])?i:a).push([r[s],e.Props[r[s]]]);if(e.Custprops)for(r=al(e.Custprops),s=0;s<r.length;++s)Object.prototype.hasOwnProperty.call(e.Props||{},r[s])||(Object.prototype.hasOwnProperty.call(o,r[s])?n:Object.prototype.hasOwnProperty.call(l,r[s])?i:a).push([r[s],e.Custprops[r[s]]]);var c=[];for(s=0;s<a.length;++s)hh.indexOf(a[s][0])>-1||Xf.indexOf(a[s][0])>-1||null!=a[s][1]&&c.push(a[s]);i.length&&rl.utils.cfb_add(t,"/SummaryInformation",vh(i,Ng,l,xf)),(n.length||c.length)&&rl.utils.cfb_add(t,"/DocumentSummaryInformation",vh(n,Pg,o,kf,c.length?c:null,Dg))}(e,n),8==r.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach(function(r,n){if(0!=n){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==i.slice(-1)&&rl.utils.cfb_add(e,i,t.FileIndex[n].content)}})}(n,rl.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),n}var Lg={0:{f:function(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,7&a&&(r.level=7&a),16&a&&(r.hidden=!0),32&a&&(r.hpt=i/20),r}},1:{f:function(e){return[Qu(e)]}},2:{f:function(e){return[Qu(e),ff(e),"n"]}},3:{f:function(e){return[Qu(e),e.read_shift(1),"e"]}},4:{f:function(e){return[Qu(e),e.read_shift(1),"b"]}},5:{f:function(e){return[Qu(e),vf(e),"n"]}},6:{f:function(e){return[Qu(e),Xu(e),"str"]}},7:{f:function(e){return[Qu(e),e.read_shift(4),"s"]}},8:{f:function(e,t,r){var n=e.l+t,i=Qu(e);i.r=r["!row"];var a=[i,Xu(e),"str"];return r.cellFormula?(e.l+=2,a[3]=Om(jm(e,n-e.l,r),0,i,r.supbooks,r)):e.l=n,a}},9:{f:function(e,t,r){var n=e.l+t,i=Qu(e);i.r=r["!row"];var a=[i,vf(e),"n"];return r.cellFormula?(e.l+=2,a[3]=Om(jm(e,n-e.l,r),0,i,r.supbooks,r)):e.l=n,a}},10:{f:function(e,t,r){var n=e.l+t,i=Qu(e);i.r=r["!row"];var a=[i,e.read_shift(1),"b"];return r.cellFormula?(e.l+=2,a[3]=Om(jm(e,n-e.l,r),0,i,r.supbooks,r)):e.l=n,a}},11:{f:function(e,t,r){var n=e.l+t,i=Qu(e);i.r=r["!row"];var a=[i,e.read_shift(1),"e"];return r.cellFormula?(e.l+=2,a[3]=Om(jm(e,n-e.l,r),0,i,r.supbooks,r)):e.l=n,a}},12:{f:function(e){return[tf(e)]}},13:{f:function(e){return[tf(e),ff(e),"n"]}},14:{f:function(e){return[tf(e),e.read_shift(1),"e"]}},15:{f:function(e){return[tf(e),e.read_shift(1),"b"]}},16:{f:xv},17:{f:function(e){return[tf(e),Xu(e),"str"]}},18:{f:function(e){return[tf(e),e.read_shift(4),"s"]}},19:{f:Ku},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=lf(e),s=Lm(e,0,r),o=sf(e);e.l=n;var l={Name:a,Ptg:s};return i<268435455&&(l.Sheet=i),o&&(l.Comment=o),l}},40:{},42:{},43:{f:function(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1),700===e.read_shift(2)&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript"}var a=e.read_shift(1);0!=a&&(n.underline=a);var s=e.read_shift(1);s>0&&(n.family=s);var o=e.read_shift(1);switch(o>0&&(n.charset=o),e.l++,n.color=function(e){var t={},r=e.read_shift(1)>>>1,n=e.read_shift(1),i=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=n;var l=Cf[n];l&&(t.rgb=Jd(l));break;case 2:t.rgb=Jd([a,s,o]);break;case 3:t.theme=n}return 0!=i&&(t.tint=i>0?i/32767:i/32768),t}(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=Xu(e),n}},44:{f:function(e,t){return[e.read_shift(2),Xu(e)]}},45:{f:yp},46:{f:xp},47:{f:function(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:pd},62:{f:function(e){return[Qu(e),Ku(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=Lu(r);var n=e.read_shift(1);return 2&n&&(t.l="1"),8&n&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Su,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var r={},n=e[e.l];return++e.l,r.above=!(64&n),r.left=!(128&n),e.l+=18,r.name=nf(e,t-19),r}},148:{f:_v,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Xu(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(65536&n),r.backupFile=!!(64&n),r.checkCompatibility=!!(4096&n),r.date1904=!!(1&n),r.filterPrivacy=!!(8&n),r.hidePivotFieldList=!!(1024&n),r.promptedSolutions=!!(16&n),r.publishItems=!!(2048&n),r.refreshAllConnections=!!(262144&n),r.saveExternalLinkValues=!!(128&n),r.showBorderUnselectedTables=!!(4&n),r.showInkAnnotation=!!(32&n),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(32768&n),r.updateLinks=["userSet","never","always"][n>>8&3],r}},154:{},155:{},156:{f:function(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=cf(e,t-8),r.name=Xu(e),r}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:pf},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Sv},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Xu(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:cf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:cd},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,r){var n=e.l+t,i=df(e),a=e.read_shift(1),s=[i];return s[2]=a,r.cellFormula?s[1]=Fm(e,n-e.l,r):e.l=n,s}},427:{f:function(e,t,r){var n=e.l+t,i=[pf(e,16)];return r.cellFormula?(i[1]=Bm(e,n-e.l,r),e.l=n):e.l=n,i}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return Ev.forEach(function(r){t[r]=vf(e)}),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var r=e.l+t,n=pf(e,16),i=sf(e),a=Xu(e),s=Xu(e),o=Xu(e);e.l=r;var l={rfx:n,relId:i,loc:a,display:o};return s&&(l.Tooltip=s),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:cf},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Gp},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var r=pf(e,16);return t.rfx=r.s,t.ref=Lu(r.s),e.l+=16,t}},636:{T:-1},637:{f:Zu},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:Xu(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Bg={6:{f:Nm},10:{f:gh},12:{f:wh},13:{f:wh},14:{f:bh},15:{f:bh},16:{f:vf},17:{f:bh},18:{f:bh},19:{f:wh},20:{f:ad},21:{f:ad},23:{f:cd},24:{f:ld},25:{f:bh},26:{},27:{},28:{f:function(e,t,r){return function(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),o=Mh(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:i},o,s,a]}}(e,0,r)}},29:{},34:{f:bh},35:{f:sd},38:{f:vf},39:{f:vf},40:{f:vf},41:{f:vf},42:{f:bh},43:{f:bh},47:{f:function(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?Kd(e,t-2,n):function(e,t,r,n){var i={key:wh(e),verificationBytes:wh(e)};r.password&&(i.verifier=Xd(r.password)),n.valid=i.verificationBytes===i.verifier,n.valid&&(n.insitu=Yd(r.password))}(e,r.biff,r,n),n}},49:{f:function(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return n.name=Sh(e,0,r),n}},51:{f:wh},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:bh},65:{f:function(){}},66:{f:wh},77:{},80:{},81:{},82:{},85:{f:wh},89:{},90:{},91:{},92:{f:function(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,i=Mh(e,0,r);return e.read_shift(t+n-e.l),i}},93:{f:function(e,t,r){if(r&&r.biff<8)return function(e,t,r){e.l+=4;var n=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var s=[];return s.push((fd[n]||Su)(e,t,r)),{cmo:[i,n,a],ft:s}}(e,t,r);var n=qh(e);return{cmo:n,ft:Yh(e,t-22,n[1])}}},94:{},95:{f:bh},96:{},97:{},99:{f:bh},125:{f:pd},128:{f:function(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,r){var n=r&&8==r.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&n,fBelow:64&n,fRight:128&n}}},130:{f:wh},131:{f:bh},132:{f:bh},133:{f:function(e,t,r){var n=e.read_shift(4),i=3&e.read_shift(1),a=e.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule"}var s=Sh(e,0,r);return 0===s.length&&(s="Sheet1"),{pos:n,hs:i,dt:a,name:s}}},134:{},140:{f:function(e){var t=[0,0],r=e.read_shift(2);return t[0]=Sf[r]||r,r=e.read_shift(2),t[1]=Sf[r]||r,t}},141:{f:wh},144:{},146:{f:function(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(jh(e));return r}},151:{},152:{},153:{},154:{},155:{},156:{f:wh},157:{},158:{},160:{f:vd},161:{f:function(e,t){var r={};return t<32||(e.l+=16,r.header=vf(e),r.footer=vf(e),e.l+=2),r}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var r=e.l+t-2,n=e.read_shift(2),i=e.read_shift(2),a=[];e.l<r;)a.push(Uh(e));if(e.l!==r)throw new Error("MulRK read error");var s=e.read_shift(2);if(a.length!=s-i+1)throw new Error("MulRK length mismatch");return{r:n,c:i,C:s,rkrec:a}}},190:{f:function(e,t){for(var r=e.l+t-2,n=e.read_shift(2),i=e.read_shift(2),a=[];e.l<r;)a.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var s=e.read_shift(2);if(a.length!=s-i+1)throw new Error("MulBlank length mismatch");return{r:n,c:i,C:s,ixfe:a}}},193:{f:gh},197:{},198:{},199:{},200:{},201:{},202:{f:bh},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:wh},220:{},221:{f:bh},222:{},224:{f:function(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,n.data=function(e,t,r,n){var i={},a=e.read_shift(4),s=e.read_shift(4),o=e.read_shift(4),l=e.read_shift(2);return i.patternType=Tf[o>>26],n.cellStyles?(i.alc=7&a,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=15&s,i.dgRight=s>>4&15,i.dgTop=s>>8&15,i.dgBottom=s>>12&15,i.icvLeft=s>>16&127,i.icvRight=s>>23&127,i.grbitDiag=s>>30&3,i.icvTop=127&o,i.icvBottom=o>>7&127,i.icvDiag=o>>14&127,i.dgDiag=o>>21&15,i.icvFore=127&l,i.icvBack=l>>7&127,i.fsxButton=l>>14&1,i):i}(e,0,n.fStyle,r),n}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:gh},227:{},229:{f:function(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(Hh(e));return r}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var r=e.l+t,n=e.read_shift(4),i=e.read_shift(4),a=[],s=0;s!=i&&e.l<r;++s)a.push(Th(e));return a.Count=n,a.Unique=i,a}},253:{f:function(e){var t=Lh(e);return t.isst=e.read_shift(4),t}},255:{f:function(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:kh},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:bh},353:{f:gh},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,r){var n=e.l+t,i=e.read_shift(2),a=e.read_shift(2);if(r.sbcch=a,1025==a||14849==a)return[a,i];if(a<1||a>255)throw new Error("Unexpected SupBook type: "+a);for(var s=Ch(e,a),o=[];n>e.l;)o.push(Ah(e));return[a,i,s,o]}},431:{f:bh},432:{},433:{},434:{},437:{},438:{f:function(e,t,r){var n=e.l,i="";try{e.l+=4;var a=(r.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(a)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);e.l+=2}(e);var s=e.read_shift(2);e.read_shift(2),wh(e);var o=e.read_shift(2);e.l+=o;for(var l=1;l<e.lens.length-1;++l){if(e.l-n!=e.lens[l])throw new Error("TxO: bad continue record");var c=e[e.l];if((i+=Ch(e,e.lens[l+1]-e.lens[l]-1)).length>=(c?s:2*s))break}if(i.length!==s&&i.length!==2*s)throw new Error("cchText: "+s+" != "+i.length);return e.l=n+t,{t:i}}catch(u){return e.l=n+t,{t:i}}}},439:{f:bh},440:{f:function(e,t){var r=Hh(e);return e.l+=16,[r,Ph(e,t-24)]}},441:{},442:{f:Ah},443:{},444:{f:wh},445:{},446:{},448:{f:gh},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:gh},512:{f:rd},513:{f:md},515:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var n=Lh(e);return n.val=vf(e),n}},516:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5),e.l;var n=Lh(e);return 2==r.biff&&e.l++,n.val=Ah(e,e.l,r),n}},517:{f:id},519:{f:gd},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var n=e.read_shift(1);return e.l+=3,7&n&&(t.level=7&n),32&n&&(t.hidden=!0),64&n&&(t.hpt=r/20),t}},523:{},545:{f:ud},549:{f:Qh},566:{},574:{f:function(e,t,r){return r&&r.biff>=2&&r.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),r=e.read_shift(2),n=Uh(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}},659:{},1048:{},1054:{f:function(e,t,r){return[e.read_shift(2),Mh(e,0,r)]}},1084:{},1212:{f:function(e,t,r){var n=Vh(e);e.l++;var i=e.read_shift(1);return[Im(e,t-=8,r),i,n]}},2048:{f:function(e,t){e.read_shift(2);var r=Hh(e),n=e.read_shift((t-10)/2,"dbcs-cont");return[r,n=n.replace(ao,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Kh},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:gh},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var r=e.read_shift(2);e.l+=2;for(var n=e.read_shift(2),i=[];n-- >0;)i.push(Bp(e,e.l));return{ixfe:r,ext:i}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:bh,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),i=e.read_shift(2);return[Ch(e,n,r),Ch(e,i,r)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,r){var n=e.l+t;if(124226!==e.read_shift(4))if(r.cellStyles){var i,a=e.slice(e.l);e.l=n;try{i=jl(a,{type:"array"})}catch(o){return}var s=Il(i,"theme/theme/theme1.xml",!0);if(s)return Fp(s,r)}else e.l=n},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:gh},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:wh},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,r){var n={area:!1};if(5!=r.biff)return e.l+=t,n;var i=e.read_shift(1);return e.l+=3,16&i&&(n.area=!0),n}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(jh(e));return r}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:rd},1:{},2:{f:function(e){var t=Lh(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}},3:{f:function(e){var t=Lh(e);++e.l;var r=vf(e);return t.t="n",t.val=r,t}},4:{f:function(e,t,r){r.biffguess&&5==r.biff&&(r.biff=2);var n=Lh(e);++e.l;var i=Mh(e,0,r);return n.t="str",n.val=i,n}},5:{f:id},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:Kh},11:{},22:{f:wh},30:{f:td},31:{},32:{},33:{f:ud},36:{},37:{f:Qh},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:wh},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,i}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,r){var n=e.l+t,i=Lh(e),a=Ch(e,e.read_shift(2),r);return e.l=n,i.t="str",i.val=a,i}},223:{},234:{},354:{},421:{},518:{f:Nm},521:{f:Kh},536:{f:ld},547:{f:sd},561:{},579:{},1030:{f:Nm},1033:{f:Kh},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function zg(e,t,r,n){var i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&uu(r)&&e.push(r)}}function Ug(e,t,r){return e||(e=Tu(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function Hg(e,t,r,n){if(null!=t.v)switch(t.t){case"d":case"n":var i="d"==t.t?ul(yl(t.v)):t.v;return void(i==(0|i)&&i>=0&&i<65536?zg(e,2,(a=r,s=n,o=i,l=Tu(9),Ug(l,a,s),l.write_shift(2,o),l)):zg(e,3,function(e,t,r){var n=Tu(15);return Ug(n,e,t),n.write_shift(8,r,"f"),n}(r,n,i)));case"b":case"e":return void zg(e,5,function(e,t,r,n){var i=Tu(9);return Ug(i,e,t),xh(r,n||"b",i),i}(r,n,t.v,t.t));case"s":case"str":return void zg(e,4,function(e,t,r){var n=Tu(8+2*r.length);return Ug(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}(r,n,(t.v||"").slice(0,255)))}var a,s,o,l;zg(e,1,Ug(null,r,n))}function Wg(e,t){var r=t||{};for(var n=Cu(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==r.sheet&&(i=a);if(0==i&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return zg(n,4==r.biff?1033:3==r.biff?521:9,Zh(0,16,r)),function(e,t,r,n){var i,a=Array.isArray(t),s=Uu(t["!ref"]||"A1"),o="",l=[];if(s.e.c>255||s.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),i=zu(s)}for(var c=s.s.r;c<=s.e.r;++c){o=Pu(c);for(var u=s.s.c;u<=s.e.c;++u){c===s.s.r&&(l[u]=Fu(u)),i=l[u]+o;var f=a?(t[c]||[])[u]:t[i];f&&Hg(e,f,c,u)}}}(n,e.Sheets[e.SheetNames[i]],0,r),zg(n,10),n.end()}function Vg(e,t,r){zg(e,49,function(e,t){var r=e.name||"Arial",n=t&&5==t.biff,i=Tu(n?15+r.length:16+2*r.length);return i.write_shift(2,20*(e.sz||12)),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function $g(e,t){if(t){var r=0;t.forEach(function(t,n){++r<=256&&t&&zg(e,125,function(e,t){var r=Tu(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,256*e.width),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}(Zm(n,t),n))})}}function qg(e,t,r,n,i){var a=16+Qm(i.cellXfs,t,i);if(null!=t.v||t.bf)if(t.bf)zg(e,6,Pm(t,r,n,0,a));else switch(t.t){case"d":case"n":zg(e,515,function(e,t,r,n){var i=Tu(14);return Bh(e,t,n,i),gf(r,i),i}(r,n,"d"==t.t?ul(yl(t.v)):t.v,a));break;case"b":case"e":zg(e,517,function(e,t,r,n,i,a){var s=Tu(8);return Bh(e,t,n,s),xh(r,a,s),s}(r,n,t.v,a,0,t.t));break;case"s":case"str":i.bookSST?zg(e,253,function(e,t,r,n){var i=Tu(10);return Bh(e,t,n,i),i.write_shift(4,r),i}(r,n,Km(i.Strings,t.v,i.revStrings),a)):zg(e,516,function(e,t,r,n,i){var a=!i||8==i.biff,s=Tu(+a+8+(1+a)*r.length);return Bh(e,t,n,s),s.write_shift(2,r.length),a&&s.write_shift(1,1),s.write_shift((1+a)*r.length,r,a?"utf16le":"sbcs"),s}(r,n,(t.v||"").slice(0,255),a,i));break;default:zg(e,513,Bh(r,n,a))}else zg(e,513,Bh(r,n,a))}function Xg(e,t,r){var n,i,a,s=Cu(),o=r.SheetNames[e],l=r.Sheets[o]||{},c=(r||{}).Workbook||{},u=(c.Sheets||[])[e]||{},f=Array.isArray(l),h=8==t.biff,d="",p=[],m=Uu(l["!ref"]||"A1"),v=h?65536:16384;if(m.e.c>255||m.e.r>=v){if(t.WTF)throw new Error("Range "+(l["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,v-1)}zg(s,2057,Zh(0,16,t)),zg(s,13,_h(1)),zg(s,12,_h(100)),zg(s,15,yh(!0)),zg(s,17,yh(!1)),zg(s,16,gf(.001)),zg(s,95,yh(!0)),zg(s,42,yh(!1)),zg(s,43,yh(!1)),zg(s,130,_h(1)),zg(s,128,(i=[0,0],(a=Tu(8)).write_shift(4,0),a.write_shift(2,i[0]?i[0]+1:0),a.write_shift(2,i[1]?i[1]+1:0),a)),zg(s,131,yh(!1)),zg(s,132,yh(!1)),h&&$g(s,l["!cols"]),zg(s,512,function(e,t){var r=8!=t.biff&&t.biff?2:4,n=Tu(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}(m,t)),h&&(l["!links"]=[]);for(var g=m.s.r;g<=m.e.r;++g){d=Pu(g);for(var b=m.s.c;b<=m.e.c;++b){g===m.s.r&&(p[b]=Fu(b)),n=p[b]+d;var y=f?(l[g]||[])[b]:l[n];y&&(qg(s,y,g,b,t),h&&y.l&&l["!links"].push([n,y.l]))}}var w=u.CodeName||u.name||o;return h&&zg(s,574,function(e){var t=Tu(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((c.Views||[])[0])),h&&(l["!merges"]||[]).length&&zg(s,229,function(e){var t=Tu(2+8*e.length);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)Wh(e[r],t);return t}(l["!merges"])),h&&function(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];zg(e,440,hd(n)),n[1].Tooltip&&zg(e,2048,dd(n))}delete t["!links"]}(s,l),zg(s,442,Oh(w)),h&&function(e,t){var r=Tu(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),zg(e,2151,r),(r=Tu(39)).write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),Wh(Uu(t["!ref"]||"A1"),r),r.write_shift(4,4),zg(e,2152,r)}(s,l),zg(s,10),s.end()}function Gg(e,t,r){var n,i=Cu(),a=(e||{}).Workbook||{},s=a.Sheets||[],o=a.WBProps||{},l=8==r.biff,c=5==r.biff;zg(i,2057,Zh(0,5,r)),"xla"==r.bookType&&zg(i,135),zg(i,225,l?_h(1200):null),zg(i,193,function(e,t){t||(t=Tu(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}(2)),c&&zg(i,191),c&&zg(i,192),zg(i,226),zg(i,92,function(e,t){var r=!t||8==t.biff,n=Tu(r?112:54);for(n.write_shift(8==t.biff?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}(0,r)),zg(i,66,_h(l?1200:1252)),l&&zg(i,353,_h(0)),l&&zg(i,448),zg(i,317,function(e){for(var t=Tu(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}(e.SheetNames.length)),l&&e.vbaraw&&zg(i,211),l&&e.vbaraw&&zg(i,442,Oh(o.CodeName||"ThisWorkbook")),zg(i,156,_h(17)),zg(i,25,yh(!1)),zg(i,18,yh(!1)),zg(i,19,_h(0)),l&&zg(i,431,yh(!1)),l&&zg(i,444,_h(0)),zg(i,61,((n=Tu(18)).write_shift(2,0),n.write_shift(2,0),n.write_shift(2,29280),n.write_shift(2,17600),n.write_shift(2,56),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,1),n.write_shift(2,500),n)),zg(i,64,yh(!1)),zg(i,141,_h(0)),zg(i,34,yh("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&nc(e.Workbook.WBProps.date1904)?"true":"false"}(e))),zg(i,14,yh(!0)),l&&zg(i,439,yh(!1)),zg(i,218,_h(0)),Vg(i,0,r),function(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)null!=t[i]&&zg(e,1054,ed(i,t[i],r))})}(i,e.SSF,r),function(e,t){for(var r=0;r<16;++r)zg(e,224,nd({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(r){zg(e,224,nd(r,0,t))})}(i,r),l&&zg(i,352,yh(!1));var u=i.end(),f=Cu();l&&zg(f,140,function(e){return e||(e=Tu(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),l&&r.Strings&&function(e,t,r,n){var i=n||(r||[]).length||0;if(i<=8224)return zg(e,t,r,i);var a=t;if(!isNaN(a)){for(var s=r.parts||[],o=0,l=0,c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;var u=e.next(4);for(u.write_shift(2,a),u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l<i;){for((u=e.next(4)).write_shift(2,60),c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c}}}(f,252,function(e){var t=Tu(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var r=[],n=0;n<e.length;++n)r[n]=Eh(e[n]);var i=io([t].concat(r));return i.parts=[t.length].concat(r.map(function(e){return e.length})),i}(r.Strings)),zg(f,10);var h=f.end(),d=Cu(),p=0,m=0;for(m=0;m<e.SheetNames.length;++m)p+=(l?12:11)+(l?2:1)*e.SheetNames[m].length;var v=u.length+p+h.length;for(m=0;m<e.SheetNames.length;++m){zg(d,133,Jh({pos:v,hs:(s[m]||{}).Hidden||0,dt:0,name:e.SheetNames[m]},r)),v+=t[m].length}var g=d.end();if(p!=g.length)throw new Error("BS8 "+p+" != "+g.length);var b=[];return u.length&&b.push(u),g.length&&b.push(g),h.length&&b.push(h),io(b)}function Yg(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];n&&n["!ref"]&&(Bu(n["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost."))}var i=t||{};switch(i.biff||2){case 8:case 5:return function(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=_l(go)),e&&e.SSF&&(Jo(),Zo(e.SSF),r.revssf=ll(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Db(r),r.cellXfs=[],Qm(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=Xg(i,r,e);return n.unshift(Gg(e,n,r)),io(n)}(e,t);case 4:case 3:case 2:return Wg(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function Kg(e,t){var r=t||{};var n=r.dense?[]:{},i=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var a=e.match(/<\/table/i),s=i.index,o=a&&a.index||e.length,l=El(e.slice(s,o),/(:?<tr[^>]*>)/i,"<tr>"),c=-1,u=0,f=0,h=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(s=0;s<l.length;++s){var m=l[s].trim(),v=m.slice(0,3).toLowerCase();if("<tr"!=v){if("<td"==v||"<th"==v){var g=m.split(/<\/t[dh]>/i);for(o=0;o<g.length;++o){var b=g[o].trim();if(b.match(/<t[dh]/i)){for(var y=b,w=0;"<"==y.charAt(0)&&(w=y.indexOf(">"))>-1;)y=y.slice(w+1);for(var _=0;_<p.length;++_){var k=p[_];k.s.c==u&&k.s.r<c&&c<=k.e.r&&(u=k.e.c+1,_=-1)}var x=$l(b.slice(0,b.indexOf(">")));h=x.colspan?+x.colspan:1,((f=+x.rowspan)>1||h>1)&&p.push({s:{r:c,c:u},e:{r:c+(f||1)-1,c:u+h-1}});var S=x.t||x["data-t"]||"";if(y.length)if(y=fc(y),d.s.r>c&&(d.s.r=c),d.e.r<c&&(d.e.r=c),d.s.c>u&&(d.s.c=u),d.e.c<u&&(d.e.c=u),y.length){var T={t:"s",v:y};r.raw||!y.trim().length||"s"==S||("TRUE"===y?T={t:"b",v:!0}:"FALSE"===y?T={t:"b",v:!1}:isNaN(xl(y))?isNaN(Tl(y).getDate())||(T={t:"d",v:yl(y)},r.cellDates||(T={t:"n",v:ul(T.v)}),T.z=r.dateNF||go[14]):T={t:"n",v:xl(y)}),r.dense?(n[c]||(n[c]=[]),n[c][u]=T):n[Lu({r:c,c:u})]=T,u+=h}else u+=h;else u+=h}}}}else{if(++c,r.sheetRows&&r.sheetRows<=c){--c;break}u=0}}return n["!ref"]=zu(d),p.length&&(n["!merges"]=p),n}function Zg(e,t,r,n){for(var i=e["!merges"]||[],a=[],s=t.s.c;s<=t.e.c;++s){for(var o=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>r||i[c].s.c>s||i[c].e.r<r||i[c].e.c<s)){if(i[c].s.r<r||i[c].s.c<s){o=-1;break}o=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(o<0)){var u=Lu({r:r,c:s}),f=n.dense?(e[r]||[])[s]:e[u],h=f&&null!=f.v&&(f.h||tc(f.w||(Wu(f),f.w)||""))||"",d={};o>1&&(d.rowspan=o),l>1&&(d.colspan=l),n.editable?h='<span contenteditable="true">'+h+"</span>":f&&(d["data-t"]=f&&f.t||"z",null!=f.v&&(d["data-v"]=f.v),null!=f.z&&(d["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(h='<a href="'+f.l.Target+'">'+h+"</a>")),d.id=(n.id||"sjs")+"-"+u,a.push(yc("td",h,d))}}return"<tr>"+a.join("")+"</tr>"}function Jg(e){return[Yl(e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(e,t){return Array(parseInt(t,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n").replace(/<[^>]*>/g,""))]}var Qg={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function eb(e,t){var r=t||{};var n,i,a,s,o,l,c=_c(e),u=[],f={name:""},h="",d=0,p={},m=[],v=r.dense?[]:{},g={value:""},b="",y=0,w=[],_=-1,k=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}},S=0,T={},E=[],C={},A=[],M=1,O=1,R=[],I={Names:[]},N={},P=["",""],D=[],F={},j="",L=0,B=!1,z=!1,U=0;for(kc.lastIndex=0,c=c.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");o=kc.exec(c);)switch(o[3]=o[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===o[1]?(x.e.c>=x.s.c&&x.e.r>=x.s.r?v["!ref"]=zu(x):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=x.e.r&&(v["!fullref"]=v["!ref"],x.e.r=r.sheetRows-1,v["!ref"]=zu(x)),E.length&&(v["!merges"]=E),A.length&&(v["!rows"]=A),a.name=a["名称"]||a.name,"undefined"!=typeof JSON&&JSON.stringify(a),m.push(a.name),p[a.name]=v,z=!1):"/"!==o[0].charAt(o[0].length-2)&&(a=$l(o[0],!1),_=k=-1,x.s.r=x.s.c=1e7,x.e.r=x.e.c=0,v=r.dense?[]:{},E=[],A=[],z=!0);break;case"table-row-group":"/"===o[1]?--S:++S;break;case"table-row":case"行":if("/"===o[1]){_+=M,M=1;break}if((s=$l(o[0],!1))["行号"]?_=s["行号"]-1:-1==_&&(_=0),(M=+s["number-rows-repeated"]||1)<10)for(U=0;U<M;++U)S>0&&(A[_+U]={level:S});k=-1;break;case"covered-table-cell":"/"!==o[1]&&++k,r.sheetStubs&&(r.dense?(v[_]||(v[_]=[]),v[_][k]={t:"z"}):v[Lu({r:_,c:k})]={t:"z"}),b="",w=[];break;case"table-cell":case"数据":if("/"===o[0].charAt(o[0].length-2))++k,g=$l(o[0],!1),O=parseInt(g["number-columns-repeated"]||"1",10),l={t:"z",v:null},g.formula&&0!=r.cellFormula&&(l.f=Wm(Yl(g.formula))),"string"==(g["数据类型"]||g["value-type"])&&(l.t="s",l.v=Yl(g["string-value"]||""),r.dense?(v[_]||(v[_]=[]),v[_][k]=l):v[Lu({r:_,c:k})]=l),k+=O-1;else if("/"!==o[1]){b="",y=0,w=[],O=1;var H=M?_+M-1:_;if(++k>x.e.c&&(x.e.c=k),k<x.s.c&&(x.s.c=k),_<x.s.r&&(x.s.r=_),H>x.e.r&&(x.e.r=H),D=[],F={},l={t:(g=$l(o[0],!1))["数据类型"]||g["value-type"],v:null},r.cellFormula)if(g.formula&&(g.formula=Yl(g.formula)),g["number-matrix-columns-spanned"]&&g["number-matrix-rows-spanned"]&&(C={s:{r:_,c:k},e:{r:_+(parseInt(g["number-matrix-rows-spanned"],10)||0)-1,c:k+(parseInt(g["number-matrix-columns-spanned"],10)||0)-1}},l.F=zu(C),R.push([C,l.F])),g.formula)l.f=Wm(g.formula);else for(U=0;U<R.length;++U)_>=R[U][0].s.r&&_<=R[U][0].e.r&&k>=R[U][0].s.c&&k<=R[U][0].e.c&&(l.F=R[U][1]);switch((g["number-columns-spanned"]||g["number-rows-spanned"])&&(C={s:{r:_,c:k},e:{r:_+(parseInt(g["number-rows-spanned"],10)||0)-1,c:k+(parseInt(g["number-columns-spanned"],10)||0)-1}},E.push(C)),g["number-columns-repeated"]&&(O=parseInt(g["number-columns-repeated"],10)),l.t){case"boolean":l.t="b",l.v=nc(g["boolean-value"]);break;case"float":case"percentage":case"currency":l.t="n",l.v=parseFloat(g.value);break;case"date":l.t="d",l.v=yl(g["date-value"]),r.cellDates||(l.t="n",l.v=ul(l.v)),l.z="m/d/yy";break;case"time":l.t="n",l.v=ml(g["time-value"])/86400,r.cellDates&&(l.t="d",l.v=pl(l.v)),l.z="HH:MM:SS";break;case"number":l.t="n",l.v=parseFloat(g["数据数值"]);break;default:if("string"!==l.t&&"text"!==l.t&&l.t)throw new Error("Unsupported value type "+l.t);l.t="s",null!=g["string-value"]&&(b=Yl(g["string-value"]),w=[])}}else{if(B=!1,"s"===l.t&&(l.v=b||"",w.length&&(l.R=w),B=0==y),N.Target&&(l.l=N),D.length>0&&(l.c=D,D=[]),b&&!1!==r.cellText&&(l.w=b),B&&(l.t="z",delete l.v),(!B||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=_))for(var W=0;W<M;++W){if(O=parseInt(g["number-columns-repeated"]||"1",10),r.dense)for(v[_+W]||(v[_+W]=[]),v[_+W][k]=0==W?l:_l(l);--O>0;)v[_+W][k+O]=_l(l);else for(v[Lu({r:_+W,c:k})]=l;--O>0;)v[Lu({r:_+W,c:k+O})]=_l(l);x.e.c<=k&&(x.e.c=k)}k+=(O=parseInt(g["number-columns-repeated"]||"1",10))-1,O=0,l={},b="",w=[]}N={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===o[1]){if((n=u.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!0]);break;case"annotation":if("/"===o[1]){if((n=u.pop())[0]!==o[3])throw"Bad state: "+n;F.t=b,w.length&&(F.R=w),F.a=j,D.push(F)}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!1]);j="",L=0,b="",y=0,w=[];break;case"creator":"/"===o[1]?j=c.slice(L,o.index):L=o.index+o[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===o[1]){if((n=u.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!1]);b="",y=0,w=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===o[1]){if(T[f.name]=h,(n=u.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&(h="",f=$l(o[0],!1),u.push([o[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(u[u.length-1][0]){case"time-style":case"date-style":i=$l(o[0],!1),h+=Qg[o[3]]["long"===i.style?1:0]}break;case"text":if("/>"===o[0].slice(-2))break;if("/"===o[1])switch(u[u.length-1][0]){case"number-style":case"date-style":case"time-style":h+=c.slice(d,o.index)}else d=o.index+o[0].length;break;case"named-range":P=$m((i=$l(o[0],!1))["cell-range-address"]);var V={Name:i.name,Ref:P[0]+"!"+P[1]};z&&(V.Sheet=m.length),I.Names.push(V);break;case"p":case"文本串":if(["master-styles"].indexOf(u[u.length-1][0])>-1)break;if("/"!==o[1]||g&&g["string-value"])$l(o[0],!1),y=o.index+o[0].length;else{var $=Jg(c.slice(y,o.index));b=(b.length>0?b+"\n":"")+$[0]}break;case"database-range":if("/"===o[1])break;try{p[(P=$m($l(o[0])["target-range-address"]))[0]]["!autofilter"]={ref:P[1]}}catch(X){}break;case"a":if("/"!==o[1]){if(!(N=$l(o[0],!1)).href)break;N.Target=Yl(N.href),delete N.href,"#"==N.Target.charAt(0)&&N.Target.indexOf(".")>-1?(P=$m(N.Target.slice(1)),N.Target="#"+P[0]+"!"+P[1]):N.Target.match(/^\.\.[\\\/]/)&&(N.Target=N.Target.slice(3))}break;default:switch(o[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(o)}}var q={Sheets:p,SheetNames:m,Workbook:I};return r.bookSheets&&delete q.Sheets,q}function tb(e,t){t=t||{},Ml(e,"META-INF/manifest.xml")&&function(e,t){for(var r,n,i=_c(e);r=kc.exec(i);)switch(r[3]){case"manifest":break;case"file-entry":if("/"==(n=$l(r[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==n.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw r}}(Rl(e,"META-INF/manifest.xml"),t);var r=Il(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=eb(lc(r),t);return Ml(e,"meta.xml")&&(n.Props=Wf(Rl(e,"meta.xml"))),n}function rb(e,t){return eb(e,t)}var nb=/* @__PURE__ */function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+bc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Bl+t}}(),ib=/* @__PURE__ */function(){var e=function(e){return Jl(e).replace(/ +/g,function(e){return'<text:s text:c="'+e.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=" <table:table-cell />\n",r=function(r,n,i){var a=[];a.push(' <table:table table:name="'+Jl(n.SheetNames[i])+'" table:style-name="ta1">\n');var s=0,o=0,l=Bu(r["!ref"]||"A1"),c=r["!merges"]||[],u=0,f=Array.isArray(r);if(r["!cols"])for(o=0;o<=l.e.c;++o)a.push(" <table:table-column"+(r["!cols"][o]?' table:style-name="co'+r["!cols"][o].ods+'"':"")+"></table:table-column>\n");var h="",d=r["!rows"]||[];for(s=0;s<l.s.r;++s)h=d[s]?' table:style-name="ro'+d[s].ods+'"':"",a.push(" <table:table-row"+h+"></table:table-row>\n");for(;s<=l.e.r;++s){for(h=d[s]?' table:style-name="ro'+d[s].ods+'"':"",a.push(" <table:table-row"+h+">\n"),o=0;o<l.s.c;++o)a.push(t);for(;o<=l.e.c;++o){var p=!1,m={},v="";for(u=0;u!=c.length;++u)if(!(c[u].s.c>o||c[u].s.r>s||c[u].e.c<o||c[u].e.r<s)){c[u].s.c==o&&c[u].s.r==s||(p=!0),m["table:number-columns-spanned"]=c[u].e.c-c[u].s.c+1,m["table:number-rows-spanned"]=c[u].e.r-c[u].s.r+1;break}if(p)a.push(" <table:covered-table-cell/>\n");else{var g=Lu({r:s,c:o}),b=f?(r[s]||[])[o]:r[g];if(b&&b.f&&(m["table:formula"]=Jl(Vm(b.f)),b.F&&b.F.slice(0,g.length)==g)){var y=Bu(b.F);m["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,m["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(b){switch(b.t){case"b":v=b.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=b.v?"true":"false";break;case"n":v=b.w||String(b.v||0),m["office:value-type"]="float",m["office:value"]=b.v||0;break;case"s":case"str":v=null==b.v?"":b.v,m["office:value-type"]="string";break;case"d":v=b.w||yl(b.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=yl(b.v).toISOString(),m["table:style-name"]="ce1";break;default:a.push(t);continue}var w=e(v);if(b.l&&b.l.Target){var _=b.l.Target;"#"==(_="#"==_.charAt(0)?"#"+qm(_.slice(1)):_).charAt(0)||_.match(/^\w+:/)||(_="../"+_),w=yc("text:a",w,{"xlink:href":_.replace(/&/g,"&")})}a.push(" "+yc("table:table-cell",yc("text:p",w,{}),m)+"\n")}else a.push(t)}}a.push(" </table:table-row>\n")}return a.push(" </table:table>\n"),a.join("")};return function(e,t){var n=[Bl],i=bc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),a=bc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?(n.push("<office:document"+i+a+">\n"),n.push(zf().replace(/office:document-meta/g,"office:meta"))):n.push("<office:document-content"+i+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push(' <number:month number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(' <number:day number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(" <number:year/>\n"),e.push(" </number:date-style>\n");var r=0;t.SheetNames.map(function(e){return t.Sheets[e]}).forEach(function(t){if(t&&t["!cols"])for(var n=0;n<t["!cols"].length;++n)if(t["!cols"][n]){var i=t["!cols"][n];if(null==i.width&&null==i.wpx&&null==i.wch)continue;sp(i),i.ods=r;var a=t["!cols"][n].wpx+"px";e.push(' <style:style style:name="co'+r+'" style:family="table-column">\n'),e.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+a+'"/>\n'),e.push(" </style:style>\n"),++r}});var n=0;t.SheetNames.map(function(e){return t.Sheets[e]}).forEach(function(t){if(t&&t["!rows"])for(var r=0;r<t["!rows"].length;++r)if(t["!rows"][r]){t["!rows"][r].ods=n;var i=t["!rows"][r].hpx+"px";e.push(' <style:style style:name="ro'+n+'" style:family="table-row">\n'),e.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+i+'"/>\n'),e.push(" </style:style>\n"),++n}}),e.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push(" </style:style>\n"),e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(n,e),n.push(" <office:body>\n"),n.push(" <office:spreadsheet>\n");for(var s=0;s!=e.SheetNames.length;++s)n.push(r(e.Sheets[e.SheetNames[s]],e,s));return n.push(" </office:spreadsheet>\n"),n.push(" </office:body>\n"),"fods"==t.bookType?n.push("</office:document>"):n.push("</office:document-content>"),n.join("")}}();function ab(e,t){if("fods"==t.bookType)return ib(e,t);var r=Fl(),n="",i=[],a=[];return Dl(r,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Dl(r,n="content.xml",ib(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),Dl(r,n="styles.xml",nb(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),Dl(r,n="meta.xml",Bl+zf()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),Dl(r,n="manifest.rdf",function(e){var t=[Bl];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var r=0;r!=e.length;++r)t.push(Lf(e[r][0],e[r][1])),t.push(Bf("",e[r][0]));return t.push(Lf("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(a)),i.push([n,"application/rdf+xml"]),Dl(r,n="META-INF/manifest.xml",function(e){var t=[Bl];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(i)),r}function sb(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ob(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):lc(ro(e))}function lb(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):eo(cc(e))}function cb(e){var t=e.reduce(function(e,t){return e+t.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(e){r.set(e,n),n+=e.length}),r}function ub(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function fb(e,t){var r=t?t[0]:0,n=127&e[r];e:if(e[r++]>=128){if(n|=(127&e[r])<<7,e[r++]<128)break e;if(n|=(127&e[r])<<14,e[r++]<128)break e;if(n|=(127&e[r])<<21,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,28),++r,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,35),++r,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,42),++r,e[r++]<128)break e}return t&&(t[0]=r),n}function hb(e){var t=new Uint8Array(7);t[0]=127&e;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383)break e;if(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)break e;if(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)break e;if(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)break e;if(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103)break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function db(e){var t=0,r=127&e[t];e:if(e[t++]>=128){if(r|=(127&e[t])<<7,e[t++]<128)break e;if(r|=(127&e[t])<<14,e[t++]<128)break e;if(r|=(127&e[t])<<21,e[t++]<128)break e;r|=(127&e[t])<<28}return r}function pb(e){for(var t=[],r=[0];r[0]<e.length;){var n,i=r[0],a=fb(e,r),s=7&a,o=0;if(0==(a=Math.floor(a/8)))break;switch(s){case 0:for(var l=r[0];e[r[0]++]>=128;);n=e.slice(l,r[0]);break;case 5:o=4,n=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,n=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=fb(e,r),n=e.slice(r[0],r[0]+o),r[0]+=o;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(a," at offset ").concat(i))}var c={data:n,type:s};null==t[a]?t[a]=[c]:t[a].push(c)}return t}function mb(e){var t=[];return e.forEach(function(e,r){e.forEach(function(e){e.data&&(t.push(hb(8*r+e.type)),2==e.type&&t.push(hb(e.data.length)),t.push(e.data))})}),cb(t)}function vb(e,t){return(null==e?void 0:e.map(function(e){return t(e.data)}))||[]}function gb(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=fb(e,n),a=pb(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:db(a[1][0].data),messages:[]};a[2].forEach(function(t){var r=pb(t.data),i=db(r[3][0].data);s.messages.push({meta:r,data:e.slice(n[0],n[0]+i)}),n[0]+=i}),(null==(t=a[3])?void 0:t[0])&&(s.merge=db(a[3][0].data)>>>0>0),r.push(s)}return r}function bb(e){var t=[];return e.forEach(function(e){var r=[];r[1]=[{data:hb(e.id),type:0}],r[2]=[],null!=e.merge&&(r[3]=[{data:hb(+!!e.merge),type:0}]);var n=[];e.messages.forEach(function(e){n.push(e.data),e.meta[3]=[{type:0,data:hb(e.data.length)}],r[2].push({data:mb(e.meta),type:2})});var i=mb(r);t.push(hb(i.length)),t.push(i),n.forEach(function(e){return t.push(e)})}),cb(t)}function yb(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=fb(t,r),i=[];r[0]<t.length;){var a=3&t[r[0]];if(0!=a){var s=0,o=0;if(1==a?(o=4+(t[r[0]]>>2&7),s=(224&t[r[0]++])<<3,s|=t[r[0]++]):(o=1+(t[r[0]++]>>2),2==a?(s=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(s=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[cb(i)],0==s)throw new Error("Invalid offset 0");if(s>i[0].length)throw new Error("Invalid offset beyond length");if(o>=s)for(i.push(i[0].slice(-s)),o-=s;o>=i[i.length-1].length;)i.push(i[i.length-1]),o-=i[i.length-1].length;i.push(i[0].slice(-s,-s+o))}else{var l=t[r[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[r[0]],c>1&&(l|=t[r[0]+1]<<8),c>2&&(l|=t[r[0]+2]<<16),c>3&&(l|=t[r[0]+3]<<24),l>>>=0,l++,r[0]+=c}i.push(t.slice(r[0],r[0]+l)),r[0]+=l}}var u=cb(i);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function wb(e){for(var t=[],r=0;r<e.length;){var n=e[r++],i=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(yb(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return cb(t)}function _b(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var a=hb(n),s=a.length;t.push(a),n<=60?(s++,t.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,i[0]=0,i[1]=255&s,i[2]=s>>8&255,i[3]=s>>16&255,r+=n}return cb(t)}function kb(e,t,r){var n,i=sb(e),a=i.getUint32(8,!0),s=12,o=-1,l=-1,c=NaN,u=NaN,f=new Date(2001,0,1);switch(1&a&&(c=function(e,t){for(var r=(127&e[t+15])<<7|e[t+14]>>1,n=1&e[t+14],i=t+13;i>=t;--i)n=256*n+e[i];return(128&e[t+15]?-n:n)*Math.pow(10,r-6176)}(e,s),s+=16),2&a&&(u=i.getFloat64(s,!0),s+=8),4&a&&(f.setTime(f.getTime()+1e3*i.getFloat64(s,!0)),s+=8),8&a&&(l=i.getUint32(s,!0),s+=4),16&a&&(o=i.getUint32(s,!0),s+=4),e[1]){case 0:break;case 2:case 10:n={t:"n",v:c};break;case 3:n={t:"s",v:t[l]};break;case 5:n={t:"d",v:f};break;case 6:n={t:"b",v:u>0};break;case 7:n={t:"n",v:u/86400};break;case 8:n={t:"e",v:0};break;case 9:if(!(o>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&a," : ").concat(e.slice(0,4)));n={t:"s",v:r[o]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&a," : ").concat(e.slice(0,4)))}return n}function xb(e,t){var r=new Uint8Array(32),n=sb(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,function(e,t,r){var n=Math.floor(0==r?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(127&n)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=255&i;e[t+15]|=r>=0?0:128}(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function Sb(e,t){var r=new Uint8Array(32),n=sb(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function Tb(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,r,n){var i,a=sb(e),s=a.getUint32(4,!0),o=(n>1?12:8)+4*ub(s&(n>1?3470:398)),l=-1,c=-1,u=NaN,f=new Date(2001,0,1);switch(512&s&&(l=a.getUint32(o,!0),o+=4),o+=4*ub(s&(n>1?12288:4096)),16&s&&(c=a.getUint32(o,!0),o+=4),32&s&&(u=a.getFloat64(o,!0),o+=8),64&s&&(f.setTime(f.getTime()+1e3*a.getFloat64(o,!0)),o+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[c]};break;case 5:i={t:"d",v:f};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(l>-1)i={t:"s",v:r[l]};else if(c>-1)i={t:"s",v:t[c]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}(e,t,r,e[0]);case 5:return kb(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Eb(e){return fb(pb(e)[1][0].data)}function Cb(e,t){var r=pb(t.data),n=db(r[1][0].data),i=r[3],a=[];return(i||[]).forEach(function(t){var r=pb(t.data),i=db(r[1][0].data)>>>0;switch(n){case 1:a[i]=ob(r[3][0].data);break;case 8:var s=e[Eb(r[9][0].data)][0],o=e[Eb(pb(s.data)[1][0].data)][0],l=db(o.meta[1][0].data);if(2001!=l)throw new Error("2000 unexpected reference to ".concat(l));a[i]=pb(o.data)[3].map(function(e){return ob(e.data)}).join("")}}),a}function Ab(e,t){var r,n=pb(t.data),i=(null==(r=null==n?void 0:n[7])?void 0:r[0])?db(n[7][0].data)>>>0>0?1:0:-1,a=vb(n[5],function(e){return function(e,t){var r,n,i,a,s,o,l,c,u,f,h,d,p,m,v,g,b=pb(e),y=db(b[1][0].data)>>>0,w=db(b[2][0].data)>>>0,_=(null==(n=null==(r=b[8])?void 0:r[0])?void 0:n.data)&&db(b[8][0].data)>0||!1;if((null==(a=null==(i=b[7])?void 0:i[0])?void 0:a.data)&&0!=t)v=null==(o=null==(s=b[7])?void 0:s[0])?void 0:o.data,g=null==(c=null==(l=b[6])?void 0:l[0])?void 0:c.data;else{if(!(null==(f=null==(u=b[4])?void 0:u[0])?void 0:f.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");v=null==(d=null==(h=b[4])?void 0:h[0])?void 0:d.data,g=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var k=_?4:1,x=sb(v),S=[],T=0;T<v.length/2;++T){var E=x.getUint16(2*T,!0);E<65535&&S.push([T,E])}if(S.length!=w)throw"Expected ".concat(w," cells, found ").concat(S.length);var C=[];for(T=0;T<S.length-1;++T)C[S[T][0]]=g.subarray(S[T][1]*k,S[T+1][1]*k);return S.length>=1&&(C[S[S.length-1][0]]=g.subarray(S[S.length-1][1]*k)),{R:y,cells:C}}(e,i)});return{nrows:db(n[4][0].data)>>>0,data:a.reduce(function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach(function(r,n){if(e[t.R][n])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(n));e[t.R][n]=r}),e},[])}}function Mb(e,t){var r={"!ref":"A1"},n=e[Eb(pb(t.data)[2][0].data)],i=db(n[0].meta[1][0].data);if(6001!=i)throw new Error("6000 unexpected reference to ".concat(i));return function(e,t,r){var n,i=pb(t.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(db(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(db(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));r["!ref"]=zu(a);var s=pb(i[4][0].data),o=Cb(e,e[Eb(s[4][0].data)][0]),l=(null==(n=s[17])?void 0:n[0])?Cb(e,e[Eb(s[17][0].data)][0]):[],c=pb(s[3][0].data),u=0;c[1].forEach(function(t){var n=e[Eb(pb(t.data)[2][0].data)][0],i=db(n.meta[1][0].data);if(6002!=i)throw new Error("6001 unexpected reference to ".concat(i));var a=Ab(0,n);a.data.forEach(function(e,t){e.forEach(function(e,n){var i=Lu({r:u+t,c:n}),a=Tb(e,o,l);a&&(r[i]=a)})}),u+=a.nrows})}(e,n[0],r),r}function Ob(e,t){var r={SheetNames:[],Sheets:{}};if(vb(pb(t.data)[1],Eb).forEach(function(t){e[t].forEach(function(t){if(2==db(t.meta[1][0].data)){var n=function(e,t){var r,n=pb(t.data),i={name:(null==(r=n[1])?void 0:r[0])?ob(n[1][0].data):"",sheets:[]};return vb(n[2],Eb).forEach(function(t){e[t].forEach(function(t){6e3==db(t.meta[1][0].data)&&i.sheets.push(Mb(e,t))})}),i}(e,t);n.sheets.forEach(function(e,t){ty(r,e,0==t?n.name:n.name+"_"+t,!0)})}})}),0==r.SheetNames.length)throw new Error("Empty NUMBERS file");return r}function Rb(e){var t,r,n,i,a={},s=[];if(e.FullPaths.forEach(function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(e){if(e.name.match(/\.iwa$/)){var t,r;try{t=wb(e.content)}catch(n){return console.log("?? "+e.content.length+" "+(n.message||n))}try{r=gb(t)}catch(n){return console.log("## "+(n.message||n))}r.forEach(function(e){a[e.id]=e.messages,s.push(e.id)})}}),!s.length)throw new Error("File has no messages");var o=(null==(i=null==(n=null==(r=null==(t=null==a?void 0:a[1])?void 0:t[0])?void 0:r.meta)?void 0:n[1])?void 0:i[0].data)&&1==db(a[1][0].meta[1][0].data)&&a[1][0];if(o||s.forEach(function(e){a[e].forEach(function(e){if(db(e.meta[1][0].data)>>>0==1){if(o)throw new Error("Document has multiple roots");o=e}})}),!o)throw new Error("Cannot find Document root");return Ob(a,o)}function Ib(e,t,r){var n,i,a,s;if(!(null==(n=e[6])?void 0:n[0])||!(null==(i=e[7])?void 0:i[0]))throw"Mutation only works on post-BNC storages!";if((null==(s=null==(a=e[8])?void 0:a[0])?void 0:s.data)&&db(e[8][0].data)>0)throw"Math only works with normal offsets";for(var o=0,l=sb(e[7][0].data),c=0,u=[],f=sb(e[4][0].data),h=0,d=[],p=0;p<t.length;++p)if(null!=t[p]){var m,v;switch(l.setUint16(2*p,c,!0),f.setUint16(2*p,h,!0),typeof t[p]){case"string":m=xb({t:"s",v:t[p]},r),v=Sb({t:"s",v:t[p]},r);break;case"number":m=xb({t:"n",v:t[p]},r),v=Sb({t:"n",v:t[p]},r);break;case"boolean":m=xb({t:"b",v:t[p]},r),v=Sb({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}u.push(m),c+=m.length,d.push(v),h+=v.length,++o}else l.setUint16(2*p,65535,!0),f.setUint16(2*p,65535);for(e[2][0].data=hb(o);p<e[7][0].data.length/2;++p)l.setUint16(2*p,65535,!0),f.setUint16(2*p,65535,!0);return e[6][0].data=cb(u),e[3][0].data=cb(d),o}function Nb(e){return function(t){for(var r=0;r!=e.length;++r){var n=e[r];void 0===t[n[0]]&&(t[n[0]]=n[1]),"n"===n[2]&&(t[n[0]]=Number(t[n[0]]))}}}function Pb(e){Nb([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Db(e){Nb([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Fb(e,t,r,n,i,a,s,o,l,c,u,f){try{a[n]=Df(Il(e,r,!0),t);var h,d=Rl(e,t);switch(o){case"sheet":h=Qv(d,t,i,l,a[n],c,u,f);break;case"chart":if(!(h=eg(d,t,i,l,a[n],c))||!h["!drawel"])break;var p=Ll(h["!drawel"].Target,t),m=Pf(p),v=Ll(function(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}(Il(e,p,!0),Df(Il(e,m,!0),p)),p),g=Pf(v);h=Dv(Il(e,v,!0),0,0,Df(Il(e,g,!0),v),0,h);break;case"macro":y=t,a[n],y.slice(-4),h={"!type":"macro"};break;case"dialog":h=function(e,t){return t.slice(-4),{"!type":"dialog"}}(0,t,0,0,a[n]);break;default:throw new Error("Unrecognized sheet type "+o)}s[n]=h;var b=[];a&&a[n]&&al(a[n]).forEach(function(r){var i="";if(a[n][r].Type==Nf.CMNT){i=Ll(a[n][r].Target,t);var s=ng(Rl(e,i,!0),i,l);if(!s||!s.length)return;$p(h,s,!1)}a[n][r].Type==Nf.TCMNT&&(i=Ll(a[n][r].Target,t),b=b.concat(function(e,t){var r=[],n=!1,i={},a=0;return e.replace(Hl,function(s,o){var l=$l(s);switch(ql(l[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":i={author:l.personId,guid:l.id,ref:l.ref,T:1};break;case"</threadedComment>":null!=i.t&&r.push(i);break;case"<text>":case"<text":a=o+s.length;break;case"</text>":i.t=e.slice(a,o).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":case"<ext":n=!0;break;case"</mentions>":case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return s}),r}(Rl(e,i,!0),l)))}),b&&b.length&&$p(h,b,!0,l.people||[])}catch(w){if(l.WTF)throw w}var y}function jb(e){return"/"==e.charAt(0)?e.slice(1):e}function Lb(e,t){if(Jo(),Pb(t=t||{}),Ml(e,"META-INF/manifest.xml"))return tb(e,t);if(Ml(e,"objectdata.xml"))return tb(e,t);if(Ml(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(void 0!==Rb){if(e.FileIndex)return Rb(e);var r=rl.utils.cfb_new();return Pl(e).forEach(function(t){Dl(r,t,Nl(e,t))}),Rb(r)}throw new Error("Unsupported NUMBERS file")}if(!Ml(e,"[Content_Types].xml")){if(Ml(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(Ml(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var n,i,a=Pl(e),s=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var r={};if((e.match(Hl)||[]).forEach(function(e){var n=$l(e);switch(n[0].replace(Wl,"<")){case"<?xml":break;case"<Types":t.xmlns=n["xmlns"+(n[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[n.Extension]=n.ContentType;break;case"<Override":void 0!==t[Of[n.ContentType]]&&t[Of[n.ContentType]].push(n.PartName)}}),t.xmlns!==Ec)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}(Il(e,"[Content_Types].xml")),o=!1;if(0===s.workbooks.length&&Rl(e,i="xl/workbook.xml",!0)&&s.workbooks.push(i),0===s.workbooks.length){if(!Rl(e,i="xl/workbook.bin",!0))throw new Error("Could not find workbook");s.workbooks.push(i),o=!0}"bin"==s.workbooks[0].slice(-3)&&(o=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(Xm=[],s.sst)try{Xm=rg(Rl(e,jb(s.sst)),s.sst,t)}catch(O){if(t.WTF)throw O}t.cellStyles&&s.themes.length&&(l=function(e,t,r){return Fp(e,r)}(Il(e,s.themes[0].replace(/^\//,""),!0)||"",s.themes[0],t)),s.style&&(c=tg(Rl(e,jb(s.style)),s.style,l,t))}s.links.map(function(r){try{Df(Il(e,Pf(jb(r))),r);return ag(Rl(e,jb(r)),0,r,t)}catch(O){}});var u=Jv(Rl(e,jb(s.workbooks[0])),s.workbooks[0],t),f={},h="";s.coreprops.length&&((h=Rl(e,jb(s.coreprops[0]),!0))&&(f=Wf(h)),0!==s.extprops.length&&(h=Rl(e,jb(s.extprops[0]),!0))&&function(e,t,r){var n={};t||(t={}),e=lc(e),qf.forEach(function(r){var i=(e.match(uc(r[0]))||[])[1];switch(r[2]){case"string":i&&(t[r[1]]=Yl(i));break;case"bool":t[r[1]]="true"===i;break;case"raw":var a=e.match(new RegExp("<"+r[0]+"[^>]*>([\\s\\S]*?)</"+r[0]+">"));a&&a.length>0&&(n[r[1]]=a[1])}}),n.HeadingPairs&&n.TitlesOfParts&&Gf(n.HeadingPairs,n.TitlesOfParts,t,r)}(h,f,t));var d={};t.bookSheets&&!t.bookProps||0!==s.custprops.length&&(h=Il(e,jb(s.custprops[0]),!0))&&(d=function(e,t){var r={},n="",i=e.match(Kf);if(i)for(var a=0;a!=i.length;++a){var s=i[a],o=$l(s);switch(o[0]){case"<?xml":case"<Properties":break;case"<property":n=Yl(o.name);break;case"</property>":n=null;break;default:if(0===s.indexOf("<vt:")){var l=s.split(">"),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":r[n]=Yl(u);break;case"bool":r[n]=nc(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(u,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(u);break;case"filetime":case"date":r[n]=yl(u);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",s,c,l)}}else if("</"===s.slice(0,2));else if(t.WTF)throw new Error(s)}}return r}(h,t));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?n=u.Sheets.map(function(e){return e.name}):f.Worksheets&&f.SheetNames.length>0&&(n=f.SheetNames),t.bookProps&&(p.Props=f,p.Custprops=d),t.bookSheets&&void 0!==n&&(p.SheetNames=n),t.bookSheets?p.SheetNames:t.bookProps))return p;n={};var m={};t.bookDeps&&s.calcchain&&(m=ig(Rl(e,jb(s.calcchain)),s.calcchain));var v,g,b=0,y={},w=u.Sheets;f.Worksheets=w.length,f.SheetNames=[];for(var _=0;_!=w.length;++_)f.SheetNames[_]=w[_].name;var k=o?"bin":"xml",x=s.workbooks[0].lastIndexOf("/"),S=(s.workbooks[0].slice(0,x+1)+"_rels/"+s.workbooks[0].slice(x+1)+".rels").replace(/^\//,"");Ml(e,S)||(S="xl/_rels/workbook."+k+".rels");var T=Df(Il(e,S,!0),S.replace(/_rels.*/,"s5s"));(s.metadata||[]).length>=1&&(t.xlmeta=sg(Rl(e,jb(s.metadata[0])),s.metadata[0],t)),(s.people||[]).length>=1&&(t.people=function(e,t){var r=[],n=!1;return e.replace(Hl,function(e){var i=$l(e);switch(ql(i[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":r.push({name:i.displayname,id:i.id});break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e}),r}(Rl(e,jb(s.people[0])),t)),T&&(T=function(e,t){if(!e)return 0;try{e=t.map(function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(r=e["!id"][t.id].Type,Nf.WS.indexOf(r)>-1?"sheet":Nf.CS&&r==Nf.CS?"chart":Nf.DS&&r==Nf.DS?"dialog":Nf.MS&&r==Nf.MS?"macro":r&&r.length?r:"sheet")];var r})}catch(O){return null}return e&&0!==e.length?e:null}(T,u.Sheets));var E=Rl(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=f.Worksheets;++b){var C="sheet";if(T&&T[b]?(v="xl/"+T[b][1].replace(/[\/]?xl\//,""),Ml(e,v)||(v=T[b][1]),Ml(e,v)||(v=S.replace(/_rels\/.*$/,"")+T[b][1]),C=T[b][2]):v=(v="xl/worksheets/sheet"+(b+1-E)+"."+k).replace(/sheet0\./,"sheet."),g=v.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(f.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var A=!1,M=0;M!=t.sheets.length;++M)"number"==typeof t.sheets[M]&&t.sheets[M]==b&&(A=1),"string"==typeof t.sheets[M]&&t.sheets[M].toLowerCase()==f.SheetNames[b].toLowerCase()&&(A=1);if(!A)continue e}}Fb(e,v,g,f.SheetNames[b],b,y,n,C,t,u,l,c)}return p={Directory:s,Workbook:u,Props:f,Custprops:d,Deps:m,Sheets:n,SheetNames:f.SheetNames,Strings:Xm,Styles:c,Themes:l,SSF:_l(go)},t&&t.bookFiles&&(e.files?(p.keys=a,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach(function(t,r){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[r]}))),t&&t.bookVBA&&(s.vba.length>0?p.vbaraw=Rl(e,jb(s.vba[0]),!0):s.defaults&&"application/vnd.ms-office.vbaProject"===s.defaults.bin&&(p.vbaraw=Rl(e,"xl/vbaProject.bin",!0))),p}function Bb(e,t){var r,n,i=t||{},a="Workbook",s=rl.find(e,a);try{if(a="/!DataSpaces/Version",!(s=rl.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(r=s.content,(n={}).id=r.read_shift(0,"lpp4"),n.R=Bd(r,4),n.U=Bd(r,4),n.W=Bd(r,4),a="/!DataSpaces/DataSpaceMap",!(s=rl.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=function(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(zd(e));return t}(s.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(s=rl.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=function(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(s.content);if(1!=l.length||"StrongEncryptionTransform"!=l[0])throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(s=rl.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);Ud(s.content)}catch(u){}if(a="/EncryptionInfo",!(s=rl.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=function(e){var t=Bd(e);switch(t.Minor){case 2:return[t.Minor,Vd(e)];case 3:return[t.Minor,$d()];case 4:return[t.Minor,qd(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(s.content);if(a="/EncryptedPackage",!(s=rl.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(4==c[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(c[1],s.content,i.password||"",i);if(2==c[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(c[1],s.content,i.password||"",i);throw new Error("File is password-protected")}function zb(e,t){return"ods"==t.bookType?ab(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Bu(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(zu(n)));var a=Zb(r,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(e){return e.forEach(function(e){"string"==typeof e&&s.push(e)})});var o={},l=[],c=rl.read(t.numbers,{type:"base64"});c.FileIndex.map(function(e,t){return[e,c.FullPaths[t]]}).forEach(function(e){var t=e[0],r=e[1];2==t.type&&t.name.match(/\.iwa/)&&gb(wb(t.content)).forEach(function(e){l.push(e.id),o[e.id]={deps:[],location:r,type:db(e.messages[0].meta[1][0].data)}})}),l.sort(function(e,t){return e-t});var u=l.filter(function(e){return e>1}).map(function(e){return[e,hb(e)]});c.FileIndex.map(function(e,t){return[e,c.FullPaths[t]]}).forEach(function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&gb(wb(t.content)).forEach(function(e){e.messages.forEach(function(t){u.forEach(function(t){e.messages.some(function(e){return 11006!=db(e.meta[1][0].data)&&function(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}(e.data,t[1])})&&o[t[0]].deps.push(e.id)})})})});for(var f,h=rl.find(c,o[1].location),d=gb(wb(h.content)),p=0;p<d.length;++p){var m=d[p];1==m.id&&(f=m)}var v=Eb(pb(f.messages[0].data)[1][0].data);for(d=gb(wb((h=rl.find(c,o[v].location)).content)),p=0;p<d.length;++p)(m=d[p]).id==v&&(f=m);for(v=Eb(pb(f.messages[0].data)[2][0].data),d=gb(wb((h=rl.find(c,o[v].location)).content)),p=0;p<d.length;++p)(m=d[p]).id==v&&(f=m);for(v=Eb(pb(f.messages[0].data)[2][0].data),d=gb(wb((h=rl.find(c,o[v].location)).content)),p=0;p<d.length;++p)(m=d[p]).id==v&&(f=m);var g=pb(f.messages[0].data);g[6][0].data=hb(n.e.r+1),g[7][0].data=hb(n.e.c+1);for(var b=Eb(g[46][0].data),y=rl.find(c,o[b].location),w=gb(wb(y.content)),_=0;_<w.length&&w[_].id!=b;++_);if(w[_].id!=b)throw"Bad ColumnRowUIDMapArchive";var k=pb(w[_].messages[0].data);k[1]=[],k[2]=[],k[3]=[];for(var x=0;x<=n.e.c;++x){var S=[];S[1]=S[2]=[{type:0,data:hb(x+420690)}],k[1].push({type:2,data:mb(S)}),k[2].push({type:0,data:hb(x)}),k[3].push({type:0,data:hb(x)})}k[4]=[],k[5]=[],k[6]=[];for(var T=0;T<=n.e.r;++T)(S=[])[1]=S[2]=[{type:0,data:hb(T+726270)}],k[4].push({type:2,data:mb(S)}),k[5].push({type:0,data:hb(T)}),k[6].push({type:0,data:hb(T)});w[_].messages[0].data=mb(k),y.content=_b(bb(w)),y.size=y.content.length,delete g[46];var E=pb(g[4][0].data);E[7][0].data=hb(n.e.r+1);var C=Eb(pb(E[1][0].data)[2][0].data);if((w=gb(wb((y=rl.find(c,o[C].location)).content)))[0].id!=C)throw"Bad HeaderStorageBucket";var A=pb(w[0].messages[0].data);for(T=0;T<a.length;++T){var M=pb(A[2][0].data);M[1][0].data=hb(T),M[4][0].data=hb(a[T].length),A[2][T]={type:A[2][0].type,data:mb(M)}}w[0].messages[0].data=mb(A),y.content=_b(bb(w)),y.size=y.content.length;var O=Eb(E[2][0].data);if((w=gb(wb((y=rl.find(c,o[O].location)).content)))[0].id!=O)throw"Bad HeaderStorageBucket";for(A=pb(w[0].messages[0].data),x=0;x<=n.e.c;++x)(M=pb(A[2][0].data))[1][0].data=hb(x),M[4][0].data=hb(n.e.r+1),A[2][x]={type:A[2][0].type,data:mb(M)};w[0].messages[0].data=mb(A),y.content=_b(bb(w)),y.size=y.content.length;var R=Eb(E[4][0].data);!function(){for(var e,t=rl.find(c,o[R].location),r=gb(wb(t.content)),n=0;n<r.length;++n){var i=r[n];i.id==R&&(e=i)}var a=pb(e.messages[0].data);a[3]=[];var l=[];s.forEach(function(e,t){l[1]=[{type:0,data:hb(t)}],l[2]=[{type:0,data:hb(1)}],l[3]=[{type:2,data:lb(e)}],a[3].push({type:2,data:mb(l)})}),e.messages[0].data=mb(a),t.content=_b(bb(r)),t.size=t.content.length}();var I=pb(E[3][0].data),N=I[1][0];delete I[2];var P=pb(N.data),D=Eb(P[2][0].data);!function(){for(var e,t=rl.find(c,o[D].location),r=gb(wb(t.content)),i=0;i<r.length;++i){var l=r[i];l.id==D&&(e=l)}var u=pb(e.messages[0].data);delete u[6],delete I[7];var f=new Uint8Array(u[5][0].data);u[5]=[];for(var h=0,d=0;d<=n.e.r;++d){var p=pb(f);h+=Ib(p,a[d],s),p[1][0].data=hb(d),u[5].push({data:mb(p),type:2})}u[1]=[{type:0,data:hb(n.e.c+1)}],u[2]=[{type:0,data:hb(n.e.r+1)}],u[3]=[{type:0,data:hb(h)}],u[4]=[{type:0,data:hb(n.e.r+1)}],e.messages[0].data=mb(u),t.content=_b(bb(r)),t.size=t.content.length}(),N.data=mb(P),E[3][0].data=mb(I),g[4][0].data=mb(E),f.messages[0].data=mb(g);var F=_b(bb(d));return h.content=F,h.size=h.content.length,c}(e,t):"xlsb"==t.bookType?function(e,t){Wp=1024,e&&!e.SSF&&(e.SSF=_l(go));e&&e.SSF&&(Jo(),Zo(e.SSF),t.revssf=ll(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Ym?t.revStrings=/* @__PURE__ */new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xlsb"==t.bookType?"bin":"xml",n=Kp.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Db(t=t||{});var a=Fl(),s="",o=0;t.cellXfs=[],Qm(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(Dl(a,s="docProps/core.xml",$f(e.Props,t)),i.coreprops.push(s),jf(t.rels,2,s,Nf.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c<e.SheetNames.length;++c)2!=(e.Workbook.Sheets[c]||{}).Hidden&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,Dl(a,s,Yf(e.Props)),i.extprops.push(s),jf(t.rels,3,s,Nf.EXT_PROPS),e.Custprops!==e.Props&&al(e.Custprops||{}).length>0&&(Dl(a,s="docProps/custom.xml",Zf(e.Custprops)),i.custprops.push(s),jf(t.rels,4,s,Nf.CUST_PROPS));for(o=1;o<=e.SheetNames.length;++o){var u={"!id":{}},f=e.Sheets[e.SheetNames[o-1]];if((f||{})["!type"],Dl(a,s="xl/worksheets/sheet"+o+"."+r,og(o-1,s,t,e,u)),i.sheets.push(s),jf(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Nf.WS[0]),f){var h=f["!comments"],d=!1,p="";h&&h.length>0&&(Dl(a,p="xl/comments"+o+"."+r,lg(h,p,t)),i.comments.push(p),jf(u,-1,"../comments"+o+"."+r,Nf.CMNT),d=!0),f["!legacy"]&&d&&Dl(a,"xl/drawings/vmlDrawing"+o+".vml",Vp(o,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&Dl(a,Pf(s),Ff(u))}null!=t.Strings&&t.Strings.length>0&&(Dl(a,s="xl/sharedStrings."+r,function(e,t,r){return(".bin"===t.slice(-4)?jd:Dd)(e,r)}(t.Strings,s,t)),i.strs.push(s),jf(t.wbrels,-1,"sharedStrings."+r,Nf.SST));Dl(a,s="xl/workbook."+r,function(e,t,r){return(".bin"===t.slice(-4)?Zv:Xv)(e,r)}(e,s,t)),i.workbooks.push(s),jf(t.rels,1,s,Nf.WB),Dl(a,s="xl/theme/theme1.xml",jp(e.Themes,t)),i.themes.push(s),jf(t.wbrels,-1,"theme/theme1.xml",Nf.THEME),Dl(a,s="xl/styles."+r,function(e,t,r){return(".bin"===t.slice(-4)?Cp:pp)(e,r)}(e,s,t)),i.styles.push(s),jf(t.wbrels,-1,"styles."+r,Nf.STY),e.vbaraw&&n&&(Dl(a,s="xl/vbaProject.bin",e.vbaraw),i.vba.push(s),jf(t.wbrels,-1,"vbaProject.bin",Nf.VBA));return Dl(a,s="xl/metadata."+r,function(e){return(".bin"===e.slice(-4)?Up:Hp)()}(s)),i.metadata.push(s),jf(t.wbrels,-1,"metadata."+r,Nf.XLMETA),Dl(a,"[Content_Types].xml",If(i,t)),Dl(a,"_rels/.rels",Ff(t.rels)),Dl(a,"xl/_rels/workbook."+r+".rels",Ff(t.wbrels)),delete t.revssf,delete t.ssf,a}(e,t):function(e,t){Wp=1024,e&&!e.SSF&&(e.SSF=_l(go));e&&e.SSF&&(Jo(),Zo(e.SSF),t.revssf=ll(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Ym?t.revStrings=/* @__PURE__ */new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=Kp.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Db(t=t||{});var a=Fl(),s="",o=0;t.cellXfs=[],Qm(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(Dl(a,s="docProps/core.xml",$f(e.Props,t)),i.coreprops.push(s),jf(t.rels,2,s,Nf.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c<e.SheetNames.length;++c)2!=(e.Workbook.Sheets[c]||{}).Hidden&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,Dl(a,s,Yf(e.Props)),i.extprops.push(s),jf(t.rels,3,s,Nf.EXT_PROPS),e.Custprops!==e.Props&&al(e.Custprops||{}).length>0&&(Dl(a,s="docProps/custom.xml",Zf(e.Custprops)),i.custprops.push(s),jf(t.rels,4,s,Nf.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var f={"!id":{}},h=e.Sheets[e.SheetNames[o-1]];if((h||{})["!type"],Dl(a,s="xl/worksheets/sheet"+o+"."+r,yv(o-1,t,e,f)),i.sheets.push(s),jf(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Nf.WS[0]),h){var d=h["!comments"],p=!1,m="";if(d&&d.length>0){var v=!1;d.forEach(function(e){e[1].forEach(function(e){1==e.T&&(v=!0)})}),v&&(Dl(a,m="xl/threadedComments/threadedComment"+o+"."+r,Xp(d,u,t)),i.threadedcomments.push(m),jf(f,-1,"../threadedComments/threadedComment"+o+"."+r,Nf.TCMNT)),Dl(a,m="xl/comments"+o+"."+r,qp(d)),i.comments.push(m),jf(f,-1,"../comments"+o+"."+r,Nf.CMNT),p=!0}h["!legacy"]&&p&&Dl(a,"xl/drawings/vmlDrawing"+o+".vml",Vp(o,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&Dl(a,Pf(s),Ff(f))}null!=t.Strings&&t.Strings.length>0&&(Dl(a,s="xl/sharedStrings."+r,Dd(t.Strings,t)),i.strs.push(s),jf(t.wbrels,-1,"sharedStrings."+r,Nf.SST));Dl(a,s="xl/workbook."+r,Xv(e)),i.workbooks.push(s),jf(t.rels,1,s,Nf.WB),Dl(a,s="xl/theme/theme1.xml",jp(e.Themes,t)),i.themes.push(s),jf(t.wbrels,-1,"theme/theme1.xml",Nf.THEME),Dl(a,s="xl/styles."+r,pp(e,t)),i.styles.push(s),jf(t.wbrels,-1,"styles."+r,Nf.STY),e.vbaraw&&n&&(Dl(a,s="xl/vbaProject.bin",e.vbaraw),i.vba.push(s),jf(t.wbrels,-1,"vbaProject.bin",Nf.VBA));Dl(a,s="xl/metadata."+r,Hp()),i.metadata.push(s),jf(t.wbrels,-1,"metadata."+r,Nf.XLMETA),u.length>1&&(Dl(a,s="xl/persons/person.xml",function(e){var t=[Bl,yc("personList",null,{xmlns:Ac,"xmlns:x":Fc[0]}).replace(/[\/]>/,">")];return e.forEach(function(e,r){t.push(yc("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:e,providerId:"None"}))}),t.push("</personList>"),t.join("")}(u)),i.people.push(s),jf(t.wbrels,-1,"persons/person.xml",Nf.PEOPLE));return Dl(a,"[Content_Types].xml",If(i,t)),Dl(a,"_rels/.rels",Ff(t.rels)),Dl(a,"xl/_rels/workbook."+r+".rels",Ff(t.wbrels)),delete t.revssf,delete t.ssf,a}(e,t)}function Ub(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Ys(e.slice(0,12));break;case"binary":r=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Hb(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return wg(e.slice(r),t);default:break e}return xd.to_workbook(e,t)}function Wb(e,t,r,n){return n?(r.type="string",xd.to_workbook(e,r)):xd.to_workbook(t,r)}function Vb(e,t){zs();var r=t||{};if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return Vb(new Uint8Array(e),((r=_l(r)).type="array",r));"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&!r.type&&(r.type="undefined"!=typeof Deno?"buffer":"array");var n,i=e,a=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),Gm={},r.dateNF&&(Gm.dateNF=r.dateNF),r.type||(r.type=Ks&&Buffer.isBuffer(e)?"buffer":"base64"),"file"==r.type&&(r.type=Ks?"buffer":"binary",i=function(e){if("undefined"!=typeof Deno)return Deno.readFileSync(e);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}(e),"undefined"==typeof Uint8Array||Ks||(r.type="array")),"string"==r.type&&(a=!0,r.type="binary",r.codepage=65001,i=function(e){return e.match(/[^\x00-\x7F]/)?cc(e):e}(e)),"array"==r.type&&"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var s=new Uint8Array(/* @__PURE__ */new ArrayBuffer(3));if(s.foo="bar",!s.foo)return(r=_l(r)).type="array",Vb(no(i),r)}switch((n=Ub(i,r))[0]){case 208:if(207===n[1]&&17===n[2]&&224===n[3]&&161===n[4]&&177===n[5]&&26===n[6]&&225===n[7])return function(e,t){return rl.find(e,"EncryptedPackage")?Bb(e,t):Fg(e,t)}(rl.read(i,r),r);break;case 9:if(n[1]<=8)return Fg(i,r);break;case 60:return wg(i,r);case 73:if(73===n[1]&&42===n[2]&&0===n[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===n[1])return function(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var i=wd.to_workbook(e,r);return r.WTF=n,i}catch(a){if(r.WTF=n,!a.message.match(/SYLK bad record ID/)&&n)throw a;return xd.to_workbook(e,t)}}(i,r);break;case 84:if(65===n[1]&&66===n[2]&&76===n[3])return _d.to_workbook(i,r);break;case 80:return 75===n[1]&&n[2]<9&&n[3]<9?function(e,t){var r=e,n=t||{};return n.type||(n.type=Ks&&Buffer.isBuffer(e)?"buffer":"base64"),Lb(jl(r,n),n)}(i,r):Wb(e,i,r,a);case 239:return 60===n[3]?wg(i,r):Wb(e,i,r,a);case 255:if(254===n[1])return function(e,t){var r=e;return"base64"==t.type&&(r=Ys(r)),r=Ws.utils.decode(1200,r.slice(2),"str"),t.type="binary",Hb(r,t)}(i,r);if(0===n[1]&&2===n[2]&&0===n[3])return Sd.to_workbook(i,r);break;case 0:if(0===n[1]){if(n[2]>=2&&0===n[3])return Sd.to_workbook(i,r);if(0===n[2]&&(8===n[3]||9===n[3]))return Sd.to_workbook(i,r)}break;case 3:case 131:case 139:case 140:return yd.to_workbook(i,r);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return Zd.to_workbook(i,r);break;case 10:case 13:case 32:return function(e,t){var r="",n=Ub(e,t);switch(t.type){case"base64":r=Ys(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=wl(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==n[0]&&187==n[1]&&191==n[2]&&(r=lc(r)),t.type="binary",Hb(r,t)}(i,r);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet")}return bd.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?yd.to_workbook(i,r):Wb(e,i,r,a)}function $b(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return il(t.file,rl.write(e,{type:Ks?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return rl.write(e,t)}function qb(e,t){var r=_l(t||{});return function(e,t){var r={},n=Ks?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";t.compression&&(r.compression="DEFLATE");if(t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?rl.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if("undefined"!=typeof Deno&&"string"==typeof i){if("binary"==t.type||"base64"==t.type)return i;i=new Uint8Array(to(i))}return t.password&&"undefined"!=typeof encrypt_agile?$b(encrypt_agile(i,t.password),t):"file"===t.type?il(t.file,i):"string"==t.type?lc(i):i}(zb(e,r),r)}function Xb(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Gs(cc(n));case"binary":return cc(n);case"string":return e;case"file":return il(t.file,n,"utf8");case"buffer":return Ks?Zs(n,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(n):Xb(n,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Gb(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return"base64"==t.type?Gs(r):"string"==t.type?lc(r):r;case"file":return il(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Yb(e,t){zs(),$v(e);var r=_l(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),"array"==r.type){r.type="binary";var n=Yb(e,r);return r.type="array",to(n)}var i=0;if(r.sheet&&(i="number"==typeof r.sheet?r.sheet:e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Xb(Eg(e,r),r);case"slk":case"sylk":return Xb(wd.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return Xb(function(e,t){var r=t||{},n=null!=r.header?r.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',i=null!=r.footer?r.footer:"</body></html>",a=[n],s=Bu(e["!ref"]);r.dense=Array.isArray(e),a.push(function(e,t,r){return[].join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}(0,0,r));for(var o=s.s.r;o<=s.e.r;++o)a.push(Zg(e,s,o,r));return a.push("</table>"+i),a.join("")}(e.Sheets[e.SheetNames[i]],r),r);case"txt":return function(e,t){switch(t.type){case"base64":return Gs(e);case"binary":case"string":return e;case"file":return il(t.file,e,"binary");case"buffer":return Ks?Zs(e,"binary"):e.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}(function(e,t){t||(t={});t.FS="\t",t.RS="\n";var r=ey(e,t);return r;var n=Ws.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}(e.Sheets[e.SheetNames[i]],r),r);case"csv":return Xb(ey(e.Sheets[e.SheetNames[i]],r),r,"\ufeff");case"dif":return Xb(_d.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return Gb(yd.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return Xb(xd.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return Xb(Zd.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return Xb(kd.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return Xb(ab(e,r),r);case"wk1":return Gb(Sd.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return Gb(Sd.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Gb(Yg(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),function(e,t){var r=t||{};return $b(jg(e,r),r)}(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return qb(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function Kb(e,t,r,n,i,a,s,o){var l=Pu(r),c=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),f=!0,h=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch(v){h.__rowNum__=r}else h.__rowNum__=r;if(!s||e[r])for(var d=t.s.c;d<=t.e.c;++d){var p=s?e[r][d]:e[n[d]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=a[d]){if(null==m)if("e"==p.t&&null===m)h[a[d]]=null;else if(void 0!==c)h[a[d]]=c;else{if(!u||null!==m)continue;h[a[d]]=null}else h[a[d]]=u&&("n"!==p.t||"n"===p.t&&!1!==o.rawNumbers)?m:Wu(p,m,o);null!=m&&(f=!1)}}else{if(void 0===c)continue;null!=a[d]&&(h[a[d]]=c)}}return{row:h,isempty:f}}function Zb(e,t){if(null==e||null==e["!ref"])return[];var r={t:"n",v:0},n=0,i=1,a=[],s=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?n=1:"A"===c.header?n=2:Array.isArray(c.header)?n=3:null==c.header&&(n=0),typeof u){case"string":l=Uu(u);break;case"number":(l=Uu(e["!ref"])).s.r=u;break;default:l=u}n>0&&(i=0);var f=Pu(l.s.r),h=[],d=[],p=0,m=0,v=Array.isArray(e),g=l.s.r,b=0,y={};v&&!e[g]&&(e[g]=[]);var w=c.skipHidden&&e["!cols"]||[],_=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(w[b]||{}).hidden)switch(h[b]=Fu(b),r=v?e[g][b]:e[h[b]+f],n){case 1:a[b]=b-l.s.c;break;case 2:a[b]=h[b];break;case 3:a[b]=c.header[b-l.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),o=s=Wu(r,null,c),m=y[s]||0){do{o=s+"_"+m++}while(y[o]);y[s]=m,y[o]=1}else y[s]=1;a[b]=o}for(g=l.s.r+i;g<=l.e.r;++g)if(!(_[g]||{}).hidden){var k=Kb(e,l,g,h,n,a,v,c);(!1===k.isempty||(1===n?!1!==c.blankrows:c.blankrows))&&(d[p++]=k.row)}return d.length=p,d}var Jb=/"/g;function Qb(e,t,r,n,i,a,s,o){for(var l=!0,c=[],u="",f=Pu(r),h=t.s.c;h<=t.e.c;++h)if(n[h]){var d=o.dense?(e[r]||[])[h]:e[n[h]+f];if(null==d)u="";else if(null!=d.v){l=!1,u=""+(o.rawNumbers&&"n"==d.t?d.v:Wu(d,null,o));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===i||m===a||34===m||o.forceQuotes){u='"'+u.replace(Jb,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==d.f||d.F?u="":(l=!1,(u="="+d.f).indexOf(",")>=0&&(u='"'+u.replace(Jb,'""')+'"'));c.push(u)}return!1===o.blankrows&&l?null:c.join(s)}function ey(e,t){var r=[],n=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=Uu(e["!ref"]),a=void 0!==n.FS?n.FS:",",s=a.charCodeAt(0),o=void 0!==n.RS?n.RS:"\n",l=o.charCodeAt(0),c=new RegExp(("|"==a?"\\|":a)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(h[p]||{}).hidden||(f[p]=Fu(p));for(var m=0,v=i.s.r;v<=i.e.r;++v)(d[v]||{}).hidden||null!=(u=Qb(e,i,v,f,s,l,a,n))&&(n.strip&&(u=u.replace(c,"")),(u||!1!==n.blankrows)&&r.push((m++?o:"")+u));return delete n.dense,r.join("")}function ty(e,t,r,n){var i=1;if(!r)for(;i<=65535&&-1!=e.SheetNames.indexOf(r="Sheet"+i);++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||r;for(++i;i<=65535&&-1!=e.SheetNames.indexOf(r=s+i);++i);}if(Vv(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}Ns.version;function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}z(),D();var ny=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],iy=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333","#000000"];function ay(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){return new Promise(function(r,n){var i=new XMLHttpRequest;i.open(t.method||"GET",e,!0),i.responseType=t.responseType||"arraybuffer",i.onload=function(){200===i.status?r(i.response):n(i.status)},i.onerror=function(){n(i.status)},i.withCredentials=t.withCredentials||!1,t.headers&&Object.keys(t.headers).forEach(function(e){i.setRequestHeader(e,t.headers[e])}),i.send(t.body)})}(function(e,t){return"string"==typeof e?e:e instanceof Blob?URL.createObjectURL(e):e instanceof ArrayBuffer?URL.createObjectURL(new Blob([e],t)):e instanceof Response?URL.createObjectURL(e.blob()):e}(e),t)}function sy(e){if("object"===P(e))return"#000000";if(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(e))return e.startsWith("#")?e:"#"+e;e=e.trim().toLowerCase();var t={};try{var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t.r=parseInt(r[2],16),t.g=parseInt(r[3],16),t.b=parseInt(r[4],16),t.a=parseInt(r[1],16)/255,Ya("rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(t.a,")")).toHexString()}catch(n){console.warn(n)}}function oy(e,t){return e>9?"#C7C9CC":void 0===t?ny[e]:t>0?function(e,t){for(var r=Ms(e),n=0;n<3;n++)r[n]=Math.floor((255-r[n])*t+r[n]);return Os(r[0],r[1],r[2])}(ny[e],t):function(e,t){for(var r=Ms(e),n=0;n<3;n++)r[n]=Math.floor(r[n]*(1-t));return Os(r[0],r[1],r[2])}(ny[e],Math.abs(t))}function ly(e){e.style=(0,As.cloneDeep)(e.style);var t=null;e.style.fill&&e.style.fill.fgColor&&(t=e.style.fill.fgColor.argb?sy(e.style.fill.fgColor.argb):e.style.fill.fgColor.hasOwnProperty("theme")?oy(e.style.fill.fgColor.theme,e.style.fill.fgColor.tint):e.style.fill.fgColor.indexed&&iy[e.style.fill.fgColor.indexed]||"#C7C9CC"),t&&(e.style.bgcolor=t);var r=null;if(e.style.font&&e.style.font.color&&(r=e.style.font.color.argb?sy(e.style.font.color.argb):e.style.font.color.hasOwnProperty("theme")?oy(e.style.font.color.theme,e.style.font.color.tint):e.style.font.color.indexed&&iy[e.style.font.color.indexed]||"#000000"),r&&(e.style.color=r),e.style.alignment&&(e.style.alignment.horizontal&&(e.style.align=e.style.alignment.horizontal),e.style.alignment.vertical&&(e.style.valign=e.style.alignment.vertical)),e.style.alignment&&e.style.alignment.wrapText&&(e.style.textwrap=!0),e.style.border){var n={};Object.keys(e.style.border).forEach(function(t){var r=e.style.border[t],i="#000000";"string"==typeof r.color?i=r.color:r.color&&(r.color.argb?i=sy(r.color.argb):r.color.hasOwnProperty("theme")?i=oy(r.color.theme,r.color.tint):r.color.indexed&&(i=iy[r.color.indexed])),n[t]=[r.style||"thin",i]}),e.style.border2=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(t){B(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e.style.border),e.style.border=n}return e.style.font&&e.style.font.size&&"number"==typeof e.style.font.size&&(e.style.font.size=Math.round(e.style.font.size/1.333333)),e.style}function cy(e,t){var r=[],n=[];return e.eachSheet(function(e){n.push(e);var i={name:e.name,styles:[],rows:{},cols:{},merges:[],media:[]},a=[];for(var s in e._merges){i.merges.push(e._merges[s].shortRange);var o={};o.startAddress=e._merges[s].tl,o.endAddress=e._merges[s].br,o.YRange=e._merges[s].model.bottom-e._merges[s].model.top,o.XRange=e._merges[s].model.right-e._merges[s].model.left,a.push(o)}var l=0;(e._rows||[]).forEach(function(e,r){i.rows[r]={cells:{}},e._hidden?(i.rows[r].height=.1,e._cells=[]):e.height?i.rows[r].height=e.height+(t.heightOffset||0):i.rows[r].height=24+(t.heightOffset||0),(e._cells||[]).forEach(function(e,t){i.rows[r].cells[t]={},l=Math.max(l,t);var n=(0,As.find)(a,function(t){return t.startAddress==e._address});n&&e.master.address!=n.startAddress||(n&&(i.rows[r].cells[t].merge=[n.YRange,n.XRange]),i.rows[r].cells[t].text=function(e){var t=e.numFmt,r=e.value;switch(e.type){case 2:try{if(e.style.numFmt){if(e.style.numFmt.endsWith("%")){var n=e.style.numFmt.match(/\.(\d+)%/);return n?(100*r).toFixed(n[1].length)+"%":100*r+"%"}if(/0(\.0+)?/.test(e.style.numFmt)){var i="";if(e.style.numFmt.startsWith("$")?i="$":e.style.numFmt.startsWith('"¥')&&(i="¥"),0===r&&e.style.numFmt.startsWith("_"))return"-";var a=e.style.numFmt.match(/0\.(0+)(_|;|$)/);a=a?a[1].length:0;var s=r.toFixed(a)+"";if(e.style.numFmt.includes("#,##")){for(var o=(s=s.split("."))[0].split("").reverse(),l=[],c=0;c<o.length;c++)l.push(o[c]),(c+1)%3==0&&c<o.length-1&&"-"!==o[c+1]&&l.push(",");s[0]=l.reverse().join(""),s=s.join(".")}return i+s}}return r+""}catch(u){return r}case 3:return r;case 4:switch(t){case"yyyy-mm-dd;@":default:return(0,Is.default)(r).format("YYYY-MM-DD");case"mm-dd-yy":return(0,Is.default)(r).format("YYYY/MM/DD");case"[$-F800]dddd, mmmm dd, yyyy":return(0,Is.default)(r).format("YYYY年M月D日 ddd");case'm"月"d"日";@':return(0,Is.default)(r).format("M月D日");case"yyyy/m/d h:mm;@":case'm/d/yy "h":mm':return(0,Is.default)(r).subtract(8,"hour").format("YYYY/M/DD HH:mm");case"h:mm;@":return(0,Is.default)(r).format("HH:mm")}case 5:return r.text;case 6:return(0,As.get)(r,"result.error")||r.result;case 8:return e.text;case 9:return e.text.toUpperCase();default:return r}}(e),i.styles.push(ly(e)),i.rows[r].cells[t].style=i.styles.length-1)})}),i._media&&(i.media=i._media);var c=Object.keys(i.rows);i.rows.len=Math.max(+c[c.length-1]+1,t.hasOwnProperty("minRowLength")?t.minRowLength:100),e._columns&&e._columns.length>l+1&&(e._columns=e._columns.slice(0,l+1)),function(e,t,r){for(var n=0;n<(e.columns||[]).length;n++)t.cols[n.toString()]={},e.columns[n]._hidden?t.cols[n.toString()].width=.1:e.columns[n].width?t.cols[n.toString()].width=6*e.columns[n].width+(r.widthOffset||0):t.cols[n.toString()].width=80+(r.widthOffset||0);t.cols.len=Math.max(Object.keys(t.cols).length,r.minColLength||0)}(e,i,t),r.push(i)}),e._worksheets=n,{workbookData:r,workbookSource:e,medias:e.media||[]}}var uy=[];function fy(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r&&r._media.length&&r._media.forEach(function(a){var s=a.imageId,o=a.range;if("image"===a.type){var l=function(e,t,r,n){for(var i,a,s=n.widthOffset,o=n.heightOffset,l=t.tl,c=t.br,u=t.ext,f=l||{},h=f.nativeCol,d=void 0===h?0:h,p=f.nativeColOff,m=void 0===p?0:p,v=f.nativeRow,g=void 0===v?0:v,b=f.nativeRowOff,y=void 0===b?0:b,w=hy,_=dy,k=0;k<d;k++){var x;w+=6*(null==e||null===(x=e._columns)||void 0===x||null===(x=x[k])||void 0===x?void 0:x.width)||py,w+=s||0}for(var S=0;S<g;S++){var T;_+=(null==e||null===(T=e._rows)||void 0===T||null===(T=T[S])||void 0===T?void 0:T.height)||my,_+=o||0}var E,C=w+m/12700,A=_+y/12700,M=c||{},O=M.nativeCol,R=void 0===O?0:O,I=M.nativeColOff,N=void 0===I?0:I,P=M.nativeRow,D=void 0===P?0:P,F=M.nativeRowOff,j=void 0===F?0:F,L=0;if(d===R&&c)L=(N-m)/12700;else if(c){var B;L=(6*(null==e||null===(B=e._columns)||void 0===B||null===(B=B[d])||void 0===B?void 0:B.width)||py)-m/12700;for(var z=d+1;z<R;z++){var U;L+=6*(null==e||null===(U=e._columns)||void 0===U||null===(U=U[z])||void 0===U?void 0:U.width)||py}L+=N/12700}else null!=u&&u.width&&(L=u.width/1.333333);if(g===D)E=(j-y)/12700;else if(c){var H;E=((null==e||null===(H=e._rows)||void 0===H||null===(H=H[g])||void 0===H?void 0:H.height)||my)-y/12700;for(var W=g+1;W<D;W++){var V;E+=(null==e||null===(V=e._rows)||void 0===V||null===(V=V[W])||void 0===V?void 0:V.height)||my}E+=j/12700}else null!=u&&u.height&&(E=u.height/1.333333);return{x:(C-((null==r||null===(i=r.scroll)||void 0===i?void 0:i.x)||0))*vy,y:(A-((null==r||null===(a=r.scroll)||void 0===a?void 0:a.y)||0))*vy,width:L*vy,height:E*vy}}(r,o,n,i);!function(e,t,r,n){(function(e,t){return new Promise(function(r,n){if(uy[e])return r(uy[e]);var i=t.buffer.buffer,a=new Blob([i],{type:"image/"+t.extension}),s=URL.createObjectURL(a),o=new Image;o.src=s,o.onload=function(){r(o),uy[e]=o},o.onerror=function(e){n(e)}})})(t,r).then(function(t){var r=0,i=0,a=t.width,s=t.height,o=n.x,l=n.y,c=n.width,u=n.height,f=c/a,h=u/s;if(o<hy*vy){var d=hy*vy-o;o=hy*vy,c-=d,a-=d/f,r+=d/f}if(l<dy*vy){var p=dy*vy-l;l=dy*vy,u-=p,s-=p/h,i+=p/h}var m=window.outerWidth/window.innerWidth;e.drawImage(t,r,i,a,s,o*m,l*m,c*m,u*m)}).catch(function(e){console.error(e)})}(e,s,t[s],l)}})}var hy=60,dy=25,py=80,my=24,vy=window.devicePixelRatio;function gy(){uy=[]}var by=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};function yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yy(Object(r),!0).forEach(function(t){B(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yy(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}N(),z();var _y={xls:!1,minColLength:20},ky=e({name:"VueOfficeExcel",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return wy({},_y)}}},emits:["rendered","error","switchSheet","cellSelected","cellsSelected","progress"],setup:function(e,s){var o=s.emit,l=i(null),c=i(null),u=i(null),f=i(null),h={_worksheets:[]},d=[],p=0,m=null,v=null,g=null,b=null,y=i(!1),w=i(""),_=i([]),k=i(-1);function x(t){b=t;var r=20;o("progress",r),function(e,t){try{t&&(e=Yb(Vb(e,{type:"array"}),{bookType:"xlsx",type:"array"}));var r=new Ha.Workbook;return r.xlsx.load(e).then(function(){return r})}catch(n){return console.warn(n),Promise.reject(n)}}(t,e.options.xls).then(function(t){if(o("progress",r=60),!t._worksheets||0===t._worksheets.length)throw new Error("未获取到数据,可能文件格式不正确或文件已损坏");e.options.beforeTransformData&&"function"==typeof e.options.beforeTransformData&&(t=e.options.beforeTransformData(t)),o("progress",r=70);var n=cy(t,wy(wy({},_y),e.options)),i=n.workbookData,a=n.medias,s=n.workbookSource;o("progress",r=85),e.options.transformData&&"function"==typeof e.options.transformData&&(i=e.options.transformData(i)),d=a,h=s,g=null,p=0,gy();var l=Math.max.apply(Math,I(i.map(function(e){var t;return(null===(t=e.rows)||void 0===t?void 0:t.len)||0}))).toString().length,c=Math.max(40,8*l+16);v.data.cols.indexWidth=c,v.loadData(i),fy(m,d,h._worksheets[p],g,e.options),o("progress",r=100),o("rendered"),o("switchSheet",0)}).catch(function(e){console.warn(e),d=[],h={_worksheets:[]},gy(),v&&v.loadData({}),o("error",e),o("switchSheet",0)})}function S(){y.value=!0,t(function(){var e;null===(e=u.value)||void 0===e||e.focus()})}function T(){if(!w.value)return _.value=[],void(k.value=-1);for(var e=v.datas[p],t=[],r=0;r<e.rows.len;r++)for(var n=0;n<e.cols.len;n++){var i=e.merges.getFirstIncludes(r,n);if(!i||r===i.sri&&n===i.sci){var a=e.getCell(r,n);a&&a.text&&"string"==typeof a.text&&a.text.includes(w.value)&&t.push({ri:r,ci:n,text:a.text})}}if(_.value=t,k.value=t.length>0?0:-1,t.length>0){var s=t[0];v.sheet.setSelector(s.ri,s.ci)}}n(function(){t(function(){(v=new wa(c.value,{mode:"read",showToolbar:!1,showContextmenu:e.options.showContextmenu||!1,view:{height:function(){return l.value&&l.value.clientHeight||300},width:function(){return l.value&&l.value.clientWidth||1200}},row:{height:24,len:100},col:{len:26,width:80,indexWidth:40,minWidth:40},autoFocus:!1}).loadData({})).on("cell-selected",function(e,t,r){o("cellSelected",{cell:e,rowIndex:t,columnIndex:r})}),v.on("cells-selected",function(e,t){var r=t.sri,n=t.sci,i=t.eri,a=t.eci;o("cellsSelected",{cell:e,startRowIndex:r,startColumnIndex:n,endRowIndex:i,endColumnIndex:a})});var t=v.topbar.swapFunc;v.topbar.swapFunc=function(r){t.call(v.topbar,r),p=r,g=v.sheet.data.getSelectedRect();var n=h._worksheets[p];if(n){var i,a,s=Math.max((null===(i=n.rows)||void 0===i?void 0:i.len)||0,(null===(a=n.data)||void 0===a?void 0:a.length)||0).toString().length,l=Math.max(40,8*s+16);v.data.cols.indexWidth=l}setTimeout(function(){v.reRender(),fy(m,d,h._worksheets[p],g,e.options),o("switchSheet",r)})};var r=(0,As.debounce)(fy,200,{leading:!0}),n=v.sheet.table.render;v.sheet.table.render=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];v&&v.sheet&&n.apply(v.sheet.table,i),r(m,d,h._worksheets[p],g,e.options)};var i=v.sheet.editor.setOffset;v.sheet.editor.setOffset=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i.apply(v.sheet.editor,t),g=t[0]},m=c.value.querySelector("canvas").getContext("2d"),e.src&&ay(e.src,e.requestOptions).then(x).catch(function(e){d=[],h={_worksheets:[]},v.loadData({}),o("error",e)});var a=c.value.querySelector(".x-spreadsheet-topbar");a&&f.value&&a.appendChild(f.value)}),window.addEventListener("keydown",C)}),r(function(){v=null,window.removeEventListener("keydown",C)}),a(function(){return e.src},function(){e.src?ay(e.src,e.requestOptions).then(x).catch(function(e){d=[],h={_worksheets:[]},v.loadData({}),o("error",e)}):(d=[],h={_worksheets:[]},v.loadData({}),o("error",/* @__PURE__ */new Error("src属性不能为空")))});var E=(0,As.debounce)(function(){T()},300);function C(e){(e.ctrlKey||e.metaKey)&&"f"===e.key&&(e.preventDefault(),S())}return{wrapperRef:l,rootRef:c,save:function(e){!function(e,t){Va.apply(this,arguments)}(e||"vue-office-excel-".concat(/* @__PURE__ */(new Date).getTime(),".xlsx"),b)},showSearch:y,searchText:w,searchResults:_,searchInput:u,searchContainerRef:f,openSearch:S,closeSearch:function(){y.value=!1,w.value="",_.value=[],k.value=-1},search:T,searchNext:function(){if(0!==_.value.length){k.value=(k.value+1)%_.value.length;var e=_.value[k.value];v.sheet.setSelector(e.ri,e.ci)}},searchPrev:function(){if(0!==_.value.length){k.value=(k.value-1+_.value.length)%_.value.length;var e=_.value[k.value];v.sheet.setSelector(e.ri,e.ci)}},handleSearchInput:E}}}),xy={class:"vue-office-excel",ref:"wrapperRef"},Sy={class:"vue-office-excel-search",ref:"searchContainerRef"},Ty={class:"search-input-wrapper"},Ey=/* @__PURE__ */o("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2",class:"search-icon"},[/* @__PURE__ */o("circle",{cx:"11",cy:"11",r:"8"}),/* @__PURE__ */o("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})],-1),Cy={class:"search-controls"},Ay=["disabled"],My=[/* @__PURE__ */o("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2"},[/* @__PURE__ */o("polyline",{points:"15 18 9 12 15 6"})],-1)],Oy=["disabled"],Ry=[/* @__PURE__ */o("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2"},[/* @__PURE__ */o("polyline",{points:"9 18 15 12 9 6"})],-1)],Iy=[/* @__PURE__ */o("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2"},[/* @__PURE__ */o("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),/* @__PURE__ */o("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)],Ny={class:"search-result"},Py=/* @__PURE__ */o("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",stroke:"none"},[/* @__PURE__ */o("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})],-1),Dy={class:"vue-office-excel-main",ref:"rootRef"};var Fy=/* @__PURE__ */by(ky,[["render",function(e,t,r,n,i,a){return l(),s("div",xy,[h(o("div",Sy,[o("div",Ty,[Ey,h(o("input",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.searchText=t}),onKeyup:[t[1]||(t[1]=d(function(t){t.stopPropagation(),e.searchNext()},["enter"])),t[2]||(t[2]=d(function(){return e.closeSearch&&e.closeSearch.apply(e,arguments)},["esc"]))],onInput:t[3]||(t[3]=function(){return e.handleSearchInput&&e.handleSearchInput.apply(e,arguments)}),class:"search-input",placeholder:"...",ref:"searchInput"},null,544),[[u,e.searchText]])]),o("div",Cy,[o("button",{onClick:t[4]||(t[4]=function(){return e.searchPrev&&e.searchPrev.apply(e,arguments)}),class:"search-btn",title:"上一个",disabled:0===e.searchResults.length},My,8,Ay),o("button",{onClick:t[5]||(t[5]=function(){return e.searchNext&&e.searchNext.apply(e,arguments)}),class:"search-btn",title:"下一个",disabled:0===e.searchResults.length},Ry,8,Oy),o("button",{onClick:t[6]||(t[6]=function(){return e.closeSearch&&e.closeSearch.apply(e,arguments)}),class:"search-btn",title:"关闭"},Iy)]),o("div",Ny,[Py,o("span",null,c(e.searchResults.length),1)])],512),[[f,e.showSearch]]),o("div",Dy,null,512)],512)}]]);Fy.install=function(e){e.component(Fy.name,Fy)};var jy=Fy;export{jy as default};
|