altair-static 8.2.0 → 8.2.2

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.
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d2b05199-6c28-54ef-b123-712211340dbc")}catch(e){}}();
3
- (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[684],{88419:O=>{function f(i){this.ms=(i=i||{}).min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}O.exports=f,f.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),E=Math.floor(a*this.jitter*i);i=1&Math.floor(10*a)?i+E:i-E}return 0|Math.min(i,this.max)},f.prototype.reset=function(){this.attempts=0},f.prototype.setMin=function(i){this.ms=i},f.prototype.setMax=function(i){this.max=i},f.prototype.setJitter=function(i){this.jitter=i}},45836:O=>{"use strict";var f=Object.prototype.hasOwnProperty,i="~";function a(){}function E(p,u,o){this.fn=p,this.context=u,this.once=o||!1}function R(p,u,o,l,I){if("function"!=typeof o)throw new TypeError("The listener must be a function");var g=new E(o,l||p,I),v=i?i+u:u;return p._events[v]?p._events[v].fn?p._events[v]=[p._events[v],g]:p._events[v].push(g):(p._events[v]=g,p._eventsCount++),p}function N(p,u){0==--p._eventsCount?p._events=new a:delete p._events[u]}function _(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(i=!1)),_.prototype.eventNames=function(){var o,l,u=[];if(0===this._eventsCount)return u;for(l in o=this._events)f.call(o,l)&&u.push(i?l.slice(1):l);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(o)):u},_.prototype.listeners=function(u){var l=this._events[i?i+u:u];if(!l)return[];if(l.fn)return[l.fn];for(var I=0,g=l.length,v=new Array(g);I<g;I++)v[I]=l[I].fn;return v},_.prototype.listenerCount=function(u){var l=this._events[i?i+u:u];return l?l.fn?1:l.length:0},_.prototype.emit=function(u,o,l,I,g,v){var w=i?i+u:u;if(!this._events[w])return!1;var b,T,d=this._events[w],M=arguments.length;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),M){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,o),!0;case 3:return d.fn.call(d.context,o,l),!0;case 4:return d.fn.call(d.context,o,l,I),!0;case 5:return d.fn.call(d.context,o,l,I,g),!0;case 6:return d.fn.call(d.context,o,l,I,g,v),!0}for(T=1,b=new Array(M-1);T<M;T++)b[T-1]=arguments[T];d.fn.apply(d.context,b)}else{var t,c=d.length;for(T=0;T<c;T++)switch(d[T].once&&this.removeListener(u,d[T].fn,void 0,!0),M){case 1:d[T].fn.call(d[T].context);break;case 2:d[T].fn.call(d[T].context,o);break;case 3:d[T].fn.call(d[T].context,o,l);break;case 4:d[T].fn.call(d[T].context,o,l,I);break;default:if(!b)for(t=1,b=new Array(M-1);t<M;t++)b[t-1]=arguments[t];d[T].fn.apply(d[T].context,b)}}return!0},_.prototype.on=function(u,o,l){return R(this,u,o,l,!1)},_.prototype.once=function(u,o,l){return R(this,u,o,l,!0)},_.prototype.removeListener=function(u,o,l,I){var g=i?i+u:u;if(!this._events[g])return this;if(!o)return N(this,g),this;var v=this._events[g];if(v.fn)v.fn===o&&(!I||v.once)&&(!l||v.context===l)&&N(this,g);else{for(var w=0,d=[],M=v.length;w<M;w++)(v[w].fn!==o||I&&!v[w].once||l&&v[w].context!==l)&&d.push(v[w]);d.length?this._events[g]=1===d.length?d[0]:d:N(this,g)}return this},_.prototype.removeAllListeners=function(u){var o;return u?this._events[o=i?i+u:u]&&N(this,o):(this._events=new a,this._eventsCount=0),this},_.prototype.off=_.prototype.removeListener,_.prototype.addListener=_.prototype.on,_.prefixed=i,_.EventEmitter=_,O.exports=_},11796:function(O,f,i){"use strict";var a=this&&this.__assign||function(){return a=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},a.apply(this,arguments)},E=this&&this.__awaiter||function(c,t,e,n){return new(e||(e=Promise))(function(r,m){function C(y){try{h(n.next(y))}catch(A){m(A)}}function S(y){try{h(n.throw(y))}catch(A){m(A)}}function h(y){y.done?r(y.value):function s(r){return r instanceof e?r:new e(function(m){m(r)})}(y.value).then(C,S)}h((n=n.apply(c,t||[])).next())})},R=this&&this.__generator||function(c,t){var n,s,r,m,e={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(h){return function(y){return function S(h){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,s&&(r=2&h[0]?s.return:h[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,h[1])).done)return r;switch(s=0,r&&(h=[2&h[0],r.value]),h[0]){case 0:case 1:r=h;break;case 4:return e.label++,{value:h[1],done:!1};case 5:e.label++,s=h[1],h=[0];continue;case 7:h=e.ops.pop(),e.trys.pop();continue;default:if(!(r=(r=e.trys).length>0&&r[r.length-1])&&(6===h[0]||2===h[0])){e=0;continue}if(3===h[0]&&(!r||h[1]>r[0]&&h[1]<r[3])){e.label=h[1];break}if(6===h[0]&&e.label<r[1]){e.label=r[1],r=h;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(h);break}r[2]&&e.ops.pop(),e.trys.pop();continue}h=t.call(c,e)}catch(y){h=[6,y],s=0}finally{n=r=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,y])}}},N=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 r=arguments[t],m=0,C=r.length;m<C;m++,s++)n[s]=r[m];return n};Object.defineProperty(f,"__esModule",{value:!0}),f.SubscriptionClient=void 0;var _=typeof global<"u"?global:typeof window<"u"?window:{},p=_.WebSocket||_.MozWebSocket,u=i(88419),o=i(45836),l=i(38679),I=i(25181),g=i(4645),v=i(39466),w=i(34026),d=i(99019),M=i(99509),b=i(80284),T=function(){function c(t,e,n,s){var r=e||{},m=r.connectionCallback,C=void 0===m?void 0:m,S=r.connectionParams,h=void 0===S?{}:S,y=r.minTimeout,A=void 0===y?M.MIN_WS_TIMEOUT:y,P=r.timeout,U=void 0===P?M.WS_TIMEOUT:P,L=r.reconnect,j=void 0!==L&&L,k=r.reconnectionAttempts,W=void 0===k?1/0:k,G=r.lazy,D=void 0!==G&&G,Q=r.inactivityTimeout,B=void 0===Q?0:Q,x=r.wsOptionArguments,K=void 0===x?[]:x;if(this.wsImpl=n||p,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=s||d.GRAPHQL_WS,this.connectionCallback=C,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=A,this.wsTimeout=U,this.unsentMessagesQueue=[],this.reconnect=j,this.reconnecting=!1,this.reconnectionAttempts=W,this.lazy=!!D,this.inactivityTimeout=B,this.closedByUser=!1,this.backoff=new u({jitter:.5}),this.eventEmitter=new o.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),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,b.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,m,n=this.getObserver.bind(this),s=this.executeOperation.bind(this),r=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[w.default]=function(){return this},e.subscribe=function(C,S,h){var y=n(C,S,h);return m=s(t,function(A,P){null===A&&null===P?y.complete&&y.complete():A?y.error&&y.error(A[0]):y.next&&y.next(P)}),{unsubscribe:function(){m&&(r(m),m=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 m,C,S;m=N(e.middlewares),C=e,(S=function(h){if(h)s(h);else if(m.length>0){var y=m.shift();y&&y.applyMiddleware.apply(C,[t,S])}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(r){n.checkOperationOptions(r,e),n.operations[s]&&(n.operations[s]={options:r,handler:e},n.sendMessage(s,b.default.GQL_START,r))}).catch(function(r){n.unsubscribe(s),e(n.formatErrors(r))}),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 u({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,r=t.operationName;if(!n)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!l.default(n)&&!v.getOperationAST(n,r)||r&&!l.default(r)||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?a(a({},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,b.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,N([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return E(e,void 0,void 0,function(){var n,s;return R(this,function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return s=r.sent(),this.sendMessage(void 0,b.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===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case b.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 b.default.GQL_COMPLETE:var s=this.operations[n].handler;delete this.operations[n],s.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case b.default.GQL_DATA:var r=e.payload.errors?a(a({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,r);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var m=typeof this.wasKeepAliveReceived>"u";this.wasKeepAliveReceived=!0,m&&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,b.default.GQL_STOP,void 0))},c}();f.SubscriptionClient=T},99509:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WS_TIMEOUT=f.MIN_WS_TIMEOUT=void 0,f.MIN_WS_TIMEOUT=1e3,f.WS_TIMEOUT=3e4},80284:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});var i=function(){function a(){throw new Error("Static Class")}return a.GQL_CONNECTION_INIT="connection_init",a.GQL_CONNECTION_ACK="connection_ack",a.GQL_CONNECTION_ERROR="connection_error",a.GQL_CONNECTION_KEEP_ALIVE="ka",a.GQL_CONNECTION_TERMINATE="connection_terminate",a.GQL_START="start",a.GQL_DATA="data",a.GQL_ERROR="error",a.GQL_COMPLETE="complete",a.GQL_STOP="stop",a.SUBSCRIPTION_START="subscription_start",a.SUBSCRIPTION_DATA="subscription_data",a.SUBSCRIPTION_SUCCESS="subscription_success",a.SUBSCRIPTION_FAIL="subscription_fail",a.SUBSCRIPTION_END="subscription_end",a.INIT="init",a.INIT_SUCCESS="init_success",a.INIT_FAIL="init_fail",a.KEEP_ALIVE="keepalive",a}();f.default=i},99019:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GRAPHQL_SUBSCRIPTIONS=f.GRAPHQL_WS=void 0,f.GRAPHQL_WS="graphql-ws",f.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},25181:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=function i(a){return null!==a&&"object"==typeof a}},38679:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=function i(a){return"string"==typeof a}},34026:(O,f,i)=>{"use strict";i.r(f),i.d(f,{default:()=>N}),O=i.hmd(O);const N=function a(_){var p,u=_.Symbol;return"function"==typeof u?u.observable?p=u.observable:(p=u("observable"),u.observable=p):p="@@observable",p}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:O)},37684:(O,f,i)=>{"use strict";i.r(f),i.d(f,{WebsocketRequestHandler:()=>p});var a=i(35121),E=i(57586),R=i(11796),_=i(49601);class p{onConnected(o,l,I){if(l)return console.log("Subscription connection error",l),void o.error(l);console.log("Connected subscription.")}handle(o){return new E.c(l=>{if(this.client=new R.SubscriptionClient(o.url,{reconnect:!0,connectionParams:o.additionalParams,connectionCallback:(v,w)=>{this.onConnected(l,v,w)}}),!this.client)throw new Error("Could not create WS client!");const I=Date.now(),g=this.client.request({query:o.query,variables:o.variables,operationName:o.selectedOperation??void 0}).subscribe((0,_.G)(l,o.url,I));return this.cleanup=g.unsubscribe,()=>{this.destroy()}})}destroy(){var o=this;return(0,a.A)(function*(){o.cleanup?.(),o.cleanup=void 0,o.client?.unsubscribeAll(),o.client?.close(),o.client=void 0})()}}}}]);
4
- //# sourceMappingURL=684.js.map
5
- //# debugId=d2b05199-6c28-54ef-b123-712211340dbc
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a37f799b-483d-5e43-8eb1-29230de70792")}catch(e){}}();
3
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[883],{25966:O=>{function f(i){this.ms=(i=i||{}).min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}O.exports=f,f.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),E=Math.floor(a*this.jitter*i);i=1&Math.floor(10*a)?i+E:i-E}return 0|Math.min(i,this.max)},f.prototype.reset=function(){this.attempts=0},f.prototype.setMin=function(i){this.ms=i},f.prototype.setMax=function(i){this.max=i},f.prototype.setJitter=function(i){this.jitter=i}},89473:O=>{"use strict";var f=Object.prototype.hasOwnProperty,i="~";function a(){}function E(p,u,o){this.fn=p,this.context=u,this.once=o||!1}function R(p,u,o,l,I){if("function"!=typeof o)throw new TypeError("The listener must be a function");var g=new E(o,l||p,I),v=i?i+u:u;return p._events[v]?p._events[v].fn?p._events[v]=[p._events[v],g]:p._events[v].push(g):(p._events[v]=g,p._eventsCount++),p}function N(p,u){0==--p._eventsCount?p._events=new a:delete p._events[u]}function _(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(i=!1)),_.prototype.eventNames=function(){var o,l,u=[];if(0===this._eventsCount)return u;for(l in o=this._events)f.call(o,l)&&u.push(i?l.slice(1):l);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(o)):u},_.prototype.listeners=function(u){var l=this._events[i?i+u:u];if(!l)return[];if(l.fn)return[l.fn];for(var I=0,g=l.length,v=new Array(g);I<g;I++)v[I]=l[I].fn;return v},_.prototype.listenerCount=function(u){var l=this._events[i?i+u:u];return l?l.fn?1:l.length:0},_.prototype.emit=function(u,o,l,I,g,v){var w=i?i+u:u;if(!this._events[w])return!1;var b,T,d=this._events[w],M=arguments.length;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),M){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,o),!0;case 3:return d.fn.call(d.context,o,l),!0;case 4:return d.fn.call(d.context,o,l,I),!0;case 5:return d.fn.call(d.context,o,l,I,g),!0;case 6:return d.fn.call(d.context,o,l,I,g,v),!0}for(T=1,b=new Array(M-1);T<M;T++)b[T-1]=arguments[T];d.fn.apply(d.context,b)}else{var t,c=d.length;for(T=0;T<c;T++)switch(d[T].once&&this.removeListener(u,d[T].fn,void 0,!0),M){case 1:d[T].fn.call(d[T].context);break;case 2:d[T].fn.call(d[T].context,o);break;case 3:d[T].fn.call(d[T].context,o,l);break;case 4:d[T].fn.call(d[T].context,o,l,I);break;default:if(!b)for(t=1,b=new Array(M-1);t<M;t++)b[t-1]=arguments[t];d[T].fn.apply(d[T].context,b)}}return!0},_.prototype.on=function(u,o,l){return R(this,u,o,l,!1)},_.prototype.once=function(u,o,l){return R(this,u,o,l,!0)},_.prototype.removeListener=function(u,o,l,I){var g=i?i+u:u;if(!this._events[g])return this;if(!o)return N(this,g),this;var v=this._events[g];if(v.fn)v.fn===o&&(!I||v.once)&&(!l||v.context===l)&&N(this,g);else{for(var w=0,d=[],M=v.length;w<M;w++)(v[w].fn!==o||I&&!v[w].once||l&&v[w].context!==l)&&d.push(v[w]);d.length?this._events[g]=1===d.length?d[0]:d:N(this,g)}return this},_.prototype.removeAllListeners=function(u){var o;return u?this._events[o=i?i+u:u]&&N(this,o):(this._events=new a,this._eventsCount=0),this},_.prototype.off=_.prototype.removeListener,_.prototype.addListener=_.prototype.on,_.prefixed=i,_.EventEmitter=_,O.exports=_},6049:function(O,f,i){"use strict";var a=this&&this.__assign||function(){return a=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},a.apply(this,arguments)},E=this&&this.__awaiter||function(c,t,e,n){return new(e||(e=Promise))(function(r,m){function C(y){try{h(n.next(y))}catch(A){m(A)}}function S(y){try{h(n.throw(y))}catch(A){m(A)}}function h(y){y.done?r(y.value):function s(r){return r instanceof e?r:new e(function(m){m(r)})}(y.value).then(C,S)}h((n=n.apply(c,t||[])).next())})},R=this&&this.__generator||function(c,t){var n,s,r,m,e={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(h){return function(y){return function S(h){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,s&&(r=2&h[0]?s.return:h[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,h[1])).done)return r;switch(s=0,r&&(h=[2&h[0],r.value]),h[0]){case 0:case 1:r=h;break;case 4:return e.label++,{value:h[1],done:!1};case 5:e.label++,s=h[1],h=[0];continue;case 7:h=e.ops.pop(),e.trys.pop();continue;default:if(!(r=(r=e.trys).length>0&&r[r.length-1])&&(6===h[0]||2===h[0])){e=0;continue}if(3===h[0]&&(!r||h[1]>r[0]&&h[1]<r[3])){e.label=h[1];break}if(6===h[0]&&e.label<r[1]){e.label=r[1],r=h;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(h);break}r[2]&&e.ops.pop(),e.trys.pop();continue}h=t.call(c,e)}catch(y){h=[6,y],s=0}finally{n=r=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,y])}}},N=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 r=arguments[t],m=0,C=r.length;m<C;m++,s++)n[s]=r[m];return n};Object.defineProperty(f,"__esModule",{value:!0}),f.SubscriptionClient=void 0;var _=typeof global<"u"?global:typeof window<"u"?window:{},p=_.WebSocket||_.MozWebSocket,u=i(25966),o=i(89473),l=i(32508),I=i(97374),g=i(18698),v=i(75147),w=i(29005),d=i(44870),M=i(64892),b=i(21239),T=function(){function c(t,e,n,s){var r=e||{},m=r.connectionCallback,C=void 0===m?void 0:m,S=r.connectionParams,h=void 0===S?{}:S,y=r.minTimeout,A=void 0===y?M.MIN_WS_TIMEOUT:y,P=r.timeout,U=void 0===P?M.WS_TIMEOUT:P,L=r.reconnect,j=void 0!==L&&L,k=r.reconnectionAttempts,W=void 0===k?1/0:k,G=r.lazy,D=void 0!==G&&G,Q=r.inactivityTimeout,B=void 0===Q?0:Q,x=r.wsOptionArguments,K=void 0===x?[]:x;if(this.wsImpl=n||p,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=s||d.GRAPHQL_WS,this.connectionCallback=C,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=A,this.wsTimeout=U,this.unsentMessagesQueue=[],this.reconnect=j,this.reconnecting=!1,this.reconnectionAttempts=W,this.lazy=!!D,this.inactivityTimeout=B,this.closedByUser=!1,this.backoff=new u({jitter:.5}),this.eventEmitter=new o.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),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,b.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,m,n=this.getObserver.bind(this),s=this.executeOperation.bind(this),r=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[w.default]=function(){return this},e.subscribe=function(C,S,h){var y=n(C,S,h);return m=s(t,function(A,P){null===A&&null===P?y.complete&&y.complete():A?y.error&&y.error(A[0]):y.next&&y.next(P)}),{unsubscribe:function(){m&&(r(m),m=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 m,C,S;m=N(e.middlewares),C=e,(S=function(h){if(h)s(h);else if(m.length>0){var y=m.shift();y&&y.applyMiddleware.apply(C,[t,S])}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(r){n.checkOperationOptions(r,e),n.operations[s]&&(n.operations[s]={options:r,handler:e},n.sendMessage(s,b.default.GQL_START,r))}).catch(function(r){n.unsubscribe(s),e(n.formatErrors(r))}),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 u({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,r=t.operationName;if(!n)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!l.default(n)&&!v.getOperationAST(n,r)||r&&!l.default(r)||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?a(a({},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,b.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,N([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return E(e,void 0,void 0,function(){var n,s;return R(this,function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return s=r.sent(),this.sendMessage(void 0,b.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===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case b.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 b.default.GQL_COMPLETE:var s=this.operations[n].handler;delete this.operations[n],s.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case b.default.GQL_DATA:var r=e.payload.errors?a(a({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,r);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var m=typeof this.wasKeepAliveReceived>"u";this.wasKeepAliveReceived=!0,m&&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,b.default.GQL_STOP,void 0))},c}();f.SubscriptionClient=T},64892:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WS_TIMEOUT=f.MIN_WS_TIMEOUT=void 0,f.MIN_WS_TIMEOUT=1e3,f.WS_TIMEOUT=3e4},21239:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});var i=function(){function a(){throw new Error("Static Class")}return a.GQL_CONNECTION_INIT="connection_init",a.GQL_CONNECTION_ACK="connection_ack",a.GQL_CONNECTION_ERROR="connection_error",a.GQL_CONNECTION_KEEP_ALIVE="ka",a.GQL_CONNECTION_TERMINATE="connection_terminate",a.GQL_START="start",a.GQL_DATA="data",a.GQL_ERROR="error",a.GQL_COMPLETE="complete",a.GQL_STOP="stop",a.SUBSCRIPTION_START="subscription_start",a.SUBSCRIPTION_DATA="subscription_data",a.SUBSCRIPTION_SUCCESS="subscription_success",a.SUBSCRIPTION_FAIL="subscription_fail",a.SUBSCRIPTION_END="subscription_end",a.INIT="init",a.INIT_SUCCESS="init_success",a.INIT_FAIL="init_fail",a.KEEP_ALIVE="keepalive",a}();f.default=i},44870:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GRAPHQL_SUBSCRIPTIONS=f.GRAPHQL_WS=void 0,f.GRAPHQL_WS="graphql-ws",f.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},97374:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=function i(a){return null!==a&&"object"==typeof a}},32508:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=function i(a){return"string"==typeof a}},29005:(O,f,i)=>{"use strict";i.r(f),i.d(f,{default:()=>N}),O=i.hmd(O);const N=function a(_){var p,u=_.Symbol;return"function"==typeof u?u.observable?p=u.observable:(p=u("observable"),u.observable=p):p="@@observable",p}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:O)},8883:(O,f,i)=>{"use strict";i.r(f),i.d(f,{WebsocketRequestHandler:()=>p});var a=i(35121),E=i(38821),R=i(6049),_=i(19746);class p{onConnected(o,l,I){if(l)return console.log("Subscription connection error",l),void o.error(l);console.log("Connected subscription.")}handle(o){return new E.c(l=>{if(this.client=new R.SubscriptionClient(o.url,{reconnect:!0,connectionParams:o.additionalParams,connectionCallback:(v,w)=>{this.onConnected(l,v,w)}}),!this.client)throw new Error("Could not create WS client!");const I=Date.now(),g=this.client.request({query:o.query,variables:o.variables,operationName:o.selectedOperation??void 0}).subscribe((0,_.G)(l,o.url,I));return this.cleanup=g.unsubscribe,()=>{this.destroy()}})}destroy(){var o=this;return(0,a.A)(function*(){o.cleanup?.(),o.cleanup=void 0,o.client?.unsubscribeAll(),o.client?.close(),o.client=void 0})()}}}}]);
4
+ //# sourceMappingURL=883.js.map
5
+ //# debugId=a37f799b-483d-5e43-8eb1-29230de70792
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5c598bb5-367c-50e1-8f77-d10d4a58c075")}catch(e){}}();
3
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[960],{26960:(pe,J,I)=>{I.r(J),I.d(J,{GraphQLWsRequestHandler:()=>ae});var g=I(35121),Z=I(38821);const T=Object.prototype.hasOwnProperty;function x(e){return"object"==typeof e&&null!==e}function N(e,n){return T.call(e,n)}function W(e,n){return T.call(e,n)&&x(e[n])}function S(e,n){return T.call(e,n)&&"string"==typeof e[n]}function $(e,n){return e.length<124?e:n}var p=function(e){return e[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",e}(p||{}),c=function(e){return e.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",e}(c||{});function B(e){if(x(e)){if(!S(e,"type"))return!1;switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:return!N(e,"payload")||void 0===e.payload||x(e.payload);case c.Subscribe:return S(e,"id")&&W(e,"payload")&&(!N(e.payload,"operationName")||null==e.payload.operationName||"string"==typeof e.payload.operationName)&&S(e.payload,"query")&&(!N(e.payload,"variables")||null==e.payload.variables||W(e.payload,"variables"))&&(!N(e.payload,"extensions")||null==e.payload.extensions||W(e.payload,"extensions"));case c.Next:return S(e,"id")&&W(e,"payload");case c.Error:return S(e,"id")&&function _(e){return Array.isArray(e)&&e.length>0&&e.every(n=>"message"in n)}(e.payload);case c.Complete:return S(e,"id");default:return!1}}return!1}function O(e,n){if(!B(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}var ie=I(19746);class ae{handle(n){return new Z.c(y=>{if(this.client=function te(e){const{url:n,connectionParams:y,lazy:F=!0,onNonLazyError:w=console.error,lazyCloseTimeout:M=0,keepAlive:v=0,disablePong:se,connectionAckWaitTimeout:D=0,retryAttempts:C=5,retryWait:ce=function(){var t=(0,g.A)(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:q,on:r,webSocketImpl:Q,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:H,jsonMessageReviver:de}=e;let A;if(Q){if(!function oe(e){return"function"==typeof e&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}(Q))throw new Error("Invalid WebSocket implementation provided");A=Q}else typeof WebSocket<"u"?A=WebSocket:typeof global<"u"?A=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(A=window.WebSocket||window.MozWebSocket);if(!A)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const P=A,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 K(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,V=!1;function X(){return j.apply(this,arguments)}function j(){return j=(0,g.A)(function*(){const[t,l]=yield m??(m=new Promise((a,b)=>(0,g.A)(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,"graphql-transport-ws");let E,R;function z(){isFinite(v)&&v>0&&(clearTimeout(R),R=setTimeout(()=>{i.readyState===P.OPEN&&(i.send(O({type:c.Ping})),f.emit("ping",!1,void 0))},v))}K(u=>{m=void 0,clearTimeout(E),clearTimeout(R),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.A)(function*(){try{f.emit("opened",i);const u="function"==typeof y?yield y():y;if(i.readyState!==P.OPEN)return;i.send(O(u?{type:c.ConnectionInit,payload:u}:{type:c.ConnectionInit},H)),isFinite(D)&&D>0&&(E=setTimeout(()=>{i.close(p.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},D)),z()}catch(u){f.emit("error",u),i.close(p.InternalClientError,$(u instanceof Error?u.message:new Error(u).message,"Internal client error"))}});let k=!1;i.onmessage=({data:u})=>{try{const d=function ne(e,n){if(B(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const y=JSON.parse(e,n);if(!B(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?z():se||(i.send(O(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((we,fe)=>K(fe))])}catch(d){i.onmessage=null,f.emit("error",d),i.close(p.BadResponse,$(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(M)&&M>0?setTimeout(()=>{!h&&t.readyState===P.OPEN&&a()},M):a()}}),l])]}),j.apply(this,arguments)}function Y(t){if(L(t)&&(function re(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(V)return!1;if(L(t)&&1e3===t.code)return h>0;if(!C||G>=C||!le(t)||q?.(t))throw t;return U=!0}return F||(0,g.A)(function*(){for(h++;;)try{const[,,t]=yield X();yield t}catch(t){try{if(!Y(t))return}catch(l){return w?.(l)}}})(),{on:f.on,subscribe(t,l){const s=ue();let o=!1,a=!1,b=()=>{h--,o=!0};return(0,g.A)(function*(){for(h++;;)try{const[i,E,R]=yield X();if(o)return E();const z=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(O({id:s,type:c.Subscribe,payload:t},H)),b=()=>{!o&&i.readyState===P.OPEN&&i.send(O({id:s,type:c.Complete},H)),h--,o=!0,E()},void(yield R.finally(z))}catch(i){if(!Y(i))return}})().then(()=>{a||l.complete()}).catch(i=>{l.error(i)}),()=>{o||b()}},dispose:()=>(0,g.A)(function*(){if(V=!0,m){const[t]=yield m;t.close(1e3,"Normal Closure")}})(),terminate(){m&&f.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}({url:n.url,connectionParams:n.additionalParams,lazy:!1,onNonLazyError:w=>{y.error(w)},on:{error:w=>{y.error(w)}}}),!this.client)throw new Error("Could not create GraphQL WS client!");const F=Date.now();return this.cleanup=this.client.subscribe({query:n.query,variables:n.variables,operationName:n.selectedOperation??void 0,extensions:n.extensions},(0,ie.G)(y,n.url,F)),()=>{this.destroy()}})}destroy(){var n=this;return(0,g.A)(function*(){try{n.cleanup?.(),n.cleanup=void 0,yield n.client?.dispose(),n.client=void 0}catch(y){console.error(y)}})()}}}}]);
4
+ //# sourceMappingURL=960.js.map
5
+ //# debugId=5c598bb5-367c-50e1-8f77-d10d4a58c075
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b0ff6784-3796-534c-9c44-62472d428249")}catch(e){}}();
3
- (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[949],{83949:(ci,Pt,Ie)=>{Ie.r(Pt),Ie.d(Pt,{__debug:()=>Qu,check:()=>Xu,default:()=>oi,doc:()=>bt,format:()=>St,formatWithCursor:()=>xt,getSupportInfo:()=>Zu,util:()=>Bt,version:()=>Yu});var A=Ie(35121),er=Object.create,be=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertyNames,rr=Object.getPrototypeOf,nr=Object.prototype.hasOwnProperty,Tt=e=>{throw TypeError(e)},he=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Be=(e,t)=>{for(var u in t)be(e,u,{get:t[u],enumerable:!0})},It=(e,t,u,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of ur(t))!nr.call(e,n)&&n!==u&&be(e,n,{get:()=>t[n],enumerable:!(r=tr(t,n))||r.enumerable});return e},me=(e,t,u)=>(u=null!=e?er(rr(e)):{},It(!t&&e&&e.__esModule?u:be(u,"default",{value:e,enumerable:!0}),e)),ge=(e,t,u)=>(((e,t)=>{t.has(e)||Tt("Cannot access private method")})(e,t),u),sr=he(e=>{function t(){}function u(r,n,D,i,o){for(var l,a=[];n;)a.push(n),l=n.previousComponent,delete n.previousComponent,n=l;a.reverse();for(var s=0,p=a.length,c=0,F=0;s<p;s++){var f=a[s];if(f.removed){if(f.value=r.join(i.slice(F,F+f.count)),F+=f.count,s&&a[s-1].added){var d=a[s-1];a[s-1]=a[s],a[s]=d}}else{if(!f.added&&o){var h=D.slice(c,c+f.count);h=h.map(function(g,y){var C=i[F+y];return C.length>g.length?C:g}),f.value=r.join(h)}else f.value=r.join(D.slice(c,c+f.count));c+=f.count,f.added||(F+=f.count)}}var m=a[p-1];return p>1&&"string"==typeof m.value&&(m.added||m.removed)&&r.equals("",m.value)&&(a[p-2].value+=m.value,a.pop()),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(r,n){var D,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"==typeof i&&(o=i,i={}),this.options=i;var a=this;function l(v){return o?(setTimeout(function(){o(void 0,v)},0),!0):v}r=this.castInput(r),n=this.castInput(n),r=this.removeEmpty(this.tokenize(r));var s=(n=this.removeEmpty(this.tokenize(n))).length,p=r.length,c=1,F=s+p;i.maxEditLength&&(F=Math.min(F,i.maxEditLength));var f=null!==(D=i.timeout)&&void 0!==D?D:1/0,d=Date.now()+f,h=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(h[0],n,r,0);if(h[0].oldPos+1>=p&&m+1>=s)return l([{value:this.join(n),count:n.length}]);var g=-1/0,y=1/0;function C(){for(var v=Math.max(g,-c);v<=Math.min(y,c);v+=2){var b=void 0,B=h[v-1],O=h[v+1];B&&(h[v-1]=void 0);var Z=!1;if(O){var Q=O.oldPos-v;Z=O&&0<=Q&&Q<s}var P=B&&B.oldPos+1<p;if(Z||P){if(b=!P||Z&&B.oldPos+1<O.oldPos?a.addToPath(O,!0,void 0,0):a.addToPath(B,void 0,!0,1),m=a.extractCommon(b,n,r,v),b.oldPos+1>=p&&m+1>=s)return l(u(a,b.lastComponent,n,r,a.useLongestToken));h[v]=b,b.oldPos+1>=p&&(y=Math.min(y,v-1)),m+1>=s&&(g=Math.max(g,v+1))}else h[v]=void 0}c++}if(o)!function v(){setTimeout(function(){if(c>F||Date.now()>d)return o();C()||v()},0)}();else for(;c<=F&&Date.now()<=d;){var E=C();if(E)return E}},addToPath:function(r,n,D,i){var o=r.lastComponent;return o&&o.added===n&&o.removed===D?{oldPos:r.oldPos+i,lastComponent:{count:o.count+1,added:n,removed:D,previousComponent:o.previousComponent}}:{oldPos:r.oldPos+i,lastComponent:{count:1,added:n,removed:D,previousComponent:o}}},extractCommon:function(r,n,D,i){for(var o=n.length,a=D.length,l=r.oldPos,s=l-i,p=0;s+1<o&&l+1<a&&this.equals(n[s+1],D[l+1]);)s++,l++,p++;return p&&(r.lastComponent={count:p,previousComponent:r.lastComponent}),r.oldPos=l,s},equals:function(r,n){return this.options.comparator?this.options.comparator(r,n):r===n||this.options.ignoreCase&&r.toLowerCase()===n.toLowerCase()},removeEmpty:function(r){for(var n=[],D=0;D<r.length;D++)r[D]&&n.push(r[D]);return n},castInput:function(r){return r},tokenize:function(r){return r.split("")},join:function(r){return r.join("")}}}),lr=he(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=function n(D,i,o){return r.diff(D,i,o)},e.arrayDiff=void 0;var r=new(function u(D){return D&&D.__esModule?D:{default:D}}(sr()).default);e.arrayDiff=r,r.tokenize=function(D){return D.slice()},r.join=r.removeEmpty=function(D){return D}}),$e=he((e,t)=>{var u=new Proxy(String,{get:()=>u});t.exports=u}),$t={};Be($t,{default:()=>Mt,shouldHighlight:()=>Lt});var Lt,Mt,e,t,cr=(e=()=>{Lt=()=>!1,Mt=String},()=>(e&&(t=e(e=0)),t)),fr=he((e,t)=>{var u=String,r=function(){return{isColorSupported:!1,reset:u,bold:u,dim:u,italic:u,underline:u,inverse:u,hidden:u,strikethrough:u,black:u,red:u,green:u,yellow:u,blue:u,magenta:u,cyan:u,white:u,gray:u,bgBlack:u,bgRed:u,bgGreen:u,bgYellow:u,bgBlue:u,bgMagenta:u,bgCyan:u,bgWhite:u}};t.exports=r(),t.exports.createColors=r}),dr=he(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=F,e.default=function f(d,h,m,g={}){if(!l){l=!0;let y="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(y).name="DeprecationWarning",console.warn(new Error(y))}return F(d,{start:{column:m=Math.max(m,0),line:h}},g)};var t=(cr(),(e=>It(be({},"__esModule",{value:!0}),e))($t)),u=function n(d,h){if(!h&&d&&d.__esModule)return d;if(null===d||"object"!=typeof d&&"function"!=typeof d)return{default:d};var m=r(h);if(m&&m.has(d))return m.get(d);var g={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in d)if("default"!==C&&{}.hasOwnProperty.call(d,C)){var E=y?Object.getOwnPropertyDescriptor(d,C):null;E&&(E.get||E.set)?Object.defineProperty(g,C,E):g[C]=d[C]}return g.default=d,m&&m.set(d,g),g}(fr(),!0);function r(d){if("function"!=typeof WeakMap)return null;var h=new WeakMap,m=new WeakMap;return(r=function(g){return g?m:h})(d)}var o,D=u.default,i=(d,h)=>m=>d(h(m)),l=!1,p=/\r\n|[\n\r\u2028\u2029]/;function F(d,h,m={}){let g=(m.highlightCode||m.forceColor)&&(0,t.shouldHighlight)(m),y=function a(d){return d?(null!=o||(o=(0,u.createColors)(!0)),o):D}(m.forceColor),C=function s(d){return{gutter:d.gray,marker:i(d.red,d.bold),message:i(d.red,d.bold)}}(y),E=(_,T)=>g?_(T):T,v=d.split(p),{start:b,end:B,markerLines:O}=function c(d,h,m){let g=Object.assign({column:0,line:-1},d.start),y=Object.assign({},g,d.end),{linesAbove:C=2,linesBelow:E=3}=m||{},v=g.line,b=g.column,B=y.line,O=y.column,Z=Math.max(v-(C+1),0),Q=Math.min(h.length,B+E);-1===v&&(Z=0),-1===B&&(Q=h.length);let P=B-v,_={};if(P)for(let T=0;T<=P;T++){let W=T+v;_[W]=!b||(0===T?[b,h[W-1].length-b+1]:T===P?[0,O]:[0,h[W-T].length])}else _[v]=b===O?!b||[b,0]:[b,O-b];return{start:Z,end:Q,markerLines:_}}(h,v,m),Z=h.start&&"number"==typeof h.start.column,Q=String(B).length,P=(g?(0,t.default)(d,m):d).split(p,B).slice(b,B).map((_,T)=>{let W=b+1+T,ae=` ${` ${W}`.slice(-Q)} |`,Te=O[W],ai=!O[W+1];if(Te){let jt="";if(Array.isArray(Te)){let si=_.slice(0,Math.max(Te[0]-1,0)).replace(/[^\t]/g," "),li=Te[1]||1;jt=["\n ",E(C.gutter,ae.replace(/\d/g," "))," ",si,E(C.marker,"^").repeat(li)].join(""),ai&&m.message&&(jt+=" "+E(C.message,m.message))}return[E(C.marker,">"),E(C.gutter,ae),_.length>0?` ${_}`:"",jt].join("")}return` ${E(C.gutter,ae)}${_.length>0?` ${_}`:""}`}).join("\n");return m.message&&!Z&&(P=`${" ".repeat(Q+1)}${m.message}\n${P}`),g?y.reset(P):P}}),Wt={};Be(Wt,{__debug:()=>Qu,check:()=>Xu,doc:()=>bt,format:()=>St,formatWithCursor:()=>xt,getSupportInfo:()=>Zu,util:()=>Bt,version:()=>Yu});var Ae=(e,t,u,r)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(u,r):u.global?t.replace(u,r):t.split(u).join(r)},Fr=me(lr(),1);function Le(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function Rt(e,t){let u;switch(t){case"\n":u=/\n/g;break;case"\r":u=/\r/g;break;case"\r\n":u=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(u);return r?r.length:0}var ee="string",R="array",te="cursor",V="indent",z="align",q="trim",x="group",I="fill",N="if-break",J="indent-if-break",U="line-suffix",G="line-suffix-boundary",w="line",$="label",j="break-parent",Vt=new Set([te,V,z,q,x,I,N,J,U,G,w,$,j]),ue=function gr(e){if("string"==typeof e)return ee;if(Array.isArray(e))return R;if(!e)return;let{type:t}=e;return Vt.has(t)?t:void 0};var yr=class extends Error{name="InvalidDocError";constructor(e){super(function Er(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(ue(e))throw new Error("doc is valid.");let u=Object.prototype.toString.call(e);if("[object Object]"!==u)return`Unexpected doc '${u}'.`;let r=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...Vt].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${r}.`}(e)),this.doc=e}},se=yr,zt={},Me=function vr(e,t,u,r){let n=[e];for(;n.length>0;){let D=n.pop();if(D===zt){u(n.pop());continue}u&&n.push(D,zt);let i=ue(D);if(!i)throw new se(D);if(!1!==t?.(D))switch(i){case R:case I:{let o=i===R?D:D.parts;for(let l=o.length-1;l>=0;--l)n.push(o[l]);break}case N:n.push(D.flatContents,D.breakContents);break;case x:if(r&&D.expandedStates)for(let a=D.expandedStates.length-1;a>=0;--a)n.push(D.expandedStates[a]);else n.push(D.contents);break;case z:case V:case J:case $:case U:n.push(D.contents);break;case ee:case te:case q:case G:case w:case j:break;default:throw new se(D)}}},qt=()=>{},L=qt,We=qt;function ke(e){return L(e),{type:V,contents:e}}function le(e,t){return L(t),{type:z,contents:t,n:e}}function Jt(e,t={}){return L(e),We(t.expandedStates,!0),{type:x,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ut(e){return We(e),{type:I,parts:e}}function Re(e){return L(e),{type:U,contents:e}}var xr={type:G},we={type:j},Sr={type:q},Ve={type:w,hard:!0},Gt={type:w,hard:!0,literal:!0},Ht={type:w},Or={type:w,soft:!0},re=[Ve,we],Kt=[Gt,we],ze={type:te};function Yt(e,t){L(e),We(t);let u=[];for(let r=0;r<t.length;r++)0!==r&&u.push(e),u.push(t[r]);return u}function Xt(e,t,u){L(e);let r=e;if(t>0){for(let n=0;n<Math.floor(t/u);++n)r=ke(r);r=le(t%u,r),r=le(Number.NEGATIVE_INFINITY,r)}return r}function H(e){var t;if(!e)return"";if(Array.isArray(e)){let u=[];for(let r of e)if(Array.isArray(r))u.push(...H(r));else{let n=H(r);""!==n&&u.push(n)}return u}return e.type===N?{...e,breakContents:H(e.breakContents),flatContents:H(e.flatContents)}:e.type===x?{...e,contents:H(e.contents),expandedStates:null==(t=e.expandedStates)?void 0:t.map(H)}:e.type===I?{type:"fill",parts:e.parts.map(H)}:e.contents?{...e,contents:H(e.contents)}:e}var k=(e,t,u)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[u<0?t.length+u:u]:t.at(u)},Lr=e=>!(function Ir(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}(e)||function $r(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)),Mr=/[^\x20-\x7F]/,qe=function Wr(e){if(!e)return 0;if(!Mr.test(e))return e.length;e=e.replace(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g," ");let t=0;for(let u of e){let r=u.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=Lr(r)?1:2)}return t};function _e(e,t){if("string"==typeof e)return t(e);let u=new Map;return function r(D){if(u.has(D))return u.get(D);let i=function n(D){switch(ue(D)){case R:return t(D.map(r));case I:return t({...D,parts:D.parts.map(r)});case N:return t({...D,breakContents:r(D.breakContents),flatContents:r(D.flatContents)});case x:{let{expandedStates:i,contents:o}=D;return i?(i=i.map(r),o=i[0]):o=r(o),t({...D,contents:o,expandedStates:i})}case z:case V:case J:case $:case U:return t({...D,contents:r(D.contents)});case ee:case te:case q:case G:case w:case j:return t(D);default:throw new se(D)}}(D);return u.set(D,i),i}(e)}function Je(e,t,u){let r=u,n=!1;return Me(e,function D(i){if(n)return!1;let o=t(i);void 0!==o&&(n=!0,r=o)}),r}function Rr(e){if(e.type===x&&e.break||e.type===w&&e.hard||e.type===j)return!0}function Zt(e){if(e.length>0){let t=k(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function qr(e){return e.type!==w||e.hard?e.type===N?e.flatContents:e:e.soft?"":" "}function Qt(e){for(e=[...e];e.length>=2&&k(!1,e,-2).type===w&&k(!1,e,-1).type===j;)e.length-=2;if(e.length>0){let t=Ce(k(!1,e,-1));e[e.length-1]=t}return e}function Ce(e){switch(ue(e)){case V:case J:case x:case U:case $:{let t=Ce(e.contents);return{...e,contents:t}}case N:return{...e,breakContents:Ce(e.breakContents),flatContents:Ce(e.flatContents)};case I:return{...e,parts:Qt(e.parts)};case R:return Qt(e);case ee:return e.replace(/[\n\r]*$/,"");case z:case te:case q:case G:case w:case j:break;default:throw new se(e)}return e}function eu(e){return Ce(function Gr(e){return _e(e,t=>function Ur(e){switch(ue(e)){case I:if(e.parts.every(t=>""===t))return"";break;case x:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===x&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case z:case V:case J:case U:if(!e.contents)return"";break;case N:if(!e.flatContents&&!e.breakContents)return"";break;case R:{let t=[];for(let u of e){if(!u)continue;let[r,...n]=Array.isArray(u)?u:[u];"string"==typeof r&&"string"==typeof k(!1,t,-1)?t[t.length-1]+=r:t.push(r),t.push(...n)}return 0===t.length?"":1===t.length?t[0]:t}case ee:case te:case q:case G:case w:case $:case j:break;default:throw new se(e)}return e}(t))}(e))}function Kr(e){if(e.type===w)return!0}function tu(e,t){return e.type===$?{...e,contents:t(e.contents)}:t(e)}var S=Symbol("MODE_BREAK"),M=Symbol("MODE_FLAT"),Ee=Symbol("cursor");function Xr(e,t){return Ue(e,{type:"indent"},t)}function Zr(e,t,u){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?Ue(e,{type:"dedent"},u):t?"root"===t.type?{...e,root:e}:Ue(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},u):e}function Ue(e,t,u){let r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],n="",D=0,i=0,o=0;for(let f of r)switch(f.type){case"indent":s(),u.useTabs?a(1):l(u.tabWidth);break;case"stringAlign":s(),n+=f.n,D+=f.n.length;break;case"numberAlign":i+=1,o+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return c(),{...e,value:n,length:D,queue:r};function a(f){n+="\t".repeat(f),D+=u.tabWidth*f}function l(f){n+=" ".repeat(f),D+=f}function s(){u.useTabs?function p(){i>0&&a(i),F()}():c()}function c(){o>0&&l(o),F()}function F(){i=0,o=0}}function Ge(e){let t=0,u=0,r=e.length;e:for(;r--;){let n=e[r];if(n!==Ee)for(let D=n.length-1;D>=0;D--){let i=n[D];if(" "!==i&&"\t"!==i){e[r]=n.slice(0,D+1);break e}t++}else u++}if(t>0||u>0)for(e.length=r+1;u-- >0;)e.push(Ee);return t}function xe(e,t,u,r,n,D){if(u===Number.POSITIVE_INFINITY)return!0;let i=t.length,o=[e],a=[];for(;u>=0;){if(0===o.length){if(0===i)return!0;o.push(t[--i]);continue}let{mode:l,doc:s}=o.pop(),p=ue(s);switch(p){case ee:a.push(s),u-=qe(s);break;case R:case I:{let c=p===R?s:s.parts;for(let F=c.length-1;F>=0;F--)o.push({mode:l,doc:c[F]});break}case V:case z:case J:case $:o.push({mode:l,doc:s.contents});break;case q:u+=Ge(a);break;case x:{if(D&&s.break)return!1;let c=s.break?S:l,F=s.expandedStates&&c===S?k(!1,s.expandedStates,-1):s.contents;o.push({mode:c,doc:F});break}case N:{let c=(s.groupId?n[s.groupId]||M:l)===S?s.breakContents:s.flatContents;c&&o.push({mode:l,doc:c});break}case w:if(l===S||s.hard)return!0;s.soft||(a.push(" "),u--);break;case U:r=!0;break;case G:if(r)return!1}}return!1}function Se(e,t){let u={},r=t.printWidth,n=Le(t.endOfLine),D=0,i=[{ind:{value:"",length:0,queue:[]},mode:S,doc:e}],o=[],a=!1,l=[],s=0;for(function zr(e){let t=new Set,u=[];Me(e,function r(D){if(D.type===j&&Zt(u),D.type===x){if(u.push(D),t.has(D))return!1;t.add(D)}},function n(D){D.type===x&&u.pop().break&&Zt(u)},!0)}(e);i.length>0;){let{ind:c,mode:F,doc:f}=i.pop();switch(ue(f)){case ee:{let d="\n"!==n?Ae(!1,f,"\n",n):f;o.push(d),i.length>0&&(D+=qe(d));break}case R:for(let d=f.length-1;d>=0;d--)i.push({ind:c,mode:F,doc:f[d]});break;case te:if(s>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ee),s++;break;case V:i.push({ind:Xr(c,t),mode:F,doc:f.contents});break;case z:i.push({ind:Zr(c,f.n,t),mode:F,doc:f.contents});break;case q:D-=Ge(o);break;case x:switch(F){case M:if(!a){i.push({ind:c,mode:f.break?S:M,doc:f.contents});break}case S:{a=!1;let d={ind:c,mode:M,doc:f.contents},h=r-D,m=l.length>0;if(!f.break&&xe(d,i,h,m,u))i.push(d);else if(f.expandedStates){let g=k(!1,f.expandedStates,-1);if(f.break){i.push({ind:c,mode:S,doc:g});break}for(let y=1;y<f.expandedStates.length+1;y++){if(y>=f.expandedStates.length){i.push({ind:c,mode:S,doc:g});break}{let E={ind:c,mode:M,doc:f.expandedStates[y]};if(xe(E,i,h,m,u)){i.push(E);break}}}}else i.push({ind:c,mode:S,doc:f.contents});break}}f.id&&(u[f.id]=k(!1,i,-1).mode);break;case I:{let d=r-D,{parts:h}=f;if(0===h.length)break;let[m,g]=h,y={ind:c,mode:M,doc:m},C={ind:c,mode:S,doc:m},E=xe(y,[],d,l.length>0,u,!0);if(1===h.length){i.push(E?y:C);break}let v={ind:c,mode:M,doc:g},b={ind:c,mode:S,doc:g};if(2===h.length){E?i.push(v,y):i.push(b,C);break}h.splice(0,2);let B={ind:c,mode:F,doc:Ut(h)};xe({ind:c,mode:M,doc:[m,g,h[0]]},[],d,l.length>0,u,!0)?i.push(B,v,y):i.push(B,b,E?y:C);break}case N:case J:{let d=f.groupId?u[f.groupId]:F;if(d===S){let h=f.type===N?f.breakContents:f.negate?f.contents:ke(f.contents);h&&i.push({ind:c,mode:F,doc:h})}if(d===M){let h=f.type===N?f.flatContents:f.negate?ke(f.contents):f.contents;h&&i.push({ind:c,mode:F,doc:h})}break}case U:l.push({ind:c,mode:F,doc:f.contents});break;case G:l.length>0&&i.push({ind:c,mode:F,doc:Ve});break;case w:switch(F){case M:if(!f.hard){f.soft||(o.push(" "),D+=1);break}a=!0;case S:if(l.length>0){i.push({ind:c,mode:F,doc:f},...l.reverse()),l.length=0;break}f.literal?c.root?(o.push(n,c.root.value),D=c.root.length):(o.push(n),D=0):(D-=Ge(o),o.push(n+c.value),D=c.length)}break;case $:i.push({ind:c,mode:F,doc:f.contents});break;case j:break;default:throw new se(f)}0===i.length&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let p=o.indexOf(Ee);if(-1!==p){let c=o.indexOf(Ee,p+1),F=o.slice(0,p).join(""),f=o.slice(p+1,c).join("");return{formatted:F+f+o.slice(c+1).join(""),cursorNodeStart:F.length,cursorNodeText:f}}return{formatted:o.join("")}}var ne,Ke,Oe,He=function Qr(e,t,u=0){let r=0;for(let n=u;n<e.length;++n)"\t"===e[n]?r=r+t-r%t:r++;return r};ne=new WeakSet,Ke=function(e){let{stack:t}=this;for(let u=t.length-1;u>=0;u-=2)if(!Array.isArray(t[u])&&--e<0)return u;return-1},Oe=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let u=e[t];Array.isArray(u)||(yield u)}};var tn=class{constructor(e){((e,t)=>{t.has(e)?Tt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,ne),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return k(!1,e,null===t?-2:-4)??null}get index(){return null===this.siblings?null:k(!1,this.stack,-2)}get node(){return k(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return null!==this.siblings}get siblings(){let{stack:e}=this,t=k(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return null===e?null:e[this.index+1]}get previous(){let{siblings:e}=this;return null===e?null:e[this.index-1]}get isFirst(){return 0===this.index}get isLast(){let{siblings:e,index:t}=this;return null!==e&&t===e.length-1}get isRoot(){return 1===this.stack.length}get root(){return this.stack[0]}get ancestors(){return[...ge(this,ne,Oe).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?k(!1,e,-2):null}getValue(){return k(!1,this.stack,-1)}getNode(e=0){let t=ge(this,ne,Ke).call(this,e);return-1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:u}=this,{length:r}=u,n=k(!1,u,-1);for(let D of t)n=n[D],u.push(D,n);try{return e(this)}finally{u.length=r}}callParent(e,t=0){let u=ge(this,ne,Ke).call(this,t+1),r=this.stack.splice(u+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:u}=this,{length:r}=u,n=k(!1,u,-1);for(let D of t)n=n[D],u.push(D,n);try{for(let D=0;D<n.length;++D)u.push(D,n[D]),e(this,D,n),u.length-=2}finally{u.length=r}}map(e,...t){let u=[];return this.each((r,n,D)=>{u[n]=e(r,n,D)},...t),u}match(...e){let t=this.stack.length-1,u=null,r=this.stack[t--];for(let n of e){if(void 0===r)return!1;let D=null;if("number"==typeof u&&(D=u,u=this.stack[t--],r=this.stack[t--]),n&&!n(r,u,D))return!1;u=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of ge(this,ne,Oe).call(this))if(e(t))return t}hasAncestor(e){for(let t of ge(this,ne,Oe).call(this))if(e(t))return!0;return!1}},ru=new Proxy(()=>{},{get:()=>ru}),Ye=ru,rn=function un(e){return null!==e&&"object"==typeof e};function*nu(e,t){let{getVisitorKeys:u,filter:r=()=>!0}=t,n=D=>rn(D)&&r(D);for(let D of u(e)){let i=e[D];if(Array.isArray(i))for(let o of i)n(o)&&(yield o);else n(i)&&(yield i)}}function ye(e){return(t,u,r)=>{let n=!(null==r||!r.backwards);if(!1===u)return!1;let{length:D}=t,i=u;for(;i>=0&&i<D;){let o=t.charAt(i);if(e instanceof RegExp){if(!e.test(o))return i}else if(!e.includes(o))return i;n?i--:i++}return(-1===i||i===D)&&i}}var Dn=ye(/\s/),K=ye(" \t"),Du=ye(",; \t"),iu=ye(/[^\n\r]/),De=function on(e,t,u){let r=!(null==u||!u.backwards);if(!1===t)return!1;let n=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===n)return t-2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return t-1}else{if("\r"===n&&"\n"===e.charAt(t+1))return t+2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return t+1}return t},Y=function an(e,t,u={}){let r=K(e,u.backwards?t-1:t,u);return r!==De(e,r,u)},ln=function sn(e){return Array.isArray(e)&&e.length>0},ou=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),cn=e=>Object.keys(e).filter(t=>!ou.has(t)),Ne=function fn(e){return e?t=>e(t,ou):cn};function Xe(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function dn(e){let t=e.type||e.kind||"(unknown type)",u=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return u.length>20&&(u=u.slice(0,19)+"\u2026"),t+(u?" "+u:"")}(e)}function ce(e,t){t.leading=!0,t.trailing=!1,Xe(e,t)}function ie(e,t,u){t.leading=!1,t.trailing=!1,u&&(t.marker=u),Xe(e,t)}function fe(e,t){t.leading=!1,t.trailing=!0,Xe(e,t)}var Ze=new WeakMap;function Qe(e,t){if(Ze.has(e))return Ze.get(e);let{printer:{getCommentChildNodes:u,canAttachComment:r,getVisitorKeys:n},locStart:D,locEnd:i}=t;if(!r)return[];let o=(u?.(e,t)??[...nu(e,{getVisitorKeys:Ne(n)})]).flatMap(a=>r(a)?[a]:Qe(a,t));return o.sort((a,l)=>D(a)-D(l)||i(a)-i(l)),Ze.set(e,o),o}function au(e,t,u,r){let l,s,{locStart:n,locEnd:D}=u,i=n(t),o=D(t),a=Qe(e,u),p=0,c=a.length;for(;p<c;){let F=p+c>>1,f=a[F],d=n(f),h=D(f);if(d<=i&&o<=h)return au(f,t,u,f);if(h<=i)l=f,p=F+1;else{if(!(o<=d))throw new Error("Comment location overlaps with node location");s=f,c=F}}if("TemplateLiteral"===r?.type){let{quasis:F}=r,f=tt(F,t,u);l&&tt(F,l,u)!==f&&(l=null),s&&tt(F,s,u)!==f&&(s=null)}return{enclosingNode:r,precedingNode:l,followingNode:s}}var et=()=>!1,su=e=>!/[\S\n\u2028\u2029]/.test(e);function Fn(e,t,u,r){let{comment:n,precedingNode:D}=u[r],{locStart:i,locEnd:o}=t,a=i(n);if(D)for(let l=r-1;l>=0;l--){let{comment:s,precedingNode:p}=u[l];if(p!==D||!su(e.slice(o(s),a)))break;a=i(s)}return Y(e,a,{backwards:!0})}function hn(e,t,u,r){let{comment:n,followingNode:D}=u[r],{locStart:i,locEnd:o}=t,a=o(n);if(D)for(let l=r+1;l<u.length;l++){let{comment:s,followingNode:p}=u[l];if(p!==D||!su(e.slice(a,i(s))))break;a=o(s)}return Y(e,a)}function lu(e,t){var u,r;let n=e.length;if(0===n)return;let a,{precedingNode:D,followingNode:i}=e[0],o=t.locStart(i);for(a=n;a>0;--a){let{comment:l,precedingNode:s,followingNode:p}=e[a-1];Ye.strictEqual(s,D),Ye.strictEqual(p,i);let c=t.originalText.slice(t.locEnd(l),o);if(!((null==(r=(u=t.printer).isGap)?void 0:r.call(u,c,t))??/^[\s(]*$/.test(c)))break;o=t.locStart(l)}for(let[l,{comment:s}]of e.entries())l<a?fe(D,s):ce(i,s);for(let l of[D,i])l.comments&&l.comments.length>1&&l.comments.sort((s,p)=>t.locStart(s)-t.locStart(p));e.length=0}function tt(e,t,u){let r=u.locStart(t)-1;for(let n=1;n<e.length;++n)if(r<u.locStart(e[n]))return n-1;return 0}var ut=function mn(e,t){let u=t-1;return u=K(e,u,{backwards:!0}),u=De(e,u,{backwards:!0}),u=K(e,u,{backwards:!0}),u!==De(e,u,{backwards:!0})};function cu(e,t){return e.node.printed=!0,t.printer.printComment(e,t)}var Bn=function bn(e){return()=>{}},fu=class extends Error{name="ConfigError"},du=class extends Error{name="UndefinedParserError"},An={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:"Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:"Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:"Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function pu({plugins:e=[],showDeprecated:t=!1}={}){let u=e.flatMap(n=>n.languages??[]),r=[];for(let n of function wn(e){let t=[];for(let[u,r]of Object.entries(e)){let n={name:u,...r};Array.isArray(n.default)&&(n.default=k(!1,n.default,-1).value),t.push(n)}return t}(Object.assign({},...e.map(({options:D})=>D),An)))!t&&n.deprecated||(Array.isArray(n.choices)&&(t||(n.choices=n.choices.filter(D=>!D.deprecated)),"parser"===n.name&&(n.choices=[...n.choices,...kn(n.choices,u,e)])),n.pluginDefaults=Object.fromEntries(e.filter(D=>{var i;return void 0!==(null==(i=D.defaultOptions)?void 0:i[n.name])}).map(D=>[D.name,D.defaultOptions[n.name]])),r.push(n));return{languages:u,options:r}}function*kn(e,t,u){let r=new Set(e.map(n=>n.value));for(let n of t)if(n.parsers)for(let D of n.parsers)if(!r.has(D)){r.add(D);let i=u.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,D)),o=n.name;null!=i&&i.name&&(o+=` (plugin: ${i.name})`),yield{value:D,description:o}}}function Fu(e,t){if(!t)return;let u=(e=>String(e).split(/[/\\]/).pop())(t).toLowerCase();return e.find(({filenames:r})=>r?.some(n=>n.toLowerCase()===u))??e.find(({extensions:r})=>r?.some(n=>u.endsWith(n)))}var de={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(u=>de.value(u)).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map(u=>`${de.key(u)}: ${de.value(e[u])}`).join(", ")} }`},pair:({key:e,value:t})=>de.value({[e]:t})},hu=me($e(),1),pe=me($e(),1),mu=Symbol.for("vnopts.VALUE_NOT_EXIST"),je=Symbol.for("vnopts.VALUE_UNCHANGED"),gu=" ".repeat(2);function Cu(e,t,u,r){return[`Invalid ${pe.default.red(r.key(e))} value.`,`Expected ${pe.default.blue(u)},`,`but received ${t===mu?pe.default.gray("nothing"):pe.default.red(r.value(t))}.`].join(" ")}function Eu({text:e,list:t},u){let r=[];return e&&r.push(`- ${pe.default.blue(e)}`),t&&r.push([`- ${pe.default.blue(t.title)}:`].concat(t.values.map(n=>Eu(n,u-gu.length).replace(/^|\n/g,`$&${gu}`))).join("\n")),yu(r,u)}function yu(e,t){if(1===e.length)return e[0];let[u,r]=e,[n,D]=e.map(i=>i.split("\n",1)[0].length);return n>t&&n>D?r:u}var vu=me($e(),1),rt=[],bu=[],Bu=(e,t,{descriptor:u,logger:r,schemas:n})=>{let D=[`Ignored unknown option ${vu.default.yellow(u.pair({key:e,value:t}))}.`],i=Object.keys(n).sort().find(o=>function Pn(e,t){if(e===t)return 0;let u=e;e.length>t.length&&(e=t,t=u);let r=e.length,n=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-n);)r--,n--;let D=0;for(;D<r&&e.charCodeAt(D)===t.charCodeAt(D);)D++;if(r-=D,n-=D,0===r)return n;let i,o,a,l,s=0,p=0;for(;s<r;)bu[s]=e.charCodeAt(D+s),rt[s]=++s;for(;p<n;)for(i=t.charCodeAt(D+p),a=p++,o=p,s=0;s<r;s++)l=i===bu[s]?a:a+1,a=rt[s],o=rt[s]=a>o?l>o?o+1:l:l>a?a+1:l;return o}(e,o)<3);i&&D.push(`Did you mean ${vu.default.blue(u.key(i))}?`),r.warn(D.join(" "))},Tn=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],X=class{static create(e){return function In(e,t){let u=new e(t),r=Object.create(u);for(let n of Tn)n in t&&(r[n]=$n(t[n],u,X.prototype[n].length));return r}(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,u){return e}preprocess(e,t){return e}postprocess(e,t){return je}};function $n(e,t,u){return"function"==typeof e?(...r)=>e(...r.slice(0,u-1),t,...r.slice(u-1)):()=>e}var Ln=class extends X{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},Mn=class extends X{expected(){return"anything"}validate(){return!0}},Wn=class extends X{constructor({valueSchema:e,name:t=e.name,...u}){super({...u,name:t}),this._valueSchema=e}expected(e){let{text:t,list:u}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:u&&{title:"an array of the following values",values:[{list:u}]}}}validate(e,t){if(!Array.isArray(e))return!1;let u=[];for(let r of e){let n=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==n&&u.push(n.value)}return 0===u.length||{value:u}}deprecated(e,t){let u=[];for(let r of e){let n=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==n&&u.push(...n.map(({value:D})=>({value:[D]})))}return u}forward(e,t){let u=[];for(let r of e){let n=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);u.push(...n.map(Au))}return u}redirect(e,t){let u=[],r=[];for(let n of e){let D=t.normalizeRedirectResult(this._valueSchema.redirect(n,t),n);"remain"in D&&u.push(D.remain),r.push(...D.redirect.map(Au))}return 0===u.length?{redirect:r}:{redirect:r,remain:u}}overlap(e,t){return e.concat(t)}};function Au({from:e,to:t}){return{from:[e],to:t}}var Rn=class extends X{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function Vn(e,t){let u=Object.create(null);for(let r of e){let n=r[t];if(u[n])throw new Error(`Duplicate ${t} ${JSON.stringify(n)}`);u[n]=r}return u}function Gn(e,t){if(e===t)return 0;let u=typeof e,r=typeof t,n=["undefined","object","boolean","number","string"];return u!==r?n.indexOf(u)-n.indexOf(r):"string"!==u?Number(e)-Number(t):e.localeCompare(t)}function ku(e){return void 0===e?{}:e}function wu(e){if("string"==typeof e)return{text:e};let{text:t,list:u}=e;return function Kn(e,t){if(!e)throw new Error(t)}(void 0!==(t||u),"Unexpected `expected` result, there should be at least one field."),u?{text:t,list:{title:u.title,values:u.values.map(wu)}}:{text:t}}function _u(e,t){return!0===e||(!1===e?{value:t}:e)}function xu(e,t,u=!1){return!1!==e&&(!0===e?!!u||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function Su(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function nt(e,t){return void 0===e?[]:Array.isArray(e)?e.map(u=>Su(u,t)):[Su(e,t)]}function Ou(e,t){let u=nt("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===u.length?{remain:t,redirect:u}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:u}:{redirect:u}}var Dt,Yn=class extends X{constructor(e){super(e),this._choices=function zn(e,t){let u=new Map;for(let r of e){let n=r[t];if(u.has(n))throw new Error(`Duplicate ${t} ${JSON.stringify(n)}`);u.set(n,r)}return u}(e.choices.map(t=>t&&"object"==typeof t?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(n=>this._choices.get(n)).filter(({hidden:n})=>!n).map(n=>n.value).sort(Gn).map(e.value),u=t.slice(0,-2),r=t.slice(-2);return{text:u.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Xn=class extends X{expected(){return"a number"}validate(e,t){return"number"==typeof e}},Zn=class extends Xn{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&function Un(e){return e===Math.floor(e)}(e)}},Nu=class extends X{expected(){return"a string"}validate(e){return"string"==typeof e}},Qn=de,eD=Bu,tD=(e,t,u)=>{let{text:r,list:n}=u.normalizeExpectedResult(u.schemas[e].expected(u)),D=[];return r&&D.push(Cu(e,t,r,u.descriptor)),n&&D.push([Cu(e,t,n.title,u.descriptor)].concat(n.values.map(i=>Eu(i,u.loggerPrintWidth))).join("\n")),yu(D,u.loggerPrintWidth)},uD=(e,t,{descriptor:u})=>{let r=[`${hu.default.yellow("string"==typeof e?u.key(e):u.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${hu.default.blue("string"==typeof t?u.key(t):u.pair(t))}`),r.join("; ")+"."},rD=class{constructor(e,t){let{logger:u=console,loggerPrintWidth:r=80,descriptor:n=Qn,unknown:D=eD,invalid:i=tD,deprecated:o=uD,missing:a=()=>!1,required:l=()=>!1,preprocess:s=c=>c,postprocess:p=()=>je}=t||{};this._utils={descriptor:n,logger:u||{warn:()=>{}},loggerPrintWidth:r,schemas:Vn(e,"name"),normalizeDefaultResult:ku,normalizeExpectedResult:wu,normalizeDeprecatedResult:xu,normalizeForwardResult:nt,normalizeRedirectResult:Ou,normalizeValidateResult:_u},this._unknownHandler=D,this._invalidHandler=function Hn(e){return(...t)=>{let u=e(...t);return"string"==typeof u?new Error(u):u}}(i),this._deprecatedHandler=o,this._identifyMissing=(c,F)=>!(c in F)||a(c,F),this._identifyRequired=l,this._preprocess=s,this._postprocess=p,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=function qn(){let e=Object.create(null);return t=>{let u=JSON.stringify(t);return!!e[u]||(e[u]=!0,!1)}}()}normalize(e){let t={},u=[this._preprocess(e,this._utils)],r=()=>{for(;0!==u.length;){let n=u.shift(),D=this._applyNormalization(n,t);u.push(...D)}};r();for(let n of Object.keys(this._utils.schemas))if(!(n in t)){let i=ku(this._utils.schemas[n].default(this._utils));"value"in i&&u.push({[n]:i.value})}r();for(let n of Object.keys(this._utils.schemas)){if(!(n in t))continue;let D=this._utils.schemas[n],o=D.postprocess(t[n],this._utils);o!==je&&(this._applyValidation(o,n,D),t[n]=o)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let u=[],{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(e);for(let D of r){let i=this._utils.schemas[D],o=i.preprocess(e[D],this._utils);this._applyValidation(o,D,i);let a=({from:p,to:c})=>{u.push("string"==typeof c?{[c]:p}:{[c.key]:c.value})},l=({value:p,redirectTo:c})=>{let F=xu(i.deprecated(p,this._utils),o,!0);if(!1!==F)if(!0===F)this._hasDeprecationWarned(D)||this._utils.logger.warn(this._deprecatedHandler(D,c,this._utils));else for(let{value:f}of F){let d={key:D,value:f};this._hasDeprecationWarned(d)||this._utils.logger.warn(this._deprecatedHandler(d,"string"==typeof c?{key:c,value:f}:c,this._utils))}};nt(i.forward(o,this._utils),o).forEach(a);let s=Ou(i.redirect(o,this._utils),o);if(s.redirect.forEach(a),"remain"in s){let p=s.remain;t[D]=D in t?i.overlap(t[D],p,this._utils):p,l({value:p})}for(let{from:p,to:c}of s.redirect)l({value:p,redirectTo:c})}for(let D of n)this._applyUnknownHandler(D,e[D],t,(o,a)=>{u.push({[o]:a})});return u}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,mu,this._utils)}_partitionOptionKeys(e){let[t,u]=function Jn(e,t){let u=[],r=[];for(let n of e)t(n)?u.push(n):r.push(n);return[u,r]}(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:t,unknownKeys:u}}_applyValidation(e,t,u){let r=_u(u.validate(e,this._utils),e);if(!0!==r)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,u,r){let n=this._unknownHandler(e,t,this._utils);if(n)for(let D of Object.keys(n)){if(this._identifyMissing(D,n))continue;let i=n[D];D in this._utils.schemas?r(D,i):u[D]=i}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==je){if(t.delete)for(let u of t.delete)delete e[u];if(t.override){let{knownKeys:u,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let n of u){let D=t.override[n];this._applyValidation(D,n,this._utils.schemas[n]),e[n]=D}for(let n of r)this._applyUnknownHandler(n,t.override[n],e,(i,o)=>{this._applyValidation(o,i,this._utils.schemas[i]),e[i]=o})}}}};function iD(e,{isCLI:t,optionInfos:u,FlagSchema:r}){let i,{name:n}=e,D={name:n},o={};switch(e.type){case"int":i=Zn,t&&(D.preprocess=Number);break;case"string":case"path":i=Nu;break;case"choice":i=Yn,D.choices=e.choices.map(a=>null!=a&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":i=Rn;break;case"flag":i=r,D.flags=u.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;default:throw new Error(`Unexpected type ${e.type}`)}if(D.validate=e.exception?(a,l,s)=>e.exception(a)||l.validate(a,s):(a,l,s)=>void 0===a||l.validate(a,s),e.redirect&&(o.redirect=a=>a?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){let a=D.preprocess||(l=>l);D.preprocess=(l,s,p)=>s.preprocess(a(Array.isArray(l)?k(!1,l,-1):l),p)}return e.array?Wn.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...o,valueSchema:i.create(D)}):i.create({...D,...o})}var ju=(e,t,u)=>{if(!e||null!=t){if(t.findLast)return t.findLast(u);for(let r=t.length-1;r>=0;r--){let n=t[r];if(u(n,r,t))return n}}};function Pu(e,t){if(!t)throw new Error("parserName is required.");let u=ju(!1,e,n=>n.parsers&&Object.prototype.hasOwnProperty.call(n.parsers,t));if(u)return u;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new fu(r)}function Tu({plugins:e,parser:t}){return Iu(Pu(e,t),t)}function Iu(e,t){let u=e.parsers[t];return"function"==typeof u?u():u}var $u={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function it(){return it=(0,A.A)(function*(e,t={}){var u;let r={...e};if(!r.parser){if(!r.filepath)throw new du("No parser and no file path given, couldn't infer a parser.");if(r.parser=function Sn(e,t){let u=e.plugins.flatMap(n=>n.languages??[]),r=function xn(e,t){if(t)return e.find(({name:u})=>u.toLowerCase()===t)??e.find(({aliases:u})=>u?.includes(t))??e.find(({extensions:u})=>u?.includes(`.${t}`))}(u,t.language)??Fu(u,t.physicalFile)??Fu(u,t.file)??void 0;return r?.parsers[0]}(r,{physicalFile:r.filepath}),!r.parser)throw new du(`No parser could be inferred for file "${r.filepath}".`)}let n=pu({plugins:e.plugins,showDeprecated:!0}).options,D={...$u,...Object.fromEntries(n.filter(c=>void 0!==c.default).map(c=>[c.name,c.default]))},i=Pu(r.plugins,r.parser),o=yield Iu(i,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let a=null!=(u=i.printers)&&u[o.astFormat]?i:function sD(e,t){if(!t)throw new Error("astFormat is required.");let u=ju(!1,e,n=>n.printers&&Object.prototype.hasOwnProperty.call(n.printers,t));if(u)return u;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new fu(r)}(r.plugins,o.astFormat),l=yield function lD(e,t){let u=e.printers[t];return"function"==typeof u?u():u}(a,o.astFormat);r.printer=l;let p={...D,...a.defaultOptions?Object.fromEntries(Object.entries(a.defaultOptions).filter(([,c])=>void 0!==c)):{}};for(let[c,F]of Object.entries(p))null==r[c]&&(r[c]=F);return"json"===r.parser&&(r.trailingComma="none"),function nD(e,t,{logger:u=!1,isCLI:r=!1,passThrough:n=!1,FlagSchema:D,descriptor:i}={}){if(r){if(!D)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=de;let o=n?Array.isArray(n)?(c,F)=>n.includes(c)?{[c]:F}:void 0:(c,F)=>({[c]:F}):(c,F,f)=>{let{_:d,...h}=f.schemas;return Bu(c,F,{...f,schemas:h})},a=function DD(e,{isCLI:t,FlagSchema:u}){let r=[];t&&r.push(Mn.create({name:"_"}));for(let n of e)r.push(iD(n,{isCLI:t,optionInfos:e,FlagSchema:u})),n.alias&&t&&r.push(Ln.create({name:n.alias,sourceName:n.name}));return r}(t,{isCLI:r,FlagSchema:D}),l=new rD(a,{logger:u,unknown:o,descriptor:i}),s=!1!==u;s&&Dt&&(l._hasDeprecationWarned=Dt);let p=l.normalize(e);return s&&(Dt=l._hasDeprecationWarned),p}(r,n,{passThrough:Object.keys($u),...t})}),it.apply(this,arguments)}var Fe=function cD(e){return it.apply(this,arguments)},fD=me(dr(),1);function ot(){return ot=(0,A.A)(function*(e,t){let n,u=yield Tu(t),r=u.preprocess?u.preprocess(e,t):e;t.originalText=r;try{n=yield u.parse(r,t,t)}catch(D){!function pD(e,t){let{loc:u}=e;if(u){let r=(0,fD.codeFrameColumns)(t,u,{highlightCode:!0});throw e.message+="\n"+r,e.codeFrame=r,e}throw e}(D,e)}return{text:r,ast:n}}),ot.apply(this,arguments)}var ve=function dD(e,t){return ot.apply(this,arguments)};function at(){return at=(0,A.A)(function*(e,t,u,r,n){let{embeddedLanguageFormatting:D,printer:{embed:i,hasPrettierIgnore:o=()=>!1,getVisitorKeys:a}}=u;if(!i||"auto"!==D)return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let l=Ne(i.getVisitorKeys??a),s=[];!function F(){let{node:f}=e;if(null===f||"object"!=typeof f||o(e))return;for(let h of l(f))Array.isArray(f[h])?e.each(F,h):e.call(F,h);let d=i(e,u);if(d){if("function"==typeof d)return void s.push({print:d,node:f,pathStack:[...e.stack]});n.set(f,d)}}();let p=e.stack;for(let{print:f,node:d,pathStack:h}of s)try{e.stack=h;let m=yield f(c,t,e,u);m&&n.set(d,m)}catch(m){if(globalThis.PRETTIER_DEBUG)throw m}function c(f,d){return function hD(e,t,u,r){return st.apply(this,arguments)}(f,d,u,r)}e.stack=p}),at.apply(this,arguments)}function st(){return st=(0,A.A)(function*(e,t,u,r){let n=yield Fe({...u,...t,parentParser:u.parser,originalText:e},{passThrough:!0}),{ast:D}=yield ve(e,n);return eu(yield r(D,n))}),st.apply(this,arguments)}var gD=function mD(e,t){let{originalText:u,[Symbol.for("comments")]:r,locStart:n,locEnd:D,[Symbol.for("printedComments")]:i}=t,{node:o}=e,a=n(o),l=D(o);for(let s of r)n(s)>=a&&D(s)<=l&&i.add(s);return u.slice(a,l)};function Pe(e,t){return lt.apply(this,arguments)}function lt(){return lt=(0,A.A)(function*(e,t){({ast:e}=yield Mu(e,t));let u=new Map,r=new tn(e),n=Bn(t),D=new Map;yield function FD(e,t,u,r,n){return at.apply(this,arguments)}(r,o,t,Pe,D);let i=yield Lu(r,t,o,void 0,D);return function vn(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:u}=e;for(let r of t){if(!r.printed&&!u.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}(t),i;function o(l,s){return void 0===l||l===r?a(s):Array.isArray(l)?r.call(()=>a(s),...l):r.call(()=>a(s),l)}function a(l){n(r);let s=r.node;if(null==s)return"";let p=s&&"object"==typeof s&&void 0===l;if(p&&u.has(s))return u.get(s);let c=Lu(r,t,o,l,D);return p&&u.set(s,c),c}}),lt.apply(this,arguments)}function Lu(e,t,u,r,n){var D;let a,{node:i}=e,{printer:o}=t;return a=null!=(D=o.hasPrettierIgnore)&&D.call(o,e)?gD(e,t):n.has(i)?n.get(i):o.print(e,t,u,r),i===t.cursorNode&&(a=tu(a,l=>[ze,l,ze])),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(a=function yn(e,t,u){let{leading:r,trailing:n}=function En(e,t){let u=e.node;if(!u)return{};let r=t[Symbol.for("printedComments")];if(0===(u.comments||[]).filter(o=>!r.has(o)).length)return{leading:"",trailing:""};let i,n=[],D=[];return e.each(()=>{let o=e.node;if(null!=r&&r.has(o))return;let{leading:a,trailing:l}=o;a?n.push(function gn(e,t){var u;let r=e.node,n=[cu(e,t)],{printer:D,originalText:i,locStart:o,locEnd:a}=t;if(null!=(u=D.isBlockComment)&&u.call(D,r)){let s=Y(i,a(r))?Y(i,o(r),{backwards:!0})?re:Ht:" ";n.push(s)}else n.push(re);let l=De(i,K(i,a(r)));return!1!==l&&Y(i,l)&&n.push(re),n}(e,t)):l&&(i=function Cn(e,t,u){var r;let n=e.node,D=cu(e,t),{printer:i,originalText:o,locStart:a}=t,l=null==(r=i.isBlockComment)?void 0:r.call(i,n);if(null!=u&&u.hasLineSuffix&&(null==u||!u.isBlock)||Y(o,a(n),{backwards:!0})){let s=ut(o,a(n));return{doc:Re([re,s?re:"",D]),isBlock:l,hasLineSuffix:!0}}return!l||null!=u&&u.hasLineSuffix?{doc:[Re([" ",D]),we],isBlock:l,hasLineSuffix:!0}:{doc:[" ",D],isBlock:l,hasLineSuffix:!1}}(e,t,i),D.push(i.doc))},"comments"),{leading:n,trailing:D}}(e,u);return r||n?tu(t,D=>[r,D,n]):t}(e,a,t)),a}function Mu(e,t){return ct.apply(this,arguments)}function ct(){return ct=(0,A.A)(function*(e,t){let u=e.comments??[];t[Symbol.for("comments")]=u,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,function pn(e,t){let{comments:u}=e;if(delete e.comments,!ln(u)||!t.printer.canAttachComment)return;let r=[],{locStart:n,locEnd:D,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:o={}},originalText:a}=t,{ownLine:l=et,endOfLine:s=et,remaining:p=et}=o,c=u.map((F,f)=>({...au(e,F,t),comment:F,text:a,options:t,ast:e,isLastComment:u.length-1===f}));for(let[F,f]of c.entries()){let b,{comment:d,precedingNode:h,enclosingNode:m,followingNode:g,text:y,options:C,ast:E,isLastComment:v}=f;if("json"===C.parser||"json5"===C.parser||"jsonc"===C.parser||"__js_expression"===C.parser||"__ts_expression"===C.parser||"__vue_expression"===C.parser||"__vue_ts_expression"===C.parser){if(n(d)-n(E)<=0){ce(E,d);continue}if(D(d)-D(E)>=0){fe(E,d);continue}}if(i?b=[f]:(d.enclosingNode=m,d.precedingNode=h,d.followingNode=g,b=[d,y,C,E,v]),Fn(y,C,c,F))d.placement="ownLine",l(...b)||(g?ce(g,d):h?fe(h,d):ie(m||E,d));else if(hn(y,C,c,F))d.placement="endOfLine",s(...b)||(h?fe(h,d):g?ce(g,d):ie(m||E,d));else if(d.placement="remaining",!p(...b))if(h&&g){let B=r.length;B>0&&r[B-1].followingNode!==g&&lu(r,C),r.push(f)}else h?fe(h,d):g?ce(g,d):ie(m||E,d)}if(lu(r,t),!i)for(let F of u)delete F.precedingNode,delete F.enclosingNode,delete F.followingNode}(e,t);let{printer:{preprocess:r}}=t;return{ast:e=r?yield r(e,t):e,comments:u}}),ct.apply(this,arguments)}var ED=function CD(e,t){let{cursorOffset:u,locStart:r,locEnd:n}=t,D=Ne(t.printer.getVisitorKeys),i=a=>r(a)<=u&&n(a)>=u,o=e;for(let a of function*nn(e,t){let u=[e];for(let r=0;r<u.length;r++){let n=u[r];for(let D of nu(n,t))yield D,u.push(D)}}(e,{getVisitorKeys:D,filter:i}))o=a;return o},bD=({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e;function Wu(e){let t=e.length-1;for(;;){let u=e[t];if("Program"!==u?.type&&"File"!==u?.type)break;t--}return e.slice(0,t+1)}function ft(e,t,u,r,n=[],D){let{locStart:i,locEnd:o}=u,a=i(e),l=o(e);if(!(t>l||t<a||"rangeEnd"===D&&t===a||"rangeStart"===D&&t===l)){for(let s of Qe(e,u)){let p=ft(s,t,u,r,[e,...n],D);if(p)return p}if(!r||r(e,n[0]))return{node:e,parentNodes:n}}}var Ru=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),wD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Vu(e,t,u){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return function kD(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}(t.type,u?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Ru.has(t.type);case"graphql":return wD.has(t.kind);case"vue":return"root"!==t.tag}return!1}var zu="\ufeff",qu=Symbol("cursor");function Ju(e,t){return dt.apply(this,arguments)}function dt(){return dt=(0,A.A)(function*(e,t,u=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:n}=yield ve(e,t);t.cursorOffset>=0&&(t.cursorNode=ED(r,t));let D=yield Pe(r,t,u);u>0&&(D=Xt([re,D],u,t.tabWidth));let i=Se(D,t);if(u>0){let a=i.formatted.trim();void 0!==i.cursorNodeStart&&(i.cursorNodeStart-=i.formatted.indexOf(a)),i.formatted=a+Le(t.endOfLine)}let o=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,l,s,p,c;if(t.cursorNode&&i.cursorNodeText?(a=t.locStart(t.cursorNode),l=n.slice(a,t.locEnd(t.cursorNode)),s=t.cursorOffset-a,p=i.cursorNodeStart,c=i.cursorNodeText):(a=0,l=n,s=t.cursorOffset,p=0,c=i.formatted),l===c)return{formatted:i.formatted,cursorOffset:p+s,comments:o};let F=l.split("");F.splice(s,0,qu);let f=c.split(""),d=(0,Fr.diffArrays)(F,f),h=p;for(let m of d)if(m.removed){if(m.value.includes(qu))break}else h+=m.count;return{formatted:i.formatted,cursorOffset:h,comments:o}}return{formatted:i.formatted,cursorOffset:-1,comments:o}}),dt.apply(this,arguments)}function pt(){return pt=(0,A.A)(function*(e,t){let{ast:u,text:r}=yield ve(e,t),{rangeStart:n,rangeEnd:D}=function _D(e,t,u){let{rangeStart:r,rangeEnd:n,locStart:D,locEnd:i}=t;Ye.ok(n>r);let o=e.slice(r,n).search(/\S/),a=-1===o;if(!a)for(r+=o;n>r&&!/\S/.test(e[n-1]);--n);let p,c,l=ft(u,r,t,(F,f)=>Vu(t,F,f),[],"rangeStart"),s=a?l:ft(u,n,t,F=>Vu(t,F),[],"rangeEnd");if(!l||!s)return{rangeStart:0,rangeEnd:0};if(bD(t)){let F=function BD(e,t){let u=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return u.find(n=>Ru.has(n.type)&&r.has(n))}(l,s);p=F,c=F}else({startNode:p,endNode:c}=function AD(e,t,{locStart:u,locEnd:r}){let n=e.node,D=t.node;if(n===D)return{startNode:n,endNode:D};let i=u(e.node);for(let a of Wu(t.parentNodes)){if(!(u(a)>=i))break;D=a}let o=r(t.node);for(let a of Wu(e.parentNodes)){if(!(r(a)<=o))break;if(n=a,n===D)break}return{startNode:n,endNode:D}}(l,s,t));return{rangeStart:Math.min(D(p),D(c)),rangeEnd:Math.max(i(p),i(c))}}(r,t,u),i=r.slice(n,D),o=Math.min(n,r.lastIndexOf("\n",n)+1),a=r.slice(o,n).match(/^\s*/)[0],l=He(a,t.tabWidth),s=yield Ju(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>n&&t.cursorOffset<=D?t.cursorOffset-n:-1,endOfLine:"lf"},l),p=s.formatted.trimEnd(),{cursorOffset:c}=t;c>D?c+=p.length-i.length:s.cursorOffset>=0&&(c=s.cursorOffset+n);let F=r.slice(0,n)+p+r.slice(D);if("lf"!==t.endOfLine){let f=Le(t.endOfLine);c>=0&&"\r\n"===f&&(c+=Rt(F.slice(0,c),"\n")),F=Ae(!1,F,"\n",f)}return{formatted:F,cursorOffset:c,comments:s.comments}}),pt.apply(this,arguments)}function Ft(e,t,u){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?u:t}function Uu(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:n}=t;return u=Ft(e,u,-1),r=Ft(e,r,0),n=Ft(e,n,e.length),{...t,cursorOffset:u,rangeStart:r,rangeEnd:n}}function Gu(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:n,endOfLine:D}=Uu(e,t),i=e.charAt(0)===zu;if(i&&(e=e.slice(1),u--,r--,n--),"auto"===D&&(D=function hr(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}(e)),e.includes("\r")){let o=a=>Rt(e.slice(0,Math.max(a,0)),"\r\n");u-=o(u),r-=o(r),n-=o(n),e=function mr(e){return Ae(!1,e,/\r\n?/g,"\n")}(e)}return{hasBOM:i,text:e,options:Uu(e,{...t,cursorOffset:u,rangeStart:r,rangeEnd:n,endOfLine:D})}}function Hu(e,t){return ht.apply(this,arguments)}function ht(){return ht=(0,A.A)(function*(e,t){let u=yield Tu(t);return!u.hasPragma||u.hasPragma(e)}),ht.apply(this,arguments)}function Ku(e,t){return mt.apply(this,arguments)}function mt(){return mt=(0,A.A)(function*(e,t){let D,{hasBOM:u,text:r,options:n}=Gu(e,yield Fe(t));return n.rangeStart>=n.rangeEnd&&""!==r||n.requirePragma&&!(yield Hu(r,n))?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(n.rangeStart>0||n.rangeEnd<r.length?D=yield function xD(e,t){return pt.apply(this,arguments)}(r,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!(yield Hu(r,n))&&(r=n.printer.insertPragma(r)),D=yield Ju(r,n)),u&&(D.formatted=zu+D.formatted,D.cursorOffset>=0&&D.cursorOffset++),D)}),mt.apply(this,arguments)}function gt(){return gt=(0,A.A)(function*(e,t,u){let{text:r,options:n}=Gu(e,yield Fe(t)),D=yield ve(r,n);return u&&(u.preprocessForPrint&&(D.ast=yield Mu(D.ast,n)),u.massage&&(D.ast=function yD(e,t){let{printer:{massageAstNode:u,getVisitorKeys:r}}=t;if(!u)return e;let n=Ne(r),D=u.ignoredProperties??new Set;return function i(o,a){if(null===o||"object"!=typeof o)return o;if(Array.isArray(o))return o.map(c=>i(c,a)).filter(Boolean);let l={},s=new Set(n(o));for(let c in o)!Object.prototype.hasOwnProperty.call(o,c)||D.has(c)||(l[c]=s.has(c)?i(o[c],o):o[c]);let p=u(o,l,a);return null!==p?p??l:void 0}(e)}(D.ast,n))),D}),gt.apply(this,arguments)}function Ct(){return Ct=(0,A.A)(function*(e,t){return t=yield Fe(t),Se(yield Pe(e,t),t)}),Ct.apply(this,arguments)}function Et(){return Et=(0,A.A)(function*(e,t){let u=function jr(e){let t=Object.create(null),u=new Set;return function r(D,i,o){var a,l;if("string"==typeof D)return JSON.stringify(D);if(Array.isArray(D)){let s=D.map(r).filter(Boolean);return 1===s.length?s[0]:`[${s.join(", ")}]`}if(D.type===w){let s=(null==(a=o?.[i+1])?void 0:a.type)===j;return D.literal?s?"literalline":"literallineWithoutBreakParent":D.hard?s?"hardline":"hardlineWithoutBreakParent":D.soft?"softline":"line"}if(D.type===j)return(null==(l=o?.[i-1])?void 0:l.type)===w&&o[i-1].hard?void 0:"breakParent";if(D.type===q)return"trim";if(D.type===V)return"indent("+r(D.contents)+")";if(D.type===z)return D.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(D.contents)+")":D.n<0?"dedent("+r(D.contents)+")":"root"===D.n.type?"markAsRoot("+r(D.contents)+")":"align("+JSON.stringify(D.n)+", "+r(D.contents)+")";if(D.type===N)return"ifBreak("+r(D.breakContents)+(D.flatContents?", "+r(D.flatContents):"")+(D.groupId?(D.flatContents?"":', ""')+`, { groupId: ${n(D.groupId)} }`:"")+")";if(D.type===J){let s=[];D.negate&&s.push("negate: true"),D.groupId&&s.push(`groupId: ${n(D.groupId)}`);let p=s.length>0?`, { ${s.join(", ")} }`:"";return`indentIfBreak(${r(D.contents)}${p})`}if(D.type===x){let s=[];D.break&&"propagated"!==D.break&&s.push("shouldBreak: true"),D.id&&s.push(`id: ${n(D.id)}`);let p=s.length>0?`, { ${s.join(", ")} }`:"";return D.expandedStates?`conditionalGroup([${D.expandedStates.map(c=>r(c)).join(",")}]${p})`:`group(${r(D.contents)}${p})`}if(D.type===I)return`fill([${D.parts.map(s=>r(s)).join(", ")}])`;if(D.type===U)return"lineSuffix("+r(D.contents)+")";if(D.type===G)return"lineSuffixBoundary";if(D.type===$)return`label(${JSON.stringify(D.label)}, ${r(D.contents)})`;throw new Error("Unknown doc type "+D.type)}(H(e));function n(D){if("symbol"!=typeof D)return JSON.stringify(String(D));if(D in t)return t[D];let i=D.description||"symbol";for(let o=0;;o++){let a=i+(o>0?` #${o}`:"");if(!u.has(a))return u.add(a),t[D]=`Symbol.for(${JSON.stringify(a)})`}}}(e),{formatted:r}=yield Ku(u,{...t,parser:"__js_expression"});return r}),Et.apply(this,arguments)}function yt(){return yt=(0,A.A)(function*(e,t){t=yield Fe(t);let{ast:u}=yield ve(e,t);return Pe(u,t)}),yt.apply(this,arguments)}function vt(){return vt=(0,A.A)(function*(e,t){return Se(e,yield Fe(t))}),vt.apply(this,arguments)}var bt={};Be(bt,{builders:()=>TD,printer:()=>ID,utils:()=>$D});var TD={join:Yt,line:Ht,softline:Or,hardline:re,literalline:Kt,group:Jt,conditionalGroup:function kr(e,t){return Jt(e[0],{...t,expandedStates:e})},fill:Ut,lineSuffix:Re,lineSuffixBoundary:xr,cursor:ze,breakParent:we,ifBreak:function wr(e,t="",u={}){return L(e),""!==t&&L(t),{type:N,breakContents:e,flatContents:t,groupId:u.groupId}},trim:Sr,indent:ke,indentIfBreak:function _r(e,t){return L(e),{type:J,contents:e,groupId:t.groupId,negate:t.negate}},align:le,addAlignmentToDoc:Xt,markAsRoot:function Br(e){return le({type:"root"},e)},dedentToRoot:function br(e){return le(Number.NEGATIVE_INFINITY,e)},dedent:function Ar(e){return le(-1,e)},hardlineWithoutBreakParent:Ve,literallineWithoutBreakParent:Gt,label:function Nr(e,t){return L(t),e?{type:$,label:e,contents:t}:t},concat:e=>e},ID={printDocToString:Se},$D={willBreak:function Vr(e){return Je(e,Rr,!1)},traverseDoc:Me,findInDoc:Je,mapDoc:_e,removeLines:function Jr(e){return _e(e,qr)},stripTrailingHardline:eu,replaceEndOfLine:function Hr(e,t=Kt){return _e(e,u=>"string"==typeof u?Yt(t,u.split("\n")):u)},canBreak:function Yr(e){return Je(e,Kr,!1)}},Yu="3.3.2",Bt={};Be(Bt,{addDanglingComment:()=>ie,addLeadingComment:()=>ce,addTrailingComment:()=>fe,getAlignmentSize:()=>He,getIndentSize:()=>zD,getMaxContinuousCount:()=>UD,getNextNonSpaceNonCommentCharacter:()=>HD,getNextNonSpaceNonCommentCharacterIndex:()=>ui,getStringWidth:()=>qe,hasNewline:()=>Y,hasNewlineInRange:()=>YD,hasSpaces:()=>ZD,isNextLineEmpty:()=>ii,isNextLineEmptyAfterIndex:()=>_t,isPreviousLineEmpty:()=>ni,makeString:()=>ei,skip:()=>ye,skipEverythingButNewLine:()=>iu,skipInlineComment:()=>At,skipNewline:()=>De,skipSpaces:()=>K,skipToLineEnd:()=>Du,skipTrailingComment:()=>kt,skipWhitespace:()=>Dn});var At=function LD(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let u=t+2;u<e.length;++u)if("*"===e.charAt(u)&&"/"===e.charAt(u+1))return u+2;return t},kt=function MD(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?iu(e,t):t)},wt=function WD(e,t){let u=null,r=t;for(;r!==u;)u=r,r=K(e,r),r=At(e,r),r=kt(e,r),r=De(e,r);return r},_t=function RD(e,t){let u=null,r=t;for(;r!==u;)u=r,r=Du(e,r),r=At(e,r),r=K(e,r);return r=kt(e,r),r=De(e,r),!1!==r&&Y(e,r)},zD=function VD(e,t){let u=e.lastIndexOf("\n");return-1===u?0:He(e.slice(u+1).match(/^[\t ]*/)[0],t)},UD=function JD(e,t){let u=e.match(new RegExp(`(${function qD(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(t)})+`,"g"));return null===u?0:u.reduce((r,n)=>Math.max(r,n.length/t.length),0)},HD=function GD(e,t){let u=wt(e,t);return!1===u?"":e.charAt(u)},YD=function KD(e,t,u){for(let r=t;r<u;++r)if("\n"===e.charAt(r))return!0;return!1},ZD=function XD(e,t,u={}){return K(e,u.backwards?t-1:t,u)!==t},ei=function QD(e,t,u){let r='"'===t?"'":'"',n=Ae(!1,e,/\\(.)|(["'])/gs,(D,i,o)=>i===r?i:o===t?"\\"+o:o||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+n+t};function ui(e,t){return 2===arguments.length||"number"==typeof t?wt(e,t):function ti(e,t,u){return wt(e,u(t))}(...arguments)}function ni(e,t){return 2===arguments.length||"number"==typeof t?ut(e,t):function ri(e,t,u){return ut(e,u(t))}(...arguments)}function ii(e,t){return 2===arguments.length||"number"==typeof t?_t(e,t):function Di(e,t,u){return _t(e,u(t))}(...arguments)}function oe(e,t=1){return(0,A.A)(function*(...u){let r=u[t]??{},n=r.plugins??[];return u[t]={...r,plugins:Array.isArray(n)?n:Object.values(n)},e(...u)})}var xt=oe(Ku);function St(e,t){return Ot.apply(this,arguments)}function Ot(){return Ot=(0,A.A)(function*(e,t){let{formatted:u}=yield xt(e,{...t,cursorOffset:-1});return u}),Ot.apply(this,arguments)}function Xu(e,t){return Nt.apply(this,arguments)}function Nt(){return Nt=(0,A.A)(function*(e,t){return(yield St(e,t))===e}),Nt.apply(this,arguments)}var Zu=oe(pu,0),Qu={parse:oe(function SD(e,t,u){return gt.apply(this,arguments)}),formatAST:oe(function OD(e,t){return Ct.apply(this,arguments)}),formatDoc:oe(function ND(e,t){return Et.apply(this,arguments)}),printToDoc:oe(function jD(e,t){return yt.apply(this,arguments)}),printDocToString:oe(function PD(e,t){return vt.apply(this,arguments)})},oi=Wt}}]);
4
- //# sourceMappingURL=949.js.map
5
- //# debugId=b0ff6784-3796-534c-9c44-62472d428249
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="54062e4d-a0ab-5ef8-bc8a-94efb6d0ccc1")}catch(e){}}();
3
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[996],{85996:(ci,Pt,Ie)=>{Ie.r(Pt),Ie.d(Pt,{__debug:()=>Qu,check:()=>Xu,default:()=>oi,doc:()=>bt,format:()=>St,formatWithCursor:()=>xt,getSupportInfo:()=>Zu,util:()=>Bt,version:()=>Yu});var A=Ie(35121),er=Object.create,be=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertyNames,rr=Object.getPrototypeOf,nr=Object.prototype.hasOwnProperty,Tt=e=>{throw TypeError(e)},he=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Be=(e,t)=>{for(var u in t)be(e,u,{get:t[u],enumerable:!0})},It=(e,t,u,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of ur(t))!nr.call(e,n)&&n!==u&&be(e,n,{get:()=>t[n],enumerable:!(r=tr(t,n))||r.enumerable});return e},me=(e,t,u)=>(u=null!=e?er(rr(e)):{},It(!t&&e&&e.__esModule?u:be(u,"default",{value:e,enumerable:!0}),e)),ge=(e,t,u)=>(((e,t)=>{t.has(e)||Tt("Cannot access private method")})(e,t),u),sr=he(e=>{function t(){}function u(r,n,D,i,o){for(var l,a=[];n;)a.push(n),l=n.previousComponent,delete n.previousComponent,n=l;a.reverse();for(var s=0,p=a.length,c=0,F=0;s<p;s++){var f=a[s];if(f.removed){if(f.value=r.join(i.slice(F,F+f.count)),F+=f.count,s&&a[s-1].added){var d=a[s-1];a[s-1]=a[s],a[s]=d}}else{if(!f.added&&o){var h=D.slice(c,c+f.count);h=h.map(function(g,y){var C=i[F+y];return C.length>g.length?C:g}),f.value=r.join(h)}else f.value=r.join(D.slice(c,c+f.count));c+=f.count,f.added||(F+=f.count)}}var m=a[p-1];return p>1&&"string"==typeof m.value&&(m.added||m.removed)&&r.equals("",m.value)&&(a[p-2].value+=m.value,a.pop()),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(r,n){var D,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"==typeof i&&(o=i,i={}),this.options=i;var a=this;function l(v){return o?(setTimeout(function(){o(void 0,v)},0),!0):v}r=this.castInput(r),n=this.castInput(n),r=this.removeEmpty(this.tokenize(r));var s=(n=this.removeEmpty(this.tokenize(n))).length,p=r.length,c=1,F=s+p;i.maxEditLength&&(F=Math.min(F,i.maxEditLength));var f=null!==(D=i.timeout)&&void 0!==D?D:1/0,d=Date.now()+f,h=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(h[0],n,r,0);if(h[0].oldPos+1>=p&&m+1>=s)return l([{value:this.join(n),count:n.length}]);var g=-1/0,y=1/0;function C(){for(var v=Math.max(g,-c);v<=Math.min(y,c);v+=2){var b=void 0,B=h[v-1],O=h[v+1];B&&(h[v-1]=void 0);var Z=!1;if(O){var Q=O.oldPos-v;Z=O&&0<=Q&&Q<s}var P=B&&B.oldPos+1<p;if(Z||P){if(b=!P||Z&&B.oldPos+1<O.oldPos?a.addToPath(O,!0,void 0,0):a.addToPath(B,void 0,!0,1),m=a.extractCommon(b,n,r,v),b.oldPos+1>=p&&m+1>=s)return l(u(a,b.lastComponent,n,r,a.useLongestToken));h[v]=b,b.oldPos+1>=p&&(y=Math.min(y,v-1)),m+1>=s&&(g=Math.max(g,v+1))}else h[v]=void 0}c++}if(o)!function v(){setTimeout(function(){if(c>F||Date.now()>d)return o();C()||v()},0)}();else for(;c<=F&&Date.now()<=d;){var E=C();if(E)return E}},addToPath:function(r,n,D,i){var o=r.lastComponent;return o&&o.added===n&&o.removed===D?{oldPos:r.oldPos+i,lastComponent:{count:o.count+1,added:n,removed:D,previousComponent:o.previousComponent}}:{oldPos:r.oldPos+i,lastComponent:{count:1,added:n,removed:D,previousComponent:o}}},extractCommon:function(r,n,D,i){for(var o=n.length,a=D.length,l=r.oldPos,s=l-i,p=0;s+1<o&&l+1<a&&this.equals(n[s+1],D[l+1]);)s++,l++,p++;return p&&(r.lastComponent={count:p,previousComponent:r.lastComponent}),r.oldPos=l,s},equals:function(r,n){return this.options.comparator?this.options.comparator(r,n):r===n||this.options.ignoreCase&&r.toLowerCase()===n.toLowerCase()},removeEmpty:function(r){for(var n=[],D=0;D<r.length;D++)r[D]&&n.push(r[D]);return n},castInput:function(r){return r},tokenize:function(r){return r.split("")},join:function(r){return r.join("")}}}),lr=he(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=function n(D,i,o){return r.diff(D,i,o)},e.arrayDiff=void 0;var r=new(function u(D){return D&&D.__esModule?D:{default:D}}(sr()).default);e.arrayDiff=r,r.tokenize=function(D){return D.slice()},r.join=r.removeEmpty=function(D){return D}}),$e=he((e,t)=>{var u=new Proxy(String,{get:()=>u});t.exports=u}),$t={};Be($t,{default:()=>Mt,shouldHighlight:()=>Lt});var Lt,Mt,e,t,cr=(e=()=>{Lt=()=>!1,Mt=String},()=>(e&&(t=e(e=0)),t)),fr=he((e,t)=>{var u=String,r=function(){return{isColorSupported:!1,reset:u,bold:u,dim:u,italic:u,underline:u,inverse:u,hidden:u,strikethrough:u,black:u,red:u,green:u,yellow:u,blue:u,magenta:u,cyan:u,white:u,gray:u,bgBlack:u,bgRed:u,bgGreen:u,bgYellow:u,bgBlue:u,bgMagenta:u,bgCyan:u,bgWhite:u}};t.exports=r(),t.exports.createColors=r}),dr=he(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=F,e.default=function f(d,h,m,g={}){if(!l){l=!0;let y="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(y).name="DeprecationWarning",console.warn(new Error(y))}return F(d,{start:{column:m=Math.max(m,0),line:h}},g)};var t=(cr(),(e=>It(be({},"__esModule",{value:!0}),e))($t)),u=function n(d,h){if(!h&&d&&d.__esModule)return d;if(null===d||"object"!=typeof d&&"function"!=typeof d)return{default:d};var m=r(h);if(m&&m.has(d))return m.get(d);var g={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in d)if("default"!==C&&{}.hasOwnProperty.call(d,C)){var E=y?Object.getOwnPropertyDescriptor(d,C):null;E&&(E.get||E.set)?Object.defineProperty(g,C,E):g[C]=d[C]}return g.default=d,m&&m.set(d,g),g}(fr(),!0);function r(d){if("function"!=typeof WeakMap)return null;var h=new WeakMap,m=new WeakMap;return(r=function(g){return g?m:h})(d)}var o,D=u.default,i=(d,h)=>m=>d(h(m)),l=!1,p=/\r\n|[\n\r\u2028\u2029]/;function F(d,h,m={}){let g=(m.highlightCode||m.forceColor)&&(0,t.shouldHighlight)(m),y=function a(d){return d?(null!=o||(o=(0,u.createColors)(!0)),o):D}(m.forceColor),C=function s(d){return{gutter:d.gray,marker:i(d.red,d.bold),message:i(d.red,d.bold)}}(y),E=(_,T)=>g?_(T):T,v=d.split(p),{start:b,end:B,markerLines:O}=function c(d,h,m){let g=Object.assign({column:0,line:-1},d.start),y=Object.assign({},g,d.end),{linesAbove:C=2,linesBelow:E=3}=m||{},v=g.line,b=g.column,B=y.line,O=y.column,Z=Math.max(v-(C+1),0),Q=Math.min(h.length,B+E);-1===v&&(Z=0),-1===B&&(Q=h.length);let P=B-v,_={};if(P)for(let T=0;T<=P;T++){let W=T+v;_[W]=!b||(0===T?[b,h[W-1].length-b+1]:T===P?[0,O]:[0,h[W-T].length])}else _[v]=b===O?!b||[b,0]:[b,O-b];return{start:Z,end:Q,markerLines:_}}(h,v,m),Z=h.start&&"number"==typeof h.start.column,Q=String(B).length,P=(g?(0,t.default)(d,m):d).split(p,B).slice(b,B).map((_,T)=>{let W=b+1+T,ae=` ${` ${W}`.slice(-Q)} |`,Te=O[W],ai=!O[W+1];if(Te){let jt="";if(Array.isArray(Te)){let si=_.slice(0,Math.max(Te[0]-1,0)).replace(/[^\t]/g," "),li=Te[1]||1;jt=["\n ",E(C.gutter,ae.replace(/\d/g," "))," ",si,E(C.marker,"^").repeat(li)].join(""),ai&&m.message&&(jt+=" "+E(C.message,m.message))}return[E(C.marker,">"),E(C.gutter,ae),_.length>0?` ${_}`:"",jt].join("")}return` ${E(C.gutter,ae)}${_.length>0?` ${_}`:""}`}).join("\n");return m.message&&!Z&&(P=`${" ".repeat(Q+1)}${m.message}\n${P}`),g?y.reset(P):P}}),Wt={};Be(Wt,{__debug:()=>Qu,check:()=>Xu,doc:()=>bt,format:()=>St,formatWithCursor:()=>xt,getSupportInfo:()=>Zu,util:()=>Bt,version:()=>Yu});var Ae=(e,t,u,r)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(u,r):u.global?t.replace(u,r):t.split(u).join(r)},Fr=me(lr(),1);function Le(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function Rt(e,t){let u;switch(t){case"\n":u=/\n/g;break;case"\r":u=/\r/g;break;case"\r\n":u=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(u);return r?r.length:0}var ee="string",R="array",te="cursor",V="indent",z="align",q="trim",x="group",I="fill",N="if-break",J="indent-if-break",U="line-suffix",G="line-suffix-boundary",w="line",$="label",j="break-parent",Vt=new Set([te,V,z,q,x,I,N,J,U,G,w,$,j]),ue=function gr(e){if("string"==typeof e)return ee;if(Array.isArray(e))return R;if(!e)return;let{type:t}=e;return Vt.has(t)?t:void 0};var yr=class extends Error{name="InvalidDocError";constructor(e){super(function Er(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(ue(e))throw new Error("doc is valid.");let u=Object.prototype.toString.call(e);if("[object Object]"!==u)return`Unexpected doc '${u}'.`;let r=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...Vt].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${r}.`}(e)),this.doc=e}},se=yr,zt={},Me=function vr(e,t,u,r){let n=[e];for(;n.length>0;){let D=n.pop();if(D===zt){u(n.pop());continue}u&&n.push(D,zt);let i=ue(D);if(!i)throw new se(D);if(!1!==t?.(D))switch(i){case R:case I:{let o=i===R?D:D.parts;for(let l=o.length-1;l>=0;--l)n.push(o[l]);break}case N:n.push(D.flatContents,D.breakContents);break;case x:if(r&&D.expandedStates)for(let a=D.expandedStates.length-1;a>=0;--a)n.push(D.expandedStates[a]);else n.push(D.contents);break;case z:case V:case J:case $:case U:n.push(D.contents);break;case ee:case te:case q:case G:case w:case j:break;default:throw new se(D)}}},qt=()=>{},L=qt,We=qt;function ke(e){return L(e),{type:V,contents:e}}function le(e,t){return L(t),{type:z,contents:t,n:e}}function Jt(e,t={}){return L(e),We(t.expandedStates,!0),{type:x,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ut(e){return We(e),{type:I,parts:e}}function Re(e){return L(e),{type:U,contents:e}}var xr={type:G},we={type:j},Sr={type:q},Ve={type:w,hard:!0},Gt={type:w,hard:!0,literal:!0},Ht={type:w},Or={type:w,soft:!0},re=[Ve,we],Kt=[Gt,we],ze={type:te};function Yt(e,t){L(e),We(t);let u=[];for(let r=0;r<t.length;r++)0!==r&&u.push(e),u.push(t[r]);return u}function Xt(e,t,u){L(e);let r=e;if(t>0){for(let n=0;n<Math.floor(t/u);++n)r=ke(r);r=le(t%u,r),r=le(Number.NEGATIVE_INFINITY,r)}return r}function H(e){var t;if(!e)return"";if(Array.isArray(e)){let u=[];for(let r of e)if(Array.isArray(r))u.push(...H(r));else{let n=H(r);""!==n&&u.push(n)}return u}return e.type===N?{...e,breakContents:H(e.breakContents),flatContents:H(e.flatContents)}:e.type===x?{...e,contents:H(e.contents),expandedStates:null==(t=e.expandedStates)?void 0:t.map(H)}:e.type===I?{type:"fill",parts:e.parts.map(H)}:e.contents?{...e,contents:H(e.contents)}:e}var k=(e,t,u)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[u<0?t.length+u:u]:t.at(u)},Lr=e=>!(function Ir(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}(e)||function $r(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)),Mr=/[^\x20-\x7F]/,qe=function Wr(e){if(!e)return 0;if(!Mr.test(e))return e.length;e=e.replace(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g," ");let t=0;for(let u of e){let r=u.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=Lr(r)?1:2)}return t};function _e(e,t){if("string"==typeof e)return t(e);let u=new Map;return function r(D){if(u.has(D))return u.get(D);let i=function n(D){switch(ue(D)){case R:return t(D.map(r));case I:return t({...D,parts:D.parts.map(r)});case N:return t({...D,breakContents:r(D.breakContents),flatContents:r(D.flatContents)});case x:{let{expandedStates:i,contents:o}=D;return i?(i=i.map(r),o=i[0]):o=r(o),t({...D,contents:o,expandedStates:i})}case z:case V:case J:case $:case U:return t({...D,contents:r(D.contents)});case ee:case te:case q:case G:case w:case j:return t(D);default:throw new se(D)}}(D);return u.set(D,i),i}(e)}function Je(e,t,u){let r=u,n=!1;return Me(e,function D(i){if(n)return!1;let o=t(i);void 0!==o&&(n=!0,r=o)}),r}function Rr(e){if(e.type===x&&e.break||e.type===w&&e.hard||e.type===j)return!0}function Zt(e){if(e.length>0){let t=k(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function qr(e){return e.type!==w||e.hard?e.type===N?e.flatContents:e:e.soft?"":" "}function Qt(e){for(e=[...e];e.length>=2&&k(!1,e,-2).type===w&&k(!1,e,-1).type===j;)e.length-=2;if(e.length>0){let t=Ce(k(!1,e,-1));e[e.length-1]=t}return e}function Ce(e){switch(ue(e)){case V:case J:case x:case U:case $:{let t=Ce(e.contents);return{...e,contents:t}}case N:return{...e,breakContents:Ce(e.breakContents),flatContents:Ce(e.flatContents)};case I:return{...e,parts:Qt(e.parts)};case R:return Qt(e);case ee:return e.replace(/[\n\r]*$/,"");case z:case te:case q:case G:case w:case j:break;default:throw new se(e)}return e}function eu(e){return Ce(function Gr(e){return _e(e,t=>function Ur(e){switch(ue(e)){case I:if(e.parts.every(t=>""===t))return"";break;case x:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===x&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case z:case V:case J:case U:if(!e.contents)return"";break;case N:if(!e.flatContents&&!e.breakContents)return"";break;case R:{let t=[];for(let u of e){if(!u)continue;let[r,...n]=Array.isArray(u)?u:[u];"string"==typeof r&&"string"==typeof k(!1,t,-1)?t[t.length-1]+=r:t.push(r),t.push(...n)}return 0===t.length?"":1===t.length?t[0]:t}case ee:case te:case q:case G:case w:case $:case j:break;default:throw new se(e)}return e}(t))}(e))}function Kr(e){if(e.type===w)return!0}function tu(e,t){return e.type===$?{...e,contents:t(e.contents)}:t(e)}var S=Symbol("MODE_BREAK"),M=Symbol("MODE_FLAT"),Ee=Symbol("cursor");function Xr(e,t){return Ue(e,{type:"indent"},t)}function Zr(e,t,u){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?Ue(e,{type:"dedent"},u):t?"root"===t.type?{...e,root:e}:Ue(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},u):e}function Ue(e,t,u){let r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],n="",D=0,i=0,o=0;for(let f of r)switch(f.type){case"indent":s(),u.useTabs?a(1):l(u.tabWidth);break;case"stringAlign":s(),n+=f.n,D+=f.n.length;break;case"numberAlign":i+=1,o+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return c(),{...e,value:n,length:D,queue:r};function a(f){n+="\t".repeat(f),D+=u.tabWidth*f}function l(f){n+=" ".repeat(f),D+=f}function s(){u.useTabs?function p(){i>0&&a(i),F()}():c()}function c(){o>0&&l(o),F()}function F(){i=0,o=0}}function Ge(e){let t=0,u=0,r=e.length;e:for(;r--;){let n=e[r];if(n!==Ee)for(let D=n.length-1;D>=0;D--){let i=n[D];if(" "!==i&&"\t"!==i){e[r]=n.slice(0,D+1);break e}t++}else u++}if(t>0||u>0)for(e.length=r+1;u-- >0;)e.push(Ee);return t}function xe(e,t,u,r,n,D){if(u===Number.POSITIVE_INFINITY)return!0;let i=t.length,o=[e],a=[];for(;u>=0;){if(0===o.length){if(0===i)return!0;o.push(t[--i]);continue}let{mode:l,doc:s}=o.pop(),p=ue(s);switch(p){case ee:a.push(s),u-=qe(s);break;case R:case I:{let c=p===R?s:s.parts;for(let F=c.length-1;F>=0;F--)o.push({mode:l,doc:c[F]});break}case V:case z:case J:case $:o.push({mode:l,doc:s.contents});break;case q:u+=Ge(a);break;case x:{if(D&&s.break)return!1;let c=s.break?S:l,F=s.expandedStates&&c===S?k(!1,s.expandedStates,-1):s.contents;o.push({mode:c,doc:F});break}case N:{let c=(s.groupId?n[s.groupId]||M:l)===S?s.breakContents:s.flatContents;c&&o.push({mode:l,doc:c});break}case w:if(l===S||s.hard)return!0;s.soft||(a.push(" "),u--);break;case U:r=!0;break;case G:if(r)return!1}}return!1}function Se(e,t){let u={},r=t.printWidth,n=Le(t.endOfLine),D=0,i=[{ind:{value:"",length:0,queue:[]},mode:S,doc:e}],o=[],a=!1,l=[],s=0;for(function zr(e){let t=new Set,u=[];Me(e,function r(D){if(D.type===j&&Zt(u),D.type===x){if(u.push(D),t.has(D))return!1;t.add(D)}},function n(D){D.type===x&&u.pop().break&&Zt(u)},!0)}(e);i.length>0;){let{ind:c,mode:F,doc:f}=i.pop();switch(ue(f)){case ee:{let d="\n"!==n?Ae(!1,f,"\n",n):f;o.push(d),i.length>0&&(D+=qe(d));break}case R:for(let d=f.length-1;d>=0;d--)i.push({ind:c,mode:F,doc:f[d]});break;case te:if(s>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ee),s++;break;case V:i.push({ind:Xr(c,t),mode:F,doc:f.contents});break;case z:i.push({ind:Zr(c,f.n,t),mode:F,doc:f.contents});break;case q:D-=Ge(o);break;case x:switch(F){case M:if(!a){i.push({ind:c,mode:f.break?S:M,doc:f.contents});break}case S:{a=!1;let d={ind:c,mode:M,doc:f.contents},h=r-D,m=l.length>0;if(!f.break&&xe(d,i,h,m,u))i.push(d);else if(f.expandedStates){let g=k(!1,f.expandedStates,-1);if(f.break){i.push({ind:c,mode:S,doc:g});break}for(let y=1;y<f.expandedStates.length+1;y++){if(y>=f.expandedStates.length){i.push({ind:c,mode:S,doc:g});break}{let E={ind:c,mode:M,doc:f.expandedStates[y]};if(xe(E,i,h,m,u)){i.push(E);break}}}}else i.push({ind:c,mode:S,doc:f.contents});break}}f.id&&(u[f.id]=k(!1,i,-1).mode);break;case I:{let d=r-D,{parts:h}=f;if(0===h.length)break;let[m,g]=h,y={ind:c,mode:M,doc:m},C={ind:c,mode:S,doc:m},E=xe(y,[],d,l.length>0,u,!0);if(1===h.length){i.push(E?y:C);break}let v={ind:c,mode:M,doc:g},b={ind:c,mode:S,doc:g};if(2===h.length){E?i.push(v,y):i.push(b,C);break}h.splice(0,2);let B={ind:c,mode:F,doc:Ut(h)};xe({ind:c,mode:M,doc:[m,g,h[0]]},[],d,l.length>0,u,!0)?i.push(B,v,y):i.push(B,b,E?y:C);break}case N:case J:{let d=f.groupId?u[f.groupId]:F;if(d===S){let h=f.type===N?f.breakContents:f.negate?f.contents:ke(f.contents);h&&i.push({ind:c,mode:F,doc:h})}if(d===M){let h=f.type===N?f.flatContents:f.negate?ke(f.contents):f.contents;h&&i.push({ind:c,mode:F,doc:h})}break}case U:l.push({ind:c,mode:F,doc:f.contents});break;case G:l.length>0&&i.push({ind:c,mode:F,doc:Ve});break;case w:switch(F){case M:if(!f.hard){f.soft||(o.push(" "),D+=1);break}a=!0;case S:if(l.length>0){i.push({ind:c,mode:F,doc:f},...l.reverse()),l.length=0;break}f.literal?c.root?(o.push(n,c.root.value),D=c.root.length):(o.push(n),D=0):(D-=Ge(o),o.push(n+c.value),D=c.length)}break;case $:i.push({ind:c,mode:F,doc:f.contents});break;case j:break;default:throw new se(f)}0===i.length&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let p=o.indexOf(Ee);if(-1!==p){let c=o.indexOf(Ee,p+1),F=o.slice(0,p).join(""),f=o.slice(p+1,c).join("");return{formatted:F+f+o.slice(c+1).join(""),cursorNodeStart:F.length,cursorNodeText:f}}return{formatted:o.join("")}}var ne,Ke,Oe,He=function Qr(e,t,u=0){let r=0;for(let n=u;n<e.length;++n)"\t"===e[n]?r=r+t-r%t:r++;return r};ne=new WeakSet,Ke=function(e){let{stack:t}=this;for(let u=t.length-1;u>=0;u-=2)if(!Array.isArray(t[u])&&--e<0)return u;return-1},Oe=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let u=e[t];Array.isArray(u)||(yield u)}};var tn=class{constructor(e){((e,t)=>{t.has(e)?Tt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,ne),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return k(!1,e,null===t?-2:-4)??null}get index(){return null===this.siblings?null:k(!1,this.stack,-2)}get node(){return k(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return null!==this.siblings}get siblings(){let{stack:e}=this,t=k(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return null===e?null:e[this.index+1]}get previous(){let{siblings:e}=this;return null===e?null:e[this.index-1]}get isFirst(){return 0===this.index}get isLast(){let{siblings:e,index:t}=this;return null!==e&&t===e.length-1}get isRoot(){return 1===this.stack.length}get root(){return this.stack[0]}get ancestors(){return[...ge(this,ne,Oe).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?k(!1,e,-2):null}getValue(){return k(!1,this.stack,-1)}getNode(e=0){let t=ge(this,ne,Ke).call(this,e);return-1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:u}=this,{length:r}=u,n=k(!1,u,-1);for(let D of t)n=n[D],u.push(D,n);try{return e(this)}finally{u.length=r}}callParent(e,t=0){let u=ge(this,ne,Ke).call(this,t+1),r=this.stack.splice(u+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:u}=this,{length:r}=u,n=k(!1,u,-1);for(let D of t)n=n[D],u.push(D,n);try{for(let D=0;D<n.length;++D)u.push(D,n[D]),e(this,D,n),u.length-=2}finally{u.length=r}}map(e,...t){let u=[];return this.each((r,n,D)=>{u[n]=e(r,n,D)},...t),u}match(...e){let t=this.stack.length-1,u=null,r=this.stack[t--];for(let n of e){if(void 0===r)return!1;let D=null;if("number"==typeof u&&(D=u,u=this.stack[t--],r=this.stack[t--]),n&&!n(r,u,D))return!1;u=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of ge(this,ne,Oe).call(this))if(e(t))return t}hasAncestor(e){for(let t of ge(this,ne,Oe).call(this))if(e(t))return!0;return!1}},ru=new Proxy(()=>{},{get:()=>ru}),Ye=ru,rn=function un(e){return null!==e&&"object"==typeof e};function*nu(e,t){let{getVisitorKeys:u,filter:r=()=>!0}=t,n=D=>rn(D)&&r(D);for(let D of u(e)){let i=e[D];if(Array.isArray(i))for(let o of i)n(o)&&(yield o);else n(i)&&(yield i)}}function ye(e){return(t,u,r)=>{let n=!(null==r||!r.backwards);if(!1===u)return!1;let{length:D}=t,i=u;for(;i>=0&&i<D;){let o=t.charAt(i);if(e instanceof RegExp){if(!e.test(o))return i}else if(!e.includes(o))return i;n?i--:i++}return(-1===i||i===D)&&i}}var Dn=ye(/\s/),K=ye(" \t"),Du=ye(",; \t"),iu=ye(/[^\n\r]/),De=function on(e,t,u){let r=!(null==u||!u.backwards);if(!1===t)return!1;let n=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===n)return t-2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return t-1}else{if("\r"===n&&"\n"===e.charAt(t+1))return t+2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return t+1}return t},Y=function an(e,t,u={}){let r=K(e,u.backwards?t-1:t,u);return r!==De(e,r,u)},ln=function sn(e){return Array.isArray(e)&&e.length>0},ou=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),cn=e=>Object.keys(e).filter(t=>!ou.has(t)),Ne=function fn(e){return e?t=>e(t,ou):cn};function Xe(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function dn(e){let t=e.type||e.kind||"(unknown type)",u=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return u.length>20&&(u=u.slice(0,19)+"\u2026"),t+(u?" "+u:"")}(e)}function ce(e,t){t.leading=!0,t.trailing=!1,Xe(e,t)}function ie(e,t,u){t.leading=!1,t.trailing=!1,u&&(t.marker=u),Xe(e,t)}function fe(e,t){t.leading=!1,t.trailing=!0,Xe(e,t)}var Ze=new WeakMap;function Qe(e,t){if(Ze.has(e))return Ze.get(e);let{printer:{getCommentChildNodes:u,canAttachComment:r,getVisitorKeys:n},locStart:D,locEnd:i}=t;if(!r)return[];let o=(u?.(e,t)??[...nu(e,{getVisitorKeys:Ne(n)})]).flatMap(a=>r(a)?[a]:Qe(a,t));return o.sort((a,l)=>D(a)-D(l)||i(a)-i(l)),Ze.set(e,o),o}function au(e,t,u,r){let l,s,{locStart:n,locEnd:D}=u,i=n(t),o=D(t),a=Qe(e,u),p=0,c=a.length;for(;p<c;){let F=p+c>>1,f=a[F],d=n(f),h=D(f);if(d<=i&&o<=h)return au(f,t,u,f);if(h<=i)l=f,p=F+1;else{if(!(o<=d))throw new Error("Comment location overlaps with node location");s=f,c=F}}if("TemplateLiteral"===r?.type){let{quasis:F}=r,f=tt(F,t,u);l&&tt(F,l,u)!==f&&(l=null),s&&tt(F,s,u)!==f&&(s=null)}return{enclosingNode:r,precedingNode:l,followingNode:s}}var et=()=>!1,su=e=>!/[\S\n\u2028\u2029]/.test(e);function Fn(e,t,u,r){let{comment:n,precedingNode:D}=u[r],{locStart:i,locEnd:o}=t,a=i(n);if(D)for(let l=r-1;l>=0;l--){let{comment:s,precedingNode:p}=u[l];if(p!==D||!su(e.slice(o(s),a)))break;a=i(s)}return Y(e,a,{backwards:!0})}function hn(e,t,u,r){let{comment:n,followingNode:D}=u[r],{locStart:i,locEnd:o}=t,a=o(n);if(D)for(let l=r+1;l<u.length;l++){let{comment:s,followingNode:p}=u[l];if(p!==D||!su(e.slice(a,i(s))))break;a=o(s)}return Y(e,a)}function lu(e,t){var u,r;let n=e.length;if(0===n)return;let a,{precedingNode:D,followingNode:i}=e[0],o=t.locStart(i);for(a=n;a>0;--a){let{comment:l,precedingNode:s,followingNode:p}=e[a-1];Ye.strictEqual(s,D),Ye.strictEqual(p,i);let c=t.originalText.slice(t.locEnd(l),o);if(!((null==(r=(u=t.printer).isGap)?void 0:r.call(u,c,t))??/^[\s(]*$/.test(c)))break;o=t.locStart(l)}for(let[l,{comment:s}]of e.entries())l<a?fe(D,s):ce(i,s);for(let l of[D,i])l.comments&&l.comments.length>1&&l.comments.sort((s,p)=>t.locStart(s)-t.locStart(p));e.length=0}function tt(e,t,u){let r=u.locStart(t)-1;for(let n=1;n<e.length;++n)if(r<u.locStart(e[n]))return n-1;return 0}var ut=function mn(e,t){let u=t-1;return u=K(e,u,{backwards:!0}),u=De(e,u,{backwards:!0}),u=K(e,u,{backwards:!0}),u!==De(e,u,{backwards:!0})};function cu(e,t){return e.node.printed=!0,t.printer.printComment(e,t)}var Bn=function bn(e){return()=>{}},fu=class extends Error{name="ConfigError"},du=class extends Error{name="UndefinedParserError"},An={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:"Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:"Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:"Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function pu({plugins:e=[],showDeprecated:t=!1}={}){let u=e.flatMap(n=>n.languages??[]),r=[];for(let n of function wn(e){let t=[];for(let[u,r]of Object.entries(e)){let n={name:u,...r};Array.isArray(n.default)&&(n.default=k(!1,n.default,-1).value),t.push(n)}return t}(Object.assign({},...e.map(({options:D})=>D),An)))!t&&n.deprecated||(Array.isArray(n.choices)&&(t||(n.choices=n.choices.filter(D=>!D.deprecated)),"parser"===n.name&&(n.choices=[...n.choices,...kn(n.choices,u,e)])),n.pluginDefaults=Object.fromEntries(e.filter(D=>{var i;return void 0!==(null==(i=D.defaultOptions)?void 0:i[n.name])}).map(D=>[D.name,D.defaultOptions[n.name]])),r.push(n));return{languages:u,options:r}}function*kn(e,t,u){let r=new Set(e.map(n=>n.value));for(let n of t)if(n.parsers)for(let D of n.parsers)if(!r.has(D)){r.add(D);let i=u.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,D)),o=n.name;null!=i&&i.name&&(o+=` (plugin: ${i.name})`),yield{value:D,description:o}}}function Fu(e,t){if(!t)return;let u=(e=>String(e).split(/[/\\]/).pop())(t).toLowerCase();return e.find(({filenames:r})=>r?.some(n=>n.toLowerCase()===u))??e.find(({extensions:r})=>r?.some(n=>u.endsWith(n)))}var de={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(u=>de.value(u)).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map(u=>`${de.key(u)}: ${de.value(e[u])}`).join(", ")} }`},pair:({key:e,value:t})=>de.value({[e]:t})},hu=me($e(),1),pe=me($e(),1),mu=Symbol.for("vnopts.VALUE_NOT_EXIST"),je=Symbol.for("vnopts.VALUE_UNCHANGED"),gu=" ".repeat(2);function Cu(e,t,u,r){return[`Invalid ${pe.default.red(r.key(e))} value.`,`Expected ${pe.default.blue(u)},`,`but received ${t===mu?pe.default.gray("nothing"):pe.default.red(r.value(t))}.`].join(" ")}function Eu({text:e,list:t},u){let r=[];return e&&r.push(`- ${pe.default.blue(e)}`),t&&r.push([`- ${pe.default.blue(t.title)}:`].concat(t.values.map(n=>Eu(n,u-gu.length).replace(/^|\n/g,`$&${gu}`))).join("\n")),yu(r,u)}function yu(e,t){if(1===e.length)return e[0];let[u,r]=e,[n,D]=e.map(i=>i.split("\n",1)[0].length);return n>t&&n>D?r:u}var vu=me($e(),1),rt=[],bu=[],Bu=(e,t,{descriptor:u,logger:r,schemas:n})=>{let D=[`Ignored unknown option ${vu.default.yellow(u.pair({key:e,value:t}))}.`],i=Object.keys(n).sort().find(o=>function Pn(e,t){if(e===t)return 0;let u=e;e.length>t.length&&(e=t,t=u);let r=e.length,n=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-n);)r--,n--;let D=0;for(;D<r&&e.charCodeAt(D)===t.charCodeAt(D);)D++;if(r-=D,n-=D,0===r)return n;let i,o,a,l,s=0,p=0;for(;s<r;)bu[s]=e.charCodeAt(D+s),rt[s]=++s;for(;p<n;)for(i=t.charCodeAt(D+p),a=p++,o=p,s=0;s<r;s++)l=i===bu[s]?a:a+1,a=rt[s],o=rt[s]=a>o?l>o?o+1:l:l>a?a+1:l;return o}(e,o)<3);i&&D.push(`Did you mean ${vu.default.blue(u.key(i))}?`),r.warn(D.join(" "))},Tn=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],X=class{static create(e){return function In(e,t){let u=new e(t),r=Object.create(u);for(let n of Tn)n in t&&(r[n]=$n(t[n],u,X.prototype[n].length));return r}(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,u){return e}preprocess(e,t){return e}postprocess(e,t){return je}};function $n(e,t,u){return"function"==typeof e?(...r)=>e(...r.slice(0,u-1),t,...r.slice(u-1)):()=>e}var Ln=class extends X{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},Mn=class extends X{expected(){return"anything"}validate(){return!0}},Wn=class extends X{constructor({valueSchema:e,name:t=e.name,...u}){super({...u,name:t}),this._valueSchema=e}expected(e){let{text:t,list:u}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:u&&{title:"an array of the following values",values:[{list:u}]}}}validate(e,t){if(!Array.isArray(e))return!1;let u=[];for(let r of e){let n=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==n&&u.push(n.value)}return 0===u.length||{value:u}}deprecated(e,t){let u=[];for(let r of e){let n=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==n&&u.push(...n.map(({value:D})=>({value:[D]})))}return u}forward(e,t){let u=[];for(let r of e){let n=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);u.push(...n.map(Au))}return u}redirect(e,t){let u=[],r=[];for(let n of e){let D=t.normalizeRedirectResult(this._valueSchema.redirect(n,t),n);"remain"in D&&u.push(D.remain),r.push(...D.redirect.map(Au))}return 0===u.length?{redirect:r}:{redirect:r,remain:u}}overlap(e,t){return e.concat(t)}};function Au({from:e,to:t}){return{from:[e],to:t}}var Rn=class extends X{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function Vn(e,t){let u=Object.create(null);for(let r of e){let n=r[t];if(u[n])throw new Error(`Duplicate ${t} ${JSON.stringify(n)}`);u[n]=r}return u}function Gn(e,t){if(e===t)return 0;let u=typeof e,r=typeof t,n=["undefined","object","boolean","number","string"];return u!==r?n.indexOf(u)-n.indexOf(r):"string"!==u?Number(e)-Number(t):e.localeCompare(t)}function ku(e){return void 0===e?{}:e}function wu(e){if("string"==typeof e)return{text:e};let{text:t,list:u}=e;return function Kn(e,t){if(!e)throw new Error(t)}(void 0!==(t||u),"Unexpected `expected` result, there should be at least one field."),u?{text:t,list:{title:u.title,values:u.values.map(wu)}}:{text:t}}function _u(e,t){return!0===e||(!1===e?{value:t}:e)}function xu(e,t,u=!1){return!1!==e&&(!0===e?!!u||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function Su(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function nt(e,t){return void 0===e?[]:Array.isArray(e)?e.map(u=>Su(u,t)):[Su(e,t)]}function Ou(e,t){let u=nt("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===u.length?{remain:t,redirect:u}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:u}:{redirect:u}}var Dt,Yn=class extends X{constructor(e){super(e),this._choices=function zn(e,t){let u=new Map;for(let r of e){let n=r[t];if(u.has(n))throw new Error(`Duplicate ${t} ${JSON.stringify(n)}`);u.set(n,r)}return u}(e.choices.map(t=>t&&"object"==typeof t?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(n=>this._choices.get(n)).filter(({hidden:n})=>!n).map(n=>n.value).sort(Gn).map(e.value),u=t.slice(0,-2),r=t.slice(-2);return{text:u.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Xn=class extends X{expected(){return"a number"}validate(e,t){return"number"==typeof e}},Zn=class extends Xn{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&function Un(e){return e===Math.floor(e)}(e)}},Nu=class extends X{expected(){return"a string"}validate(e){return"string"==typeof e}},Qn=de,eD=Bu,tD=(e,t,u)=>{let{text:r,list:n}=u.normalizeExpectedResult(u.schemas[e].expected(u)),D=[];return r&&D.push(Cu(e,t,r,u.descriptor)),n&&D.push([Cu(e,t,n.title,u.descriptor)].concat(n.values.map(i=>Eu(i,u.loggerPrintWidth))).join("\n")),yu(D,u.loggerPrintWidth)},uD=(e,t,{descriptor:u})=>{let r=[`${hu.default.yellow("string"==typeof e?u.key(e):u.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${hu.default.blue("string"==typeof t?u.key(t):u.pair(t))}`),r.join("; ")+"."},rD=class{constructor(e,t){let{logger:u=console,loggerPrintWidth:r=80,descriptor:n=Qn,unknown:D=eD,invalid:i=tD,deprecated:o=uD,missing:a=()=>!1,required:l=()=>!1,preprocess:s=c=>c,postprocess:p=()=>je}=t||{};this._utils={descriptor:n,logger:u||{warn:()=>{}},loggerPrintWidth:r,schemas:Vn(e,"name"),normalizeDefaultResult:ku,normalizeExpectedResult:wu,normalizeDeprecatedResult:xu,normalizeForwardResult:nt,normalizeRedirectResult:Ou,normalizeValidateResult:_u},this._unknownHandler=D,this._invalidHandler=function Hn(e){return(...t)=>{let u=e(...t);return"string"==typeof u?new Error(u):u}}(i),this._deprecatedHandler=o,this._identifyMissing=(c,F)=>!(c in F)||a(c,F),this._identifyRequired=l,this._preprocess=s,this._postprocess=p,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=function qn(){let e=Object.create(null);return t=>{let u=JSON.stringify(t);return!!e[u]||(e[u]=!0,!1)}}()}normalize(e){let t={},u=[this._preprocess(e,this._utils)],r=()=>{for(;0!==u.length;){let n=u.shift(),D=this._applyNormalization(n,t);u.push(...D)}};r();for(let n of Object.keys(this._utils.schemas))if(!(n in t)){let i=ku(this._utils.schemas[n].default(this._utils));"value"in i&&u.push({[n]:i.value})}r();for(let n of Object.keys(this._utils.schemas)){if(!(n in t))continue;let D=this._utils.schemas[n],o=D.postprocess(t[n],this._utils);o!==je&&(this._applyValidation(o,n,D),t[n]=o)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let u=[],{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(e);for(let D of r){let i=this._utils.schemas[D],o=i.preprocess(e[D],this._utils);this._applyValidation(o,D,i);let a=({from:p,to:c})=>{u.push("string"==typeof c?{[c]:p}:{[c.key]:c.value})},l=({value:p,redirectTo:c})=>{let F=xu(i.deprecated(p,this._utils),o,!0);if(!1!==F)if(!0===F)this._hasDeprecationWarned(D)||this._utils.logger.warn(this._deprecatedHandler(D,c,this._utils));else for(let{value:f}of F){let d={key:D,value:f};this._hasDeprecationWarned(d)||this._utils.logger.warn(this._deprecatedHandler(d,"string"==typeof c?{key:c,value:f}:c,this._utils))}};nt(i.forward(o,this._utils),o).forEach(a);let s=Ou(i.redirect(o,this._utils),o);if(s.redirect.forEach(a),"remain"in s){let p=s.remain;t[D]=D in t?i.overlap(t[D],p,this._utils):p,l({value:p})}for(let{from:p,to:c}of s.redirect)l({value:p,redirectTo:c})}for(let D of n)this._applyUnknownHandler(D,e[D],t,(o,a)=>{u.push({[o]:a})});return u}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,mu,this._utils)}_partitionOptionKeys(e){let[t,u]=function Jn(e,t){let u=[],r=[];for(let n of e)t(n)?u.push(n):r.push(n);return[u,r]}(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:t,unknownKeys:u}}_applyValidation(e,t,u){let r=_u(u.validate(e,this._utils),e);if(!0!==r)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,u,r){let n=this._unknownHandler(e,t,this._utils);if(n)for(let D of Object.keys(n)){if(this._identifyMissing(D,n))continue;let i=n[D];D in this._utils.schemas?r(D,i):u[D]=i}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==je){if(t.delete)for(let u of t.delete)delete e[u];if(t.override){let{knownKeys:u,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let n of u){let D=t.override[n];this._applyValidation(D,n,this._utils.schemas[n]),e[n]=D}for(let n of r)this._applyUnknownHandler(n,t.override[n],e,(i,o)=>{this._applyValidation(o,i,this._utils.schemas[i]),e[i]=o})}}}};function iD(e,{isCLI:t,optionInfos:u,FlagSchema:r}){let i,{name:n}=e,D={name:n},o={};switch(e.type){case"int":i=Zn,t&&(D.preprocess=Number);break;case"string":case"path":i=Nu;break;case"choice":i=Yn,D.choices=e.choices.map(a=>null!=a&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":i=Rn;break;case"flag":i=r,D.flags=u.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;default:throw new Error(`Unexpected type ${e.type}`)}if(D.validate=e.exception?(a,l,s)=>e.exception(a)||l.validate(a,s):(a,l,s)=>void 0===a||l.validate(a,s),e.redirect&&(o.redirect=a=>a?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){let a=D.preprocess||(l=>l);D.preprocess=(l,s,p)=>s.preprocess(a(Array.isArray(l)?k(!1,l,-1):l),p)}return e.array?Wn.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...o,valueSchema:i.create(D)}):i.create({...D,...o})}var ju=(e,t,u)=>{if(!e||null!=t){if(t.findLast)return t.findLast(u);for(let r=t.length-1;r>=0;r--){let n=t[r];if(u(n,r,t))return n}}};function Pu(e,t){if(!t)throw new Error("parserName is required.");let u=ju(!1,e,n=>n.parsers&&Object.prototype.hasOwnProperty.call(n.parsers,t));if(u)return u;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new fu(r)}function Tu({plugins:e,parser:t}){return Iu(Pu(e,t),t)}function Iu(e,t){let u=e.parsers[t];return"function"==typeof u?u():u}var $u={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function it(){return it=(0,A.A)(function*(e,t={}){var u;let r={...e};if(!r.parser){if(!r.filepath)throw new du("No parser and no file path given, couldn't infer a parser.");if(r.parser=function Sn(e,t){let u=e.plugins.flatMap(n=>n.languages??[]),r=function xn(e,t){if(t)return e.find(({name:u})=>u.toLowerCase()===t)??e.find(({aliases:u})=>u?.includes(t))??e.find(({extensions:u})=>u?.includes(`.${t}`))}(u,t.language)??Fu(u,t.physicalFile)??Fu(u,t.file)??void 0;return r?.parsers[0]}(r,{physicalFile:r.filepath}),!r.parser)throw new du(`No parser could be inferred for file "${r.filepath}".`)}let n=pu({plugins:e.plugins,showDeprecated:!0}).options,D={...$u,...Object.fromEntries(n.filter(c=>void 0!==c.default).map(c=>[c.name,c.default]))},i=Pu(r.plugins,r.parser),o=yield Iu(i,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let a=null!=(u=i.printers)&&u[o.astFormat]?i:function sD(e,t){if(!t)throw new Error("astFormat is required.");let u=ju(!1,e,n=>n.printers&&Object.prototype.hasOwnProperty.call(n.printers,t));if(u)return u;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new fu(r)}(r.plugins,o.astFormat),l=yield function lD(e,t){let u=e.printers[t];return"function"==typeof u?u():u}(a,o.astFormat);r.printer=l;let p={...D,...a.defaultOptions?Object.fromEntries(Object.entries(a.defaultOptions).filter(([,c])=>void 0!==c)):{}};for(let[c,F]of Object.entries(p))null==r[c]&&(r[c]=F);return"json"===r.parser&&(r.trailingComma="none"),function nD(e,t,{logger:u=!1,isCLI:r=!1,passThrough:n=!1,FlagSchema:D,descriptor:i}={}){if(r){if(!D)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=de;let o=n?Array.isArray(n)?(c,F)=>n.includes(c)?{[c]:F}:void 0:(c,F)=>({[c]:F}):(c,F,f)=>{let{_:d,...h}=f.schemas;return Bu(c,F,{...f,schemas:h})},a=function DD(e,{isCLI:t,FlagSchema:u}){let r=[];t&&r.push(Mn.create({name:"_"}));for(let n of e)r.push(iD(n,{isCLI:t,optionInfos:e,FlagSchema:u})),n.alias&&t&&r.push(Ln.create({name:n.alias,sourceName:n.name}));return r}(t,{isCLI:r,FlagSchema:D}),l=new rD(a,{logger:u,unknown:o,descriptor:i}),s=!1!==u;s&&Dt&&(l._hasDeprecationWarned=Dt);let p=l.normalize(e);return s&&(Dt=l._hasDeprecationWarned),p}(r,n,{passThrough:Object.keys($u),...t})}),it.apply(this,arguments)}var Fe=function cD(e){return it.apply(this,arguments)},fD=me(dr(),1);function ot(){return ot=(0,A.A)(function*(e,t){let n,u=yield Tu(t),r=u.preprocess?u.preprocess(e,t):e;t.originalText=r;try{n=yield u.parse(r,t,t)}catch(D){!function pD(e,t){let{loc:u}=e;if(u){let r=(0,fD.codeFrameColumns)(t,u,{highlightCode:!0});throw e.message+="\n"+r,e.codeFrame=r,e}throw e}(D,e)}return{text:r,ast:n}}),ot.apply(this,arguments)}var ve=function dD(e,t){return ot.apply(this,arguments)};function at(){return at=(0,A.A)(function*(e,t,u,r,n){let{embeddedLanguageFormatting:D,printer:{embed:i,hasPrettierIgnore:o=()=>!1,getVisitorKeys:a}}=u;if(!i||"auto"!==D)return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let l=Ne(i.getVisitorKeys??a),s=[];!function F(){let{node:f}=e;if(null===f||"object"!=typeof f||o(e))return;for(let h of l(f))Array.isArray(f[h])?e.each(F,h):e.call(F,h);let d=i(e,u);if(d){if("function"==typeof d)return void s.push({print:d,node:f,pathStack:[...e.stack]});n.set(f,d)}}();let p=e.stack;for(let{print:f,node:d,pathStack:h}of s)try{e.stack=h;let m=yield f(c,t,e,u);m&&n.set(d,m)}catch(m){if(globalThis.PRETTIER_DEBUG)throw m}function c(f,d){return function hD(e,t,u,r){return st.apply(this,arguments)}(f,d,u,r)}e.stack=p}),at.apply(this,arguments)}function st(){return st=(0,A.A)(function*(e,t,u,r){let n=yield Fe({...u,...t,parentParser:u.parser,originalText:e},{passThrough:!0}),{ast:D}=yield ve(e,n);return eu(yield r(D,n))}),st.apply(this,arguments)}var gD=function mD(e,t){let{originalText:u,[Symbol.for("comments")]:r,locStart:n,locEnd:D,[Symbol.for("printedComments")]:i}=t,{node:o}=e,a=n(o),l=D(o);for(let s of r)n(s)>=a&&D(s)<=l&&i.add(s);return u.slice(a,l)};function Pe(e,t){return lt.apply(this,arguments)}function lt(){return lt=(0,A.A)(function*(e,t){({ast:e}=yield Mu(e,t));let u=new Map,r=new tn(e),n=Bn(t),D=new Map;yield function FD(e,t,u,r,n){return at.apply(this,arguments)}(r,o,t,Pe,D);let i=yield Lu(r,t,o,void 0,D);return function vn(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:u}=e;for(let r of t){if(!r.printed&&!u.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}(t),i;function o(l,s){return void 0===l||l===r?a(s):Array.isArray(l)?r.call(()=>a(s),...l):r.call(()=>a(s),l)}function a(l){n(r);let s=r.node;if(null==s)return"";let p=s&&"object"==typeof s&&void 0===l;if(p&&u.has(s))return u.get(s);let c=Lu(r,t,o,l,D);return p&&u.set(s,c),c}}),lt.apply(this,arguments)}function Lu(e,t,u,r,n){var D;let a,{node:i}=e,{printer:o}=t;return a=null!=(D=o.hasPrettierIgnore)&&D.call(o,e)?gD(e,t):n.has(i)?n.get(i):o.print(e,t,u,r),i===t.cursorNode&&(a=tu(a,l=>[ze,l,ze])),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(a=function yn(e,t,u){let{leading:r,trailing:n}=function En(e,t){let u=e.node;if(!u)return{};let r=t[Symbol.for("printedComments")];if(0===(u.comments||[]).filter(o=>!r.has(o)).length)return{leading:"",trailing:""};let i,n=[],D=[];return e.each(()=>{let o=e.node;if(null!=r&&r.has(o))return;let{leading:a,trailing:l}=o;a?n.push(function gn(e,t){var u;let r=e.node,n=[cu(e,t)],{printer:D,originalText:i,locStart:o,locEnd:a}=t;if(null!=(u=D.isBlockComment)&&u.call(D,r)){let s=Y(i,a(r))?Y(i,o(r),{backwards:!0})?re:Ht:" ";n.push(s)}else n.push(re);let l=De(i,K(i,a(r)));return!1!==l&&Y(i,l)&&n.push(re),n}(e,t)):l&&(i=function Cn(e,t,u){var r;let n=e.node,D=cu(e,t),{printer:i,originalText:o,locStart:a}=t,l=null==(r=i.isBlockComment)?void 0:r.call(i,n);if(null!=u&&u.hasLineSuffix&&(null==u||!u.isBlock)||Y(o,a(n),{backwards:!0})){let s=ut(o,a(n));return{doc:Re([re,s?re:"",D]),isBlock:l,hasLineSuffix:!0}}return!l||null!=u&&u.hasLineSuffix?{doc:[Re([" ",D]),we],isBlock:l,hasLineSuffix:!0}:{doc:[" ",D],isBlock:l,hasLineSuffix:!1}}(e,t,i),D.push(i.doc))},"comments"),{leading:n,trailing:D}}(e,u);return r||n?tu(t,D=>[r,D,n]):t}(e,a,t)),a}function Mu(e,t){return ct.apply(this,arguments)}function ct(){return ct=(0,A.A)(function*(e,t){let u=e.comments??[];t[Symbol.for("comments")]=u,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,function pn(e,t){let{comments:u}=e;if(delete e.comments,!ln(u)||!t.printer.canAttachComment)return;let r=[],{locStart:n,locEnd:D,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:o={}},originalText:a}=t,{ownLine:l=et,endOfLine:s=et,remaining:p=et}=o,c=u.map((F,f)=>({...au(e,F,t),comment:F,text:a,options:t,ast:e,isLastComment:u.length-1===f}));for(let[F,f]of c.entries()){let b,{comment:d,precedingNode:h,enclosingNode:m,followingNode:g,text:y,options:C,ast:E,isLastComment:v}=f;if("json"===C.parser||"json5"===C.parser||"jsonc"===C.parser||"__js_expression"===C.parser||"__ts_expression"===C.parser||"__vue_expression"===C.parser||"__vue_ts_expression"===C.parser){if(n(d)-n(E)<=0){ce(E,d);continue}if(D(d)-D(E)>=0){fe(E,d);continue}}if(i?b=[f]:(d.enclosingNode=m,d.precedingNode=h,d.followingNode=g,b=[d,y,C,E,v]),Fn(y,C,c,F))d.placement="ownLine",l(...b)||(g?ce(g,d):h?fe(h,d):ie(m||E,d));else if(hn(y,C,c,F))d.placement="endOfLine",s(...b)||(h?fe(h,d):g?ce(g,d):ie(m||E,d));else if(d.placement="remaining",!p(...b))if(h&&g){let B=r.length;B>0&&r[B-1].followingNode!==g&&lu(r,C),r.push(f)}else h?fe(h,d):g?ce(g,d):ie(m||E,d)}if(lu(r,t),!i)for(let F of u)delete F.precedingNode,delete F.enclosingNode,delete F.followingNode}(e,t);let{printer:{preprocess:r}}=t;return{ast:e=r?yield r(e,t):e,comments:u}}),ct.apply(this,arguments)}var ED=function CD(e,t){let{cursorOffset:u,locStart:r,locEnd:n}=t,D=Ne(t.printer.getVisitorKeys),i=a=>r(a)<=u&&n(a)>=u,o=e;for(let a of function*nn(e,t){let u=[e];for(let r=0;r<u.length;r++){let n=u[r];for(let D of nu(n,t))yield D,u.push(D)}}(e,{getVisitorKeys:D,filter:i}))o=a;return o},bD=({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e;function Wu(e){let t=e.length-1;for(;;){let u=e[t];if("Program"!==u?.type&&"File"!==u?.type)break;t--}return e.slice(0,t+1)}function ft(e,t,u,r,n=[],D){let{locStart:i,locEnd:o}=u,a=i(e),l=o(e);if(!(t>l||t<a||"rangeEnd"===D&&t===a||"rangeStart"===D&&t===l)){for(let s of Qe(e,u)){let p=ft(s,t,u,r,[e,...n],D);if(p)return p}if(!r||r(e,n[0]))return{node:e,parentNodes:n}}}var Ru=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),wD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Vu(e,t,u){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return function kD(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}(t.type,u?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Ru.has(t.type);case"graphql":return wD.has(t.kind);case"vue":return"root"!==t.tag}return!1}var zu="\ufeff",qu=Symbol("cursor");function Ju(e,t){return dt.apply(this,arguments)}function dt(){return dt=(0,A.A)(function*(e,t,u=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:n}=yield ve(e,t);t.cursorOffset>=0&&(t.cursorNode=ED(r,t));let D=yield Pe(r,t,u);u>0&&(D=Xt([re,D],u,t.tabWidth));let i=Se(D,t);if(u>0){let a=i.formatted.trim();void 0!==i.cursorNodeStart&&(i.cursorNodeStart-=i.formatted.indexOf(a)),i.formatted=a+Le(t.endOfLine)}let o=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,l,s,p,c;if(t.cursorNode&&i.cursorNodeText?(a=t.locStart(t.cursorNode),l=n.slice(a,t.locEnd(t.cursorNode)),s=t.cursorOffset-a,p=i.cursorNodeStart,c=i.cursorNodeText):(a=0,l=n,s=t.cursorOffset,p=0,c=i.formatted),l===c)return{formatted:i.formatted,cursorOffset:p+s,comments:o};let F=l.split("");F.splice(s,0,qu);let f=c.split(""),d=(0,Fr.diffArrays)(F,f),h=p;for(let m of d)if(m.removed){if(m.value.includes(qu))break}else h+=m.count;return{formatted:i.formatted,cursorOffset:h,comments:o}}return{formatted:i.formatted,cursorOffset:-1,comments:o}}),dt.apply(this,arguments)}function pt(){return pt=(0,A.A)(function*(e,t){let{ast:u,text:r}=yield ve(e,t),{rangeStart:n,rangeEnd:D}=function _D(e,t,u){let{rangeStart:r,rangeEnd:n,locStart:D,locEnd:i}=t;Ye.ok(n>r);let o=e.slice(r,n).search(/\S/),a=-1===o;if(!a)for(r+=o;n>r&&!/\S/.test(e[n-1]);--n);let p,c,l=ft(u,r,t,(F,f)=>Vu(t,F,f),[],"rangeStart"),s=a?l:ft(u,n,t,F=>Vu(t,F),[],"rangeEnd");if(!l||!s)return{rangeStart:0,rangeEnd:0};if(bD(t)){let F=function BD(e,t){let u=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return u.find(n=>Ru.has(n.type)&&r.has(n))}(l,s);p=F,c=F}else({startNode:p,endNode:c}=function AD(e,t,{locStart:u,locEnd:r}){let n=e.node,D=t.node;if(n===D)return{startNode:n,endNode:D};let i=u(e.node);for(let a of Wu(t.parentNodes)){if(!(u(a)>=i))break;D=a}let o=r(t.node);for(let a of Wu(e.parentNodes)){if(!(r(a)<=o))break;if(n=a,n===D)break}return{startNode:n,endNode:D}}(l,s,t));return{rangeStart:Math.min(D(p),D(c)),rangeEnd:Math.max(i(p),i(c))}}(r,t,u),i=r.slice(n,D),o=Math.min(n,r.lastIndexOf("\n",n)+1),a=r.slice(o,n).match(/^\s*/)[0],l=He(a,t.tabWidth),s=yield Ju(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>n&&t.cursorOffset<=D?t.cursorOffset-n:-1,endOfLine:"lf"},l),p=s.formatted.trimEnd(),{cursorOffset:c}=t;c>D?c+=p.length-i.length:s.cursorOffset>=0&&(c=s.cursorOffset+n);let F=r.slice(0,n)+p+r.slice(D);if("lf"!==t.endOfLine){let f=Le(t.endOfLine);c>=0&&"\r\n"===f&&(c+=Rt(F.slice(0,c),"\n")),F=Ae(!1,F,"\n",f)}return{formatted:F,cursorOffset:c,comments:s.comments}}),pt.apply(this,arguments)}function Ft(e,t,u){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?u:t}function Uu(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:n}=t;return u=Ft(e,u,-1),r=Ft(e,r,0),n=Ft(e,n,e.length),{...t,cursorOffset:u,rangeStart:r,rangeEnd:n}}function Gu(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:n,endOfLine:D}=Uu(e,t),i=e.charAt(0)===zu;if(i&&(e=e.slice(1),u--,r--,n--),"auto"===D&&(D=function hr(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}(e)),e.includes("\r")){let o=a=>Rt(e.slice(0,Math.max(a,0)),"\r\n");u-=o(u),r-=o(r),n-=o(n),e=function mr(e){return Ae(!1,e,/\r\n?/g,"\n")}(e)}return{hasBOM:i,text:e,options:Uu(e,{...t,cursorOffset:u,rangeStart:r,rangeEnd:n,endOfLine:D})}}function Hu(e,t){return ht.apply(this,arguments)}function ht(){return ht=(0,A.A)(function*(e,t){let u=yield Tu(t);return!u.hasPragma||u.hasPragma(e)}),ht.apply(this,arguments)}function Ku(e,t){return mt.apply(this,arguments)}function mt(){return mt=(0,A.A)(function*(e,t){let D,{hasBOM:u,text:r,options:n}=Gu(e,yield Fe(t));return n.rangeStart>=n.rangeEnd&&""!==r||n.requirePragma&&!(yield Hu(r,n))?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(n.rangeStart>0||n.rangeEnd<r.length?D=yield function xD(e,t){return pt.apply(this,arguments)}(r,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!(yield Hu(r,n))&&(r=n.printer.insertPragma(r)),D=yield Ju(r,n)),u&&(D.formatted=zu+D.formatted,D.cursorOffset>=0&&D.cursorOffset++),D)}),mt.apply(this,arguments)}function gt(){return gt=(0,A.A)(function*(e,t,u){let{text:r,options:n}=Gu(e,yield Fe(t)),D=yield ve(r,n);return u&&(u.preprocessForPrint&&(D.ast=yield Mu(D.ast,n)),u.massage&&(D.ast=function yD(e,t){let{printer:{massageAstNode:u,getVisitorKeys:r}}=t;if(!u)return e;let n=Ne(r),D=u.ignoredProperties??new Set;return function i(o,a){if(null===o||"object"!=typeof o)return o;if(Array.isArray(o))return o.map(c=>i(c,a)).filter(Boolean);let l={},s=new Set(n(o));for(let c in o)!Object.prototype.hasOwnProperty.call(o,c)||D.has(c)||(l[c]=s.has(c)?i(o[c],o):o[c]);let p=u(o,l,a);return null!==p?p??l:void 0}(e)}(D.ast,n))),D}),gt.apply(this,arguments)}function Ct(){return Ct=(0,A.A)(function*(e,t){return t=yield Fe(t),Se(yield Pe(e,t),t)}),Ct.apply(this,arguments)}function Et(){return Et=(0,A.A)(function*(e,t){let u=function jr(e){let t=Object.create(null),u=new Set;return function r(D,i,o){var a,l;if("string"==typeof D)return JSON.stringify(D);if(Array.isArray(D)){let s=D.map(r).filter(Boolean);return 1===s.length?s[0]:`[${s.join(", ")}]`}if(D.type===w){let s=(null==(a=o?.[i+1])?void 0:a.type)===j;return D.literal?s?"literalline":"literallineWithoutBreakParent":D.hard?s?"hardline":"hardlineWithoutBreakParent":D.soft?"softline":"line"}if(D.type===j)return(null==(l=o?.[i-1])?void 0:l.type)===w&&o[i-1].hard?void 0:"breakParent";if(D.type===q)return"trim";if(D.type===V)return"indent("+r(D.contents)+")";if(D.type===z)return D.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(D.contents)+")":D.n<0?"dedent("+r(D.contents)+")":"root"===D.n.type?"markAsRoot("+r(D.contents)+")":"align("+JSON.stringify(D.n)+", "+r(D.contents)+")";if(D.type===N)return"ifBreak("+r(D.breakContents)+(D.flatContents?", "+r(D.flatContents):"")+(D.groupId?(D.flatContents?"":', ""')+`, { groupId: ${n(D.groupId)} }`:"")+")";if(D.type===J){let s=[];D.negate&&s.push("negate: true"),D.groupId&&s.push(`groupId: ${n(D.groupId)}`);let p=s.length>0?`, { ${s.join(", ")} }`:"";return`indentIfBreak(${r(D.contents)}${p})`}if(D.type===x){let s=[];D.break&&"propagated"!==D.break&&s.push("shouldBreak: true"),D.id&&s.push(`id: ${n(D.id)}`);let p=s.length>0?`, { ${s.join(", ")} }`:"";return D.expandedStates?`conditionalGroup([${D.expandedStates.map(c=>r(c)).join(",")}]${p})`:`group(${r(D.contents)}${p})`}if(D.type===I)return`fill([${D.parts.map(s=>r(s)).join(", ")}])`;if(D.type===U)return"lineSuffix("+r(D.contents)+")";if(D.type===G)return"lineSuffixBoundary";if(D.type===$)return`label(${JSON.stringify(D.label)}, ${r(D.contents)})`;throw new Error("Unknown doc type "+D.type)}(H(e));function n(D){if("symbol"!=typeof D)return JSON.stringify(String(D));if(D in t)return t[D];let i=D.description||"symbol";for(let o=0;;o++){let a=i+(o>0?` #${o}`:"");if(!u.has(a))return u.add(a),t[D]=`Symbol.for(${JSON.stringify(a)})`}}}(e),{formatted:r}=yield Ku(u,{...t,parser:"__js_expression"});return r}),Et.apply(this,arguments)}function yt(){return yt=(0,A.A)(function*(e,t){t=yield Fe(t);let{ast:u}=yield ve(e,t);return Pe(u,t)}),yt.apply(this,arguments)}function vt(){return vt=(0,A.A)(function*(e,t){return Se(e,yield Fe(t))}),vt.apply(this,arguments)}var bt={};Be(bt,{builders:()=>TD,printer:()=>ID,utils:()=>$D});var TD={join:Yt,line:Ht,softline:Or,hardline:re,literalline:Kt,group:Jt,conditionalGroup:function kr(e,t){return Jt(e[0],{...t,expandedStates:e})},fill:Ut,lineSuffix:Re,lineSuffixBoundary:xr,cursor:ze,breakParent:we,ifBreak:function wr(e,t="",u={}){return L(e),""!==t&&L(t),{type:N,breakContents:e,flatContents:t,groupId:u.groupId}},trim:Sr,indent:ke,indentIfBreak:function _r(e,t){return L(e),{type:J,contents:e,groupId:t.groupId,negate:t.negate}},align:le,addAlignmentToDoc:Xt,markAsRoot:function Br(e){return le({type:"root"},e)},dedentToRoot:function br(e){return le(Number.NEGATIVE_INFINITY,e)},dedent:function Ar(e){return le(-1,e)},hardlineWithoutBreakParent:Ve,literallineWithoutBreakParent:Gt,label:function Nr(e,t){return L(t),e?{type:$,label:e,contents:t}:t},concat:e=>e},ID={printDocToString:Se},$D={willBreak:function Vr(e){return Je(e,Rr,!1)},traverseDoc:Me,findInDoc:Je,mapDoc:_e,removeLines:function Jr(e){return _e(e,qr)},stripTrailingHardline:eu,replaceEndOfLine:function Hr(e,t=Kt){return _e(e,u=>"string"==typeof u?Yt(t,u.split("\n")):u)},canBreak:function Yr(e){return Je(e,Kr,!1)}},Yu="3.3.2",Bt={};Be(Bt,{addDanglingComment:()=>ie,addLeadingComment:()=>ce,addTrailingComment:()=>fe,getAlignmentSize:()=>He,getIndentSize:()=>zD,getMaxContinuousCount:()=>UD,getNextNonSpaceNonCommentCharacter:()=>HD,getNextNonSpaceNonCommentCharacterIndex:()=>ui,getStringWidth:()=>qe,hasNewline:()=>Y,hasNewlineInRange:()=>YD,hasSpaces:()=>ZD,isNextLineEmpty:()=>ii,isNextLineEmptyAfterIndex:()=>_t,isPreviousLineEmpty:()=>ni,makeString:()=>ei,skip:()=>ye,skipEverythingButNewLine:()=>iu,skipInlineComment:()=>At,skipNewline:()=>De,skipSpaces:()=>K,skipToLineEnd:()=>Du,skipTrailingComment:()=>kt,skipWhitespace:()=>Dn});var At=function LD(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let u=t+2;u<e.length;++u)if("*"===e.charAt(u)&&"/"===e.charAt(u+1))return u+2;return t},kt=function MD(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?iu(e,t):t)},wt=function WD(e,t){let u=null,r=t;for(;r!==u;)u=r,r=K(e,r),r=At(e,r),r=kt(e,r),r=De(e,r);return r},_t=function RD(e,t){let u=null,r=t;for(;r!==u;)u=r,r=Du(e,r),r=At(e,r),r=K(e,r);return r=kt(e,r),r=De(e,r),!1!==r&&Y(e,r)},zD=function VD(e,t){let u=e.lastIndexOf("\n");return-1===u?0:He(e.slice(u+1).match(/^[\t ]*/)[0],t)},UD=function JD(e,t){let u=e.match(new RegExp(`(${function qD(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(t)})+`,"g"));return null===u?0:u.reduce((r,n)=>Math.max(r,n.length/t.length),0)},HD=function GD(e,t){let u=wt(e,t);return!1===u?"":e.charAt(u)},YD=function KD(e,t,u){for(let r=t;r<u;++r)if("\n"===e.charAt(r))return!0;return!1},ZD=function XD(e,t,u={}){return K(e,u.backwards?t-1:t,u)!==t},ei=function QD(e,t,u){let r='"'===t?"'":'"',n=Ae(!1,e,/\\(.)|(["'])/gs,(D,i,o)=>i===r?i:o===t?"\\"+o:o||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+n+t};function ui(e,t){return 2===arguments.length||"number"==typeof t?wt(e,t):function ti(e,t,u){return wt(e,u(t))}(...arguments)}function ni(e,t){return 2===arguments.length||"number"==typeof t?ut(e,t):function ri(e,t,u){return ut(e,u(t))}(...arguments)}function ii(e,t){return 2===arguments.length||"number"==typeof t?_t(e,t):function Di(e,t,u){return _t(e,u(t))}(...arguments)}function oe(e,t=1){return(0,A.A)(function*(...u){let r=u[t]??{},n=r.plugins??[];return u[t]={...r,plugins:Array.isArray(n)?n:Object.values(n)},e(...u)})}var xt=oe(Ku);function St(e,t){return Ot.apply(this,arguments)}function Ot(){return Ot=(0,A.A)(function*(e,t){let{formatted:u}=yield xt(e,{...t,cursorOffset:-1});return u}),Ot.apply(this,arguments)}function Xu(e,t){return Nt.apply(this,arguments)}function Nt(){return Nt=(0,A.A)(function*(e,t){return(yield St(e,t))===e}),Nt.apply(this,arguments)}var Zu=oe(pu,0),Qu={parse:oe(function SD(e,t,u){return gt.apply(this,arguments)}),formatAST:oe(function OD(e,t){return Ct.apply(this,arguments)}),formatDoc:oe(function ND(e,t){return Et.apply(this,arguments)}),printToDoc:oe(function jD(e,t){return yt.apply(this,arguments)}),printDocToString:oe(function PD(e,t){return vt.apply(this,arguments)})},oi=Wt}}]);
4
+ //# sourceMappingURL=996.js.map
5
+ //# debugId=54062e4d-a0ab-5ef8-bc8a-94efb6d0ccc1
@@ -182,7 +182,7 @@
182
182
  "AUTHORIZATION_PROVIDER_OAUTH2": "OAuth 2.0",
183
183
  "SCHEMA_FORM_LIST_ADD": "Добавить",
184
184
  "SCHEMA_FORM_LIST_REMOVE": "Удалить",
185
- "PLUGINS_TEXT": "Plugins",
185
+ "PLUGINS_TEXT": "Плагины",
186
186
  "PLUGINS_SUB_TEXT": "Просмотр через доступные плагины",
187
187
  "PLUGIN_UNIQUE_NAME_TEXT": "Уникальное имя плагина",
188
188
  "PLUGIN_ADD_BUTTON": "Добавить в Альтаир",
@@ -70,17 +70,17 @@
70
70
  "SET_SUBSCRIPTION_URL_TEXT": "Введіть URL підписки сервера нижче",
71
71
  "SUBSCRIPTION_CONNECTION_PARAMS_TEXT": "Параметри підключення (у форматі JSON)",
72
72
  "SUBSCRIPTION_TYPE_TITLE": "Тип підписки",
73
- "SUBSCRIPTION_USE_DEFAULT_REQUEST_HANDLER": "Use default request handler for subscription",
74
- "REQUEST_HANDLERS_TEXT": "Request Handlers",
75
- "REQUEST_HANDLERS_SUBTEXT": "Choose the request handler you want to use for sending requests",
73
+ "SUBSCRIPTION_USE_DEFAULT_REQUEST_HANDLER": "Використовувати обробник запитів за умовчанням для підписки",
74
+ "REQUEST_HANDLERS_TEXT": "Обробники запитів",
75
+ "REQUEST_HANDLERS_SUBTEXT": "Оберіть обробника запиту, який ви хочете використовувати для відправки запитів",
76
76
  "REQUEST_HANDLER_HTTP": "HTTP",
77
77
  "REQUEST_HANDLER_WEBSOCKET": "Websocket",
78
78
  "REQUEST_HANDLER_GRAPHQL_WS": "Websocket (graphql-ws)",
79
79
  "REQUEST_HANDLER_APP_SYNC": "AWS AppSync",
80
80
  "REQUEST_HANDLER_ACTION_CABLE": "Rails ActionCable",
81
- "REQUEST_HANDLER_GRAPHQL_SSE": "Graphql over SSE",
82
- "DEFAULT_REQUEST_HANDLER_TITLE": "Default Request Handler",
83
- "REQUEST_HANDLER_PARAMS_TEXT": "Parameters (in JSON)",
81
+ "REQUEST_HANDLER_GRAPHQL_SSE": "Graphql через SSE",
82
+ "DEFAULT_REQUEST_HANDLER_TITLE": "Обробник запитів за замовчуванням",
83
+ "REQUEST_HANDLER_PARAMS_TEXT": "Параметри (в JSON)",
84
84
  "HISTORY_TEXT": "Історія",
85
85
  "HISTORY_CLEAR_TEXT": "Очистити історію",
86
86
  "HISTORY_SUB_TEXT": "Ви можете вибрати та відновити запис з історії",
@@ -182,7 +182,7 @@
182
182
  "AUTHORIZATION_PROVIDER_OAUTH2": "OAuth 2.0",
183
183
  "SCHEMA_FORM_LIST_ADD": "Додати",
184
184
  "SCHEMA_FORM_LIST_REMOVE": "Видалити",
185
- "PLUGINS_TEXT": "Plugins",
185
+ "PLUGINS_TEXT": "Плагіни",
186
186
  "PLUGINS_SUB_TEXT": "Переглянути доступні додатки",
187
187
  "PLUGIN_UNIQUE_NAME_TEXT": "Унікальна назва додатку",
188
188
  "PLUGIN_ADD_BUTTON": "Додати до Altair",