altair-static
Version:
Static package for altair graphql client
9 lines (6 loc) • 34.8 kB
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3aebc708-56d0-52b4-918b-f5738c7b5df9")}catch(e){}}();
import{e as Nr}from"./chunk-B7YGBANW.js";function Ro(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$e(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function hr(r,e,t,o){function n(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function u(m){try{p(o.next(m))}catch(x){s(x)}}function f(m){try{p(o.throw(m))}catch(x){s(x)}}function p(m){m.done?i(m.value):n(m.value).then(u,f)}p((o=o.apply(r,e||[])).next())})}function dr(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],o=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function B(r){return this instanceof B?(this.v=r,this):new B(r)}function xr(r,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=t.apply(r,e||[]),n,i=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",s),n[Symbol.asyncIterator]=function(){return this},n;function s(b){return function(y){return Promise.resolve(y).then(b,x)}}function u(b,y){o[b]&&(n[b]=function(v){return new Promise(function(g,_){i.push([b,v,g,_])>1||f(b,v)})},y&&(n[b]=y(n[b])))}function f(b,y){try{p(o[b](y))}catch(v){w(i[0][3],v)}}function p(b){b.value instanceof B?Promise.resolve(b.value.v).then(m,x):w(i[0][2],b)}function m(b){f("next",b)}function x(b){f("throw",b)}function w(b,y){b(y),i.shift(),i.length&&f(i[0][0],i[0][1])}}function br(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof dr=="function"?dr(r):r[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=r[i]&&function(s){return new Promise(function(u,f){s=r[i](s),n(u,f,s.done,s.value)})}}function n(i,s,u,f){Promise.resolve(f).then(function(p){i({value:p,done:u})},s)}}var $e,ar,Be=Nr(()=>{"use strict";$e=function(r,e){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},$e(r,e)};ar=function(){return ar=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ar.apply(this,arguments)}});function a(r){return typeof r=="function"}function D(r){let t=r(o=>{Error.call(o),o.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ce=D(r=>function(t){r(this),this.message=t?`${t.length} errors occurred during unsubscription:
${t.map((o,n)=>`${n+1}) ${o.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function Y(r,e){if(r){let t=r.indexOf(e);0<=t&&r.splice(t,1)}}var S=class r{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let i of t)i.remove(this);else t.remove(this);let{initialTeardown:o}=this;if(a(o))try{o()}catch(i){e=i instanceof ce?i.errors:[i]}let{_finalizers:n}=this;if(n){this._finalizers=null;for(let i of n)try{fr(i)}catch(s){e=e??[],s instanceof ce?e=[...e,...s.errors]:e.push(s)}}if(e)throw new ce(e)}}add(e){var t;if(e&&e!==this)if(this.closed)fr(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}}_hasParent(e){let{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){let{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&Y(t,e)}remove(e){let{_finalizers:t}=this;t&&Y(t,e),e instanceof r&&e._removeParent(this)}};S.EMPTY=(()=>{let r=new S;return r.closed=!0,r})();var qe=S.EMPTY;function le(r){return r instanceof S||r&&"closed"in r&&a(r.remove)&&a(r.add)&&a(r.unsubscribe)}function fr(r){a(r)?r():r.unsubscribe()}var P={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var J={setTimeout(r,e,...t){let{delegate:o}=J;return o?.setTimeout?o.setTimeout(r,e,...t):setTimeout(r,e,...t)},clearTimeout(r){let{delegate:e}=J;return(e?.clearTimeout||clearTimeout)(r)},delegate:void 0};function pe(r){J.setTimeout(()=>{let{onUnhandledError:e}=P;if(e)e(r);else throw r})}function F(){}var ur=De("C",void 0,void 0);function cr(r){return De("E",void 0,r)}function lr(r){return De("N",r,void 0)}function De(r,e,t){return{kind:r,value:e,error:t}}var G=null;function H(r){if(P.useDeprecatedSynchronousErrorHandling){let e=!G;if(e&&(G={errorThrown:!1,error:null}),r(),e){let{errorThrown:t,error:o}=G;if(G=null,t)throw o}}else r()}function pr(r){P.useDeprecatedSynchronousErrorHandling&&G&&(G.errorThrown=!0,G.error=r)}var $=class extends S{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,le(e)&&e.add(this)):this.destination=Gr}static create(e,t,o){return new j(e,t,o)}next(e){this.isStopped?ze(lr(e),this):this._next(e)}error(e){this.isStopped?ze(cr(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ze(ur,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},zr=Function.prototype.bind;function Ne(r,e){return zr.call(r,e)}var Ye=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(o){me(o)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(o){me(o)}else me(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){me(t)}}},j=class extends ${constructor(e,t,o){super();let n;if(a(e)||!e)n={next:e??void 0,error:t??void 0,complete:o??void 0};else{let i;this&&P.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),n={next:e.next&&Ne(e.next,i),error:e.error&&Ne(e.error,i),complete:e.complete&&Ne(e.complete,i)}):n=e}this.destination=new Ye(n)}};function me(r){P.useDeprecatedSynchronousErrorHandling?pr(r):pe(r)}function Yr(r){throw r}function ze(r,e){let{onStoppedNotification:t}=P;t&&J.setTimeout(()=>t(r,e))}var Gr={closed:!0,next:F,error:Yr,complete:F};var Z=typeof Symbol=="function"&&Symbol.observable||"@@observable";function E(r){return r}function $r(...r){return Ge(r)}function Ge(r){return r.length===0?E:r.length===1?r[0]:function(t){return r.reduce((o,n)=>n(o),t)}}var h=(()=>{class r{constructor(t){t&&(this._subscribe=t)}lift(t){let o=new r;return o.source=this,o.operator=t,o}subscribe(t,o,n){let i=Kr(t)?t:new j(t,o,n);return H(()=>{let{operator:s,source:u}=this;i.add(s?s.call(i,u):u?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(o){t.error(o)}}forEach(t,o){return o=mr(o),new o((n,i)=>{let s=new j({next:u=>{try{t(u)}catch(f){i(f),s.unsubscribe()}},error:i,complete:n});this.subscribe(s)})}_subscribe(t){var o;return(o=this.source)===null||o===void 0?void 0:o.subscribe(t)}[Z](){return this}pipe(...t){return Ge(t)(this)}toPromise(t){return t=mr(t),new t((o,n)=>{let i;this.subscribe(s=>i=s,s=>n(s),()=>o(i))})}}return r.create=e=>new r(e),r})();function mr(r){var e;return(e=r??P.Promise)!==null&&e!==void 0?e:Promise}function Br(r){return r&&a(r.next)&&a(r.error)&&a(r.complete)}function Kr(r){return r&&r instanceof $||Br(r)&&le(r)}Be();var Q=r=>r&&typeof r.length=="number"&&typeof r!="function";function ae(r){return a(r?.then)}function de(r){return a(r[Z])}function he(r){return Symbol.asyncIterator&&a(r?.[Symbol.asyncIterator])}function xe(r){return new TypeError(`You provided ${r!==null&&typeof r=="object"?"an invalid object":`'${r}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Jr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var be=Jr();function ye(r){return a(r?.[be])}Be();function ve(r){return xr(this,arguments,function*(){let t=r.getReader();try{for(;;){let{value:o,done:n}=yield B(t.read());if(n)return yield B(void 0);yield yield B(o)}}finally{t.releaseLock()}})}function we(r){return a(r?.getReader)}function d(r){if(r instanceof h)return r;if(r!=null){if(de(r))return Hr(r);if(Q(r))return Zr(r);if(ae(r))return Qr(r);if(he(r))return yr(r);if(ye(r))return Xr(r);if(we(r))return et(r)}throw xe(r)}function Hr(r){return new h(e=>{let t=r[Z]();if(a(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Zr(r){return new h(e=>{for(let t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}function Qr(r){return new h(e=>{r.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,pe)})}function Xr(r){return new h(e=>{for(let t of r)if(e.next(t),e.closed)return;e.complete()})}function yr(r){return new h(e=>{rt(r,e).catch(t=>e.error(t))})}function et(r){return yr(ve(r))}function rt(r,e){var t,o,n,i;return hr(this,void 0,void 0,function*(){try{for(t=br(r);o=yield t.next(),!o.done;){let s=o.value;if(e.next(s),e.closed)return}}catch(s){n={error:s}}finally{try{o&&!o.done&&(i=t.return)&&(yield i.call(t))}finally{if(n)throw n.error}}e.complete()})}function O(r,e,t,o=0,n=!1){let i=e.schedule(function(){t(),n?r.add(this.schedule(null,o)):this.unsubscribe()},o);if(r.add(i),!n)return i}function Ke(r){return a(r?.lift)}function l(r){return e=>{if(Ke(e))return e.lift(function(t){try{return r(t,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function c(r,e,t,o,n){return new ne(r,e,t,o,n)}var ne=class extends ${constructor(e,t,o,n,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(u){try{t(u)}catch(f){e.error(f)}}:super._next,this._error=n?function(u){try{n(u)}catch(f){e.error(f)}finally{this.unsubscribe()}}:super._error,this._complete=o?function(){try{o()}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function _e(r,e=0){return l((t,o)=>{t.subscribe(c(o,n=>O(o,r,()=>o.next(n),e),()=>O(o,r,()=>o.complete(),e),n=>O(o,r,()=>o.error(n),e)))})}function Se(r,e=0){return l((t,o)=>{o.add(r.schedule(()=>t.subscribe(o),e))})}function vr(r,e){return d(r).pipe(Se(e),_e(e))}function wr(r,e){return d(r).pipe(Se(e),_e(e))}function _r(r,e){return new h(t=>{let o=0;return e.schedule(function(){o===r.length?t.complete():(t.next(r[o++]),t.closed||this.schedule())})})}function Sr(r,e){return new h(t=>{let o;return O(t,e,()=>{o=r[be](),O(t,e,()=>{let n,i;try{({value:n,done:i}=o.next())}catch(s){t.error(s);return}i?t.complete():t.next(n)},0,!0)}),()=>a(o?.return)&&o.return()})}function ge(r,e){if(!r)throw new Error("Iterable cannot be null");return new h(t=>{O(t,e,()=>{let o=r[Symbol.asyncIterator]();O(t,e,()=>{o.next().then(n=>{n.done?t.complete():t.next(n.value)})},0,!0)})})}function gr(r,e){return ge(ve(r),e)}function Er(r,e){if(r!=null){if(de(r))return vr(r,e);if(Q(r))return _r(r,e);if(ae(r))return wr(r,e);if(he(r))return ge(r,e);if(ye(r))return Sr(r,e);if(we(r))return gr(r,e)}throw xe(r)}function R(r,e){return e?Er(r,e):d(r)}function Or(){return l((r,e)=>{let t=null;r._refCount++;let o=c(e,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount){t=null;return}let n=r._connection,i=t;t=null,n&&(!i||n===i)&&n.unsubscribe(),e.unsubscribe()});r.subscribe(o),o.closed||(t=r.connect())})}var Je=class extends h{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Ke(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new S;let t=this.getSubject();e.add(this.source.subscribe(c(t,void 0,()=>{this._teardown(),t.complete()},o=>{this._teardown(),t.error(o)},()=>this._teardown()))),e.closed&&(this._connection=null,e=S.EMPTY)}return e}refCount(){return Or()(this)}};var X={schedule(r){let e=requestAnimationFrame,t=cancelAnimationFrame,{delegate:o}=X;o&&(e=o.requestAnimationFrame,t=o.cancelAnimationFrame);let n=e(i=>{t=void 0,r(i)});return new S(()=>t?.(n))},requestAnimationFrame(...r){let{delegate:e}=X;return(e?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){let{delegate:e}=X;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var Ir=D(r=>function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var M=(()=>{class r extends h{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let o=new Ee(this,this);return o.operator=t,o}_throwIfClosed(){if(this.closed)throw new Ir}next(t){H(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let o of this.currentObservers)o.next(t)}})}error(t){H(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:o}=this;for(;o.length;)o.shift().error(t)}})}complete(){H(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:o,isStopped:n,observers:i}=this;return o||n?qe:(this.currentObservers=null,i.push(t),new S(()=>{this.currentObservers=null,Y(i,t)}))}_checkFinalizedStatuses(t){let{hasError:o,thrownError:n,isStopped:i}=this;o?t.error(n):i&&t.complete()}asObservable(){let t=new h;return t.source=this,t}}return r.create=(e,t)=>new Ee(e,t),r})(),Ee=class extends M{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.next)===null||o===void 0||o.call(t,e)}error(e){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.error)===null||o===void 0||o.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,o;return(o=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&o!==void 0?o:qe}};var He=class extends M{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:o}=this;if(e)throw t;return this._throwIfClosed(),o}next(e){super.next(this._value=e)}};var ie={now(){return(ie.delegate||Date).now()},delegate:void 0};var se=class extends M{constructor(e=1/0,t=1/0,o=ie){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=o,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:o,_infiniteTimeWindow:n,_timestampProvider:i,_windowTime:s}=this;t||(o.push(e),!n&&o.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:o,_buffer:n}=this,i=n.slice();for(let s=0;s<i.length&&!e.closed;s+=o?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:o,_infiniteTimeWindow:n}=this,i=(n?1:2)*e;if(e<1/0&&i<o.length&&o.splice(0,o.length-i),!n){let s=t.now(),u=0;for(let f=1;f<o.length&&o[f]<=s;f+=2)u=f;u&&o.splice(0,u+1)}}};var Oe=class extends S{constructor(e,t){super()}schedule(e,t=0){return this}};var fe={setInterval(r,e,...t){let{delegate:o}=fe;return o?.setInterval?o.setInterval(r,e,...t):setInterval(r,e,...t)},clearInterval(r){let{delegate:e}=fe;return(e?.clearInterval||clearInterval)(r)},delegate:void 0};var L=class extends Oe{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var o;if(this.closed)return this;this.state=e;let n=this.id,i=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,o=0){return fe.setInterval(e.flush.bind(e,this),o)}recycleAsyncId(e,t,o=0){if(o!=null&&this.delay===o&&this.pending===!1)return t;t!=null&&fe.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let o=this._execute(e,t);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let o=!1,n;try{this.work(e)}catch(i){o=!0,n=i||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),n}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:o}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Y(o,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}};var tt=1,Ze,Qe={};function Ar(r){return r in Qe?(delete Qe[r],!0):!1}var Tr={setImmediate(r){let e=tt++;return Qe[e]=!0,Ze||(Ze=Promise.resolve()),Ze.then(()=>Ar(e)&&r()),e},clearImmediate(r){Ar(r)}};var{setImmediate:ot,clearImmediate:nt}=Tr,ue={setImmediate(...r){let{delegate:e}=ue;return(e?.setImmediate||ot)(...r)},clearImmediate(r){let{delegate:e}=ue;return(e?.clearImmediate||nt)(r)},delegate:void 0};var Ie=class extends L{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,o=0){return o!==null&&o>0?super.requestAsyncId(e,t,o):(e.actions.push(this),e._scheduled||(e._scheduled=ue.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,o=0){var n;if(o!=null?o>0:this.delay>0)return super.recycleAsyncId(e,t,o);let{actions:i}=e;t!=null&&((n=i[i.length-1])===null||n===void 0?void 0:n.id)!==t&&(ue.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))}};var ee=class r{constructor(e,t=r.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,o){return new this.schedulerActionCtor(this,e).schedule(o,t)}};ee.now=ie.now;var U=class extends ee{constructor(e,t=ee.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let o;this._active=!0;do if(o=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,o){for(;e=t.shift();)e.unsubscribe();throw o}}};var Ae=class extends U{flush(e){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:o}=this,n;e=e||o.shift();do if(n=e.execute(e.state,e.delay))break;while((e=o[0])&&e.id===t&&o.shift());if(this._active=!1,n){for(;(e=o[0])&&e.id===t&&o.shift();)e.unsubscribe();throw n}}};var it=new Ae(Ie);var I=new U(L),Pr=I;var Te=class extends L{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,o=0){return o!=null&&o>0||o==null&&this.delay>0?super.requestAsyncId(e,t,o):(e.flush(this),0)}};var Pe=class extends U{};var st=new Pe(Te);var Fe=class extends L{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,o=0){return o!==null&&o>0?super.requestAsyncId(e,t,o):(e.actions.push(this),e._scheduled||(e._scheduled=X.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,o=0){var n;if(o!=null?o>0:this.delay>0)return super.recycleAsyncId(e,t,o);let{actions:i}=e;t!=null&&((n=i[i.length-1])===null||n===void 0?void 0:n.id)!==t&&(X.cancelAnimationFrame(t),e._scheduled=void 0)}};var je=class extends U{flush(e){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:o}=this,n;e=e||o.shift();do if(n=e.execute(e.state,e.delay))break;while((e=o[0])&&e.id===t&&o.shift());if(this._active=!1,n){for(;(e=o[0])&&e.id===t&&o.shift();)e.unsubscribe();throw n}}};var ft=new je(Fe);var A=new h(r=>r.complete());function Ce(r){return r&&a(r.schedule)}function Xe(r){return r[r.length-1]}function N(r){return a(Xe(r))?r.pop():void 0}function V(r){return Ce(Xe(r))?r.pop():void 0}function Fr(r,e){return typeof Xe(r)=="number"?r.pop():e}function er(...r){let e=V(r);return R(r,e)}function rr(r,e){let t=a(r)?r:()=>r,o=n=>n.error(t());return new h(e?n=>e.schedule(o,0,n):o)}var z=class r{constructor(e,t,o){this.kind=e,this.value=t,this.error=o,this.hasValue=e==="N"}observe(e){return tr(this,e)}do(e,t,o){let{kind:n,value:i,error:s}=this;return n==="N"?e?.(i):n==="E"?t?.(s):o?.()}accept(e,t,o){var n;return a((n=e)===null||n===void 0?void 0:n.next)?this.observe(e):this.do(e,t,o)}toObservable(){let{kind:e,value:t,error:o}=this,n=e==="N"?er(t):e==="E"?rr(()=>o):e==="C"?A:0;if(!n)throw new TypeError(`Unexpected notification kind ${e}`);return n}static createNext(e){return new r("N",e)}static createError(e){return new r("E",void 0,e)}static createComplete(){return r.completeNotification}};z.completeNotification=new z("C");function tr(r,e){var t,o,n;let{kind:i,value:s,error:u}=r;if(typeof i!="string")throw new TypeError('Invalid notification, missing "kind"');i==="N"?(t=e.next)===null||t===void 0||t.call(e,s):i==="E"?(o=e.error)===null||o===void 0||o.call(e,u):(n=e.complete)===null||n===void 0||n.call(e)}function ut(r){return!!r&&(r instanceof h||a(r.lift)&&a(r.subscribe))}var W=D(r=>function(){r(this),this.name="EmptyError",this.message="no elements in sequence"});function ct(r,e){let t=typeof e=="object";return new Promise((o,n)=>{let i=new j({next:s=>{o(s),i.unsubscribe()},error:n,complete:()=>{t?o(e.defaultValue):n(new W)}});r.subscribe(i)})}function ke(r){return r instanceof Date&&!isNaN(r)}var lt=D(r=>function(t=null){r(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function Qs(r,e){let{first:t,each:o,with:n=pt,scheduler:i=e??I,meta:s=null}=ke(r)?{first:r}:typeof r=="number"?{each:r}:r;if(t==null&&o==null)throw new TypeError("No timeout provided.");return l((u,f)=>{let p,m,x=null,w=0,b=y=>{m=O(f,i,()=>{try{p.unsubscribe(),d(n({meta:s,lastValue:x,seen:w})).subscribe(f)}catch(v){f.error(v)}},y)};p=u.subscribe(c(f,y=>{m?.unsubscribe(),w++,f.next(x=y),o>0&&b(o)},void 0,void 0,()=>{m?.closed||m?.unsubscribe(),x=null})),!w&&b(t!=null?typeof t=="number"?t:+t-i.now():o)})}function pt(r){throw new lt(r)}function C(r,e){return l((t,o)=>{let n=0;t.subscribe(c(o,i=>{o.next(r.call(e,i,n++))}))})}var{isArray:mt}=Array;function at(r,e){return mt(e)?r(...e):r(e)}function re(r){return C(e=>at(r,e))}var{isArray:dt}=Array,{getPrototypeOf:ht,prototype:xt,keys:bt}=Object;function Re(r){if(r.length===1){let e=r[0];if(dt(e))return{args:e,keys:null};if(yt(e)){let t=bt(e);return{args:t.map(o=>e[o]),keys:t}}}return{args:r,keys:null}}function yt(r){return r&&typeof r=="object"&&ht(r)===xt}function Me(r,e){return r.reduce((t,o,n)=>(t[o]=e[n],t),{})}function vt(...r){let e=V(r),t=N(r),{args:o,keys:n}=Re(r);if(o.length===0)return R([],e);let i=new h(wt(o,e,n?s=>Me(n,s):E));return t?i.pipe(re(t)):i}function wt(r,e,t=E){return o=>{jr(e,()=>{let{length:n}=r,i=new Array(n),s=n,u=n;for(let f=0;f<n;f++)jr(e,()=>{let p=R(r[f],e),m=!1;p.subscribe(c(o,x=>{i[f]=x,m||(m=!0,u--),u||o.next(t(i.slice()))},()=>{--s||o.complete()}))},o)},o)}}function jr(r,e,t){r?O(t,r,e):e()}function Cr(r,e,t,o,n,i,s,u){let f=[],p=0,m=0,x=!1,w=()=>{x&&!f.length&&!p&&e.complete()},b=v=>p<o?y(v):f.push(v),y=v=>{i&&e.next(v),p++;let g=!1;d(t(v,m++)).subscribe(c(e,_=>{n?.(_),i?b(_):e.next(_)},()=>{g=!0},void 0,()=>{if(g)try{for(p--;f.length&&p<o;){let _=f.shift();s?O(e,s,()=>y(_)):y(_)}w()}catch(_){e.error(_)}}))};return r.subscribe(c(e,b,()=>{x=!0,w()})),()=>{u?.()}}function k(r,e,t=1/0){return a(e)?k((o,n)=>C((i,s)=>e(o,i,n,s))(d(r(o,n))),t):(typeof e=="number"&&(t=e),l((o,n)=>Cr(o,n,r,t)))}function Le(r=1/0){return k(E,r)}function kr(){return Le(1)}function te(...r){return kr()(R(r,V(r)))}function _t(r){return new h(e=>{d(r()).subscribe(e)})}function St(...r){let e=N(r),{args:t,keys:o}=Re(r),n=new h(i=>{let{length:s}=t;if(!s){i.complete();return}let u=new Array(s),f=s,p=s;for(let m=0;m<s;m++){let x=!1;d(t[m]).subscribe(c(i,w=>{x||(x=!0,p--),u[m]=w},()=>f--,void 0,()=>{(!f||!x)&&(p||i.next(o?Me(o,u):u),i.complete())}))}});return e?n.pipe(re(e)):n}var gt=["addListener","removeListener"],Et=["addEventListener","removeEventListener"],Ot=["on","off"];function or(r,e,t,o){if(a(t)&&(o=t,t=void 0),o)return or(r,e,t).pipe(re(o));let[n,i]=Tt(r)?Et.map(s=>u=>r[s](e,u,t)):It(r)?gt.map(Rr(r,e)):At(r)?Ot.map(Rr(r,e)):[];if(!n&&Q(r))return k(s=>or(s,e,t))(d(r));if(!n)throw new TypeError("Invalid event target");return new h(s=>{let u=(...f)=>s.next(1<f.length?f:f[0]);return n(u),()=>i(u)})}function Rr(r,e){return t=>o=>r[t](e,o)}function It(r){return a(r.addListener)&&a(r.removeListener)}function At(r){return a(r.on)&&a(r.off)}function Tt(r){return a(r.addEventListener)&&a(r.removeEventListener)}function q(r=0,e,t=Pr){let o=-1;return e!=null&&(Ce(e)?t=e:o=e),new h(n=>{let i=ke(r)?+r-t.now():r;i<0&&(i=0);let s=0;return t.schedule(function(){n.closed||(n.next(s++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function Pt(r=0,e=I){return r<0&&(r=0),q(r,r,e)}function Ft(...r){let e=V(r),t=Fr(r,1/0),o=r;return o.length?o.length===1?d(o[0]):Le(t)(R(o,e)):A}var{isArray:jt}=Array;function Mr(r){return r.length===1&&jt(r[0])?r[0]:r}function K(r,e){return l((t,o)=>{let n=0;t.subscribe(c(o,i=>r.call(e,i,n++)&&o.next(i)))})}function Ct(...r){let e=N(r),t=Mr(r);return t.length?new h(o=>{let n=t.map(()=>[]),i=t.map(()=>!1);o.add(()=>{n=i=null});for(let s=0;!o.closed&&s<t.length;s++)d(t[s]).subscribe(c(o,u=>{if(n[s].push(u),n.every(f=>f.length)){let f=n.map(p=>p.shift());o.next(e?e(...f):f),n.some((p,m)=>!p.length&&i[m])&&o.complete()}},()=>{i[s]=!0,!n[s].length&&o.complete()}));return()=>{n=i=null}}):A}function Lr(r){return l((e,t)=>{let o=!1,n=null,i=null,s=!1,u=()=>{if(i?.unsubscribe(),i=null,o){o=!1;let p=n;n=null,t.next(p)}s&&t.complete()},f=()=>{i=null,s&&t.complete()};e.subscribe(c(t,p=>{o=!0,n=p,i||d(r(p)).subscribe(i=c(t,u,f))},()=>{s=!0,(!o||!i||i.closed)&&t.complete()}))})}function ku(r,e=I){return Lr(()=>q(r,e))}function kt(r){return l((e,t)=>{let o=null,n=!1,i;o=e.subscribe(c(t,void 0,void 0,s=>{i=d(r(s,kt(r)(e))),o?(o.unsubscribe(),o=null,i.subscribe(t)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(t))})}function Ue(r,e,t,o,n){return(i,s)=>{let u=t,f=e,p=0;i.subscribe(c(s,m=>{let x=p++;f=u?r(f,m,x):(u=!0,m),o&&s.next(f)},n&&(()=>{u&&s.next(f),s.complete()})))}}function Ur(r,e){return l(Ue(r,e,arguments.length>=2,!1,!0))}var Rt=(r,e)=>(r.push(e),r);function $u(){return l((r,e)=>{Ur(Rt,[])(r).subscribe(e)})}function Hu(r,e){return a(e)?k(r,e,1):k(r,1)}function tc(r){return l((e,t)=>{let o=!1,n=null,i=null,s=()=>{if(i?.unsubscribe(),i=null,o){o=!1;let u=n;n=null,t.next(u)}};e.subscribe(c(t,u=>{i?.unsubscribe(),o=!0,n=u,i=c(t,s,F),d(r(u)).subscribe(i)},()=>{s(),t.complete()},void 0,()=>{n=i=null}))})}function fc(r,e=I){return l((t,o)=>{let n=null,i=null,s=null,u=()=>{if(n){n.unsubscribe(),n=null;let p=i;i=null,o.next(p)}};function f(){let p=s+r,m=e.now();if(m<p){n=this.schedule(void 0,p-m),o.add(n);return}u()}t.subscribe(c(o,p=>{i=p,s=e.now(),n||(n=e.schedule(f,r),o.add(n))},()=>{u(),o.complete()},void 0,()=>{i=n=null}))})}function Ve(r){return l((e,t)=>{let o=!1;e.subscribe(c(t,n=>{o=!0,t.next(n)},()=>{o||t.next(r),t.complete()}))})}function oe(r){return r<=0?()=>A:l((e,t)=>{let o=0;e.subscribe(c(t,n=>{++o<=r&&(t.next(n),r<=o&&t.complete())}))})}function Vr(){return l((r,e)=>{r.subscribe(c(e,F))})}function Wr(r){return C(()=>r)}function nr(r,e){return e?t=>te(e.pipe(oe(1),Vr()),t.pipe(nr(r))):k((t,o)=>d(r(t,o)).pipe(oe(1),Wr(t)))}function Mt(r,e=I){let t=q(r,e);return nr(()=>t)}function Lc(){return l((r,e)=>{r.subscribe(c(e,t=>tr(t,e)))})}function Dc(r,e=E){return r=r??Lt,l((t,o)=>{let n,i=!0;t.subscribe(c(o,s=>{let u=e(s);(i||!r(n,u))&&(i=!1,n=u,o.next(s))}))})}function Lt(r,e){return r===e}function We(r=Ut){return l((e,t)=>{let o=!1;e.subscribe(c(t,n=>{o=!0,t.next(n)},()=>o?t.complete():t.error(r())))})}function Ut(){return new W}function Vt(r,e){return e?t=>t.pipe(Vt((o,n)=>d(r(o,n)).pipe(C((i,s)=>e(o,i,n,s))))):l((t,o)=>{let n=0,i=null,s=!1;t.subscribe(c(o,u=>{i||(i=c(o,void 0,()=>{i=null,s&&o.complete()}),d(r(u,n++)).subscribe(i))},()=>{s=!0,!i&&o.complete()}))})}function Xc(r){return l((e,t)=>{try{e.subscribe(t)}finally{t.add(r)}})}function fl(r,e){let t=arguments.length>=2;return o=>o.pipe(r?K((n,i)=>r(n,i,o)):E,oe(1),t?Ve(e):We(()=>new W))}function dl(r,e,t,o){return l((n,i)=>{let s;!e||typeof e=="function"?s=e:{duration:t,element:s,connector:o}=e;let u=new Map,f=y=>{u.forEach(y),y(i)},p=y=>f(v=>v.error(y)),m=0,x=!1,w=new ne(i,y=>{try{let v=r(y),g=u.get(v);if(!g){u.set(v,g=o?o():new M);let _=b(v,g);if(i.next(_),t){let T=c(g,()=>{g.complete(),T?.unsubscribe()},void 0,void 0,()=>u.delete(v));w.add(d(t(_)).subscribe(T))}}g.next(s?s(y):y)}catch(v){p(v)}},()=>f(y=>y.complete()),p,()=>u.clear(),()=>(x=!0,m===0));n.subscribe(w);function b(y,v){let g=new h(_=>{m++;let T=v.subscribe(_);return()=>{T.unsubscribe(),--m===0&&x&&w.unsubscribe()}});return g.key=y,g}})}function qr(r){return r<=0?()=>A:l((e,t)=>{let o=[];e.subscribe(c(t,n=>{o.push(n),r<o.length&&o.shift()},()=>{for(let n of o)t.next(n);t.complete()},void 0,()=>{o=null}))})}function Il(r,e){let t=arguments.length>=2;return o=>o.pipe(r?K((n,i)=>r(n,i,o)):E,qr(1),t?Ve(e):We(()=>new W))}function jl(){return l((r,e)=>{r.subscribe(c(e,t=>{e.next(z.createNext(t))},()=>{e.next(z.createComplete()),e.complete()},t=>{e.next(z.createError(t)),e.complete()}))})}function Wt(){return l((r,e)=>{let t,o=!1;r.subscribe(c(e,n=>{let i=t;t=n,o&&e.next([i,n]),o=!0}))})}function Ul(...r){let e=r.length;if(e===0)throw new Error("list of properties cannot be empty.");return C(t=>{let o=t;for(let n=0;n<e;n++){let i=o?.[r[n]];if(typeof i<"u")o=i;else return}return o})}function qt(r){let e=1/0,t;return r!=null&&(typeof r=="object"?{count:e=1/0,delay:t}=r:e=r),e<=0?()=>A:l((o,n)=>{let i=0,s,u=()=>{if(s?.unsubscribe(),s=null,t!=null){let p=typeof t=="number"?q(t):d(t(i)),m=c(n,()=>{m.unsubscribe(),f()});p.subscribe(m)}else f()},f=()=>{let p=!1;s=o.subscribe(c(n,void 0,()=>{++i<e?s?u():p=!0:n.complete()})),p&&u()};f()})}function Dt(r,e){return l(Ue(r,e,arguments.length>=2,!0))}function Dr(r={}){let{connector:e=()=>new M,resetOnError:t=!0,resetOnComplete:o=!0,resetOnRefCountZero:n=!0}=r;return i=>{let s,u,f,p=0,m=!1,x=!1,w=()=>{u?.unsubscribe(),u=void 0},b=()=>{w(),s=f=void 0,m=x=!1},y=()=>{let v=s;b(),v?.unsubscribe()};return l((v,g)=>{p++,!x&&!m&&w();let _=f=f??e();g.add(()=>{p--,p===0&&!x&&!m&&(u=ir(y,n))}),_.subscribe(g),!s&&p>0&&(s=new j({next:T=>_.next(T),error:T=>{x=!0,w(),u=ir(b,t,T),_.error(T)},complete:()=>{m=!0,w(),u=ir(b,o),_.complete()}}),d(v).subscribe(s))})(i)}}function ir(r,e,...t){if(e===!0){r();return}if(e===!1)return;let o=new j({next:()=>{o.unsubscribe(),r()}});return d(e(...t)).subscribe(o)}function rp(r,e,t){let o,n=!1;return r&&typeof r=="object"?{bufferSize:o=1/0,windowTime:e=1/0,refCount:n=!1,scheduler:t}=r:o=r??1/0,Dr({connector:()=>new se(o,e,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:n})}function np(r){return K((e,t)=>r<=t)}function Nt(r){return l((e,t)=>{let o=!1,n=0;e.subscribe(c(t,i=>(o||(o=!r(i,n++)))&&t.next(i)))})}function zt(...r){let e=V(r);return l((t,o)=>{(e?te(r,t,e):te(r,t)).subscribe(o)})}function Yt(r,e){return l((t,o)=>{let n=null,i=0,s=!1,u=()=>s&&!n&&o.complete();t.subscribe(c(o,f=>{n?.unsubscribe();let p=0,m=i++;d(r(f,m)).subscribe(n=c(o,x=>o.next(e?e(f,x,m,p++):x),()=>{n=null,u()}))},()=>{s=!0,u()}))})}function Gt(r){return l((e,t)=>{d(r).subscribe(c(t,()=>t.complete(),F)),!t.closed&&e.subscribe(t)})}function Ep(r,e=!1){return l((t,o)=>{let n=0;t.subscribe(c(o,i=>{let s=r(i,n++);(s||e)&&o.next(i),!s&&o.complete()}))})}function $t(r,e,t){let o=a(r)||e||t?{next:r,error:e,complete:t}:r;return o?l((n,i)=>{var s;(s=o.subscribe)===null||s===void 0||s.call(o);let u=!0;n.subscribe(c(i,f=>{var p;(p=o.next)===null||p===void 0||p.call(o,f),i.next(f)},()=>{var f;u=!1,(f=o.complete)===null||f===void 0||f.call(o),i.complete()},f=>{var p;u=!1,(p=o.error)===null||p===void 0||p.call(o,f),i.error(f)},()=>{var f,p;u&&((f=o.unsubscribe)===null||f===void 0||f.call(o)),(p=o.finalize)===null||p===void 0||p.call(o)}))}):E}function Bt(r=I){return l((e,t)=>{let o=r.now();e.subscribe(c(t,n=>{let i=r.now(),s=i-o;o=i,t.next(new sr(n,s))}))})}var sr=class{constructor(e,t){this.value=e,this.interval=t}};function Dp(...r){let e=N(r);return l((t,o)=>{let n=r.length,i=new Array(n),s=r.map(()=>!1),u=!1;for(let f=0;f<n;f++)d(r[f]).subscribe(c(o,p=>{i[f]=p,!u&&!s[f]&&(s[f]=!0,(u=s.every(E))&&(s=null))},F));t.subscribe(c(o,f=>{if(u){let p=[f,...i];o.next(e?e(...p):p)}}))})}export{S as a,$r as b,h as c,Or as d,Je as e,M as f,He as g,se as h,it as i,st as j,ft as k,A as l,Ro as m,ar as n,Be as o,_e as p,R as q,er as r,rr as s,ut as t,W as u,ct as v,Qs as w,C as x,vt as y,k as z,te as A,_t as B,St as C,or as D,q as E,Pt as F,Ft as G,K as H,Ct as I,ku as J,kt as K,$u as L,Hu as M,tc as N,fc as O,Ve as P,oe as Q,Vr as R,Wr as S,Mt as T,Lc as U,Dc as V,Vt as W,Xc as X,fl as Y,dl as Z,qr as _,Il as $,jl as aa,Wt as ba,Ul as ca,qt as da,Dt as ea,Dr as fa,rp as ga,np as ha,Nt as ia,zt as ja,Yt as ka,Gt as la,Ep as ma,$t as na,Bt as oa,Dp as pa};
//# sourceMappingURL=chunk-472WPQLO.js.map
//# debugId=3aebc708-56d0-52b4-918b-f5738c7b5df9