=1?p:0,new g(m,y,p,f).promise()}e.prototype.map=function(m,y){return b(this,m,y,null)},e.map=function(m,y,l,f){return b(m,y,l,f)}}),fr}var hr,cc;function Nf(){if(cc)return hr;cc=1;var e=Object.create;if(e){var n=e(null),t=e(null);n[" size"]=t[" size"]=0}return hr=function(i){var r=_e(),a=r.canEvaluate,o=r.isIdentifier,c,u;{var s=function(f){return new Function("ensureMethod",`
return function(obj) {
'use strict'
var len = this.length;
@@ -119,7 +119,7 @@ __p+='`),s}),a+=`';
`.replace(/methodName/g,f))(b)},d=function(f){return new Function("obj",`
'use strict';
return obj.propertyName;
- `.replace("propertyName",f))},g=function(f,p,h){var D=h[f];if(typeof D!="function"){if(!o(f))return null;if(D=p(f),h[f]=D,h[" size"]++,h[" size"]>512){for(var _=Object.keys(h),U=0;U<256;++U)delete h[_[U]];h[" size"]=_.length-256}}return D};c=function(f){return g(f,s,n)},u=function(f){return g(f,d,t)}}function b(f,p){var h;if(f!=null&&(h=f[p]),typeof h!="function"){var D="Object "+r.classString(f)+" has no method '"+r.toString(p)+"'";throw new i.TypeError(D)}return h}function m(f){var p=this.pop(),h=b(f,p);return h.apply(f,this)}i.prototype.call=function(f){for(var p=arguments.length,h=new Array(Math.max(p-1,0)),D=1;D=w)return A._fulfill();var I=m(D[U++]);if(I instanceof e&&I._isDisposable()){try{I=t(I._getDisposer().tryDispose(_),D.promise)}catch($){return b($)}if(I instanceof e)return I._then(N,b,null,null,null)}N()}return N(),A}function l(D,_,U){this._data=D,this._promise=_,this._context=U}l.prototype.data=function(){return this._data},l.prototype.promise=function(){return this._promise},l.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():g},l.prototype.tryDispose=function(D){var _=this.resource(),U=this._context;U!==void 0&&U._pushContext();var w=_!==g?this.doDispose(_,D):null;return U!==void 0&&U._popContext(),this._promise._unsetDisposable(),this._data=null,w},l.isDisposer=function(D){return D!=null&&typeof D.resource=="function"&&typeof D.tryDispose=="function"};function f(D,_,U){this.constructor$(D,_,U)}u(f,l),f.prototype.doDispose=function(D,_){var U=this.data();return U.call(D,D,_)};function p(D){return l.isDisposer(D)?(this.resources[this.index]._setDisposable(D),D.promise()):D}function h(D){this.length=D,this.promise=null,this[D-1]=null}h.prototype._resultCancelled=function(){for(var D=this.length,_=0;_0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(D){if(typeof D=="function")return new f(D,this,i());throw new c}}),pr}var gr,sc;function If(){return sc||(sc=1,gr=function(e,n,t){var i=_e(),r=e.TimeoutError;function a(g){this.handle=g}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var o=function(g){return c(+this).thenReturn(g)},c=e.delay=function(g,b){var m,y;return b!==void 0?(m=e.resolve(b)._then(o,null,null,g,void 0),t.cancellation()&&b instanceof e&&m._setOnCancel(b)):(m=new e(n),y=setTimeout(function(){m._fulfill()},+g),t.cancellation()&&m._setOnCancel(new a(y)),m._captureStackTrace()),m._setAsyncGuaranteed(),m};e.prototype.delay=function(g){return c(g,this)};var u=function(g,b,m){var y;typeof b!="string"?b instanceof Error?y=b:y=new r("operation timed out"):y=new r(b),i.markAsOriginatingFromRejection(y),g._attachExtraTrace(y),g._reject(y),m!=null&&m.cancel()};function s(g){return clearTimeout(this.handle),g}function d(g){throw clearTimeout(this.handle),g}e.prototype.timeout=function(g,b){g=+g;var m,y,l=new a(setTimeout(function(){m.isPending()&&u(m,b,y)},g));return t.cancellation()?(y=this.then(),m=y._then(s,d,void 0,l,void 0),m._setOnCancel(l)):m=this._then(s,d,void 0,l,void 0),m}}),gr}var mr,dc;function Lf(){return dc||(dc=1,mr=function(e,n,t,i,r,a){var o=wn(),c=o.TypeError,u=_e(),s=u.errorObj,d=u.tryCatch,g=[];function b(y,l,f){for(var p=0;p512){for(var _=Object.keys(h),U=0;U<256;++U)delete h[_[U]];h[" size"]=_.length-256}}return D};c=function(f){return g(f,s,n)},u=function(f){return g(f,d,t)}}function b(f,p){var h;if(f!=null&&(h=f[p]),typeof h!="function"){var D="Object "+r.classString(f)+" has no method '"+r.toString(p)+"'";throw new i.TypeError(D)}return h}function m(f){var p=this.pop(),h=b(f,p);return h.apply(f,this)}i.prototype.call=function(f){for(var p=arguments.length,h=new Array(Math.max(p-1,0)),D=1;D=w)return A._fulfill();var I=m(D[U++]);if(I instanceof e&&I._isDisposable()){try{I=t(I._getDisposer().tryDispose(_),D.promise)}catch($){return b($)}if(I instanceof e)return I._then(O,b,null,null,null)}O()}return O(),A}function l(D,_,U){this._data=D,this._promise=_,this._context=U}l.prototype.data=function(){return this._data},l.prototype.promise=function(){return this._promise},l.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():g},l.prototype.tryDispose=function(D){var _=this.resource(),U=this._context;U!==void 0&&U._pushContext();var w=_!==g?this.doDispose(_,D):null;return U!==void 0&&U._popContext(),this._promise._unsetDisposable(),this._data=null,w},l.isDisposer=function(D){return D!=null&&typeof D.resource=="function"&&typeof D.tryDispose=="function"};function f(D,_,U){this.constructor$(D,_,U)}u(f,l),f.prototype.doDispose=function(D,_){var U=this.data();return U.call(D,D,_)};function p(D){return l.isDisposer(D)?(this.resources[this.index]._setDisposable(D),D.promise()):D}function h(D){this.length=D,this.promise=null,this[D-1]=null}h.prototype._resultCancelled=function(){for(var D=this.length,_=0;_0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(D){if(typeof D=="function")return new f(D,this,i());throw new c}}),pr}var gr,sc;function If(){return sc||(sc=1,gr=function(e,n,t){var i=_e(),r=e.TimeoutError;function a(g){this.handle=g}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var o=function(g){return c(+this).thenReturn(g)},c=e.delay=function(g,b){var m,y;return b!==void 0?(m=e.resolve(b)._then(o,null,null,g,void 0),t.cancellation()&&b instanceof e&&m._setOnCancel(b)):(m=new e(n),y=setTimeout(function(){m._fulfill()},+g),t.cancellation()&&m._setOnCancel(new a(y)),m._captureStackTrace()),m._setAsyncGuaranteed(),m};e.prototype.delay=function(g){return c(g,this)};var u=function(g,b,m){var y;typeof b!="string"?b instanceof Error?y=b:y=new r("operation timed out"):y=new r(b),i.markAsOriginatingFromRejection(y),g._attachExtraTrace(y),g._reject(y),m!=null&&m.cancel()};function s(g){return clearTimeout(this.handle),g}function d(g){throw clearTimeout(this.handle),g}e.prototype.timeout=function(g,b){g=+g;var m,y,l=new a(setTimeout(function(){m.isPending()&&u(m,b,y)},g));return t.cancellation()?(y=this.then(),m=y._then(s,d,void 0,l,void 0),m._setOnCancel(l)):m=this._then(s,d,void 0,l,void 0),m}}),gr}var mr,dc;function Lf(){return dc||(dc=1,mr=function(e,n,t,i,r,a){var o=wn(),c=o.TypeError,u=_e(),s=u.errorObj,d=u.tryCatch,g=[];function b(y,l,f){for(var p=0;p=X;--F)x.push(F);for(var F=L+1;F<=3;++F)x.push(F);return x},w=function(L){return i.filledRange(L,"_arg","")},A=function(L){return i.filledRange(Math.max(L,3),"_arg","")},N=function(L){return typeof L.length=="number"?Math.max(Math.min(L.length,1024),0):0};_=function(L,x,X,F,R,B){var O=Math.max(0,N(F)-1),P=U(O),k=typeof L=="string"||x===t;function E(re){var se=w(re).join(", "),ue=re>0?", ":"",le;return k?le=`ret = callback.call(this, {{args}}, nodeback); break;
+`.replace("%s",x))}}}function h(L,x,X,F){for(var R=i.inheritedDataKeys(L),B=[],N=0;N=X;--F)x.push(F);for(var F=L+1;F<=3;++F)x.push(F);return x},w=function(L){return i.filledRange(L,"_arg","")},A=function(L){return i.filledRange(Math.max(L,3),"_arg","")},O=function(L){return typeof L.length=="number"?Math.max(Math.min(L.length,1024),0):0};_=function(L,x,X,F,R,B){var N=Math.max(0,O(F)-1),P=U(N),k=typeof L=="string"||x===t;function E(re){var se=w(re).join(", "),ue=re>0?", ":"",le;return k?le=`ret = callback.call(this, {{args}}, nodeback); break;
`:le=x===void 0?`ret = callback({{args}}, nodeback); break;
`:`ret = callback.call(receiver, {{args}}, nodeback); break;
`,le.replace("{{args}}",se).replace(", ",ue)}function Z(){for(var re="",se=0;se=this._length){var l;if(this._isMap)l=s(this._values);else{l={};for(var f=this.length(),p=0,h=this.length();p>1};function g(b){var m,y=t(b);if(a(y))y instanceof e?m=y._then(e.props,void 0,void 0,void 0,void 0):m=new d(y).promise();else return i(`cannot await properties of a non-object
+`);for(var N=i.inheritedDataKeys(L),P=0;P=this._length){var l;if(this._isMap)l=s(this._values);else{l={};for(var f=this.length(),p=0,h=this.length();p>1};function g(b){var m,y=t(b);if(a(y))y instanceof e?m=y._then(e.props,void 0,void 0,void 0,void 0):m=new d(y).promise();else return i(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`);return y instanceof e&&m._propagateFrom(y,2),m}e.prototype.props=function(){return g(this)},e.props=function(b){return g(b)}}),Dr}var vr,pc;function zf(){return pc||(pc=1,vr=function(e,n,t,i){var r=_e(),a=function(c){return c.then(function(u){return o(u,c)})};function o(c,u){var s=t(c);if(s instanceof e)return a(s);if(c=r.asArray(c),c===null)return i("expecting an array or an iterable object but got "+r.classString(c));var d=new e(n);u!==void 0&&d._propagateFrom(u,3);for(var g=d._fulfill,b=d._reject,m=0,y=c.length;m=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseFulfilled=function(o,c){var u=new i;return u._bitField=33554432,u._settledValueField=o,this._promiseResolved(c,u)},a.prototype._promiseRejected=function(o,c){var u=new i;return u._bitField=16777216,u._settledValueField=o,this._promiseResolved(c,u)},e.settle=function(o){return t.deprecated(".settle()",".reflect()"),new a(o).promise()},e.prototype.settle=function(){return e.settle(this)}}),_r}var Ur,bc;function Vf(){return bc||(bc=1,Ur=function(e,n,t){var i=_e(),r=wn().RangeError,a=wn().AggregateError,o=i.isArray,c={};function u(d){this.constructor$(d),this._howMany=0,this._unwrap=!1,this._initialized=!1}i.inherits(u,n),u.prototype._init=function(){if(this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var d=o(this._values);!this._isResolved()&&d&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(d){this._howMany=d},u.prototype._promiseFulfilled=function(d){return this._addFulfilled(d),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},u.prototype._promiseRejected=function(d){return this._addRejected(d),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof e||this._values==null?this._cancel():(this._addRejected(c),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var d=new a,g=this.length();g0?this._reject(d):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(d){this._values.push(d)},u.prototype._addFulfilled=function(d){this._values[this._totalResolved++]=d},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(d){var g="Input array must contain at least "+this._howMany+" items but contains only "+d+" items";return new r(g)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function s(d,g){if((g|0)!==g||g<0)return t(`expecting a positive integer
@@ -185,10 +185,10 @@ __p+='`),s}),a+=`';
`);var b=new u(d),m=b.promise();return b.setHowMany(g),b.init(),m}e.some=function(d,g){return s(d,g)},e.prototype.some=function(d){return s(this,d)},e._SomePromiseArray=u}),Ur}var Tr,yc;function Hf(){return yc||(yc=1,Tr=function(e,n){var t=e.map;e.prototype.filter=function(i,r){return t(this,i,r,n)},e.filter=function(i,r,a){return t(i,r,a,n)}}),Tr}var wr,Dc;function $f(){return Dc||(Dc=1,wr=function(e,n){var t=e.reduce,i=e.all;function r(){return i(this)}function a(o,c){return t(o,c,n,n)}e.prototype.each=function(o){return t(this,o,n,0)._then(r,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(o){return t(this,o,n,n)},e.each=function(o,c){return t(o,c,n,0)._then(r,void 0,void 0,o,void 0)},e.mapSeries=a}),wr}var Er,vc;function Gf(){return vc||(vc=1,Er=function(e){var n=e._SomePromiseArray;function t(i){var r=new n(i),a=r.promise();return r.setHowMany(1),r.setUnwrap(),r.init(),a}e.any=function(i){return t(i)},e.prototype.any=function(){return t(this)}}),Er}(function(e){e.exports=function(){var n=function(){return new b(`circular promise resolution chain
See http://goo.gl/MqrFmX
-`)},t=function(){return new T.PromiseInspection(this._target())},i=function(F){return T.reject(new b(F))};function r(){}var a={},o=_e(),c;o.isNode?c=function(){var F=process.domain;return F===void 0&&(F=null),F}:c=function(){return null},o.notEnumerableProp(T,"_getDomain",c);var u=rt(),s=xf(),d=new s;u.defineProperty(T,"_async",{value:d});var g=wn(),b=T.TypeError=g.TypeError;T.RangeError=g.RangeError;var m=T.CancellationError=g.CancellationError;T.TimeoutError=g.TimeoutError,T.OperationalError=g.OperationalError,T.RejectionError=g.OperationalError,T.AggregateError=g.AggregateError;var y=function(){},l={},f={},p=_f()(T,y),h=Uf()(T,y,p,i,r),D=Tf()(T),_=D.create,U=wf()(T,D);U.CapturedTrace;var w=Ef()(T,p),A=Af()(f),N=id(),I=o.errorObj,$=o.tryCatch;function Q(F,R){if(typeof R!="function")throw new b("expecting a function but got "+o.classString(R));if(F.constructor!==T)throw new b(`the promise constructor cannot be invoked directly
+`)},t=function(){return new T.PromiseInspection(this._target())},i=function(F){return T.reject(new b(F))};function r(){}var a={},o=_e(),c;o.isNode?c=function(){var F=process.domain;return F===void 0&&(F=null),F}:c=function(){return null},o.notEnumerableProp(T,"_getDomain",c);var u=rt(),s=xf(),d=new s;u.defineProperty(T,"_async",{value:d});var g=wn(),b=T.TypeError=g.TypeError;T.RangeError=g.RangeError;var m=T.CancellationError=g.CancellationError;T.TimeoutError=g.TimeoutError,T.OperationalError=g.OperationalError,T.RejectionError=g.OperationalError,T.AggregateError=g.AggregateError;var y=function(){},l={},f={},p=_f()(T,y),h=Uf()(T,y,p,i,r),D=Tf()(T),_=D.create,U=wf()(T,D);U.CapturedTrace;var w=Ef()(T,p),A=Af()(f),O=id(),I=o.errorObj,$=o.tryCatch;function Q(F,R){if(typeof R!="function")throw new b("expecting a function but got "+o.classString(R));if(F.constructor!==T)throw new b(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
-`)}function T(F){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,F!==y&&(Q(this,F),this._resolveFromExecutor(F)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}T.prototype.toString=function(){return"[object Promise]"},T.prototype.caught=T.prototype.catch=function(F){var R=arguments.length;if(R>1){var B=new Array(R-1),O=0,P;for(P=0;P0&&typeof F!="function"&&typeof R!="function"){var B=".then() only accepts functions but was passed: "+o.classString(F);arguments.length>1&&(B+=", "+o.classString(R)),this._warn(B)}return this._then(F,R,void 0,void 0,void 0)},T.prototype.done=function(F,R){var B=this._then(F,R,void 0,void 0,void 0);B._setIsFinal()},T.prototype.spread=function(F){return typeof F!="function"?i("expecting a function but got "+o.classString(F)):this.all()._then(F,void 0,void 0,l,void 0)},T.prototype.toJSON=function(){var F={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(F.fulfillmentValue=this.value(),F.isFulfilled=!0):this.isRejected()&&(F.rejectionReason=this.reason(),F.isRejected=!0),F},T.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new h(this).promise()},T.prototype.error=function(F){return this.caught(o.originatesFromRejection,F)},T.getNewLibraryCopy=e.exports,T.is=function(F){return F instanceof T},T.fromNode=T.fromCallback=function(F){var R=new T(y);R._captureStackTrace();var B=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,O=$(F)(N(R,B));return O===I&&R._rejectCallback(O.e,!0),R._isFateSealed()||R._setAsyncGuaranteed(),R},T.all=function(F){return new h(F).promise()},T.cast=function(F){var R=p(F);return R instanceof T||(R=new T(y),R._captureStackTrace(),R._setFulfilled(),R._rejectionHandler0=F),R},T.resolve=T.fulfilled=T.cast,T.reject=T.rejected=function(F){var R=new T(y);return R._captureStackTrace(),R._rejectCallback(F,!0),R},T.setScheduler=function(F){if(typeof F!="function")throw new b("expecting a function but got "+o.classString(F));return d.setScheduler(F)},T.prototype._then=function(F,R,B,O,P){var k=P!==void 0,E=k?P:new T(y),Z=this._target(),J=Z._bitField;k||(E._propagateFrom(this,3),E._captureStackTrace(),O===void 0&&this._bitField&2097152&&(J&50397184?O=this._boundValue():O=Z===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,E));var K=c();if(J&50397184){var re,se,ue=Z._settlePromiseCtx;J&33554432?(se=Z._rejectionHandler0,re=F):J&16777216?(se=Z._fulfillmentHandler0,re=R,Z._unsetRejectionIsUnhandled()):(ue=Z._settlePromiseLateCancellationObserver,se=new m("late cancellation observer"),Z._attachExtraTrace(se),re=R),d.invoke(ue,Z,{handler:K===null?re:typeof re=="function"&&o.domainBind(K,re),promise:E,receiver:O,value:se})}else Z._addCallbacks(F,R,E,O,K);return E},T.prototype._length=function(){return this._bitField&65535},T.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},T.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},T.prototype._setLength=function(F){this._bitField=this._bitField&-65536|F&65535},T.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},T.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},T.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},T.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},T.prototype._isFinal=function(){return(this._bitField&4194304)>0},T.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},T.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},T.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},T.prototype._setAsyncGuaranteed=function(){d.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},T.prototype._receiverAt=function(F){var R=F===0?this._receiver0:this[F*4-4+3];if(R!==a)return R===void 0&&this._isBound()?this._boundValue():R},T.prototype._promiseAt=function(F){return this[F*4-4+2]},T.prototype._fulfillmentHandlerAt=function(F){return this[F*4-4+0]},T.prototype._rejectionHandlerAt=function(F){return this[F*4-4+1]},T.prototype._boundValue=function(){},T.prototype._migrateCallback0=function(F){F._bitField;var R=F._fulfillmentHandler0,B=F._rejectionHandler0,O=F._promise0,P=F._receiverAt(0);P===void 0&&(P=a),this._addCallbacks(R,B,O,P,null)},T.prototype._migrateCallbackAt=function(F,R){var B=F._fulfillmentHandlerAt(R),O=F._rejectionHandlerAt(R),P=F._promiseAt(R),k=F._receiverAt(R);k===void 0&&(k=a),this._addCallbacks(B,O,P,k,null)},T.prototype._addCallbacks=function(F,R,B,O,P){var k=this._length();if(k>=65535-4&&(k=0,this._setLength(0)),k===0)this._promise0=B,this._receiver0=O,typeof F=="function"&&(this._fulfillmentHandler0=P===null?F:o.domainBind(P,F)),typeof R=="function"&&(this._rejectionHandler0=P===null?R:o.domainBind(P,R));else{var E=k*4-4;this[E+2]=B,this[E+3]=O,typeof F=="function"&&(this[E+0]=P===null?F:o.domainBind(P,F)),typeof R=="function"&&(this[E+1]=P===null?R:o.domainBind(P,R))}return this._setLength(k+1),k},T.prototype._proxy=function(F,R){this._addCallbacks(void 0,void 0,R,F,null)},T.prototype._resolveCallback=function(F,R){if(!(this._bitField&117506048)){if(F===this)return this._rejectCallback(n(),!1);var B=p(F,this);if(!(B instanceof T))return this._fulfill(F);R&&this._propagateFrom(B,2);var O=B._target();if(O===this){this._reject(n());return}var P=O._bitField;if(P&50397184)if(P&33554432)this._fulfill(O._value());else if(P&16777216)this._reject(O._reason());else{var Z=new m("late cancellation observer");O._attachExtraTrace(Z),this._reject(Z)}else{var k=this._length();k>0&&O._migrateCallback0(this);for(var E=1;E>>16)){if(F===this){var B=n();return this._attachExtraTrace(B),this._reject(B)}this._setFulfilled(),this._rejectionHandler0=F,(R&65535)>0&&(R&134217728?this._settlePromises():d.settlePromises(this))}},T.prototype._reject=function(F){var R=this._bitField;if(!((R&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=F,this._isFinal())return d.fatalError(F,o.isNode);(R&65535)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},T.prototype._fulfillPromises=function(F,R){for(var B=1;B0){if(F&16842752){var B=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,B,F),this._rejectPromises(R,B)}else{var O=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,O,F),this._fulfillPromises(R,O)}this._setLength(0)}this._clearCancellationData()},T.prototype._settledValue=function(){var F=this._bitField;if(F&33554432)return this._rejectionHandler0;if(F&16777216)return this._fulfillmentHandler0};function L(F){this.promise._resolveCallback(F)}function x(F){this.promise._rejectCallback(F,!1)}T.defer=T.pending=function(){U.deprecated("Promise.defer","new Promise");var F=new T(y);return{promise:F,resolve:L,reject:x}},o.notEnumerableProp(T,"_makeSelfResolutionError",n),Ff()(T,y,p,i,U),Cf()(T,y,p,U),Sf()(T,h,i,U),Bf()(T),kf()(T),Wf()(T,h,p,y,d,c),T.Promise=T,T.version="3.4.7",Rf()(T,h,i,p,y,U),Of()(T),Nf()(T,i,p,_,y,U),If()(T,y,U),Lf()(T,i,y,p,r,U),Mf()(T),qf()(T,y),Pf()(T,h,p,i),zf()(T,y,p,i),jf()(T,h,i,p,y,U),Xf()(T,h,U),Vf()(T,h,i),Hf()(T,y),$f()(T,y),Gf()(T),o.toFastProperties(T),o.toFastProperties(T.prototype);function X(F){var R=new T(y);R._fulfillmentHandler0=F,R._rejectionHandler0=F,R._promise0=F,R._receiver0=F}return X({a:1}),X({b:2}),X({c:3}),X(1),X(function(){}),X(void 0),X(!1),X(new T(y)),U.setBounds(s.firstLineError,o.lastLineError),T}})(td);var Zf=td.exports,Yf=we,Pe=Zf();Fe.defer=Kf;Fe.when=Pe.resolve;Fe.resolve=Pe.resolve;Fe.all=Pe.all;Fe.props=Pe.props;Fe.reject=Pe.reject;Fe.promisify=Pe.promisify;Fe.mapSeries=Pe.mapSeries;Fe.attempt=Pe.attempt;Fe.nfcall=function(e){var n=Array.prototype.slice.call(arguments,1),t=Pe.promisify(e);return t.apply(null,n)};Pe.prototype.fail=Pe.prototype.caught;Pe.prototype.also=function(e){return this.then(function(n){var t=Yf.extend({},n,e(n));return Pe.props(t)})};function Kf(){var e,n,t=new Pe.Promise(function(i,r){e=i,n=r});return{resolve:e,reject:n,promise:t}}var pe={},Qf=we,Se=pe.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function Jf(e,n){return n=n||{},{type:Se.document,children:e,notes:n.notes||new mi({}),comments:n.comments||[]}}function eh(e,n){n=n||{};var t=n.indent||{};return{type:Se.paragraph,children:e,styleId:n.styleId||null,styleName:n.styleName||null,numbering:n.numbering||null,alignment:n.alignment||null,indent:{start:t.start||null,end:t.end||null,firstLine:t.firstLine||null,hanging:t.hanging||null}}}function nh(e,n){return n=n||{},{type:Se.run,children:e,styleId:n.styleId||null,styleName:n.styleName||null,isBold:!!n.isBold,isUnderline:!!n.isUnderline,isItalic:!!n.isItalic,isStrikethrough:!!n.isStrikethrough,isAllCaps:!!n.isAllCaps,isSmallCaps:!!n.isSmallCaps,verticalAlignment:n.verticalAlignment||rd.baseline,font:n.font||null,fontSize:n.fontSize||null,highlight:n.highlight||null}}var rd={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function th(e){return{type:Se.text,value:e}}function ih(){return{type:Se.tab}}function rh(e){return{type:Se.checkbox,checked:e.checked}}function ah(e,n){return{type:Se.hyperlink,children:e,href:n.href,anchor:n.anchor,targetFrame:n.targetFrame}}function oh(e){return{type:Se.noteReference,noteType:e.noteType,noteId:e.noteId}}function mi(e){this._notes=Qf.indexBy(e,function(n){return ad(n.noteType,n.noteId)})}mi.prototype.resolve=function(e){return this.findNoteByKey(ad(e.noteType,e.noteId))};mi.prototype.findNoteByKey=function(e){return this._notes[e]||null};function ch(e){return{type:Se.note,noteType:e.noteType,noteId:e.noteId,body:e.body}}function uh(e){return{type:Se.commentReference,commentId:e.commentId}}function sh(e){return{type:Se.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}}function ad(e,n){return e+"-"+n}function dh(e){return{type:Se.image,read:function(n){return n?e.readImage(n):e.readImage().then(function(t){return Buffer.from(t)})},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage("base64")},readAsBuffer:function(){return e.readImage().then(function(n){return Buffer.from(n)})},altText:e.altText,contentType:e.contentType}}function lh(e,n){return n=n||{},{type:Se.table,children:e,styleId:n.styleId||null,styleName:n.styleName||null}}function fh(e,n){return n=n||{},{type:Se.tableRow,children:e,isHeader:n.isHeader||!1}}function hh(e,n){return n=n||{},{type:Se.tableCell,children:e,colSpan:n.colSpan==null?1:n.colSpan,rowSpan:n.rowSpan==null?1:n.rowSpan}}function Ya(e){return{type:Se.break,breakType:e}}function ph(e){return{type:Se.bookmarkStart,name:e.name}}pe.document=pe.Document=Jf;pe.paragraph=pe.Paragraph=eh;pe.run=pe.Run=nh;pe.text=pe.Text=th;pe.tab=pe.Tab=ih;pe.checkbox=pe.Checkbox=rh;pe.Hyperlink=ah;pe.noteReference=pe.NoteReference=oh;pe.Notes=mi;pe.Note=ch;pe.commentReference=uh;pe.comment=sh;pe.Image=dh;pe.Table=lh;pe.TableRow=fh;pe.TableCell=hh;pe.lineBreak=Ya("line");pe.pageBreak=Ya("page");pe.columnBreak=Ya("column");pe.BookmarkStart=ph;pe.verticalAlignment=rd;var Ge={},xt=we;Ge.Result=sn;Ge.success=gh;Ge.warning=mh;Ge.error=bh;function sn(e,n){this.value=e,this.messages=n||[]}sn.prototype.map=function(e){return new sn(e(this.value),this.messages)};sn.prototype.flatMap=function(e){var n=e(this.value);return new sn(n.value,Ka([this,n]))};sn.prototype.flatMapThen=function(e){var n=this;return e(this.value).then(function(t){return new sn(t.value,Ka([n,t]))})};sn.combine=function(e){var n=xt.flatten(xt.pluck(e,"value")),t=Ka(e);return new sn(n,t)};function gh(e){return new sn(e,[])}function mh(e){return{type:"warning",message:e}}function bh(e){return{type:"error",message:e.message,error:e}}function Ka(e){var n=[];return xt.flatten(xt.pluck(e,"messages"),!0).forEach(function(t){yh(n,t)||n.push(t)}),n}function yh(e,n){return xt.find(e,Dh.bind(null,n))!==void 0}function Dh(e,n){return e.type===n.type&&e.message===n.message}var Bt={},bi={};bi.byteLength=_h;bi.toByteArray=Th;bi.fromByteArray=Ah;var on=[],Ye=[],vh=typeof Uint8Array<"u"?Uint8Array:Array,Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var qn=0,xh=Ar.length;qn0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=n);var i=t===n?0:4-t%4;return[t,i]}function _h(e){var n=od(e),t=n[0],i=n[1];return(t+i)*3/4-i}function Uh(e,n,t){return(n+t)*3/4-t}function Th(e){var n,t=od(e),i=t[0],r=t[1],a=new vh(Uh(e,i,r)),o=0,c=r>0?i-4:i,u;for(u=0;u>16&255,a[o++]=n>>8&255,a[o++]=n&255;return r===2&&(n=Ye[e.charCodeAt(u)]<<2|Ye[e.charCodeAt(u+1)]>>4,a[o++]=n&255),r===1&&(n=Ye[e.charCodeAt(u)]<<10|Ye[e.charCodeAt(u+1)]<<4|Ye[e.charCodeAt(u+2)]>>2,a[o++]=n>>8&255,a[o++]=n&255),a}function wh(e){return on[e>>18&63]+on[e>>12&63]+on[e>>6&63]+on[e&63]}function Eh(e,n,t){for(var i,r=[],a=n;ac?c:o+a));return i===1?(n=e[t-1],r.push(on[n>>2]+on[n<<4&63]+"==")):i===2&&(n=(e[t-2]<<8)+e[t-1],r.push(on[n>>10]+on[n>>4&63]+on[n<<2&63]+"=")),r.join("")}function Mt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cd={exports:{}};/*!
+`)}function T(F){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,F!==y&&(Q(this,F),this._resolveFromExecutor(F)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}T.prototype.toString=function(){return"[object Promise]"},T.prototype.caught=T.prototype.catch=function(F){var R=arguments.length;if(R>1){var B=new Array(R-1),N=0,P;for(P=0;P0&&typeof F!="function"&&typeof R!="function"){var B=".then() only accepts functions but was passed: "+o.classString(F);arguments.length>1&&(B+=", "+o.classString(R)),this._warn(B)}return this._then(F,R,void 0,void 0,void 0)},T.prototype.done=function(F,R){var B=this._then(F,R,void 0,void 0,void 0);B._setIsFinal()},T.prototype.spread=function(F){return typeof F!="function"?i("expecting a function but got "+o.classString(F)):this.all()._then(F,void 0,void 0,l,void 0)},T.prototype.toJSON=function(){var F={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(F.fulfillmentValue=this.value(),F.isFulfilled=!0):this.isRejected()&&(F.rejectionReason=this.reason(),F.isRejected=!0),F},T.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new h(this).promise()},T.prototype.error=function(F){return this.caught(o.originatesFromRejection,F)},T.getNewLibraryCopy=e.exports,T.is=function(F){return F instanceof T},T.fromNode=T.fromCallback=function(F){var R=new T(y);R._captureStackTrace();var B=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,N=$(F)(O(R,B));return N===I&&R._rejectCallback(N.e,!0),R._isFateSealed()||R._setAsyncGuaranteed(),R},T.all=function(F){return new h(F).promise()},T.cast=function(F){var R=p(F);return R instanceof T||(R=new T(y),R._captureStackTrace(),R._setFulfilled(),R._rejectionHandler0=F),R},T.resolve=T.fulfilled=T.cast,T.reject=T.rejected=function(F){var R=new T(y);return R._captureStackTrace(),R._rejectCallback(F,!0),R},T.setScheduler=function(F){if(typeof F!="function")throw new b("expecting a function but got "+o.classString(F));return d.setScheduler(F)},T.prototype._then=function(F,R,B,N,P){var k=P!==void 0,E=k?P:new T(y),Z=this._target(),J=Z._bitField;k||(E._propagateFrom(this,3),E._captureStackTrace(),N===void 0&&this._bitField&2097152&&(J&50397184?N=this._boundValue():N=Z===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,E));var K=c();if(J&50397184){var re,se,ue=Z._settlePromiseCtx;J&33554432?(se=Z._rejectionHandler0,re=F):J&16777216?(se=Z._fulfillmentHandler0,re=R,Z._unsetRejectionIsUnhandled()):(ue=Z._settlePromiseLateCancellationObserver,se=new m("late cancellation observer"),Z._attachExtraTrace(se),re=R),d.invoke(ue,Z,{handler:K===null?re:typeof re=="function"&&o.domainBind(K,re),promise:E,receiver:N,value:se})}else Z._addCallbacks(F,R,E,N,K);return E},T.prototype._length=function(){return this._bitField&65535},T.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},T.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},T.prototype._setLength=function(F){this._bitField=this._bitField&-65536|F&65535},T.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},T.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},T.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},T.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},T.prototype._isFinal=function(){return(this._bitField&4194304)>0},T.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},T.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},T.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},T.prototype._setAsyncGuaranteed=function(){d.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},T.prototype._receiverAt=function(F){var R=F===0?this._receiver0:this[F*4-4+3];if(R!==a)return R===void 0&&this._isBound()?this._boundValue():R},T.prototype._promiseAt=function(F){return this[F*4-4+2]},T.prototype._fulfillmentHandlerAt=function(F){return this[F*4-4+0]},T.prototype._rejectionHandlerAt=function(F){return this[F*4-4+1]},T.prototype._boundValue=function(){},T.prototype._migrateCallback0=function(F){F._bitField;var R=F._fulfillmentHandler0,B=F._rejectionHandler0,N=F._promise0,P=F._receiverAt(0);P===void 0&&(P=a),this._addCallbacks(R,B,N,P,null)},T.prototype._migrateCallbackAt=function(F,R){var B=F._fulfillmentHandlerAt(R),N=F._rejectionHandlerAt(R),P=F._promiseAt(R),k=F._receiverAt(R);k===void 0&&(k=a),this._addCallbacks(B,N,P,k,null)},T.prototype._addCallbacks=function(F,R,B,N,P){var k=this._length();if(k>=65535-4&&(k=0,this._setLength(0)),k===0)this._promise0=B,this._receiver0=N,typeof F=="function"&&(this._fulfillmentHandler0=P===null?F:o.domainBind(P,F)),typeof R=="function"&&(this._rejectionHandler0=P===null?R:o.domainBind(P,R));else{var E=k*4-4;this[E+2]=B,this[E+3]=N,typeof F=="function"&&(this[E+0]=P===null?F:o.domainBind(P,F)),typeof R=="function"&&(this[E+1]=P===null?R:o.domainBind(P,R))}return this._setLength(k+1),k},T.prototype._proxy=function(F,R){this._addCallbacks(void 0,void 0,R,F,null)},T.prototype._resolveCallback=function(F,R){if(!(this._bitField&117506048)){if(F===this)return this._rejectCallback(n(),!1);var B=p(F,this);if(!(B instanceof T))return this._fulfill(F);R&&this._propagateFrom(B,2);var N=B._target();if(N===this){this._reject(n());return}var P=N._bitField;if(P&50397184)if(P&33554432)this._fulfill(N._value());else if(P&16777216)this._reject(N._reason());else{var Z=new m("late cancellation observer");N._attachExtraTrace(Z),this._reject(Z)}else{var k=this._length();k>0&&N._migrateCallback0(this);for(var E=1;E>>16)){if(F===this){var B=n();return this._attachExtraTrace(B),this._reject(B)}this._setFulfilled(),this._rejectionHandler0=F,(R&65535)>0&&(R&134217728?this._settlePromises():d.settlePromises(this))}},T.prototype._reject=function(F){var R=this._bitField;if(!((R&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=F,this._isFinal())return d.fatalError(F,o.isNode);(R&65535)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},T.prototype._fulfillPromises=function(F,R){for(var B=1;B0){if(F&16842752){var B=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,B,F),this._rejectPromises(R,B)}else{var N=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,N,F),this._fulfillPromises(R,N)}this._setLength(0)}this._clearCancellationData()},T.prototype._settledValue=function(){var F=this._bitField;if(F&33554432)return this._rejectionHandler0;if(F&16777216)return this._fulfillmentHandler0};function L(F){this.promise._resolveCallback(F)}function x(F){this.promise._rejectCallback(F,!1)}T.defer=T.pending=function(){U.deprecated("Promise.defer","new Promise");var F=new T(y);return{promise:F,resolve:L,reject:x}},o.notEnumerableProp(T,"_makeSelfResolutionError",n),Ff()(T,y,p,i,U),Cf()(T,y,p,U),Sf()(T,h,i,U),Bf()(T),kf()(T),Wf()(T,h,p,y,d,c),T.Promise=T,T.version="3.4.7",Rf()(T,h,i,p,y,U),Nf()(T),Of()(T,i,p,_,y,U),If()(T,y,U),Lf()(T,i,y,p,r,U),Mf()(T),qf()(T,y),Pf()(T,h,p,i),zf()(T,y,p,i),jf()(T,h,i,p,y,U),Xf()(T,h,U),Vf()(T,h,i),Hf()(T,y),$f()(T,y),Gf()(T),o.toFastProperties(T),o.toFastProperties(T.prototype);function X(F){var R=new T(y);R._fulfillmentHandler0=F,R._rejectionHandler0=F,R._promise0=F,R._receiver0=F}return X({a:1}),X({b:2}),X({c:3}),X(1),X(function(){}),X(void 0),X(!1),X(new T(y)),U.setBounds(s.firstLineError,o.lastLineError),T}})(td);var Zf=td.exports,Yf=we,Pe=Zf();Fe.defer=Kf;Fe.when=Pe.resolve;Fe.resolve=Pe.resolve;Fe.all=Pe.all;Fe.props=Pe.props;Fe.reject=Pe.reject;Fe.promisify=Pe.promisify;Fe.mapSeries=Pe.mapSeries;Fe.attempt=Pe.attempt;Fe.nfcall=function(e){var n=Array.prototype.slice.call(arguments,1),t=Pe.promisify(e);return t.apply(null,n)};Pe.prototype.fail=Pe.prototype.caught;Pe.prototype.also=function(e){return this.then(function(n){var t=Yf.extend({},n,e(n));return Pe.props(t)})};function Kf(){var e,n,t=new Pe.Promise(function(i,r){e=i,n=r});return{resolve:e,reject:n,promise:t}}var pe={},Qf=we,Se=pe.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function Jf(e,n){return n=n||{},{type:Se.document,children:e,notes:n.notes||new mi({}),comments:n.comments||[]}}function eh(e,n){n=n||{};var t=n.indent||{};return{type:Se.paragraph,children:e,styleId:n.styleId||null,styleName:n.styleName||null,numbering:n.numbering||null,alignment:n.alignment||null,indent:{start:t.start||null,end:t.end||null,firstLine:t.firstLine||null,hanging:t.hanging||null}}}function nh(e,n){return n=n||{},{type:Se.run,children:e,styleId:n.styleId||null,styleName:n.styleName||null,isBold:!!n.isBold,isUnderline:!!n.isUnderline,isItalic:!!n.isItalic,isStrikethrough:!!n.isStrikethrough,isAllCaps:!!n.isAllCaps,isSmallCaps:!!n.isSmallCaps,verticalAlignment:n.verticalAlignment||rd.baseline,font:n.font||null,fontSize:n.fontSize||null,highlight:n.highlight||null}}var rd={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function th(e){return{type:Se.text,value:e}}function ih(){return{type:Se.tab}}function rh(e){return{type:Se.checkbox,checked:e.checked}}function ah(e,n){return{type:Se.hyperlink,children:e,href:n.href,anchor:n.anchor,targetFrame:n.targetFrame}}function oh(e){return{type:Se.noteReference,noteType:e.noteType,noteId:e.noteId}}function mi(e){this._notes=Qf.indexBy(e,function(n){return ad(n.noteType,n.noteId)})}mi.prototype.resolve=function(e){return this.findNoteByKey(ad(e.noteType,e.noteId))};mi.prototype.findNoteByKey=function(e){return this._notes[e]||null};function ch(e){return{type:Se.note,noteType:e.noteType,noteId:e.noteId,body:e.body}}function uh(e){return{type:Se.commentReference,commentId:e.commentId}}function sh(e){return{type:Se.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}}function ad(e,n){return e+"-"+n}function dh(e){return{type:Se.image,read:function(n){return n?e.readImage(n):e.readImage().then(function(t){return Buffer.from(t)})},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage("base64")},readAsBuffer:function(){return e.readImage().then(function(n){return Buffer.from(n)})},altText:e.altText,contentType:e.contentType}}function lh(e,n){return n=n||{},{type:Se.table,children:e,styleId:n.styleId||null,styleName:n.styleName||null}}function fh(e,n){return n=n||{},{type:Se.tableRow,children:e,isHeader:n.isHeader||!1}}function hh(e,n){return n=n||{},{type:Se.tableCell,children:e,colSpan:n.colSpan==null?1:n.colSpan,rowSpan:n.rowSpan==null?1:n.rowSpan}}function Ya(e){return{type:Se.break,breakType:e}}function ph(e){return{type:Se.bookmarkStart,name:e.name}}pe.document=pe.Document=Jf;pe.paragraph=pe.Paragraph=eh;pe.run=pe.Run=nh;pe.text=pe.Text=th;pe.tab=pe.Tab=ih;pe.checkbox=pe.Checkbox=rh;pe.Hyperlink=ah;pe.noteReference=pe.NoteReference=oh;pe.Notes=mi;pe.Note=ch;pe.commentReference=uh;pe.comment=sh;pe.Image=dh;pe.Table=lh;pe.TableRow=fh;pe.TableCell=hh;pe.lineBreak=Ya("line");pe.pageBreak=Ya("page");pe.columnBreak=Ya("column");pe.BookmarkStart=ph;pe.verticalAlignment=rd;var Ge={},xt=we;Ge.Result=sn;Ge.success=gh;Ge.warning=mh;Ge.error=bh;function sn(e,n){this.value=e,this.messages=n||[]}sn.prototype.map=function(e){return new sn(e(this.value),this.messages)};sn.prototype.flatMap=function(e){var n=e(this.value);return new sn(n.value,Ka([this,n]))};sn.prototype.flatMapThen=function(e){var n=this;return e(this.value).then(function(t){return new sn(t.value,Ka([n,t]))})};sn.combine=function(e){var n=xt.flatten(xt.pluck(e,"value")),t=Ka(e);return new sn(n,t)};function gh(e){return new sn(e,[])}function mh(e){return{type:"warning",message:e}}function bh(e){return{type:"error",message:e.message,error:e}}function Ka(e){var n=[];return xt.flatten(xt.pluck(e,"messages"),!0).forEach(function(t){yh(n,t)||n.push(t)}),n}function yh(e,n){return xt.find(e,Dh.bind(null,n))!==void 0}function Dh(e,n){return e.type===n.type&&e.message===n.message}var Bt={},bi={};bi.byteLength=_h;bi.toByteArray=Th;bi.fromByteArray=Ah;var on=[],Ye=[],vh=typeof Uint8Array<"u"?Uint8Array:Array,Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var qn=0,xh=Ar.length;qn0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=n);var i=t===n?0:4-t%4;return[t,i]}function _h(e){var n=od(e),t=n[0],i=n[1];return(t+i)*3/4-i}function Uh(e,n,t){return(n+t)*3/4-t}function Th(e){var n,t=od(e),i=t[0],r=t[1],a=new vh(Uh(e,i,r)),o=0,c=r>0?i-4:i,u;for(u=0;u>16&255,a[o++]=n>>8&255,a[o++]=n&255;return r===2&&(n=Ye[e.charCodeAt(u)]<<2|Ye[e.charCodeAt(u+1)]>>4,a[o++]=n&255),r===1&&(n=Ye[e.charCodeAt(u)]<<10|Ye[e.charCodeAt(u+1)]<<4|Ye[e.charCodeAt(u+2)]>>2,a[o++]=n>>8&255,a[o++]=n&255),a}function wh(e){return on[e>>18&63]+on[e>>12&63]+on[e>>6&63]+on[e&63]}function Eh(e,n,t){for(var i,r=[],a=n;ac?c:o+a));return i===1?(n=e[t-1],r.push(on[n>>2]+on[n<<4&63]+"==")):i===2&&(n=(e[t-2]<<8)+e[t-1],r.push(on[n>>10]+on[n>>4&63]+on[n<<2&63]+"=")),r.join("")}function Mt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cd={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
@@ -198,34 +198,34 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
-*/(function(e,n){(function(t){e.exports=t()})(function(){return function t(i,r,a){function o(s,d){if(!r[s]){if(!i[s]){var g=typeof Mt=="function"&&Mt;if(!d&&g)return g(s,!0);if(c)return c(s,!0);var b=new Error("Cannot find module '"+s+"'");throw b.code="MODULE_NOT_FOUND",b}var m=r[s]={exports:{}};i[s][0].call(m.exports,function(y){var l=i[s][1][y];return o(l||y)},m,m.exports,t,i,r,a)}return r[s].exports}for(var c=typeof Mt=="function"&&Mt,u=0;u>2,m=(3&s)<<4|d>>4,y=1>6:64,l=2>4,d=(15&b)<<4|(m=c.indexOf(u.charAt(l++)))>>2,g=(3&m)<<6|(y=c.indexOf(u.charAt(l++))),h[f++]=s,m!==64&&(h[f++]=d),y!==64&&(h[f++]=g);return h}},{"./support":30,"./utils":32}],2:[function(t,i,r){var a=t("./external"),o=t("./stream/DataWorker"),c=t("./stream/Crc32Probe"),u=t("./stream/DataLengthProbe");function s(d,g,b,m,y){this.compressedSize=d,this.uncompressedSize=g,this.crc32=b,this.compression=m,this.compressedContent=y}s.prototype={getContentWorker:function(){var d=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),g=this;return d.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(d,g,b){return d.pipe(new c).pipe(new u("uncompressedSize")).pipe(g.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression",g)},i.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,r){var a=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i,r){var a=t("./utils"),o=function(){for(var c,u=[],s=0;s<256;s++){c=s;for(var d=0;d<8;d++)c=1&c?3988292384^c>>>1:c>>>1;u[s]=c}return u}();i.exports=function(c,u){return c!==void 0&&c.length?a.getTypeOf(c)!=="string"?function(s,d,g,b){var m=o,y=b+g;s^=-1;for(var l=b;l>>8^m[255&(s^d[l])];return-1^s}(0|u,c,c.length,0):function(s,d,g,b){var m=o,y=b+g;s^=-1;for(var l=b;l>>8^m[255&(s^d.charCodeAt(l))];return-1^s}(0|u,c,c.length,0):0}},{"./utils":32}],5:[function(t,i,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(t,i,r){var a=null;a=typeof Promise<"u"?Promise:t("lie"),i.exports={Promise:a}},{lie:37}],7:[function(t,i,r){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=t("pako"),c=t("./utils"),u=t("./stream/GenericWorker"),s=a?"uint8array":"array";function d(g,b){u.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=b,this.meta={}}r.magic="\b\0",c.inherits(d,u),d.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(c.transformTo(s,g.data),!1)},d.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(b){g.push({data:b,meta:g.meta})}},r.compressWorker=function(g){return new d("Deflate",g)},r.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i,r){function a(m,y){var l,f="";for(l=0;l>>=8;return f}function o(m,y,l,f,p,h){var D,_,U=m.file,w=m.compression,A=h!==s.utf8encode,N=c.transformTo("string",h(U.name)),I=c.transformTo("string",s.utf8encode(U.name)),$=U.comment,Q=c.transformTo("string",h($)),T=c.transformTo("string",s.utf8encode($)),L=I.length!==U.name.length,x=T.length!==$.length,X="",F="",R="",B=U.dir,O=U.date,P={crc32:0,compressedSize:0,uncompressedSize:0};y&&!l||(P.crc32=m.crc32,P.compressedSize=m.compressedSize,P.uncompressedSize=m.uncompressedSize);var k=0;y&&(k|=8),A||!L&&!x||(k|=2048);var E=0,Z=0;B&&(E|=16),p==="UNIX"?(Z=798,E|=function(K,re){var se=K;return K||(se=re?16893:33204),(65535&se)<<16}(U.unixPermissions,B)):(Z=20,E|=function(K){return 63&(K||0)}(U.dosPermissions)),D=O.getUTCHours(),D<<=6,D|=O.getUTCMinutes(),D<<=5,D|=O.getUTCSeconds()/2,_=O.getUTCFullYear()-1980,_<<=4,_|=O.getUTCMonth()+1,_<<=5,_|=O.getUTCDate(),L&&(F=a(1,1)+a(d(N),4)+I,X+="up"+a(F.length,2)+F),x&&(R=a(1,1)+a(d(Q),4)+T,X+="uc"+a(R.length,2)+R);var J="";return J+=`
-\0`,J+=a(k,2),J+=w.magic,J+=a(D,2),J+=a(_,2),J+=a(P.crc32,4),J+=a(P.compressedSize,4),J+=a(P.uncompressedSize,4),J+=a(N.length,2),J+=a(X.length,2),{fileRecord:g.LOCAL_FILE_HEADER+J+N+X,dirRecord:g.CENTRAL_FILE_HEADER+a(Z,2)+J+a(Q.length,2)+"\0\0\0\0"+a(E,4)+a(f,4)+N+X+Q}}var c=t("../utils"),u=t("../stream/GenericWorker"),s=t("../utf8"),d=t("../crc32"),g=t("../signature");function b(m,y,l,f){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=y,this.zipPlatform=l,this.encodeFileName=f,this.streamFiles=m,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}c.inherits(b,u),b.prototype.push=function(m){var y=m.meta.percent||0,l=this.entriesCount,f=this._sources.length;this.accumulate?this.contentBuffer.push(m):(this.bytesWritten+=m.data.length,u.prototype.push.call(this,{data:m.data,meta:{currentFile:this.currentFile,percent:l?(y+100*(l-f-1))/l:100}}))},b.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var y=this.streamFiles&&!m.file.dir;if(y){var l=o(m,y,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:l.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(m){this.accumulate=!1;var y=this.streamFiles&&!m.file.dir,l=o(m,y,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(l.dirRecord),y)this.push({data:function(f){return g.DATA_DESCRIPTOR+a(f.crc32,4)+a(f.compressedSize,4)+a(f.uncompressedSize,4)}(m),meta:{percent:100}});else for(this.push({data:l.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var m=this.bytesWritten,y=0;y=this.index;u--)s=(s<<8)+this.byteAt(u);return this.index+=c,s},readString:function(c){return a.transformTo("string",this.readData(c))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var c=this.readInt(4);return new Date(Date.UTC(1980+(c>>25&127),(c>>21&15)-1,c>>16&31,c>>11&31,c>>5&63,(31&c)<<1))}},i.exports=o},{"../utils":32}],19:[function(t,i,r){var a=t("./Uint8ArrayReader");function o(c){a.call(this,c)}t("../utils").inherits(o,a),o.prototype.readData=function(c){this.checkOffset(c);var u=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,u},i.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i,r){var a=t("./DataReader");function o(c){a.call(this,c)}t("../utils").inherits(o,a),o.prototype.byteAt=function(c){return this.data.charCodeAt(this.zero+c)},o.prototype.lastIndexOfSignature=function(c){return this.data.lastIndexOf(c)-this.zero},o.prototype.readAndCheckSignature=function(c){return c===this.readData(4)},o.prototype.readData=function(c){this.checkOffset(c);var u=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,u},i.exports=o},{"../utils":32,"./DataReader":18}],21:[function(t,i,r){var a=t("./ArrayReader");function o(c){a.call(this,c)}t("../utils").inherits(o,a),o.prototype.readData=function(c){if(this.checkOffset(c),c===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+c);return this.index+=c,u},i.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(t,i,r){var a=t("../utils"),o=t("../support"),c=t("./ArrayReader"),u=t("./StringReader"),s=t("./NodeBufferReader"),d=t("./Uint8ArrayReader");i.exports=function(g){var b=a.getTypeOf(g);return a.checkSupport(b),b!=="string"||o.uint8array?b==="nodebuffer"?new s(g):o.uint8array?new d(a.transformTo("uint8array",g)):new c(a.transformTo("array",g)):new u(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,i,r){var a=t("./GenericWorker"),o=t("../utils");function c(u){a.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(c,a),c.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},i.exports=c},{"../utils":32,"./GenericWorker":28}],25:[function(t,i,r){var a=t("./GenericWorker"),o=t("../crc32");function c(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(c,a),c.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},i.exports=c},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i,r){var a=t("../utils"),o=t("./GenericWorker");function c(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}a.inherits(c,o),c.prototype.processChunk=function(u){if(u){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+u.data.length}o.prototype.processChunk.call(this,u)},i.exports=c},{"../utils":32,"./GenericWorker":28}],27:[function(t,i,r){var a=t("../utils"),o=t("./GenericWorker");function c(u){o.call(this,"DataWorker");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(d){s.dataIsReady=!0,s.data=d,s.max=d&&d.length||0,s.type=a.getTypeOf(d),s.isPaused||s._tickAndRepeat()},function(d){s.error(d)})}a.inherits(c,o),c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},c.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},c.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,s);break;case"uint8array":u=this.data.subarray(this.index,s);break;case"array":case"nodebuffer":u=this.data.slice(this.index,s)}return this.index=s,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=c},{"../utils":32,"./GenericWorker":28}],28:[function(t,i,r){function a(o){this.name=o||"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}a.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,c){return this._listeners[o].push(c),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,c){if(this._listeners[o])for(var u=0;u "+o:o}},i.exports=a},{}],29:[function(t,i,r){var a=t("../utils"),o=t("./ConvertWorker"),c=t("./GenericWorker"),u=t("../base64"),s=t("../support"),d=t("../external"),g=null;if(s.nodestream)try{g=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(y,l){return new d.Promise(function(f,p){var h=[],D=y._internalType,_=y._outputType,U=y._mimeType;y.on("data",function(w,A){h.push(w),l&&l(A)}).on("error",function(w){h=[],p(w)}).on("end",function(){try{var w=function(A,N,I){switch(A){case"blob":return a.newBlob(a.transformTo("arraybuffer",N),I);case"base64":return u.encode(N);default:return a.transformTo(A,N)}}(_,function(A,N){var I,$=0,Q=null,T=0;for(I=0;I"u")r.blob=!1;else{var a=new ArrayBuffer(0);try{r.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(a),r.blob=o.getBlob("application/zip").size===0}catch{r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch{r.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,r){for(var a=t("./utils"),o=t("./support"),c=t("./nodejsUtils"),u=t("./stream/GenericWorker"),s=new Array(256),d=0;d<256;d++)s[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;s[254]=s[254]=1;function g(){u.call(this,"utf-8 decode"),this.leftOver=null}function b(){u.call(this,"utf-8 encode")}r.utf8encode=function(m){return o.nodebuffer?c.newBufferFrom(m,"utf-8"):function(y){var l,f,p,h,D,_=y.length,U=0;for(h=0;h<_;h++)(64512&(f=y.charCodeAt(h)))==55296&&h+1<_&&(64512&(p=y.charCodeAt(h+1)))==56320&&(f=65536+(f-55296<<10)+(p-56320),h++),U+=f<128?1:f<2048?2:f<65536?3:4;for(l=o.uint8array?new Uint8Array(U):new Array(U),h=D=0;D>>6:(f<65536?l[D++]=224|f>>>12:(l[D++]=240|f>>>18,l[D++]=128|f>>>12&63),l[D++]=128|f>>>6&63),l[D++]=128|63&f);return l}(m)},r.utf8decode=function(m){return o.nodebuffer?a.transformTo("nodebuffer",m).toString("utf-8"):function(y){var l,f,p,h,D=y.length,_=new Array(2*D);for(l=f=0;l>10&1023,_[f++]=56320|1023&p)}return _.length!==f&&(_.subarray?_=_.subarray(0,f):_.length=f),a.applyFromCharCode(_)}(m=a.transformTo(o.uint8array?"uint8array":"array",m))},a.inherits(g,u),g.prototype.processChunk=function(m){var y=a.transformTo(o.uint8array?"uint8array":"array",m.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var l=y;(y=new Uint8Array(l.length+this.leftOver.length)).set(this.leftOver,0),y.set(l,this.leftOver.length)}else y=this.leftOver.concat(y);this.leftOver=null}var f=function(h,D){var _;for((D=D||h.length)>h.length&&(D=h.length),_=D-1;0<=_&&(192&h[_])==128;)_--;return _<0||_===0?D:_+s[h[_]]>D?_:D}(y),p=y;f!==y.length&&(o.uint8array?(p=y.subarray(0,f),this.leftOver=y.subarray(f,y.length)):(p=y.slice(0,f),this.leftOver=y.slice(f,y.length))),this.push({data:r.utf8decode(p),meta:m.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=g,a.inherits(b,u),b.prototype.processChunk=function(m){this.push({data:r.utf8encode(m.data),meta:m.meta})},r.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,r){var a=t("./support"),o=t("./base64"),c=t("./nodejsUtils"),u=t("./external");function s(l){return l}function d(l,f){for(var p=0;p>8;this.dir=!!(16&this.externalFileAttributes),m==0&&(this.dosPermissions=63&this.externalFileAttributes),m==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var m=a(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(m){var y,l,f,p=m.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});m.index+4>>6:(m<65536?b[f++]=224|m>>>12:(b[f++]=240|m>>>18,b[f++]=128|m>>>12&63),b[f++]=128|m>>>6&63),b[f++]=128|63&m);return b},r.buf2binstring=function(g){return d(g,g.length)},r.binstring2buf=function(g){for(var b=new a.Buf8(g.length),m=0,y=b.length;m>10&1023,h[y++]=56320|1023&l)}return d(h,y)},r.utf8border=function(g,b){var m;for((b=b||g.length)>g.length&&(b=g.length),m=b-1;0<=m&&(192&g[m])==128;)m--;return m<0||m===0?b:m+u[g[m]]>b?m:b}},{"./common":41}],43:[function(t,i,r){i.exports=function(a,o,c,u){for(var s=65535&a|0,d=a>>>16&65535|0,g=0;c!==0;){for(c-=g=2e3>>1:o>>>1;c[u]=o}return c}();i.exports=function(o,c,u,s){var d=a,g=s+u;o^=-1;for(var b=s;b>>8^d[255&(o^c[b])];return-1^o}},{}],46:[function(t,i,r){var a,o=t("../utils/common"),c=t("./trees"),u=t("./adler32"),s=t("./crc32"),d=t("./messages"),g=0,b=4,m=0,y=-2,l=-1,f=4,p=2,h=8,D=9,_=286,U=30,w=19,A=2*_+1,N=15,I=3,$=258,Q=$+I+1,T=42,L=113,x=1,X=2,F=3,R=4;function B(v,G){return v.msg=d[G],G}function O(v){return(v<<1)-(4v.avail_out&&(H=v.avail_out),H!==0&&(o.arraySet(v.output,G.pending_buf,G.pending_out,H,v.next_out),v.next_out+=H,G.pending_out+=H,v.total_out+=H,v.avail_out-=H,G.pending-=H,G.pending===0&&(G.pending_out=0))}function E(v,G){c._tr_flush_block(v,0<=v.block_start?v.block_start:-1,v.strstart-v.block_start,G),v.block_start=v.strstart,k(v.strm)}function Z(v,G){v.pending_buf[v.pending++]=G}function J(v,G){v.pending_buf[v.pending++]=G>>>8&255,v.pending_buf[v.pending++]=255&G}function K(v,G){var H,S,C=v.max_chain_length,q=v.strstart,ee=v.prev_length,ie=v.nice_match,V=v.strstart>v.w_size-Q?v.strstart-(v.w_size-Q):0,W=v.window,M=v.w_mask,j=v.prev,Y=v.strstart+$,ae=W[q+ee-1],ce=W[q+ee];v.prev_length>=v.good_match&&(C>>=2),ie>v.lookahead&&(ie=v.lookahead);do if(W[(H=G)+ee]===ce&&W[H+ee-1]===ae&&W[H]===W[q]&&W[++H]===W[q+1]){q+=2,H++;do;while(W[++q]===W[++H]&&W[++q]===W[++H]&&W[++q]===W[++H]&&W[++q]===W[++H]&&W[++q]===W[++H]&&W[++q]===W[++H]&&W[++q]===W[++H]&&W[++q]===W[++H]&&qV&&--C!=0);return ee<=v.lookahead?ee:v.lookahead}function re(v){var G,H,S,C,q,ee,ie,V,W,M,j=v.w_size;do{if(C=v.window_size-v.lookahead-v.strstart,v.strstart>=j+(j-Q)){for(o.arraySet(v.window,v.window,j,j,0),v.match_start-=j,v.strstart-=j,v.block_start-=j,G=H=v.hash_size;S=v.head[--G],v.head[G]=j<=S?S-j:0,--H;);for(G=H=j;S=v.prev[--G],v.prev[G]=j<=S?S-j:0,--H;);C+=j}if(v.strm.avail_in===0)break;if(ee=v.strm,ie=v.window,V=v.strstart+v.lookahead,W=C,M=void 0,M=ee.avail_in,W=I)for(q=v.strstart-v.insert,v.ins_h=v.window[q],v.ins_h=(v.ins_h<=I&&(v.ins_h=(v.ins_h<=I)if(S=c._tr_tally(v,v.strstart-v.match_start,v.match_length-I),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=I){for(v.match_length--;v.strstart++,v.ins_h=(v.ins_h<=I&&(v.ins_h=(v.ins_h<=I&&v.match_length<=v.prev_length){for(C=v.strstart+v.lookahead-I,S=c._tr_tally(v,v.strstart-1-v.prev_match,v.prev_length-I),v.lookahead-=v.prev_length-1,v.prev_length-=2;++v.strstart<=C&&(v.ins_h=(v.ins_h<v.pending_buf_size-5&&(H=v.pending_buf_size-5);;){if(v.lookahead<=1){if(re(v),v.lookahead===0&&G===g)return x;if(v.lookahead===0)break}v.strstart+=v.lookahead,v.lookahead=0;var S=v.block_start+H;if((v.strstart===0||v.strstart>=S)&&(v.lookahead=v.strstart-S,v.strstart=S,E(v,!1),v.strm.avail_out===0)||v.strstart-v.block_start>=v.w_size-Q&&(E(v,!1),v.strm.avail_out===0))return x}return v.insert=0,G===b?(E(v,!0),v.strm.avail_out===0?F:R):(v.strstart>v.block_start&&(E(v,!1),v.strm.avail_out),x)}),new le(4,4,8,4,se),new le(4,5,16,8,se),new le(4,6,32,32,se),new le(4,4,16,16,ue),new le(8,16,32,32,ue),new le(8,16,128,128,ue),new le(8,32,128,256,ue),new le(32,128,258,1024,ue),new le(32,258,258,4096,ue)],r.deflateInit=function(v,G){return oe(v,G,h,15,8,0)},r.deflateInit2=oe,r.deflateReset=ne,r.deflateResetKeep=z,r.deflateSetHeader=function(v,G){return v&&v.state?v.state.wrap!==2?y:(v.state.gzhead=G,m):y},r.deflate=function(v,G){var H,S,C,q;if(!v||!v.state||5>8&255),Z(S,S.gzhead.time>>16&255),Z(S,S.gzhead.time>>24&255),Z(S,S.level===9?2:2<=S.strategy||S.level<2?4:0),Z(S,255&S.gzhead.os),S.gzhead.extra&&S.gzhead.extra.length&&(Z(S,255&S.gzhead.extra.length),Z(S,S.gzhead.extra.length>>8&255)),S.gzhead.hcrc&&(v.adler=s(v.adler,S.pending_buf,S.pending,0)),S.gzindex=0,S.status=69):(Z(S,0),Z(S,0),Z(S,0),Z(S,0),Z(S,0),Z(S,S.level===9?2:2<=S.strategy||S.level<2?4:0),Z(S,3),S.status=L);else{var ee=h+(S.w_bits-8<<4)<<8;ee|=(2<=S.strategy||S.level<2?0:S.level<6?1:S.level===6?2:3)<<6,S.strstart!==0&&(ee|=32),ee+=31-ee%31,S.status=L,J(S,ee),S.strstart!==0&&(J(S,v.adler>>>16),J(S,65535&v.adler)),v.adler=1}if(S.status===69)if(S.gzhead.extra){for(C=S.pending;S.gzindex<(65535&S.gzhead.extra.length)&&(S.pending!==S.pending_buf_size||(S.gzhead.hcrc&&S.pending>C&&(v.adler=s(v.adler,S.pending_buf,S.pending-C,C)),k(v),C=S.pending,S.pending!==S.pending_buf_size));)Z(S,255&S.gzhead.extra[S.gzindex]),S.gzindex++;S.gzhead.hcrc&&S.pending>C&&(v.adler=s(v.adler,S.pending_buf,S.pending-C,C)),S.gzindex===S.gzhead.extra.length&&(S.gzindex=0,S.status=73)}else S.status=73;if(S.status===73)if(S.gzhead.name){C=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>C&&(v.adler=s(v.adler,S.pending_buf,S.pending-C,C)),k(v),C=S.pending,S.pending===S.pending_buf_size)){q=1;break}q=S.gzindexC&&(v.adler=s(v.adler,S.pending_buf,S.pending-C,C)),q===0&&(S.gzindex=0,S.status=91)}else S.status=91;if(S.status===91)if(S.gzhead.comment){C=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>C&&(v.adler=s(v.adler,S.pending_buf,S.pending-C,C)),k(v),C=S.pending,S.pending===S.pending_buf_size)){q=1;break}q=S.gzindexC&&(v.adler=s(v.adler,S.pending_buf,S.pending-C,C)),q===0&&(S.status=103)}else S.status=103;if(S.status===103&&(S.gzhead.hcrc?(S.pending+2>S.pending_buf_size&&k(v),S.pending+2<=S.pending_buf_size&&(Z(S,255&v.adler),Z(S,v.adler>>8&255),v.adler=0,S.status=L)):S.status=L),S.pending!==0){if(k(v),v.avail_out===0)return S.last_flush=-1,m}else if(v.avail_in===0&&O(G)<=O(H)&&G!==b)return B(v,-5);if(S.status===666&&v.avail_in!==0)return B(v,-5);if(v.avail_in!==0||S.lookahead!==0||G!==g&&S.status!==666){var ie=S.strategy===2?function(V,W){for(var M;;){if(V.lookahead===0&&(re(V),V.lookahead===0)){if(W===g)return x;break}if(V.match_length=0,M=c._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++,M&&(E(V,!1),V.strm.avail_out===0))return x}return V.insert=0,W===b?(E(V,!0),V.strm.avail_out===0?F:R):V.last_lit&&(E(V,!1),V.strm.avail_out===0)?x:X}(S,G):S.strategy===3?function(V,W){for(var M,j,Y,ae,ce=V.window;;){if(V.lookahead<=$){if(re(V),V.lookahead<=$&&W===g)return x;if(V.lookahead===0)break}if(V.match_length=0,V.lookahead>=I&&0