import{y as b,z as f,S as h}from"./system.1703796278973.js";function p(r){return b(r==null?void 0:r.lift)}function y(r){return function(i){if(p(i))return i.lift(function(t){try{return r(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function v(r,i,t,n,e){return new d(r,i,t,n,e)}var d=function(r){f(i,r);function i(t,n,e,u,a,l){var o=r.call(this,t)||this;return o.onFinalize=a,o.shouldUnsubscribe=l,o._next=n?function(c){try{n(c)}catch(s){t.error(s)}}:r.prototype._next,o._error=u?function(c){try{u(c)}catch(s){t.error(s)}finally{this.unsubscribe()}}:r.prototype._error,o._complete=e?function(){try{e()}catch(c){t.error(c)}finally{this.unsubscribe()}}:r.prototype._complete,o}return i.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},i}(h);function x(r,i){return y(function(t,n){var e=0;t.subscribe(v(n,function(u){n.next(r.call(i,u,e++))}))})}export{x as m};
