altair-static 5.0.18 → 5.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/build/dist/104.js +1 -0
  2. package/build/dist/232.js +1 -0
  3. package/build/dist/244.js +1 -0
  4. package/build/dist/257.js +1 -0
  5. package/build/dist/3rdpartylicenses.txt +24 -0
  6. package/build/dist/521.js +1 -1
  7. package/build/dist/{471.js → 614.js} +1 -1
  8. package/build/dist/625.js +1 -0
  9. package/build/dist/629.js +1 -0
  10. package/build/dist/679.js +1 -0
  11. package/build/dist/751.js +1 -0
  12. package/build/dist/777.js +1 -0
  13. package/build/dist/789.js +1 -0
  14. package/build/dist/829.js +1 -0
  15. package/build/dist/902.js +1 -0
  16. package/build/dist/assets/i18n/ach-UG.json +5 -1
  17. package/build/dist/assets/i18n/cs-CZ.json +5 -1
  18. package/build/dist/assets/i18n/da-DK.json +5 -1
  19. package/build/dist/assets/i18n/de-DE.json +5 -1
  20. package/build/dist/assets/i18n/default.json +4 -0
  21. package/build/dist/assets/i18n/en-US.json +5 -1
  22. package/build/dist/assets/i18n/es-ES.json +5 -1
  23. package/build/dist/assets/i18n/fi-FI.json +5 -1
  24. package/build/dist/assets/i18n/fr-FR.json +5 -1
  25. package/build/dist/assets/i18n/hu-HU.json +5 -1
  26. package/build/dist/assets/i18n/it-IT.json +5 -1
  27. package/build/dist/assets/i18n/ja-JP.json +5 -1
  28. package/build/dist/assets/i18n/ko-KR.json +5 -1
  29. package/build/dist/assets/i18n/nl-NL.json +5 -1
  30. package/build/dist/assets/i18n/no-NO.json +5 -1
  31. package/build/dist/assets/i18n/pl-PL.json +5 -1
  32. package/build/dist/assets/i18n/pt-BR.json +5 -1
  33. package/build/dist/assets/i18n/pt-PT.json +5 -1
  34. package/build/dist/assets/i18n/ro-RO.json +5 -1
  35. package/build/dist/assets/i18n/ru-RU.json +5 -1
  36. package/build/dist/assets/i18n/sr-SP.json +5 -1
  37. package/build/dist/assets/i18n/sv-SE.json +5 -1
  38. package/build/dist/assets/i18n/tr-TR.json +5 -1
  39. package/build/dist/assets/i18n/uk-UA.json +5 -1
  40. package/build/dist/assets/i18n/vi-VN.json +5 -1
  41. package/build/dist/assets/i18n/zh-CN.json +5 -1
  42. package/build/dist/assets/i18n/zh-TW.json +5 -1
  43. package/build/dist/main.js +1 -1
  44. package/build/dist/polyfills.js +1 -1
  45. package/build/dist/styles.css +1 -1
  46. package/package.json +6 -6
  47. package/src/__snapshots__/index.test.ts.snap +27 -27
  48. package/build/dist/243.js +0 -1
  49. package/build/dist/364.js +0 -1
  50. package/build/dist/480.js +0 -1
  51. package/build/dist/482.js +0 -1
  52. package/build/dist/60.js +0 -1
  53. package/build/dist/609.js +0 -1
  54. package/build/dist/630.js +0 -1
  55. package/build/dist/783.js +0 -1
  56. package/build/dist/810.js +0 -1
  57. package/build/dist/852.js +0 -1
  58. package/build/dist/855.js +0 -1
  59. package/build/dist/89.js +0 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[104],{74092:function(m,v,f){var g,b;(function(){(function(){(function(){var l=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(i){var t;return null==i&&(i=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new s.Consumer(this.createWebSocketURL(i))},getConfig:function(i){return document.head.querySelector("meta[name='action-cable-"+i+"']")?.getAttribute("content")},createWebSocketURL:function(i){var t;return i&&!/^wss?:/i.test(i)?((t=document.createElement("a")).href=i,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):i},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var i,t;if(i=1<=arguments.length?l.call(arguments,0):[],this.debugging)return i.push(Date.now()),(t=this.logger).log.apply(t,["[ActionCable]"].concat(l.call(i)))}}}).call(this)}).call(this);var s=this.ActionCable;(function(){(function(){var l=function(i,t){return function(){return i.apply(t,arguments)}};s.ConnectionMonitor=function(){var i,t,o;function n(e){this.connection=e,this.visibilityDidChange=l(this.visibilityDidChange,this),this.reconnectAttempts=0}return n.pollInterval={min:3,max:30},n.staleThreshold=6,n.prototype.start=function(){if(!this.isRunning())return this.startedAt=t(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},n.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=t(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor stopped")},n.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},n.prototype.recordPing=function(){return this.pingedAt=t()},n.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,s.log("ConnectionMonitor recorded connect")},n.prototype.recordDisconnect=function(){return this.disconnectedAt=t(),s.log("ConnectionMonitor recorded disconnect")},n.prototype.startPolling=function(){return this.stopPolling(),this.poll()},n.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},n.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},n.prototype.getPollInterval=function(){var e,c,u,h;return u=(h=this.constructor.pollInterval).min,c=h.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*i(e,u,c))},n.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return s.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+o(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?s.log("ConnectionMonitor skipping reopening recent disconnect"):(s.log("ConnectionMonitor reopening"),this.connection.reopen())},n.prototype.connectionIsStale=function(){var e;return o(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},n.prototype.disconnectedRecently=function(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold},n.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return s.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},t=function(){return(new Date).getTime()},o=function(e){return(t()-e)/1e3},i=function(e,c,u){return Math.max(c,Math.min(u,e))},n}()}).call(this),function(){var i,t,o,n,c=[].slice,u=function(p,r){return function(){return p.apply(r,arguments)}},h=[].indexOf||function(p){for(var r=0,a=this.length;r<a;r++)if(r in this&&this[r]===p)return r;return-1};i=(o=s.INTERNAL).message_types,n=2<=(t=o.protocols).length?c.call(t,0,t.length-1):(0,[]),s.Connection=function(){function p(r){this.consumer=r,this.open=u(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new s.ConnectionMonitor(this),this.disconnected=!0}return p.reopenDelay=500,p.prototype.send=function(r){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(r)),!0)},p.prototype.open=function(){return this.isActive()?(s.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(s.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+t),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new s.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0)},p.prototype.close=function(r){var d;if((r??{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(d=this.webSocket)?d.close():void 0},p.prototype.reopen=function(){if(s.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(a){return s.log("Failed to reopen WebSocket",a)}finally{s.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},p.prototype.getProtocol=function(){var r;return null!=(r=this.webSocket)?r.protocol:void 0},p.prototype.isOpen=function(){return this.isState("open")},p.prototype.isActive=function(){return this.isState("open","connecting")},p.prototype.isProtocolSupported=function(){var r;return r=this.getProtocol(),h.call(n,r)>=0},p.prototype.isState=function(){var r,a;return a=1<=arguments.length?c.call(arguments,0):[],r=this.getState(),h.call(a,r)>=0},p.prototype.getState=function(){var r,a;for(a in WebSocket)if(WebSocket[a]===(null!=(r=this.webSocket)?r.readyState:void 0))return a.toLowerCase();return null},p.prototype.installEventHandlers=function(){var r,a;for(r in this.events)a=this.events[r].bind(this),this.webSocket["on"+r]=a},p.prototype.uninstallEventHandlers=function(){var r;for(r in this.events)this.webSocket["on"+r]=function(){}},p.prototype.events={message:function(r){var a,d,S,A;if(this.isProtocolSupported())switch(S=JSON.parse(r.data),a=S.identifier,d=S.message,A=S.type,A){case i.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case i.ping:return this.monitor.recordPing();case i.confirmation:return this.subscriptions.notify(a,"connected");case i.rejection:return this.subscriptions.reject(a);default:return this.subscriptions.notify(a,"received",d)}},open:function(){if(s.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return s.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(r){if(s.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return s.log("WebSocket onerror event")}},p}()}.call(this),function(){var l=[].slice;s.Subscriptions=function(){function i(t){this.consumer=t,this.subscriptions=[]}return i.prototype.create=function(t,o){var n,c;return c=new s.Subscription(this.consumer,"object"==typeof(n=t)?n:{channel:n},o),this.add(c)},i.prototype.add=function(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.sendCommand(t,"subscribe"),t},i.prototype.remove=function(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t},i.prototype.reject=function(t){var o,n,e,c,u;for(c=[],o=0,n=(e=this.findAll(t)).length;o<n;o++)this.forget(u=e[o]),this.notify(u,"rejected"),c.push(u);return c},i.prototype.forget=function(t){var o;return this.subscriptions=function(){var n,e,c,u;for(u=[],n=0,e=(c=this.subscriptions).length;n<e;n++)(o=c[n])!==t&&u.push(o);return u}.call(this),t},i.prototype.findAll=function(t){var o,n,e,c,u;for(c=[],o=0,n=(e=this.subscriptions).length;o<n;o++)(u=e[o]).identifier===t&&c.push(u);return c},i.prototype.reload=function(){var t,o,n,e;for(e=[],t=0,o=(n=this.subscriptions).length;t<o;t++)e.push(this.sendCommand(n[t],"subscribe"));return e},i.prototype.notifyAll=function(){var t,o,n,e,c,u;for(o=arguments[0],t=2<=arguments.length?l.call(arguments,1):[],u=[],n=0,e=(c=this.subscriptions).length;n<e;n++)u.push(this.notify.apply(this,[c[n],o].concat(l.call(t))));return u},i.prototype.notify=function(){var t,o,n,e,c,u,h;for(u=arguments[0],o=arguments[1],t=3<=arguments.length?l.call(arguments,2):[],c=[],n=0,e=(h="string"==typeof u?this.findAll(u):[u]).length;n<e;n++)c.push("function"==typeof(u=h[n])[o]?u[o].apply(u,t):void 0);return c},i.prototype.sendCommand=function(t,o){return this.consumer.send({command:o,identifier:t.identifier})},i}()}.call(this),function(){s.Subscription=function(){var l;function i(t,o,n){this.consumer=t,null==o&&(o={}),this.identifier=JSON.stringify(o),l(this,n)}return i.prototype.perform=function(t,o){return null==o&&(o={}),o.action=t,this.send(o)},i.prototype.send=function(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})},i.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},l=function(t,o){var n;if(null!=o)for(n in o)t[n]=o[n];return t},i}()}.call(this),function(){s.Consumer=function(){function l(i){this.url=i,this.subscriptions=new s.Subscriptions(this),this.connection=new s.Connection(this)}return l.prototype.send=function(i){return this.connection.send(i)},l.prototype.connect=function(){return this.connection.open()},l.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},l.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},l}()}.call(this)}).call(this),m.exports?m.exports=s:void 0!==(b="function"==typeof(g=s)?g.call(v,f,v,m):g)&&(m.exports=b)}).call(this)},94104:(m,v,f)=>{"use strict";f.r(v),f.d(v,{ActionCableSubscriptionProvider:()=>l});var g=f(43588),b=f(62503),y=f(74092),s=f.n(y);class l extends g.q{execute(t){const o=s().createConsumer(this.subscriptionUrl);return new b.y(n=>{this.subscription=o.subscriptions.create(Object.assign({},{channel:this.connectionParams.channel||"GraphqlChannel",channelId:Math.round(Date.now()+1e5*Math.random()).toString(16)},{}),{connected:function(){this.perform("execute",t)},received:function(e){(e.result.data||e.result.errors)&&n.next(e.result),e.more||n.complete()}})})}close(){this.subscription?.unsubscribe()}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[232],{10232:(ie,J,R)=>{R.r(J),R.d(J,{GraphQLSSESubscriptionProvider:()=>re});var L=R(48309),$=R(43588),B=R(62503);const V="x-graphql-event-stream-token";function H(e){if("next"!==e&&"complete"!==e)throw new Error(`Invalid stream event "${e}"`);return e}function W(e,t){if(t)try{t=JSON.parse(t)}catch{throw new Error("Invalid stream data")}if("next"===e&&!t)throw new Error('Stream data must be an object for "next" events');return t||null}var O=(()=>{return(e=O||(O={}))[e.NewLine=10]="NewLine",e[e.CchunkiageReturn=13]="CchunkiageReturn",e[e.Space=32]="Space",e[e.Colon=58]="Colon",O;var e})(),K=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),n={},f("next"),f("throw"),f("return"),n[Symbol.asyncIterator]=function(){return this},n);function f(y){n[y]=e[y]&&function(w){return new Promise(function(m,b){!function s(y,w,m,b){Promise.resolve(b).then(function(v){y({value:v,done:m})},w)}(m,b,(w=e[y](w)).done,w.value)})}}},Z=function(e){return this instanceof Z?(this.v=e,this):new Z(e)},Q=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,f=n.apply(e,t||[]),y=[];return s={},w("next"),w("throw"),w("return"),s[Symbol.asyncIterator]=function(){return this},s;function w(r){f[r]&&(s[r]=function(o){return new Promise(function(u,x){y.push([r,o,u,x])>1||m(r,o)})})}function m(r,o){try{!function b(r){r.value instanceof Z?Promise.resolve(r.value.v).then(v,h):l(y[0][2],r)}(f[r](o))}catch(u){l(y[0][3],u)}}function v(r){m("next",r)}function h(r){m("throw",r)}function l(r,o){r(o),y.shift(),y.length&&m(y[0][0],y[0][1])}};class I extends Error{constructor(t){let n,f;!function te(e){return function q(e){return"object"==typeof e&&null!==e}(e)&&"boolean"==typeof e.ok&&"number"==typeof e.status&&"string"==typeof e.statusText}(t)?n=t instanceof Error?t.message:String(t):(f=t,n="Server responded with "+t.status+": "+t.statusText),super(n),this.name=this.constructor.name,this.response=f}}function Y(e){return z.apply(this,arguments)}function z(){return z=(0,L.Z)(function*(e){const{signal:t,url:n,credentials:f,headers:s,body:y,fetchFn:w,onMessage:m}=e,b={},v={};let h;try{h=yield w(n,{signal:t,method:y?"POST":"GET",credentials:f,headers:Object.assign(Object.assign({},s),{accept:"text/event-stream"}),body:y})}catch(o){throw new I(o)}if(!h.ok)throw new I(h);if(!h.body)throw new Error("Missing response body");let r,l=null;return(0,L.Z)(function*(){var o,u,x;try{const E=function X(){let e,t,n,f=!1,s={event:"",data:""},y=[];const w=new TextDecoder;return function(b){if(void 0===e)e=b,t=0,n=-1;else{const l=new Uint8Array(e.length+b.length);l.set(e),l.set(b,e.length),e=l}const v=e.length;let h=0;for(;t<v;){f&&(e[t]===O.NewLine&&(h=++t),f=!1);let l=-1;for(;t<v&&-1===l;++t)switch(e[t]){case O.Colon:-1===n&&(n=t-h);break;case O.CchunkiageReturn:f=!0;case O.NewLine:l=t}if(-1===l)break;if(h===l){if(s.event||s.data){if(!s.event)throw new Error("Missing message event");const r=H(s.event),o=W(r,s.data);y.push({event:r,data:o}),s={event:"",data:""}}}else if(n>0){const r=e.subarray(h,l),o=w.decode(r.subarray(0,n)),x=w.decode(r.subarray(n+(r[n+1]===O.Space?2:1)));switch(o){case"event":s.event=x;break;case"data":s.data=s.data?s.data+"\n"+x:x}}h=t,n=-1}if(h===v){e=void 0;const l=[...y];return y=[],l}0!==h&&(e=e.subarray(h),t-=h)}}();try{for(var p,g=K(function ne(e){return"function"==typeof Object(e)[Symbol.asyncIterator]?e[Symbol.asyncIterator]():function(){return Q(this,arguments,function*(){const t=e.getReader();let n;do{n=yield Z(t.read()),void 0!==n.value&&(yield yield Z(n.value))}while(!n.done)})}()}(h.body));!(p=yield g.next()).done;){const S=p.value;if("string"==typeof S)throw new Error(`Unexpected string chunk "${S}"`);const a=E(S);if(a)for(const c of a){m?.(c);const i=c.data&&"id"in c.data?c.data.id:"";switch(i in v||(v[i]=[]),c.event){case"next":v[i].push(i?c.data.payload:c.data);break;case"complete":v[i].push("complete");break;default:throw new Error(`Unexpected message event "${c.event}"`)}null===(x=b[i])||void 0===x||x.proceed()}}}catch(S){o={error:S}}finally{try{p&&!p.done&&(u=g.return)&&(yield u.call(g))}finally{if(o)throw o.error}}}catch(E){l=/network|stream/i.test(E)?new I(E):E,r?.(l)}finally{Object.values(b).forEach(({proceed:E})=>E())}})(),{url:n,headers:s,waitForThrow:()=>new Promise((o,u)=>{if(l)return u(l);r=u}),getResults(o){var u;return Q(this,arguments,function*(){const{signal:g,operationId:p=""}=o??{};try{for(;;){for(;null!==(u=v[p])&&void 0!==u&&u.length;){const E=v[p].shift();if("complete"===E)return yield Z(void 0);yield yield Z(E)}if(l)throw l;if(g?.aborted)throw new Error("Getting results aborted by the client");yield Z(new Promise(E=>{const S=()=>{g?.removeEventListener("abort",S),delete b[p],E()};g?.addEventListener("abort",S),b[p]={proceed:S}}))}}finally{delete v[p]}})}}}),z.apply(this,arguments)}class re extends $.q{createClient(){this.client=function ee(e){const{singleConnection:t=!1,lazy:n=!0,lazyCloseTimeout:f=0,onNonLazyError:s=console.error,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,c=>{const i=16*Math.random()|0;return("x"==c?i:3&i|8).toString(16)})},retryAttempts:w=5,retry:m=function(){var a=(0,L.Z)(function*(i){let D=1e3;for(let d=0;d<i;d++)D*=2;yield new Promise(d=>setTimeout(d,D+Math.floor(2700*Math.random()+300)))});return function c(i){return a.apply(this,arguments)}}(),credentials:b="same-origin",onMessage:v}=e,h=e.fetchFn||fetch,l=e.abortControllerImpl||AbortController,r=(()=>{let a=!1;const c=[];return{get disposed(){return a},onDispose:i=>a?(setTimeout(()=>i(),0),()=>{}):(c.push(i),()=>{c.splice(c.indexOf(i),1)}),dispose(){if(!a){a=!0;for(const i of[...c])i()}}}})();let o,u,x=0,g=null,p=0;function E(){return S.apply(this,arguments)}function S(){return(S=(0,L.Z)(function*(){try{if(r.disposed)throw new Error("Client has been disposed");return yield u??(u=(0,L.Z)(function*(){var a;if(g){if(yield m(p),o.signal.aborted)throw new Error("Connection aborted by the client");p++}o=new l;const c=r.onDispose(()=>o.abort());o.signal.addEventListener("abort",()=>{c(),u=void 0});const i="function"==typeof e.url?yield e.url():e.url;if(o.signal.aborted)throw new Error("Connection aborted by the client");const D="function"==typeof e.headers?yield e.headers():null!==(a=e.headers)&&void 0!==a?a:{};if(o.signal.aborted)throw new Error("Connection aborted by the client");let d;try{d=yield h(i,{signal:o.signal,method:"PUT",credentials:b,headers:D})}catch(C){throw new I(C)}if(201!==d.status)throw new I(d);const G=yield d.text();D[V]=G;const T=yield Y({signal:o.signal,headers:D,credentials:b,url:i,fetchFn:h,onMessage:v});return g=null,p=0,T.waitForThrow().catch(()=>u=void 0),T})())}catch(a){throw u=void 0,a}})).apply(this,arguments)}return t&&!n&&(0,L.Z)(function*(){for(x++;;)try{const{waitForThrow:a}=yield E();yield a()}catch(a){if(r.disposed)return;if(!(a instanceof I)||(u=void 0,!w||p>=w))return s?.(a);g=a}})(),{subscribe(a,c){if(!t){const d=new l,G=r.onDispose(()=>{G(),d.abort()});return(0,L.Z)(function*(){var T,C,U;let P=null,k=0;for(;;)try{if(P){if(yield m(k),d.signal.aborted)throw new Error("Connection aborted by the client");k++}const N="function"==typeof e.url?yield e.url():e.url;if(d.signal.aborted)throw new Error("Connection aborted by the client");const j="function"==typeof e.headers?yield e.headers():null!==(U=e.headers)&&void 0!==U?U:{};if(d.signal.aborted)throw new Error("Connection aborted by the client");const{getResults:A}=yield Y({signal:d.signal,headers:j,credentials:b,url:N,body:JSON.stringify(a),fetchFn:h,onMessage:v});P=null,k=0;try{for(var _,M=(T=void 0,K(A()));!(_=yield M.next()).done;)c.next(_.value)}catch(F){T={error:F}}finally{try{_&&!_.done&&(C=M.return)&&(yield C.call(M))}finally{if(T)throw T.error}}return d.abort()}catch(N){if(d.signal.aborted)return;if(!(N instanceof I)||!w||k>=w)throw N;P=N}})().then(()=>c.complete()).catch(T=>c.error(T)),()=>d.abort()}x++;const i=new l,D=r.onDispose(()=>{D(),i.abort()});return(0,L.Z)(function*(){var d,G;const T=y();a=Object.assign(Object.assign({},a),{extensions:Object.assign(Object.assign({},a.extensions),{operationId:T})});let C=null;for(;;){C=null;try{const{url:k,headers:M,getResults:_}=yield E();let N;try{N=yield h(k,{signal:i.signal,method:"POST",credentials:b,headers:M,body:JSON.stringify(a)})}catch(j){throw new I(j)}if(202!==N.status)throw new I(N);C=function(){var j=(0,L.Z)(function*(){let A;try{const F=new l,oe=r.onDispose(()=>{oe(),F.abort()});A=yield h(k+"?operationId="+T,{signal:F.signal,method:"DELETE",credentials:b,headers:M})}catch(F){throw new I(F)}if(200!==A.status)throw new I(A)});return function(){return j.apply(this,arguments)}}();try{for(var P,U=(d=void 0,K(_({signal:i.signal,operationId:T})));!(P=yield U.next()).done;)c.next(P.value)}catch(j){d={error:j}}finally{try{P&&!P.done&&(G=U.return)&&(yield G.call(U))}finally{if(d)throw d.error}}return C=null,i.abort()}catch(k){if(i.signal.aborted)return yield C?.();if(!(k instanceof I)||(n&&(u=void 0),!w||p>=w))throw k;g=k}finally{i.signal.aborted&&0==--x&&(isFinite(f)&&f>0?setTimeout(()=>{x||o.abort()},f):o.abort())}}})().then(()=>c.complete()).catch(d=>c.error(d)),()=>i.abort()},dispose(){r.dispose()}}}({url:this.subscriptionUrl,headers:this.extraOptions?.headers})}execute(t){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new B.y(n=>{this.cleanup=this.client.subscribe({query:t.query,variables:t.variables,operationName:t.operationName},{next:(...f)=>n.next(...f),error:(...f)=>n.error(...f),complete:()=>n.complete()})})}close(){var t=this;return(0,L.Z)(function*(){try{t.cleanup?.(),t.cleanup=void 0,yield t.client?.dispose(),t.client=void 0}catch(n){console.error(n)}})()}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[244],{62244:function(Ce){Ce.exports=function(){"use strict";var pe=function(e,n){const o=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return o.loc=n,o};function L(e){var n={exports:{}};return e(n,n.exports),n.exports}function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var je=Object.defineProperty({default:function(e){return"object"==fe(e)&&null!==e}},"__esModule",{value:!0}),he=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SYMBOL_TO_STRING_TAG=n.SYMBOL_ASYNC_ITERATOR=n.SYMBOL_ITERATOR=void 0;var o="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator";n.SYMBOL_ITERATOR=o;var c="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator";n.SYMBOL_ASYNC_ITERATOR=c;var f="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";n.SYMBOL_TO_STRING_TAG=f}),q=Object.defineProperty({getLocation:function(e,n){for(var o,c=/\r\n|[\n\r]/g,f=1,T=n+1;(o=c.exec(e.body))&&o.index<n;)f+=1,T=n+1-(o.index+o[0].length);return{line:f,column:T}}},"__esModule",{value:!0});function Te(e,n){var o=e.locationOffset.column-1,c=H(o)+e.body,f=n.line-1,r=n.line+(e.locationOffset.line-1),i=n.column+(1===n.line?o:0),a="".concat(e.name,":").concat(r,":").concat(i,"\n"),l=c.split(/\r\n|[\n\r]/g),v=l[f];if(v.length>120){for(var b=Math.floor(i/80),d=i%80,E=[],m=0;m<v.length;m+=80)E.push(v.slice(m,m+80));return a+ve([["".concat(r),E[0]]].concat(E.slice(1,b+1).map(function(y){return["",y]}),[[" ",H(d-1)+"^"],["",E[b+1]]]))}return a+ve([["".concat(r-1),l[f-1]],["".concat(r),v],["",H(i-1)+"^"],["".concat(r+1),l[f+1]]])}function ve(e){var n=e.filter(function(c){return void 0!==c[1]}),o=Math.max.apply(Math,n.map(function(c){return c[0].length}));return n.map(function(c){var f,r=c[1];return H(o-(f=c[0]).length)+f+(r?" | "+r:" |")}).join("\n")}function H(e){return Array(e+1).join(" ")}var W,z=Object.defineProperty({printLocation:function(e){return Te(e.source,(0,q.getLocation)(e.source,e.start))},printSourceLocation:Te},"__esModule",{value:!0}),$=L(function(e,n){function o(m){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(y){return typeof y}:function(y){return y&&"function"==typeof Symbol&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(m)}Object.defineProperty(n,"__esModule",{value:!0}),n.printError=E,n.GraphQLError=void 0;var c,f=(c=je)&&c.__esModule?c:{default:c};function T(m,y){for(var _=0;_<y.length;_++){var u=y[_];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function r(m,y){return!y||"object"!==o(y)&&"function"!=typeof y?t(m):y}function t(m){if(void 0===m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function i(m){var y="function"==typeof Map?new Map:void 0;return(i=function(_){if(null===_||-1===Function.toString.call(_).indexOf("[native code]"))return _;if("function"!=typeof _)throw new TypeError("Super expression must either be null or a function");if(void 0!==y){if(y.has(_))return y.get(_);y.set(_,O)}function O(){return a(_,arguments,b(this).constructor)}return O.prototype=Object.create(_.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),v(O,_)})(m)}function a(m,y,_){return(a=l()?Reflect.construct:function(u,O,p){var N=[null];N.push.apply(N,O);var D=new(Function.bind.apply(u,N));return p&&v(D,p.prototype),D}).apply(null,arguments)}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function v(m,y){return(v=Object.setPrototypeOf||function(_,u){return _.__proto__=u,_})(m,y)}function b(m){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)})(m)}var d=function(m){!function(I,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(g&&g.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),g&&v(I,g)}(D,m);var y,_,u,O,N=(y=D,_=l(),function(){var I,g=b(y);if(_){var S=b(this).constructor;I=Reflect.construct(g,arguments,S)}else I=g.apply(this,arguments);return r(this,I)});function D(I,g,S,K,M,P,ne){var Y,w,J,ue,G;(function(B,U){if(!(B instanceof U))throw new TypeError("Cannot call a class as a function")})(this,D),G=N.call(this,I);var le,V=Array.isArray(g)?0!==g.length?g:void 0:g?[g]:void 0,de=S;!de&&V&&(de=null===(le=V[0].loc)||void 0===le?void 0:le.source);var te,X=K;!X&&V&&(X=V.reduce(function(B,U){return U.loc&&B.push(U.loc.start),B},[])),X&&0===X.length&&(X=void 0),K&&S?te=K.map(function(B){return(0,q.getLocation)(S,B)}):V&&(te=V.reduce(function(B,U){return U.loc&&B.push((0,q.getLocation)(U.loc.source,U.loc.start)),B},[]));var ie=ne;if(null==ie&&null!=P){var Pe=P.extensions;(0,f.default)(Pe)&&(ie=Pe)}return Object.defineProperties(t(G),{name:{value:"GraphQLError"},message:{value:I,enumerable:!0,writable:!0},locations:{value:null!==(Y=te)&&void 0!==Y?Y:void 0,enumerable:null!=te},path:{value:M??void 0,enumerable:null!=M},nodes:{value:V??void 0},source:{value:null!==(w=de)&&void 0!==w?w:void 0},positions:{value:null!==(J=X)&&void 0!==J?J:void 0},originalError:{value:P},extensions:{value:null!==(ue=ie)&&void 0!==ue?ue:void 0,enumerable:null!=ie}}),null!=P&&P.stack?(Object.defineProperty(t(G),"stack",{value:P.stack,writable:!0,configurable:!0}),r(G)):(Error.captureStackTrace?Error.captureStackTrace(t(G),D):Object.defineProperty(t(G),"stack",{value:Error().stack,writable:!0,configurable:!0}),G)}return u=D,(O=[{key:"toString",value:function(){return E(this)}},{key:he.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}])&&T(u.prototype,O),D}(i(Error));function E(m){var y=m.message;if(m.nodes)for(var _=0,u=m.nodes;_<u.length;_++){var O=u[_];O.loc&&(y+="\n\n"+(0,z.printLocation)(O.loc))}else if(m.source&&m.locations)for(var p=0,N=m.locations;p<N.length;p++)y+="\n\n"+(0,z.printSourceLocation)(m.source,N[p]);return y}n.GraphQLError=d}),R=Object.defineProperty({syntaxError:function(e,n,o){return new $.GraphQLError("Syntax Error: ".concat(o),void 0,e,[n])}},"__esModule",{value:!0}),Ee=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;n.default=o}),Je=(W=Ee)&&W.__esModule?W:{default:W};function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}function Z(e,n){switch(ye(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(o,c){if(-1!==c.indexOf(o))return"[Circular]";var t,i,f=[].concat(c,[o]),T="function"==typeof(i=(t=o)[String(Je.default)])?i:"function"==typeof t.inspect?t.inspect:void 0;if(void 0!==T){var r=T.call(o);if(r!==o)return"string"==typeof r?r:Z(r,f)}else if(Array.isArray(o))return function(t,i){if(0===t.length)return"[]";if(i.length>2)return"[Array]";for(var a=Math.min(10,t.length),l=t.length-a,v=[],b=0;b<a;++b)v.push(Z(t[b],i));return 1===l?v.push("... 1 more item"):l>1&&v.push("... ".concat(l," more items")),"["+v.join(", ")+"]"}(o,f);return function(t,i){var a=Object.keys(t);return 0===a.length?"{}":i.length>2?"["+function(l){var v=Object.prototype.toString.call(l).replace(/^\[object /,"").replace(/]$/,"");if("Object"===v&&"function"==typeof l.constructor){var b=l.constructor.name;if("string"==typeof b&&""!==b)return b}return v}(t)+"]":"{ "+a.map(function(l){return l+": "+Z(t[l],i)}).join(", ")+" }"}(o,f)}(e,n);default:return String(e)}}var e,oe=Object.defineProperty({default:function(e){return Z(e,[])}},"__esModule",{value:!0}),Qe=(e=oe)&&e.__esModule?e:{default:e},qe=Object.defineProperty({locatedError:function(e,n,o){var c,f=e instanceof Error?e:new Error("Unexpected error value: "+(0,Qe.default)(e));return Array.isArray(f.path)?f:new $.GraphQLError(f.message,null!==(c=f.nodes)&&void 0!==c?c:n,f.source,f.positions,o,f)}},"__esModule",{value:!0}),me=Object.defineProperty({default:function(e,n){if(!Boolean(e))throw new Error(n)}},"__esModule",{value:!0}),$e=function(e){return e&&e.__esModule?e:{default:e}}(me),We=Object.defineProperty({formatError:function(e){var n;e||(0,$e.default)(0,"Received null or undefined error.");var o=null!==(n=e.message)&&void 0!==n?n:"An unknown error occurred.",c=e.locations,f=e.path,T=e.extensions;return T?{message:o,locations:c,path:f,extensions:T}:{message:o,locations:c,path:f}}},"__esModule",{value:!0}),Ze=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return $.GraphQLError}}),Object.defineProperty(n,"printError",{enumerable:!0,get:function(){return $.printError}}),Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return R.syntaxError}}),Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return qe.locatedError}}),Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return We.formatError}})}),en=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(o,c){return o instanceof c}}),ae=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isSource=function(i){return(0,f.default)(i,t)},n.Source=void 0;var o=T(oe),c=T(me),f=T(en);function T(i){return i&&i.__esModule?i:{default:i}}function r(i,a){for(var l=0;l<a.length;l++){var v=a[l];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(i,v.key,v)}}var t=function(){function i(b){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof b||(0,c.default)(0,"Body must be a string. Received: ".concat((0,o.default)(b),".")),this.body=b,this.name=d,this.locationOffset=E,this.locationOffset.line>0||(0,c.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,c.default)(0,"column in locationOffset is 1-indexed and must be positive.")}var a,l;return a=i,(l=[{key:he.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}])&&r(a.prototype,l),i}();n.Source=t}),h=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void 0;var o=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});n.Kind=o}),s=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0;var o=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});n.TokenKind=o}),rn=ke(Object.defineProperty({default:function(e,n){if(!Boolean(e))throw new Error(n??"Unexpected invariant triggered.")}},"__esModule",{value:!0})),Ne=ke(Ee);function ke(e){return e&&e.__esModule?e:{default:e}}var on=Object.defineProperty({default:function(e){var n=e.prototype.toJSON;"function"==typeof n||(0,rn.default)(0),e.prototype.inspect=n,Ne.default&&(e.prototype[Ne.default]=n)}},"__esModule",{value:!0}),x=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isNode=function(T){return null!=T&&"string"==typeof T.kind},n.Token=n.Location=void 0;var T,o=(T=on)&&T.__esModule?T:{default:T},c=function(){function T(r,t,i){this.start=r.start,this.end=t.end,this.startToken=r,this.endToken=t,this.source=i}return T.prototype.toJSON=function(){return{start:this.start,end:this.end}},T}();n.Location=c,(0,o.default)(c);var f=function(){function T(r,t,i,a,l,v,b){this.kind=r,this.start=t,this.end=i,this.line=a,this.column=l,this.value=b,this.prev=v,this.next=null}return T.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},T}();n.Token=f,(0,o.default)(f)});function _e(e){for(var n=0;n<e.length;++n)if(" "!==e[n]&&"\t"!==e[n])return!1;return!0}function Oe(e){for(var n,o=!0,c=!0,f=0,T=null,r=0;r<e.length;++r)switch(e.charCodeAt(r)){case 13:10===e.charCodeAt(r+1)&&++r;case 10:o=!1,c=!0,f=0;break;case 9:case 32:++f;break;default:c&&!o&&(null===T||f<T)&&(T=f),c=!1}return null!==(n=T)&&void 0!==n?n:0}var Ie=Object.defineProperty({dedentBlockStringValue:function(e){var n=e.split(/\r\n|[\n\r]/g),o=Oe(e);if(0!==o)for(var c=1;c<n.length;c++)n[c]=n[c].slice(o);for(var f=0;f<n.length&&_e(n[f]);)++f;for(var T=n.length;T>f&&_e(n[T-1]);)--T;return n.slice(f,T).join("\n")},getBlockStringIndentation:Oe,printBlockString:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=-1===e.indexOf("\n"),t=!c||'"'===e[e.length-1]||"\\"===e[e.length-1]||o,i="";return!t||c&&(" "===e[0]||"\t"===e[0])||(i+="\n"+n),i+=n?e.replace(/\n/g,"\n"+n):e,t&&(i+="\n"),'"""'+i.replace(/"""/g,'\\"""')+'"""'}},"__esModule",{value:!0}),se=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isPunctuatorTokenKind=function(d){return d===s.TokenKind.BANG||d===s.TokenKind.DOLLAR||d===s.TokenKind.AMP||d===s.TokenKind.PAREN_L||d===s.TokenKind.PAREN_R||d===s.TokenKind.SPREAD||d===s.TokenKind.COLON||d===s.TokenKind.EQUALS||d===s.TokenKind.AT||d===s.TokenKind.BRACKET_L||d===s.TokenKind.BRACKET_R||d===s.TokenKind.BRACE_L||d===s.TokenKind.PIPE||d===s.TokenKind.BRACE_R},n.Lexer=void 0;var o=function(){function d(m){var y=new x.Token(s.TokenKind.SOF,0,0,0,0,null);this.source=m,this.lastToken=y,this.token=y,this.line=1,this.lineStart=0}var E=d.prototype;return E.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},E.lookahead=function(){var m=this.token;if(m.kind!==s.TokenKind.EOF)do{var y;m=null!==(y=m.next)&&void 0!==y?y:m.next=f(this,m)}while(m.kind===s.TokenKind.COMMENT);return m},d}();function c(d){return isNaN(d)?s.TokenKind.EOF:d<127?JSON.stringify(String.fromCharCode(d)):'"\\u'.concat(("00"+d.toString(16).toUpperCase()).slice(-4),'"')}function f(d,E){for(var m=d.source,y=m.body,_=y.length,u=E.end;u<_;){var O=y.charCodeAt(u),p=d.line,N=1+u-d.lineStart;switch(O){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++d.line,d.lineStart=u;continue;case 13:10===y.charCodeAt(u+1)?u+=2:++u,++d.line,d.lineStart=u;continue;case 33:return new x.Token(s.TokenKind.BANG,u,u+1,p,N,E);case 35:return r(m,u,p,N,E);case 36:return new x.Token(s.TokenKind.DOLLAR,u,u+1,p,N,E);case 38:return new x.Token(s.TokenKind.AMP,u,u+1,p,N,E);case 40:return new x.Token(s.TokenKind.PAREN_L,u,u+1,p,N,E);case 41:return new x.Token(s.TokenKind.PAREN_R,u,u+1,p,N,E);case 46:if(46===y.charCodeAt(u+1)&&46===y.charCodeAt(u+2))return new x.Token(s.TokenKind.SPREAD,u,u+3,p,N,E);break;case 58:return new x.Token(s.TokenKind.COLON,u,u+1,p,N,E);case 61:return new x.Token(s.TokenKind.EQUALS,u,u+1,p,N,E);case 64:return new x.Token(s.TokenKind.AT,u,u+1,p,N,E);case 91:return new x.Token(s.TokenKind.BRACKET_L,u,u+1,p,N,E);case 93:return new x.Token(s.TokenKind.BRACKET_R,u,u+1,p,N,E);case 123:return new x.Token(s.TokenKind.BRACE_L,u,u+1,p,N,E);case 124:return new x.Token(s.TokenKind.PIPE,u,u+1,p,N,E);case 125:return new x.Token(s.TokenKind.BRACE_R,u,u+1,p,N,E);case 34:return 34===y.charCodeAt(u+1)&&34===y.charCodeAt(u+2)?l(m,u,p,N,E,d):a(m,u,p,N,E);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t(m,u,O,p,N,E);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return b(m,u,p,N,E)}throw(0,R.syntaxError)(m,u,T(O))}return new x.Token(s.TokenKind.EOF,_,_,d.line,1+u-d.lineStart,E)}function T(d){return d<32&&9!==d&&10!==d&&13!==d?"Cannot contain the invalid character ".concat(c(d),"."):39===d?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(c(d),".")}function r(d,E,m,y,_){var u,O=d.body,p=E;do{u=O.charCodeAt(++p)}while(!isNaN(u)&&(u>31||9===u));return new x.Token(s.TokenKind.COMMENT,E,p,m,y,_,O.slice(E+1,p))}function t(d,E,m,y,_,u){var I,O=d.body,p=m,N=E,D=!1;if(45===p&&(p=O.charCodeAt(++N)),48===p){if((p=O.charCodeAt(++N))>=48&&p<=57)throw(0,R.syntaxError)(d,N,"Invalid number, unexpected digit after 0: ".concat(c(p),"."))}else N=i(d,N,p),p=O.charCodeAt(N);if(46===p&&(D=!0,p=O.charCodeAt(++N),N=i(d,N,p),p=O.charCodeAt(N)),69!==p&&101!==p||(D=!0,43!==(p=O.charCodeAt(++N))&&45!==p||(p=O.charCodeAt(++N)),N=i(d,N,p),p=O.charCodeAt(N)),46===p||95===(I=p)||I>=65&&I<=90||I>=97&&I<=122)throw(0,R.syntaxError)(d,N,"Invalid number, expected digit but got: ".concat(c(p),"."));return new x.Token(D?s.TokenKind.FLOAT:s.TokenKind.INT,E,N,y,_,u,O.slice(E,N))}function i(d,E,m){var y=d.body,_=E,u=m;if(u>=48&&u<=57){do{u=y.charCodeAt(++_)}while(u>=48&&u<=57);return _}throw(0,R.syntaxError)(d,_,"Invalid number, expected digit but got: ".concat(c(u),"."))}function a(d,E,m,y,_){for(var u,O,p,N,D=d.body,I=E+1,g=I,S=0,K="";I<D.length&&!isNaN(S=D.charCodeAt(I))&&10!==S&&13!==S;){if(34===S)return K+=D.slice(g,I),new x.Token(s.TokenKind.STRING,E,I+1,m,y,_,K);if(S<32&&9!==S)throw(0,R.syntaxError)(d,I,"Invalid character within String: ".concat(c(S),"."));if(++I,92===S){switch(K+=D.slice(g,I-1),S=D.charCodeAt(I)){case 34:K+='"';break;case 47:K+="/";break;case 92:K+="\\";break;case 98:K+="\b";break;case 102:K+="\f";break;case 110:K+="\n";break;case 114:K+="\r";break;case 116:K+="\t";break;case 117:var M=(u=D.charCodeAt(I+1),O=D.charCodeAt(I+2),p=D.charCodeAt(I+3),N=D.charCodeAt(I+4),v(u)<<12|v(O)<<8|v(p)<<4|v(N));if(M<0){var P=D.slice(I+1,I+5);throw(0,R.syntaxError)(d,I,"Invalid character escape sequence: \\u".concat(P,"."))}K+=String.fromCharCode(M),I+=4;break;default:throw(0,R.syntaxError)(d,I,"Invalid character escape sequence: \\".concat(String.fromCharCode(S),"."))}g=++I}}throw(0,R.syntaxError)(d,I,"Unterminated string.")}function l(d,E,m,y,_,u){for(var O=d.body,p=E+3,N=p,D=0,I="";p<O.length&&!isNaN(D=O.charCodeAt(p));){if(34===D&&34===O.charCodeAt(p+1)&&34===O.charCodeAt(p+2))return I+=O.slice(N,p),new x.Token(s.TokenKind.BLOCK_STRING,E,p+3,m,y,_,(0,Ie.dedentBlockStringValue)(I));if(D<32&&9!==D&&10!==D&&13!==D)throw(0,R.syntaxError)(d,p,"Invalid character within String: ".concat(c(D),"."));10===D?(++p,++u.line,u.lineStart=p):13===D?(10===O.charCodeAt(p+1)?p+=2:++p,++u.line,u.lineStart=p):92===D&&34===O.charCodeAt(p+1)&&34===O.charCodeAt(p+2)&&34===O.charCodeAt(p+3)?(I+=O.slice(N,p)+'"""',N=p+=4):++p}throw(0,R.syntaxError)(d,p,"Unterminated string.")}function v(d){return d>=48&&d<=57?d-48:d>=65&&d<=70?d-55:d>=97&&d<=102?d-87:-1}function b(d,E,m,y,_){for(var u=d.body,O=u.length,p=E+1,N=0;p!==O&&!isNaN(N=u.charCodeAt(p))&&(95===N||N>=48&&N<=57||N>=65&&N<=90||N>=97&&N<=122);)++p;return new x.Token(s.TokenKind.NAME,E,p,m,y,_,u.slice(E,p))}n.Lexer=o}),be=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0;var o=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});n.DirectiveLocation=o}),ce=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(T,r){return new o(T,r).parseDocument()},n.parseValue=function(T,r){var t=new o(T,r);t.expectToken(s.TokenKind.SOF);var i=t.parseValueLiteral(!1);return t.expectToken(s.TokenKind.EOF),i},n.parseType=function(T,r){var t=new o(T,r);t.expectToken(s.TokenKind.SOF);var i=t.parseTypeReference();return t.expectToken(s.TokenKind.EOF),i},n.Parser=void 0;var o=function(){function T(t,i){var a=(0,ae.isSource)(t)?t:new ae.Source(t);this._lexer=new se.Lexer(a),this._options=i}var r=T.prototype;return r.parseName=function(){var t=this.expectToken(s.TokenKind.NAME);return{kind:h.Kind.NAME,value:t.value,loc:this.loc(t)}},r.parseDocument=function(){var t=this._lexer.token;return{kind:h.Kind.DOCUMENT,definitions:this.many(s.TokenKind.SOF,this.parseDefinition,s.TokenKind.EOF),loc:this.loc(t)}},r.parseDefinition=function(){if(this.peek(s.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(s.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},r.parseOperationDefinition=function(){var t=this._lexer.token;if(this.peek(s.TokenKind.BRACE_L))return{kind:h.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var i,a=this.parseOperationType();return this.peek(s.TokenKind.NAME)&&(i=this.parseName()),{kind:h.Kind.OPERATION_DEFINITION,operation:a,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},r.parseOperationType=function(){var t=this.expectToken(s.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)},r.parseVariableDefinitions=function(){return this.optionalMany(s.TokenKind.PAREN_L,this.parseVariableDefinition,s.TokenKind.PAREN_R)},r.parseVariableDefinition=function(){var t=this._lexer.token;return{kind:h.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(s.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(s.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(t)}},r.parseVariable=function(){var t=this._lexer.token;return this.expectToken(s.TokenKind.DOLLAR),{kind:h.Kind.VARIABLE,name:this.parseName(),loc:this.loc(t)}},r.parseSelectionSet=function(){var t=this._lexer.token;return{kind:h.Kind.SELECTION_SET,selections:this.many(s.TokenKind.BRACE_L,this.parseSelection,s.TokenKind.BRACE_R),loc:this.loc(t)}},r.parseSelection=function(){return this.peek(s.TokenKind.SPREAD)?this.parseFragment():this.parseField()},r.parseField=function(){var t,i,a=this._lexer.token,l=this.parseName();return this.expectOptionalToken(s.TokenKind.COLON)?(t=l,i=this.parseName()):i=l,{kind:h.Kind.FIELD,alias:t,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(s.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(a)}},r.parseArguments=function(t){return this.optionalMany(s.TokenKind.PAREN_L,t?this.parseConstArgument:this.parseArgument,s.TokenKind.PAREN_R)},r.parseArgument=function(){var t=this._lexer.token,i=this.parseName();return this.expectToken(s.TokenKind.COLON),{kind:h.Kind.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(t)}},r.parseConstArgument=function(){var t=this._lexer.token;return{kind:h.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(s.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(t)}},r.parseFragment=function(){var t=this._lexer.token;this.expectToken(s.TokenKind.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(s.TokenKind.NAME)?{kind:h.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(t)}:{kind:h.Kind.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},r.parseFragmentDefinition=function(){var t,i=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(t=this._options)||void 0===t?void 0:t.experimentalFragmentVariables)?{kind:h.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:h.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},r.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},r.parseValueLiteral=function(t){var i=this._lexer.token;switch(i.kind){case s.TokenKind.BRACKET_L:return this.parseList(t);case s.TokenKind.BRACE_L:return this.parseObject(t);case s.TokenKind.INT:return this._lexer.advance(),{kind:h.Kind.INT,value:i.value,loc:this.loc(i)};case s.TokenKind.FLOAT:return this._lexer.advance(),{kind:h.Kind.FLOAT,value:i.value,loc:this.loc(i)};case s.TokenKind.STRING:case s.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case s.TokenKind.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:h.Kind.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:h.Kind.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:h.Kind.NULL,loc:this.loc(i)};default:return{kind:h.Kind.ENUM,value:i.value,loc:this.loc(i)}}case s.TokenKind.DOLLAR:if(!t)return this.parseVariable()}throw this.unexpected()},r.parseStringLiteral=function(){var t=this._lexer.token;return this._lexer.advance(),{kind:h.Kind.STRING,value:t.value,block:t.kind===s.TokenKind.BLOCK_STRING,loc:this.loc(t)}},r.parseList=function(t){var i=this,a=this._lexer.token;return{kind:h.Kind.LIST,values:this.any(s.TokenKind.BRACKET_L,function(){return i.parseValueLiteral(t)},s.TokenKind.BRACKET_R),loc:this.loc(a)}},r.parseObject=function(t){var i=this,a=this._lexer.token;return{kind:h.Kind.OBJECT,fields:this.any(s.TokenKind.BRACE_L,function(){return i.parseObjectField(t)},s.TokenKind.BRACE_R),loc:this.loc(a)}},r.parseObjectField=function(t){var i=this._lexer.token,a=this.parseName();return this.expectToken(s.TokenKind.COLON),{kind:h.Kind.OBJECT_FIELD,name:a,value:this.parseValueLiteral(t),loc:this.loc(i)}},r.parseDirectives=function(t){for(var i=[];this.peek(s.TokenKind.AT);)i.push(this.parseDirective(t));return i},r.parseDirective=function(t){var i=this._lexer.token;return this.expectToken(s.TokenKind.AT),{kind:h.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(i)}},r.parseTypeReference=function(){var t,i=this._lexer.token;return this.expectOptionalToken(s.TokenKind.BRACKET_L)?(t=this.parseTypeReference(),this.expectToken(s.TokenKind.BRACKET_R),t={kind:h.Kind.LIST_TYPE,type:t,loc:this.loc(i)}):t=this.parseNamedType(),this.expectOptionalToken(s.TokenKind.BANG)?{kind:h.Kind.NON_NULL_TYPE,type:t,loc:this.loc(i)}:t},r.parseNamedType=function(){var t=this._lexer.token;return{kind:h.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}},r.parseTypeSystemDefinition=function(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===s.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(t)},r.peekDescription=function(){return this.peek(s.TokenKind.STRING)||this.peek(s.TokenKind.BLOCK_STRING)},r.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},r.parseSchemaDefinition=function(){var t=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var a=this.parseDirectives(!0),l=this.many(s.TokenKind.BRACE_L,this.parseOperationTypeDefinition,s.TokenKind.BRACE_R);return{kind:h.Kind.SCHEMA_DEFINITION,description:i,directives:a,operationTypes:l,loc:this.loc(t)}},r.parseOperationTypeDefinition=function(){var t=this._lexer.token,i=this.parseOperationType();this.expectToken(s.TokenKind.COLON);var a=this.parseNamedType();return{kind:h.Kind.OPERATION_TYPE_DEFINITION,operation:i,type:a,loc:this.loc(t)}},r.parseScalarTypeDefinition=function(){var t=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var a=this.parseName(),l=this.parseDirectives(!0);return{kind:h.Kind.SCALAR_TYPE_DEFINITION,description:i,name:a,directives:l,loc:this.loc(t)}},r.parseObjectTypeDefinition=function(){var t=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var a=this.parseName(),l=this.parseImplementsInterfaces(),v=this.parseDirectives(!0),b=this.parseFieldsDefinition();return{kind:h.Kind.OBJECT_TYPE_DEFINITION,description:i,name:a,interfaces:l,directives:v,fields:b,loc:this.loc(t)}},r.parseImplementsInterfaces=function(){var t;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLImplementsInterfaces)){var i=[];this.expectOptionalToken(s.TokenKind.AMP);do{i.push(this.parseNamedType())}while(this.expectOptionalToken(s.TokenKind.AMP)||this.peek(s.TokenKind.NAME));return i}return this.delimitedMany(s.TokenKind.AMP,this.parseNamedType)},r.parseFieldsDefinition=function(){var t;return!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLEmptyFields)&&this.peek(s.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===s.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(s.TokenKind.BRACE_L,this.parseFieldDefinition,s.TokenKind.BRACE_R)},r.parseFieldDefinition=function(){var t=this._lexer.token,i=this.parseDescription(),a=this.parseName(),l=this.parseArgumentDefs();this.expectToken(s.TokenKind.COLON);var v=this.parseTypeReference(),b=this.parseDirectives(!0);return{kind:h.Kind.FIELD_DEFINITION,description:i,name:a,arguments:l,type:v,directives:b,loc:this.loc(t)}},r.parseArgumentDefs=function(){return this.optionalMany(s.TokenKind.PAREN_L,this.parseInputValueDef,s.TokenKind.PAREN_R)},r.parseInputValueDef=function(){var t=this._lexer.token,i=this.parseDescription(),a=this.parseName();this.expectToken(s.TokenKind.COLON);var l,v=this.parseTypeReference();this.expectOptionalToken(s.TokenKind.EQUALS)&&(l=this.parseValueLiteral(!0));var b=this.parseDirectives(!0);return{kind:h.Kind.INPUT_VALUE_DEFINITION,description:i,name:a,type:v,defaultValue:l,directives:b,loc:this.loc(t)}},r.parseInterfaceTypeDefinition=function(){var t=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var a=this.parseName(),l=this.parseImplementsInterfaces(),v=this.parseDirectives(!0),b=this.parseFieldsDefinition();return{kind:h.Kind.INTERFACE_TYPE_DEFINITION,description:i,name:a,interfaces:l,directives:v,fields:b,loc:this.loc(t)}},r.parseUnionTypeDefinition=function(){var t=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var a=this.parseName(),l=this.parseDirectives(!0),v=this.parseUnionMemberTypes();return{kind:h.Kind.UNION_TYPE_DEFINITION,description:i,name:a,directives:l,types:v,loc:this.loc(t)}},r.parseUnionMemberTypes=function(){return this.expectOptionalToken(s.TokenKind.EQUALS)?this.delimitedMany(s.TokenKind.PIPE,this.parseNamedType):[]},r.parseEnumTypeDefinition=function(){var t=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var a=this.parseName(),l=this.parseDirectives(!0),v=this.parseEnumValuesDefinition();return{kind:h.Kind.ENUM_TYPE_DEFINITION,description:i,name:a,directives:l,values:v,loc:this.loc(t)}},r.parseEnumValuesDefinition=function(){return this.optionalMany(s.TokenKind.BRACE_L,this.parseEnumValueDefinition,s.TokenKind.BRACE_R)},r.parseEnumValueDefinition=function(){var t=this._lexer.token,i=this.parseDescription(),a=this.parseName(),l=this.parseDirectives(!0);return{kind:h.Kind.ENUM_VALUE_DEFINITION,description:i,name:a,directives:l,loc:this.loc(t)}},r.parseInputObjectTypeDefinition=function(){var t=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var a=this.parseName(),l=this.parseDirectives(!0),v=this.parseInputFieldsDefinition();return{kind:h.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:a,directives:l,fields:v,loc:this.loc(t)}},r.parseInputFieldsDefinition=function(){return this.optionalMany(s.TokenKind.BRACE_L,this.parseInputValueDef,s.TokenKind.BRACE_R)},r.parseTypeSystemExtension=function(){var t=this._lexer.lookahead();if(t.kind===s.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)},r.parseSchemaExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),a=this.optionalMany(s.TokenKind.BRACE_L,this.parseOperationTypeDefinition,s.TokenKind.BRACE_R);if(0===i.length&&0===a.length)throw this.unexpected();return{kind:h.Kind.SCHEMA_EXTENSION,directives:i,operationTypes:a,loc:this.loc(t)}},r.parseScalarTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),a=this.parseDirectives(!0);if(0===a.length)throw this.unexpected();return{kind:h.Kind.SCALAR_TYPE_EXTENSION,name:i,directives:a,loc:this.loc(t)}},r.parseObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),a=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),v=this.parseFieldsDefinition();if(0===a.length&&0===l.length&&0===v.length)throw this.unexpected();return{kind:h.Kind.OBJECT_TYPE_EXTENSION,name:i,interfaces:a,directives:l,fields:v,loc:this.loc(t)}},r.parseInterfaceTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),a=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),v=this.parseFieldsDefinition();if(0===a.length&&0===l.length&&0===v.length)throw this.unexpected();return{kind:h.Kind.INTERFACE_TYPE_EXTENSION,name:i,interfaces:a,directives:l,fields:v,loc:this.loc(t)}},r.parseUnionTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),a=this.parseDirectives(!0),l=this.parseUnionMemberTypes();if(0===a.length&&0===l.length)throw this.unexpected();return{kind:h.Kind.UNION_TYPE_EXTENSION,name:i,directives:a,types:l,loc:this.loc(t)}},r.parseEnumTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),a=this.parseDirectives(!0),l=this.parseEnumValuesDefinition();if(0===a.length&&0===l.length)throw this.unexpected();return{kind:h.Kind.ENUM_TYPE_EXTENSION,name:i,directives:a,values:l,loc:this.loc(t)}},r.parseInputObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),a=this.parseDirectives(!0),l=this.parseInputFieldsDefinition();if(0===a.length&&0===l.length)throw this.unexpected();return{kind:h.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:a,fields:l,loc:this.loc(t)}},r.parseDirectiveDefinition=function(){var t=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(s.TokenKind.AT);var a=this.parseName(),l=this.parseArgumentDefs(),v=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var b=this.parseDirectiveLocations();return{kind:h.Kind.DIRECTIVE_DEFINITION,description:i,name:a,arguments:l,repeatable:v,locations:b,loc:this.loc(t)}},r.parseDirectiveLocations=function(){return this.delimitedMany(s.TokenKind.PIPE,this.parseDirectiveLocation)},r.parseDirectiveLocation=function(){var t=this._lexer.token,i=this.parseName();if(void 0!==be.DirectiveLocation[i.value])return i;throw this.unexpected(t)},r.loc=function(t){var i;if(!0!==(null===(i=this._options)||void 0===i?void 0:i.noLocation))return new x.Location(t,this._lexer.lastToken,this._lexer.source)},r.peek=function(t){return this._lexer.token.kind===t},r.expectToken=function(t){var i=this._lexer.token;if(i.kind===t)return this._lexer.advance(),i;throw(0,R.syntaxError)(this._lexer.source,i.start,"Expected ".concat(f(t),", found ").concat(c(i),"."))},r.expectOptionalToken=function(t){var i=this._lexer.token;if(i.kind===t)return this._lexer.advance(),i},r.expectKeyword=function(t){var i=this._lexer.token;if(i.kind!==s.TokenKind.NAME||i.value!==t)throw(0,R.syntaxError)(this._lexer.source,i.start,'Expected "'.concat(t,'", found ').concat(c(i),"."));this._lexer.advance()},r.expectOptionalKeyword=function(t){var i=this._lexer.token;return i.kind===s.TokenKind.NAME&&i.value===t&&(this._lexer.advance(),!0)},r.unexpected=function(t){var i=t??this._lexer.token;return(0,R.syntaxError)(this._lexer.source,i.start,"Unexpected ".concat(c(i),"."))},r.any=function(t,i,a){this.expectToken(t);for(var l=[];!this.expectOptionalToken(a);)l.push(i.call(this));return l},r.optionalMany=function(t,i,a){if(this.expectOptionalToken(t)){var l=[];do{l.push(i.call(this))}while(!this.expectOptionalToken(a));return l}return[]},r.many=function(t,i,a){this.expectToken(t);var l=[];do{l.push(i.call(this))}while(!this.expectOptionalToken(a));return l},r.delimitedMany=function(t,i){this.expectOptionalToken(t);var a=[];do{a.push(i.call(this))}while(this.expectOptionalToken(t));return a},T}();function c(T){var r=T.value;return f(T.kind)+(null!=r?' "'.concat(r,'"'):"")}function f(T){return(0,se.isPunctuatorTokenKind)(T)?'"'.concat(T,'"'):T}n.Parser=o}),Q=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(r,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,a=void 0,l=Array.isArray(r),v=[r],b=-1,d=[],E=void 0,m=void 0,y=void 0,_=[],u=[],O=r;do{var p=++b===v.length,N=p&&0!==d.length;if(p){if(m=0===u.length?void 0:_[_.length-1],E=y,y=u.pop(),N){if(l)E=E.slice();else{for(var D={},I=0,g=Object.keys(E);I<g.length;I++){var S=g[I];D[S]=E[S]}E=D}for(var K=0,M=0;M<d.length;M++){var P=d[M][0],ne=d[M][1];l&&(P-=K),l&&null===ne?(E.splice(P,1),K++):E[P]=ne}}b=a.index,v=a.keys,d=a.edits,l=a.inArray,a=a.prev}else{if(m=y?l?b:v[b]:void 0,null==(E=y?y[m]:O))continue;y&&_.push(m)}var Y,w=void 0;if(!Array.isArray(E)){if(!(0,x.isNode)(E))throw new Error("Invalid AST Node: ".concat((0,o.default)(E),"."));var J=T(t,E.kind,p);if(J){if((w=J.call(t,E,m,y,_,u))===f)break;if(!1===w){if(!p){_.pop();continue}}else if(void 0!==w&&(d.push([m,w]),!p)){if(!(0,x.isNode)(w)){_.pop();continue}E=w}}}void 0===w&&N&&d.push([m,E]),p?_.pop():(a={inArray:l,index:b,keys:v,edits:d,prev:a},v=(l=Array.isArray(E))?E:null!==(Y=i[E.kind])&&void 0!==Y?Y:[],b=-1,d=[],y&&u.push(y),y=E)}while(void 0!==a);return 0!==d.length&&(O=d[d.length-1][1]),O},n.visitInParallel=function(r){var t=new Array(r.length);return{enter:function(i){for(var a=0;a<r.length;a++)if(null==t[a]){var l=T(r[a],i.kind,!1);if(l){var v=l.apply(r[a],arguments);if(!1===v)t[a]=i;else if(v===f)t[a]=f;else if(void 0!==v)return v}}},leave:function(i){for(var a=0;a<r.length;a++)if(null==t[a]){var l=T(r[a],i.kind,!0);if(l){var v=l.apply(r[a],arguments);if(v===f)t[a]=f;else if(void 0!==v&&!1!==v)return v}}else t[a]===i&&(t[a]=null)}}},n.getVisitFn=T,n.BREAK=n.QueryDocumentKeys=void 0;var r,o=(r=oe)&&r.__esModule?r:{default:r},c={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};n.QueryDocumentKeys=c;var f=Object.freeze({});function T(r,t,i){var a=r[t];if(a){if(!i&&"function"==typeof a)return a;var l=i?a.leave:a.enter;if("function"==typeof l)return l}else{var v=i?r.leave:r.enter;if(v){if("function"==typeof v)return v;var b=v[t];if("function"==typeof b)return b}}}n.BREAK=f}),ln={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return k(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var n=e.operation,o=e.name,c=A("(",k(e.variableDefinitions,", "),")"),f=k(e.directives," "),T=e.selectionSet;return o||f||c||"query"!==n?k([n,k([o,c]),f,T]," "):T},VariableDefinition:function(e){var f=e.directives;return e.variable+": "+e.type+A(" = ",e.defaultValue)+A(" ",k(f," "))},SelectionSet:function(e){return F(e.selections)},Field:function(e){var o=e.name,c=e.arguments,f=e.directives,T=e.selectionSet,r=A("",e.alias,": ")+o,t=r+A("(",k(c,", "),")");return t.length>80&&(t=r+A("(\n",ee(k(c,"\n")),"\n)")),k([t,k(f," "),T]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+A(" ",k(e.directives," "))},InlineFragment:function(e){var o=e.directives,c=e.selectionSet;return k(["...",A("on ",e.typeCondition),k(o," "),c]," ")},FragmentDefinition:function(e){var o=e.typeCondition,c=e.variableDefinitions,f=e.directives,T=e.selectionSet;return"fragment ".concat(e.name).concat(A("(",k(c,", "),")")," ")+"on ".concat(o," ").concat(A("",k(f," ")," "))+T},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,n){var o=e.value;return e.block?(0,Ie.printBlockString)(o,"description"===n?"":" "):JSON.stringify(o)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+k(e.values,", ")+"]"},ObjectValue:function(e){return"{"+k(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+A("(",k(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:C(function(e){var o=e.operationTypes;return k(["schema",k(e.directives," "),F(o)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:C(function(e){return k(["scalar",e.name,k(e.directives," ")]," ")}),ObjectTypeDefinition:C(function(e){var c=e.directives,f=e.fields;return k(["type",e.name,A("implements ",k(e.interfaces," & ")),k(c," "),F(f)]," ")}),FieldDefinition:C(function(e){var o=e.arguments,c=e.type,f=e.directives;return e.name+(De(o)?A("(\n",ee(k(o,"\n")),"\n)"):A("(",k(o,", "),")"))+": "+c+A(" ",k(f," "))}),InputValueDefinition:C(function(e){var f=e.directives;return k([e.name+": "+e.type,A("= ",e.defaultValue),k(f," ")]," ")}),InterfaceTypeDefinition:C(function(e){var c=e.directives,f=e.fields;return k(["interface",e.name,A("implements ",k(e.interfaces," & ")),k(c," "),F(f)]," ")}),UnionTypeDefinition:C(function(e){var c=e.types;return k(["union",e.name,k(e.directives," "),c&&0!==c.length?"= "+k(c," | "):""]," ")}),EnumTypeDefinition:C(function(e){var c=e.values;return k(["enum",e.name,k(e.directives," "),F(c)]," ")}),EnumValueDefinition:C(function(e){return k([e.name,k(e.directives," ")]," ")}),InputObjectTypeDefinition:C(function(e){var c=e.fields;return k(["input",e.name,k(e.directives," "),F(c)]," ")}),DirectiveDefinition:C(function(e){var o=e.arguments,c=e.repeatable,f=e.locations;return"directive @"+e.name+(De(o)?A("(\n",ee(k(o,"\n")),"\n)"):A("(",k(o,", "),")"))+(c?" repeatable":"")+" on "+k(f," | ")}),SchemaExtension:function(e){var o=e.operationTypes;return k(["extend schema",k(e.directives," "),F(o)]," ")},ScalarTypeExtension:function(e){return k(["extend scalar",e.name,k(e.directives," ")]," ")},ObjectTypeExtension:function(e){var c=e.directives,f=e.fields;return k(["extend type",e.name,A("implements ",k(e.interfaces," & ")),k(c," "),F(f)]," ")},InterfaceTypeExtension:function(e){var c=e.directives,f=e.fields;return k(["extend interface",e.name,A("implements ",k(e.interfaces," & ")),k(c," "),F(f)]," ")},UnionTypeExtension:function(e){var c=e.types;return k(["extend union",e.name,k(e.directives," "),c&&0!==c.length?"= "+k(c," | "):""]," ")},EnumTypeExtension:function(e){var c=e.values;return k(["extend enum",e.name,k(e.directives," "),F(c)]," ")},InputObjectTypeExtension:function(e){var c=e.fields;return k(["extend input",e.name,k(e.directives," "),F(c)]," ")}};function C(e){return function(n){return k([n.description,e(n)],"\n")}}function k(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(n=e?.filter(function(c){return c}).join(o))&&void 0!==n?n:""}function F(e){return A("{\n",ee(k(e,"\n")),"\n}")}function A(e,n){return null!=n&&""!==n?e+n+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function ee(e){return A(" ",e.replace(/\n/g,"\n "))}function dn(e){return-1!==e.indexOf("\n")}function De(e){return null!=e&&e.some(dn)}var pn=Object.defineProperty({print:function(e){return(0,Q.visit)(e,{leave:ln})}},"__esModule",{value:!0});function xe(e){return e.kind===h.Kind.OPERATION_DEFINITION||e.kind===h.Kind.FRAGMENT_DEFINITION}function Ae(e){return e.kind===h.Kind.SCHEMA_DEFINITION||ge(e)||e.kind===h.Kind.DIRECTIVE_DEFINITION}function ge(e){return e.kind===h.Kind.SCALAR_TYPE_DEFINITION||e.kind===h.Kind.OBJECT_TYPE_DEFINITION||e.kind===h.Kind.INTERFACE_TYPE_DEFINITION||e.kind===h.Kind.UNION_TYPE_DEFINITION||e.kind===h.Kind.ENUM_TYPE_DEFINITION||e.kind===h.Kind.INPUT_OBJECT_TYPE_DEFINITION}function Se(e){return e.kind===h.Kind.SCHEMA_EXTENSION||Ke(e)}function Ke(e){return e.kind===h.Kind.SCALAR_TYPE_EXTENSION||e.kind===h.Kind.OBJECT_TYPE_EXTENSION||e.kind===h.Kind.INTERFACE_TYPE_EXTENSION||e.kind===h.Kind.UNION_TYPE_EXTENSION||e.kind===h.Kind.ENUM_TYPE_EXTENSION||e.kind===h.Kind.INPUT_OBJECT_TYPE_EXTENSION}var j=Object.defineProperty({isDefinitionNode:function(e){return xe(e)||Ae(e)||Se(e)},isExecutableDefinitionNode:xe,isSelectionNode:function(e){return e.kind===h.Kind.FIELD||e.kind===h.Kind.FRAGMENT_SPREAD||e.kind===h.Kind.INLINE_FRAGMENT},isValueNode:function(e){return e.kind===h.Kind.VARIABLE||e.kind===h.Kind.INT||e.kind===h.Kind.FLOAT||e.kind===h.Kind.STRING||e.kind===h.Kind.BOOLEAN||e.kind===h.Kind.NULL||e.kind===h.Kind.ENUM||e.kind===h.Kind.LIST||e.kind===h.Kind.OBJECT},isTypeNode:function(e){return e.kind===h.Kind.NAMED_TYPE||e.kind===h.Kind.LIST_TYPE||e.kind===h.Kind.NON_NULL_TYPE},isTypeSystemDefinitionNode:Ae,isTypeDefinitionNode:ge,isTypeSystemExtensionNode:Se,isTypeExtensionNode:Ke},"__esModule",{value:!0}),_n=L(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Source",{enumerable:!0,get:function(){return ae.Source}}),Object.defineProperty(n,"getLocation",{enumerable:!0,get:function(){return q.getLocation}}),Object.defineProperty(n,"printLocation",{enumerable:!0,get:function(){return z.printLocation}}),Object.defineProperty(n,"printSourceLocation",{enumerable:!0,get:function(){return z.printSourceLocation}}),Object.defineProperty(n,"Kind",{enumerable:!0,get:function(){return h.Kind}}),Object.defineProperty(n,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(n,"Lexer",{enumerable:!0,get:function(){return se.Lexer}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return ce.parse}}),Object.defineProperty(n,"parseValue",{enumerable:!0,get:function(){return ce.parseValue}}),Object.defineProperty(n,"parseType",{enumerable:!0,get:function(){return ce.parseType}}),Object.defineProperty(n,"print",{enumerable:!0,get:function(){return pn.print}}),Object.defineProperty(n,"visit",{enumerable:!0,get:function(){return Q.visit}}),Object.defineProperty(n,"visitInParallel",{enumerable:!0,get:function(){return Q.visitInParallel}}),Object.defineProperty(n,"getVisitFn",{enumerable:!0,get:function(){return Q.getVisitFn}}),Object.defineProperty(n,"BREAK",{enumerable:!0,get:function(){return Q.BREAK}}),Object.defineProperty(n,"Location",{enumerable:!0,get:function(){return x.Location}}),Object.defineProperty(n,"Token",{enumerable:!0,get:function(){return x.Token}}),Object.defineProperty(n,"isDefinitionNode",{enumerable:!0,get:function(){return j.isDefinitionNode}}),Object.defineProperty(n,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return j.isExecutableDefinitionNode}}),Object.defineProperty(n,"isSelectionNode",{enumerable:!0,get:function(){return j.isSelectionNode}}),Object.defineProperty(n,"isValueNode",{enumerable:!0,get:function(){return j.isValueNode}}),Object.defineProperty(n,"isTypeNode",{enumerable:!0,get:function(){return j.isTypeNode}}),Object.defineProperty(n,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return j.isTypeSystemDefinitionNode}}),Object.defineProperty(n,"isTypeDefinitionNode",{enumerable:!0,get:function(){return j.isTypeDefinitionNode}}),Object.defineProperty(n,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return j.isTypeSystemExtensionNode}}),Object.defineProperty(n,"isTypeExtensionNode",{enumerable:!0,get:function(){return j.isTypeExtensionNode}}),Object.defineProperty(n,"DirectiveLocation",{enumerable:!0,get:function(){return be.DirectiveLocation}})});const{hasPragma:On}={hasPragma:function(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}},{locStart:In,locEnd:bn}={locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}};function Le(e){if(e&&"object"==typeof e){delete e.startToken,delete e.endToken,delete e.prev,delete e.next;for(const n in e)Le(e[n])}return e}const Re={allowLegacySDLImplementsInterfaces:!1,experimentalFragmentVariables:!0};return{parsers:{graphql:{parse:function(e){const{parse:n}=_n,{result:o,error:c}=function(...e){let n;for(const[o,c]of e.entries())try{return{result:c()}}catch(f){0===o&&(n=f)}return{error:n}}(()=>n(e,Object.assign({},Re)),()=>n(e,Object.assign({},Re,{allowLegacySDLImplementsInterfaces:!0})));if(!o)throw function Dn(e){const{GraphQLError:n}=Ze;if(e instanceof n){const{message:o,locations:[c]}=e;return pe(o,{start:c})}return e}(c);return o.comments=function(f){const T=[],{startToken:r}=f.loc;let{next:t}=r;for(;"<EOF>"!==t.kind;)"Comment"===t.kind&&(Object.assign(t,{column:t.column-1}),T.push(t)),t=t.next;return T}(o),Le(o),o},astFormat:"graphql",hasPragma:On,locStart:In,locEnd:bn}}}}()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[257],{34257:(pe,j,I)=>{I.r(j),I.d(j,{GraphQLWsSubscriptionProvider:()=>ae});var g=I(48309),Y=I(43588),_=I(62503);const R=Object.prototype.hasOwnProperty;function x(e){return"object"==typeof e&&null!==e}function O(e,n){return R.call(e,n)}function W(e,n){return R.call(e,n)&&x(e[n])}function w(e,n){return R.call(e,n)&&"string"==typeof e[n]}function H(e,n){return e.length<124?e:n}const ne="graphql-transport-ws";var p=(()=>{return(e=p||(p={}))[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",p;var e})(),c=(()=>{return(e=c||(c={})).ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",c;var e})();function v(e){if(x(e)){if(!w(e,"type"))return!1;switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:return!O(e,"payload")||void 0===e.payload||x(e.payload);case c.Subscribe:return w(e,"id")&&W(e,"payload")&&(!O(e.payload,"operationName")||null==e.payload.operationName||"string"==typeof e.payload.operationName)&&w(e.payload,"query")&&(!O(e.payload,"variables")||null==e.payload.variables||W(e.payload,"variables"))&&(!O(e.payload,"extensions")||null==e.payload.extensions||W(e.payload,"extensions"));case c.Next:return w(e,"id")&&W(e,"payload");case c.Error:return w(e,"id")&&function ee(e){return Array.isArray(e)&&e.length>0&&e.every(n=>"message"in n)}(e.payload);case c.Complete:return w(e,"id");default:return!1}}return!1}function N(e,n){if(!v(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e,n)}function L(e){return x(e)&&"code"in e&&"reason"in e}class ae extends Y.q{createClient(){this.client=function re(e){const{url:n,connectionParams:y,lazy:A=!0,onNonLazyError:z=console.error,lazyCloseTimeout:B=0,keepAlive:M=0,disablePong:se,connectionAckWaitTimeout:F=0,retryAttempts:J=5,retryWait:ce=function(){var t=(0,g.Z)(function*(s){let o=1e3;for(let a=0;a<s;a++)o*=2;yield new Promise(a=>setTimeout(a,o+Math.floor(2700*Math.random()+300)))});return function l(s){return t.apply(this,arguments)}}(),shouldRetry:le=L,isFatalConnectionProblem:Z,on:r,webSocketImpl:C,generateID:ue=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,l=>{const s=16*Math.random()|0;return("x"==l?s:3&s|8).toString(16)})},jsonMessageReplacer:D,jsonMessageReviver:de}=e;let S;if(C){if(!function ie(e){return"function"==typeof e&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}(C))throw new Error("Invalid WebSocket implementation provided");S=C}else typeof WebSocket<"u"?S=WebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(S=window.WebSocket||window.MozWebSocket);if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const P=S,f=(()=>{const t=(()=>{const s={};return{on:(o,a)=>(s[o]=a,()=>{delete s[o]}),emit(o){var a;"id"in o&&(null===(a=s[o.id])||void 0===a||a.call(s,o))}}})(),l={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[t.emit,r.message]:[t.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:t.on,on(s,o){const a=l[s];return a.push(o),()=>{a.splice(a.indexOf(o),1)}},emit(s,...o){for(const a of[...l[s]])a(...o)}}})();function $(t){const l=[f.on("error",s=>{l.forEach(o=>o()),t(s)}),f.on("closed",s=>{l.forEach(o=>o()),t(s)})]}let m,h=0,U=!1,G=0,K=!1;function V(){return Q.apply(this,arguments)}function Q(){return Q=(0,g.Z)(function*(){const[t,l]=yield m??(m=new Promise((a,b)=>(0,g.Z)(function*(){if(U){if(yield ce(G),!h)return m=void 0,b({code:1e3,reason:"All Subscriptions Gone"});G++}f.emit("connecting");const i=new P("function"==typeof n?yield n():n,ne);let E,T;function q(){isFinite(M)&&M>0&&(clearTimeout(T),T=setTimeout(()=>{i.readyState===P.OPEN&&(i.send(N({type:c.Ping})),f.emit("ping",!1,void 0))},M))}$(u=>{m=void 0,clearTimeout(E),clearTimeout(T),b(u),L(u)&&4499===u.code&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=u=>f.emit("error",u),i.onclose=u=>f.emit("closed",u),i.onopen=(0,g.Z)(function*(){try{f.emit("opened",i);const u="function"==typeof y?yield y():y;if(i.readyState!==P.OPEN)return;i.send(N(u?{type:c.ConnectionInit,payload:u}:{type:c.ConnectionInit},D)),isFinite(F)&&F>0&&(E=setTimeout(()=>{i.close(p.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},F)),q()}catch(u){f.emit("error",u),i.close(p.InternalClientError,H(u instanceof Error?u.message:new Error(u).message,"Internal client error"))}});let k=!1;i.onmessage=({data:u})=>{try{const d=function te(e,n){if(v(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const y=JSON.parse(e,n);if(!v(y))throw new Error("Invalid message");return y}(u,de);if(f.emit("message",d),"ping"===d.type||"pong"===d.type)return f.emit(d.type,!0,d.payload),void("pong"===d.type?q():se||(i.send(N(d.payload?{type:c.Pong,payload:d.payload}:{type:c.Pong})),f.emit("pong",!1,d.payload)));if(k)return;if(d.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${d.type}`);clearTimeout(E),k=!0,f.emit("connected",i,d.payload),U=!1,G=0,a([i,new Promise((be,fe)=>$(fe))])}catch(d){i.onmessage=null,f.emit("error",d),i.close(p.BadResponse,H(d instanceof Error?d.message:new Error(d).message,"Bad response"))}}})()));t.readyState===P.CLOSING&&(yield l);let s=()=>{};const o=new Promise(a=>s=a);return[t,s,Promise.race([o.then(()=>{if(!h){const a=()=>t.close(1e3,"Normal Closure");isFinite(B)&&B>0?setTimeout(()=>{!h&&t.readyState===P.OPEN&&a()},B):a()}}),l])]}),Q.apply(this,arguments)}function X(t){if(L(t)&&(function oe(e){return![1e3,1001,1006,1005,1012,1013,1013].includes(e)&&e>=1e3&&e<=1999}(t.code)||[p.InternalServerError,p.InternalClientError,p.BadRequest,p.BadResponse,p.Unauthorized,p.SubprotocolNotAcceptable,p.SubscriberAlreadyExists,p.TooManyInitialisationRequests].includes(t.code)))throw t;if(K)return!1;if(L(t)&&1e3===t.code)return h>0;if(!J||G>=J||!le(t)||Z?.(t))throw t;return U=!0}return A||(0,g.Z)(function*(){for(h++;;)try{const[,,t]=yield V();yield t}catch(t){try{if(!X(t))return}catch(l){return z?.(l)}}})(),{on:f.on,subscribe(t,l){const s=ue();let o=!1,a=!1,b=()=>{h--,o=!0};return(0,g.Z)(function*(){for(h++;;)try{const[i,E,T]=yield V();if(o)return E();const q=f.onMessage(s,k=>{switch(k.type){case c.Next:return void l.next(k.payload);case c.Error:return a=!0,o=!0,l.error(k.payload),void b();case c.Complete:return o=!0,void b()}});return i.send(N({id:s,type:c.Subscribe,payload:t},D)),b=()=>{!o&&i.readyState===P.OPEN&&i.send(N({id:s,type:c.Complete},D)),h--,o=!0,E()},void(yield T.finally(q))}catch(i){if(!X(i))return}})().then(()=>{a||l.complete()}).catch(i=>{l.error(i)}),()=>{o||b()}},dispose:()=>(0,g.Z)(function*(){if(K=!0,m){const[t]=yield m;t.close(1e3,"Normal Closure")}})(),terminate(){m&&f.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}({url:this.subscriptionUrl,connectionParams:this.connectionParams,lazy:!1,onNonLazyError:n=>{this.extraOptions?.onConnected?.(n,void 0)},on:{connected:()=>{this.extraOptions?.onConnected?.(void 0,void 0)},error:n=>{this.extraOptions?.onConnected?.(n,void 0)}}})}execute(n){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new _.y(y=>{this.cleanup=this.client.subscribe({query:n.query,variables:n.variables,operationName:n.operationName},{next:(...A)=>y.next(...A),error:(...A)=>y.error(...A),complete:()=>y.complete()})})}close(){var n=this;return(0,g.Z)(function*(){try{n.cleanup?.(),n.cleanup=void 0,yield n.client?.dispose(),n.client=void 0}catch(y){console.error(y)}})()}}}}]);
@@ -1431,6 +1431,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1431
1431
  SOFTWARE.
1432
1432
 
1433
1433
 
1434
+ @fontsource/jetbrains-mono
1435
+ MIT
1436
+ MIT License
1437
+
1438
+ Copyright (c) 2020 Lotus
1439
+
1440
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1441
+ of this software and associated documentation files (the "Software"), to deal
1442
+ in the Software without restriction, including without limitation the rights
1443
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1444
+ copies of the Software, and to permit persons to whom the Software is
1445
+ furnished to do so, subject to the following conditions:
1446
+
1447
+ The above copyright notice and this permission notice shall be included in all
1448
+ copies or substantial portions of the Software.
1449
+
1450
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1451
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1452
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1453
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1454
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1455
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1456
+ SOFTWARE.
1457
+
1434
1458
  @lezer/common
1435
1459
  MIT
1436
1460
  MIT License
package/build/dist/521.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[521],{69972:(L,T,j)=>{j.d(T,{q:()=>v});class v{constructor(g,H,F){this.subscriptionUrl=g,this.connectionParams=H,this.extraOptions=F}}},16922:(L,T,j)=>{j.d(T,{y:()=>rt});var v=function(t,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])})(t,r)};function x(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}v(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function S(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,u,e=n.call(t),i=[];try{for(;(void 0===r||r-- >0)&&!(o=e.next()).done;)i.push(o.value)}catch(c){u={error:c}}finally{try{o&&!o.done&&(n=e.return)&&n.call(e)}finally{if(u)throw u.error}}return i}function w(t,r){for(var n=0,e=r.length,o=t.length;n<e;n++,o++)t[o]=r[n];return t}function y(t){return"function"==typeof t}var A=function J(t){var n=t(function(e){Error.call(e),e.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}(function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map(function(e,o){return o+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}});function C(t,r){if(t){var n=t.indexOf(r);0<=n&&t.splice(n,1)}}var I=function(){function t(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return t.prototype.unsubscribe=function(){var r,n,e,o,i;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=S(u),f=c.next();!f.done;f=c.next())f.value.remove(this)}catch(h){r={error:h}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}else u.remove(this);var l=this.initialTeardown;if(y(l))try{l()}catch(h){i=h instanceof A?h.errors:[h]}var d=this._teardowns;if(d){this._teardowns=null;try{for(var s=S(d),p=s.next();!p.done;p=s.next()){var m=p.value;try{Y(m)}catch(h){i=i??[],h instanceof A?i=w(w([],_(i)),_(h.errors)):i.push(h)}}}catch(h){e={error:h}}finally{try{p&&!p.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}}if(i)throw new A(i)}},t.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Y(r);else{if(r instanceof t){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(r)}},t.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},t.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},t.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&C(n,r)},t.prototype.remove=function(r){var n=this._teardowns;n&&C(n,r),r instanceof t&&r._removeParent(this)},t.EMPTY=((r=new t).closed=!0,r),t;var r}();function N(t){return t instanceof I||t&&"closed"in t&&y(t.remove)&&y(t.add)&&y(t.unsubscribe)}function Y(t){y(t)?t():t.unsubscribe()}var P={setTimeout:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=P.delegate;return(n?.setTimeout||setTimeout).apply(void 0,w([],_(t)))},clearTimeout:function(t){return(P.delegate?.clearTimeout||clearTimeout)(t)},delegate:void 0};function K(t){P.setTimeout(function(){throw t})}function O(){}var Q=R("C",void 0,void 0);function R(t,r,n){return{kind:t,value:r,error:n}}var B=function(t){function r(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,N(n)&&n.add(e)):e.destination=Z,e}return x(r,t),r.create=function(n,e,o){return new G(n,e,o)},r.prototype.next=function(n){this.isStopped?U(function X(t){return R("N",t,void 0)}(n),this):this._next(n)},r.prototype.error=function(n){this.isStopped?U(function W(t){return R("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped?U(Q,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(I),G=function(t){function r(n,e,o){var u,i=t.call(this)||this;if(y(n))u=n;else if(n){var c;e=n.error,o=n.complete,u=(u=n.next)?.bind(c=n),e=e?.bind(c),o=o?.bind(c)}return i.destination={next:u?D(u,i):O,error:D(e??q,i),complete:o?D(o,i):O},i}return x(r,t),r}(B);function D(t,r){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];try{t.apply(void 0,w([],_(n)))}catch(o){K(o)}}}function q(t){throw t}function U(t,r){var n=null;n&&P.setTimeout(function(){return n(t,r)})}var Z={closed:!0,next:O,error:q,complete:O},$="function"==typeof Symbol&&Symbol.observable||"@@observable";function tt(t){return t}function V(t){return 0===t.length?tt:1===t.length?t[0]:function(n){return t.reduce(function(e,o){return o(e)},n)}}var rt=function(){function t(r){r&&(this._subscribe=r)}return t.prototype.lift=function(r){var n=new t;return n.source=this,n.operator=r,n},t.prototype.subscribe=function(r,n,e){var o=function et(t){return t&&t instanceof B||function nt(t){return t&&y(t.next)&&y(t.error)&&y(t.complete)}(t)&&N(t)}(r)?r:new G(r,n,e),u=this.operator,c=this.source;return o.add(u?u.call(o,c):c?this._subscribe(o):this._trySubscribe(o)),o},t.prototype._deprecatedSyncErrorSubscribe=function(r){var n=r;n._syncErrorHack_isSubscribing=!0;var e=this.operator;if(e)r.add(e.call(r,this.source));else try{r.add(this._subscribe(r))}catch(i){n.__syncError=i}for(var o=n;o;){if("__syncError"in o)try{throw o.__syncError}finally{r.unsubscribe()}o=o.destination}n._syncErrorHack_isSubscribing=!1},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},t.prototype.forEach=function(r,n){var e=this;return new(n=k(n))(function(o,i){var u;u=e.subscribe(function(c){try{r(c)}catch(f){i(f),u?.unsubscribe()}},i,o)})},t.prototype._subscribe=function(r){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(r)},t.prototype[$]=function(){return this},t.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length?V(r)(this):this},t.prototype.toPromise=function(r){var n=this;return new(r=k(r))(function(e,o){var i;n.subscribe(function(u){return i=u},function(u){return o(u)},function(){return e(i)})})},t.create=function(r){return new t(r)},t}();function k(t){var r;return null!==(r=t??undefined)&&void 0!==r?r:Promise}}}]);
1
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[521],{14477:C=>{function u(r){this.ms=(r=r||{}).min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}C.exports=u,u.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var o=Math.random(),O=Math.floor(o*this.jitter*r);r=1&Math.floor(10*o)?r+O:r-O}return 0|Math.min(r,this.max)},u.prototype.reset=function(){this.attempts=0},u.prototype.setMin=function(r){this.ms=r},u.prototype.setMax=function(r){this.max=r},u.prototype.setJitter=function(r){this.jitter=r}},62590:function(C,u,r){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(c){for(var t,e=1,n=arguments.length;e<n;e++)for(var s in t=arguments[e])Object.prototype.hasOwnProperty.call(t,s)&&(c[s]=t[s]);return c},o.apply(this,arguments)},O=this&&this.__awaiter||function(c,t,e,n){return new(e||(e=Promise))(function(i,v){function E(m){try{f(n.next(m))}catch(R){v(R)}}function N(m){try{f(n.throw(m))}catch(R){v(R)}}function f(m){m.done?i(m.value):function s(i){return i instanceof e?i:new e(function(v){v(i)})}(m.value).then(E,N)}f((n=n.apply(c,t||[])).next())})},A=this&&this.__generator||function(c,t){var n,s,i,v,e={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return v={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function E(f){return function(m){return function N(f){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,s&&(i=2&f[0]?s.return:f[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,f[1])).done)return i;switch(s=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return e.label++,{value:f[1],done:!1};case 5:e.label++,s=f[1],f=[0];continue;case 7:f=e.ops.pop(),e.trys.pop();continue;default:if(!(i=(i=e.trys).length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){e.label=f[1];break}if(6===f[0]&&e.label<i[1]){e.label=i[1],i=f;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(f);break}i[2]&&e.ops.pop(),e.trys.pop();continue}f=t.call(c,e)}catch(m){f=[6,m],s=0}finally{n=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,m])}}},w=this&&this.__spreadArrays||function(){for(var c=0,t=0,e=arguments.length;t<e;t++)c+=arguments[t].length;var n=Array(c),s=0;for(t=0;t<e;t++)for(var i=arguments[t],v=0,E=i.length;v<E;v++,s++)n[s]=i[v];return n};Object.defineProperty(u,"__esModule",{value:!0}),u.SubscriptionClient=void 0;var y=typeof global<"u"?global:typeof window<"u"?window:{},d=y.WebSocket||y.MozWebSocket,a=r(14477),l=r(58895),p=r(81449),I=r(37206),g=r(94140),b=r(86992),M=r(47604),h=r(75977),S=r(18303),_=r(69773),T=function(){function c(t,e,n,s){var i=e||{},v=i.connectionCallback,E=void 0===v?void 0:v,N=i.connectionParams,f=void 0===N?{}:N,m=i.minTimeout,R=void 0===m?S.MIN_WS_TIMEOUT:m,P=i.timeout,U=void 0===P?S.WS_TIMEOUT:P,L=i.reconnect,j=void 0!==L&&L,k=i.reconnectionAttempts,W=void 0===k?1/0:k,x=i.lazy,B=void 0!==x&&x,G=i.inactivityTimeout,D=void 0===G?0:G,Q=i.wsOptionArguments,K=void 0===Q?[]:Q;if(this.wsImpl=n||d,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=s||h.GRAPHQL_WS,this.connectionCallback=E,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=R,this.wsTimeout=U,this.unsentMessagesQueue=[],this.reconnect=j,this.reconnecting=!1,this.reconnectionAttempts=W,this.lazy=!!B,this.inactivityTimeout=D,this.closedByUser=!1,this.backoff=new a({jitter:.5}),this.eventEmitter=new l.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(f),this.wsOptionArguments=K,this.lazy||this.connect()}return Object.defineProperty(c.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),c.prototype.close=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=e,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,_.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},c.prototype.request=function(t){var e,v,n=this.getObserver.bind(this),s=this.executeOperation.bind(this),i=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[M.default]=function(){return this},e.subscribe=function(E,N,f){var m=n(E,N,f);return v=s(t,function(R,P){null===R&&null===P?m.complete&&m.complete():R?m.error&&m.error(R[0]):m.next&&m.next(P)}),{unsubscribe:function(){v&&(i(v),v=null)}}},e},c.prototype.on=function(t,e,n){var s=this.eventEmitter.on(t,e,n);return function(){s.off(t,e,n)}},c.prototype.onConnected=function(t,e){return this.on("connected",t,e)},c.prototype.onConnecting=function(t,e){return this.on("connecting",t,e)},c.prototype.onDisconnected=function(t,e){return this.on("disconnected",t,e)},c.prototype.onReconnected=function(t,e){return this.on("reconnected",t,e)},c.prototype.onReconnecting=function(t,e){return this.on("reconnecting",t,e)},c.prototype.onError=function(t,e){return this.on("error",t,e)},c.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(e){t.unsubscribe(e)})},c.prototype.applyMiddlewares=function(t){var e=this;return new Promise(function(n,s){var v,E,N;v=w(e.middlewares),E=e,(N=function(f){if(f)s(f);else if(v.length>0){var m=v.shift();m&&m.applyMiddleware.apply(E,[t,N])}else n(t)})()})},c.prototype.use=function(t){var e=this;return t.map(function(n){if("function"!=typeof n.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(n)}),this},c.prototype.getConnectionParams=function(t){return function(){return new Promise(function(e,n){if("function"==typeof t)try{return e(t.call(null))}catch(s){return n(s)}e(t)})}},c.prototype.executeOperation=function(t,e){var n=this;null===this.client&&this.connect();var s=this.generateOperationId();return this.operations[s]={options:t,handler:e},this.applyMiddlewares(t).then(function(i){n.checkOperationOptions(i,e),n.operations[s]&&(n.operations[s]={options:i,handler:e},n.sendMessage(s,_.default.GQL_START,i))}).catch(function(i){n.unsubscribe(s),e(n.formatErrors(i))}),s},c.prototype.getObserver=function(t,e,n){return"function"==typeof t?{next:function(s){return t(s)},error:function(s){return e&&e(s)},complete:function(){return n&&n()}}:t},c.prototype.createMaxConnectTimeGenerator=function(){return new a({min:this.minWsTimeout,max:this.wsTimeout,factor:1.2})},c.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},c.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},c.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},c.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},c.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(t.operations).length&&t.close()},this.inactivityTimeout))},c.prototype.checkOperationOptions=function(t,e){var n=t.query,s=t.variables,i=t.operationName;if(!n)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!p.default(n)&&!b.getOperationAST(n,i)||i&&!p.default(i)||s&&!I.default(s))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},c.prototype.buildMessage=function(t,e,n){return{id:t,type:e,payload:n&&n.query?o(o({},n),{query:"string"==typeof n.query?n.query:g.print(n.query)}):n}},c.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},c.prototype.sendMessage=function(t,e,n){this.sendMessageRaw(this.buildMessage(t,e,n))},c.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch{this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},c.prototype.generateOperationId=function(){return String(++this.nextOperationId)},c.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(n){t.unsentMessagesQueue.push(t.buildMessage(n,_.default.GQL_START,t.operations[n].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},e)}},c.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(e){t.sendMessageRaw(e)}),this.unsentMessagesQueue=[]},c.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},c.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))},this.maxConnectTimeGenerator.duration())},c.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,w([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return O(e,void 0,void 0,function(){var n,s;return A(this,function(i){switch(i.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=i.sent(),this.sendMessage(void 0,_.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return s=i.sent(),this.sendMessage(void 0,_.default.GQL_CONNECTION_ERROR,s),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(n){e.eventEmitter.emit("error",n)},this.client.onmessage=function(n){e.processReceivedData(n.data)}},c.prototype.processReceivedData=function(t){var e,n;try{n=(e=JSON.parse(t)).id}catch{throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[_.default.GQL_DATA,_.default.GQL_COMPLETE,_.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case _.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case _.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case _.default.GQL_COMPLETE:var s=this.operations[n].handler;delete this.operations[n],s.call(this,null,null);break;case _.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case _.default.GQL_DATA:var i=e.payload.errors?o(o({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,i);break;case _.default.GQL_CONNECTION_KEEP_ALIVE:var v=typeof this.wasKeepAliveReceived>"u";this.wasKeepAliveReceived=!0,v&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},c.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,_.default.GQL_STOP,void 0))},c}();u.SubscriptionClient=T},18303:(C,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.WS_TIMEOUT=u.MIN_WS_TIMEOUT=void 0,u.MIN_WS_TIMEOUT=1e3,u.WS_TIMEOUT=3e4},69773:(C,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});var r=function(){function o(){throw new Error("Static Class")}return o.GQL_CONNECTION_INIT="connection_init",o.GQL_CONNECTION_ACK="connection_ack",o.GQL_CONNECTION_ERROR="connection_error",o.GQL_CONNECTION_KEEP_ALIVE="ka",o.GQL_CONNECTION_TERMINATE="connection_terminate",o.GQL_START="start",o.GQL_DATA="data",o.GQL_ERROR="error",o.GQL_COMPLETE="complete",o.GQL_STOP="stop",o.SUBSCRIPTION_START="subscription_start",o.SUBSCRIPTION_DATA="subscription_data",o.SUBSCRIPTION_SUCCESS="subscription_success",o.SUBSCRIPTION_FAIL="subscription_fail",o.SUBSCRIPTION_END="subscription_end",o.INIT="init",o.INIT_SUCCESS="init_success",o.INIT_FAIL="init_fail",o.KEEP_ALIVE="keepalive",o}();u.default=r},75977:(C,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GRAPHQL_SUBSCRIPTIONS=u.GRAPHQL_WS=void 0,u.GRAPHQL_WS="graphql-ws",u.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},37206:(C,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.default=function r(o){return null!==o&&"object"==typeof o}},81449:(C,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.default=function r(o){return"string"==typeof o}},58895:C=>{"use strict";var u=Object.prototype.hasOwnProperty,r="~";function o(){}function O(d,a,l){this.fn=d,this.context=a,this.once=l||!1}function A(d,a,l,p,I){if("function"!=typeof l)throw new TypeError("The listener must be a function");var g=new O(l,p||d,I),b=r?r+a:a;return d._events[b]?d._events[b].fn?d._events[b]=[d._events[b],g]:d._events[b].push(g):(d._events[b]=g,d._eventsCount++),d}function w(d,a){0==--d._eventsCount?d._events=new o:delete d._events[a]}function y(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),y.prototype.eventNames=function(){var l,p,a=[];if(0===this._eventsCount)return a;for(p in l=this._events)u.call(l,p)&&a.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(l)):a},y.prototype.listeners=function(a){var p=this._events[r?r+a:a];if(!p)return[];if(p.fn)return[p.fn];for(var I=0,g=p.length,b=new Array(g);I<g;I++)b[I]=p[I].fn;return b},y.prototype.listenerCount=function(a){var p=this._events[r?r+a:a];return p?p.fn?1:p.length:0},y.prototype.emit=function(a,l,p,I,g,b){var M=r?r+a:a;if(!this._events[M])return!1;var _,T,h=this._events[M],S=arguments.length;if(h.fn){switch(h.once&&this.removeListener(a,h.fn,void 0,!0),S){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,l),!0;case 3:return h.fn.call(h.context,l,p),!0;case 4:return h.fn.call(h.context,l,p,I),!0;case 5:return h.fn.call(h.context,l,p,I,g),!0;case 6:return h.fn.call(h.context,l,p,I,g,b),!0}for(T=1,_=new Array(S-1);T<S;T++)_[T-1]=arguments[T];h.fn.apply(h.context,_)}else{var t,c=h.length;for(T=0;T<c;T++)switch(h[T].once&&this.removeListener(a,h[T].fn,void 0,!0),S){case 1:h[T].fn.call(h[T].context);break;case 2:h[T].fn.call(h[T].context,l);break;case 3:h[T].fn.call(h[T].context,l,p);break;case 4:h[T].fn.call(h[T].context,l,p,I);break;default:if(!_)for(t=1,_=new Array(S-1);t<S;t++)_[t-1]=arguments[t];h[T].fn.apply(h[T].context,_)}}return!0},y.prototype.on=function(a,l,p){return A(this,a,l,p,!1)},y.prototype.once=function(a,l,p){return A(this,a,l,p,!0)},y.prototype.removeListener=function(a,l,p,I){var g=r?r+a:a;if(!this._events[g])return this;if(!l)return w(this,g),this;var b=this._events[g];if(b.fn)b.fn===l&&(!I||b.once)&&(!p||b.context===p)&&w(this,g);else{for(var M=0,h=[],S=b.length;M<S;M++)(b[M].fn!==l||I&&!b[M].once||p&&b[M].context!==p)&&h.push(b[M]);h.length?this._events[g]=1===h.length?h[0]:h:w(this,g)}return this},y.prototype.removeAllListeners=function(a){var l;return a?this._events[l=r?r+a:a]&&w(this,l):(this._events=new o,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prefixed=r,y.EventEmitter=y,C.exports=y},47604:(C,u,r)=>{"use strict";r.r(u),r.d(u,{default:()=>w}),C=r.hmd(C);const w=function o(y){var d,a=y.Symbol;return"function"==typeof a?a.observable?d=a.observable:(d=a("observable"),a.observable=d):d="@@observable",d}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:C)},97521:(C,u,r)=>{"use strict";r.r(u),r.d(u,{WebsocketSubscriptionProvider:()=>y});var o=r(43588),O=r(62590),w=r(62503);class y extends o.q{createClient(){this.client=new O.SubscriptionClient(this.subscriptionUrl,{reconnect:!0,connectionParams:this.connectionParams,connectionCallback:this.extraOptions?.onConnected})}execute(a){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new w.y(l=>{const p=this.client.request({query:a.query,variables:a.variables,operationName:a.operationName}).subscribe({next:(...I)=>l.next(...I),error:(...I)=>l.error(...I),complete:()=>l.complete()});this.cleanup=p.unsubscribe})}close(){this.cleanup?.(),this.cleanup=void 0,this.client?.unsubscribeAll(),this.client?.close(),this.client=void 0}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[471],{95471:(f,m,i)=>{i.r(m),i.d(m,{DocUtils:()=>p});var d=i(15861),l=i(50855),_=i(32833),g=i(51316),u=i(62762);class p{constructor(e){this.searchIndex=[],e&&this.updateSchema(e)}updateSchema(e){this.schema=(0,_.I)(e)}generateSearchIndex(){if(!this.schema)return[];let e=[];(0,g.Z)(this.schema).forEach(s=>{e=[...e,...this.getTypeIndices(s,!0,e)]});const a=this.schema.getTypeMap();return Object.keys(a).forEach(s=>{/^__/.test(s)||(e=[...e,...this.getTypeIndices(a[s],!1,e)])}),this.searchIndex=e,e}getFieldsIndices(e,n,a,s){let t=[];return Object.entries(e).forEach(([h,r])=>{const o={search:r.name,name:r.name,description:r.description?r.description:"",args:r.args?.map(c=>({name:c.name,description:c.description??""})),cat:"field",type:n.name,isQuery:a,highlight:"field"};t=[...t,o],r.args&&r.args.length&&r.args.forEach(c=>{t=[...t,{...o,search:c.name,highlight:"argument"}]}),r.type&&(t=[...t,...this.getTypeIndices(r.type,!1,[...s,...t]).filter(c=>!!c)])}),t}getTypeIndices(e,n,a){let s;if(!e.name)return[];if(a.some(h=>h.name===e.name&&"type"===h.cat))return[];e.getFields&&(s=e.getFields());const t=[{search:e.name,name:e.name,cat:"type",description:e.description?e.description:"",isRoot:n,highlight:"type"}];return s?[...t,...this.getFieldsIndices(s,e,n,[...a,...t]).filter(h=>!!h)]:t}searchDocs(e){return this.searchIndex.length?new l.Z(this.searchIndex,{keys:["search"],threshold:.4}).search(e).map(a=>a.item):[]}generateQueryV2(e,n,a){var s=this;return(0,d.Z)(function*(){if(!s.schema)return;const t=yield(0,u.Ku)(s.schema,e,n,{maxDepth:a.addQueryDepthLimit,tabSize:a.tabSize});return{query:t.generated,meta:t.metas.find(h=>h.hasArgs)||{}}})()}cleanName(e){return e.replace(/[[\]!]/g,"")}}}}]);
1
+ "use strict";(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[614],{59614:(p,d,i)=>{i.r(d),i.d(d,{DocUtils:()=>f});var o=i(48309),l=i(10777),u=i(25770),_=i(70934),g=i(22220);class f{constructor(e){this.searchIndex=[],e&&this.updateSchema(e)}updateSchema(e){this.schema=(0,u.I)(e)}generateSearchIndex(){if(!this.schema)return[];let e=[];(0,_.Z)(this.schema).forEach(s=>{e=[...e,...this.getTypeIndices(s,!0,e)]});const a=this.schema.getTypeMap();return Object.keys(a).forEach(s=>{/^__/.test(s)||(e=[...e,...this.getTypeIndices(a[s],!1,e)])}),this.searchIndex=e,e}getFieldsIndices(e,n,a,s){let t=[];return Object.entries(e).forEach(([h,r])=>{const m={search:r.name,name:r.name,description:r.description?r.description:"",args:r.args?.map(c=>({name:c.name,description:c.description??""})),cat:"field",type:n.name,isQuery:a,highlight:"field"};t=[...t,m],r.args&&r.args.length&&r.args.forEach(c=>{t=[...t,{...m,search:c.name,highlight:"argument"}]}),r.type&&(t=[...t,...this.getTypeIndices(r.type,!1,[...s,...t]).filter(c=>!!c)])}),t}getTypeIndices(e,n,a){let s;if(!e.name)return[];if(a.some(h=>h.name===e.name&&"type"===h.cat))return[];e.getFields&&(s=e.getFields());const t=[{search:e.name,name:e.name,cat:"type",description:e.description?e.description:"",isRoot:n,highlight:"type"}];return s?[...t,...this.getFieldsIndices(s,e,n,[...a,...t]).filter(h=>!!h)]:t}searchDocs(e){return this.searchIndex.length?new l.Z(this.searchIndex,{keys:["search"],threshold:.4}).search(e).map(a=>a.item):[]}generateQueryV2(e,n,a){var s=this;return(0,o.Z)(function*(){if(!s.schema)return;const t=yield(0,g.Ku)(s.schema,e,n,{maxDepth:a.addQueryDepthLimit,tabSize:a.tabSize});return{query:t.generated,meta:t.metas.find(h=>h.hasArgs)||{}}})()}cleanName(e){return e.replace(/[[\]!]/g,"")}}}}]);