i2971-ng15-dbf/dist/sheetjs-angular/main.2d955e2207d47d09.js

1 line
444 KiB
JavaScript
Raw Permalink Normal View History

2023-06-23 17:52:18 +00:00
"use strict";(self.webpackChunksheetjs_angular=self.webpackChunksheetjs_angular||[]).push([[179],{834:()=>{function Ot(e){return"function"==typeof e}function Dc(e){const r=e(n=>{Error.call(n),n.stack=(new Error).stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}const Tc=Dc(e=>function(r){e(this),this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map((n,i)=>`${i+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=r});function Vs(e,t){if(e){const r=e.indexOf(t);0<=r&&e.splice(r,1)}}class Wn{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(const a of r)a.remove(this);else r.remove(this);const{initialTeardown:n}=this;if(Ot(n))try{n()}catch(a){t=a instanceof Tc?a.errors:[a]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const a of i)try{Cp(a)}catch(s){t=t??[],s instanceof Tc?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Tc(t)}}add(t){var r;if(t&&t!==this)if(this.closed)Cp(t);else{if(t instanceof Wn){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}}_hasParent(t){const{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){const{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){const{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&Vs(r,t)}remove(t){const{_finalizers:r}=this;r&&Vs(r,t),t instanceof Wn&&t._removeParent(this)}}Wn.EMPTY=(()=>{const e=new Wn;return e.closed=!0,e})();const Tp=Wn.EMPTY;function Sp(e){return e instanceof Wn||e&&"closed"in e&&Ot(e.remove)&&Ot(e.add)&&Ot(e.unsubscribe)}function Cp(e){Ot(e)?e():e.unsubscribe()}const aa={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Sc={setTimeout(e,t,...r){const{delegate:n}=Sc;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){const{delegate:t}=Sc;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function kp(e){Sc.setTimeout(()=>{const{onUnhandledError:t}=aa;if(!t)throw e;t(e)})}function Ap(){}const sD=Xu("C",void 0,void 0);function Xu(e,t,r){return{kind:e,value:t,error:r}}let sa=null;function Cc(e){if(aa.useDeprecatedSynchronousErrorHandling){const t=!sa;if(t&&(sa={errorThrown:!1,error:null}),e(),t){const{errorThrown:r,error:n}=sa;if(sa=null,r)throw n}}else e()}class Ku extends Wn{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Sp(t)&&t.add(this)):this.destination=hD}static create(t,r,n){return new js(t,r,n)}next(t){this.isStopped?qu(function cD(e){return Xu("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?qu(function oD(e){return Xu("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?qu(sD,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const uD=Function.prototype.bind;function Yu(e,t){return uD.call(e,t)}class fD{constructor(t){this.partialObserver=t}next(t){const{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){kc(n)}}error(t){const{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){kc(n)}else kc(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){kc(r)}}}class js extends Ku{constructor(t,r,n){let i;if(super(),Ot(t)||!t)i={next:t??void 0,error:r??void 0,complete:n??void 0};else{let a;this&&aa.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Yu(t.next,a),error:t.error&&Yu(t.error,a),complete:t.complete&&Yu(t.complete,a)}):i=t}this.destination=new fD(i)}}function kc(e){aa.useDeprecatedSynchronousErrorHa