@finos/legend-application-repl-deployment 12.12.0 → 12.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,45 @@
1
+ (()=>{"use strict";var e,t,n,o={9501:(e,t,n)=>{const o=JSON.parse('{"rE":"10.0.51","XO":{"Z":"@finos/legend-logger-plugin-web-console"}}');var r,a=n(2964);class s{name;version;signature;uuid}class i{name;version;uuid=(0,a.A)();constructor(e,t){this.name=e,this.version=t}getName(){return this.name}getVersion(){return this.version}getSignature(){return`${this.getName()}@${this.getVersion()}`}getUUID(){return this.uuid}getInfo(){const e=new s;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class c{plugins=[];presets=[];usePlugins(e){return this.plugins=e,this}usePresets(e){return this.presets=e,this}configure(e){Object.keys(e).forEach((t=>{const n=e[t];this.presets.forEach((e=>{e.getName()===t&&e.configure(n)})),this.plugins.forEach((e=>{e.getName()===t&&e.configure(n)}))}))}install(){this.plugins.forEach((e=>e.install(this))),this.presets.forEach((e=>e.install(this)))}getInfo(){return{plugins:this.plugins.filter((e=>!this.getHiddenPluginNames().includes(e.getName()))).map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name))),presets:this.presets.filter((e=>!this.getHiddenPresetNames().includes(e.getName()))).map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name)))}}getHiddenPluginNames(){return[]}getHiddenPresetNames(){return[]}}!function(e){e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(r||(r={}));class l{channel;name;timestamp=Date.now();static create(e){const t=new l;return t.name=e,t}}class d extends i{level=r.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=r.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=r.INFO&&this._info(e,...t)}warn(e,...t){this.level<=r.WARN&&this._warn(e,...t)}error(e,...t){this.level<=r.ERROR&&this._error(e,...t)}}class u{loggers=[];registerPlugins(e){this.loggers=e}debug(e,...t){this.loggers.forEach((n=>n.debug(e,...t)))}info(e,...t){this.loggers.forEach((n=>n.info(e,...t)))}warn(e,...t){this.loggers.forEach((n=>n.warn(e,...t)))}error(e,...t){this.loggers.forEach((n=>n.error(e,...t)))}}const{debug:g,info:p,warn:m,error:f}=console;class h extends d{constructor(){super(o.XO.Z,o.rE)}_debug(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){p(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){f(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var E=n(1085),b=n(5873),C=n(4417),A=n(4365);const T=()=>()=>{},_=e=>(0,C.A)(e,(e=>void 0!==e)),N=(e,t,n)=>(j(0<=t&&t<e.length,`Index out of bound: ${t}`),L(e[t],n));class y extends Error{uuid=(0,a.A)();constructor(e){super(),this.message=void 0===e||""===e?"(no error message)":e}get detail(){return this.message}}class v extends Error{constructor(e,t,n){if(super(n||(t instanceof Error?t.message:t)),this.name=e,t instanceof Error){const e=(this.message.match(/\n/g)??[]).length+1;this.stack=`${(this.stack??"").split("\n").slice(0,e+1).join("\n")}\nCaused by: ${t.stack}`}else"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}}class S extends v{constructor(e){super("Illegal State Error [PLEASE NOTIFY DEVELOPER]",e)}}class I extends v{constructor(e,t){super("Unsupported Operation Error",e||t?`${e}${t?`\n${(e=>{const t=_({printFunctionName:!1,maxDepth:1});return(0,A.GP)(e,t).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,(e=>["[Array]","[Function]"].includes(e)?e:"[Object]"))})(t)}`:""}`:void 0)}}function x(e){if(!(e instanceof Error))throw new S("Expected error to be thrown")}const k=e=>{try{return e()}catch{return}};class R extends v{constructor(e,t){super("Assertion Error",e,t)}}const w=e=>null==e,O=e=>null!=e;function F(e,t=""){if(null==e)throw new R(t||"Value is nullable")}const L=(e,t="")=>(F(e,t),e);function B(e,t,n=""){if(!(e instanceof t))throw new R(n||`Value is expected to be of type '${t.name}'`)}const P=(e,t,n="")=>(B(e,t,n),e);function D(e,t=""){return function(e,t=""){if(""===L(e,t))throw new R(t||"Expected string value to be non-empty")}(e,t),e}function j(e,t=""){if(!e)throw new R(t||"Expected predicate to be truthy")}const M=e=>"string"==typeof e,U=e=>"number"==typeof e&&!isNaN(e),G=e=>"boolean"==typeof e,H=e=>"object"==typeof e&&null!==e,V=e=>H(e)&&"Object"===e.constructor.name,Y=(e,t="")=>(function(e,t=""){if(!M(e))throw new R(t||"Value is expected to be a string")}(e,t),e),W=(e,t="")=>(function(e,t=""){if(!U(e))throw new R(t||"Value is expected to be a number")}(e,t),e),$=(e,t="")=>(function(e,t=""){if(!G(e))throw new R(t||"Value is expected to be a boolean")}(e,t),e);var K=n(6651),X=n(6046),z=n(6451),q=n(8041);const J=K.v,Q="charset=utf-8";var Z,ee,te;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(Z||(Z={})),function(e){e.APPLICATION_JSON="application/json",e.APPLICATION_XML="application/xml",e.APPLICATION_ZLIB="application/zlib",e.APPLICATION_XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.TEXT_PLAIN="text/plain",e.TEXT_HTML="text/html",e.TEXT_CSV="text/csv",e.ALL="*/*",e.MESSAGE_RFC822="message/rfc822"}(ee||(ee={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(te||(te={}));const ne={mode:"cors",credentials:"include",redirect:"follow"},oe=(e,t)=>{const n={};return e&&Object.entries(e).forEach((([e,t])=>{n[e]=t})),t&&Object.entries(t).forEach((([e,t])=>{n[e]=t})),n};class re extends Error{response;payload;constructor(e,t){super(),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.name="Network Client Error",this.response=e;const{status:n,statusText:o,url:r}=e,a=`Received response with status ${n} (${o}) for ${r}`;this.message=(t?(e=>{if(H(e))return M(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&M(t.message)?t.message:e})(t).substring(0,5e3):"")||a,this.payload=t}}const ae=async(e,t,n)=>{if(n?.preprocess?.(e),!e.ok){let t;try{t=await e.text(),t=JSON.parse(t)}catch{}return Promise.reject(new re(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===J.NO_CONTENT)return Promise.resolve(void 0);const o=t.headers.Accept;switch(o){case ee.APPLICATION_JSON:return e.json();case ee.TEXT_PLAIN:return e.text();default:return Promise.reject(new re(e,`Can't process response for request with Content-Type '${o}'`))}},se=(e,t)=>{const n={};return n.Accept=ee.APPLICATION_JSON,e!==te.GET&&(n[Z.CONTENT_TYPE]=`${ee.APPLICATION_JSON};${Q}`),oe(n,t)};class ie{options={};baseUrl;constructor(e){this.baseUrl=e?.baseUrl,this.options={...ne,...e?.options??{}}}async get(e,t={},n,o,r,a){return this.request(te.GET,e,void 0,t,n,o,r,a)}async put(e,t={},n={},o,r,a,s){return this.request(te.PUT,e,t,n,o,r,a,s)}async post(e,t={},n={},o,r,a,s){return this.request(te.POST,e,t,n,o,r,a,s)}async delete(e,t={},n={},o,r,a,s){return this.request(te.DELETE,e,t,n,o,r,a,s)}async request(e,t,n,o,r,a,s,i){const c=((e,t,n)=>{if(!e&&!k((()=>new URL(t))))throw new Error(`Can't build URL string: base URL is not specified and the provided URL '${t}' is not absolute`);const o=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(O).forEach((t=>o.searchParams.append(e,t.toString()))):o.searchParams.append(e,t.toString()))})),o.toString()})(this.baseUrl,t,a??{});let l;if((M(n)||H(n))&&s?.enableCompression&&(j(e!==te.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,X.Kc)(H(e)?JSON.stringify(e):e)]))(n),r=oe(r,{[Z.CONTENT_TYPE]:`${ee.APPLICATION_ZLIB};${Q}`})),void 0!==n)if(M(n)||n instanceof Blob)l=n;else{if(!H(n))throw new R("Request body can only be either a 'string' or an 'object'");l=JSON.stringify(n)}const d={...this.options,...o,method:e,body:l,headers:se(e,r)};return fetch(c,d).then((e=>0===e.status||e.status===J.UNAUTHORIZED?i?.autoReAuthenticateUrl?(e=>new Promise((t=>{const n="AUTO_AUTHENTICATION_IFRAME",o=document.getElementById(n);o?.remove();const r=document.createElement("iframe");r.id=n,r.src=e,r.style.display="none",r.addEventListener("load",(()=>{r.remove(),t()})),document.body.appendChild(r)})))(i.autoReAuthenticateUrl).then((()=>fetch(c,d))).then((e=>ae(e,d,i))):fetch(c,d).then((e=>ae(e,d,i))):ae(e,d,i))).catch((e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(c,d).then((e=>ae(e,d,i))):Promise.reject(e)))}}const ce=(e,t,n)=>{const o=new Blob([t],{type:n}),r=URL.createObjectURL(o),a=document.createElement("a");"string"==typeof a.download?(document.body.appendChild(a),a.download=e,a.href=r,a.click(),document.body.removeChild(a)):location.replace(r)},le=(e,t=!1)=>t?z.A.parseUrl(e).query:z.A.parse(e),de=(e,t)=>{const n=t[e];return n?decodeURIComponent(n):void 0};var ue;!function(e){e.APPLICATION_SETUP__FAILURE="application.setup.failure",e.APPLICATION_LOAD__SUCCESS="application.load.success",e.APPLICATION_LOAD__FAILURE="application.load.failure",e.ILLEGAL_APPLICATION_STATE_OCCURRED="application.error.illegal-state",e.APPLICATION_CONFIGURATION__FAILURE="application.configuration.failure",e.IDENTITY_AUTO_FETCH__FAILURE="application.identity.auto-fetch.failure",e.DOCUMENTATION_FETCH__FAILURE="application.documentation.fetch.failure",e.DOCUMENTATION_LOAD__SKIP="application.documentation.load.skip",e.DOCUMENTATION_REQUIREMENT_CHECK__FAILURE="application.documentation.requirement-check.failure",e.CONTEXTUAL_DOCUMENTATION_LOAD__SKIP="application.virtual-assistant.contextual-documentation-load.skip",e.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS="application.virtual-assistant.documentation-entry.access",e.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE="application.load.terminal-command.configuration-check.failure",e.COLOR_THEME_CONFIGURATION_CHECK__FAILURE="application.layout.color-theme.configuration-check.failure",e.SETTING_CONFIGURATION_CHECK__FAILURE="application.setting.configuration-check.failure",e.SETTING_RETRIVE_FAILURE="application.setting.retrieve.failure",e.USER_DATA_RETRIEVE_FAILURE="application.user-data.retrieve.failure",e.COMMAND_CENTER_REGISTRATION__FAILURE="application.command.registration.failure",e.APPLICATION_CONTEXT__ACCESS="application.context.access",e.APPLICATION_USAGE__INTERRUPT="application.usage.interrupt",e.APPLICATION_TELEMETRY_EVENT__FAILURE="application.telemetry-event.failure",e.DEBUG="development.debug"}(ue||(ue={}));var ge=n(7542);class pe{schema;deserializeNullAsUndefined;constructor(e,t){this.schema=e,this.deserializeNullAsUndefined=Boolean(t?.deserializeNullAsUndefined)}toJson(e){return(0,ge.lK)(this.schema,e)}fromJson(e){return(0,ge.iu)(this.schema,this.deserializeNullAsUndefined?(t=e,(0,C.A)(t,(e=>null!==e))):e);var t}}const me=e=>(0,ge.Ie)((t=>void 0===t?ge._Z:(0,ge.lK)(e,t)),(t=>(0,ge.iu)(e,t))),fe=e=>(0,ge.Ie)((()=>e),(()=>e)),he=e=>(0,ge.Ie)((t=>t?(0,ge.lK)(e,t):ge._Z),(t=>t?(0,ge.iu)(e,t):ge._Z));var Ee=n(6696);class be{key;markdownText;title;text;url;related;static serialization=new pe((0,ge.PL)(be,{markdownText:(0,ge.Ie)((e=>e),(e=>e.value?e:void 0)),related:(0,ge.lq)((0,ge.p_)((0,ge.MY)())),title:(0,ge.lq)((0,ge.MY)()),text:(0,ge.lq)((0,ge.MY)()),url:(0,ge.lq)((0,ge.MY)())}));static create(e,t){const n=be.serialization.fromJson(e);return n.key=t,n}}const Ce=e=>Object.entries(e).map((e=>({key:e[0],content:be.create(e[1],e[0])})));class Ae{url;links;docRegistry=new Map;contextualDocIndex=new Map;constructor(e){this.url=e.config.documentationUrl,this.links=e.config.documentationLinkEntries,e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedDocumentationEntries?.()??[])).forEach((t=>{this.hasDocEntry(t.key)?e.logService.warn(l.create(ue.DOCUMENTATION_LOAD__SKIP),t.key):this.docRegistry.set(t.key,t.content)})),e.config.keyedDocumentationEntries.forEach((e=>this.docRegistry.set(e.key,e.content)));const t=e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraContextualDocumentationEntries?.()??[])),n=[];(0,Ee.A)(e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraRequiredDocumentationKeys?.()??[])).concat(t.map((e=>e.documentationKey)))).forEach((e=>{this.docRegistry.has(e)||n.push(e)})),n.length&&e.logService.warn(l.create(ue.DOCUMENTATION_REQUIREMENT_CHECK__FAILURE),`Can't find corresponding documentation entry for keys:\n${n.map((e=>`- ${e}`)).join("\n")}`),t.forEach((t=>{if(this.hasContextualDocEntry(t.context))e.logService.warn(l.create(ue.CONTEXTUAL_DOCUMENTATION_LOAD__SKIP),t.context);else{const e=this.getDocEntry(t.documentationKey);e&&this.contextualDocIndex.set(t.context,e)}})),e.config.contextualDocEntries.forEach((e=>{const t=this.getDocEntry(e.documentationKey);t&&this.contextualDocIndex.set(e.context,t)}))}getDocEntry(e){return this.docRegistry.get(e)}hasDocEntry(e){return this.docRegistry.has(e)}getContextualDocEntry(e){return this.contextualDocIndex.get(e)}hasContextualDocEntry(e){return this.contextualDocIndex.has(e)}getAllDocEntries(){return Array.from(this.docRegistry.values())}publishDocRegistry(){const e={};return this.docRegistry.forEach(((t,n)=>{e[n]=be.serialization.toJson(t)})),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach(((t,n)=>{e[n]=t.key})),e}}var Te,_e,Ne=n(3794);!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Te||(Te={}));class ye{state;_message;_messageFormatter;constructor(){this.state=Te.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Te.INITIAL,this}inProgress(){return this.state=Te.IN_PROGRESS,this}fail(){return this.state=Te.FAILED,this}pass(){return this.state=Te.SUCCEEDED,this}complete(e=!0){return e?this.pass():this.fail(),this}sync(e){const t=e.exportData();this.state=t.state,this._message=t.message}exportData(){return{state:this.state,message:this._message}}get isInInitialState(){return this.state===Te.INITIAL}get isInProgress(){return this.state===Te.IN_PROGRESS}get hasFailed(){return this.state===Te.FAILED}get hasSucceeded(){return this.state===Te.SUCCEEDED}get message(){return this._message?this._messageFormatter?this._messageFormatter(this._message):this._message:void 0}get hasCompleted(){return this.hasFailed||this.hasSucceeded}static create(){return(0,Ne.Gn)(new ye,{state:Ne.sH,_message:Ne.sH,reset:Ne.XI,inProgress:Ne.XI,pass:Ne.XI,fail:Ne.XI,complete:Ne.XI,setMessage:Ne.XI,sync:Ne.XI,isInInitialState:Ne.EW,isInProgress:Ne.EW,hasFailed:Ne.EW,hasSucceeded:Ne.EW,hasCompleted:Ne.EW,message:Ne.EW})}}!function(e){e.USER="user",e.ENV="env",e.RESULT="result",e.ERROR="error",e.HTTP_STATUS="status",e.HTTP_REQUEST_METHOD="method",e.HTTP_REQUEST_URL="url"}(_e||(_e={}));class ve{traceEntries=[];setup(e){this.traceEntries=e}bootstrap(e){this.traceEntries.forEach((t=>{t.plugin.bootstrap(t.clientSpan,e)}))}reportSuccess(){this.traceEntries.forEach((e=>{e.plugin.concludeClientSpan(e.clientSpan,void 0)}))}reportError(e){this.traceEntries.forEach((t=>{t.plugin.concludeClientSpan(t.clientSpan,e)}))}close(){this.traceEntries.forEach((e=>{e.plugin.concludeServerSpan(e.serverSpan)}))}}class Se{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,o){const r=new ve;return e&&r.setup(this.plugins.map((r=>{const a=r.createClientSpan(e);return{clientSpan:a,serverSpan:r.createServerSpan(a,t,n,o),plugin:r}}))),r}}const Ie=n(7102).A;var xe,ke;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(xe||(xe={}));class Re{currentMode=xe.STANDARD;onSearchModeChange;constructor(e){(0,Ne.Gn)(this,{currentMode:Ne.sH,isAdvancedSearchActive:Ne.EW,setCurrentMode:Ne.XI}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==xe.STANDARD}generateSearchText(e){switch(this.currentMode){case xe.INCLUDE:return`'"${e}"`;case xe.EXACT:return`="${e}"`;case xe.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(ke||(ke={}));class we{uuid=(0,a.A)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,Ne.Gn)(this,{isOpen:Ne.sH,setIsOpen:Ne.XI}),this.documentationKey=e.key,this.title=D(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class Oe{uuid=(0,a.A)();context;title;content;url;related;constructor(e,t,n){this.context=e,this.title=t.title,this.content=t.markdownText??t.text,this.url=t.url,this.related=n}}const Fe=e=>Boolean(e.title&&(e.url??e.text??e.markdownText)),Le=e=>Fe(e)&&Boolean(e.text??e.markdownText);class Be{applicationStore;panelRenderingKey=(0,a.A)();isHidden=!0;isOpen=!1;isPanelMaximized=!1;selectedTab=ke.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=ye.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,Ne.Gn)(this,{isHidden:Ne.sH,isOpen:Ne.sH,isPanelMaximized:Ne.sH,panelRenderingKey:Ne.sH,isOverSearchLimit:Ne.sH,selectedTab:Ne.sH,searchText:Ne.sH,searchResults:Ne.sH,currentDocumentationEntry:Ne.sH,showSearchConfigurationMenu:Ne.sH,currentContextualDocumentationEntry:Ne.EW,setIsHidden:Ne.XI,setIsOpen:Ne.XI,setIsPanelMaximized:Ne.XI,setSelectedTab:Ne.XI,setSearchText:Ne.XI,resetSearch:Ne.XI,search:Ne.XI,openDocumentationEntry:Ne.XI,refreshPanelRendering:Ne.XI,setShowSearchConfigurationMenu:Ne.XI}),this.applicationStore=e,this.searchEngine=new Ie(this.applicationStore.documentationService.getAllDocEntries().filter(Fe),{includeScore:!0,shouldSort:!0,ignoreLocation:!0,threshold:.2,keys:[{name:"title",weight:4},{name:"text",weight:1},{name:"markdownText.value",weight:1}],useExtendedSearch:!0}),this.searchConfigurationState=new Re((()=>{this.search()}))}get currentContextualDocumentationEntry(){if(!this.applicationStore.navigationContextService.currentContext)return;const e=this.applicationStore.navigationContextService.currentContext.key,t=this.applicationStore.documentationService.getContextualDocEntry(e);return t?new Oe(e,t,(t.related??[]).map((e=>this.applicationStore.documentationService.getDocEntry(e))).filter(O).filter(Fe).map((e=>new we(e)))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new we(t),this.currentDocumentationEntry.setIsOpen(!0),this.resetSearch())}openDocumentationEntryLink(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(Le(t)?this.openDocumentationEntry(t.key):t.url&&this.applicationStore.navigationService.navigator.visitAddress(t.url))}setIsHidden(e){this.isHidden=e}setIsPanelMaximized(e){this.isPanelMaximized=e}hideAssistant(){this.setIsHidden(!0),this.setIsOpen(!1)}toggleAssistant(){this.isHidden?this.setIsHidden(!1):this.hideAssistant()}setIsOpen(e){this.isOpen=e}setSelectedTab(e){this.selectedTab=e}refreshPanelRendering(){this.panelRenderingKey=(0,a.A)()}setSearchText(e){this.searchText=e}resetSearch(){this.searchText="",this.searchResults=[],this.searchState.complete()}search(){this.searchText?(this.currentDocumentationEntry=void 0,this.searchState.inProgress(),this.searchResults=Array.from(this.searchEngine.search(this.searchConfigurationState.generateSearchText(this.searchText),{limit:101}).values()).map((e=>new we(e.item))),this.searchResults.length>100?(this.isOverSearchLimit=!0,this.searchResults=this.searchResults.slice(0,100)):this.isOverSearchLimit=!1,this.searchState.complete()):this.searchResults=[]}setShowSearchConfigurationMenu(e){this.showSearchConfigurationMenu=e}}class Pe{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach((n=>n.notify(e,t)))}}class De{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(ue.APPLICATION_LOAD__SUCCESS,{application:{name:t.config.appName,version:t.config.appVersion,env:t.config.env},browser:{userAgent:navigator.userAgent},screen:{height:window.screen.height,width:window.screen.width}})}static logEvent_ApplicationContextAccessed(e,t){e.logEvent(ue.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(ue.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(ue.APPLICATION_USAGE__INTERRUPT,{})}}class je{applicationStore;contextStack=[];constructor(e){(0,Ne.Gn)(this,{contextStack:Ne.sH,currentContext:Ne.EW,push:Ne.XI,pop:Ne.XI}),this.applicationStore=e}get currentContext(){return this.contextStack.length?this.contextStack[this.contextStack.length-1]:void 0}push(e){const t=this.contextStack.filter((e=>!e.isTransient));if(t.find((t=>t.key===e.key)))throw new S(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[])).includes(e.key)&&De.logEvent_ApplicationContextAccessed(this.applicationStore.telemetryService,{key:e.key}),this.contextStack=t}pop(e){const t=this.contextStack.find((t=>t.key===e.key));if(!t)return;const n=this.contextStack.indexOf(t);-1!==n&&(this.contextStack=this.contextStack.slice(0,n).filter((e=>!e.isTransient)))}}class Me{applicationStore;commandRegistry=new Map;constructor(e){(0,Ne.Gn)(this,{commandRegistry:Ne.sH,registerCommand:Ne.XI,deregisterCommand:Ne.XI}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(l.create(ue.COMMAND_CENTER_REGISTRATION__FAILURE),"Can't register command: command is already registered"):this.commandRegistry.set(t,e)}deregisterCommand(e){this.commandRegistry.delete(e)}runCommand(e,t){const n=this.commandRegistry.get(e);return!(!n||n.trigger&&!n.trigger()||(n.action?.(t),0))}}class Ue{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,Ne.Gn)(this,{keyMap:Ne.sH,commandKeyMap:Ne.sH,isHotkeysBlocked:Ne.sH,addHotkey:Ne.XI,blockGlobalHotkeys:Ne.XI,unblockGlobalHotkeys:Ne.XI}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedCommandConfigEntries?.()??[])).forEach((e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(O);t.length?t.forEach((t=>this.addHotkey(e.key,t))):this.commandKeyMap.has(e.key)||this.commandKeyMap.set(e.key,[])}))}blockGlobalHotkeys(){this.isHotkeysBlocked=!0}unblockGlobalHotkeys(){this.isHotkeysBlocked=!1}addHotkey(e,t){this.commandKeyMap.set(e,[...this.commandKeyMap.get(e)??[],t]),this.keyMap.set(t,[...(this.keyMap.get(t)??[]).filter((t=>t!==e)),e])}dispatch(e){if(this.isHotkeysBlocked)return;const t=this.keyMap.get(e)??[];for(const e of t)if(this.applicationStore.commandService.runCommand(e))return}}var Ge=n(4594),He=n(2338),Ve=n(4462),Ye=n(720),We=n(5974),$e=n(382);const Ke="Roboto Mono",Xe="yyyy-MM-dd'T'HH:mm:ss";var ze;!function(e){e.RESET="",e.BOLD="",e.DIM="",e.ITALIC="",e.UNDERLINE="",e.BLINKING="",e.STRIKETHROUGH="",e.BLACK="",e.RED="",e.GREEN="",e.YELLOW="",e.BLUE="",e.MAGENTA="",e.CYAN="",e.WHITE="",e.BRIGHT_BLACK="",e.BRIGHT_RED="",e.BRIGHT_GREEN="",e.BRIGHT_YELLOW="",e.BRIGHT_BLUE="",e.BRIGHT_MAGENTA="",e.BRIGHT_CYAN="",e.BRIGHT_WHITE="",e.DIMMED_BLACK="",e.DIMMED_RED="",e.DIMMED_GREEN="",e.DIMMED_YELLOW="",e.DIMMED_BLUE="",e.DIMMED_MAGENTA="",e.DIMMED_CYAN="",e.DIMMED_WHITE="",e.BLACK_BG="",e.RED_BG="",e.GREEN_BG="",e.YELLOW_BG="",e.BLUE_BG="",e.MAGENTA_BG="",e.CYAN_BG="",e.WHITE_BG="",e.BRIGHT_BLACK_BG="",e.BRIGHT_RED_BG="",e.BRIGHT_GREEN_BG="",e.BRIGHT_YELLOW_BG="",e.BRIGHT_BLUE_BG="",e.BRIGHT_MAGENTA_BG="",e.BRIGHT_CYAN_BG="",e.BRIGHT_WHITE_BG="",e.DIMMED_BLACK_BG="",e.DIMMED_RED_BG="",e.DIMMED_GREEN_BG="",e.DIMMED_YELLOW_BG="",e.DIMMED_BLUE_BG="",e.DIMMED_MAGENTA_BG="",e.DIMMED_CYAN_BG="",e.DIMMED_WHITE_BG=""}(ze||(ze={}));const qe=(e,t)=>`[${e};${t}H`;class Je{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,Ne.Gn)(this,{searchText:Ne.sH,useRegex:Ne.sH,matchWholeWord:Ne.sH,matchCaseSensitive:Ne.sH,resultCount:Ne.sH,currentResultIndex:Ne.sH})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class Qe{applicationStore;searchConfig=new Je;constructor(e){(0,Ne.Gn)(this,{setSearchText:Ne.XI,setSearchRegex:Ne.XI,setSearchWholeWord:Ne.XI,setSearchCaseSensitive:Ne.XI,setSearchResultCount:Ne.XI,setSearchCurrentResultIndex:Ne.XI}),this.applicationStore=e}setSearchText(e){this.searchConfig.searchText=e}setSearchRegex(e){this.searchConfig.useRegex=e}setSearchWholeWord(e){this.searchConfig.matchWholeWord=e}setSearchCaseSensitive(e){this.searchConfig.matchCaseSensitive=e}setSearchResultCount(e){this.searchConfig.resultCount=e}setSearchCurrentResultIndex(e){this.searchConfig.currentResultIndex=e}}class Ze extends Qe{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,Ne.Gn)(this,{preserveLog:Ne.sH,setPreserveLog:Ne.XI})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var et=n(9481);n(4404),n(1880);const tt=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,nt=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],ot=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,(e=>nt.includes(e.toLowerCase())?e.toLowerCase():tt(e))).replace(/^(?:\w+)\b/u,(e=>tt(e))).replace(/\b(?:\w+)$/u,(e=>tt(e)));var rt;function at(e){return e.trim().split(" ").map((e=>{const t=e.split(/\b\+/),n=L(t.pop(),"Can't parse key binding: last part must be a non-modifier key");return{modifiers:t,key:n}}))}!function(e){e.TAB="Tab",e.CAPSLOCK="CapsLock",e.SHIFT="Shift",e.META="Meta",e.ALT="Alt",e.CONTROL="Control",e.SPACE="Space",e.ESC="Escape",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.ENTER="Enter",e.DELETE="Delete",e.BACKSPACE="Backspace",e.BACKQUOTE="Backquote"}(rt||(rt={}));const st=(e,t)=>t.key===e.code&&t.modifiers.every((t=>e.getModifierState(t)))&&![rt.SHIFT,rt.META,rt.ALT,rt.CONTROL].find((n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n))),it=(e,t)=>st(e,L(at(t)[0]));function ct(e){const t=new Map;let n=null;return o=>{o instanceof KeyboardEvent&&((0,et.A)(Object.values(e).flatMap((e=>e.combinations.map((t=>({combination:t,handler:e.handler}))))).filter((e=>e.combination.length)),(e=>e.combination)).forEach((e=>{const n=e.combination,r=at(e.combination);if(!r.length)return;const a=t.get(n)??r,s=L(a[0]);st(o,s)?a.length>1?t.set(n,a.slice(1)):(t.delete(n),e.handler(n,o)):o.getModifierState(o.key)||t.delete(n)})),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}var lt=n(7063),dt=n(2285),ut=n(5844);const gt=(0,lt.A)({transitions:{create:()=>"none"}}),pt=e=>{const{children:t}=e;return(0,E.jsx)(dt.A,{injectFirst:!0,children:(0,E.jsx)(ut.A,{theme:gt,children:t})})};var mt=n(9676),ft=n(3432),ht=n(5150),Et=n(306),bt=n(692),Ct=n(3416),At=n(4357);const Tt=(e,t)=>{const n=e=>{const{children:n,className:o}=e;return(0,E.jsx)("div",{className:(0,At.$)(t,o),"data-testid":e["data-testid"],children:n})};return n.displayName=e,n},_t=e=>{const{children:t,darkMode:n,className:o}=e;return(0,E.jsx)("div",{className:(0,At.$)("modal",{"modal--dark":n},o),children:t})},Nt=e=>{const{title:t,icon:n,className:o}=e;return(0,E.jsxs)("div",{className:(0,At.$)("modal__title",o),children:[n&&(0,E.jsx)("div",{className:"modal__title__icon",children:n}),(0,E.jsx)("div",{className:"modal__title__label",children:ot(t)})]})},yt=e=>{const{title:t,children:n,className:o}=e;return!n&&t?(0,E.jsx)("div",{className:(0,At.$)("modal__header",o),children:(0,E.jsx)(Nt,{title:t})}):(0,E.jsx)("div",{className:(0,At.$)("modal__header",o),children:n})},vt=(Tt("ModalHeaderActions","modal__header__actions"),Tt("ModalBody","modal__body")),St=Tt("ModalFooter","modal__footer");var It,xt;Tt("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION",e.ERROR="ERROR"}(It||(It={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(xt||(xt={}));class kt{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,Ne.Gn)(this,{blockingAlertInfo:Ne.sH,actionAlertInfo:Ne.sH,setBlockingAlert:Ne.XI,setActionAlertInfo:Ne.XI}),this.applicationStore=e}setBlockingAlert(e){e?this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys():this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys(),this.blockingAlertInfo=e}setActionAlertInfo(e){this.actionAlertInfo&&e&&this.applicationStore.notificationService.notifyIllegalState("Action alert is stacked: new alert is invoked while another one is being displayed"),e?this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys():this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys(),this.actionAlertInfo=e}}var Rt=n(4041);const wt=(0,Rt.createContext)(void 0),Ot=()=>L((0,Rt.useContext)(wt),"Can't find application store in context"),Ft=({children:e,store:t})=>{const n=(0,ht.iz)((()=>t));return(0,E.jsx)(wt.Provider,{value:n,children:e})},Lt=e=>{switch(e){case xt.PROCEED_WITH_CAUTION:return"btn--caution";case xt.PROCEED:case xt.STANDARD:default:return"btn--dark"}},Bt=(0,ht.PA)((e=>{const{info:t}=e,n=Ot(),{title:o,message:r,prompt:a,type:s,onClose:i,onEnter:c,actions:l}=t,d=()=>{i?.(),n.alertService.setActionAlertInfo(void 0)};return(0,E.jsx)(Ct.A,{open:Boolean(n.alertService.actionAlertInfo),onClose:T,TransitionProps:{onEnter:()=>c?.()},children:(0,E.jsxs)("form",{onSubmit:e=>{e.preventDefault(),l.find((e=>e.default))?.handler?.(),d()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(s??It.STANDARD).toLowerCase()}`,children:[o&&(0,E.jsx)(yt,{title:o}),(0,E.jsxs)(vt,{children:[(0,E.jsx)("div",{className:"blocking-alert__summary-text",children:r}),(0,E.jsx)("div",{className:"blocking-alert__prompt-text",children:a})]}),(0,E.jsxs)(St,{children:[l.map(((e,t)=>(0,E.jsx)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${Lt(e.type??xt.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),d()},autoFocus:Boolean(e.default),children:e.label},t))),!l.length&&(0,E.jsx)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:d,children:"Cancel"})]})]})})})),Pt=(0,ht.PA)((()=>{const e=Ot().alertService.actionAlertInfo;return e?(0,E.jsx)(Bt,{info:e}):null})),Dt=e=>{const{isLoading:t,className:n}=e,o=(0,Rt.useRef)(null);return(0,Rt.useEffect)((()=>{o.current&&(t?o.current.parentElement?.classList.add("panel-loading-indicator__container"):o.current.parentElement?.classList.remove("panel-loading-indicator__container"))}),[t]),(0,E.jsx)("div",{ref:o,className:(0,At.$)(n,"panel-loading-indicator"+(t?"":"--disabled"))})},jt=(0,ht.PA)((()=>{const e=Ot(),t=e.alertService.blockingAlertInfo;return t?(0,E.jsx)(Ct.A,{open:Boolean(t),onClose:T,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,E.jsxs)(_t,{darkMode:!e.layoutService.TEMPORARY__isLightColorThemeEnabled,className:"blocking-alert",children:[(0,E.jsx)(Dt,{isLoading:Boolean(t.showLoading)}),(0,E.jsxs)(vt,{children:[(0,E.jsx)("div",{className:"blocking-alert__message",children:t.message}),t.prompt&&(0,E.jsx)("div",{className:"blocking-alert__message__prompt",children:t.prompt})]})]})}):null}));var Mt=n(4269),Ut=n(9896),Gt=n(6750),Ht=n(7997),Vt=n(6819);const Yt=Mt.RQJ,Wt=Ut.QRP,$t=Gt.QCr,Kt=Gt._Hm,Xt=Gt.Pcn,zt=Gt.gZZ,qt=Gt.__w,Jt=Gt.KSO,Qt=Gt.UnJ,Zt=Gt.A7C,en=Gt.BS8,tn=Gt.KRc,nn=Gt.Su4,on=Gt.kxO,rn=Gt.vq8,an=Gt.GfC,sn=Gt.SoL,cn=Gt.Wx3,ln=Ht.f7n,dn=Ht.Lun,un=Vt.oss,gn=Vt.Br,pn=Vt.YZI;var mn=n(2801),fn=n(8960);const hn=6e3;var En;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(En||(En={}));class bn{severity;message;actions;autoHideDuration;constructor(e,t,n,o){this.severity=e,this.message=t,this.actions=n,this.autoHideDuration=o}}class Cn{notification;constructor(){(0,Ne.Gn)(this,{notification:Ne.sH,setNotification:Ne.XI,notify:Ne.XI,notifySuccess:Ne.XI,notifyWarning:Ne.XI,notifyIllegalState:Ne.XI,notifyError:Ne.XI})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new bn(En.INFO,e,t??[],null===n?void 0:n??hn))}notifySuccess(e,t,n){this.setNotification(new bn(En.SUCCESS,e,t??[],null===n?void 0:n??hn))}notifyWarning(e,t,n){this.setNotification(new bn(En.WARNING,e instanceof Error?e.message:e,t??[],null===n?void 0:n??hn))}notifyError(e,t){const n=this.getErrorMessage(e);n&&this.setNotification(new bn(En.ERROR,n,t??[],void 0))}getErrorMessage(e){let t;return e instanceof y?t=e.detail:e instanceof Error?t=e.message:(j(M(e),"Can't display error"),t=e),t}notifyIllegalState(e,t,n){this.setNotification(new bn(En.ILEGAL_STATE,M(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t??[],null===n?void 0:n??hn))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return x(e),this.notifyIllegalState(e.message),t}}}const An=(0,ht.PA)((()=>{const e=Ot(),t=e.notificationService.notification,n=Boolean(t),o=t?.message??"",r=t?.severity??En.INFO,[a,s]=(0,Rt.useState)(!1);let i=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,E.jsx)(qt,{})});switch(r){case En.ILEGAL_STATE:i=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(tn,{})});break;case En.ERROR:i=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(Kt,{})});break;case En.WARNING:i=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,E.jsx)(en,{})});break;case En.SUCCESS:i=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,E.jsx)(Zt,{})})}const c=()=>{e.notificationService.setNotification(void 0),s(!1)},l=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(o)));return(0,E.jsx)(mn.A,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:hn,onClose:(e,t)=>{"timeout"===t&&c()},children:(0,E.jsx)(fn.A,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,E.jsxs)("div",{className:"notification__message__content",children:[i,(0,E.jsx)("div",{className:(0,At.$)("notification__message__content__text",{"notification__message__content__text--expanded":a}),onClick:l,title:"Click to Copy",children:o})]}),action:[(0,E.jsx)("button",{className:"notification__action",onClick:()=>s(!a),tabIndex:-1,title:a?"Collapse":"Expand",children:a?(0,E.jsx)(un,{}):(0,E.jsx)(gn,{})},"expand"),(0,E.jsx)("button",{className:"notification__action",onClick:c,tabIndex:-1,title:"Dismiss",children:(0,E.jsx)($t,{})},"close")]})},"string"==typeof o||"number"==typeof o?o:"")}));var Tn=n(877);const _n=e=>{const{children:t,classes:n,...o}=e;return(0,E.jsx)(Tn.A,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...o,children:e.children})},Nn=e=>{const{className:t,children:n,menuProps:o,content:r,disabled:a,onClose:s,onOpen:i}=e,c=(0,Rt.useRef)(null),[l,d]=(0,Rt.useState)(!1),[u,g]=(0,Rt.useState)(),[p,m]=(0,Rt.useState)(0),[f,h]=(0,Rt.useState)(0),b=()=>{g(void 0),d(!1),h(0),m(0)},C=e=>{e.stopPropagation(),e.preventDefault(),b(),s?.()},A=e=>{if(e.stopPropagation(),e.preventDefault(),!a&&(i?.(),c.current)){const t=c.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),o=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:r,clientY:a,target:i}=e,l=i;if(u!==l&&!(document.elementsFromPoint(r,a).some((e=>e===l))&&n<=r&&r<=n+t.width&&o<=a&&a<=o+t.height))return b(),void s?.();g(l),d(!0),h(a),m(r)}};return(0,E.jsxs)("div",{ref:c,className:t,onContextMenu:A,children:[n,(0,E.jsx)(_n,{open:l,anchorPosition:{left:p,top:f},onClose:C,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:A},disableRestoreFocus:!0,transitionDuration:0,onClick:C,...o,children:l&&r},`${p}, ${f}`)]})},yn=(0,Rt.forwardRef)((function(e,t){const{className:n,children:o,...r}=e;return(0,E.jsx)("div",{ref:t,className:(0,At.$)("menu",n),...r,children:o})})),vn=e=>{const{className:t,onClick:n,title:o,disabled:r,children:a,...s}=e;return(0,E.jsx)("button",{className:(0,At.$)("menu__item",t),disabled:Boolean(r),title:o,onClick:n,...s,children:a})};Tt("MenuContentDivider","menu__divider"),Tt("MenuContentItemIcon","menu__item__icon"),Tt("MenuContentItemLabel","menu__item__label");var Sn=n(2973),In=n(3310),xn=n(3927);const kn=e=>((0,Rt.useEffect)((()=>{xn.N.initialize({startOnLoad:!0,theme:"dark"}),xn.N.contentLoaded()}),[e.value]),(0,E.jsx)(Sn.o,{className:(0,At.$)("markdown-content",e.className),remarkPlugins:[In.A],components:e.components??{code:e=>{const{children:t,className:n,node:o,...r}=e,a=/language-(?<language>\w+)/.exec(n??"");return a?.groups?.language?(0,E.jsx)("code",{...r,className:(0,At.$)(a.groups.language),children:t}):(0,E.jsx)("code",{...r,className:n,children:t})}},children:e.value.value}));var Rn=n(5143);const wn=e=>{const{children:t}=e,{ref:n,width:o,height:r}=(0,Rn.u)({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[a,s]=(0,Rt.useState)(!1),{ref:i,width:c,height:l}=(0,Rn.u)({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,Rt.useEffect)((()=>{s((c??0)>(o??0)+40&&(l??0)>(r??0)+40)}),[c,l,o,r]),(0,E.jsx)("div",{ref:i,className:"panel__content__blank",children:(0,E.jsx)("div",{ref:n,className:(0,At.$)("panel__content__blank__content",{"panel__content__blank__content--hide":!a}),children:t})})};var On=n(1122),Fn=n(9514),Ln=n(8347);const Bn=e=>{const{children:t,options:n,size:o,className:r,...a}=e,s=((e,t)=>{const n=[];for(let o=0;o<e.length;o+=t)n.push(e.slice(o,o+t));return n})(n,o);return(0,E.jsxs)("div",{className:(0,At.$)("mui-radio-group",r),children:[s.map(((e,t)=>(0,E.jsx)("div",{children:(0,E.jsx)(On.A,{className:"mui-radio-group__group",...a,children:e.map((e=>(0,E.jsx)(Fn.A,{className:"mui-radio-group__group__column",style:{width:100/o+"%"},value:e,control:(0,E.jsx)(Ln.A,{className:"mui-radio-group__group__item__radio-btn",classes:{checked:"mui-radio-group__group__item__radio-btn--checked"}}),label:(0,E.jsx)("div",{className:"mui-radio-group__group__item__label",children:e})},e)))})},t))),t]})};var Pn=n(1090);const Dn=e=>{const{children:t,...n}=e;return(0,E.jsx)(Pn.Ay,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children})};var jn,Mn=n(9463),Un=n(5318),Gn=n(5461);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(jn||(jn={}));const Hn=(0,ht.PA)((e=>{const{entry:t}=e,n=Ot(),o=()=>{t.isOpen||De.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey}),t.setIsOpen(!t.isOpen)},r=n.guardUnhandledError((()=>n.clipboardService.copyTextToClipboard(t.documentationKey)));return(0,E.jsx)(Nn,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsx)(yn,{children:(0,E.jsx)(vn,{onClick:r,children:"Copy Documentation Key"})}),children:(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry",children:[(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,E.jsx)("button",{className:(0,At.$)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:o,children:t.isOpen?(0,E.jsx)(un,{}):(0,E.jsx)(pn,{})}),t.url?(0,E.jsx)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{De.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey})},title:"Click to see external documentation",children:t.title}):(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__title",onClick:o,children:t.title})]}),t.isOpen&&t.content&&(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content",children:M(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content}):(0,E.jsx)(kn,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content})})]})})})),Vn=(0,ht.PA)((()=>{const e=Ot(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(t?.context??""))),o=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??""))),r=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map((e=>e.key)).join(" > "))));return(0,E.jsxs)(Nn,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(yn,{children:[(0,E.jsx)(vn,{onClick:n,children:"Copy Context ID"}),(0,E.jsx)(vn,{onClick:o,children:"Copy Current Context ID"}),(0,E.jsx)(vn,{onClick:r,children:"Copy Context Stack"})]}),children:[t&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__title",children:t.title}),t.content&&(0,E.jsx)(E.Fragment,{children:M(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__text",children:t.content}):(0,E.jsx)(kn,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content})}),t.related.length&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]}),t.related.map((e=>(0,E.jsx)(Hn,{entry:e},e.uuid)))]})]}),!t&&(0,E.jsx)(wn,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(sn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"})]})})]})})),Yn=(0,ht.PA)((()=>{const e=Ot(),t=(0,Rt.useRef)(null),n=e.assistantService,o=n.searchText,r=(0,Rt.useMemo)((()=>(0,Un.A)((()=>n.search()),100)),[n]);return(0,Rt.useEffect)((()=>{t.current?.focus()}),[]),(0,E.jsxs)("div",{className:"virtual-assistant__search",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__header",children:[(0,E.jsx)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,At.$)("virtual-assistant__search__input input--dark",{"virtual-assistant__search__input--searching":o}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),r()},value:o,placeholder:"Ask me a question"}),o&&(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")}),(0,E.jsx)("button",{className:(0,At.$)("virtual-assistant__search__input__config__trigger",{"virtual-assistant__search__input__config__trigger--toggled":n.showSearchConfigurationMenu,"virtual-assistant__search__input__config__trigger--active":n.searchConfigurationState.isAdvancedSearchActive}),tabIndex:-1,onClick:()=>n.setShowSearchConfigurationMenu(!n.showSearchConfigurationMenu),title:(n.searchConfigurationState.isAdvancedSearchActive?"Advanced search is currently active\n":"")+"Click to toggle search config menu",children:(0,E.jsx)(Xt,{})}),o?(0,E.jsx)("button",{className:"virtual-assistant__search__input__clear-btn",tabIndex:-1,onClick:()=>{n.resetSearch(),n.currentDocumentationEntry=void 0,t.current?.focus()},title:"Clear",children:(0,E.jsx)($t,{})}):(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,E.jsx)(Jt,{})})]}),(0,E.jsxs)("div",{className:"virtual-assistant__search__content",children:[(0,E.jsx)(Dt,{isLoading:n.searchState.isInProgress}),(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(jn.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,E.jsx)("div",{onClick:()=>n.openDocumentationEntryLink(jn.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX),title:"Click to see documentation",className:"virtual-assistant__search__input__advanced-config__panel__header__label__hint",children:(0,E.jsx)(zt,{})})]}),(0,E.jsx)("div",{children:(0,E.jsx)(Bn,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[xe.STANDARD,xe.INCLUDE,xe.EXACT,xe.INVERSE],size:1})})]})}),n.currentDocumentationEntry&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:(0,E.jsx)(Hn,{entry:n.currentDocumentationEntry},n.currentDocumentationEntry.uuid)}),!n.currentDocumentationEntry&&(0,E.jsxs)(E.Fragment,{children:[Boolean(n.searchResults.length)&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map((e=>(0,E.jsx)(Hn,{entry:e},e.uuid)))}),o&&!n.searchResults.length&&(0,E.jsx)(wn,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(cn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."})]})}),!o&&!n.searchResults.length&&(0,E.jsx)(Nn,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(yn,{children:[(0,E.jsx)(vn,{onClick:()=>{ce(`documentation-registry_${(0,Gn.GP)(new Date(Date.now()),Xe)}.json`,JSON.stringify(e.documentationService.publishDocRegistry(),void 0,2),ee.APPLICATION_JSON)},children:"Download documentation registry"}),(0,E.jsx)(vn,{onClick:()=>{ce(`documentation-registry_${(0,Gn.GP)(new Date(Date.now()),Xe)}.json`,JSON.stringify(e.documentationService.publishContextualDocIndex(),void 0,2),ee.APPLICATION_JSON)},children:"Download contextual documentation mapping"})]}),children:(0,E.jsxs)("div",{className:"virtual-assistant__character",children:[(0,E.jsxs)("div",{className:"virtual-assistant__character__figure",children:[(0,E.jsx)(an,{className:"virtual-assistant__character__hat"}),(0,E.jsx)(dn,{className:"virtual-assistant__character__glasses"}),(0,E.jsx)(ln,{className:"virtual-assistant__character__beard"})]}),(0,E.jsx)("div",{className:"virtual-assistant__character__greeting",children:"Bonjour, It's Pierre!"}),(0,E.jsx)("div",{className:"virtual-assistant__character__question",children:"How can I help today?"})]})})]})]})]})})),Wn=(0,ht.PA)((e=>{const{triggerElement:t}=e,n=Ot(),o=n.assistantService,r=o.currentContextualDocumentationEntry,a=o.selectedTab,s=n.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraVirtualAssistantViewConfigurations?.()??[])),i=s.find((e=>e.key===a));return(0,E.jsx)(Dn,{open:o.isOpen,className:"virtual-assistant__panel__container",anchorEl:t,hideBackdrop:!0,PaperProps:{classes:{root:"virtual-assistant__panel__container__root"}},disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"},children:(0,E.jsxs)("div",{className:(0,At.$)("virtual-assistant__panel",{"virtual-assistant__panel--maximized":o.isPanelMaximized}),tabIndex:0,onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())},children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header",children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tabs",children:[(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":a===ke.SEARCH}),onClick:()=>o.setSelectedTab(ke.SEARCH),title:"Search",children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:(0,E.jsx)(Jt,{})})}),(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":a===ke.CONTEXTUAL_SUPPORT}),onClick:()=>o.setSelectedTab(ke.CONTEXTUAL_SUPPORT),title:"Contextual Support",children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tab__content",children:[(0,E.jsx)(rn,{}),r&&(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__indicator",title:"Contextual support available"})]})}),s.map((e=>(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":a===e.key}),onClick:()=>{o.setSelectedTab(e.key),e.autoExpandOnOpen&&o.setIsPanelMaximized(!0)},title:e.title,children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:e.icon??(0,E.jsx)(zt,{})})},e.key)))]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__actions",children:[(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>o.setIsPanelMaximized(!o.isPanelMaximized),title:o.isPanelMaximized?"Minimize":"Maximize",children:o.isPanelMaximized?(0,E.jsx)(nn,{}):(0,E.jsx)(on,{})}),(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>o.setIsOpen(!1),title:"Close",children:(0,E.jsx)(Yt,{className:"virtual-assistant__panel__icon__close"})})]})]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__content",children:[a===ke.SEARCH&&(0,E.jsx)(Yn,{}),a===ke.CONTEXTUAL_SUPPORT&&(0,E.jsx)(Vn,{}),i?.renderer()]})]})},o.panelRenderingKey)})),$n=(0,ht.PA)((()=>{const[e,t]=(0,Rt.useState)(!1),[n,o]=(0,Rt.useState)((0,a.A)()),r=Ot(),s=(0,Rt.useRef)(null),i=r.assistantService,c=i.currentContextualDocumentationEntry,l=()=>{!i.isOpen&&c&&i.setSelectedTab(ke.CONTEXTUAL_SUPPORT),i.setIsOpen(!i.isOpen)};return(0,Rt.useEffect)((()=>{i.isHidden&&o((0,a.A)())}),[i.isHidden]),(0,E.jsx)(Mn,{bounds:"parent",onStart:()=>t(!0),onStop:()=>t(!1),nodeRef:s,handle:".virtual-assistant__station__drag-handle",children:(0,E.jsxs)("div",{className:"virtual-assistant",ref:s,children:[(0,E.jsxs)("div",{className:(0,At.$)("virtual-assistant__station",{"virtual-assistant__station--hidden":i.isHidden,"virtual-assistant__station--active":Boolean(c)}),children:[(0,E.jsx)("button",{className:"virtual-assistant__station__hide-button",title:"Hide assistant",onClick:()=>{r.assistantService.toggleAssistant()},children:(0,E.jsx)(Qt,{})}),(0,E.jsx)("button",{className:"virtual-assistant__station__trigger",tabIndex:-1,onClick:l,title:i.isOpen?"Click to close assistant panel":(c?"Contextual support available.\n":"")+"Click to open Assistant...",children:(0,E.jsxs)("div",{className:"virtual-assistant__station__character",children:[(0,E.jsx)(an,{className:"virtual-assistant__station__character__hat"}),(0,E.jsx)(dn,{className:"virtual-assistant__station__character__glasses"}),(0,E.jsx)(ln,{className:"virtual-assistant__station__character__beard"})]})}),(0,E.jsx)("div",{className:"virtual-assistant__station__label",onClick:l,children:"Assistant"}),(0,E.jsx)(Nn,{className:(0,At.$)("virtual-assistant__station__drag-handle",{"virtual-assistant__station__drag-handle--dragging":e}),menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(yn,{children:[(0,E.jsx)(vn,{onClick:()=>{i.setIsOpen(!1),o((0,a.A)())},children:"Reset Position"}),(0,E.jsx)(vn,{onClick:()=>r.assistantService.hideAssistant(),children:"Hide Assistant"})]}),children:(0,E.jsx)("div",{className:"virtual-assistant__station__drag-handle__content",title:e?void 0:"Grab to drag assistant",children:(0,E.jsx)(Wt,{})})})]},c?.uuid??""),!e&&i.isOpen&&!i.isHidden&&s.current&&(0,E.jsx)(Wn,{triggerElement:s.current})]})},n)}));var Kn;!function(e){e.TOP_LEVEL_CONTAINER="application.top-level-container",e.BACKDROP_CONTAINER="application.backdrop-container"}(Kn||(Kn={}));const Xn=["Meta+KeyP","Control+KeyP","Meta+KeyS","Control+KeyS","F8","F10","F11","Meta+Shift+KeyP","Control+Backquote","Control+Shift+KeyN","Control+Shift+KeyP","Meta+KeyB","Control+KeyB","F7","Alt+F7","Control+Shift+KeyB","Alt+KeyZ"],zn=(e,t)=>{const n={};return e.forEach(((e,o)=>{e.length&&(n[o]={combinations:e,handler:t})})),n.INTERNAL__PLATFORM_NATIVE_KEYBOARD_COMMAND={combinations:Xn,handler:(e,t)=>{t.preventDefault()}},n},qn=e=>(0,E.jsx)("div",{className:"backdrop__container","data-elementid":e.elementId}),Jn=(0,ht.PA)((e=>{const{children:t}=e,n=Ot(),o=zn(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{Xn.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Rt.useEffect)((()=>{const e=ct(o);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[o]),(0,Rt.useEffect)((()=>{const e=()=>{document.hidden&&(De.logEvent_ApplicationUsageInterrupted(n.telemetryService),n.timeService.recordUsageInterruption())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[n]),(0,E.jsxs)(pt,{children:[(0,E.jsx)(jt,{}),(0,E.jsx)(Pt,{}),(0,E.jsx)(An,{}),(0,E.jsx)($n,{}),n.layoutService.showBackdrop&&(0,E.jsx)(mt.A,{container:n.layoutService.getElementByID(n.layoutService.backdropContainerElementID??Kn.BACKDROP_CONTAINER)??null,children:(0,E.jsx)(ft.A,{className:"backdrop",open:n.layoutService.showBackdrop})}),(0,E.jsx)(Et.Q,{backend:bt.t2,children:(0,E.jsxs)("div",{className:"app__container","data-elementid":Kn.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(qn,{elementId:Kn.BACKDROP_CONTAINER}),t]})})]})})),Qn=(0,ht.PA)((e=>{const{children:t}=e,n=Ot(),o=zn(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{Xn.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Rt.useEffect)((()=>{const e=ct(o);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[o]),(0,E.jsx)(pt,{children:(0,E.jsx)(Et.Q,{backend:bt.t2,children:(0,E.jsxs)("div",{className:"app__container","data-elementid":Kn.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(qn,{elementId:Kn.BACKDROP_CONTAINER}),t]})})})})),Zn={foreground:"#cccccc",background:"#1e1e1e",cursor:"#cccccc",selectionBackground:"#264f78",black:"#000000",red:"#cd3131",green:"#0dbc79",yellow:"#e5e510",blue:"#2472c8",magenta:"#bc3fbc",cyan:"#11a8cd",white:"#e5e5e5",brightBlack:"#666666",brightRed:"#f14c4c",brightGreen:"#23d18b",brightYellow:"#f5f543",brightBlue:"#3b8eea",brightMagenta:"#d670d6",brightCyan:"#29b8db",brightWhite:"#e5e5e5"},eo={matchOverviewRuler:"#d186167e",activeMatchColorOverviewRuler:"#A0A0A0CC",matchBackground:"#62331c",activeMatchBackground:"#515C6A"},to=`\n${ze.BOLD}${ze.BRIGHT_BLUE}$purist${ze.RESET}\n${ze.BOLD}${ze.MAGENTA}❯${ze.RESET} `,no="❯ ";class oo extends Ze{instance;resizer;renderer;searcher;webLinkProvider;_TEMPORARY__onKeyListener;_TEMPORARY__onDataListener;command="";commandHistory=[];currentCommandSearchString="";commandHistoryNavigationIdx=void 0;isRunningCommand=!1;setupState=ye.create();constructor(e){super(e),this.instance=new Ge.Terminal({allowProposedApi:!0,fontSize:12,letterSpacing:2,fontWeight:400,fontWeightBold:700,fontFamily:`"${Ke}", Menlo, Consolas, monospace`,tabStopWidth:2,theme:Zn,overviewRulerWidth:14,scrollback:1e5,convertEol:!0,scrollOnUserInput:!1}),this.resizer=new Ve.FitAddon,this.searcher=new Ye.SearchAddon,this.renderer=new $e.WebglAddon}setup(e){if(this.setupState.hasCompleted)throw new S("Terminal is already set up");this.setupState.complete(),this.renderer.onContextLoss((()=>{this.renderer.dispose()})),this.instance.loadAddon(this.resizer),this.instance.loadAddon(this.searcher),this.instance.loadAddon(this.renderer),this.instance.loadAddon(new We.Unicode11Addon),this.instance.unicode.activeVersion="11",this.instance.attachCustomKeyEventHandler((e=>it(e,"Control+KeyF")||it(e,"Meta+KeyF")?(e.preventDefault(),e.stopPropagation(),this.searchConfig.focus(),!1):!(it(e,"Control+KeyC")&&this.instance.hasSelection()||it(e,"Control+KeyV")))),this.webLinkProvider=e?.webLinkProvider?new He.WebLinksAddon(e.webLinkProvider.handler,{urlRegex:e.webLinkProvider.regex}):new He.WebLinksAddon,this.instance.loadAddon(this.webLinkProvider),(e?.commands??[]).forEach((e=>{[e.command,...e.aliases??[]].forEach((t=>{this.commandRegistry.has(t)?this.applicationStore.logService.warn(l.create(ue.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE),`Found multiple duplicated terminal commands '${t}'`):this.commandRegistry.set(t,e)}))})),this.searcher.onDidChangeResults((e=>{this.setSearchResultCount(e.resultCount),this.setSearchCurrentResultIndex(e.resultIndex)})),this._TEMPORARY__onKeyListener=this.instance.onKey((({key:e,domEvent:t})=>{var n,o;if("ArrowUp"!==t.code)if("ArrowDown"!==t.code)if(this.commandHistoryNavigationIdx=void 0,"Enter"===t.code){if(this.command.trim()){const e=this.command,[t,...n]=e.replaceAll(/\s+/g," ").split(" ");if(this.addCommandToHistory(this.command),!t)return;const o=this.commandRegistry.get(t);if(!o)return void this.fail(`command not found: ${t}`);if(this.isRunningCommand)return;this.isRunningCommand=!0,o.handler(n.map((e=>e.trim())),t,e).catch((()=>{})).finally((()=>{this.isRunningCommand=!1,this.isFlushed||this.abort()}))}}else if(it(t,"Control+KeyD")||it(t,"Control+KeyC")&&!this.instance.hasSelection())this.abort();else if("Backspace"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);else if("Delete"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);else if("ArrowLeft"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else if("ArrowRight"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else e.match(/^[A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]$/)?this.writeToCommand(e):(n=t,o=this.applicationStore,o.layoutService.getElementByID(Kn.TOP_LEVEL_CONTAINER)?.dispatchEvent(new KeyboardEvent(n.type,n)));else void 0!==this.commandHistoryNavigationIdx&&this.setCommandFromHistory(0===this.commandHistoryNavigationIdx?void 0:this.commandHistoryNavigationIdx-1);else this.setCommandFromHistory(void 0!==this.commandHistoryNavigationIdx?this.commandHistoryNavigationIdx+1:0)})),this._TEMPORARY__onDataListener=this.instance.onData((e=>{e.length>1&&!e.startsWith("")&&this.writeToCommand(e.replaceAll(/[^A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]/g,"").trimEnd())}))}getCommandRange(){const e=this.instance.buffer.active,t=this.instance.cols,n=`${no}${this.command}`,o=`${no}${this.command.substring(0,t-2)}${this.command.length<t-2?" ".repeat(t-this.command.length-2):""}`;let r=0,a=0;for(let n=e.baseY+e.cursorY;n>-1;--n){if(L(e.getLine(n)).translateToString()===o){r=n,a+=(n===e.baseY+e.cursorY?e.cursorX:t)-2;break}a+=n===e.baseY+e.cursorY?e.cursorX:t}return{startY:r,startX:2,endY:r+(n.length-n.length%t)/t,endX:n.length%t,cursorIdx:a}}computeCursorJumpMovement(e){const t=this.getCommandRange();let n,o=!1;if(e){for(let e=t.cursorIdx-1;e>-1;--e)if(this.command.charAt(e).match(/\w/))o||(o=!0);else if(o){n=t.cursorIdx-e-1;break}}else for(let e=t.cursorIdx+1;e<this.command.length;++e)if(this.command.charAt(e).match(/\w/))o||(o=!0);else if(o){n=e-t.cursorIdx-1;break}return void 0===n&&(n=e?t.cursorIdx:this.command.length-t.cursorIdx),e?-n:n}computeCursorMovement(e,t=!0){const n=this.instance.buffer.active,o=this.instance.cols,r=this.instance.rows,a=this.getCommandRange(),s=t?e<0?a.cursorIdx:this.command.length-a.cursorIdx:e,i=Math.min(Math.abs(e),s);let c=n.cursorX,l=n.cursorY,d=n.baseY+n.cursorY;e<0?(c=(o+(n.cursorX-i)%o)%o,l=n.cursorY-(i>n.cursorX?Math.ceil(i/o):0),d=l+n.baseY,l=Math.max(l,-1)):e>0&&(c=(n.cursorX+i)%o,l=n.cursorY+(n.cursorX+i>=o?Math.floor((n.cursorX+i)/o):0),d=l+n.baseY,l=Math.min(l,r-1));const u=d>n.viewportY+r?d-(n.viewportY+r):d<n.viewportY?d-n.viewportY:0;return{seq:qe(l+1,c+1),scroll:u}}writeToCommand(e){const t=this.getCommandRange(),n=this.command.slice(0,t.cursorIdx),o=this.command.slice(t.cursorIdx),r=this.computeCursorMovement(e.length,!1);this.instance.scrollLines(r.scroll),this.instance.write(e+o+r.seq),this.setCommand(n+e+o)}deleteFromCommand(e){const t=this.getCommandRange(),n=e<0?t.cursorIdx:this.command.length-t.cursorIdx,o=Math.min(Math.abs(e),n);let r,a,s;if(0===e)return;e<0?(r=this.command.slice(0,t.cursorIdx-o),a=this.command.slice(t.cursorIdx,this.command.length),s=-o):(r=this.command.slice(0,t.cursorIdx),a=this.command.slice(t.cursorIdx+o,this.command.length),s=0);const i=this.computeCursorMovement(s);this.instance.scrollLines(i.scroll),this.instance.write(qe(t.startY+1,t.startX+1)+r+a+" ".repeat(o)+i.seq),this.setCommand(r+a)}get isSetup(){return this.setupState.hasCompleted}isFocused(){return document.activeElement===this.instance.textarea}mount(e){if(!this.setupState.hasCompleted)throw new S("XTerm terminal has not been set up yet");this.instance.open(e)}dispose(){this.searcher.dispose(),this.resizer.dispose(),this.renderer.dispose(),this.webLinkProvider?.dispose(),this._TEMPORARY__onKeyListener?.dispose(),this._TEMPORARY__onDataListener?.dispose(),this.instance.dispose()}autoResize(){this.resizer.fit()}focus(){this.instance.focus()}addCommandToHistory(e){e!==this.commandHistory.at(0)&&this.commandHistory.unshift(e)}setCommandFromHistory(e){const t=void 0===e?this.currentCommandSearchString:this.commandHistory.filter((e=>e.startsWith(this.currentCommandSearchString))).at(e);if(void 0!==t){let n=this.getCommandRange();this.instance.write(qe(n.startY+1,n.startX+1)+t.padEnd(this.command.length)),this.command=t,n=this.getCommandRange(),this.instance.write(qe(n.endY+1,n.endX+1)),this.commandHistoryNavigationIdx=e}}setCommand(e){this.command=e,this.currentCommandSearchString=e,this.commandHistoryNavigationIdx=void 0}newCommand(){this.instance.write(to),this.setCommand("")}newSystemCommand(e){this.isRunningCommand||(this.command&&(this.abort(),this.newCommand()),this.instance.write(`${ze.DIM}(system: ${e})\n${ze.RESET}`))}flushScreen(){this.instance.write("c"),this.instance.reset()}get isFlushed(){const e=this.instance.buffer.active;let t=!0;for(let n=e.baseY+e.cursorY;n>-1;--n){const o=L(e.getLine(n)).translateToString();if(o.trim()){t=o!==no;break}}return""===this.command&&t}clear(){this.flushScreen(),this.instance.scrollToTop(),this.newCommand()}resetANSIStyling(){this.instance.write(ze.RESET)}showHelp(){var e;this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write((e=this.commandRegistry,`\n${ze.BRIGHT_BLACK}+-------------------------------------------------------+${ze.RESET}\n${ze.BRIGHT_BLACK}|${ze.RESET} ${ze.BRIGHT_GREEN}[@@]${ze.RESET} "Hi! Welcome to the HELP menu of Pure IDE" ${ze.BRIGHT_BLACK}|${ze.RESET}\n${ze.BRIGHT_BLACK}|${ze.RESET} ${ze.BRIGHT_GREEN}/|__|\\${ze.RESET} ${ze.BRIGHT_BLACK}|${ze.RESET}\n${ze.BRIGHT_BLACK}+--${ze.RESET} ${ze.BRIGHT_GREEN}d b${ze.RESET} ${ze.BRIGHT_BLACK}-----------------------------------------------+${ze.RESET}\n\nFollowing is the list of supported commands:\n\n${(0,et.A)(Array.from(e.values()),(e=>e.command)).map((e=>`${ze.BRIGHT_GREEN}${e.command.padEnd(30)}${ze.RESET}${e.description}${e.aliases?.length?`\n${"".padEnd(30)}Aliases: ${e.aliases.join(", ")}`:""}\n${"".padEnd(30)}Usage: ${ze.DIM}${e.usage}${ze.RESET}`)).join("\n")}`)),this.abort()}showCommonANSIEscapeSequences(){this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write(`\nCommon ANSI Escape Sequences for Styling:\n\n${Object.entries(ze).map((([e,t])=>`${t}${(e=>e?e.trim().match(/^[A-Z_]+$/)?ot(e.trim().replace(/_+/gu," ").toLowerCase()):tt(e.trim()).split(/(?<chunk>[A-Z][a-z]+|[0-9]+)/).map((e=>e.toUpperCase()===e?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).filter(Boolean).join(" ").replace(/_+/gu," ").replace(/\s+/gu," "):"")(e).padEnd(20)}${ze.RESET} ${t.replace("","\\u001b")}`)).join("\n")}`),this.abort()}abort(){this.resetANSIStyling(),this.instance.write("\n"),this.newCommand(),this.instance.scrollToBottom(),this.isRunningCommand=!1}fail(e,t){t?.systemCommand&&this.newSystemCommand(t.systemCommand),this.instance.write(`\n${ze.RED}${e}${ze.RED}`),this.abort()}output(e,t){this.resetANSIStyling(),t?.clear&&!this.preserveLog||!t?.systemCommand||this.newSystemCommand(t.systemCommand),!this.preserveLog&&t?.clear?this.flushScreen():(this.preserveLog||this.isRunningCommand)&&this.instance.write("\n"),this.instance.write(e),this.resetANSIStyling(),this.instance.write("\n"),this.instance.scrollToBottom(),this.newCommand()}search(e){this.searcher.findNext(e,{decorations:eo,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive,incremental:!0})}clearSearch(){this.searcher.clearDecorations(),this.instance.clearSelection(),this.setSearchText(""),this.setSearchResultCount(void 0),this.setSearchCurrentResultIndex(void 0)}findPrevious(){this.searcher.findPrevious(this.searchConfig.searchText,{decorations:eo,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}findNext(){this.searcher.findNext(this.searchConfig.searchText,{decorations:eo,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}getContent(){const e=this.instance.buffer.active,t=[];for(let n=0;n<e.length;++n){const o=L(e.getLine(n));t.push(o.translateToString())}return t.join("\n").trimEnd()}copy(){this.instance.hasSelection()?this.applicationStore.clipboardService.copyTextToClipboard(this.instance.getSelection()).catch(this.applicationStore.alertUnhandledError):this.applicationStore.notificationService.notifyWarning("Ther terminal has no selection to copy")}copyAll(){this.applicationStore.clipboardService.copyTextToClipboard(this.getContent()).catch(this.applicationStore.alertUnhandledError)}}class ro{applicationStore;terminal;constructor(e){this.applicationStore=e,this.terminal=new oo(e)}}const ao="(unknown)";class so{applicationStore;currentUser=ao;constructor(e){(0,Ne.Gn)(this,{currentUser:Ne.sH,setCurrentUser:Ne.XI}),this.applicationStore=e}get isAnonymous(){return this.currentUser===ao}setCurrentUser(e){this.currentUser=e}}var io,co=n(5992);class lo{get localStorage(){return L(window.localStorage,"'window.localStorage' object is not available in non-web environment")}setItem(e,t){this.localStorage.setItem(e,t)}getItem(e){return this.localStorage.getItem(e)}removeItem(e){this.localStorage.removeItem(e)}clear(){this.localStorage.clear()}hasItem(e){return this.localStorage.hasItem(e)}}class uo{storeIndex;storageService;data;constructor(e,t){this.storageService=e,this.storeIndex=t,this.data=this.storageService.getIndex(this.storeIndex)??{}}getValue(e){return this.data[e]}getNumericValue(e){const t=this.getValue(e);return void 0!==t?W(t):void 0}getStringValue(e){const t=this.getValue(e);return void 0!==t?Y(t):void 0}getBooleanValue(e){const t=this.getValue(e);return void 0!==t?$(t):void 0}getObjectValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!H(e))throw new R(t||"Value is expected to be a object")}(e,t),e))(t):void 0}hasValue(e){return O(this.data[e])}persistValue(e,t){void 0!==t?this.data[e]=t:delete this.data[e],this.storageService.updateIndex(this.storeIndex,this.data)}}class go{applicationStore;storage;data;constructor(e){this.applicationStore=e,this.storage=new lo;const t=this.storage.getItem(e.config.applicationStorageKey);this.data=t?k((()=>JSON.parse(t)))??{}:{}}getIndex(e){return this.data[e]}updateIndex(e,t){(0,co.A)(t)?delete this.data[e]:this.data[e]=t,this.storage.setItem(this.applicationStore.config.applicationStorageKey,JSON.stringify(this.data))}}class po{applicationStore;plugins=[];constructor(e){this.applicationStore=e}registerPlugins(e){this.plugins=e}setup(){const e={userId:this.applicationStore.identityService.currentUser,appName:this.applicationStore.config.appName,appEnv:this.applicationStore.config.env,appVersion:this.applicationStore.config.appVersion,appSessionId:this.applicationStore.uuid,appStartTime:this.applicationStore.timeService.timestamp};this.plugins.forEach((t=>t.setup(e)))}logEvent(e,t){this.plugins.forEach((n=>n.logEvent(e,t)))}}class mo{timestamp=Date.now();interruptions=[];recordUsageInterruption(){this.interruptions.push(Date.now())}finalizeTimingsRecord(e,t){const n=e.elapsed,o=e.startTime,r=o+n,a={...t??{},...Object.fromEntries(e.records),total:n};let s=0;for(const e of this.interruptions)if(e>=o&&e<=r)s++;else if(e>r)break;return s>0?{...a,__numberOfInteruptions:s}:a}}!function(e){e.DEFAULT_DARK="default-dark",e.LEGACY_LIGHT="legacy-light",e.HIGH_CONTRAST_LIGHT="hc-light"}(io||(io={}));const fo={name:"Default Dark (default)",key:io.DEFAULT_DARK,TEMPORARY__globalCSSClassName:"theme__default-dark",colors:{"data-access-overview.chart.access-granted":"#6a9955","data-access-overview.chart.access-approved":"#007acc","data-access-overview.chart.access-requested":"#fbbc05","data-access-overview.chart.access-not-granted":"#ea4646","data-access-overview.chart.unsupported-access":"#2d2d2d"}},ho={name:"Legacy Light",key:io.LEGACY_LIGHT,TEMPORARY__globalCSSClassName:"theme__legacy-light"},Eo={name:"High-Contrast Light",key:io.HIGH_CONTRAST_LIGHT,TEMPORARY__globalCSSClassName:"theme__hc-light",colors:{"data-access-overview.chart.access-granted":"#52a31d","data-access-overview.chart.access-approved":"#3d8df5","data-access-overview.chart.access-requested":"#f5c518","data-access-overview.chart.access-not-granted":"#fa5343","data-access-overview.chart.unsupported-access":"#e1e7ea"}};var bo;!function(e){e.COLOR_THEME="application.layout.colorTheme"}(bo||(bo={}));const Co={[bo.COLOR_THEME]:{defaultValue:io.DEFAULT_DARK}};class Ao{applicationStore;backdropContainerElementID;showBackdrop=!1;colorThemeRegistry=new Map;currentColorTheme;constructor(e){(0,Ne.Gn)(this,{currentColorTheme:Ne.sH.ref,TEMPORARY__isLightColorThemeEnabled:Ne.EW,backdropContainerElementID:Ne.sH,showBackdrop:Ne.sH,setBackdropContainerElementID:Ne.XI,setShowBackdrop:Ne.XI,setColorTheme:Ne.XI}),this.applicationStore=e,this.colorThemeRegistry.set(io.DEFAULT_DARK,fo),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraColorThemes?.()??[])).forEach((e=>{this.colorThemeRegistry.has(e.key)?this.applicationStore.logService.warn(l.create(ue.COLOR_THEME_CONFIGURATION_CHECK__FAILURE),`Found duplicated color themes with key '${e.key}'`):this.colorThemeRegistry.set(e.key,e)}));const t=this.applicationStore.settingService.getStringValue(bo.COLOR_THEME)??io.DEFAULT_DARK;this.currentColorTheme=L(this.colorThemeRegistry.get(t)),this.TEMPORARY__syncGlobalCSSClassName(this.currentColorTheme,void 0)}getElementByID(e){return document.querySelector(`[data-elementid='${e}']`)??void 0}setWindowTitle(e){document.title=e}setBackdropContainerElementID(e){this.backdropContainerElementID=e}setShowBackdrop(e){this.showBackdrop=e}get TEMPORARY__isLightColorThemeEnabled(){return this.currentColorTheme.key!==io.DEFAULT_DARK}TEMPORARY__syncGlobalCSSClassName(e,t){t&&document.body.classList.remove(t.TEMPORARY__globalCSSClassName),document.body.classList.add(e.TEMPORARY__globalCSSClassName)}setColorTheme(e,t){const n=this.colorThemeRegistry.get(e);if(e===this.currentColorTheme.key||!n)return;const o=this.currentColorTheme;this.currentColorTheme=n,this.TEMPORARY__syncGlobalCSSClassName(n,o),t?.persist&&this.applicationStore.settingService.persistValue(bo.COLOR_THEME,e)}getColor(e){return this.currentColorTheme.colors?.[e]??L(this.colorThemeRegistry.get(io.DEFAULT_DARK)).colors?.[e]??"transparent"}}class To{applicationStore;constructor(e){this.applicationStore=e}async copyTextToClipboard(e,t){await navigator.clipboard.writeText(e).catch((e=>{this.applicationStore.notificationService.notifyError(e)})).finally((()=>{t?.notifySuccessMessage&&this.applicationStore.notificationService.notifySuccess(t.notifySuccessMessage)}))}}class _o{navigator;constructor(e){this.navigator=e}}var No=n(2853);class yo{applicationStore;storage;registry=new Map;constructor(e){this.applicationStore=e,this.storage=new uo(this.applicationStore.storageService,"application-settings-storage"),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraSettingConfigurationEntries?.()??[])).forEach((e=>{this.registry.has(e.key)?this.applicationStore.logService.warn(l.create(ue.SETTING_CONFIGURATION_CHECK__FAILURE),`Found duplicated setting with key '${e.key}'`):this.registry.set(e.key,e)}))}getNumericValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(U(t))return t;this.applicationStore.logService.warn(l.create(ue.SETTING_RETRIVE_FAILURE),`Can't retrieve numeric value for setting '${e}'`)}getStringValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(M(t))return t;this.applicationStore.logService.warn(l.create(ue.SETTING_RETRIVE_FAILURE),`Can't retrieve string value for setting '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(G(t))return t;this.applicationStore.logService.warn(l.create(ue.SETTING_RETRIVE_FAILURE),`Can't retrieve boolean value for setting '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(H(t))return t;this.applicationStore.logService.warn(l.create(ue.SETTING_RETRIVE_FAILURE),`Can't retrieve object value for setting '${e}'`)}persistValue(e,t){const n=this.registry.get(e)?.defaultValue;this.storage.persistValue(e,void 0!==n&&(0,No.A)(n,t)?void 0:t)}}class vo{goToLocation(e,t){throw new I("Navigator does not support this operation")}reload(e){throw new I("Navigator does not support this operation")}goToAddress(e,t){throw new I("Navigator does not support this operation")}visitAddress(e){throw new I("Navigator does not support this operation")}generateAddress(e){throw new I("Navigator does not support this operation")}updateCurrentLocation(e){throw new I("Navigator does not support this operation")}updateCurrentZone(e){throw new I("Navigator does not support this operation")}resetZone(){throw new I("Navigator does not support this operation")}getCurrentBaseAddress(e){throw new I("Navigator does not support this operation")}getCurrentAddress(){throw new I("Navigator does not support this operation")}getCurrentLocation(){throw new I("Navigator does not support this operation")}getCurrentLocationParameters(){throw new I("Navigator does not support this operation")}getCurrentLocationParameterValue(e){throw new I("Navigator does not support this operation")}getCurrentZone(){throw new I("Navigator does not support this operation")}blockNavigation(e,t,n){throw new I("Navigator does not support this operation")}unblockNavigation(){throw new I("Navigator does not support this operation")}get isNavigationBlocked(){throw new I("Navigator does not support this operation")}INTERNAL__internalizeTransientParameter(e){throw new I("Navigator does not support this operation")}}class So{applicationStore;storage;constructor(e){this.applicationStore=e,this.storage=new uo(this.applicationStore.storageService,"application-user-data-storage")}getNumericValue(e){const t=this.storage.getValue(e);if(U(t))return t;this.applicationStore.logService.warn(l.create(ue.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve numeric value for user data '${e}'`)}getStringValue(e){const t=this.storage.getValue(e);if(M(t))return t;this.applicationStore.logService.warn(l.create(ue.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve string value for user data '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e);if(G(t))return t;this.applicationStore.logService.warn(l.create(ue.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve boolean value for user data '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e);if(H(t))return t;this.applicationStore.logService.warn(l.create(ue.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve object value for user data '${e}'`)}persistValue(e,t){this.storage.persistValue(e,t)}}const Io=e=>/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/.test(e);var xo;!function(e){e.BUG_FIX="BUG_FIX",e.ENHANCEMENT="ENHANCEMENT"}(xo||(xo={}));const ko="application.lastOpenedVersion";class Ro{applicationStore;releaseNotes;showCurrentReleaseModal=!0;showReleaseLog=!1;isConfigured=!1;constructor(e){(0,Ne.Gn)(this,{showCurrentReleaseModal:Ne.sH,showReleaseLog:Ne.sH,isConfigured:Ne.sH,setShowCurrentRelease:Ne.XI,configure:Ne.XI,setReleaseLog:Ne.XI}),this.applicationStore=e}configure(e){this.isConfigured=!0,this.releaseNotes=(e=>e.map((e=>(D(e.version,"Release notes 'version' is missing"),e.notes?.map((e=>(D(e.type,"Release note 'type' is missing"),D(e.description,"Release note 'description' is missing"),e))),e))))(e)}setShowCurrentRelease(e){this.showCurrentReleaseModal=e}setReleaseLog(e){this.showReleaseLog=e}getViewedVersion(){return this.applicationStore.userDataService.getStringValue(ko)}updateViewedVersion(){this.applicationStore.userDataService.persistValue(ko,this.applicationStore.config.appVersion)}showVersion(e,t){const n=e.version;return!(!Io(n)||!Io(t)||1!==(o=t,n.localeCompare(o,void 0,{numeric:!0})));var o}showableVersions(){const e=this.getViewedVersion();if(e)return this.releaseNotes?.filter((t=>this.showVersion(t,e)))}}class wo{uuid=(0,a.A)();extensionStates=[];config;pluginManager;initState=ye.create();platform;timeService;logService;storageService;userDataService;settingService;alertService;notificationService;identityService;commandService;keyboardShortcutsService;layoutService;clipboardService;terminalService;navigationService;navigationContextService;documentationService;assistantService;releaseNotesService;eventService;telemetryService;tracerService;constructor(e,t){this.config=e,this.pluginManager=t,this.timeService=new mo,this.logService=new u,this.logService.registerPlugins(t.getLoggerPlugins()),this.storageService=new go(this),this.settingService=new yo(this),this.userDataService=new So(this),this.alertService=new kt(this),this.notificationService=new Cn,this.identityService=new so(this),this.layoutService=new Ao(this),this.clipboardService=new To(this),this.terminalService=new ro(this),this.commandService=new Me(this),this.keyboardShortcutsService=new Ue(this),this.navigationService=new _o(new vo),this.navigationContextService=new je(this),this.documentationService=new Ae(this),this.assistantService=new Be(this),this.releaseNotesService=new Ro(this),this.eventService=new Pe,this.eventService.registerEventNotifierPlugins(t.getEventNotifierPlugins()),this.telemetryService=new po(this),this.telemetryService.registerPlugins(t.getTelemetryServicePlugins()),this.telemetryService.setup(),this.tracerService=new Se,this.tracerService.registerPlugins(t.getTracerServicePlugins()),this.extensionStates=this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationExtensionStateBuilders?.()??[])).map((e=>e(this))).filter(O)}async initialize(e){if(this.initState.isInInitialState){this.initState.inProgress();try{if(this.platform)throw new S("Platform is already configured");this.platform=e,this.navigationService=new _o(e.getNavigator()),await e.initialize(),this.initState.pass()}catch(e){x(e),this.notificationService.notifyError(e),this.logService.error(l.create(ue.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),this.initState.fail()}}else this.notificationService.notifyIllegalState("Application store is re-initialized")}alertUnhandledError=e=>{this.logUnhandledError(e),this.notificationService.notifyIllegalState(e.message)};logUnhandledError=e=>{this.logService.error(l.create(ue.ILLEGAL_APPLICATION_STATE_OCCURRED),"Encountered unhandled error in component tree",e)};debugProcess(e,...t){this.logService.debug(l.create(ue.DEBUG),`\n------ START DEBUG PROCESS: ${e} ------\n`,...t,`\n------- END DEBUG PROCESS: ${e} -------\n`)}guardUnhandledError=e=>()=>{e().catch(this.alertUnhandledError)}}var Oo;!function(e){e.TAG_REQUEST="download-request",e.TAG_RESPONSE="download-response",e.STREAM_CLOSED="#stream-closed",e.STREAM_ABORTED="#stream-aborted"}(Oo||(Oo={}));class Fo{}class Lo extends Fo{debug(e,...t){console.debug(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}info(e,...t){console.info(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}warn(e,...t){console.warn(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}error(e,...t){console.error(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}class Bo{config;logger;pluginManager;basePresets=[];basePlugins=[];baseAddress;pluginRegister;_isConfigured=!1;downloadHelperServiceWorkerPath;downloadHelper=!1;releaseNotes;constructor(e){this.pluginManager=e,this.logger=new Lo}setup(e){return this.baseAddress=D(e.baseAddress,"Can't setup application: 'baseAddress' is missing or empty"),this.pluginRegister=e.pluginRegister,this._isConfigured=!0,this}withBasePresets(e){return this.basePresets=e,this.withPresets([])}withBasePlugins(e){return this.basePlugins=e,this.withPlugins([])}withPresets(e){return this.pluginManager.usePresets([...this.basePresets,...e]),this}withPlugins(e){return this.pluginManager.usePlugins([...this.basePlugins,...e]),this}withDownloadHelper(e){return this.downloadHelper=!0,this.downloadHelperServiceWorkerPath=e,this}withReleaseNotes(e){return this.releaseNotes=e,this}setupApplicationStore(e){this.releaseNotes&&e.releaseNotesService.configure(this.releaseNotes)}async fetchApplicationConfiguration(e){const t=new ie;let n,o;try{n=await t.get(`${window.location.origin}${e}config.json`)}catch(e){x(e),this.logger.error(l.create(ue.APPLICATION_CONFIGURATION__FAILURE),e)}F(n,"Can't fetch Legend application configuration");try{o=await t.get(`${window.location.origin}${e}version.json`)}catch(e){x(e),this.logger.error(l.create(ue.APPLICATION_CONFIGURATION__FAILURE),e)}return F(o,"Can't fetch Legend application version"),[await this.configureApplication({configData:n,versionData:o,baseAddress:e}),n.extensions??{}]}async loadDocumentationRegistryData(e){const t={};await Promise.all([...e.documentationRegistryEntries,...this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraDocumentationRegistryEntries?.()??[]))].map((async e=>{try{const n=new ie(e.simple?{options:{credentials:"omit"}}:{}),o=await n.get(D(e.url,"Can't load documentation registry: 'url' field is missing or empty"));F(o.entries,"Can't load documentation registry data: 'entries' field is missing");const r=e.includes?.map((e=>new RegExp(`^${e.trim().replace(/[\^$\\.+?()[\]{}|]/g,"\\$&").replace(/\*/g,".*")}$`)));Object.entries(o.entries).forEach((([e,n])=>{r&&!r.some((t=>t.test(e)))||t[e]||(t[e]=n)}))}catch(e){x(e),this.logger.warn(l.create(ue.DOCUMENTATION_FETCH__FAILURE),e)}}))),e.keyedDocumentationEntries=[...Ce(t),...e.keyedDocumentationEntries]}async start(){F(this._isConfigured,"Legend application has not been configured properly. Make sure to run setup() before start()");try{const[e,t]=await this.fetchApplicationConfiguration(this.baseAddress);this.config=e,this.pluginRegister?.(this.pluginManager,this.config),this.pluginManager.configure(t),this.pluginManager.install(),await Promise.all([this.loadDocumentationRegistryData(e)]);const n=new wo(this.config,this.pluginManager);await Promise.all(this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationSetups?.()??[])).map((e=>e(n)))),this.setupApplicationStore(n),await this.loadApplication(n),this.logger.info(l.create(ue.APPLICATION_LOAD__SUCCESS),"Legend application loaded"),this.downloadHelper&&function(e){if("serviceWorker"in navigator){const t=e??"/ServiceWorker.js";navigator.serviceWorker.register(t).then((e=>{console.debug(`register service worker success with path: ${t}`,e)})).catch((e=>{console.debug(`register service worker error with path: ${t}`,e)}))}}(this.downloadHelperServiceWorkerPath)}catch(e){throw x(e),this.logger.error(l.create(ue.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),e}}}const Po="legend-application-root",Do=JSON.parse('{"rE":"15.1.22","XO":{"c":"@finos/legend-application-plugin-core"}}');class jo extends i{}class Mo extends jo{static NAME=Do.XO.c;constructor(){super(Mo.NAME,Do.rE)}install(e){e.registerApplicationPlugin(this)}getExtraApplicationSetups(){return[async e=>{(0,Ne.jK)({enforceActions:"observed"})}]}getExtraColorThemes(){return[ho,Eo]}getExtraSettingConfigurationEntries(){return e=Co,Object.entries(e).map((e=>({key:e[0],...e[1]})));var e}}class Uo{appName;baseAddress;env;applicationStorageKey;documentationUrl;documentationLinkEntries=[];documentationRegistryEntries=[];keyedDocumentationEntries=[];contextualDocEntries=[];appVersion;appVersionBuildTime;appVersionCommitId;constructor(e){var t,n;this.baseAddress=e.baseAddress,this.appName=D(e.configData.appName,"Can't configure application: 'appName' field is missing or empty"),this.env=D(e.configData.env,"Can't configure application: 'env' field is missing or empty"),this.applicationStorageKey=e.configData.application?.storageKey??this.getDefaultApplicationStorageKey(),this.documentationUrl=e.configData.documentation?.url,this.documentationLinkEntries=(t=e.configData.documentation?.links??{},Object.entries(t).map((e=>({key:D(e[0],"Documentation link 'key' is missing"),label:D(e[1].label,"Documentation link 'label' is missing"),url:D(e[1].url,"Documentation link 'url' is missing")})))),this.documentationRegistryEntries=e.configData.documentation?.registry??[],this.keyedDocumentationEntries=Ce(e.configData.documentation?.entries??{}),this.contextualDocEntries=(n=e.configData.documentation?.contextualEntries??{},Object.entries(n).map((e=>({context:e[0],documentationKey:e[1]})))),this.appVersion=L(e.versionData.version,"Can't collect application version: 'version' field is missing"),this.appVersionBuildTime=L(e.versionData.buildTime,"Can't collect application version: 'buildTime' field is missing"),this.appVersionCommitId=L(e.versionData.commitSHA,"Can't collect application version: 'commitSHA' field is missing")}static resolveAbsoluteUrl(e){return e.trim().startsWith("/")?window.location.origin+e:e}}class Go extends Uo{replUrl;useDynamicREPLServer=!1;constructor(e){super(e),F(e.configData.repl,"Can't configure application: 'repl' field is missing"),this.replUrl=Uo.resolveAbsoluteUrl(D(e.configData.repl.url,"Can't configure application: 'repl.url' field is missing or empty")),void 0!==e.configData.repl.dynamic&&(this.useDynamicREPLServer=Boolean(e.configData.repl.dynamic))}getDefaultApplicationStorageKey(){return"legend-repl"}}class Ho extends c{loggerPlugins=[];telemetryServicePlugins=[];tracerServicePlugins=[];eventNotifierPlugins=[];applicationPlugins=[];registerLoggerPlugin(e){this.loggerPlugins.push(e)}registerTelemetryServicePlugin(e){this.telemetryServicePlugins.push(e)}registerTracerServicePlugin(e){this.tracerServicePlugins.push(e)}registerEventNotifierPlugin(e){this.eventNotifierPlugins.push(e)}registerApplicationPlugin(e){this.applicationPlugins.push(e)}getLoggerPlugins(){return[...this.loggerPlugins]}getTelemetryServicePlugins(){return[...this.telemetryServicePlugins]}getTracerServicePlugins(){return[...this.tracerServicePlugins]}getEventNotifierPlugins(){return[...this.eventNotifierPlugins]}getApplicationPlugins(){return[...this.applicationPlugins]}}class Vo extends Ho{pureProtocolProcessorPlugins=[];pureGraphManagerPlugins=[];pureGraphPlugins=[];constructor(){super()}static create(){return new Vo}registerPureProtocolProcessorPlugin(e){this.pureProtocolProcessorPlugins.push(e)}registerPureGraphManagerPlugin(e){this.pureGraphManagerPlugins.push(e)}registerPureGraphPlugin(e){this.pureGraphPlugins.push(e)}getPureGraphManagerPlugins(){return[...this.pureGraphManagerPlugins]}getPureProtocolProcessorPlugins(){return[...this.pureProtocolProcessorPlugins]}getPureGraphPlugins(){return[...this.pureGraphPlugins]}}var Yo,Wo=n(6839),$o=n(8684);class Ko{historyAPI;_isNavigationBlocked=!1;_forceBypassNavigationBlocking=!1;_blockCheckers=[];_beforeUnloadListener=e=>{this._forceBypassNavigationBlocking||this._blockCheckers.some((e=>e()))&&(e.returnValue="")};onBlock;onNativePlatformNavigationBlock;constructor(e){(0,Ne.Gn)(this,{_isNavigationBlocked:Ne.sH,isNavigationBlocked:Ne.EW,blockNavigation:Ne.XI,unblockNavigation:Ne.XI}),this.historyAPI=e}get window(){return L(window,"Window object is not available in non-web environment")}goToLocation(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=this.generateAddress(e)};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}reload(e){e?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const t=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.reload()};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(t):t()}goToAddress(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=e};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}visitAddress(e){this.window.open(e,"_blank")}generateAddress(e){return this.window.location.origin+this.historyAPI.createHref({pathname:e})}updateCurrentLocation(e){this.historyAPI.push(e)}updateCurrentZone(e){this.window.location.hash="#"+e}resetZone(){this.updateCurrentLocation(this.getCurrentLocation())}getCurrentBaseAddress(e){return e?.withAppRoot?this.generateAddress(""):this.window.location.origin}getCurrentAddress(){return this.window.location.href}getCurrentLocation(){return this.historyAPI.location.pathname}getCurrentLocationParameters(){const e={},t=le((n=this.getCurrentAddress(),(0,q.J)(n)),!0);var n;return Object.keys(t).forEach((n=>{e[n]=de(n,t)})),e}getCurrentLocationParameterValue(e){return this.getCurrentLocationParameters()[e]}getCurrentZone(){return this.window.location.hash.substring(1)}blockNavigation(e,t,n){this._isNavigationBlocked=!0,this.onBlock=t,this.onNativePlatformNavigationBlock=n,this.window.history.pushState(null,"",this.getCurrentAddress()),this.window.onpopstate=()=>{window.history.forward(),this.onNativePlatformNavigationBlock?.()},this._blockCheckers=e,this.window.removeEventListener("beforeunload",this._beforeUnloadListener),this.window.addEventListener("beforeunload",this._beforeUnloadListener)}unblockNavigation(){this._isNavigationBlocked=!1,this.onBlock=void 0,this.window.onpopstate=null,this._blockCheckers=[],this.window.removeEventListener("beforeunload",this._beforeUnloadListener)}get isNavigationBlocked(){return this._isNavigationBlocked}INTERNAL__internalizeTransientParameter(e){const t=this.getCurrentZone(),n=this.getCurrentLocationParameters();var o,r;delete n[e],this.updateCurrentLocation((o=this.getCurrentLocation(),r=(e=>{const t={};return Object.entries(e).forEach((([e,n])=>{n&&(t[e]=n.toString())})),z.A.stringify(t)})(n),r?`${o}?${r}`:o)),this.updateCurrentZone(t)}}class Xo{applicationStore;constructor(e){this.applicationStore=e}async initialize(){}}!function(e){e.INITIAL_COLOR_THEME="initialColorTheme"}(Yo||(Yo={}));class zo extends Xo{navigator;constructor(e,t){super(e),this.navigator=new Ko(t.historyAPI)}getNavigator(){return this.navigator}async initialize(){const e=this.applicationStore.navigationService.navigator.getCurrentLocationParameterValue(Yo.INITIAL_COLOR_THEME);e&&(this.applicationStore.layoutService.setColorTheme(e),this.applicationStore.navigationService.navigator.INTERNAL__internalizeTransientParameter(Yo.INITIAL_COLOR_THEME))}}const qo=(0,Rt.createContext)(void 0),Jo=({children:e})=>{const t=Ot(),n=(0,Wo.W6)(),o=(0,ht.iz)((()=>new zo(t,{historyAPI:n})));return(0,E.jsx)(qo.Provider,{value:o,children:e})},Qo=({children:e,baseUrl:t})=>(0,E.jsx)($o.Kd,{basename:t,children:(0,E.jsx)(Jo,{children:e})});class Zo{networkClient;constructor(e){this.networkClient=e}get baseUrl(){return L(this.networkClient.baseUrl,"REPL server client has not been configured properly")}get dataCube(){return`${this.baseUrl}/api/dataCube`}async getInfrastructureInfo(){return this.networkClient.get(`${this.dataCube}/infrastructureInfo`)}async getQueryTypeahead(e){return this.networkClient.post(`${this.dataCube}/typeahead`,e)}async parseQuery(e){return this.networkClient.post(`${this.dataCube}/parseQuery`,e)}async getQueryCode(e){return this.networkClient.post(`${this.dataCube}/getQueryCode`,e)}async getBaseQuery(){return this.networkClient.get(`${this.dataCube}/getBaseQuery`)}async getRelationReturnType(e){return this.networkClient.post(`${this.dataCube}/getRelationReturnType`,e)}async executeQuery(e){return this.networkClient.post(`${this.dataCube}/executeQuery`,e)}}var er=n(9499),tr=n(1937);const nr=e=>er.sha1().update(e).digest("hex"),or=e=>nr(e.filter(O).map((e=>"string"==typeof e||"boolean"==typeof e||"number"==typeof e?nr(e):e.hashCode)).join(","));class rr{}class ar extends rr{name;multiplicity;class;accept_ValueSpecificationVisitor(e){return e.visit_Variable(this)}}class sr{subTrees=[];subTypeTrees=[]}var ir,cr,lr,dr,ur,gr,pr,mr,fr,hr,Er;(cr=ir||(ir={})).INTERNAL__UNKNOWN_ELEMENT="INTERNAL__UNKNOWN_ELEMENT",cr.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT="INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT",cr.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR="INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR",cr.PACKAGE="PACKAGE",cr.PACKAGEABLE_ELEMENT="PACKAGEABLE_ELEMENT",cr.PACKAGEABLE_ELEMENT_POINTER="PACKAGEABLE_ELEMENT_POINTER",cr.PROFILE="PROFILE",cr.TAG_POINTER="TAG_POINTER",cr.STEREOTYPE_POINTER="STEREOTYPE_POINTER",cr.TAGGED_VALUE="TAGGED_VALUE",cr.ENUMERATION="ENUMERATION",cr.ENUM_VALUE="ENUM_VALUE",cr.CLASS="CLASS",cr.PROPERTY="PROPERTY",cr.PROPERTY_DEFAULT_VALUE="PROPERTY_DEFAULT_VALUE",cr.PROPERTY_POINTER="PROPERTY_POINTER",cr.MULTIPLICITY="MULTIPLICITY",cr.CONSTRAINT="CONSTRAINT",cr.DERIVED_PROPERTY="DERIVED_PROPERTY",cr.ASSOCIATION="ASSOCIATION",cr.FUNCTION="FUNCTION",cr.MEASURE="MEASURE",cr.UNIT="UNIT",cr.FUNCTION_TEST_SUITE="FUNCTION_TEST_SUITE",cr.FUNCTION_TEST="FUNCTION_TEST",cr.FUNCTION_STORE_TEST_DATA="FUNCTION_STORE_TEST_DATA",cr.FUNCTION_PARAMETER_VALUE="FUNCTION_PARAMETER_VALUE",cr.ASSERT_FAIL="ASSERT_FAIL",cr.ASSERT_PASS="ASSERT_PASS",cr.EQUAL_TO_JSON_ASSERT_FAIL="EQUAL_TO_JSON_ASSERT_FAIL",cr.EQUAL_TO="EQUAL_TO",cr.EQUAL_TO_JSON="EQUAL_TO_JSON",cr.EQUAL_TO_TDS="EQUAL_TO_TDS",cr.SECTION_INDEX="SECTION_INDEX",cr.SECTION="SECTION",cr.IMPORT_AWARE_CODE_SECTION="IMPORT_AWARE_CODE_SECTION",cr.DEFAULT_CODE_SECTION="DEFAULT_CODE_SECTION",cr.RAW_LAMBDA="RAW_LAMBDA",cr.RAW_VARIABLE="RAW_VARIABLE",cr.RAW_INSTANCE_VALUE="RAW_INSTANCE_VALUE",cr.BINDING_TRANSFORMER="BINDING_TRANSFORMER",cr.INTERNAL__UNKNOWN_VALUE_SPECIFICATION="INTERNAL__UNKNOWN_VALUE_SPECIFICATION",cr.INTERNAL__PROPAGATED_VALUE="INTERNAL__PROPAGATED_VALUE",cr.VARIABLE_EXPRESSION="VARIABLE_EXPRESSION",cr.EXPRESSION="EXPRESSION",cr.FUNCTION_EXPRESSION="FUNCTION_EXPRESSION",cr.SIMPLE_FUNCTION_EXPRESSION="SIMPLE_FUNCTION_EXPRESSION",cr.ABSTRACT_PROPERTY_EXPRESSION="ABSTRACT_PROPERTY_EXPRESSION",cr.INSTANCE_VALUE="INSTANCE_VALUE",cr.PRIMITIVE_INSTANCE_VALUE="PRIMITIVE_INSTANCE_VALUE",cr.ENUM_INSTANCE_VALUE="ENUM_INSTANCE_VALUE",cr.KEY_EXPRESSION_INSTANCE_VALUE="KEY_EXPRESSION_INSTANCE_VALUE",cr.KEY_EXPRESSION_VALUE="KEY_EXPRESSION_VALUE",cr.RUNTIME_INSTANCE_VALUE="RUNTIME_INSTANCE_VALUE",cr.PAIR_INSTANCE_VALUE="PAIR_INSTANCE_VALUE",cr.MAPPING_INSTANCE_VALUE="MAPPING_INSTANCE_VALUE",cr.PURE_LIST_INSTANCE_VALUE="PURE_LIST_INSTANCE_VALUE",cr.COLLECTION_INSTANCE_VALUE="COLLECTION_INSTANCE_VALUE",cr.LAMBDA_FUNCTION_INSTANCE_VALUE="LAMBDA_FUNCTION_INSTANCE_VALUE",cr.FUNCTION_TYPE="FUNCTION_TYPE",cr.LAMBDA_FUNCTION="LAMBDA_FUNCTION",cr.ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE="ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE",cr.ALLOY_SERIALIZATION_CONFIG="ALLOY_SERIALIZATION_CONFIG",cr.ROOT_GRAPH_FETCH_TREE="ROOT_GRAPH_FETCH_TREE",cr.PROPERTY_GRAPH_FETCH_TREE="PROPERTY_GRAPH_FETCH_TREE",cr.SUBTYPE_GRAPH_FETCH_TREE="SUBTYPE_GRAPH_FETCH_TREE",cr.SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE="SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE",cr.PROPERTY_GRAPH_FETCH_TREE_INSTANCE_VALUE="PROEPRTY_GRAPH_FETCH_TREE_INSTANCE_VALUE",cr.ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE="ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE",cr.RELATION_COL_SPEC_ARRAY="RELATION_COL_SPEC_ARRAY",cr.RELATION_COL_SPEC="RELATION_COL_SPEC",cr.INTERNAL__UNKNOWN_STORE="INTERNAL__UNKNOWN_STORE",cr.INTERNAL__UNKNOWN_CONNECTION="INTERNAL__UNKNOWN_CONNECTION",cr.INTERNAL__UNKNOWN_PROPERTY_MAPPING="INTERNAL__UNKNOWN_PROPERTY_MAPPING",cr.INTERNAL__UNKNOWN_CLASS_MAPPING="INTERNAL__UNKNOWN_CLASS_MAPPING",cr.INTERNAL__UNKNOWN_MAPPING_INCLUDE="INTERNAL__UNKNOWN_MAPPING_INCLUDE",cr.MAPPING="MAPPING",cr.MAPPING_INCLUDE_MAPPING="MAPPING_INCLUDE_MAPPING",cr.ASSOCIATION_IMPLEMENTATION="ASSOCIATION_IMPLEMENTATION",cr.RELATIONAL_ASSOCIATION_IMPLEMENTATION="RELATIONAL_ASSOCIATION_IMPLEMENTATION",cr.XSTORE_ASSOCIATION_IMPLEMENTATION="XSTORE_ASSOCIATION_IMPLEMENTATION",cr.ENUMERATION_MAPPING="ENUMERATION_MAPPING",cr.ENUM_VALUE_MAPPING="ENUM_VALUE_MAPPING",cr.SET_IMPLEMENTATION="SET_IMPLEMENTATION",cr.OPERATION_SET_IMPLEMENTATION="OPERATION_SET_IMPLEMENTATION",cr.PURE_INSTANCE_SET_IMPLEMENTATION="PURE_INSTANCE_SET_IMPLEMENTATION",cr.PROPERTY_MAPPING="PROPERTY_MAPPING",cr.LOCAL_MAPPING_PROPERTY="LOCAL_MAPPING_PROPERTY",cr.PURE_PROPERTY_MAPPING="PURE_PROPERTY_MAPPING",cr.XSTORE_PROPERTY_MAPPING="XSTORE_PROPERTY_MAPPING",cr.MAPPING_TEST_LEGACY="MAPPING_TEST_LEGACY",cr.MAPPING_TEST_SUITE="MAPPING_TEST_SUITE",cr.MAPPING_TEST="MAPPING_TEST",cr.STORE_TEST_DATA="STORE_TEST_DATA",cr.INPUT_DATA="INPUT_DATA",cr.FLAT_DATA_INPUT_DATA="FLAT_DATA_INPUT_DATA",cr.RELATIONAL_INPUT_DATA="RELATIONAL_INPUT_DATA",cr.OBJECT_INPUT_DATA="OBJECT_INPUT_DATA",cr.MAPPING_TEST_ASSERT="MAPPING_TEST_ASSERT",cr.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT="EXPECTED_OUTPUT_MAPPING_TEST_ASSERT",cr.FILTER_MAPPING="FILTER_MAPPING",cr.COLUMN_MAPPING="COLUMN_MAPPING",cr.GROUP_BY_MAPPING="GROUP_BY_MAPPING",cr.RUNTIME="RUNTIME",cr.PACKAGEABLE_RUNTIME="PACKAGEABLE_RUNTIME",cr.ENGINE_RUNTIME="ENGINE_RUNTIME",cr.SINGLE_ENGINE_RUNTIME="SINGLE_ENGINE_RUNTIME",cr.LEGACY_RUNTIME="LEGACY_RUNTIME",cr.RUNTIME_POINTER="RUNTIME_POINTER",cr.STORE_CONNECTIONS="STORE_CONNECTIONS",cr.IDENTIFIED_CONNECTION="IDENTIFIED_CONNECTION",cr.PACKAGEABLE_CONNECTION="PACKAGEABLE_CONNECTION",cr.CONNECTION_POINTER="CONNECTION_POINTER",cr.XML_MODEL_CONNECTION="XML_MODEL_CONNECTION",cr.JSON_MODEL_CONNECTION="JSON_MODEL_CONNECTION",cr.MODEL_CHAIN_CONNECTION="MODEL_CHAIN_CONNECTION",cr.FLAT_DATA_CONNECTION="FLAT_DATA_CONNECTION",cr.AGGREGATION_AWARE_MAPPING="AGGREGATION_AWARE_MAPPING",cr.AGGREGATION_AWARE_SPECIFICATION="AGGREGATION_AWARE_SPECIFICATION",cr.AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER="AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER",cr.AGGREGATE_FUNCTION="AGGREGATE_FUNCTION",cr.GROUP_BY_FUNCTION="GROUP_BY_FUNCTION",cr.GENERATION_TREE="GENERATION_TREE",cr.GENERATION_TREE_NODE="GENERATION_TREE_NODE",cr.FILE_GENERATION="FILE_GENERATION",cr.CONFIGURATION_PROPERTY="CONFIGURATION_PROPERTY",cr.INTERNAL__UNKNOWN_EMBEDDED_DATA="INTERNAL__UNKNOWN_EMBEDDED_DATA",cr.EXTERNAL_FORMAT_DATA="EXTERNAL_FORMAT_DATA",cr.MODEL_STORE_DATA="MODEL_STORE_DATA",cr.MODEL_DATA="MODEL_DATA",cr.MODEL_EMBEDDED_DATA="MODEL_EMBEDDED_DATA",cr.MODEL_INSTANCE_DATA="MODEL_INSTANCE_DATA",cr.DATA_ELEMENT_REFERENCE="DATA_ELEMENT_REFERENCE",cr.DATA_ELEMENT="DATA_ELEMENT",cr.RELATIONAL_CSV_DATA="RELATIONAL_CSV_DATA",cr.RELATIONAL_TDS="RELATIONAL_TDS",cr.RELATIONAL_CSV_DATA_TABLE="RELATIONAL_CSV_DATA_TABLE",cr.BINDING="BINDING",cr.SCHEMA_SET="SCHEMA_SET",cr.SCHEMA="SCHEMA",cr.MODEL_UNIT="MODEL_UNIT",cr.URL_STREAM="URL_STREAM",cr.EXTERNAL_FORMAT_CONNECTION="EXTERNAL_FORMAT_CONNECTION",cr.SERVICE="SERVICE",cr.SERVICE_OWNER="SERVICE_OWNER",cr.SERVICE_PURE_EXECUTION="SERVICE_PURE_EXECUTION",cr.SERVICE_PURE_SINGLE_EXECUTION="SERVICE_PURE_SINGLE_EXECUTION",cr.SERVICE_KEYED_EXECUTION_PARAMETER="SERVICE_KEYED_EXECUTION_PARAMETER",cr.SERVICE_PURE_MULTI_EXECUTION="SERVICE_PURE_MULTI_EXECUTION",cr.SERVICE_TEST_CONTAINER="SERVICE_TEST_CONTAINER",cr.SERVICE_LEGACY_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_SINGLE_EXECUTION_TEST",cr.SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST",cr.SERVICE_LEGACY_MULTI_EXECUTION_TEST="SERVICE_LEGACY_MULTI_EXECUTION_TEST",cr.SERVICE_CONNECTION_TEST_DATA="SERVICE_CONNECTION_TEST_DATA",cr.SERVICE_TEST_DATA="SERVICE_TEST_DATA",cr.SERVICE_TEST_SUITE="SERVICE_TEST_SUITE",cr.SERVICE_TEST="SERVICE_TEST",cr.SERVICE_PARAMETER_VALUE="SERVICE_PARAMETER_VALUE",cr.SERVICE_POST_VALIDATION="SERVICE_POST_VALIDATION",cr.SERVICE_POST_VALIDATION_ASSERTION="SERVICE_POST_VALIDATION_ASSERTION",cr.EXECUTION_ENVIRONMENT_INSTANCE="EXECUTION_ENVIRONMENT_INSTANCE",cr.SINGLE_EXECUTION_PARAMETER="SINGLE_EXECUTION_PARAMETER",cr.MULTI_EXECUTION_PARAMETER="MULTI_EXECUTION_PARAMETER",cr.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION="INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION",cr.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY="INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY",cr.INTERNAL__UNKNOWN_POST_PROCESSOR="INTERNAL__UNKNOWN_POST_PROCESSOR",cr.DATABASE="DATABASE",cr.DATABASE_SCHEMA="DATABASE_SCHEMA",cr.DATABASE_JOIN="DATABASE_JOIN",cr.DATABASE_FILTER="DATABASE_FILTER",cr.DATBASE_VIEW="DATBASE_VIEW",cr.DATABASE_SCHEMA_TABLE="DATABASE_SCHEMA_TABLE",cr.DATABASE_TABLE_COLUMN="DATABASE_TABLE_COLUMN",cr.RELATIONAL="RELATIONAL",cr.RELATIONAL_OPERATION_DYNA_FUNC="RELATIONAL_OPERATION_DYNA_FUNC",cr.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS="RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS",cr.RELATIONAL_OPERATION_LITERAL="RELATIONAL_OPERATION_LITERAL",cr.RELATIONAL_OPERATION_LITERAL_LIST="RELATIONAL_OPERATION_LITERAL_LIST",cr.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN="RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN",cr.RELATIONAL_OPERATION_TABLE_POINTER="RELATIONAL_OPERATION_TABLE_POINTER",cr.RELATIONAL_OPERATION_JOIN_POINTER="RELATIONAL_OPERATION_JOIN_POINTER",cr.RELATIONAL_DATATYPE_VARCHAR="RELATIONAL_DATATYPE_VARCHAR",cr.RELATIONAL_DATATYPE_CHAR="RELATIONAL_DATATYPE_CHAR",cr.RELATIONAL_DATATYPE_VARBINARY="RELATIONAL_DATATYPE_VARBINARY",cr.RELATIONAL_DATATYPE_BINARY="RELATIONAL_DATATYPE_BINARY",cr.RELATIONAL_DATATYPE_BIT="RELATIONAL_DATATYPE_BIT",cr.RELATIONAL_DATATYPE_INTEGER="RELATIONAL_DATATYPE_INTEGER",cr.RELATIONAL_DATATYPE_BIGINT="RELATIONAL_DATATYPE_BIGINT",cr.RELATIONAL_DATATYPE_SMALLINT="RELATIONAL_DATATYPE_SMALLINT",cr.RELATIONAL_DATATYPE_TINYINT="RELATIONAL_DATATYPE_TINYINT",cr.RELATIONAL_DATATYPE_NUMERIC="RELATIONAL_DATATYPE_NUMERIC",cr.RELATIONAL_DATATYPE_DECIMAL="RELATIONAL_DATATYPE_DECIMAL",cr.RELATIONAL_DATATYPE_DOUBLE="RELATIONAL_DATATYPE_DOUBLE",cr.RELATIONAL_DATATYPE_FLOAT="RELATIONAL_DATATYPE_FLOAT",cr.RELATIONAL_DATATYPE_REAL="RELATIONAL_DATATYPE_REAL",cr.RELATIONAL_DATATYPE_DATE="RELATIONAL_DATATYPE_DATE",cr.RELATIONAL_DATATYPE_TIMESTAMP="RELATIONAL_DATATYPE_TIMESTAMP",cr.RELATIONAL_DATATYPE_OTHER="RELATIONAL_DATATYPE_OTHER",cr.RELATIONAL_DATATYPE_SEMISTRUCTURED="RELATIONAL_DATATYPE_SEMISTRUCTURED",cr.RELATIONAL_DATATYPE_JSON="RELATIONAL_DATATYPE_JSON",cr.ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION="ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION",cr.RELATIONAL_INSTANCE_SET_IMPLEMENTATION="RELATIONAL_INSTANCE_SET_IMPLEMENTATION",cr.REALTIONAL_PROPERTY_MAPPING="REALTIONAL_PROPERTY_MAPPING",cr.EMBEDDED_REALTIONAL_PROPERTY_MAPPING="EMBEDDED_REALTIONAL_PROPERTY_MAPPING",cr.INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",cr.OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",cr.BUSINESS_MILESTONING="BUSINESS_MILESTONING",cr.BUSINESS_SNAPSHOT_MILESTONING="BUSINESS_SNAPSHOT_MILESTONING",cr.PROCESSING_MILESTONING="PROCESSING_MILESTONING",cr.RELATIONAL_DATABASE_CONNECTION="RELATIONAL_DATABASE_CONNECTION",cr.STATIC_DATASOURCE_SPECIFICATION="STATIC_DATASOURCE_SPECIFICATION",cr.LOCAL_H2_DATASOURCE_SPECIFICATION="LOCAL_H2_DATASOURCE_SPECIFICATION",cr.EMBEDDED_H2_DATASOURCE_SPECIFICATION="EMBEDDED_H2_DATASOURCE_SPECIFICATION",cr.SNOWFLAKE_DATASOURCE_SPECIFICATION="SNOWFLAKE_DATASOURCE_SPECIFICATION",cr.REDSHIFT_DATASOURCE_SPECIFICATION="REDSHIFT_DATASOURCE_SPECIFICATION",cr.BIGQUERY_DATASOURCE_SPECIFICATION="BIGQUERY_DATASOURCE_SPECIFICATION",cr.DATABRICKS_DATASOURCE_SPECIFICATION="DATABRICKS_DATASOURCE_SPECIFICATION",cr.SPANNER_DATASOURCE_SPECIFICATION="SPANNER_DATASOURCE_SPECIFICATION",cr.TRINO_DATASOURCE_SPECIFICATION="TRINO_DATASOURCE_SPECIFICATION",cr.TRINO_SSL_SPECIFICATION="TRINO_SSL_SPECIFICATION",cr.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY="DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY",cr.DEFAULT_H2_AUTHENTICATION_STRATEGY="DEFAULT_H2_AUTHENTICATION_STRATEGY",cr.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY="SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY",cr.API_TOKEN_AUTHENTICATION_STRATEGY="API_TOKEN_AUTHENTICATION_STRATEGY",cr.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY="GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY",cr.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",cr.OAUTH_AUTHENTICATION_STRATEGY="OAUTH_AUTHENTICATION_STRATEGY",cr.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY="GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY",cr.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",cr.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY="TRINO_KEREBEROS_AUTHENTICATION_STRATEGY",cr.MAPPER_POST_PROCESSOR="MAPPER_POST_PROCESSOR",cr.SCHEMA_MAPPER="SCHEMA_MAPPER",cr.TABLE_MAPPER="TABLE_MAPPER",cr.FLAT_DATA="FLAT_DATA",cr.FLAT_DATA_SECTION="FLAT_DATA_SECTION",cr.FLAT_DATA_PROPERTY="FLAT_DATA_PROPERTY",cr.FLAT_DATA_ROOT_RECORD_TYPE="FLAT_DATA_ROOT_RECORD_TYPE",cr.FLAT_DATA_RECORD_TYPE="FLAT_DATA_RECORD_TYPE",cr.FLAT_DATA_RECORD_FIELD="FLAT_DATA_RECORD_FIELD",cr.FLAT_DATA_STRING="FLAT_DATA_STRING",cr.FLAT_DATA_BOOLEAN="FLAT_DATA_BOOLEAN",cr.FLAT_DATA_NUMBER="FLAT_DATA_NUMBER",cr.FLAT_DATA_INTEGER="FLAT_DATA_INTEGER",cr.FLAT_DATA_FLOAT="FLAT_DATA_FLOAT",cr.FLAT_DATA_DECIMAL="FLAT_DATA_DECIMAL",cr.FLAT_DATA_DATE="FLAT_DATA_DATE",cr.FLAT_DATA_DATE_TIME="FLAT_DATA_DATE_TIME",cr.FLAT_DATA_STRICT_DATE="FLAT_DATA_STRICT_DATE",cr.FLAT_DATA_INSTANCE_SET_IMPLEMENTATION="FLAT_DATA_INSTANCE_SET_IMPLEMENTATION",cr.FLAT_DATA_PROPERTY_MAPPING="FLAT_DATA_PROPERTY_MAPPING",cr.FLAT_DATA_ASSOCIATION_IMPLEMENTATION="FLAT_DATA_ASSOCIATION_IMPLEMENTATION",cr.FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING="FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING",cr.EMBEDDED_FLAT_DATA_PROPERTY_MAPPING="EMBEDDED_FLAT_DATA_PROPERTY_MAPPING",cr.FLAT_DATA_SECTION_POINTER="FLAT_DATA_SECTION_POINTER",cr.SNOWFLAKE_APP="SNOWFLAKE_APP",cr.HOSTED_SERVICE="HOSTED_SERVICE",cr.HOSTED_SERVICE_OWNER="HOSTED_SERVICE_OWNER";class br extends sr{class;accept_GraphFetchTreeVisitor(e){return e.visit_RootGraphFetchTree(this)}get hashCode(){return or([ir.ROOT_GRAPH_FETCH_TREE,or(this.subTrees),or(this.subTypeTrees),this.class])}}class Cr{lowerBound=0;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return or([ir.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Cr(0,0);static ZERO_ONE=new Cr(0,1);static ZERO_MANY=new Cr(0,void 0);static ONE=new Cr(1,1);static ONE_MANY=new Cr(1,void 0)}class Ar extends rr{multiplicity=Cr.ONE}class Tr extends Ar{body=[];parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_Lambda(this)}}class _r extends rr{multiplicity=Cr.ONE}class Nr{name;startType;path=[]}class yr extends rr{multiplicity=Cr.ONE}class vr extends yr{function;fControl;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedFunction(this)}}class Sr extends rr{multiplicity=Cr.ONE_MANY;values=[];accept_ValueSpecificationVisitor(e){return e.visit_Collection(this)}}class Ir extends _r{}class xr extends Ir{value;accept_ValueSpecificationVisitor(e){return e.visit_CDecimal(this)}}class kr extends Ir{value;accept_ValueSpecificationVisitor(e){return e.visit_CInteger(this)}}class Rr extends Ir{value;accept_ValueSpecificationVisitor(e){return e.visit_CString(this)}}class wr extends Ir{value;accept_ValueSpecificationVisitor(e){return e.visit_CFloat(this)}}class Or extends Ir{}class Fr extends Or{value;accept_ValueSpecificationVisitor(e){return e.visit_CDateTime(this)}}class Lr extends Or{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictDate(this)}}class Br extends Ir{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictTime(this)}}class Pr extends Ir{value;accept_ValueSpecificationVisitor(e){return e.visit_CBoolean(this)}}class Dr{mapFn;aggregateFn}class jr{first;second}class Mr{runtime}class Ur{executionContext}class Gr extends sr{property;parameters=[];alias;subType;accept_GraphFetchTreeVisitor(e){return e.visit_PropertyGraphFetchTree(this)}get hashCode(){return or([ir.PROPERTY_GRAPH_FETCH_TREE,or(this.subTrees),this.property,this.alias??"",this.subType??""])}}class Hr extends sr{subTypeClass;accept_GraphFetchTreeVisitor(e){return e.visit_SubTypeGraphFetchTree(this)}get hashCode(){return or([ir.SUBTYPE_GRAPH_FETCH_TREE,or(this.subTrees),this.subTypeClass])}}class Vr{includeType;typeKeyName;includeEnumType;removePropertiesWithNullValues;removePropertiesWithEmptySets;fullyQualifiedTypePath;includeObjectReference}class Yr extends Ar{add;expression;key;accept_ValueSpecificationVisitor(e){return e.visit_KeyExpression(this)}}class Wr{values=[]}class $r{name;pmapFn;aggregateFn}class Kr{name;columnFn}class Xr{column;direction}class zr{function}class qr{function;columnName}class Jr{colSpecs=[]}class Qr{name;type;function1;function2}class Zr{path=[]}!function(e){e.CORE="CORE",e.MAIN="ROOT",e.MODEL_GENERATION="MODEL_GENERATION_ROOT",e.SYSTEM="SYSTEM_ROOT",e.PROJECT_DEPENDENCY_ROOT="PROJECT_DEPENDENCY_ROOT"}(lr||(lr={})),(gr=dr||(dr={})).STRING="String",gr.BOOLEAN="Boolean",gr.BINARY="Binary",gr.NUMBER="Number",gr.INTEGER="Integer",gr.FLOAT="Float",gr.DECIMAL="Decimal",gr.DATE="Date",gr.STRICTDATE="StrictDate",gr.DATETIME="DateTime",gr.STRICTTIME="StrictTime",gr.LATESTDATE="LatestDate",gr.BYTE="Byte",function(e){e.Service_Test="serviceTest",e.Mapping_Test="mappingTest",e.Function_Test="functionTest"}(ur||(ur={})),function(e){e.ANY="meta::pure::metamodel::type::Any",e.NIL="meta::pure::metamodel::type::Nil",e.PROFILE_DOC="meta::pure::profiles::doc",e.PROFILE_TEMPORAL="meta::pure::profiles::temporal",e.PROFILE="meta::pure::metamodel::extension::Profile",e.ENUMERATION="meta::pure::metamodel::type::Enumeration",e.MEASURE="meta::pure::metamodel::type::Measure",e.CLASS="meta::pure::metamodel::type::Class",e.ASSOCIATION="meta::pure::metamodel::relationship::Association",e.FUNCTION="meta::pure::metamodel::function::ConcreteFunctionDefinition",e.FLAT_DATA="meta::flatData::metamodel::FlatData",e.DATABASE="meta::relational::metamodel::Database",e.MAPPING="meta::pure::mapping::Mapping",e.SERVICE="meta::legend::service::metamodel::Service",e.CONNECTION="meta::pure::runtime::PackageableConnection",e.RUNTIME="meta::pure::runtime::PackageableRuntime",e.EXECUTION_ENVIRONMENT="meta::legend::service::metamodel::ExecutionEnvironmentInstance",e.FILE_GENERATION="meta::pure::generation::metamodel::GenerationConfiguration",e.GENERATION_SPECIFICATION="meta::pure::generation::metamodel::GenerationSpecification",e.SECTION_INDEX="meta::pure::metamodel::section::SectionIndex",e.DATA_ELEMENT="meta::pure::data::DataElement",e.SNOWFLAKE_APP="meta::external::function::activator::snowflakeApp::SnowflakeApp",e.HOSTED_SERVICE="meta::external::function::activator::hostedService::HostedService"}(pr||(pr={})),function(e){e.BUSINESS_TEMPORAL="businesstemporal",e.PROCESSING_TEMPORAL="processingtemporal",e.BITEMPORAL="bitemporal"}(mr||(mr={})),function(e){e.ALL_VERSIONS="AllVersions",e.ALL_VERSIONS_IN_RANGE="AllVersionsInRange"}(fr||(fr={})),function(e){e.CLASS="CLASS",e.STORE="STORE",e.MAPPING="MAPPING",e.RUNTIME="RUNTIME",e.FUNCTION="FUNCTION",e.FILE_GENERATION="FILE_GENERATION",e.SERVICE="SERVICE",e.DATA="DATA"}(hr||(hr={})),function(e){e.LET="meta::pure::functions::lang::letFunction",e.NEW="meta::pure::functions::meta::new",e.FROM="meta::pure::mapping::from"}(Er||(Er={}));class ea{package;name;get path(){return`${this.package}::${this.name}`}get hashCode(){return or([ir.PACKAGEABLE_ELEMENT,this.path])}}const ta=new pe((0,ge.PL)(class{sourceId;startLine;startColumn;endLine;endColumn},{sourceId:(0,ge.MY)(),startLine:(0,ge.MY)(),startColumn:(0,ge.MY)(),endLine:(0,ge.MY)(),endColumn:(0,ge.MY)()}));class na{package;name;sourceInformation;static serialization=new pe((0,ge.PL)(na,{package:(0,ge.MY)(),name:(0,ge.MY)(),sourceInformation:he(ta.schema)}))}(0,ge.PL)(class{type;path;constructor(e,t){this.type=e,this.path=t}get hashCode(){return or([ir.PACKAGEABLE_ELEMENT_POINTER,this.type??"",this.path])}},{path:(0,ge.MY)(),type:(0,ge.lq)((0,ge.MY)())});const oa=(0,ge.PL)(Cr,{lowerBound:(0,ge.MY)(),upperBound:(0,ge.lq)((0,ge.MY)())});class ra{}class aa extends ra{property;parameters=[]}class sa extends yr{class;property;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedProperty(this)}}class ia{}class ca extends ia{mappings=[];connectionStores=[];connections=[];get hashCode(){return or([ir.ENGINE_RUNTIME,or(this.mappings),or(this.connectionStores),or(this.connections)])}}class la extends ca{get hashCode(){return or([ir.SINGLE_ENGINE_RUNTIME,or(this.mappings),or(this.connectionStores),or(this.connections)])}}class da extends ia{runtime;get hashCode(){return or([ir.RUNTIME_POINTER,this.runtime])}}var ua;!function(e){e.RUNTIME_POINTER="runtimePointer",e.LEGACY_RUNTIME="legacyRuntime",e.ENGINE_RUNTIME="engineRuntime",e.SINGLE_ENGINE_RUNTIME="localEngineRuntime"}(ua||(ua={}));const ga=(0,ge.PL)(da,{_type:fe(ua.RUNTIME_POINTER),runtime:(0,ge.MY)()});(0,ge.PL)(class extends ea{runtimeValue;get hashCode(){return or([ir.PACKAGEABLE_RUNTIME,this.path,this.runtimeValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableRuntime(this)}},{_type:fe("runtime"),name:(0,ge.MY)(),package:(0,ge.MY)(),runtimeValue:(0,ge.Ie)((e=>{return(t=e)instanceof la?(0,ge.lK)(la,t):(0,ge.lK)(ca,t);var t}),(e=>{return(t=e)._type===ua.SINGLE_ENGINE_RUNTIME?(0,ge.iu)(la,t):(0,ge.iu)(ca,t);var t}))});class pa{queryTimeOutInSeconds;enableConstraints}class ma extends pa{useAnalytics;toFlowSetFunction}class fa extends pa{}class ha extends rr{multiplicity=Cr.ONE;fullPath;accept_ValueSpecificationVisitor(e){return e.visit_PackageableElementPtr(this)}}class Ea extends ha{accept_ValueSpecificationVisitor(e){return e.visit_GenericTypeInstance(this)}}class ba extends rr{multiplicity=Cr.ONE;type;value;accept_ValueSpecificationVisitor(e){return e.visit_ClassInstance(this)}}var Ca,Aa,Ta,_a,Na;!function(e){e.BASE_EXECUTION_CONTEXT="BaseExecutionContext",e.ANALYTICS_EXECUTION_CONTEXT="AnalyticsExecutionContext"}(Ca||(Ca={})),function(e){e.PROPERTY_PATH_ELEMENT="propertyPath"}(Aa||(Aa={})),function(e){e.PROPERTY_GRAPH_FETCH_TREE="propertyGraphFetchTree"}(Ta||(Ta={})),function(e){e.ROOT_GRAPH_FETCH_TREE="rootGraphFetchTree",e.SUBTYPE_GRAPH_FETCH_TREE="subTypeGraphFetchTree",e.PATH="path",e.AGGREGATE_VALUE="aggregateValue",e.EXECUTION_CONTEXT_INSTANCE="executionContextInstance",e.PAIR="pair",e.PURE_LIST="listInstance",e.RUNTIME_INSTANCE="runtimeInstance",e.SERIALIZATION_CONFIG="alloySerializationConfig",e.COL_SPEC="colSpec",e.COL_SPEC_ARRAY="colSpecArray",e.RELATION_STORE_ACCESSOR=">",e.TDS_AGGREGATE_VALUE="tdsAggregateValue",e.TDS_COLUMN_INFORMATION="tdsColumnInformation",e.TDS_SORT_INFORMATION="tdsSortInformation",e.TDS_OLAP_RANK="tdsOlapRank",e.TDS_OLAP_AGGREGATION="tdsOlapAggregation"}(_a||(_a={})),function(e){e.VARIABLE="var",e.LAMBDA="lambda",e.KEY_EXPRESSION="keyExpression",e.APPLIED_FUNCTION="func",e.APPLIED_PROPERTY="property",e.PACKAGEABLE_ELEMENT_PTR="packageableElementPtr",e.GENERIC_TYPE_INSTANCE="genericTypeInstance",e.ENUM_VALUE="enumValue",e.COLLECTION="collection",e.CINTEGER="integer",e.CDECIMAL="decimal",e.CSTRING="string",e.CBOOLEAN="boolean",e.CBYTEARRAY="byteArray",e.CFLOAT="float",e.CDATETIME="dateTime",e.CSTRICTDATE="strictDate",e.CSTRICTTIME="strictTime",e.CLATESTDATE="latestDate",e.CLASS_INSTANCE="classInstance",e.HACKED_CLASS="hackedClass",e.HACKED_UNIT="hackedUnit",e.UNIT_TYPE="unitType",e.PRIMITIVE_TYPE="primitiveType",e.CLASS="class",e.ENUM="enum",e.MAPPING_INSTANCE="mappingInstance"}(Na||(Na={}));const ya=(0,ge.PL)(ar,{_type:fe(Na.VARIABLE),class:(0,ge.lq)((0,ge.MY)()),multiplicity:me(oa),name:(0,ge.MY)()}),va=e=>(0,ge.PL)(Tr,{_type:fe(Na.LAMBDA),body:(0,ge.p_)((0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e)))),parameters:(0,ge.p_)(me(ya))}),Sa=e=>(0,ge.PL)(Yr,{_type:fe(Na.KEY_EXPRESSION),add:(0,ge.lq)((0,ge.MY)()),expression:(0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e))),key:(0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e)))}),Ia=e=>(0,ge.PL)(vr,{_type:fe(Na.APPLIED_FUNCTION),function:(0,ge.MY)(),parameters:(0,ge.p_)((0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e))))}),xa=e=>(0,ge.PL)(sa,{_type:fe(Na.APPLIED_PROPERTY),class:(0,ge.lq)((0,ge.MY)()),parameters:(0,ge.p_)((0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e)))),property:(0,ge.MY)()}),ka=(0,ge.PL)(ha,{_type:fe(Na.PACKAGEABLE_ELEMENT_PTR),fullPath:(0,ge.MY)()}),Ra=(0,ge.PL)(Ea,{_type:fe(Na.GENERIC_TYPE_INSTANCE),fullPath:(0,ge.MY)()}),wa=e=>{const t=new Ea;return M(e.unitType)?t.fullPath=e.unitType:t.fullPath=Y(e.fullPath,"Can't deserialize hacked unit: either field 'fullPath' or 'unitType' must be a non-empty string"),t},Oa=e=>{const t=new Ea;return t.fullPath=Y(e.fullPath,"Can't deserialize hacked class: field 'fullPath' must be a non-empty string"),t},Fa=e=>(0,ge.PL)(Sr,{_type:fe(Na.COLLECTION),multiplicity:me(oa),values:(0,ge.p_)((0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e))))}),La=(0,ge.PL)(class extends _r{fullPath;value;accept_ValueSpecificationVisitor(e){return e.visit_EnumValue(this)}},{_type:fe(Na.ENUM_VALUE),fullPath:(0,ge.MY)(),value:(0,ge.MY)()}),Ba=(0,ge.PL)(xr,{_type:fe(Na.CDECIMAL),value:(0,ge.MY)()}),Pa=(0,ge.PL)(kr,{_type:fe(Na.CINTEGER),value:(0,ge.MY)()}),Da=(0,ge.PL)(Rr,{_type:fe(Na.CSTRING),value:(0,ge.MY)()}),ja=(0,ge.PL)(wr,{_type:fe(Na.CFLOAT),value:(0,ge.MY)()}),Ma=(0,ge.PL)(Fr,{_type:fe(Na.CDATETIME),value:(0,ge.MY)()}),Ua=(0,ge.PL)(Br,{_type:fe(Na.CSTRICTTIME),value:(0,ge.MY)()}),Ga=(0,ge.PL)(Lr,{_type:fe(Na.CSTRICTDATE),value:(0,ge.MY)()}),Ha=(0,ge.PL)(class extends Or{accept_ValueSpecificationVisitor(e){return e.visit_CLatestDate(this)}},{_type:fe(Na.CLATESTDATE)}),Va=(0,ge.PL)(Pr,{_type:fe(Na.CBOOLEAN),value:(0,ge.MY)()}),Ya=(0,ge.PL)(class extends Ir{value;accept_ValueSpecificationVisitor(e){return e.visit_CByteArray(this)}},{_type:fe(Na.CBYTEARRAY),value:(0,ge.MY)()}),Wa=(e,t,n)=>{if(Array.isArray(e.values)){if(0===e.values.length){const e=new Sr;return e.multiplicity=Cr.ZERO,e}return 1===e.values.length?n({...e,value:e.values[0]}):Es({...e,_type:Na.COLLECTION},t)}return n(e)},$a=e=>(0,ge.PL)(ba,{_type:fe(Na.CLASS_INSTANCE),multiplicity:me(oa),type:(0,ge.MY)(),value:(0,ge.Ie)((t=>function(e,t){if(e instanceof Nr)return(0,ge.lK)(Xa(t),e);if(e instanceof br)return(0,ge.lK)(za(t),e);if(e instanceof Ur)return(0,ge.lK)(ns(t),e);if(e instanceof Dr)return(0,ge.lK)(os(t),e);if(e instanceof jr)return(0,ge.lK)(rs(t),e);if(e instanceof Wr)return(0,ge.lK)(ss(t),e);if(e instanceof Mr)return(0,ge.lK)(as,e);if(e instanceof Vr)return(0,ge.lK)(is,e);if(e instanceof $r)return(0,ge.lK)(cs(t),e);if(e instanceof Kr)return(0,ge.lK)(ls(t),e);if(e instanceof qr)return(0,ge.lK)(fs(t),e);if(e instanceof zr)return(0,ge.lK)(ms(t),e);if(e instanceof Xr)return(0,ge.lK)(ds,e);if(e instanceof Qr)return(0,ge.lK)(gs(t),e);if(e instanceof Jr)return(0,ge.lK)(ps(t),e);if(e instanceof Zr)return(0,ge.lK)(us,e);const n=t.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolSerializers?.()??[]));for(const o of n){const n=o(e,t);if(n)return n}throw new I("Can't serialize class instance value: no compatible serializer available from plugins",e)}(t,e)),((t,n)=>function(e,t,n){switch(t){case _a.PATH:return(0,ge.iu)(Xa(n),e);case _a.ROOT_GRAPH_FETCH_TREE:return(0,ge.iu)(za(n),e);case _a.AGGREGATE_VALUE:return(0,ge.iu)(os(n),e);case _a.EXECUTION_CONTEXT_INSTANCE:return(0,ge.iu)(ns(n),e);case _a.PAIR:return(0,ge.iu)(rs(n),e);case _a.PURE_LIST:return(0,ge.iu)(ss(n),e);case _a.RUNTIME_INSTANCE:return(0,ge.iu)(as,e);case _a.SERIALIZATION_CONFIG:return(0,ge.iu)(is,e);case _a.TDS_AGGREGATE_VALUE:return(0,ge.iu)(cs(n),e);case _a.TDS_COLUMN_INFORMATION:return(0,ge.iu)(ls(n),e);case _a.TDS_OLAP_AGGREGATION:return(0,ge.iu)(fs(n),e);case _a.TDS_OLAP_RANK:return(0,ge.iu)(ms(n),e);case _a.TDS_SORT_INFORMATION:return(0,ge.iu)(ds,e);case _a.COL_SPEC:return(0,ge.iu)(gs(n),e);case _a.COL_SPEC_ARRAY:return(0,ge.iu)(ps(n),e);case _a.RELATION_STORE_ACCESSOR:return(0,ge.iu)(us,e);default:{const o=n.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolDeserializers?.()??[]));for(const r of o){const o=r(e,t,n);if(o)return o}throw new I(`Can't deserialize value specification of type '${e._type}': no compatible deserializer available from plugins`)}}}(t,n.json.type,e)))}),Ka=e=>(0,ge.PL)(aa,{_type:fe(Aa.PROPERTY_PATH_ELEMENT),property:(0,ge.MY)(),parameters:(0,ge.p_)((0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e))))}),Xa=e=>(0,ge.PL)(Nr,{_type:fe(_a.PATH),name:(0,ge.MY)(),startType:(0,ge.MY)(),path:(0,ge.p_)((0,ge.Ie)((t=>function(e,t){return e instanceof aa?(0,ge.lK)(Ka(t),e):ge._Z}(t,e)),(t=>function(e,t){return e._type===Aa.PROPERTY_PATH_ELEMENT?(0,ge.iu)(Ka(t),e):ge._Z}(t,e))))}),za=e=>(0,ge.PL)(br,{_type:fe(_a.ROOT_GRAPH_FETCH_TREE),class:(0,ge.MY)(),subTrees:(0,ge.p_)((0,ge.Ie)((t=>Qa(t,e)),(t=>Za(t,e)))),subTypeTrees:(0,ge.p_)((0,ge.Ie)((t=>Qa(t,e)),(t=>Za(t,e))))}),qa=e=>(0,ge.PL)(Gr,{_type:fe(Ta.PROPERTY_GRAPH_FETCH_TREE),alias:(0,ge.lq)((0,ge.MY)()),parameters:(0,ge.p_)((0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e)))),property:(0,ge.MY)(),subTrees:(0,ge.p_)((0,ge.Ie)((t=>Qa(t,e)),(t=>Za(t,e)))),subTypeTrees:(0,ge.p_)((0,ge.Ie)((t=>Qa(t,e)),(t=>Za(t,e)))),subType:(0,ge.lq)((0,ge.MY)())}),Ja=e=>(0,ge.PL)(Hr,{_type:fe(_a.SUBTYPE_GRAPH_FETCH_TREE),subTrees:(0,ge.p_)((0,ge.Ie)((t=>Qa(t,e)),(t=>Za(t,e)))),subTypeClass:(0,ge.MY)()});function Qa(e,t){if(e instanceof Gr)return(0,ge.lK)(qa(t),e);if(e instanceof br)return(0,ge.lK)(za(t),e);if(e instanceof Hr)return(0,ge.lK)(Ja(t),e);throw new I("Can't serialize graph fetch tree",e)}function Za(e,t){switch(e._type){case Ta.PROPERTY_GRAPH_FETCH_TREE:return(0,ge.iu)(qa(t),e);case _a.ROOT_GRAPH_FETCH_TREE:return(0,ge.iu)(za(t),e);case _a.SUBTYPE_GRAPH_FETCH_TREE:return(0,ge.iu)(Ja(t),e);default:throw new I(`Can't deserialize graph fetch tree node of type '${e._type}'`)}}const es=e=>(0,ge.PL)(ma,{_type:fe(Ca.ANALYTICS_EXECUTION_CONTEXT),enableConstraints:(0,ge.lq)((0,ge.MY)()),queryTimeOutInSeconds:(0,ge.lq)((0,ge.MY)()),toFlowSetFunction:me(va(e)),useAnalytics:(0,ge.MY)()}),ts=(0,ge.PL)(fa,{_type:fe(Ca.BASE_EXECUTION_CONTEXT),enableConstraints:(0,ge.lq)((0,ge.MY)()),queryTimeOutInSeconds:(0,ge.lq)((0,ge.MY)())}),ns=e=>(0,ge.PL)(Ur,{_type:fe(_a.EXECUTION_CONTEXT_INSTANCE),executionContext:(0,ge.Ie)((t=>function(e,t){return e instanceof ma?(0,ge.lK)(es(t),e):e instanceof fa?(0,ge.lK)(ts,e):ge._Z}(t,e)),(t=>function(e,t){switch(e._type){case Ca.ANALYTICS_EXECUTION_CONTEXT:return(0,ge.iu)(es(t),e);case Ca.BASE_EXECUTION_CONTEXT:return(0,ge.iu)(ts,e);default:return ge._Z}}(t,e)))}),os=e=>(0,ge.PL)(Dr,{_type:fe(_a.AGGREGATE_VALUE),mapFn:me(va(e)),aggregateFn:me(va(e))}),rs=e=>(0,ge.PL)(jr,{_type:fe(_a.PAIR),first:(0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e))),second:(0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e)))}),as=(0,ge.PL)(Mr,{_type:fe(_a.RUNTIME_INSTANCE),runtime:(0,ge.Ie)((e=>(e=>{if(e instanceof ca)return(0,ge.lK)(ca,e);if(e instanceof da)return(0,ge.lK)(ga,e);throw new I("Can't serialize runtime",e)})(e)),(e=>(0,ge.iu)(ca,e)))}),ss=e=>(0,ge.PL)(Wr,{_type:fe(_a.PURE_LIST),values:(0,ge.p_)((0,ge.Ie)((t=>bs(t,e)),(t=>Es(t,e))))}),is=(0,ge.PL)(Vr,{_type:fe(_a.SERIALIZATION_CONFIG),includeType:(0,ge.lq)((0,ge.MY)()),typeKeyName:(0,ge.MY)(),includeEnumTypee:(0,ge.lq)((0,ge.MY)()),removePropertiesWithNullValuese:(0,ge.lq)((0,ge.MY)()),removePropertiesWithEmptySetse:(0,ge.lq)((0,ge.MY)()),fullyQualifiedTypePathe:(0,ge.lq)((0,ge.MY)()),includeObjectReferencee:(0,ge.lq)((0,ge.MY)())}),cs=e=>(0,ge.PL)($r,{_type:fe(_a.TDS_AGGREGATE_VALUE),name:(0,ge.MY)(),pmapFn:me(va(e)),aggregateFn:me(va(e))}),ls=e=>(0,ge.PL)(Kr,{_type:fe(_a.TDS_COLUMN_INFORMATION),name:(0,ge.MY)(),columnFn:me(va(e))}),ds=(0,ge.PL)(Xr,{_type:fe(_a.TDS_SORT_INFORMATION),column:(0,ge.MY)(),direction:(0,ge.MY)()}),us=(0,ge.PL)(Zr,{path:(0,ge.p_)((0,ge.MY)())}),gs=e=>(0,ge.PL)(Qr,{function1:(0,ge.lq)(me(va(e))),function2:(0,ge.lq)(me(va(e))),name:(0,ge.MY)(),type:(0,ge.lq)((0,ge.MY)())}),ps=e=>(0,ge.PL)(Jr,{colSpecs:(0,ge.p_)(me(gs(e)))}),ms=e=>(0,ge.PL)(zr,{_type:fe(_a.TDS_OLAP_RANK),function:me(va(e))}),fs=e=>(0,ge.PL)(qr,{_type:fe(_a.TDS_OLAP_AGGREGATION),function:me(va(e)),columnName:(0,ge.MY)()});class hs{plugins=[];constructor(e){this.plugins=e}visit_INTERNAL__UnknownValueSpecfication(e){return e.content}visit_Variable(e){return(0,ge.lK)(ya,e)}visit_Lambda(e){return(0,ge.lK)(va(this.plugins),e)}visit_KeyExpression(e){return(0,ge.lK)(Sa(this.plugins),e)}visit_PackageableElementPtr(e){return(0,ge.lK)(ka,e)}visit_GenericTypeInstance(e){return(0,ge.lK)(Ra,e)}visit_AppliedFunction(e){return(0,ge.lK)(Ia(this.plugins),e)}visit_AppliedProperty(e){return(0,ge.lK)(xa(this.plugins),e)}visit_Collection(e){return(0,ge.lK)(Fa(this.plugins),e)}visit_EnumValue(e){return(0,ge.lK)(La,e)}visit_CInteger(e){return(0,ge.lK)(Pa,e)}visit_CDecimal(e){return(0,ge.lK)(Ba,e)}visit_CString(e){return(0,ge.lK)(Da,e)}visit_CBoolean(e){return(0,ge.lK)(Va,e)}visit_CByteArray(e){return(0,ge.lK)(Ya,e)}visit_CFloat(e){return(0,ge.lK)(ja,e)}visit_CDateTime(e){return(0,ge.lK)(Ma,e)}visit_CStrictDate(e){return(0,ge.lK)(Ga,e)}visit_CStrictTime(e){return(0,ge.lK)(Ua,e)}visit_CLatestDate(e){return(0,ge.lK)(Ha,e)}visit_ClassInstance(e){return(0,ge.lK)($a(this.plugins),e)}}function Es(e,t){switch(e._type){case Na.APPLIED_FUNCTION:return(0,ge.iu)(Ia(t),e);case Na.APPLIED_PROPERTY:return(0,ge.iu)(xa(t),e);case Na.VARIABLE:return(0,ge.iu)(ya,e);case Na.LAMBDA:return(0,ge.iu)(va(t),e);case Na.KEY_EXPRESSION:return(0,ge.iu)(Sa(t),e);case Na.COLLECTION:return(0,ge.iu)(Fa(t),e);case Na.ENUM_VALUE:return(0,ge.iu)(La,e);case Na.CBOOLEAN:return Wa(e,t,(e=>(0,ge.iu)(Va,e)));case Na.CBYTEARRAY:return Wa(e,t,(e=>(0,ge.iu)(Ya,e)));case Na.CDATETIME:return Wa(e,t,(e=>(0,ge.iu)(Ma,e)));case Na.CSTRICTTIME:return Wa(e,t,(e=>(0,ge.iu)(Ua,e)));case Na.CDECIMAL:return Wa(e,t,(e=>(0,ge.iu)(Ba,e)));case Na.CFLOAT:return Wa(e,t,(e=>(0,ge.iu)(ja,e)));case Na.CINTEGER:return Wa(e,t,(e=>(0,ge.iu)(Pa,e)));case Na.CLATESTDATE:return Wa(e,t,(e=>(0,ge.iu)(Ha,e)));case Na.CSTRICTDATE:return Wa(e,t,(e=>(0,ge.iu)(Ga,e)));case Na.CSTRING:if(Array.isArray(e.values)&&!e.values.length&&V(e.multiplicity)&&1===e.multiplicity.upperBound){const e=new Rr;return e.value="",e}return Wa(e,t,(e=>(0,ge.iu)(Da,e)));case Na.CLASS_INSTANCE:return(0,ge.iu)($a(t),e);case _a.PAIR:case _a.AGGREGATE_VALUE:case _a.EXECUTION_CONTEXT_INSTANCE:case _a.PATH:case _a.ROOT_GRAPH_FETCH_TREE:case _a.PURE_LIST:case _a.RUNTIME_INSTANCE:case _a.SERIALIZATION_CONFIG:case _a.TDS_AGGREGATE_VALUE:case _a.TDS_COLUMN_INFORMATION:case _a.TDS_OLAP_AGGREGATION:case _a.TDS_OLAP_RANK:case _a.TDS_SORT_INFORMATION:return(0,ge.iu)($a(t),{_type:Na.CLASS_INSTANCE,type:e._type,value:e});case Na.HACKED_CLASS:return Oa(e);case Na.UNIT_TYPE:case Na.HACKED_UNIT:return wa(e);case Na.PRIMITIVE_TYPE:case Na.ENUM:case Na.CLASS:case Na.MAPPING_INSTANCE:case Na.PACKAGEABLE_ELEMENT_PTR:return(0,ge.iu)(ka,e);case Na.GENERIC_TYPE_INSTANCE:return(0,ge.iu)(Ra,e);default:throw new I(`Can't deserialize value specification of type '${e._type}'`)}}function bs(e,t){return e.accept_ValueSpecificationVisitor(new hs(t))}var Cs=n(8492);const As=e=>L((0,Cs.A)(e.split("::"))),Ts=(e,t)=>Array.isArray(t)?t.some((t=>Ts(e,t))):e===t||As(t)===e;class _s{uuid=(0,a.A)();timestamp=Date.now();data;_finalized=!1;_hashCode;constructor(e,t,n,o){this.data={name:e,runtime:t,sourceQuery:n,configuration:o,sourceColumns:[],leafExtendedColumns:[],selectColumns:[],filter:void 0,groupBy:void 0,pivot:void 0,groupExtendedColumns:[],sortColumns:[],limit:void 0}}static create(e,t,n,o){return new _s(e,t,n,o)}clone(){const e=new _s("","",{},{});return e.data=JSON.parse(JSON.stringify(this.data)),e}stageCols(e){switch(e){case"filter":case"leaf-extend":return[...this.data.sourceColumns];case"select":return[...this.data.sourceColumns,...this.data.leafExtendedColumns];case"aggregation":case"group-extend":return[...this.data.selectColumns];case"sort":return[...this.data.selectColumns,...this.data.groupExtendedColumns];default:throw new S(`Unknown stage '${e}'`)}}isFinalized(){return this._finalized}finalize(){return this._finalized||(this._hashCode=this.computeHashCode(),this._finalized=!0),this}get hashCode(){if(!this._finalized||!this._hashCode)throw new S("Snapshot is not finalized");return this._hashCode}computeHashCode(){return e=_(this.data),j(H(e),"Can't hash non-object value"),tr(e,undefined);var e}}function Ns(e,t){return e?.find((e=>e.name===t))}function ys(e,t){return L(e?.find((e=>e.name===t)),`Can't find column '${t}'`)}const vs={transparent:"#00000000",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}};var Ss;!function(e){e.EXTEND="meta::pure::functions::relation::extend",e.FILTER="meta::pure::functions::relation::filter",e.GROUP_BY="meta::pure::functions::relation::groupBy",e.LIMIT="meta::pure::functions::relation::limit",e.PIVOT="meta::pure::functions::relation::pivot",e.SELECT="meta::pure::functions::relation::select",e.SLICE="meta::pure::functions::relation::slice",e.SORT="meta::pure::functions::relation::sort",e.CAST="meta::pure::functions::lang::cast",e.FROM="meta::pure::mapping::from",e.ASC="meta::pure::functions::relation::ascending",e.DESC="meta::pure::functions::relation::descending",e.AND="meta::pure::functions::boolean::and",e.NOT="meta::pure::functions::boolean::not",e.OR="meta::pure::functions::boolean::or",e.CONTAINS="meta::pure::functions::string::contains",e.ENDS_WITH="meta::pure::functions::string::endsWith",e.EQUAL="meta::pure::functions::boolean::equal",e.GREATER_THAN="meta::pure::functions::boolean::greaterThan",e.GREATER_THAN_EQUAL="meta::pure::functions::boolean::greaterThanEqual",e.IN="meta::pure::functions::collection::in",e.IS_EMPTY="meta::pure::functions::collection::isEmpty",e.LESS_THAN="meta::pure::functions::boolean::lessThan",e.LESS_THAN_EQUAL="meta::pure::functions::boolean::lessThanEqual",e.STARTS_WITH="meta::pure::functions::string::startsWith",e.AVERAGE="meta::pure::functions::math::average",e.COUNT="meta::pure::functions::collection::count",e.DISTINCT="meta::pure::functions::collection::distinct",e.FIRST="meta::pure::functions::collection::first",e.JOIN_STRINGS="meta::pure::functions::string::joinStrings",e.LAST="meta::pure::functions::collection::last",e.MAX="meta::pure::functions::collection::max",e.MIN="meta::pure::functions::collection::min",e.SUM="meta::pure::functions::math::sum",e.STDDEV_POP="meta::pure::functions::math::stdDevPopulation",e.STDDEV_SAMP="meta::pure::functions::math::stdDevSample",e.VAR_POP="meta::pure::functions::math::variancePopulation",e.VAR_SAMP="meta::pure::functions::math::varianceSample"}(Ss||(Ss={}));const Is="x";var xs,ks,Rs,ws,Os,Fs,Ls,Bs,Ps,Ds,js,Ms,Us,Gs;function Hs(e){switch(e){case dr.NUMBER:case dr.INTEGER:case dr.DECIMAL:case dr.FLOAT:return Gs.NUMBER;case dr.DATE:case dr.DATETIME:case dr.STRICTDATE:return Gs.DATE;case dr.STRING:default:return Gs.TEXT}}!function(e){e.BASIS_POINT="Basis Points (bp)",e.PERCENT="Percent (%)",e.THOUSANDS="Thousands (k)",e.MILLIONS="Millions (m)",e.BILLIONS="Billions (b)",e.TRILLIONS="Trillions (t)",e.AUTO="Auto (k/m/b/t)"}(xs||(xs={})),function(e){e.COUNT="Count",e.SUM="Sum",e.MIN="Min",e.MAX="Max",e.AVERAGE="Average"}(ks||(ks={})),function(e){e.ARIAL="Arial",e.ROBOTO="Roboto",e.ROBOTO_CONDENSED="Roboto Condensed",e.TIMES_NEW_ROMAN="Times New Roman",e.GEORGIA="Georgia",e.ROBOTO_SERIF="Roboto Serif",e.JERBRAINS_MONO="Jetbrains Mono",e.ROBOTO_MONO="Roboto Mono",e.UBUNTU_MONO="Ubuntu Mono"}(Rs||(Rs={})),function(e){e.CENTER="center",e.LEFT="left",e.RIGHT="right"}(ws||(ws={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(Os||(Os={})),function(e){e.SOLID="solid",e.DASHED="dashed",e.DOTTED="dotted",e.DOUBLE="double",e.WAVY="wavy"}(Fs||(Fs={})),function(e){e.MEASURE="Measure",e.DIMENSION="Dimension"}(Ls||(Ls={})),Bs||(Bs={}),function(e){e.SUM="sum",e.AVERAGE="avg",e.COUNT="count",e.MIN="min",e.MAX="max",e.FIRST="first",e.LAST="last",e.VAR_POP="var_samp",e.VAR_SAMP="var_pop",e.STDDEV_POP="stddev_pop",e.STDDEV_SAMP="stddev_samp"}(Ps||(Ps={})),function(e){e.EQUAL="equal",e.NOT_EQUAL="notEqual",e.GREATER_THAN="greaterThan",e.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",e.LESS_THAN="lessThan",e.LESS_THAN_OR_EQUAL="lessThanOrEqual",e.BLANK="isEmpty",e.NOT_BLANK="isNotEmpty",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.STARTS_WITH="startsWith",e.ENDS_WITH="endsWith"}(Ds||(Ds={})),function(e){e.AND="and",e.OR="or"}(js||(js={})),function(e){e.ASCENDING="ascending",e.DESCENDING="descending"}(Ms||(Ms={})),function(e){e.LEFT="Left",e.RIGHT="Right"}(Us||(Us={})),function(e){e.NUMBER="number",e.DATE="date",e.TEXT="text"}(Gs||(Gs={}));const Vs="dataCube.linkLabel",Ys=vs.neutral[200],Ws="#d7e0eb",$s=Rs.ROBOTO,Ks=!1,Xs=!1,zs=void 0,qs=!1,Js=ws.LEFT,Qs=vs.black,Zs=vs.transparent,ei=vs.white,ti=vs.red[500],ni=vs.neutral[400],oi=vs.blue[600];class ri{name;type;kind=Ls.DIMENSION;displayName;decimals;displayCommas=!1;negativeNumberInParens=!1;numberScale;missingValueDisplayText;hPivotSortFunction;fontFamily;fontSize;fontBold;fontItalic;fontUnderline;fontStrikethrough;fontCase;textAlign;normalForegroundColor;negativeForegroundColor;zeroForegroundColor;errorForegroundColor;normalBackgroundColor;negativeBackgroundColor;zeroBackgroundColor;errorBackgroundColor;blur=!1;hideFromView=!1;fixedWidth;minWidth;maxWidth;pinned;displayAsLink=!1;linkLabelParameter;constructor(e,t){this.name=e,this.type=t}static serialization=new pe((0,ge.PL)(ri,{blur:(0,ge.MY)(),decimals:(0,ge.lq)((0,ge.MY)()),displayAsLink:(0,ge.MY)(),displayCommas:(0,ge.MY)(),displayName:(0,ge.lq)((0,ge.MY)()),errorBackgroundColor:(0,ge.lq)((0,ge.MY)()),errorForegroundColor:(0,ge.lq)((0,ge.MY)()),fixedWidth:(0,ge.lq)((0,ge.MY)()),fontBold:(0,ge.lq)((0,ge.MY)()),fontCase:(0,ge.lq)((0,ge.MY)()),fontFamily:(0,ge.lq)((0,ge.MY)()),fontItalic:(0,ge.lq)((0,ge.MY)()),fontSize:(0,ge.lq)((0,ge.MY)()),fontStrikethrough:(0,ge.lq)((0,ge.MY)()),fontUnderline:(0,ge.lq)((0,ge.MY)()),hideFromView:(0,ge.MY)(),hPivotSortFunction:(0,ge.lq)((0,ge.MY)()),kind:(0,ge.MY)(),linkLabelParameter:(0,ge.lq)((0,ge.MY)()),maxWidth:(0,ge.lq)((0,ge.MY)()),minWidth:(0,ge.lq)((0,ge.MY)()),missingValueDisplayText:(0,ge.lq)((0,ge.MY)()),name:(0,ge.MY)(),negativeBackgroundColor:(0,ge.lq)((0,ge.MY)()),negativeForegroundColor:(0,ge.lq)((0,ge.MY)()),normalBackgroundColor:(0,ge.lq)((0,ge.MY)()),normalForegroundColor:(0,ge.lq)((0,ge.MY)()),negativeNumberInParens:(0,ge.MY)(),numberScale:(0,ge.lq)((0,ge.MY)()),pinned:(0,ge.lq)((0,ge.MY)()),textAlign:(0,ge.lq)((0,ge.MY)()),type:(0,ge.MY)(),zeroBackgroundColor:(0,ge.lq)((0,ge.MY)()),zeroForegroundColor:(0,ge.lq)((0,ge.MY)())}))}class ai{description;columns=[];showTreeLines=!1;showHorizontalGridLines=!1;showVerticalGridLines=!0;gridLineColor=Ys;fontFamily=$s;fontSize=11;fontBold=Ks;fontItalic=Xs;fontUnderline=zs;fontStrikethrough=qs;fontCase=void 0;textAlign=Js;normalForegroundColor=Qs;negativeForegroundColor=ti;zeroForegroundColor=ni;errorForegroundColor=oi;normalBackgroundColor=Zs;negativeBackgroundColor=Zs;zeroBackgroundColor=Zs;errorBackgroundColor=Zs;alternateRows=!1;alternateRowsStandardMode=!0;alternateRowsColor=Ws;alternateRowsCount=1;initialExpandLevel;showRootAggregation=!1;showLeafCount=!1;addPivotTotalColumn=!0;addPivotTotalColumnOnLeft=!0;treeGroupSortFunction;selectionStats=[];showWarningForTruncatedResult=!0;static serialization=new pe((0,ge.PL)(ai,{addPivotTotalColumn:(0,ge.MY)(),addPivotTotalColumnOnLeft:(0,ge.MY)(),alternateRows:(0,ge.MY)(),alternateRowsColor:(0,ge.MY)(),alternateRowsCount:(0,ge.MY)(),alternateRowsStandardMode:(0,ge.MY)(),columns:(0,ge.p_)(me(ri.serialization.schema)),errorBackgroundColor:(0,ge.MY)(),errorForegroundColor:(0,ge.MY)(),description:(0,ge.lq)((0,ge.MY)()),fontBold:(0,ge.MY)(),fontCase:(0,ge.lq)((0,ge.MY)()),fontFamily:(0,ge.MY)(),fontItalic:(0,ge.MY)(),fontSize:(0,ge.MY)(),fontStrikethrough:(0,ge.MY)(),fontUnderline:(0,ge.lq)((0,ge.MY)()),gridLineColor:(0,ge.MY)(),initialExpandLevel:(0,ge.lq)((0,ge.MY)()),negativeBackgroundColor:(0,ge.MY)(),negativeForegroundColor:(0,ge.MY)(),normalBackgroundColor:(0,ge.MY)(),normalForegroundColor:(0,ge.MY)(),selectionStats:(0,ge.p_)((0,ge.MY)()),showHorizontalGridLines:(0,ge.MY)(),showLeafCount:(0,ge.MY)(),showRootAggregation:(0,ge.MY)(),showTreeLines:(0,ge.MY)(),showVerticalGridLines:(0,ge.MY)(),showWarningForTruncatedResult:(0,ge.MY)(),textAlign:(0,ge.MY)(),treeGroupSortFunction:(0,ge.lq)((0,ge.MY)()),zeroBackgroundColor:(0,ge.MY)(),zeroForegroundColor:(0,ge.MY)()}))}function si(e){return P(Es(e,[]),Tr)}function ii(e){const t=new ar;return t.name=e??Is,t}function ci(e,t){const n=new sa;return n.property=e,n.parameters.push(t??ii()),n}function li(e,t){const n=new Tr;return n.parameters=e,n.body=t,n}function di(e,t){const n=new vr;return n.function=e,n.parameters=t,n}function ui(e){const t=new Sr;return t.multiplicity=new Cr(e.length,e.length),t.values=e,t}function gi(e,t){const n=(e,t)=>(e.value=t,e);switch(e){case dr.STRING:return n(new Rr,Y(t));case dr.BOOLEAN:return n(new Pr,$(t));case dr.NUMBER:case dr.DECIMAL:return n(new xr,W(t));case dr.INTEGER:return n(new kr,W(t));case dr.FLOAT:return n(new wr,W(t));case dr.DATE:case dr.DATETIME:return n(new Fr,Y(t));case dr.STRICTDATE:return n(new Lr,Y(t));case dr.STRICTTIME:return n(new Br,Y(t));default:throw new I(`Unsupported value type '${e}'`)}}function pi(e){const t=new ha;return t.fullPath=e,t}function mi(e,t){const n=new ba;return n.type=e,n.value=t,n}function fi(e,t,n){const o=new Qr;return o.name=e,o.function1=t,o.function2=n,o}function hi(e){switch(e.type){case dr.STRING:case dr.BOOLEAN:case dr.NUMBER:case dr.DECIMAL:case dr.INTEGER:case dr.FLOAT:case dr.DATE:case dr.DATETIME:case dr.STRICTDATE:case dr.STRICTTIME:return Array.isArray(e.value)?ui(e.value.map((t=>gi(e.type,t)))):gi(e.type,e.value);default:throw new I(`Unsupported value type '${e.type}'`)}}function Ei(e,t){const n=e.parameters.map((e=>hi(e)));return di(function(e){switch(e){case Ps.SUM:return Ss.SUM;case Ps.AVERAGE:return Ss.AVERAGE;case Ps.COUNT:return Ss.COUNT;case Ps.MIN:return Ss.MIN;case Ps.MAX:return Ss.MAX;case Ps.FIRST:return Ss.FIRST;case Ps.LAST:return Ss.LAST;case Ps.VAR_POP:return Ss.VAR_POP;case Ps.VAR_SAMP:return Ss.VAR_SAMP;case Ps.STDDEV_POP:return Ss.STDDEV_POP;case Ps.STDDEV_SAMP:return Ss.STDDEV_SAMP;default:throw new I(`Unsupported aggregate operation '${e}'`)}}(e.operation),[t??ii(),...n])}function bi(e){const t=new Jr;return t.colSpecs=e,mi(_a.COL_SPEC_ARRAY,t)}function Ci(e){const t=ii();return e.length?e.map((e=>fi(e.name,li([t],[ci(e.name,t)]),li([t],[Ei(e)])))):[fi("INTERNAL__filler_count_agg_column",li([t],[t]),li([t],[di(Ss.COUNT,[t])]))]}function Ai(e){if("groupOperation"in e){const t=e,n=t.groupOperation===js.AND?Ss.AND:Ss.OR;let o=[];return t.conditions.forEach((e=>{o.push(Ai(e)),2===o.length&&(o=[di(n,o)])})),L(o[0])}{const t=e,n=ci(t.name),o=(e,...t)=>di(As(e),[n,...t]),r=()=>hi(L(t.value)),a=e=>di(As(Ss.NOT),[e]);switch(t.operation){case Ds.EQUAL:return o(Ss.EQUAL,r());case Ds.GREATER_THAN:return o(Ss.GREATER_THAN,r());case Ds.GREATER_THAN_OR_EQUAL:return o(Ss.GREATER_THAN_EQUAL,r());case Ds.LESS_THAN:return o(Ss.LESS_THAN,r());case Ds.LESS_THAN_OR_EQUAL:return o(Ss.LESS_THAN_EQUAL,r());case Ds.CONTAINS:return o(Ss.CONTAINS,r());case Ds.ENDS_WITH:return o(Ss.ENDS_WITH,r());case Ds.STARTS_WITH:return o(Ss.STARTS_WITH,r());case Ds.BLANK:return o(Ss.IS_EMPTY);case Ds.NOT_EQUAL:return a(o(Ss.EQUAL,r()));case Ds.NOT_BLANK:return a(o(Ss.IS_EMPTY));case Ds.NOT_CONTAINS:return a(o(Ss.CONTAINS,r()));default:throw new I(`Unsupported filter operation '${t.operation}'`)}}}function Ti(e,t){const n=e.filter((e=>!Ns(t,e.name)));return n.length?di(As(Ss.EXTEND),[bi(n.map((e=>fi(e.name,li([ii()],[gi(dr.STRING,"")])))))]):void 0}function _i(e){const{name:t,type:n}=e,o=new ri(t,n);switch(n){case dr.NUMBER:case dr.INTEGER:case dr.DECIMAL:case dr.FLOAT:o.kind=Ls.MEASURE,o.decimals=n===dr.INTEGER?0:2,o.displayCommas=!0,o.negativeNumberInParens=!0,o.textAlign=ws.RIGHT}return o}function Ni(e,t,n){return j(e.parameters.length>=t+1,`Can't process ${As(e.function)}: Expected at least ${t+1} parameter(s)`),P(e.parameters[t],n,`Can't process ${As(e.function)}: Found unexpected type for parameter at index ${t}`)}function yi(e,t){return P(Ni(e,t,ba).value,Jr,`Can't process ${As(e.function)}: Expected parameter at index ${t} to be a column specification list`)}function vi(e,t){return B(e,vr,"Can't process function: Found unexpected value specification type"),j(Ts(e.function,Array.isArray(t)?t:[t]),`Can't process function: Expected function name to be one of [${Array.isArray(t)?t.join(", "):t}]`),e}const Si=[{func:Ss.FILTER,parameters:1},{func:Ss.EXTEND,parameters:1},{func:Ss.SELECT,parameters:1},{func:Ss.GROUP_BY,parameters:3},{func:Ss.LIMIT,parameters:1},{func:Ss.PIVOT,parameters:3},{func:Ss.SORT,parameters:1},{func:Ss.CAST,parameters:1}],Ii=[{func:Ss.FILTER},{func:Ss.EXTEND},{func:Ss.SELECT},{func:Ss.GROUP_BY},{func:Ss.PIVOT},{func:Ss.CAST},{func:Ss.EXTEND},{func:Ss.SORT},{func:Ss.LIMIT}],xi=new RegExp(`^${Ii.map((e=>`(?:<${As(e.func)}>)${e.repeat?"*":e.required?"":"?"}`)).join("")}$`);function ki(e,t,n){const o=function(e){let t,n;const o=e.findLastIndex((e=>Ts(e.function,[Ss.PIVOT,Ss.GROUP_BY]))),r=e.findIndex((e=>Ts(e.function,Ss.EXTEND))),a=e.findLastIndex((e=>Ts(e.function,Ss.EXTEND)));return-1!==o?r!==a&&(t=e[r],n=e[a]):-1!==r&&(t=e[r]),{leafExtend:t,select:e.find((e=>Ts(e.function,Ss.SELECT))),filter:e.find((e=>Ts(e.function,Ss.FILTER))),groupBy:e.find((e=>Ts(e.function,Ss.GROUP_BY))),pivot:e.find((e=>Ts(e.function,Ss.PIVOT))),pivotCast:e.find((e=>Ts(e.function,Ss.CAST))),groupExtend:n,sort:e.find((e=>Ts(e.function,Ss.SORT))),limit:e.find((e=>Ts(e.function,Ss.LIMIT)))}}(function(e){if(!(e instanceof vr))throw new Error("Query must be a sequence of function calls (e.g. x()->y()->z())");const t=[];let n=e;for(;n instanceof vr;){const e=Si.find((e=>Ts(n.function,e.func)));if(!e)throw new Error(`Found unsupported function ${n.function}()`);if(!(n.parameters.length>e.parameters)){t.unshift(n);break}{const e=n.parameters[0];if(!(e instanceof vr))throw new Error("Query must be a sequence of function calls (e.g. x()->y()->z())");n.parameters=n.parameters.slice(1),t.unshift(n),n=e}}if(!t.map((e=>`<${As(e.function)}>`)).join("").match(xi))throw new Error(`Unsupported function composition ${t.map((e=>`${As(e.function)}()`)).join("->")} (supported composition: ${Ii.map((e=>`${As(e.func)}()`)).join("->")})`);const o=t.findIndex((e=>Ts(e.function,Ss.EXTEND))),r=t.findLastIndex((e=>Ts(e.function,Ss.EXTEND)));if(-1!==o&&o!==r&&!t.slice(o+1,r).some((e=>Ts(e.function,Ss.GROUP_BY)||Ts(e.function,Ss.PIVOT))))throw new Error("Found invalid usage of group-level extend() for query without aggregation such as pivot() and groupBy()");const a=t.find((e=>Ts(e.function,Ss.PIVOT))),s=t.find((e=>Ts(e.function,Ss.CAST)));if(Boolean(a)!==Boolean(s))throw new Error("Found usage of dynamic function pivot() without casting");return t}(e)),r=_s.create(n.name,n.source.runtime,bs(t,[]),{}),a=r.data,s=new Map,i=e=>{const t=L(s.get(e.name),`Can't find column '${e.name}'`);return{name:t.name,type:t.type}};if(a.sourceColumns=n.source.columns.map((e=>({name:e.name,type:e.type}))),a.sourceColumns.map((e=>s.set(e.name,e))),o.filter,o.select&&(a.selectColumns=yi(o.select,0).colSpecs.map((e=>i(e)))),o.groupBy&&(a.groupBy={columns:yi(o.groupBy,0).colSpecs.map((e=>i(e))),aggColumns:yi(o.groupBy,1).colSpecs.map((e=>function(e,t){const n=(o=e.function2,r=Object.values(Ss),B(o,Tr,"Can't process aggregation: Found unexpected value specification type"),vi(o.body[0],r));var o,r;if(Ts(n.function,Ss.COUNT))return{...t,operation:Ps.COUNT,parameters:[]};if(Ts(n.function,Ss.SUM))return{...t,operation:Ps.SUM,parameters:[]};if(Ts(n.function,Ss.AVERAGE))return{...t,operation:Ps.AVERAGE,parameters:[]};if(Ts(n.function,Ss.MIN))return{...t,operation:Ps.MIN,parameters:[]};if(Ts(n.function,Ss.MAX))return{...t,operation:Ps.MAX,parameters:[]};if(Ts(n.function,Ss.FIRST))return{...t,operation:Ps.FIRST,parameters:[]};if(Ts(n.function,Ss.LAST))return{...t,operation:Ps.LAST,parameters:[]};if(Ts(n.function,Ss.VAR_POP))return{...t,operation:Ps.VAR_POP,parameters:[]};if(Ts(n.function,Ss.VAR_SAMP))return{...t,operation:Ps.VAR_SAMP,parameters:[]};if(Ts(n.function,Ss.STDDEV_POP))return{...t,operation:Ps.STDDEV_POP,parameters:[]};if(Ts(n.function,Ss.STDDEV_SAMP))return{...t,operation:Ps.STDDEV_SAMP,parameters:[]};throw new I(`Unsupported aggregate function '${n.function}'`)}(e,i(e))))}),o.sort&&(a.sortColumns=Ni(o.sort,0,Sr).values.map((e=>{const t=vi(e,[Ss.ASC,Ss.DESC]);return{...i((n=t,P(Ni(n,0,ba).value,Qr,`Can't process ${As(n.function)}: Expected parameter at index 0 to be a column specification`))),operation:As(t.function)===Ss.ASC?Ms.ASCENDING:Ms.DESCENDING};var n}))),o.limit){const e=o.limit.parameters[0];B(e,kr),a.limit=e.value}const c=n.configuration?ai.serialization.fromJson(n.configuration):function(e){const t=new ai;return t.columns=e.map((e=>_i(e))),t}(n.source.columns);return a.configuration=ai.serialization.toJson(c),r.finalize()}function Ri(e,t){return t.columns.filter((t=>t.kind===Ls.MEASURE&&!e?.columns.find((e=>e.name===t.name)))).map((t=>e?.aggColumns.find((e=>e.name===t.name))??function(e,t){switch(t){case dr.NUMBER:case dr.INTEGER:case dr.DECIMAL:case dr.FLOAT:return{name:e,type:t,operation:Ps.SUM,parameters:[]};default:return}}(t.name,t.type))).filter(O)}function wi(){const e=ii();return fi(dc,li([e],[e]),li([e],[di(Ss.COUNT,[e])]))}var Oi=n(9073);function Fi(...e){return(0,Oi.QP)((0,At.$)(e))}var Li=n(7262),Bi=n(5314),Pi=n(5236),Di=n(6251),ji=n(9787);const Mi={AdvancedSettings:ji.teB,AlertError:Mt.Zt1,AlertInfo:Mt.$Mj,AlertWarning:Mt.vDk,CaretDown:ji.UgJ,CaretRight:ji.Izh,Checkbox:Li.Pvj,CheckboxSelected:Li.Kad,ChevronLeft:ji.h$A,ChevronRight:ji.klJ,ChevronDown:ji.ciu,Code:ji.sAL,Cube:ji.keA,Debug:ji.$mE,Documentation:ji.KHb,DocumentationHint:Mt.Jzf,FontBold:Bi.ux7,FontCase:Di.tEi,FontItalic:Bi.LPp,FontUnderline:Bi.dgX,FontStrikethrough:Bi.kKc,Loader:ji.C5G,Menu:ji.Gb_,Note:ji.Jb_,Pin:Vt.Cxm,Search:ji.PuI,Settings:ji.yRe,Table:ji.ZIs,TableColumn:ji.QKp,TableColumnOptions__Settings:ji.uRn,TableColumns:ji.N9Z,TableExtendedColumn:ji.w28,TableFilter:ji.XPy,TableFilterPlus:ji.VmB,TableFilterCode:ji.awR,TableGroupBy:ji.PAn,TableOptions:ji.v$W,TablePagination:Bi.Hs5,TablePivot:ji.ba8,TablePlus:ji.ZQn,TableRemoveColumn:ji.F6Q,TableRow:ji.wV0,TableRowColumn:ji.QE3,TableScroll:Pi.cfM,TableSort:ji.r9t,TextAlignLeft:Pi.T4j,TextAlignCenter:Pi.roG,TextAlignRight:Pi.QHN,Window:Vt.PV7,X:Vt.D9N,Warning:ji.fQM,WarningCircle:ji.Ajk};var Ui;function Gi(e){const{message:t,type:n,text:o,actions:r=[],onClose:a}=e;return(0,E.jsxs)("div",{className:"h-full w-full",children:[(0,E.jsxs)("div",{className:Fi("flex w-full overflow-auto p-6",{"h-[calc(100%_-_40px)]":0!==r.length,"h-full":!r.length}),children:[(0,E.jsxs)("div",{className:"mr-3",children:[n===Ui.INFO&&(0,E.jsx)(Mi.AlertInfo,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-sky-500"}),n===Ui.WARNING&&(0,E.jsx)(Mi.AlertWarning,{className:"flex-shrink-0 stroke-[0.3px] text-[40px] text-amber-500"}),n===Ui.ERROR&&(0,E.jsx)(Mi.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:t}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:o})]})]}),0!==r.length&&(0,E.jsx)("div",{className:"flex h-10 items-center justify-center border border-t-neutral-300 px-2",children:r.map(((e,t)=>(0,E.jsx)("button",{className:"ml-2 h-6 border border-neutral-400 bg-neutral-300 px-2 first-of-type:ml-0 hover:brightness-95",onClick:()=>{e.handler(),a?.()},autoFocus:0===t,children:e.label},t)))})]})}!function(e){e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR"}(Ui||(Ui={}));const Hi=(0,ht.PA)((e=>{const{info:t}=e,{title:n,message:o,prompt:r,type:a,onClose:s,actions:i}=t,c=(0,Rt.useRef)(null),l=Ot();return(0,E.jsx)(Ct.A,{open:Boolean(l.alertService.actionAlertInfo),onClose:T,TransitionProps:{onEnter:()=>{if(c.current?.parentElement){const{width:e,height:t}=c.current.parentElement.getBoundingClientRect();c.current.style.width=`${e}px`,c.current.style.height=`${t}px`}}},PaperProps:{elevation:0},slotProps:{backdrop:{classes:{root:"bg-black !opacity-25"}}},classes:{root:"h-full w-full flex items-center justify-center",paper:"min-h-10 min-w-40 rounded-none shadow-md"},children:(0,E.jsxs)("div",{className:"border border-neutral-400 bg-neutral-200 shadow-xl",ref:c,children:[(0,E.jsx)("div",{className:"flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white",children:(0,E.jsx)("div",{className:"px-2",children:n??""})}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Gi,{type:a===It.STANDARD?Ui.INFO:a===It.CAUTION?Ui.WARNING:Ui.ERROR,message:o,text:r,actions:i.filter((e=>M(e.label))).sort(((e,t)=>e.default?-1:1)).map((e=>({label:e.label,handler:()=>{e.handler?.(),s?.(),l.alertService.setActionAlertInfo(void 0)}})))})})]})})})),Vi=(0,ht.PA)((()=>{const e=Ot().alertService.actionAlertInfo;return e?(0,E.jsx)(Hi,{info:e}):null}));class Yi{title;contentRenderer;window={};constructor(e,t){this.contentRenderer=t,this.title=e}}class Wi{uuid=(0,a.A)();configuration;onClose;constructor(e,t){this.configuration=e,this.onClose=t}}class $i{application;windows=[];constructor(e){(0,Ne.Gn)(this,{windows:Ne.sH,newWindow:Ne.XI,bringWindowFront:Ne.XI,closeWindow:Ne.XI}),this.application=e}newWindow(e){this.windows.push(e)}bringWindowFront(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),this.windows.push(e))}closeWindow(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),e.onClose?.())}}const Ki=50,Xi={width:800,height:600,minWidth:300,minHeight:300,center:!0},zi={width:500,height:80,minWidth:200,minHeight:80,center:!0},qi={width:600,height:200,minWidth:300,minHeight:150,center:!0};class Ji{layoutManagerState;configuration;window;constructor(e,t,n){(0,Ne.Gn)(this,{window:Ne.sH,isOpen:Ne.EW,open:Ne.XI,close:Ne.XI}),this.layoutManagerState=e,this.configuration=new Yi(t,n),this.configuration.window=Xi}get isOpen(){return Boolean(this.window)}open(){this.window?this.layoutManagerState.bringWindowFront(this.window):(this.window=new Wi(this.configuration,(()=>(0,Ne.h5)((()=>{this.window=void 0})))),this.layoutManagerState.newWindow(this.window))}close(){this.window&&(this.layoutManagerState.closeWindow(this.window),this.window=void 0)}}var Qi,Zi;!function(e){e.CSV="CSV",e.EXCEL="EXCEL",e.PLAIN_TEXT="PLAIN_TEXT",e.HTML="HTML",e.PDF="PDF"}(Qi||(Qi={})),function(e){e.ROOT="data-cube-grid.ag-theme-balham",e.HIGHLIGHT_ROW="data-cube-grid__utility--highlight-row",e.SHOW_VERTICAL_GRID_LINES="data-cube-grid__utility--show-vertical-grid-lines",e.SHOW_HORIZONTAL_GRID_LINES="data-cube-grid__utility--show-horizontal-grid-lines",e.BLUR="data-cube-grid__utility--blur",e.FONT_FAMILY_PREFIX="data-cube-grid__utility--font-family-",e.FONT_SIZE_PREFIX="data-cube-grid__utility--font-size-",e.FONT_BOLD="data-cube-grid__utility--font-style-bold",e.FONT_ITALIC="data-cube-grid__utility--font-style-italic",e.FONT_UNDERLINE_PREFIX="data-cube-grid__utility--font-style-underline-",e.FONT_STRIKETHROUGH="data-cube-grid__utility--font-style-strikethrough",e.FONT_CASE_PREFIX="data-cube-grid__utility--font-style-case-",e.TEXT_ALIGN_PREFIX="data-cube-grid__utility--text-align-",e.TEXT_COLOR_PREFIX="data-cube-grid__utility--text-color-",e.BACKGROUND_COLOR_PREFIX="data-cube-grid__utility--background-color-"}(Zi||(Zi={}));const ec=e=>`${Zi.FONT_FAMILY_PREFIX}${e.replaceAll(" ","-")}`,tc=e=>`${Zi.FONT_SIZE_PREFIX}${e}`,nc=e=>`${Zi.FONT_UNDERLINE_PREFIX}${e??"none"}`,oc=e=>`${Zi.FONT_CASE_PREFIX}${e??"none"}`,rc=e=>`${Zi.TEXT_ALIGN_PREFIX}${e}`,ac=(e,t)=>`${Zi.TEXT_COLOR_PREFIX}${t}-${e.substring(1)}`,sc=(e,t)=>`${Zi.BACKGROUND_COLOR_PREFIX}${t}-${e.substring(1)}`,ic=1e5,cc="__MISSING",lc="INTERNAL__tree",dc="INTERNAL__count";var uc,gc,pc;function mc(e){const t=[];return e.forEachNode((e=>{e.data&&t.push(e.data)})),t}function fc(e){const t=[];return e.forEachNodeAfterFilter((e=>{e.data&&t.push(e.data)})),t}!function(e){e.LEFT="left",e.RIGHT="right"}(uc||(uc={})),function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(gc||(gc={})),function(e){e.COUNT="count",e.SUM="sum",e.MAX="max",e.MIN="min",e.AVERAGE="avg"}(pc||(pc={}));class hc{grid;rowCount=void 0;constructor(e){(0,Ne.Gn)(this,{rowCount:Ne.sH}),this.grid=e}async fetchRows(e){const t=this.grid.dataCube.newTask("Fetching data");e.request.rowGroupCols.length?e.api.setColumnsVisible([lc],!0):e.api.setColumnsVisible([lc],!1);const n=L(this.grid.getLatestSnapshot()),o=function(e,t){const n=ai.serialization.fromJson(t.data.configuration),o=t.clone();if(e.rowGroupCols.length){const r=t.stageCols("aggregation");o.data.groupBy={columns:e.rowGroupCols.map((e=>({name:e.id,type:ys(r,e.id).type}))),aggColumns:Ri(t.data.groupBy,n)}}else o.data.groupBy=void 0;return o.data.sortColumns=e.sortModel.map((e=>({...ys(t.stageCols("sort"),e.colId),operation:e.sort===gc.ASCENDING?Ms.ASCENDING:Ms.DESCENDING}))),o.finalize()}(e.request,n);o.hashCode!==n.hashCode&&this.grid.publishSnapshot(o);try{const t=function(e,t){const n=e.data,o=Es(n.sourceQuery,[]),r=ai.serialization.fromJson(n.configuration),a=[],s={},i=(e,t)=>{a.push(t),s[e]=t};if(n.filter&&i("filter",di(As(Ss.FILTER),[li([ii()],[Ai(n.filter)])])),n.leafExtendedColumns.length&&i("leafExtend",di(As(Ss.EXTEND),[bi(n.leafExtendedColumns.map((e=>fi(e.name,si(e.lambda)))))])),n.selectColumns.length&&i("select",di(As(Ss.SELECT),[bi(n.selectColumns.map((e=>fi(e.name))))])),n.groupBy){const t=n.groupBy;i("groupBy",di(As(Ss.GROUP_BY),[bi(t.columns.map((e=>fi(e.name)))),bi(Ci(t.aggColumns))]));const o=Ti(e.stageCols("aggregation"),[...t.columns,...t.aggColumns]);o&&i("groupByExtend",o)}if(n.groupExtendedColumns.length&&i("groupExtend",di(As(Ss.EXTEND),[bi(n.groupExtendedColumns.map((e=>fi(e.name,si(e.lambda)))))])),n.sortColumns.length&&i("sort",di(As(Ss.SORT),[ui(n.sortColumns.map((e=>{return di(As(e.operation===Ms.ASCENDING?Ss.ASC:Ss.DESC),[(t=e.name,mi(_a.COL_SPEC,fi(t,undefined,undefined)))]);var t})))])),n.limit&&i("limit",di(As(Ss.LIMIT),[gi(dr.INTEGER,n.limit)])),t?.pagination&&a.push(di(As(Ss.SLICE),[gi(dr.INTEGER,t.pagination.start),gi(dr.INTEGER,t.pagination.end)])),a.push(di(As(Ss.FROM),[pi(n.runtime)])),t?.postProcessor?.(e,a,s,r),!a.length)return o;for(let e=0;e<a.length;e++)L(a[e]).parameters.unshift(0===e?o:L(a[e-1]));return L(a[a.length-1])}(o,{postProcessor:(a=e.request.groupKeys,(e,t,n,o)=>{const r=e=>{const o=n[e];o&&(t.splice(t.indexOf(o),1),n[e]=void 0)},s=e.data;if(n.groupBy){const o=L(s.groupBy);if(a.length&&t.splice(t.indexOf(n.groupBy),0,di(As(Ss.FILTER),[li([ii()],[Ai({conditions:a.map(((e,t)=>{const n=L(o.columns[t]);if(w(e)||e===cc)return{...n,operation:Ds.BLANK,value:void 0};const r={...n,operation:Ds.EQUAL,value:void 0};switch(n.type){case dr.BOOLEAN:return{...r,value:{type:dr.BOOLEAN,value:"true"===e}};case dr.INTEGER:return{...r,value:{type:n.type,value:parseInt(e,10)}};case dr.NUMBER:case dr.DECIMAL:case dr.FLOAT:return{...r,value:{type:n.type,value:parseFloat(e)}};case dr.STRING:case dr.DATE:case dr.DATETIME:case dr.STRICTDATE:case dr.STRICTTIME:default:return{...r,value:{type:n.type,value:e}}}})),groupOperation:js.AND})])])),a.length<o.columns.length){const s=t.indexOf(n.groupBy),i=o.columns.slice(0,a.length+1),c=di(As(Ss.GROUP_BY),[bi(i.map((e=>fi(e.name)))),bi([...Ci(o.aggColumns),wi()])]);t[s]=c,n.groupBy=c;const l=Ti(e.stageCols("aggregation"),[...i,...o.aggColumns]);r("groupByExtend"),n.groupByExtend=l,l&&t.splice(s+1,0,l)}else r("groupBy"),r("groupByExtend")}}),pagination:this.grid.isPaginationEnabled&&void 0!==e.request.startRow&&void 0!==e.request.endRow?{start:e.request.startRow,end:e.request.endRow}:void 0}),n=new Tr;n.body.push(t);const s=await this.grid.dataCube.engine.executeQuery(n),i=(r=s.result.result).rows.map(((e,t)=>{const n={},o=r.columns;return e.values.forEach(((e,t)=>{n[o[t]]=G(e)?String(e):O(e)?e:cc})),n}));this.grid.dataCube.engine.enableDebugMode&&this.grid.dataCube.application.debugProcess("Execution",`\nQuery: ${s.executedQuery}`,`\nConfig: pagination=${this.grid.isPaginationEnabled}`,`\nStats: ${i.length} rows, ${s.result.result.columns.length} columns`,`\nSQL: ${s.executedSQL}`),this.grid.isPaginationEnabled?(e.success({rowData:i}),0===e.request.groupKeys.length&&(0,Ne.h5)((()=>{this.rowCount=(e.request.startRow??0)+i.length}))):(i.length>ic&&(this.grid.dataCube.repl.dataCubeEngine.disableLargeDatasetWarning||this.grid.dataCube.repl.alert({message:"Large dataset (>100000 rows) detected!",text:"Overall app performance can be impacted by large dataset due to longer query execution time and increased memory usage. At its limit, the application can crash!\nTo boost performance, consider enabling pagination while working with large dataset.",type:Ui.WARNING,actions:[{label:"Enable Pagination",handler:()=>{this.grid.setPaginationEnabled(!0)}},{label:"Dismiss Warning",handler:()=>{this.grid.dataCube.repl.dataCubeEngine.setDisableLargeDatasetWarning(!0)}}],windowConfig:qi}),e.api.ensureIndexVisible(e.parentNode.rowIndex??0,"top")),e.success({rowData:i,rowCount:i.length}),0===e.request.groupKeys.length&&(0,Ne.h5)((()=>{this.rowCount=i.length})))}catch(t){x(t),this.grid.dataCube.repl.alertError(t,{message:`Data fetch failure: ${t.message}`,text:t.stack}),e.fail()}finally{this.grid.dataCube.endTask(t)}var r,a}getRows(e){this.fetchRows(e).catch((e=>{x(e),this.grid.dataCube.application.logService.error(l.create(ue.ILLEGAL_APPLICATION_STATE_OCCURRED),"Error ocurred while fetching data for grid should have been handled gracefully",e)}))}}var Ec=n(1005);class bc{dataCube;application;latestSnapshot;constructor(e){this.dataCube=e,this.application=e.application}async receiveSnapshot(e){const t=this.latestSnapshot;this.latestSnapshot=e,await this.applySnapshot(e,t)}publishSnapshot(e){this.dataCube.engine.enableDebugMode&&this.application.debugProcess("New Snapshot","\nSnapshot",e,"\nDiff",(0,Ec.A)(e,this.latestSnapshot??{})),this.latestSnapshot=e,this.dataCube.snapshotManager.broadcastSnapshot(e)}getLatestSnapshot(){return this.latestSnapshot}}function Cc(e){switch(e.type){case dr.NUMBER:case dr.DECIMAL:case dr.INTEGER:case dr.FLOAT:return"number";case dr.DATE:case dr.DATETIME:case dr.STRICTDATE:return"dateString";case dr.STRING:default:return"text"}}function Ac(e){switch(e.type){case dr.STRING:case dr.DATE:case dr.DATETIME:case dr.STRICTDATE:return[];case dr.NUMBER:case dr.DECIMAL:case dr.INTEGER:case dr.FLOAT:return[pc.AVERAGE,pc.COUNT,pc.SUM,pc.MAX,pc.MIN];default:return[]}}function Tc(e,t){switch(t){case xs.PERCENT:return{value:100*e,unit:"%"};case xs.BASIS_POINT:return{value:1e4*e,unit:"bp"};case xs.THOUSANDS:return{value:e/1e3,unit:"k"};case xs.MILLIONS:return{value:e/1e6,unit:"m"};case xs.BILLIONS:return{value:e/1e9,unit:"b"};case xs.TRILLIONS:return{value:e/1e12,unit:"t"};case xs.AUTO:return Tc(e,e>=1e12?xs.TRILLIONS:e>=1e9?xs.BILLIONS:e>=1e6?xs.MILLIONS:e>=1e3?xs.THOUSANDS:void 0);default:return{value:e,unit:void 0}}}function _c(e){return e.node.failedLoad?(0,E.jsx)("span",{className:"inline-flex items-center",children:"#ERR"}):(0,E.jsxs)("span",{className:"inline-flex items-center",children:[(0,E.jsx)(Mi.Loader,{className:"mr-1 animate-spin stroke-2"}),"Loading"]})}function Nc(e){const{column:t,configuration:n}=e,o=Hs(t.type),r=t.fontFamily??n.fontFamily,a=t.fontSize??n.fontSize,s=t.fontBold??n.fontBold,i=t.fontItalic??n.fontItalic,c=t.fontStrikethrough??n.fontStrikethrough,l=t.fontUnderline??n.fontUnderline,d=t.fontCase??n.fontCase,u=t.textAlign??n.textAlign,g=t.normalForegroundColor??n.normalForegroundColor,p=t.normalBackgroundColor??n.normalBackgroundColor,m=t.negativeForegroundColor??n.negativeForegroundColor,f=t.negativeBackgroundColor??n.negativeBackgroundColor,h=t.zeroForegroundColor??n.zeroForegroundColor,b=t.zeroBackgroundColor??n.zeroBackgroundColor,C=t.errorForegroundColor??n.errorForegroundColor,A=t.errorBackgroundColor??n.errorBackgroundColor,T=function(e){const{column:t}=e;return Hs(t.type)===Gs.TEXT&&t.displayAsLink?function(e){if(n=e.value,!Boolean(k((()=>new URL(n)))))return e.value;var n;const o=e.value,r=de(t.linkLabelParameter??Vs,le(o,!0));return(0,E.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",className:"text-blue-600 underline",children:r??o})}:null}(e);return{cellDataType:Cc(t),hide:t.hideFromView,valueFormatter:o===Gs.NUMBER?e=>{const n=e.value;if(w(n)||n===cc)return t.missingValueDisplayText??"";const o=t.negativeNumberInParens&&n<0,r=Tc(n,t.numberScale),a=(o?Math.abs(r.value):r.value).toLocaleString(void 0,{useGrouping:t.displayCommas,...void 0!==t.decimals?{minimumFractionDigits:t.decimals,maximumFractionDigits:t.decimals}:{}});return(o?`(${a})`:a)+(r.unit?` ${r.unit}`:"")}:e=>e.value===cc?t.missingValueDisplayText??"":e.value,loadingCellRenderer:_c,cellClassRules:{[ec(r)]:()=>!0,[tc(a)]:()=>!0,[Zi.FONT_BOLD]:()=>s,[Zi.FONT_ITALIC]:()=>i,[Zi.FONT_STRIKETHROUGH]:()=>c,[nc(l)]:()=>Boolean(l),[oc(d)]:e=>o===Gs.TEXT&&Boolean(d),[rc(u)]:()=>!0,[ac(g,"normal")]:()=>!0,[sc(p,"normal")]:()=>!0,[ac(h,"zero")]:e=>o===Gs.NUMBER&&U(e.value)&&0===e.value,[sc(b,"zero")]:e=>o===Gs.NUMBER&&U(e.value)&&0===e.value,[ac(m,"negative")]:e=>o===Gs.NUMBER&&U(e.value)&&e.value<0,[sc(f,"negative")]:e=>o===Gs.NUMBER&&U(e.value)&&e.value<0,[ac(C,"error")]:e=>e.node.failedLoad,[sc(A,"error")]:e=>e.node.failedLoad,[Zi.BLUR]:()=>t.blur},cellRenderer:T,pinned:void 0!==t.pinned?t.pinned===Us.RIGHT?uc.RIGHT:uc.LEFT:null,tooltipValueGetter:e=>O(e.value)&&e.value!==cc?`Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`:"Missing Value"}}function yc(e){const{column:t}=e;return{resizable:void 0===t.fixedWidth,width:t.fixedWidth,minWidth:Math.max(t.minWidth??50,50),maxWidth:t.maxWidth}}function vc(e){const{snapshot:t,column:n}=e,o=t.data.sortColumns,r=Ns(o,n.name);return{sortable:!0,sort:r?r.operation===Ms.ASCENDING?gc.ASCENDING:gc.DESCENDING:null,sortIndex:r?o.indexOf(r):null}}function Sc(e){const{snapshot:t,column:n}=e,o=t.data,r=Ns(t.stageCols("aggregation"),n.name),a=Ns(o.groupBy?.columns,n.name),s=Ns(o.groupBy?.aggColumns,n.name);return{enableRowGroup:n.kind===Ls.DIMENSION,enableValue:n.kind===Ls.MEASURE,rowGroup:Boolean(a),rowGroupIndex:a?o.groupBy?.columns.indexOf(a)??null:null,aggFunc:s?s.operation:r&&[dr.NUMBER,dr.DECIMAL,dr.FLOAT,dr.INTEGER].includes(r.type)?pc.SUM:null,allowedAggFuncs:r?Ac(r):[]}}function Ic(e){const t=e.grid;return{rowGroupPanelShow:"always",groupDisplayType:"custom",suppressRowGroupHidesColumns:!0,suppressAggFuncInHeader:!0,getChildCount:e=>e[dc],alwaysMultiSort:!0,rowHeight:20,headerHeight:24,suppressBrowserResizeObserver:!0,noRowsOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(Mi.WarningCircle,{className:"mr-1 stroke-2 text-lg"})}),"0 rows"]}),loadingOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(Mi.Loader,{className:"mr-1 animate-spin stroke-2 text-lg"})}),"Loading..."]}),onBodyScroll:e=>{const n=e.api.getDisplayedRowCount(),o=e.api.getVerticalPixelRange(),r=Math.max(1,Math.ceil(o.top/20)+1),a=Math.min(n,Math.floor(o.bottom/20));t.setScrollHintText(`${r}-${a}/${n}`),e.api.hidePopupMenu()},onBodyScrollEnd:()=>t.setScrollHintText(void 0),preventDefaultOnContextMenu:!0,columnMenu:"new",getContextMenuItems:e=>t.controller.menuBuilder?.(e)??[],getMainMenuItems:e=>t.controller.menuBuilder?.(e)??[],autoSizePadding:10,autoSizeStrategy:{type:"fitCellContents"},tooltipShowDelay:1e3,tooltipInteraction:!0,suppressDragLeaveHidesColumns:!0,suppressScrollOnNewData:!0,suppressServerSideFullWidthLoadingRow:!0,enableRangeSelection:!0,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",minWidth:200,width:200,toolPanelParams:{suppressValues:!0,suppressPivotMode:!0,suppressPivots:!0}}],position:"right"},allowDragFromColumnsToolPanel:!0,animateRows:!1,suppressColumnMoveAnimation:!0}}var xc=n(602),kc=n(1289),Rc=n(2824);function wc(){const[e,t]=(0,Rt.useState)(null);return[e=>t(e.currentTarget),()=>t(null),{anchorEl:e,onClose:()=>t(null)}]}function Oc(e){const{menuProps:t,children:n,onClose:o,anchorEl:r}=e;return r?(0,E.jsx)(Tn.A,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:r,open:Boolean(r),slotProps:{root:{slotProps:{backdrop:{invisible:!0}}}},elevation:1,marginThreshold:0,transitionDuration:0,onClose:o,...t,children:n}):null}function Fc(e){return(0,E.jsx)(Rc.A,{...e,style:{cursor:"default"}})}var Lc=n(9389),Bc=n(7),Pc=n(3558);function Dc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 select-none rounded-md bg-sky-500 px-1 py-0.5 font-semibold text-white",title:"Work In Progress",children:"WIP"})}function jc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 select-none rounded-md bg-amber-500 px-1 py-0.5 font-semibold text-white",title:"Advanced: Becareful when using this feature!",children:"ADV"})}const Mc=(0,Rt.forwardRef)((function(e,t){const{min:n,max:o,step:r,value:a,setValue:s,isValid:i,isDecimal:c,defaultValue:l,disabled:d,className:u}=e,[g,p]=(0,Rt.useState)(a??"");return(0,Rt.useEffect)((()=>{p(a??"")}),[a]),(0,E.jsx)("input",{className:Fi("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",u),ref:t,inputMode:"numeric",type:"number",min:n,max:o,step:r,value:g,disabled:Boolean(d),onChange:e=>{const t=e.target.value;p(t);const r=c?(0,Pc.A)(t):parseInt(t,10);isNaN(r)||!t||(void 0!==i?!i(r):void 0!==n&&r<n||void 0!==o&&r>o)||s(r)},onBlur:()=>{const e=c?(0,Pc.A)(g):parseInt(g.toString(),10);isNaN(e)||!g||(void 0!==i?!i(e):void 0!==n&&e<n||void 0!==o&&e>o)?(s(l),p(l??"")):p(a??"")}})}));function Uc(e){const{className:t,...n}=e;return(0,E.jsx)("input",{className:Fi("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",t),...n})}function Gc(e){const{label:t,className:n,onChange:o,disabled:r,...a}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(kc.A,{icon:(0,E.jsx)(Mi.Checkbox,{}),checkedIcon:(0,E.jsx)(Mi.CheckboxSelected,{}),disableRipple:!0,classes:{root:Fi("p-0 text-neutral-600 [&_*]:stroke-[1.5px] -ml-[1px]",n),checked:"data-cube-editor-checkbox--checked",disabled:"data-cube-editor-checkbox--disabled"},onChange:o,disabled:r,...a}),Boolean(t)&&(0,E.jsx)("button",{className:"flex-shrink-0 pl-1 text-sm disabled:text-neutral-300",onClick:o,disabled:r,tabIndex:-1,children:t})]})}function Hc(e){const{children:t,className:n,...o}=e;return(0,E.jsxs)("button",{className:Fi("group flex h-5 flex-shrink-0 items-center justify-between border border-neutral-400 pl-1.5 text-sm disabled:select-none disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",n),...o,children:[(0,E.jsx)("div",{className:"w-[calc(100%_-_12px)] overflow-hidden overflow-ellipsis whitespace-nowrap text-left",children:e.children}),(0,E.jsx)("div",{className:"flex h-full w-3 items-center justify-center text-neutral-500 group-disabled:text-neutral-400",children:(0,E.jsx)(Mi.CaretDown,{})})]})}function Vc(e){const{className:t,...n}=e;return(0,E.jsx)(Oc,{...n,menuProps:{classes:{paper:"rounded-none mt-[1px]",list:Fi("p-0 rounded-none border border-neutral-400 bg-white max-h-40 overflow-y-auto",t)}}})}function Yc(e){const{className:t,...n}=e;return(0,E.jsx)(Fc,{className:Fi("flex h-5 w-full items-center px-1.5 text-sm hover:bg-neutral-100 focus-visible:bg-neutral-100",t),...n})}function Wc(){return(0,E.jsx)("div",{className:"my-0.5 h-[1px] w-full bg-neutral-200"})}function $c(e){const{onChange:t,onClose:n,defaultColor:o}=e,[r,a]=(0,Rt.useState)(e.color),s=()=>{t(0===(0,Lc.A)(r).alpha?vs.transparent:r),n()};return(0,E.jsxs)("div",{className:"data-cube-color-picker rounded-none border border-neutral-400 bg-white",children:[(0,E.jsx)("div",{className:"p-2",children:(0,E.jsx)(Bc.dp,{color:r,onChange:a})}),(0,E.jsx)("div",{className:"flex justify-center px-2",children:["slate","neutral","red","orange","amber","yellow","lime","green","emerald","teal","sky","blue","indigo","violet","purple","fuchsia","pink","rose"].map((e=>(0,E.jsx)("div",{className:"mr-0.5 flex flex-col border-[0.5px] border-neutral-300 last:mr-0",children:[50,100,200,300,400,500,600,700,800,900,950].map((t=>(0,E.jsx)("button",{className:"h-3 w-3 flex-shrink-0",style:{background:vs[e][t]},onClick:()=>{a(vs[e][t])},onDoubleClick:()=>{a(vs[e][t]),s()}},`${e}-${t}`)))},e)))}),(0,E.jsx)("div",{className:"flex justify-center px-2 pb-1 pt-0.5",children:(0,E.jsx)("div",{className:"flex",children:[vs.transparent,"#000000","#aaaaaa","#dddddd","#ffffff","#ff4136","#ff851b","#ffdc00","#01ff70","#2ecc40","#3d9970","#39cccc","#7fdbff","#0074d9","#001f3f","#b10dc9","#f012be","#85144b"].map((e=>(0,E.jsx)("div",{className:Fi("mr-0.5 border-[0.5px] border-neutral-300 last:mr-0",{"data-cube-color-picker--transparent border-neutral-400":e===vs.transparent}),children:(0,E.jsx)("button",{className:"flex h-3 w-3 flex-shrink-0",style:{background:e},onClick:()=>{a(e)},onDoubleClick:()=>{a(e),s()}})},e)))})}),(0,E.jsx)("div",{className:"h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-6 items-center justify-between p-1",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)("div",{className:"h-4 w-4 flex-shrink-0 rounded-sm border-[0.5px] border-neutral-300",style:{background:r}}),(0,E.jsx)(Bc.HC,{className:"ml-0.5 h-4 w-14 border border-neutral-400 px-1 text-sm",color:r,autoFocus:!0,tabIndex:0,onChange:a,prefix:"#",alpha:!0})]}),(0,E.jsxs)("div",{className:"flex",children:[void 0!==o&&(0,E.jsx)("button",{className:"ml-1 h-4 w-9 border border-neutral-400 bg-neutral-300 px-1 text-xs hover:brightness-95",onClick:()=>{a(o)},children:"Reset"}),(0,E.jsx)("button",{className:"ml-1 h-4 w-9 border border-neutral-400 bg-neutral-300 px-1 text-xs hover:brightness-95",onClick:()=>{n()},children:"Cancel"}),(0,E.jsx)("button",{className:"ml-1 h-4 w-9 border border-neutral-400 bg-neutral-300 px-1 text-xs hover:brightness-95",onClick:()=>{s()},children:"OK"})]})]})]})}function Kc(e){const{color:t,onChange:n,className:o,disabled:r,defaultColor:a}=e,[s,i]=(0,Rt.useState)(null);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:Fi("group h-5 w-10 border border-neutral-300 p-[1px] disabled:border-neutral-200",{"data-cube-color-picker--disabled":Boolean(r),"data-cube-color-picker--transparent":!r&&t===vs.transparent},o),onClick:e=>{i(e.currentTarget)},disabled:r,children:(0,E.jsx)("div",{className:"h-full w-full group-disabled:hidden",style:{background:t}})}),Boolean(s)&&(0,E.jsx)(Dn,{open:Boolean(s),anchorEl:s,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},onClose:()=>i(null),children:(0,E.jsx)($c,{color:t,onChange:n,onClose:()=>i(null),defaultColor:a})})]})}const Xc=({documentationKey:e,title:t,className:n})=>{const o=Ot(),r=eu(),a=o.documentationService.getDocEntry(e);return a&&(a.url||Le(a))?(0,E.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation();const n=o.documentationService.getDocEntry(e);n&&(Le(n)?(o.assistantService.openDocumentationEntry(e),r.documentationDisplay.open()):n.url&&o.navigationService.navigator.visitAddress(n.url))},title:t??a.text??"Click to see documentation",className:Fi("cursor-pointer text-xl text-sky-500",n),children:(0,E.jsx)(Mi.DocumentationHint,{})}):null};function zc({name:e,subMenu:t,checked:n}){return(0,xc.sd)({configureDefaults:()=>!0}),(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-icon"}),(0,E.jsxs)("span",{className:"ag-menu-option-part ag-menu-option-text !inline-flex items-center",children:[(0,E.jsx)("span",{className:"opacity-50",children:e}),(0,E.jsx)(Dc,{})]}),(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-shortcut"}),(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-popup-pointer select-none",children:t&&(0,E.jsx)("span",{className:"ag-icon ag-icon-small-right"})})]})}class qc extends bc{configuration=new ai;selectableColumns=[];selectColumns=[];verticalPivotableColumns=[];verticalPivotedColumns=[];sortableColumns=[];sortColumns=[];menuBuilder;getColumnConfiguration(e){return this.configuration.columns.find((t=>t.name===e))}pinColumn(e,t){const n=this.getColumnConfiguration(e);n&&(n.pinned=t,this.applyChanges())}rearrangeColumns(e){this.configuration.columns=e.map((e=>this.getColumnConfiguration(e))).filter(O),this.selectColumns=this.configuration.columns.map((e=>this.selectColumns.find((t=>t.name===e.name)))).filter(O),this.applyChanges()}removeAllPins(){this.configuration.columns.forEach((e=>e.pinned=void 0)),this.applyChanges()}showColumn(e,t){const n=this.getColumnConfiguration(e);n&&(n.hideFromView=!t,this.applyChanges())}setVerticalPivotOnColumn(e){const t=this.verticalPivotableColumns.find((t=>t.name===e));t&&(this.verticalPivotedColumns=[t],this.applyChanges())}addVerticalPivotOnColumn(e){const t=this.verticalPivotableColumns.find((t=>t.name===e));t&&(this.verticalPivotedColumns=[...this.verticalPivotedColumns,t],this.applyChanges())}removeVerticalPivotOnColumn(e){this.verticalPivotedColumns=this.verticalPivotedColumns.filter((t=>t.name===e)),this.applyChanges()}clearAllVerticalPivots(){this.verticalPivotedColumns=[],this.applyChanges()}getActionableSortColumn(e,t){const n=this.sortableColumns.find((t=>t.name===e));if(!n)return;const o=this.sortColumns.find((t=>t.name===e));return o&&o.operation!==t?o:o?void 0:{...n,operation:t}}setSortByColumn(e,t){const n=this.getActionableSortColumn(e,t);n&&(n.operation=t,this.sortColumns=[n],this.applyChanges())}addSortByColumn(e,t){const n=this.getActionableSortColumn(e,t);n&&(n.operation=t,this.sortColumns=[...this.sortColumns,n],this.applyChanges())}clearSortByColumn(e){this.sortColumns=this.sortColumns.filter((t=>t.name!==e)),this.applyChanges()}clearAllSorts(){this.sortColumns=[],this.applyChanges()}applyChanges(){const e=L(this.getLatestSnapshot()),t=e.clone();t.data.selectColumns=this.selectColumns,t.data.sortColumns=this.sortColumns,t.data.configuration=ai.serialization.toJson(this.configuration),t.data.groupBy=this.verticalPivotedColumns.length?{columns:this.verticalPivotedColumns,aggColumns:Ri(e.data.groupBy,this.configuration)}:void 0,t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}async applySnapshot(e,t){const n=e.clone();this.configuration=ai.serialization.fromJson(e.data.configuration),this.selectableColumns=n.stageCols("select"),this.selectColumns=n.data.selectColumns,this.sortableColumns=n.stageCols("sort"),this.sortColumns=n.data.sortColumns,this.verticalPivotableColumns=n.stageCols("aggregation").filter((e=>this.getColumnConfiguration(e.name)?.kind===Ls.DIMENSION)),this.verticalPivotedColumns=n.data.groupBy?.columns??[],this.menuBuilder=function(e){const t=e.dataCube,n=t.editor;return o=>{const r=o.column??void 0,a=r?.getColId(),s=e.getColumnConfiguration(a),i="value"in o?o.value:void 0;return[{name:"Export",subMenu:[{name:"HTML",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"PDF",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Excel",action:()=>t.grid.exportEngine.exportFile(Qi.EXCEL)},{name:"CSV",action:()=>t.grid.exportEngine.exportFile(Qi.CSV)},"separator",{name:"DataCube Specification",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Email",subMenu:[{name:"HTML",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},"separator",{name:"HTML Attachment",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text Attachment",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"PDF Attachment",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Excel Attachment",action:()=>{t.grid.exportEngine.exportEmail(Qi.EXCEL).catch(t.application.logUnhandledError)}},{name:"CSV Attachment",action:()=>{t.grid.exportEngine.exportEmail(Qi.CSV).catch(t.application.logUnhandledError)}},{name:"DataCube Specification Attachment",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Copy",menuItem:zc,cssClasses:["!opacity-100"],subMenu:[{name:"Plain Text",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Selected Row(s) as Plain Text",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Selected Column as Plain Text",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0}]},"separator",{name:"Sort",subMenu:[...r&&a?[{name:"Ascending",action:()=>e.setSortByColumn(a,Ms.ASCENDING)},{name:"Ascending Absolute",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Descending",action:()=>e.setSortByColumn(a,Ms.DESCENDING)},{name:"Descending Absolute",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Clear Sort",disabled:!e.sortColumns.find((e=>e.name===a)),action:()=>e.clearSortByColumn(a)},"separator",{name:"Add Ascending",disabled:Boolean(e.sortColumns.find((e=>e.name===a&&e.operation===Ms.ASCENDING))),action:()=>e.addSortByColumn(a,Ms.ASCENDING)},{name:"Add Ascending Absolute",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Add Descending",disabled:Boolean(e.sortColumns.find((e=>e.name===a&&e.operation===Ms.DESCENDING))),action:()=>e.addSortByColumn(a,Ms.DESCENDING)},{name:"Add Descending Absolute",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},"separator"]:[],{name:"Clear All Sorts",disabled:0===e.sortColumns.length,action:()=>e.clearAllSorts()}]},{name:"Filter",menuItem:zc,disabled:!0,cssClasses:["!opacity-100"],subMenu:[...r&&i?[{name:`Add Filter: ${r.getColId()} = {value}`,menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:`More Filters on ${r.getColId()}...`,menuItem:zc,cssClasses:["!opacity-100"],disabled:!0,subMenu:[]},"separator"]:[],{name:"Filters..."},{name:"Clear All Filters"}]},{name:"Pivot",subMenu:[...r&&a&&s?.kind===Ls.DIMENSION?[{name:`Vertical Pivot on ${r.getColId()}`,action:()=>e.setVerticalPivotOnColumn(a)},{name:`Add Vertical Pivot on ${r.getColId()}`,disabled:Boolean(e.verticalPivotedColumns.find((e=>e.name===a))),action:()=>e.addVerticalPivotOnColumn(a)},{name:`Remove Vertical Pivot on ${r.getColId()}`,disabled:!e.verticalPivotedColumns.find((e=>e.name===a)),action:()=>e.removeVerticalPivotOnColumn(a)},"separator"]:[],{name:"Clear All Vertical Pivots",disabled:0===e.verticalPivotedColumns.length,action:()=>e.clearAllVerticalPivots()}]},{name:"Heatmap",menuItem:zc,cssClasses:["!opacity-100"],disabled:!r,subMenu:r?[{name:`Add to ${r.getColId()}`,menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:`Remove from ${r.getColId()}`,menuItem:zc,cssClasses:["!opacity-100"],disabled:!0}]:[]},{name:"Extended Columns",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0,subMenu:[{name:"Add New Column...",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Edit {column}",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Remove {column}",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Custom Groupings",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0,subMenu:[{name:"Add New Grouping...",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Edit {column}",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Remove {column}",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0}]},"separator",{name:"Resize",subMenu:[{name:"Auto-size to Fit Content",action:()=>o.api.autoSizeColumns([r?.getColId()].filter(O)),disabled:!r},{name:"Minimize Column",action:()=>{r&&o.api.setColumnWidths([{key:r.getColId(),newWidth:e.getColumnConfiguration(a)?.minWidth??50}])},disabled:!r},"separator",{name:"Auto-size All Columns",action:()=>o.api.autoSizeAllColumns()},{name:"Minimize All Columns",action:()=>{o.api.setColumnWidths(e.configuration.columns.map((t=>({key:t.name,newWidth:e.getColumnConfiguration(a)?.minWidth??50}))))}},{name:"Size Grid to Fit Screen",action:()=>o.api.sizeColumnsToFit()}]},{name:"Pin",subMenu:[{name:"Pin Left",disabled:!r||r.isPinnedLeft(),checked:Boolean(r?.isPinnedLeft()),action:()=>e.pinColumn(a,Us.LEFT)},{name:"Pin Right",disabled:!r||r.isPinnedRight(),checked:Boolean(r?.isPinnedRight()),action:()=>e.pinColumn(a,Us.RIGHT)},{name:"Unpin",disabled:!r?.isPinned(),action:()=>e.pinColumn(a,void 0)},"separator",{name:"Remove All Pinnings",disabled:e.configuration.columns.every((e=>void 0===e.pinned)),action:()=>e.removeAllPins()}]},{name:"Hide",disabled:!r,action:()=>e.showColumn(a,!1)},"separator",{name:"Show Plot...",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},{name:"Show TreeMap...",menuItem:zc,cssClasses:["!opacity-100"],disabled:!0},"separator",{name:"Properties...",disabled:n.display.isOpen,action:()=>n.display.open()}]}}(this)}async initialize(){}}function Jc(e){return new Promise(((t,n)=>{const o=new FileReader;o.onloadend=()=>{const e=o.result;if(M(e)){const n=e.split(",")[1];if(n)return void t(n)}n(new Error("Can't base64 encode blob data"))},o.onerror=e=>n(e),o.readAsDataURL(e)}))}const Qc="mixed_boundary",Zc="alternative_boundary",el=`\nFrom:\nTo:\nSubject:\nX-Unsent: 1\nContent-Type: multipart/mixed; boundary="${Qc}"\n\n--${Qc}\nContent-Type: multipart/alternative; boundary="${Zc}"\n\n--${Zc}\nContent-Type: text/plain; charset="UTF-8"\nContent-Transfer-Encoding: 7bit\n\n\n\n--${Zc}\nContent-Type: text/html; charset="UTF-8"\nContent-Transfer-Encoding: 7bit\n\n<html><body><p></p><body></html>\n\n--${Zc}--\n\n`;class tl{dataCube;grid;constructor(e){this.dataCube=e.dataCube,this.grid=e}generateFileName(){return`${this.dataCube.core.name} - ${(0,Gn.GP)(new Date,"EEE MMM dd yyyy HH_mm_ss")}`}exportFile(e){const t=this.generateFileName();switch(e){case Qi.CSV:return void this.grid.client.exportDataAsCsv({fileName:`${t}.csv`});case Qi.EXCEL:return void this.grid.client.exportDataAsExcel({fileName:`${t}.xlsx`})}}async exportEmail(e){const t=this.generateFileName();let n,o,r=t;switch(e){case Qi.CSV:r=`${t}.csv`,o=ee.TEXT_CSV,n=await Jc(new Blob([this.grid.client.getDataAsCsv()??""],{type:ee.TEXT_CSV}));break;case Qi.EXCEL:{r+=`${t}.xlsx`,o=ee.APPLICATION_XLSX;const e=this.grid.client.getDataAsExcel();let a;if(e instanceof Blob)a=e;else{if("string"!=typeof e)throw new S("Can't export Excel content");a=new Blob([e],{type:ee.APPLICATION_XLSX})}n=await Jc(a);break}default:throw new I(`Can't export email in format '${e}'`)}ce(`${t}.eml`,`${el.trimStart()}--${Qc}\nContent-Type: ${o}; name="${r}"\nContent-Transfer-Encoding: base64\nContent-Disposition: attachment; filename="${r}"\n\n${n}\n\n--${Qc}--`,ee.MESSAGE_RFC822)}}class nl{limit;constructor(e){const{snapshot:t}=e;this.limit=t?.data.limit}get hashCode(){return or([`limit: ${this.limit??""}`])}}class ol extends bc{controller;exportEngine;_client;clientDataSource;isPaginationEnabled=!1;scrollHintText;datasourceConfiguration;queryConfiguration;constructor(e){super(e),(0,Ne.Gn)(this,{clientDataSource:Ne.sH,datasourceConfiguration:Ne.sH,queryConfiguration:Ne.sH,isPaginationEnabled:Ne.sH,setPaginationEnabled:Ne.XI,scrollHintText:Ne.sH,setScrollHintText:Ne.XI}),this.controller=new qc(this.dataCube),this.exportEngine=new tl(this),this.datasourceConfiguration=new nl({}),this.queryConfiguration=new ai,this.clientDataSource=new hc(this)}setPaginationEnabled(e){this.isPaginationEnabled=e,this.clientDataSource=new hc(this),this.client.updateGridOptions({cacheBlockSize:e?100:ic})}setScrollHintText(e){this.scrollHintText=e}get client(){return L(this._client,"Grid client is not configured")}configureClient(e){this._client=e}async applySnapshot(e,t){const n=this.datasourceConfiguration,o=ai.serialization.fromJson(e.data.configuration);(0,Ne.h5)((()=>{this.datasourceConfiguration=new nl({snapshot:e,queryConfiguration:o}),this.queryConfiguration=o})),n.hashCode!==this.datasourceConfiguration.hashCode&&(this.clientDataSource=new hc(this));const r=function(e,t,n){return{rowClassRules:t.alternateRows?{[Zi.HIGHLIGHT_ROW]:e=>e.rowIndex%(2*t.alternateRowsCount)>=t.alternateRowsCount}:null,rowBuffer:20,onColumnPinned:e=>{if(e.column){const t=e.column,o=t.getPinned();n.grid.controller.pinColumn(t.getColId(),null===o?void 0:o===uc.LEFT?Us.LEFT:Us.RIGHT)}},onColumnMoved:e=>{e.column&&e.finished&&n.grid.controller.rearrangeColumns((e.api.getColumnDefs()??[]).filter((e=>!("children"in e))).map((e=>e.colId??"")))},onColumnVisible:e=>{if(e.column){const t=e.column,o=t.isVisible();n.grid.controller.showColumn(t.getColId(),o)}},columnDefs:[{headerName:"",colId:lc,cellRenderer:"agGroupCellRenderer",showRowGroup:!0,hide:!e.data.groupBy,lockPinned:!0,lockPosition:!0,pinned:uc.LEFT,cellStyle:{flex:1,justifyContent:"space-between",display:"flex"},loadingCellRenderer:_c,sortable:!1},...t.columns.map((n=>{const o={snapshot:e,column:n,configuration:t};return{headerName:n.name,field:n.name,menuTabs:[],...Nc(o),...yc(o),...vc(o),...Sc(o)}}))]}}(e,o,this.dataCube);this.client.updateGridOptions({...r,cacheBlockSize:this.isPaginationEnabled?100:ic})}async initialize(){}}class rl{name;type;constructor(e,t){this.name=e,this.type=t}}var al,sl;!function(e){e.VISIBLE="visible",e.VISIBLE_WITH_WARNING="visible-with-warning",e.HIDDEN="hidden"}(al||(al={}));class il{dataCube;editor;selectedColumns=[];availableColumnsSearchText="";selectedColumnsSearchText="";onChange;columnsVisibility;constructor(e,t){(0,Ne.Gn)(this,{availableColumns:Ne.EW,availableColumnsForDisplay:Ne.EW,selectedColumnsForDisplay:Ne.EW,selectedColumns:Ne.sH,setSelectedColumns:Ne.XI,availableColumnsSearchText:Ne.sH,setAvailableColumnsSearchText:Ne.XI,selectedColumnsSearchText:Ne.sH,setSelectedColumnsSearchText:Ne.XI,columnsVisibility:Ne.sH,setColumnsVisibility:Ne.XI}),this.editor=e,this.dataCube=e.dataCube,this.onChange=t?.onChange,this.columnsVisibility=t?.initialColumnsVisibility??al.VISIBLE}setColumnsVisibility(e){this.columnsVisibility=e}get availableColumnsForDisplay(){return this.availableColumns.filter((e=>!this.selectedColumns.find((t=>e.name===t.name)))).sort(((e,t)=>e.name.localeCompare(t.name))).filter((e=>this.columnsVisibility!==al.HIDDEN||!this.editor.columnProperties.columns.find((t=>t.name===e.name))?.hideFromView))}get selectedColumnsForDisplay(){return this.selectedColumns.filter((e=>this.columnsVisibility!==al.HIDDEN||!this.editor.columnProperties.columns.find((t=>t.name===e.name))?.hideFromView))}setSelectedColumns(e){this.selectedColumns=e.map((e=>this.cloneColumn(e))),this.onChange?.(this)}setAvailableColumnsSearchText(e){this.availableColumnsSearchText=e}setSelectedColumnsSearchText(e){this.selectedColumnsSearchText=e}getColumn(e){return L(this.availableColumns.find((t=>t.name===e)),`Can't find column '${e}'`)}}class cl extends rl{operation;constructor(e,t,n){super(e,t),(0,Ne.Gn)(this,{operation:Ne.sH,setOperation:Ne.XI}),this.operation=n}setOperation(e){this.operation=e}}class ll extends il{cloneColumn(e){return new cl(e.name,e.type,e.operation)}get availableColumns(){return this.editor.columns.selector.selectedColumns.map((e=>new cl(e.name,e.type,Ms.ASCENDING)))}}class dl{dataCube;editor;selector;constructor(e){this.editor=e,this.dataCube=e.dataCube,this.selector=new ll(e)}applySnaphot(e,t){this.selector.setSelectedColumns(e.data.sortColumns.map((e=>{const t=this.selector.getColumn(e.name);return new cl(t.name,t.type,e.operation)})))}buildSnapshot(e,t){e.data.sortColumns=this.selector.selectedColumns.map((e=>({name:e.name,type:e.type,operation:e.operation})))}}class ul{sourceId;startLine;startColumn;endLine;endColumn;constructor(e,t,n,o,r){this.sourceId=e,this.startLine=t,this.startColumn=n,this.endLine=o,this.endColumn=r}}!function(e){e.COMPILATION="COMPILATION",e.PARSER="PARSER"}(sl||(sl={}));class gl{message="";errorType;sourceInformation;static serialization=new pe((0,ge.PL)(gl,{errorType:(0,ge.lq)((0,ge.MY)()),message:(0,ge.MY)(),sourceInformation:me(ta.schema)}))}class pl extends gl{static serialization=new pe((0,ge.PL)(pl,{errorType:(0,ge.lq)((0,ge.MY)()),message:(0,ge.MY)(),sourceInformation:me(ta.schema)}))}class ml extends y{sourceInformation}class fl extends ml{}class hl{uuid=(0,a.A)();query;parserError;constructor(e){(0,Ne.Gn)(this,{query:Ne.sH,parserError:Ne.sH,setQuery:Ne.XI,setParserError:Ne.XI}),this.query=e}setQuery(e){this.query=e}setParserError(e){e?.sourceInformation&&(e.sourceInformation=this.processSourceInformation(e.sourceInformation)),this.parserError=e}processSourceInformation(e){const{sourceId:t,startLine:n,startColumn:o,endLine:r,endColumn:a}=e;return new ul(t,n+0,o-0,r+0,a-0)}}class El{dataCube;editor;queryEditorState;currentSubQuery;constructor(e){(0,Ne.Gn)(this,{currentSubQuery:Ne.sH,queryEditorState:Ne.sH,setCurrentSubQuery:Ne.XI,parseQuery:Ne.L3}),this.editor=e,this.dataCube=e.dataCube,this.queryEditorState=new hl("")}setCurrentSubQuery(e){this.currentSubQuery=e}*parseQuery(){try{this.queryEditorState.setParserError(void 0),yield(0,Ne.gP)(this.dataCube.repl.client.parseQuery({code:`|${this.queryEditorState.query}`}))}catch(e){if(x(e),e instanceof re&&e.response.status===J.BAD_REQUEST){const t=pl.serialization.fromJson(e.payload),n=new fl(t.message);t.sourceInformation&&(n.sourceInformation=new ul(t.sourceInformation.sourceId,t.sourceInformation.startLine,t.sourceInformation.startColumn,t.sourceInformation.endLine,t.sourceInformation.endColumn)),this.queryEditorState.setParserError(n)}}}}class bl extends ri{dataType;aggregateFunction;aggregateFunctionParameters=[];excludedFromHorizontalPivot=!1;static create(e){const t=Object.assign(new bl("",""),ri.serialization.fromJson(e));return t.dataType=Hs(t.type),(0,Ne.Gn)(t,{kind:Ne.sH,setKind:Ne.XI,displayName:Ne.sH,setDisplayName:Ne.XI,decimals:Ne.sH,setDecimals:Ne.XI,displayCommas:Ne.sH,setDisplayCommas:Ne.XI,negativeNumberInParens:Ne.sH,setNegativeNumberInParens:Ne.XI,numberScale:Ne.sH,setNumberScale:Ne.XI,missingValueDisplayText:Ne.sH,setMissingValueDisplayText:Ne.XI,hPivotSortFunction:Ne.sH,setHPivotSortFunction:Ne.XI,fontFamily:Ne.sH,setFontFamily:Ne.XI,fontSize:Ne.sH,setFontSize:Ne.XI,fontBold:Ne.sH,setFontBold:Ne.XI,fontItalic:Ne.sH,setFontItalic:Ne.XI,fontUnderline:Ne.sH,setFontUnderline:Ne.XI,fontStrikethrough:Ne.sH,setFontStrikethrough:Ne.XI,fontCase:Ne.sH,setFontCase:Ne.XI,textAlign:Ne.sH,setTextAlign:Ne.XI,normalForegroundColor:Ne.sH,setNormalForegroundColor:Ne.XI,negativeForegroundColor:Ne.sH,setNegativeForegroundColor:Ne.XI,zeroForegroundColor:Ne.sH,setZeroForegroundColor:Ne.XI,errorForegroundColor:Ne.sH,setErrorForegroundColor:Ne.XI,normalBackgroundColor:Ne.sH,setNormalBackgroundColor:Ne.XI,negativeBackgroundColor:Ne.sH,setNegativeBackgroundColor:Ne.XI,zeroBackgroundColor:Ne.sH,setZeroBackgroundColor:Ne.XI,errorBackgroundColor:Ne.sH,setErrorBackgroundColor:Ne.XI,blur:Ne.sH,setBlur:Ne.XI,hideFromView:Ne.sH,setHideFromView:Ne.XI,fixedWidth:Ne.sH,setFixedWidth:Ne.XI,minWidth:Ne.sH,setMinWidth:Ne.XI,maxWidth:Ne.sH,setMaxWidth:Ne.XI,pinned:Ne.sH,setPinned:Ne.XI,displayAsLink:Ne.sH,setDisplayAsLink:Ne.XI,linkLabelParameter:Ne.sH,setLinkLabelParameter:Ne.XI,isUsingDefaultStyling:Ne.EW,useDefaultStyling:Ne.XI,aggregateFunction:Ne.sH,setAggregateFunction:Ne.XI,aggregateFunctionParameters:Ne.sH,setAggregateFunctionParameters:Ne.XI,excludedFromHorizontalPivot:Ne.sH,setExcludedFromHorizontalPivot:Ne.XI}),t}static createDefault(e){return bl.create(ri.serialization.toJson(_i(e)))}serialize(){return ri.serialization.toJson(this)}get isUsingDefaultStyling(){return void 0===this.fontFamily&&void 0===this.fontSize&&void 0===this.fontBold&&void 0===this.fontItalic&&void 0===this.fontUnderline&&void 0===this.fontStrikethrough&&void 0===this.textAlign&&void 0===this.normalForegroundColor&&void 0===this.negativeForegroundColor&&void 0===this.zeroForegroundColor&&void 0===this.errorForegroundColor&&void 0===this.normalBackgroundColor&&void 0===this.negativeBackgroundColor&&void 0===this.zeroBackgroundColor&&void 0===this.errorBackgroundColor}useDefaultStyling(){this.fontFamily=void 0,this.fontSize=void 0,this.fontBold=void 0,this.fontItalic=void 0,this.fontUnderline=void 0,this.fontStrikethrough=void 0,this.textAlign=void 0,this.normalForegroundColor=void 0,this.negativeForegroundColor=void 0,this.zeroForegroundColor=void 0,this.errorForegroundColor=void 0,this.normalBackgroundColor=void 0,this.negativeBackgroundColor=void 0,this.zeroBackgroundColor=void 0,this.errorBackgroundColor=void 0}setKind(e){this.kind=e}setDisplayName(e){this.displayName=e}setDecimals(e){this.decimals=e}setDisplayCommas(e){this.displayCommas=e}setNegativeNumberInParens(e){this.negativeNumberInParens=e}setNumberScale(e){this.numberScale=e}setMissingValueDisplayText(e){this.missingValueDisplayText=e}setHPivotSortFunction(e){this.hPivotSortFunction=e}setFontFamily(e){this.fontFamily=e}setFontSize(e){this.fontSize=e}setFontBold(e){this.fontBold=e}setFontItalic(e){this.fontItalic=e}setFontUnderline(e){this.fontUnderline=e}setFontStrikethrough(e){this.fontStrikethrough=e}setFontCase(e){this.fontCase=e}setTextAlign(e){this.textAlign=e}setNormalForegroundColor(e){this.normalForegroundColor=e}setNegativeForegroundColor(e){this.negativeForegroundColor=e}setZeroForegroundColor(e){this.zeroForegroundColor=e}setErrorForegroundColor(e){this.errorForegroundColor=e}setNormalBackgroundColor(e){this.normalBackgroundColor=e}setNegativeBackgroundColor(e){this.negativeBackgroundColor=e}setZeroBackgroundColor(e){this.zeroBackgroundColor=e}setErrorBackgroundColor(e){this.errorBackgroundColor=e}setBlur(e){this.blur=e}setHideFromView(e){this.hideFromView=e}setFixedWidth(e){this.fixedWidth=e}setMinWidth(e){this.minWidth=e}setMaxWidth(e){this.maxWidth=e}setPinned(e){this.pinned=e}setDisplayAsLink(e){this.displayAsLink=e}setLinkLabelParameter(e){this.linkLabelParameter=e}setAggregateFunction(e){this.aggregateFunction=e}setExcludedFromHorizontalPivot(e){this.excludedFromHorizontalPivot=e}setAggregateFunctionParameters(e){this.aggregateFunctionParameters=e}}class Cl extends ai{static create(e){const t=Object.assign(new Cl,ai.serialization.fromJson(e));return t.columns=[],(0,Ne.Gn)(t,{description:Ne.sH,setDescription:Ne.XI,showTreeLines:Ne.sH,setShowTreeLines:Ne.XI,showHorizontalGridLines:Ne.sH,setShowHorizontalGridLines:Ne.XI,showVerticalGridLines:Ne.sH,setShowVerticalGridLines:Ne.XI,gridLineColor:Ne.sH,setGridLineColor:Ne.XI,fontFamily:Ne.sH,setFontFamily:Ne.XI,fontSize:Ne.sH,setFontSize:Ne.XI,fontBold:Ne.sH,setFontBold:Ne.XI,fontItalic:Ne.sH,setFontItalic:Ne.XI,fontUnderline:Ne.sH,setFontUnderline:Ne.XI,fontStrikethrough:Ne.sH,setFontStrikethrough:Ne.XI,fontCase:Ne.sH,setFontCase:Ne.XI,textAlign:Ne.sH,setTextAlign:Ne.XI,normalForegroundColor:Ne.sH,setNormalForegroundColor:Ne.XI,negativeForegroundColor:Ne.sH,setNegativeForegroundColor:Ne.XI,zeroForegroundColor:Ne.sH,setZeroForegroundColor:Ne.XI,errorForegroundColor:Ne.sH,setErrorForegroundColor:Ne.XI,normalBackgroundColor:Ne.sH,setNormalBackgroundColor:Ne.XI,negativeBackgroundColor:Ne.sH,setNegativeBackgroundColor:Ne.XI,zeroBackgroundColor:Ne.sH,setZeroBackgroundColor:Ne.XI,errorBackgroundColor:Ne.sH,setErrorBackgroundColor:Ne.XI,alternateRows:Ne.sH,setAlternateRows:Ne.XI,alternateRowsColor:Ne.sH,setAlternateRowsColor:Ne.XI,alternateRowsCount:Ne.sH,setAlternateRowsCount:Ne.XI,alternateRowsStandardMode:Ne.sH,setAlternateRowsStandardMode:Ne.XI,selectionStats:Ne.sH,setSelectionStats:Ne.XI,showWarningForTruncatedResult:Ne.sH,setShowWarningForTruncatedResult:Ne.XI,initialExpandLevel:Ne.sH,setInitialExpandLevel:Ne.XI,showRootAggregation:Ne.sH,setShowRootAggregation:Ne.XI,showLeafCount:Ne.sH,setShowLeafCount:Ne.XI,addPivotTotalColumn:Ne.sH,setAddPivotTotalColumn:Ne.XI,addPivotTotalColumnOnLeft:Ne.sH,setAddPivotTotalColumnOnLeft:Ne.XI,treeGroupSortFunction:Ne.sH,setTreeGroupSortFunction:Ne.XI,isUsingDefaultStyling:Ne.EW,useDefaultStyling:Ne.XI}),t}get isUsingDefaultStyling(){return this.fontFamily===$s&&11===this.fontSize&&this.fontBold===Ks&&this.fontItalic===Xs&&this.fontUnderline===zs&&this.fontStrikethrough===qs&&this.textAlign===Js&&this.normalForegroundColor===Qs&&this.negativeForegroundColor===ti&&this.zeroForegroundColor===ni&&this.errorForegroundColor===oi&&this.normalBackgroundColor===Zs&&this.negativeBackgroundColor===Zs&&this.zeroBackgroundColor===Zs&&this.errorBackgroundColor===Zs}useDefaultStyling(){this.fontFamily=$s,this.fontSize=11,this.fontBold=Ks,this.fontItalic=Xs,this.fontUnderline=zs,this.fontStrikethrough=qs,this.textAlign=Js,this.normalForegroundColor=Qs,this.negativeForegroundColor=ti,this.zeroForegroundColor=ni,this.errorForegroundColor=oi,this.normalBackgroundColor=Zs,this.negativeBackgroundColor=Zs,this.zeroBackgroundColor=Zs,this.errorBackgroundColor=Zs}serialize(){return ai.serialization.toJson(this)}setDescription(e){this.description=e}setShowTreeLines(e){this.showTreeLines=e}setShowHorizontalGridLines(e){this.showHorizontalGridLines=e}setShowVerticalGridLines(e){this.showVerticalGridLines=e}setGridLineColor(e){this.gridLineColor=e}setFontFamily(e){this.fontFamily=e}setFontSize(e){this.fontSize=e}setFontBold(e){this.fontBold=e}setFontItalic(e){this.fontItalic=e}setFontUnderline(e){this.fontUnderline=e}setFontStrikethrough(e){this.fontStrikethrough=e}setFontCase(e){this.fontCase=e}setTextAlign(e){this.textAlign=e}setNormalForegroundColor(e){this.normalForegroundColor=e}setNegativeForegroundColor(e){this.negativeForegroundColor=e}setZeroForegroundColor(e){this.zeroForegroundColor=e}setErrorForegroundColor(e){this.errorForegroundColor=e}setNormalBackgroundColor(e){this.normalBackgroundColor=e}setNegativeBackgroundColor(e){this.negativeBackgroundColor=e}setZeroBackgroundColor(e){this.zeroBackgroundColor=e}setErrorBackgroundColor(e){this.errorBackgroundColor=e}setAlternateRows(e){this.alternateRows=e}setAlternateRowsColor(e){this.alternateRowsColor=e}setAlternateRowsCount(e){this.alternateRowsCount=e}setAlternateRowsStandardMode(e){this.alternateRowsStandardMode=e}setSelectionStats(e){this.selectionStats=e}setShowWarningForTruncatedResult(e){this.showWarningForTruncatedResult=e}setInitialExpandLevel(e){this.initialExpandLevel=e}setShowRootAggregation(e){this.showRootAggregation=e}setShowLeafCount(e){this.showLeafCount=e}setAddPivotTotalColumn(e){this.addPivotTotalColumn=e}setAddPivotTotalColumnOnLeft(e){this.addPivotTotalColumnOnLeft=e}setTreeGroupSortFunction(e){this.treeGroupSortFunction=e}}class Al{dataCube;editor;name="";limit=-1;configuration=new Cl;constructor(e){(0,Ne.Gn)(this,{name:Ne.sH,setName:Ne.XI,limit:Ne.sH,setLimit:Ne.XI,configuration:Ne.sH,setConfiguration:Ne.XI}),this.editor=e,this.dataCube=e.dataCube}setName(e){this.name=e}setLimit(e){this.limit=e}setConfiguration(e){this.configuration=e}applySnaphot(e,t){this.setName(e.data.name),this.setLimit(void 0!==e.data.limit&&e.data.limit>0?e.data.limit:-1),this.setConfiguration(Cl.create(e.data.configuration))}buildSnapshot(e,t){const n=e.data;n.name=this.name,n.limit=this.limit<=0?void 0:this.limit,n.configuration=this.configuration.serialize()}}class Tl{dataCube;editor;columns=[];selectedColumnName;showAdvancedSettings=!1;constructor(e){(0,Ne.Gn)(this,{columns:Ne.sH,setColumns:Ne.XI,selectedColumnName:Ne.sH,setSelectedColumnName:Ne.XI,selectedColumn:Ne.EW,showAdvancedSettings:Ne.sH,setShowAdvancedSettings:Ne.XI,hiddenColumns:Ne.EW,configurableColumns:Ne.EW}),this.editor=e,this.dataCube=e.dataCube}get hiddenColumns(){return this.columns.filter((e=>e.hideFromView))}get configurableColumns(){return this.columns.filter((e=>this.editor.columns.selector.selectedColumns.find((t=>t.name===e.name)))).sort(((e,t)=>e.name.localeCompare(t.name)))}getColumnConfiguration(e){return this.columns.find((t=>t.name===e))}setColumns(e){this.columns=e}setSelectedColumnName(e){this.selectedColumnName=e}get selectedColumn(){return this.configurableColumns.find((e=>e.name===this.selectedColumnName))}setShowAdvancedSettings(e){this.showAdvancedSettings=e}applySnaphot(e,t){this.setColumns(e.data.configuration.columns.map((e=>bl.create(e)))),this.columns.forEach((t=>{if(t.kind===Ls.MEASURE){const n=Ns(e.data.groupBy?.aggColumns,t.name);if(n)t.setAggregateFunction(n.operation),t.setAggregateFunctionParameters(n.parameters);else switch(t.type){case dr.NUMBER:case dr.INTEGER:case dr.DECIMAL:case dr.FLOAT:t.setAggregateFunction(Ps.SUM),t.setAggregateFunctionParameters([])}}})),!this.selectedColumn&&this.columns.length&&this.setSelectedColumnName(N(this.configurableColumns,0).name)}buildSnapshot(e,t){e.data.configuration={...e.data.configuration,columns:this.editor.columns.selector.selectedColumns.map((e=>this.columns.find((t=>t.name===e.name)))).filter(O).map((e=>e.serialize()))}}}class _l extends il{cloneColumn(e){return new rl(e.name,e.type)}get availableColumns(){return[...this.editor.columns.sourceColumns].map((e=>new rl(e.name,e.type)))}}class Nl{dataCube;editor;selector;sourceColumns=[];constructor(e){(0,Ne.Gn)(this,{sourceColumns:Ne.sH,setSourceColumns:Ne.XI}),this.editor=e,this.dataCube=e.dataCube,this.selector=new _l(e,{initialColumnsVisibility:al.HIDDEN,onChange:e=>{e.selectedColumns.filter((e=>!this.editor.columnProperties.columns.find((t=>t.name===e.name)))).forEach((e=>{this.editor.columnProperties.setColumns([...this.editor.columnProperties.columns,bl.createDefault({name:e.name,type:e.type})])}))}})}propagateColumnSelectionChanges(){this.editor.columnProperties.setColumns(this.editor.columnProperties.columns.filter((e=>this.selector.selectedColumns.find((t=>t.name===e.name))))),this.editor.sorts.selector.setSelectedColumns(this.editor.sorts.selector.selectedColumns.filter((e=>this.selector.selectedColumns.find((t=>t.name===e.name))))),this.editor.verticalPivots.selector.setSelectedColumns(this.editor.verticalPivots.selector.selectedColumns.filter((e=>this.selector.selectedColumns.find((t=>t.name===e.name)))))}setSourceColumns(e){this.sourceColumns=e}applySnaphot(e,t){this.setSourceColumns(e.data.sourceColumns),this.selector.setSelectedColumns(t.columns.map((e=>{const t=this.selector.getColumn(e.name);return new rl(t.name,t.type)})))}buildSnapshot(e,t){this.propagateColumnSelectionChanges(),e.data.selectColumns=this.selector.selectedColumns.map((e=>({name:e.name,type:e.type})))}}class yl extends il{cloneColumn(e){return new rl(e.name,e.type)}get availableColumns(){return this.editor.columns.selector.selectedColumns.map((e=>new rl(e.name,e.type))).filter((e=>this.editor.columnProperties.columns.find((t=>t.name===e.name))?.kind===Ls.DIMENSION))}}class vl{dataCube;editor;selector;constructor(e){this.editor=e,this.dataCube=e.dataCube,this.selector=new yl(e)}applySnaphot(e,t){this.selector.setSelectedColumns((e.data.groupBy?.columns??[]).map((e=>new rl(e.name,e.type))))}buildSnapshot(e,t){e.data.groupBy=this.selector.selectedColumns.length?{columns:this.selector.selectedColumns.map((e=>({name:e.name,type:e.type}))),aggColumns:this.editor.columnProperties.columns.filter((e=>e.kind===Ls.MEASURE&&void 0!==e.aggregateFunction&&this.selector.selectedColumns.find((t=>t.name!==e.name)))).map((e=>({name:e.name,type:e.type,operation:L(e.aggregateFunction),parameters:e.aggregateFunctionParameters})))}:void 0}}var Sl=n(1810);function Il(){return{modules:[Sl.Q],className:"ag-theme-balham",animateRows:!1,getRowId:e=>e.data.name,editType:"fullRow",rowSelection:"multiple",rowDragMultiRow:!0,rowDragEntireRow:!0,suppressRowClickSelection:!1,suppressMoveWhenRowDragging:!0,rowHeight:20,headerHeight:20,suppressRowHoverHighlight:!1,noRowsOverlayComponent:e=>e.api.getQuickFilter()?(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-semibold text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(Mi.WarningCircle,{className:"mr-1 text-lg"})}),"No match found"]}):e.noColumnsSelectedRenderer?e.noColumnsSelectedRenderer():(0,E.jsx)("div",{}),onModelUpdated:e=>{0===e.api.getDisplayedRowCount()?e.api.showNoRowsOverlay():e.api.hideOverlay()}}}const xl=(0,ht.PA)((function(e){const{selector:t,gridApi:n,scope:o}=e;return(0,E.jsxs)("div",{className:"flex items-center justify-center rounded-lg bg-neutral-500 px-1 py-0.5 font-mono text-xs font-bold text-white",children:[`${fc(n).length}/${"available"===o?t.availableColumnsForDisplay.length:t.selectedColumnsForDisplay.length}`,(0,E.jsx)("span",{className:"hidden",children:"available"===o?t.availableColumnsSearchText:t.selectedColumnsSearchText})]})})),kl=(0,ht.PA)((function(e){const{selector:t,extraColumnComponent:n,noColumnsSelectedRenderer:o}=e,[r,a]=(0,Rt.useState)([]),[s,i]=(0,Rt.useState)([]),[c,l]=(0,Rt.useState)(null),[d,u]=(0,Rt.useState)(null),g=(0,Rt.useRef)(null),p=(0,Rt.useRef)(null),m=(0,Rt.useCallback)((e=>{t.setSelectedColumns(mc(e.api))}),[t]),f=(0,Rt.useCallback)((e=>{const n=e.nodes.map((e=>e.data)).filter(O);t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e))))}),[t]),h=(0,Rt.useCallback)((e=>{-1!==e.overIndex&&t.setSelectedColumns(mc(e.api))}),[t]);return(0,Rt.useEffect)((()=>{if(!c||!d)return;const e=d.getRowDropZoneParams({onDragStop:e=>{m(e),c.clearFocusedCell()}});c.removeRowDropZone(e),c.addRowDropZone(e);const t=c.getRowDropZoneParams({onDragStop:e=>{f(e),d.clearFocusedCell()}});d.removeRowDropZone(t),d.addRowDropZone(t)}),[c,d,m,f]),(0,E.jsxs)("div",{className:"data-cube-column-selector flex h-full w-full",children:[(0,E.jsxs)("div",{className:"h-full w-[calc(50%_-_20px)]",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-sm",children:"Available columns:"}),(0,E.jsxs)("div",{className:"h-[calc(100%_-_20px)] rounded-sm border border-neutral-200",children:[(0,E.jsxs)("div",{className:"relative h-6 border-b border-neutral-200",children:[(0,E.jsx)("input",{className:"h-full w-full pl-10 pr-6 placeholder-neutral-400",ref:g,placeholder:"Click here to search...",value:t.availableColumnsSearchText,onChange:e=>t.setAvailableColumnsSearchText(e.target.value),onKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),g.current?.select(),t.setAvailableColumnsSearchText(""))}}),(0,E.jsx)("div",{className:"absolute left-0 top-0 flex h-6 w-10 items-center justify-center",children:(0,E.jsx)(Mi.Search,{className:"stroke-[3px] text-lg text-neutral-500"})}),(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-6 w-6 items-center justify-center text-neutral-500 disabled:text-neutral-300",disabled:!t.availableColumnsSearchText,title:"Clear search [Esc]",onClick:()=>{t.setAvailableColumnsSearchText(""),g.current?.focus()},children:(0,E.jsx)(Mi.X,{className:"text-lg"})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)]",children:(0,E.jsx)(xc.W6,{...Il(),rowDragManaged:!1,onGridReady:e=>l(e.api),onSelectionChanged:e=>{a(e.api.getSelectedNodes().map((e=>e.data)).filter(O))},quickFilterText:t.availableColumnsSearchText,rowData:t.availableColumnsForDisplay,columnDefs:[{field:"name",flex:1,minWidth:100,filter:!0,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,colId:"checkbox",checkboxSelection:!0,headerCheckboxSelection:!0,rowDrag:!0,rowDragText:(e,t)=>t>1?`${t} columns`:(e.rowNode?.data).name,getQuickFilterText:e=>e.value,headerComponent:e=>(0,E.jsxs)("button",{title:"Double-click to add all columns",className:"flex h-full w-full items-center justify-between pl-0.5",onDoubleClick:()=>{const n=fc(e.api);t.setSelectedColumns([...t.selectedColumns,...n]),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{children:"[All Columns]"}),(0,E.jsx)(xl,{selector:t,gridApi:e.api,scope:"available"})]}),cellRenderer:e=>{const o=e.data;if(!o)return null;const r=t.columnsVisibility===al.VISIBLE_WITH_WARNING&&t.editor.columnProperties.columns.find((e=>e.name===o.name))?.hideFromView;return(0,E.jsxs)("div",{className:Fi("flex h-full w-full cursor-pointer",{"text-neutral-400":r}),title:`[${o.name}]${r?" - Hidden":""}\nDouble-click to add column`,onDoubleClick:()=>{t.setSelectedColumns([...t.selectedColumns,o]),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:o.name}),(0,E.jsx)("div",{className:"flex h-full",children:n?.({selector:t,column:o})??null})]})}}]})})]})]}),(0,E.jsx)("div",{className:"flex h-full w-10 items-center justify-center",children:(0,E.jsxs)("div",{className:"flex flex-col",children:[(0,E.jsx)("button",{className:"flex items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-neutral-500 hover:bg-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400",title:"Add selected columns",onClick:()=>{if(!c)return;const e=fc(c),n=r.filter((t=>e.includes(t)));t.setSelectedColumns([...t.selectedColumns,...n]),c.clearFocusedCell()},disabled:0===r.length,children:(0,E.jsx)(Mi.ChevronRight,{className:"text-2xl"})}),(0,E.jsx)("button",{className:"mt-2 flex items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-neutral-500 hover:bg-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400",title:"Remove selected columns",onClick:()=>{if(!d)return;const e=fc(d),n=s.filter((t=>e.includes(t)));t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e)))),d.clearFocusedCell()},disabled:0===s.length,children:(0,E.jsx)(Mi.ChevronLeft,{className:"text-2xl"})})]})}),(0,E.jsxs)("div",{className:"h-full w-[calc(50%_-_20px)]",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-sm",children:"Selected columns:"}),(0,E.jsxs)("div",{className:"h-[calc(100%_-_20px)] rounded-sm border border-neutral-200",children:[(0,E.jsxs)("div",{className:"relative h-6 border-b border-neutral-200",children:[(0,E.jsx)("input",{className:"h-full w-full pl-10 placeholder-neutral-400",ref:p,placeholder:"Click here to search...",value:t.selectedColumnsSearchText,onChange:e=>t.setSelectedColumnsSearchText(e.target.value),onKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),t.setSelectedColumnsSearchText(""))}}),(0,E.jsx)("div",{className:"absolute left-0 top-0 flex h-6 w-10 items-center justify-center",children:(0,E.jsx)(Mi.Search,{className:"stroke-[3px] text-lg text-neutral-500"})}),(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-6 w-6 items-center justify-center text-neutral-500 disabled:text-neutral-300",disabled:!t.selectedColumnsSearchText,title:"Clear search [Esc]",onClick:()=>{t.setSelectedColumnsSearchText(""),p.current?.focus()},children:(0,E.jsx)(Mi.X,{className:"text-lg"})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)]",children:(0,E.jsx)(xc.W6,{...Il(),rowDragManaged:!0,onRowDragEnd:h,onGridReady:e=>u(e.api),onSelectionChanged:e=>{i(e.api.getSelectedNodes().map((e=>e.data)).filter(O))},quickFilterText:t.selectedColumnsSearchText,noRowsOverlayComponentParams:{noColumnsSelectedRenderer:o},rowData:t.selectedColumnsForDisplay,columnDefs:[{field:"name",flex:1,minWidth:100,filter:!0,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,colId:"checkbox",checkboxSelection:!0,headerCheckboxSelection:!0,rowDrag:!0,rowDragText:(e,t)=>t>1?`${t} columns`:(e.rowNode?.data).name,getQuickFilterText:e=>e.value,headerComponent:e=>(0,E.jsxs)("button",{title:"Double-click to remove all columns",className:"flex h-full w-full items-center justify-between pl-0.5",onDoubleClick:()=>{const n=fc(e.api);t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e)))),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{children:"[All Columns]"}),(0,E.jsx)(xl,{selector:t,gridApi:e.api,scope:"selected"})]}),cellRenderer:e=>{const o=e.data;if(!o)return null;const r=t.columnsVisibility===al.VISIBLE_WITH_WARNING&&t.editor.columnProperties.columns.find((e=>e.name===o.name))?.hideFromView;return(0,E.jsxs)("div",{className:Fi("flex h-full w-full cursor-pointer",{"text-neutral-400":r}),title:`[${o.name}]${r?" - Hidden":""}\nDouble-click to remove column`,onDoubleClick:()=>{t.setSelectedColumns(t.selectedColumns.filter((e=>e!==o))),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:o.name}),(0,E.jsx)("div",{className:"flex h-full",children:n?.({selector:t,column:o})??null})]})}}]})})]})]})]})}));function Rl(e){switch(e){case Ms.ASCENDING:return"Ascending";case Ms.DESCENDING:return"Descending";default:throw new S(`Unsupported sort operation '${e}'`)}}const wl=(0,ht.PA)((e=>{const{column:t}=e,[n,o,r]=wc();return(0,E.jsxs)("div",{className:"group relative flex h-full items-center",children:[(0,E.jsx)("div",{className:"flex h-[18px] w-32 items-center border border-transparent px-2 text-sm text-neutral-500 group-hover:invisible",children:Rl(t.operation)}),(0,E.jsxs)("button",{className:"invisible absolute right-0 z-10 flex h-[18px] w-32 items-center justify-between border border-neutral-500 pl-2 pr-0.5 text-sm text-neutral-700 group-hover:visible",onClickCapture:e=>{e.stopPropagation(),n(e)},onClick:e=>e.stopPropagation(),children:[(0,E.jsx)("div",{children:Rl(t.operation)}),(0,E.jsx)("div",{children:(0,E.jsx)(Mi.CaretDown,{})})]}),(0,E.jsxs)(Oc,{className:"w-32 select-none border border-neutral-300 bg-white",...r,children:[(0,E.jsx)(Fc,{className:"flex h-5 items-center px-2 text-sm hover:bg-neutral-100",onClick:()=>{t.setOperation(Ms.ASCENDING),o()},children:"Ascending"}),(0,E.jsxs)(Fc,{className:"flex h-5 items-center px-2 text-sm text-neutral-400",disabled:!0,children:["Ascending (abs)",(0,E.jsx)(Dc,{})]}),(0,E.jsx)(Fc,{className:"flex h-5 items-center px-2 text-sm hover:bg-neutral-100",onClick:()=>{t.setOperation(Ms.DESCENDING),o()},children:"Descending"}),(0,E.jsxs)(Fc,{className:"flex h-5 items-center px-2 text-sm text-neutral-400",disabled:!0,children:["Descending (abs)",(0,E.jsx)(Dc,{})]})]})]})})),Ol=(0,ht.PA)((()=>{const e=eu().dataCube.editor.sorts;return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.TableSort,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Sorts"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(kl,{selector:e.selector,extraColumnComponent:e=>(0,E.jsx)(wl,{...e})})})]})})),Fl=(0,ht.PA)((()=>{const e=eu().dataCube.editor.generalProperties,t=e.configuration,[n,o,r]=wc(),[a,s,i]=wc(),[c,l,d]=wc(),[u,g,p]=wc(),[m,f,h]=wc(),[b,C,A]=wc();return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.TableOptions,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"General Properties"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsxs)("div",{className:"h-full w-full py-2",children:[(0,E.jsxs)("div",{className:"flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Report Title:"}),(0,E.jsx)(Uc,{className:"h-6 w-96 text-lg font-semibold",value:e.name,onChange:t=>{e.setName(t.target.value)}})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Initially Expand to Level:"}),(0,E.jsx)(Hc,{className:"w-16",onClick:n,disabled:!0,children:t.initialExpandLevel??"(None)"}),(0,E.jsx)(Vc,{className:"w-16",...r,children:[void 0,1,2,3,4,5,6,7,8].map((e=>(0,E.jsx)(Yc,{onClick:()=>{t.setInitialExpandLevel(e),o()},children:e??"(None)"},e??"")))}),(0,E.jsx)(Dc,{})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Root Aggregation?"}),(0,E.jsx)(Gc,{checked:t.showRootAggregation,onChange:()=>t.setShowRootAggregation(!t.showRootAggregation),disabled:!0}),(0,E.jsx)(Dc,{})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Leaf Count?"}),(0,E.jsx)(Gc,{checked:t.showLeafCount,onChange:()=>t.setShowLeafCount(!t.showLeafCount),disabled:!0}),(0,E.jsx)(Dc,{})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Lines?"}),(0,E.jsx)(Gc,{label:"Tree",checked:t.showTreeLines,onChange:()=>t.setShowTreeLines(!t.showTreeLines),disabled:!0}),(0,E.jsx)(Dc,{}),(0,E.jsx)(Gc,{className:"ml-2",label:"Horizontal",checked:t.showHorizontalGridLines,onChange:()=>t.setShowHorizontalGridLines(!t.showHorizontalGridLines)}),(0,E.jsx)(Gc,{className:"ml-2",label:"Vertical",checked:t.showVerticalGridLines,onChange:()=>t.setShowVerticalGridLines(!t.showVerticalGridLines)}),(0,E.jsx)("div",{className:"ml-2 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Kc,{className:"ml-2",color:t.gridLineColor,defaultColor:Ys,onChange:e=>t.setGridLineColor(e)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Selection Stats:"}),(0,E.jsx)(Hc,{className:"w-16",onClick:a,disabled:!0,children:"(None)"}),(0,E.jsx)(Vc,{className:"w-16",...i,children:[ks.SUM,ks.AVERAGE,ks.COUNT,ks.MIN,ks.MAX].map((e=>(0,E.jsx)(Yc,{onClick:()=>{s()},children:e},e)))}),(0,E.jsx)(Dc,{})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Row Limit:"}),(0,E.jsx)(Mc,{className:"w-16 text-sm",value:e.limit,min:-1,step:1,defaultValue:-1,isValid:e=>void 0!==e&&(-1===e||e>0),setValue:t=>e.setLimit(t??-1)}),(0,E.jsx)("div",{className:"flex-shrink-0 pl-1 text-sm italic text-neutral-500",children:"Truncate result to this many rows at every level. Use -1 for unlimited."})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)(Gc,{label:"Display warning when truncated",checked:t.showWarningForTruncatedResult,onChange:()=>t.setShowWarningForTruncatedResult(!t.showWarningForTruncatedResult)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Hightlight Rows:"}),(0,E.jsx)(Gc,{label:"Standard mode",checked:t.alternateRowsStandardMode,onChange:()=>{t.alternateRowsStandardMode?t.setAlternateRowsStandardMode(!1):(t.setAlternateRowsStandardMode(!0),t.setAlternateRows(!1))}}),(0,E.jsx)(Gc,{className:"ml-3",label:"Custom: Alternate color every",checked:t.alternateRows,onChange:()=>{t.alternateRows?t.setAlternateRows(!1):(t.setAlternateRows(!0),t.setAlternateRowsStandardMode(!1))}}),(0,E.jsx)(Mc,{className:"ml-1.5 w-16 text-sm",disabled:!t.alternateRows,min:1,step:1,defaultValue:1,isValid:e=>void 0!==e&&e>0,value:t.alternateRowsCount,setValue:e=>t.setAlternateRowsCount(e??1)}),(0,E.jsx)("div",{className:"ml-1.5 flex-shrink-0 text-sm",children:"row(s)"}),(0,E.jsx)(Kc,{className:"ml-[5px]",disabled:!t.alternateRows,color:t.alternateRowsColor,defaultColor:Ws,onChange:e=>t.setAlternateRowsColor(e)})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Default Font:"}),(0,E.jsx)(Hc,{className:"w-28",onClick:c,children:t.fontFamily}),(0,E.jsxs)(Vc,{className:"w-28",...d,children:[[Rs.ARIAL,Rs.ROBOTO,Rs.ROBOTO_CONDENSED].map((e=>(0,E.jsx)(Yc,{onClick:()=>{t.setFontFamily(e),l()},children:e},e))),(0,E.jsx)(Wc,{}),[Rs.GEORGIA,Rs.ROBOTO_SERIF,Rs.TIMES_NEW_ROMAN].map((e=>(0,E.jsx)(Yc,{onClick:()=>{t.setFontFamily(e),l()},children:e},e))),(0,E.jsx)(Wc,{}),[Rs.JERBRAINS_MONO,Rs.ROBOTO_MONO,Rs.UBUNTU_MONO].map((e=>(0,E.jsx)(Yc,{onClick:()=>{t.setFontFamily(e),l()},children:e},e)))]}),(0,E.jsx)(Hc,{className:"ml-1 w-10",onClick:u,children:t.fontSize}),(0,E.jsx)(Vc,{className:"w-10",...p,children:[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>(0,E.jsx)(Yc,{onClick:()=>{t.setFontSize(e),g()},children:e},e)))}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Bold",className:Fi("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":t.fontBold}),onClick:()=>t.setFontBold(!t.fontBold),children:(0,E.jsx)(Mi.FontBold,{})}),(0,E.jsx)("button",{title:"Italic",className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":t.fontItalic}),onClick:()=>t.setFontItalic(!t.fontItalic),children:(0,E.jsx)(Mi.FontItalic,{})}),(0,E.jsx)("button",{title:"Underline"+(t.fontUnderline?` (${t.fontUnderline})`:""),className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":void 0!==t.fontUnderline}),onClick:()=>{void 0===t.fontUnderline?(t.setFontUnderline(Fs.SOLID),t.setFontStrikethrough(!1)):t.setFontUnderline(void 0)},children:(0,E.jsx)(Mi.FontUnderline,{})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus-visible:z-[1]",onClick:m,children:[(0,E.jsx)("div",{className:Fi("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==t.fontUnderline})}),(0,E.jsx)(Mi.CaretDown,{})]}),(0,E.jsx)(Vc,{className:"w-14",...h,children:[Fs.SOLID,Fs.DASHED,Fs.DOTTED,Fs.DOUBLE,Fs.WAVY].map((e=>(0,E.jsx)(Yc,{className:"relative",onClick:()=>{t.setFontUnderline(e),t.setFontStrikethrough(!1),f()},children:(0,E.jsx)("div",{className:Fi("!hover:underline absolute top-0 !underline",{"!hover:decoration-solid !decoration-solid":e===Fs.SOLID,"!hover:decoration-dashed !decoration-dashed":e===Fs.DASHED,"!hover:decoration-dotted !decoration-dotted":e===Fs.DOTTED,"!hover:decoration-double !decoration-double":e===Fs.DOUBLE,"!hover:decoration-wavy !decoration-wavy":e===Fs.WAVY,"text-sky-600":e===t.fontUnderline}),children:"                "})},e)))}),(0,E.jsx)("button",{title:"Strikethrough",className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":t.fontStrikethrough}),onClick:()=>{t.fontStrikethrough?t.setFontStrikethrough(!1):(t.setFontStrikethrough(!0),t.setFontUnderline(void 0))},children:(0,E.jsx)(Mi.FontStrikethrough,{})}),(0,E.jsx)("button",{title:"Case"+(t.fontCase?` (${t.fontCase})`:""),className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":void 0!==t.fontCase}),onClick:()=>{t.setFontCase(void 0===t.fontCase?Os.UPPERCASE:void 0)},children:(0,E.jsx)(Mi.FontCase,{className:"stroke-[0.5px]"})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus-visible:z-[1]",onClick:b,children:[(0,E.jsx)("div",{className:Fi("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==t.fontCase})}),(0,E.jsx)(Mi.CaretDown,{})]}),(0,E.jsx)(Vc,{className:"w-20",...A,children:[Os.LOWERCASE,Os.UPPERCASE,Os.CAPITALIZE].map((e=>(0,E.jsx)(Yc,{className:"relative",onClick:()=>{t.setFontCase(e),C()},children:(0,E.jsx)("div",{className:Fi({lowercase:e===Os.LOWERCASE,uppercase:e===Os.UPPERCASE,capitalize:e===Os.CAPITALIZE,"text-sky-600":e===t.fontCase}),children:e})},e)))})]}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Align Left",className:Fi("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":t.textAlign===ws.LEFT}),onClick:()=>t.setTextAlign(ws.LEFT),children:(0,E.jsx)(Mi.TextAlignLeft,{})}),(0,E.jsx)("button",{title:"Align Center",className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":t.textAlign===ws.CENTER}),onClick:()=>t.setTextAlign(ws.CENTER),children:(0,E.jsx)(Mi.TextAlignCenter,{})}),(0,E.jsx)("button",{title:"Align Right",className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center rounded-br-sm rounded-tr-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":t.textAlign===ws.RIGHT}),onClick:()=>t.setTextAlign(ws.RIGHT),children:(0,E.jsx)(Mi.TextAlignRight,{})})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm",children:"Default Colors:"}),(0,E.jsxs)("div",{className:"h-18",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"w-16 flex-shrink-0"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Normal"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Negative"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Zero"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Error"})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Foreground:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:t.normalForegroundColor,defaultColor:Qs,onChange:e=>t.setNormalForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:t.negativeForegroundColor,defaultColor:ti,onChange:e=>t.setNegativeForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:t.zeroForegroundColor,defaultColor:ni,onChange:e=>t.setZeroForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:t.errorForegroundColor,defaultColor:oi,onChange:e=>t.setErrorForegroundColor(e)})})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Background:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:t.normalBackgroundColor,defaultColor:Zs,onChange:e=>t.setNormalBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:t.negativeBackgroundColor,defaultColor:Zs,onChange:e=>t.setNegativeBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:t.zeroBackgroundColor,defaultColor:Zs,onChange:e=>t.setZeroBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:t.errorBackgroundColor,defaultColor:Zs,onChange:e=>t.setErrorBackgroundColor(e)})})]})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsxs)("div",{className:"w-80",children:[(0,E.jsx)("div",{className:"mb-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)("button",{className:"flex h-5 items-center justify-center rounded-sm border border-neutral-400 bg-neutral-200 p-0 px-1 text-sm text-neutral-700 disabled:text-neutral-400",disabled:t.isUsingDefaultStyling,onClick:()=>t.useDefaultStyling(),children:"Use Default Styling"})]})]})]})})]})})),Ll=(0,ht.PA)((()=>{const e=eu().dataCube.editor.columns;return(0,Rt.useEffect)((()=>()=>e.propagateColumnSelectionChanges()),[e]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6 justify-between",children:[(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.TableColumns,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Columns"})]}),(0,E.jsx)("div",{className:"flex h-full items-center pr-2",children:(0,E.jsx)(Gc,{label:"Show hidden columns?",checked:e.selector.columnsVisibility!==al.HIDDEN,onChange:()=>e.selector.setColumnsVisibility(e.selector.columnsVisibility!==al.HIDDEN?al.HIDDEN:al.VISIBLE_WITH_WARNING)})})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(kl,{selector:e.selector,noColumnsSelectedRenderer:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-red-400 p-2 font-semibold text-red-500",children:[(0,E.jsx)("div",{children:(0,E.jsx)(Mi.Warning,{className:"mr-1 text-lg"})}),"No columns selected"]})})})]})})),Bl=(0,ht.PA)((()=>{const e=eu().dataCube.editor.verticalPivots;return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.TableGroupBy,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Vertical Pivots"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(kl,{selector:e.selector})})]})})),Pl=(0,ht.PA)((()=>{const e=eu().dataCube.editor.sorts;return(0,Rt.useEffect)((()=>{}),[e]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.TablePivot,{})}),(0,E.jsxs)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:["Horizontal Pivots",(0,E.jsx)(Dc,{})]})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full"})]})})),Dl=(0,ht.PA)((()=>{const e=eu().dataCube.editor.sorts;return(0,Rt.useEffect)((()=>{}),[e]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.TableFilter,{})}),(0,E.jsxs)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:["Filter",(0,E.jsx)(Dc,{})]})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full"})]})})),jl=(0,ht.PA)((()=>{const e=eu().dataCube.editor.sorts;return(0,Rt.useEffect)((()=>{}),[e]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.TablePlus,{})}),(0,E.jsxs)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:["Extended Columns",(0,E.jsx)(Dc,{})]})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full"})]})})),Ml=(0,ht.PA)((()=>{const e=eu().dataCube.editor.sorts;return(0,Rt.useEffect)((()=>{}),[e]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.Code,{})}),(0,E.jsxs)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:["Code",(0,E.jsx)(Dc,{})]})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full"})]})}));var Ul;!function(e){e.DATA_CUBE_EXTENDED_COLUMN_LEVELS="data-cube.extended-column.levels",e.DATA_CUBE_COLUMN_KINDS="data-cube.column.kinds",e.DATA_CUBE_COLUMN_DISPLAY_AS_LINK="data-cube.column.display-as-link",e.DATA_CUBE_COLUMN_MISSING_VALUE_FORMAT="data-cube.column.missing-value-format"}(Ul||(Ul={}));const Gl=(0,ht.PA)((()=>{const e=eu().dataCube,t=e.editor.columnProperties,n=e.editor.generalProperties.configuration,o=t.selectedColumn,[r,a,s]=wc(),[i,c,l]=wc(),[d,u,g]=wc(),[p,m,f]=wc(),[h,b,C]=wc(),[A,T,_]=wc(),[N,y,v]=wc(),[S,I,x]=wc(),[k,R,w]=wc();return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6 justify-between",children:[(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsxs)("div",{className:"relative flex h-6 items-center text-xl font-medium",children:[(0,E.jsx)(Mi.TableColumn,{}),(0,E.jsx)(Mi.TableColumnOptions__Settings,{className:"absolute bottom-1 right-0 bg-white text-xs"})]}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Column Properties"})]}),(0,E.jsxs)("div",{className:"flex h-full items-center pr-2",children:[(0,E.jsx)(Gc,{label:"Show advanced settings?",checked:t.showAdvancedSettings,onChange:()=>t.setShowAdvancedSettings(!t.showAdvancedSettings)}),(0,E.jsx)(jc,{})]})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsxs)("div",{className:"h-full w-full py-2",children:[(0,E.jsxs)("div",{className:"flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Choose Column:"}),(0,E.jsx)(Hc,{className:"w-80",onClick:r,children:(0,E.jsxs)("div",{className:"flex h-full w-full items-center",children:[(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:o?.name??"(None)"}),o&&(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 w-12 flex-shrink-0 items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-xs font-medium uppercase text-neutral-600",children:o.dataType})]})}),(0,E.jsx)(Vc,{className:"w-80",...s,children:t.configurableColumns.map((e=>(0,E.jsxs)(Yc,{onClick:()=>{t.setSelectedColumnName(e.name),a()},children:[(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:e.name}),(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 w-12 flex-shrink-0 items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-xs font-medium uppercase text-neutral-600",children:e.dataType})]},e.name)))}),t.showAdvancedSettings&&o&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"mx-2 h-[1px] w-4 flex-shrink-0 bg-neutral-400"}),(0,E.jsxs)("div",{className:"flex h-6 items-center",children:[(0,E.jsx)("div",{className:"flex h-full flex-shrink-0 items-center text-sm",children:"Kind:"}),(0,E.jsx)(Hc,{className:"ml-1 w-20",onClick:i,disabled:!0,children:o.kind}),(0,E.jsx)(Vc,{className:"w-20",...l,children:[Ls.DIMENSION,Ls.MEASURE].map((e=>(0,E.jsx)(Yc,{onClick:()=>{o.setKind(e),c()},children:e},e)))}),(0,E.jsx)(jc,{}),(0,E.jsx)(Dc,{}),(0,E.jsx)(Xc,{className:"ml-1",documentationKey:Ul.DATA_CUBE_COLUMN_KINDS})]})]})]}),(0,E.jsx)("div",{className:"-ml-2 mb-2 mt-3 h-[1px] w-[calc(100%_+_16px)] bg-neutral-200"}),o&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Display Name:"}),(0,E.jsx)(Uc,{className:"w-80",value:o.displayName??"",onChange:e=>{const t=e.target.value.trim();o.setDisplayName(""!==t?t:void 0)}})]}),o.dataType===Gs.NUMBER&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Number Format:"}),(0,E.jsx)(Mc,{className:"w-16 text-sm",min:0,step:1,value:o.decimals??0,setValue:e=>{o.setDecimals(e)}}),(0,E.jsx)("div",{className:"ml-1 flex-shrink-0 text-sm",children:"Decimal places"}),(0,E.jsx)(Gc,{className:"ml-3",label:"Display commas",checked:o.displayCommas,onChange:()=>o.setDisplayCommas(!o.displayCommas)}),(0,E.jsx)(Gc,{className:"ml-3",label:"Negative number in parens",checked:o.negativeNumberInParens,onChange:()=>o.setNegativeNumberInParens(!o.negativeNumberInParens)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Number Scale:"}),(0,E.jsx)(Hc,{className:"w-32",onClick:p,children:o.numberScale??"(None)"}),(0,E.jsx)(Vc,{className:"w-32",...f,children:[void 0,xs.PERCENT,xs.BASIS_POINT,xs.THOUSANDS,xs.MILLIONS,xs.BILLIONS,xs.TRILLIONS,xs.AUTO].map((e=>(0,E.jsx)(Yc,{onClick:()=>{o.setNumberScale(e),m()},children:e??"(None)"},e??"")))})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Aggregation Type:"}),(0,E.jsx)(Hc,{className:"w-32",onClick:d,disabled:!0,children:o.aggregateFunction??"(None)"}),(0,E.jsx)(Vc,{className:"w-32",...g,children:[Ps.SUM,Ps.AVERAGE,Ps.COUNT,Ps.MIN,Ps.MAX].map((e=>(0,E.jsx)(Yc,{onClick:()=>{o.setAggregateFunction(e),u()},children:e},e)))}),(0,E.jsx)(Dc,{})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Exclude from HPivot?"}),(0,E.jsx)(Gc,{checked:o.excludedFromHorizontalPivot,onChange:()=>o.setExcludedFromHorizontalPivot(!o.excludedFromHorizontalPivot),disabled:!0}),(0,E.jsx)(Dc,{})]})]}),o.dataType===Gs.TEXT&&(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Dislay as Link?",(0,E.jsx)(Xc,{className:"ml-1",documentationKey:Ul.DATA_CUBE_COLUMN_DISPLAY_AS_LINK})]}),(0,E.jsx)(Gc,{checked:o.displayAsLink,onChange:()=>o.setDisplayAsLink(!o.displayAsLink)}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)("div",{className:"ml-2 mr-1.5 flex h-full flex-shrink-0 items-center text-sm",children:"Use Parameter in Link as Label:"}),(0,E.jsx)(Uc,{className:"w-48",placeholder:Vs,value:o.linkLabelParameter??"",onChange:e=>{const t=e.target.value.trim();o.setLinkLabelParameter(""!==t?t:void 0)}})]})}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Missing Value Format:",(0,E.jsx)(Xc,{className:"ml-1",documentationKey:Ul.DATA_CUBE_COLUMN_MISSING_VALUE_FORMAT})]}),(0,E.jsx)(Uc,{className:"w-16",value:o.missingValueDisplayText??"",onChange:e=>{const t=e.target.value.trim();o.setMissingValueDisplayText(""!==t?t:void 0)},placeholder:"(empty)"})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Visibility:"}),(0,E.jsx)(Gc,{label:"Blur content",checked:o.blur,onChange:()=>o.setBlur(!o.blur),disabled:o.hideFromView}),(0,E.jsx)(Gc,{className:"ml-3",label:"Hide from view",checked:o.hideFromView,onChange:()=>o.setHideFromView(!o.hideFromView)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Pin:"}),(0,E.jsx)(Hc,{className:"w-16",onClick:S,children:o.pinned??"(None)"}),(0,E.jsx)(Vc,{className:"w-16",...x,children:[void 0,Us.LEFT,Us.RIGHT].map((e=>(0,E.jsx)(Yc,{onClick:()=>{o.setPinned(e),I()},children:e??"(None)"},e??"")))})]}),(0,E.jsxs)("div",{className:"mt-1.5 flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Width:"}),(0,E.jsx)(Gc,{label:"(Any)",checked:void 0===o.fixedWidth&&void 0===o.minWidth&&void 0===o.maxWidth,onChange:()=>{void 0===o.fixedWidth&&void 0===o.minWidth&&void 0===o.maxWidth?(o.setFixedWidth(300),o.setMinWidth(void 0),o.setMaxWidth(void 0)):(o.setFixedWidth(void 0),o.setMinWidth(void 0),o.setMaxWidth(void 0))}}),(0,E.jsx)(Gc,{className:"ml-3",label:"Fixed",checked:void 0!==o.fixedWidth,onChange:()=>{o.setFixedWidth(void 0!==o.fixedWidth?void 0:300),o.setMinWidth(void 0),o.setMaxWidth(void 0)}}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Mc,{className:"ml-1 w-16 text-sm",min:0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>0,value:o.fixedWidth,setValue:e=>{o.setFixedWidth(e)},disabled:void 0!==o.minWidth||void 0!==o.maxWidth}),(0,E.jsx)(Gc,{className:"ml-3",label:"In range",checked:void 0!==o.minWidth||void 0!==o.maxWidth,onChange:()=>{void 0===o.minWidth&&void 0===o.maxWidth?(o.setMinWidth(50),o.setMaxWidth(void 0),o.setFixedWidth(void 0)):(o.setMinWidth(void 0),o.setMaxWidth(void 0),o.setFixedWidth(void 0))}}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Mc,{className:"ml-1 w-16 text-sm",min:0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>0,value:o.minWidth,setValue:e=>{o.setMinWidth(e)},disabled:void 0!==o.fixedWidth}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-1 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Mc,{className:"ml-1 w-16 text-sm",min:o.minWidth??0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>=(o.minWidth??0),value:o.maxWidth,setValue:e=>{o.setMaxWidth(e)},disabled:void 0!==o.fixedWidth})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Font:"}),(0,E.jsx)(Hc,{className:"w-28",onClick:h,children:o.fontFamily??n.fontFamily}),(0,E.jsxs)(Vc,{className:"w-28",...C,children:[[Rs.ARIAL,Rs.ROBOTO,Rs.ROBOTO_CONDENSED].map((e=>(0,E.jsx)(Yc,{onClick:()=>{o.setFontFamily(e),b()},children:e},e))),(0,E.jsx)(Wc,{}),[Rs.GEORGIA,Rs.ROBOTO_SERIF,Rs.TIMES_NEW_ROMAN].map((e=>(0,E.jsx)(Yc,{onClick:()=>{o.setFontFamily(e),b()},children:e},e))),(0,E.jsx)(Wc,{}),[Rs.JERBRAINS_MONO,Rs.ROBOTO_MONO,Rs.UBUNTU_MONO].map((e=>(0,E.jsx)(Yc,{onClick:()=>{o.setFontFamily(e),b()},children:e},e)))]}),(0,E.jsx)(Hc,{className:"ml-1 w-10",onClick:A,children:o.fontSize??n.fontSize}),(0,E.jsx)(Vc,{className:"w-10",..._,children:[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>(0,E.jsx)(Yc,{onClick:()=>{o.setFontSize(e),T()},children:e},e)))}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Bold",className:Fi("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":o.fontBold??n.fontBold}),onClick:()=>o.setFontBold(!(o.fontBold??n.fontBold)),children:(0,E.jsx)(Mi.FontBold,{})}),(0,E.jsx)("button",{title:"Italic",className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":o.fontItalic??n.fontItalic}),onClick:()=>o.setFontItalic(!(o.fontItalic??n.fontItalic)),children:(0,E.jsx)(Mi.FontItalic,{})}),(0,E.jsx)("button",{title:"Underline"+(o.fontUnderline??n.fontUnderline?` (${o.fontUnderline??n.fontUnderline})`:""),className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":void 0!==(o.fontUnderline??n.fontUnderline)}),onClick:()=>{void 0===(o.fontUnderline??n.fontUnderline)?(o.setFontUnderline(Fs.SOLID),o.setFontStrikethrough(!1)):o.setFontUnderline(void 0)},children:(0,E.jsx)(Mi.FontUnderline,{})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus-visible:z-[1]",onClick:N,children:[(0,E.jsx)("div",{className:Fi("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==(o.fontUnderline??n.fontUnderline)})}),(0,E.jsx)(Mi.CaretDown,{})]}),(0,E.jsx)(Vc,{className:"w-14",...v,children:[Fs.SOLID,Fs.DASHED,Fs.DOTTED,Fs.DOUBLE,Fs.WAVY].map((e=>(0,E.jsx)(Yc,{className:"relative",onClick:()=>{o.setFontUnderline(e),o.setFontStrikethrough(!1),y()},children:(0,E.jsx)("div",{className:Fi("!hover:underline absolute top-0 !underline",{"!hover:decoration-solid !decoration-solid":e===Fs.SOLID,"!hover:decoration-dashed !decoration-dashed":e===Fs.DASHED,"!hover:decoration-dotted !decoration-dotted":e===Fs.DOTTED,"!hover:decoration-double !decoration-double":e===Fs.DOUBLE,"!hover:decoration-wavy !decoration-wavy":e===Fs.WAVY,"text-sky-600":e===(o.fontUnderline??n.fontUnderline)}),children:"                "})},e)))}),(0,E.jsx)("button",{title:"Strikethrough",className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":o.fontStrikethrough??n.fontStrikethrough}),onClick:()=>{o.fontStrikethrough??n.fontStrikethrough?o.setFontStrikethrough(!1):(o.setFontStrikethrough(!0),o.setFontUnderline(void 0))},children:(0,E.jsx)(Mi.FontStrikethrough,{})}),(0,E.jsx)("button",{title:"Case"+(o.fontCase??n.fontCase?` (${o.fontCase??n.fontCase})`:""),className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":void 0!==(o.fontCase??n.fontCase)}),onClick:()=>{void 0===(o.fontCase??n.fontCase)?o.setFontCase(Os.UPPERCASE):o.setFontCase(void 0)},children:(0,E.jsx)(Mi.FontCase,{className:"stroke-[0.5px]"})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus-visible:z-[1]",onClick:k,children:[(0,E.jsx)("div",{className:Fi("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==(o.fontCase??n.fontCase)})}),(0,E.jsx)(Mi.CaretDown,{})]}),(0,E.jsx)(Vc,{className:"w-20",...w,children:[Os.LOWERCASE,Os.UPPERCASE,Os.CAPITALIZE].map((e=>(0,E.jsx)(Yc,{className:"relative",onClick:()=>{o.setFontCase(e),R()},children:(0,E.jsx)("div",{className:Fi({lowercase:e===Os.LOWERCASE,uppercase:e===Os.UPPERCASE,capitalize:e===Os.CAPITALIZE,"text-sky-600":e===(o.fontCase??n.fontCase)}),children:e})},e)))})]}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Align Left",className:Fi("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":(o.textAlign??n.textAlign)===ws.LEFT}),onClick:()=>o.setTextAlign(ws.LEFT),children:(0,E.jsx)(Mi.TextAlignLeft,{})}),(0,E.jsx)("button",{title:"Align Center",className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":(o.textAlign??n.textAlign)===ws.CENTER}),onClick:()=>o.setTextAlign(ws.CENTER),children:(0,E.jsx)(Mi.TextAlignCenter,{})}),(0,E.jsx)("button",{title:"Align Right",className:Fi("relative -ml-[1px] flex h-5 w-5 items-center justify-center rounded-br-sm rounded-tr-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus-visible:z-[1]",{"bg-neutral-200":(o.textAlign??n.textAlign)===ws.RIGHT}),onClick:()=>o.setTextAlign(ws.RIGHT),children:(0,E.jsx)(Mi.TextAlignRight,{})})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm",children:"Colors:"}),(0,E.jsxs)("div",{className:"h-18",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"w-16 flex-shrink-0"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Normal"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Negative"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Zero"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Error"})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Foreground:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:o.normalForegroundColor??n.normalForegroundColor,defaultColor:n.normalForegroundColor,onChange:e=>o.setNormalForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:o.negativeForegroundColor??n.negativeForegroundColor,defaultColor:n.negativeForegroundColor,onChange:e=>o.setNegativeForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:o.zeroForegroundColor??n.zeroForegroundColor,defaultColor:n.zeroForegroundColor,onChange:e=>o.setZeroForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:o.errorForegroundColor??n.errorForegroundColor,defaultColor:n.errorForegroundColor,onChange:e=>o.setErrorForegroundColor(e)})})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Background:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:o.normalBackgroundColor??n.normalBackgroundColor,defaultColor:n.normalBackgroundColor,onChange:e=>o.setNormalBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:o.negativeBackgroundColor??n.negativeBackgroundColor,defaultColor:n.negativeBackgroundColor,onChange:e=>o.setNegativeBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:o.zeroBackgroundColor??n.zeroBackgroundColor,defaultColor:n.zeroBackgroundColor,onChange:e=>o.setZeroBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(Kc,{color:o.errorBackgroundColor??n.errorBackgroundColor,defaultColor:n.errorBackgroundColor,onChange:e=>o.setErrorBackgroundColor(e)})})]})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsxs)("div",{className:"w-80",children:[(0,E.jsx)("div",{className:"mb-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)("button",{className:"flex h-5 items-center justify-center rounded-sm border border-neutral-400 bg-neutral-200 p-0 px-1 text-sm text-neutral-700 disabled:text-neutral-400",disabled:o.isUsingDefaultStyling,onClick:()=>o.useDefaultStyling(),children:"Use Default Styling"})]})]})]})]})})]})})),Hl=(0,ht.PA)((()=>{const e=eu().dataCube.editor,t=e.currentTab,n=[Vl.GENERAL_PROPERTIES,Vl.COLUMN_PROPERTIES,Vl.FILTER,Vl.EXTENDED_COLUMNS,Vl.COLUMNS,Vl.VERTICAL_PIVOTS,Vl.HORIZONTAL_PIVOTS,Vl.SORTS,Vl.CODE];return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"relative h-[calc(100%_-_40px)] w-full px-2 pt-8",children:[(0,E.jsx)("div",{className:"absolute top-0 flex h-9 w-[calc(100%_-_16px)] min-w-[400px] overflow-auto pt-2",children:n.map((n=>(0,E.jsx)("button",{onClick:()=>e.setCurrentTab(n),className:Fi("relative flex h-6 items-center justify-center whitespace-nowrap border border-b-0 border-l-0 border-neutral-300 px-2 first:border-l focus:z-10",{"-top-0.5 h-[27px] border-b-0 bg-white":n===t}),children:n},n)))}),(0,E.jsxs)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:[t===Vl.GENERAL_PROPERTIES&&(0,E.jsx)(Fl,{}),t===Vl.COLUMN_PROPERTIES&&(0,E.jsx)(Gl,{}),t===Vl.FILTER&&(0,E.jsx)(Dl,{}),t===Vl.EXTENDED_COLUMNS&&(0,E.jsx)(jl,{}),t===Vl.COLUMNS&&(0,E.jsx)(Ll,{}),t===Vl.SORTS&&(0,E.jsx)(Ol,{}),t===Vl.VERTICAL_PIVOTS&&(0,E.jsx)(Bl,{}),t===Vl.HORIZONTAL_PIVOTS&&(0,E.jsx)(Pl,{}),t===Vl.CODE&&(0,E.jsx)(Ml,{})]})]}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)("button",{className:"h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95",onClick:()=>{e.applyChanges(),e.display.close()},children:"OK"}),(0,E.jsx)("button",{className:"ml-2 h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95",onClick:()=>e.display.close(),children:"Cancel"}),(0,E.jsx)("button",{className:"ml-2 h-6 w-20 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95",onClick:()=>e.applyChanges(),children:"Apply"})]})]})}));var Vl,Yl,Wl,$l;!function(e){e.GENERAL_PROPERTIES="General Properties",e.COLUMN_PROPERTIES="Column Properties",e.FILTER="Filter",e.EXTENDED_COLUMNS="Extended Columns",e.COLUMNS="Columns",e.VERTICAL_PIVOTS="Vertical Pivots",e.HORIZONTAL_PIVOTS="Horizontal Pivots",e.SORTS="Sorts",e.CODE="Code"}(Vl||(Vl={}));class Kl extends bc{display;generalProperties;columnProperties;columns;verticalPivots;sorts;code;currentTab=Vl.GENERAL_PROPERTIES;constructor(e){super(e),(0,Ne.Gn)(this,{applyChanges:Ne.XI,currentTab:Ne.sH,setCurrentTab:Ne.XI}),this.display=new Ji(this.dataCube.repl.layout,"Properties",(()=>(0,E.jsx)(Hl,{}))),this.generalProperties=new Al(this),this.columnProperties=new Tl(this),this.columns=new Nl(this),this.verticalPivots=new vl(this),this.sorts=new dl(this),this.code=new El(this)}setCurrentTab(e){this.currentTab=e}applyChanges(){const e=L(this.getLatestSnapshot()),t=e.clone();this.columns.buildSnapshot(t,e),this.verticalPivots.buildSnapshot(t,e),this.sorts.buildSnapshot(t,e),this.generalProperties.buildSnapshot(t,e),this.columnProperties.buildSnapshot(t,e),t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}async applySnapshot(e,t){const n=ai.serialization.fromJson(e.data.configuration);this.columns.applySnaphot(e,n),this.verticalPivots.applySnaphot(e,n),this.sorts.applySnaphot(e,n),this.generalProperties.applySnaphot(e,n),this.columnProperties.applySnaphot(e,n)}async initialize(){}}class Xl{dataCube;subscribers=[];snapshots=[];_initialSnapshot;_initialQuery;constructor(e){this.dataCube=e}get currentSnapshot(){return L(this.snapshots[this.snapshots.length-1])}registerSubscriber(e){this.subscribers.push(e)}initialize(e,t){if(this._initialSnapshot||this._initialQuery)throw new S("Snapshot manager has already been initialized");this._initialSnapshot=e,this._initialQuery=t}get initialSnapshot(){return L(this._initialSnapshot,"Snapshot manager has not been initialized")}get initialQuery(){return L(this._initialQuery,"Snapshot manager has not been initialized")}broadcastSnapshot(e){e.isFinalized()?(this.snapshots.push(e),this.subscribers.forEach((t=>{const n=t.getLatestSnapshot();n?.uuid!==e.uuid&&t.receiveSnapshot(e).catch((e=>{x(e),this.dataCube.application.logService.error(l.create(ue.ILLEGAL_APPLICATION_STATE_OCCURRED),"Error occured while subscribers receiving and applying new snapshot should be handled gracefully",e)}))}))):this.dataCube.application.logService.error(l.create(ue.ILLEGAL_APPLICATION_STATE_OCCURRED),"Snapshot must be finalized before broadcasting")}}class zl extends bc{baseQuery;name="New Report";startTime;constructor(e){super(e),(0,Ne.Gn)(this,{name:Ne.sH,setName:Ne.XI})}setName(e){this.name=e}async applySnapshot(e,t){const n=e.data;this.setName(n.name),this.startTime||(this.startTime=e.timestamp),this.application.layoutService.setWindowTitle(`⊞ ${n.name}${this.startTime?` - ${(0,Gn.GP)(new Date(this.startTime),"HH:mm:ss EEE MMM dd yyyy")}`:""}`)}async initialize(){}}class ql{uuid=(0,a.A)();name;startTime=Date.now();endTime;constructor(e){this.name=e}end(){this.endTime=Date.now()}}class Jl{repl;application;engine;snapshotManager;core;grid;editor;runningTasks=new Map;constructor(e){(0,Ne.Gn)(this,{runningTasks:Ne.sH,newTask:Ne.XI,endTask:Ne.XI}),this.repl=e,this.application=e.application,this.engine=e.dataCubeEngine,this.snapshotManager=new Xl(this),this.core=new zl(this),this.editor=new Kl(this),this.grid=new ol(this)}newTask(e){const t=new ql(e);return this.runningTasks.set(t.uuid,t),t}endTask(e){return e.end(),this.runningTasks.delete(e.uuid),e}async initialize(){const e=this.newTask("Initializing");try{await Promise.all([this.core,this.editor,this.grid,this.grid.controller].map((async e=>{this.snapshotManager.registerSubscriber(e),await e.initialize()})));const e=await this.engine.getBaseQuery(),t=ki(e.partialQuery,e.sourceQuery,e.query);t.timestamp=e.timestamp,this.snapshotManager.broadcastSnapshot(t)}catch(e){x(e),this.repl.application.alertService.setActionAlertInfo({message:`Initialization failure: ${e.message}`,prompt:"Resolve the issue and reload the application.",type:It.ERROR,actions:[]})}finally{this.endTask(e)}}}!function(e){e.CLASS_BUILDER="classBuilder",e.TDS_BUILDER="tdsBuilder",e.JSON_BUILDER="json"}(Yl||(Yl={})),function(e){e.RELATIONAL="relational",e.RELATIONAL_EXECUTION_ACTIVITY="RelationalExecutionActivity",e.AGGREGATION_AWARE_ACTIVITY="aggregationAware"}(Wl||(Wl={})),function(e){e.CSV="CSV"}($l||($l={}));class Ql{_type;constructor(e){this._type=e}}class Zl{}class ed extends Zl{sql;comment;constructor(e){super(),this.sql=e}}class td extends Zl{rewrittenQuery}class nd extends Zl{values;constructor(e){super(),this.values=e}}class od{builder;activities}class rd extends od{values}class ad extends od{value;constructor(e){super(),this.value=e}}class sd{name;type;relationalType;doc}class id extends Ql{columns=[];constructor(){super(Yl.TDS_BUILDER)}}class cd{values=[]}class ld{columns=[];rows=[]}class dd extends od{_UUID=(0,a.A)();builder=new id;result=new ld}class ud extends Ql{_type=Yl.CLASS_BUILDER}class gd extends od{builder=new ud(Yl.CLASS_BUILDER);objects}class pd{static builderSerialization=new pe((0,ge.PL)(pd,{_type:(0,ge.MY)()}))}class md{}class fd extends md{sql;comment;static serialization=new pe((0,ge.PL)(fd,{sql:(0,ge.MY)(),comment:(0,ge.lq)((0,ge.MY)())}))}class hd extends md{rewrittenQuery;static serialization=new pe((0,ge.PL)(hd,{rewrittenQuery:(0,ge.MY)()}))}class Ed{builder;activities}class bd extends md{content;constructor(e){super(),this.content=e}}class Cd extends Ed{values;static serialization=new pe((0,ge.PL)(Cd,{_type:(0,ge.MY)(),builder:me(pd.builderSerialization.schema),values:(0,ge.lS)()}))}class Ad{name;doc;type;relationalType;static serialization=new pe((0,ge.PL)(Ad,{name:(0,ge.MY)(),doc:(0,ge.lq)((0,ge.MY)()),type:(0,ge.lq)((0,ge.MY)()),relationalType:(0,ge.lq)((0,ge.MY)())}))}class Td extends pd{columns=[];static serialization=new pe((0,ge.PL)(Td,{_type:(0,ge.MY)(),columns:(0,ge.p_)(me(Ad.serialization.schema))}))}function _d(e){switch(e._type){case Wl.RELATIONAL:case Wl.RELATIONAL_EXECUTION_ACTIVITY:return fd.serialization.fromJson(e);case Wl.AGGREGATION_AWARE_ACTIVITY:return hd.serialization.fromJson(e);default:return new bd(e)}}class Nd extends Ed{result;static serialization=new pe((0,ge.PL)(Nd,{builder:me(Td.serialization.schema),activities:(0,ge.p_)((0,ge.Ie)((()=>ge._Z),_d)),result:(0,ge.lS)()}))}class yd extends Ed{objects;static serialization=new pe((0,ge.PL)(yd,{builder:me(pd.builderSerialization.schema),activities:(0,ge.p_)((0,ge.Ie)((()=>ge._Z),_d)),objects:(0,ge.lS)()}))}class vd extends Ed{value;constructor(e){super(),this.value=e}}class Sd extends Ed{content}class Id extends od{content}const xd=e=>{if(e instanceof fd){const t=new ed(e.sql);return t.comment=e.comment,t}if(e instanceof hd){const t=new td;return t.rewrittenQuery=L(e.rewrittenQuery,"Aggregation aware execution activities 'rewritenQuery' field is missing"),t}if(e instanceof bd)return new nd(e);throw new I("Can't build execution activities",e)},kd=e=>{const t=new sd;return t.name=L(e.name,"TDS column 'name' field is missing"),t.type=e.type,t.doc=e.doc,t.relationalType=e.relationalType,t},Rd=e=>{if(e instanceof Sd){const t=new Id;return t.content=e.content,t}if(e instanceof yd)return(e=>{const t=new gd;return t.objects=L(e.objects,"Class execution result 'objects' field is missing"),t.activities=e.activities?.map(xd),t})(e);if(e instanceof Nd)return(e=>{const t=new dd;return t.builder=(e=>{const t=new id;return t.columns=e.columns.map(kd),t})(L(e.builder,"TDS execution result 'builder' field is missing")),t.activities=e.activities?.map(xd),t.result.columns=e.result.columns,t.result.rows=e.result.rows.map((e=>{const t=new cd;return t.values=e.values,t})),t})(e);if(e instanceof Cd)return(e=>{const t=new rd;return t.values=L(e.values,"JSON execution result 'values' field is missing"),t})(e);if(e instanceof vd)return new ad(e.value);throw new I("Can't build execution result",e)},wd=e=>{if(null===e||M(e)||U(e)||G(e))return new vd(e);switch(e.builder?._type){case Yl.CLASS_BUILDER:return yd.serialization.fromJson(e);case Yl.TDS_BUILDER:return Nd.serialization.fromJson(e);case Yl.JSON_BUILDER:return Cd.serialization.fromJson(e);default:{const t=new Sd;return t.content=e,t}}};class Od{columns=[];query;runtime}class Fd{name;type;static serialization=new pe((0,ge.PL)(Fd,{name:(0,ge.MY)(),type:(0,ge.MY)()}))}var Ld;!function(e){e.REPL_EXECUTED_QUERY="REPLExecutedQuery"}(Ld||(Ld={}));class Bd extends Od{static serialization=new pe((0,ge.PL)(Bd,{_type:fe(Ld.REPL_EXECUTED_QUERY),columns:(0,ge.p_)(me(Fd.serialization.schema)),query:(0,ge.MY)(),runtime:(0,ge.MY)()}))}function Pd(e){if(e._type===Ld.REPL_EXECUTED_QUERY)return(0,ge.iu)(Bd.serialization.schema,e);throw new I(`Can't deserialize data cube query source of type '${e._type}'`)}function Dd(e){if(e instanceof Bd)return(0,ge.lK)(Bd.serialization.schema,e);throw new I("Can't serialize data cube query source",e)}class jd{name;query;partialQuery;source;configuration;constructor(e,t,n){this.name=e,this.query=t,this.configuration=n}static serialization=new pe((0,ge.PL)(jd,{configuration:(0,ge.lS)(),name:(0,ge.MY)(),partialQuery:(0,ge.MY)(),query:(0,ge.MY)(),source:(0,ge.Ie)(Dd,Pd)}))}class Md{gridClientLicense;static serialization=new pe((0,ge.PL)(Md,{gridClientLicense:(0,ge.lq)((0,ge.MY)())}))}class Ud{query;pretty;static serialization=new pe((0,ge.PL)(Ud,{pretty:(0,ge.lq)((0,ge.MY)()),query:(0,ge.Ie)((e=>bs(e,[])),(e=>Es(e,[])))}))}class Gd{query;static serialization=new pe((0,ge.PL)(Gd,{query:me(va([]))}))}class Hd{query;debug;static serialization=new pe((0,ge.PL)(Hd,{debug:(0,ge.lq)((0,ge.MY)()),query:me(va([]))}))}class Vd{query;timestamp;partialQuery;sourceQuery;static serialization=new pe((0,ge.PL)(Vd,{partialQuery:(0,ge.Ie)((e=>bs(e,[])),(e=>Es(e,[]))),query:me(jd.serialization.schema),sourceQuery:(0,ge.Ie)((e=>bs(e,[])),(e=>Es(e,[]))),timestamp:(0,ge.MY)()}))}const Yd=!1,Wd=!1,$d=!1;class Kd{repl;application;client;enableDebugMode=Yd;gridClientRowBuffer=50;gridClientPurgeClosedRowNodes=Wd;disableLargeDatasetWarning=$d;constructor(e){(0,Ne.Gn)(this,{enableDebugMode:Ne.sH,setEnableDebugMode:Ne.XI,gridClientRowBuffer:Ne.sH,setGridClientRowBuffer:Ne.XI,gridClientPurgeClosedRowNodes:Ne.sH,setGridClientPurgeClosedRowNodes:Ne.XI,disableLargeDatasetWarning:Ne.sH,setDisableLargeDatasetWarning:Ne.XI}),this.repl=e,this.application=e.application,this.client=e.client}setEnableDebugMode(e){this.enableDebugMode=e}setGridClientRowBuffer(e){this.gridClientRowBuffer=e,this.propagateGridOptionUpdates()}setGridClientPurgeClosedRowNodes(e){this.gridClientPurgeClosedRowNodes=e,this.propagateGridOptionUpdates()}setDisableLargeDatasetWarning(e){this.disableLargeDatasetWarning=e}refreshFailedDataFetches(){this.repl.dataCube.grid.client.retryServerSideLoads()}propagateGridOptionUpdates(){this.repl.dataCube.grid.client.updateGridOptions({rowBuffer:this.gridClientRowBuffer,purgeClosedRowNodes:this.gridClientPurgeClosedRowNodes})}async getInfrastructureInfo(){return this.client.getInfrastructureInfo()}async getQueryTypeahead(e,t){return await this.client.getQueryTypeahead({code:e,isPartial:t})}async parseQuery(e,t){return Es(await this.client.parseQuery({code:e,returnSourceInformation:t}),[])}async getBaseQuery(){return Vd.serialization.fromJson(await this.client.getBaseQuery())}async executeQuery(e){const t=await this.client.executeQuery({query:bs(e,[]),debug:this.enableDebugMode});return{result:P(Rd(wd(JSON.parse(t.result))),dd),executedQuery:t.executedQuery,executedSQL:t.executedSQL}}}var Xd=n(1697);const zd=(0,ht.PA)((()=>{const e=Ot().assistantService.currentDocumentationEntry;return e?(0,E.jsxs)("div",{className:"h-full w-full overflow-auto bg-white p-4",children:[(0,E.jsx)("div",{className:"mb-3 text-2xl font-bold",children:e.title}),e.content&&(M(e.content)?(0,E.jsx)("div",{className:"",children:e.content}):(0,E.jsx)(kn,{value:e.content}))]}):null})),qd=(0,ht.PA)((()=>{const e=eu().dataCubeEngine,[t,n]=(0,Rt.useState)(e.gridClientRowBuffer),[o,r]=(0,Rt.useState)(e.gridClientPurgeClosedRowNodes),[a,s]=(0,Rt.useState)(e.enableDebugMode),[i,c]=(0,Rt.useState)(e.disableLargeDatasetWarning),l=()=>{e.setGridClientRowBuffer(t),e.setGridClientPurgeClosedRowNodes(o),e.setEnableDebugMode(a),e.setDisableLargeDatasetWarning(i)};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_40px)] w-full p-2 pb-0",children:(0,E.jsxs)("div",{className:"h-full w-full select-none overflow-auto border border-neutral-300 bg-white p-2",children:[(0,E.jsx)("div",{className:"flex h-6",children:(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.Table,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Grid"})]})}),(0,E.jsxs)("div",{className:"mt-1.5",children:[(0,E.jsx)("div",{className:"font-medium",children:"Large Dataset Warning: Disabled"}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Gc,{label:"Suggests user to enable pagination when handling large datasets to improve performance.",checked:i,onChange:()=>c(!i)})})]}),(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:"Refresh Failed Data Fetch: Action"}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:"Manually re-run all failed data fetches in the grid."}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)("button",{className:"ml-2 h-5 min-w-16 border border-neutral-400 bg-neutral-300 px-2 text-sm first-of-type:ml-0 hover:brightness-95",onClick:()=>e.refreshFailedDataFetches(),children:"Run Action"})})]}),(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:"Refresh Group Node Data: Enabled"}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Gc,{label:"Force refresh data when group node is opened.",checked:o,onChange:()=>r(!o)})})]}),(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:"Row Buffer"}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:"Sets the number of rows the grid renders outside of the viewable area. e.g. if the buffer is 10 and your grid is showing 50 rows (as that's all that fits on your screen without scrolling), then the grid will actually render 70 in total (10 extra above and 10 extra below). Then when you scroll, the grid will already have 10 rows ready and waiting to show, no redraw is needed. A low small buffer will make initial draws of the grid faster; whereas a big one will reduce the redraw visible vertically scrolling."}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Mc,{className:"w-16 text-sm",min:10,step:10,defaultValue:50,value:t,setValue:e=>{n(e??50)}})})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)("div",{className:"flex h-6",children:(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(Mi.Debug,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Debug"})]})}),(0,E.jsxs)("div",{className:"mt-1.5",children:[(0,E.jsx)("div",{className:"font-medium",children:"Debug Mode: Enabled"}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Gc,{label:"Enable debug logging when running data queries, updating snapshots, etc.",checked:a,onChange:()=>s(!a)})})]})]})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)("button",{className:"ml-2 h-6 w-48 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95",onClick:()=>{n(50),r(Wd),s(Yd),c($d),l()},children:"Restore Default Settings"}),(0,E.jsx)("button",{className:"ml-2 h-6 w-36 border border-neutral-400 bg-neutral-300 px-2 hover:brightness-95",onClick:l,children:"Save Settings"})]})]})}));class Jd{application;client;layout;initState=ye.create();settingsDisplay;documentationDisplay;dataCubeEngine;dataCube;constructor(e){(0,Ne.Gn)(this,{dataCube:Ne.sH}),this.application=e,this.client=new Zo(new ie({baseUrl:this.application.config.useDynamicREPLServer?window.location.origin+this.application.config.baseAddress.replace("/repl/",""):this.application.config.replUrl})),this.layout=new $i(this.application),this.dataCubeEngine=new Kd(this),this.dataCube=new Jl(this),this.settingsDisplay=new Ji(this.layout,"Settings",(()=>(0,E.jsx)(qd,{}))),this.settingsDisplay.configuration.window={x:-50,y:50,width:600,height:400,minWidth:300,minHeight:200,center:!1},this.documentationDisplay=new Ji(this.layout,"Documentation",(()=>(0,E.jsx)(zd,{}))),this.documentationDisplay.configuration.window={x:-50,y:-50,width:400,height:400,minWidth:300,minHeight:200,center:!1}}alertError(e,t){const{message:n,text:o,actions:r,windowTitle:a,windowConfig:s}=t;this.application.notificationService.notifyError(e);const i=new Wi(new Yi(a??"Error",(()=>(0,E.jsx)(Gi,{type:Ui.ERROR,message:n,text:o,actions:r}))));i.configuration.window=s??zi,this.layout.newWindow(i)}alert(e){const{message:t,type:n,text:o,actions:r,windowTitle:a,windowConfig:s}=e,i=new Wi(new Yi(a??"",(()=>(0,E.jsx)(Gi,{type:n,message:t,text:o,actions:r,onClose:()=>this.layout.closeWindow(i)}))));i.configuration.window=s??zi,this.layout.newWindow(i)}async initialize(){if(this.initState.isInInitialState){this.initState.inProgress();try{const e=await this.dataCubeEngine.getInfrastructureInfo();e.gridClientLicense&&Xd.hF.setLicenseKey(e.gridClientLicense),this.initState.pass()}catch(e){x(e),this.application.alertService.setActionAlertInfo({message:`Initialization failure: ${e.message}`,prompt:"Resolve the issue and reload the application.",type:It.ERROR,actions:[]}),this.initState.fail()}}else this.application.notificationService.notifyIllegalState("REPL store is re-initialized")}}const Qd=(0,Rt.createContext)(void 0),Zd=(0,ht.PA)((({children:e})=>{const t=Ot(),n=(0,ht.iz)((()=>new Jd(t)));return(0,Rt.useEffect)((()=>{n.initialize().catch(t.logUnhandledError)}),[n,t]),n.initState.hasSucceeded?(0,E.jsx)(Qd.Provider,{value:n,children:e}):(0,E.jsx)(E.Fragment,{})})),eu=()=>L((0,Rt.useContext)(Qd),"Can't find REPL store in context");var tu=n(5866),nu=n(6450),ou=n(9872),ru=n(7589),au=n(9169),su=n(8142),iu=n(3739),cu=n(1924),lu=n(5428),du=n(1598),uu=n(7948);const gu=console.error;function pu(e,t){return`${Array.from(new Set([t[`${e}ForegroundColor`],...t.columns.map((t=>t[`${e}ForegroundColor`])).filter(O)]).values()).map((t=>`.${Zi.ROOT} .${ac(t,e)}{color:${t};}`)).join("\n")}`}function mu(e,t){return`${Array.from(new Set([t[`${e}BackgroundColor`],...t.columns.map((t=>t[`${e}BackgroundColor`])).filter(O)]).values()).map((t=>`.${Zi.ROOT} .${sc(t,e)}{background-color:${t};}`)).join("\n")};`}console.error=(e,...t)=>{console.debug(`%c ${e}`,"color: silver")};const fu=(0,ht.PA)((()=>{const e=eu().dataCube.grid,t=e.queryConfiguration;return(0,E.jsx)(lu.mL,{styles:lu.AH`
2
+ .${Zi.ROOT} {
3
+ --ag-odd-row-background-color: ${e.queryConfiguration.alternateRowsStandardMode&&!e.queryConfiguration.alternateRows?Ws:ei};
4
+ --ag-cell-horizontal-border: ${e.queryConfiguration.showVerticalGridLines?`1px solid\n ${e.queryConfiguration.gridLineColor}`:"none"};
5
+ --ag-row-border-color: ${e.queryConfiguration.showHorizontalGridLines?e.queryConfiguration.gridLineColor:"transparent"};
6
+ }
7
+ .${Zi.ROOT}
8
+ .${Zi.HIGHLIGHT_ROW} {
9
+ background-color: ${e.queryConfiguration.alternateRows?e.queryConfiguration.alternateRowsColor:ei};
10
+ }
11
+ ${[Rs.ARIAL,Rs.ROBOTO,Rs.ROBOTO_CONDENSED].map((e=>`.${Zi.ROOT} .${ec(e)}{font-family:${e},sans-serif;}`)).join("\n")}
12
+ ${[Rs.GEORGIA,Rs.ROBOTO_SERIF,Rs.TIMES_NEW_ROMAN].map((e=>`.${Zi.ROOT} .${ec(e)}{font-family:${e},serif;}`)).join("\n")}
13
+ ${[Rs.JERBRAINS_MONO,Rs.ROBOTO_MONO,Rs.UBUNTU_MONO].map((e=>`.${Zi.ROOT} .${ec(e)}{font-family:${e},monospace;}`)).join("\n")}
14
+ .${Zi.FONT_BOLD} {
15
+ font-weight: 700;
16
+ }
17
+ ${[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>`.${Zi.ROOT} .${tc(e)}{font-size:${e}px;}`)).join("\n")}
18
+ .${Zi.ROOT}
19
+ .${Zi.FONT_ITALIC} {
20
+ font-style: italic;
21
+ }
22
+ ${[Fs.SOLID,Fs.DASHED,Fs.DOTTED,Fs.DOUBLE,Fs.WAVY].map((e=>`.${Zi.ROOT} .${nc(e)}{text-decoration:underline ${e};}`)).join("\n")}
23
+ .${Zi.ROOT} .${Zi.FONT_STRIKETHROUGH} {
24
+ text-decoration: line-through;
25
+ }
26
+ ${[Os.LOWERCASE,Os.UPPERCASE,Os.CAPITALIZE].map((e=>`.${Zi.ROOT} .${oc(e)}{text-transform:${e};}`)).join("\n")}
27
+ ${[ws.LEFT,ws.CENTER,ws.RIGHT].map((e=>`.${Zi.ROOT} .${rc(e)}{text-align:${e};}`)).join("\n")};
28
+ ${mu("normal",t)}
29
+ ${mu("zero",t)}
30
+ ${mu("negative",t)}
31
+ ${mu("error",t)}
32
+ ${pu("normal",t)}
33
+ ${pu("zero",t)}
34
+ ${pu("negative",t)}
35
+ ${pu("error",t)}
36
+ .${Zi.ROOT}
37
+ .${Zi.BLUR} {
38
+ filter: blur(3px);
39
+ }
40
+ .${Zi.ROOT}
41
+ .${Zi.BLUR}:hover {
42
+ filter: none;
43
+ }
44
+ `})})),hu=(0,ht.PA)((()=>{const e=eu().dataCube.grid.scrollHintText,t=document.querySelector(".data-cube-grid .ag-side-bar"),n=document.querySelector(".data-cube-grid .ag-body-vertical-scroll");return(0,E.jsxs)("div",{className:"absolute -top-9 flex items-center rounded-sm border border-neutral-300 bg-neutral-100 p-1 pr-2 text-neutral-500 shadow-sm",style:{right:(null!==t?t.getBoundingClientRect().width+12:16)+(null!==n?n.getBoundingClientRect().width:0)},children:[(0,E.jsx)(Mi.TableScroll,{className:"text-lg"}),(0,E.jsx)("div",{className:"ml-1 font-mono text-sm",children:e??""})]})})),Eu=(0,ht.PA)((()=>{const e=eu().dataCube.grid;return(0,E.jsxs)("div",{className:"relative flex h-5 w-full select-none justify-between border-b border-neutral-200 bg-neutral-100",children:[Boolean(e.scrollHintText)&&(0,E.jsx)(hu,{}),(0,E.jsx)("div",{}),(0,E.jsxs)("div",{className:"flex h-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full items-center px-2 font-mono text-sm text-neutral-500",children:e.clientDataSource.rowCount?`Rows: ${e.clientDataSource.rowCount}`:""}),void 0!==e.datasourceConfiguration.limit&&e.queryConfiguration.showWarningForTruncatedResult&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-full items-center px-2 text-orange-500",children:[(0,E.jsx)(Mi.Warning,{className:"stroke-[3px]"}),(0,E.jsx)("div",{className:"ml-1 text-sm font-semibold",children:`Results truncated to fit within row limit (${e.datasourceConfiguration.limit})`})]})]}),(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("button",{className:"flex h-full items-center p-2",onClick:()=>e.setPaginationEnabled(!e.isPaginationEnabled),children:[(0,E.jsx)(du.A,{checked:e.isPaginationEnabled,classes:{root:"p-0 w-6 h-5 flex items-center",input:"w-2",checked:"!translate-x-2 ease-in-out duration-100 transition",thumb:Fi("w-2 h-2",{"bg-sky-600":e.isPaginationEnabled,"bg-neutral-500":!e.isPaginationEnabled}),switchBase:"p-0.5 mt-1 translate-x-0 ease-in-out duration-100 transition",track:Fi("h-3 w-5 border",{"!bg-sky-100 border-sky-600":e.isPaginationEnabled,"!bg-neutral-100 border-neutral-500":!e.isPaginationEnabled})},disableRipple:!0,disableFocusRipple:!0}),(0,E.jsx)("div",{className:Fi("text-sm",{"text-sky-600":e.isPaginationEnabled,"text-neutral-500":!e.isPaginationEnabled}),children:"Pagination"})]})]})]})})),bu=(0,ht.PA)((()=>{const e=eu().dataCube,t=e.grid;return(0,E.jsx)("div",{className:"relative h-[calc(100%_-_20px)] w-full",children:(0,E.jsx)(xc.W6,{className:"data-cube-grid ag-theme-balham",rowModelType:"serverSide",serverSideDatasource:t.clientDataSource,context:{dataCube:e},onGridReady:e=>{t.configureClient(e.api),console.error=gu},modules:[Sl.Q,iu.n7,tu.e,nu.mZ,ru.M,ou.F,uu.G,au.F,su.e,cu.Ak],...Ic(e)})})})),Cu=(0,ht.PA)((()=>(0,E.jsxs)("div",{className:"h-full w-full",children:[(0,E.jsx)(fu,{}),(0,E.jsx)(bu,{}),(0,E.jsx)(Eu,{})]})));var Au=n(6481),Tu=n(3213);const _u=e=>{const{parent:t,layoutManagerState:n,windowState:o}=e,r=o.configuration.window,[a,s]=(0,Rt.useState)((()=>{const e=r.x??Ki,n=r.y??Ki,o=r.width??800,a=r.height??600,s=t?.current??document.body,{width:i,height:c}=s.getBoundingClientRect();if(r.center){const e=o+100>i?i-100:o,t=a+100>c?c-100:a;return{x:(i-e)/2,y:(c-t)/2,width:e,height:t}}const l=o+Math.abs(e)+Ki>i?i-Math.abs(e)-Ki:o,d=a+Math.abs(n)+Ki>c?c-Math.abs(n)-Ki:a;return{x:e<0?i-Math.abs(e)-l:e,y:n<0?c-Math.abs(n)-d:n,width:l,height:d}}));return(0,E.jsx)(Tu.p,{className:"absolute z-10",handle:`.data-cube__window-${o.uuid}`,position:{x:a.x,y:a.y},size:{width:a.width,height:a.height},minWidth:r.minWidth??300,minHeight:r.minHeight??300,onDragStop:(e,t)=>{s({...a,x:t.x,y:t.y})},dragHandleClassName:`data-cube__window-${o.uuid}`,onResize:(e,t,n,o,r)=>{s({...r,width:n.offsetWidth,height:n.offsetHeight})},enableResizing:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},resizeHandleStyles:{top:{cursor:"ns-resize"},right:{cursor:"ew-resize"},bottom:{cursor:"ns-resize"},left:{cursor:"ew-resize"},topRight:{cursor:"nesw-resize",width:14,height:14,top:-7,right:-7},bottomRight:{cursor:"nwse-resize",width:14,height:14,bottom:-7,right:-7},bottomLeft:{cursor:"nesw-resize",width:14,height:14,bottom:-7,left:-7},topLeft:{cursor:"nwse-resize",width:14,height:14,top:-7,left:-7}},children:(0,E.jsxs)("div",{className:"h-full w-full border border-neutral-400 bg-neutral-200 shadow-xl",onMouseDown:()=>{n.bringWindowFront(o)},children:[(0,E.jsxs)("div",{className:Fi(`data-cube__window-${o.uuid}`,"flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white active:cursor-move"),children:[(0,E.jsx)("div",{className:"px-2",children:o.configuration.title}),(0,E.jsx)("button",{className:"flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white",onClick:()=>n.closeWindow(o),children:(0,E.jsx)(Mi.X,{})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)] w-full",children:o.configuration.contentRenderer(o.configuration)})]})})},Nu=(0,ht.PA)((e=>{const{layoutManagerState:t}=e;return(0,E.jsx)(E.Fragment,{children:t.windows.map((e=>(0,E.jsx)(_u,{layoutManagerState:t,windowState:e},e.uuid)))})})),yu=(0,ht.PA)((()=>{const e=eu().dataCube;return(0,E.jsxs)("div",{className:"flex h-5 w-full justify-between bg-neutral-100",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsxs)("button",{className:"flex items-center px-2 text-sky-600 hover:text-sky-700",onClick:()=>e.editor.display.open(),children:[(0,E.jsx)(Mi.Settings,{className:"text-xl"}),(0,E.jsx)("div",{className:"pl-0.5 underline",children:"Properties"})]}),(0,E.jsx)("div",{className:"flex",children:(0,E.jsxs)("button",{className:"flex items-center text-sky-600 hover:text-sky-700",children:[(0,E.jsx)(Mi.TableFilter,{className:"text-lg"}),(0,E.jsx)("div",{className:"pl-0.5 underline",children:"Filter"})]})})]}),(0,E.jsx)("div",{className:"flex items-center px-2",children:(0,E.jsx)("div",{className:"flex h-3.5 w-48 border-[0.5px] border-neutral-300",children:e.runningTasks.size>0&&(0,E.jsx)(Au.A,{classes:{root:"h-3.5 w-full bg-transparent",bar1Indeterminate:"bg-green-500",bar2Indeterminate:"bg-green-500"},variant:"indeterminate"})})})]})})),vu=(0,ht.PA)((()=>{const e=Ot(),t=eu(),n=t.dataCube,[o,r,a]=wc();return(0,E.jsxs)("div",{className:"flex h-6 justify-between bg-neutral-100",children:[(0,E.jsxs)("div",{className:"flex select-none items-center pl-1 pr-2 text-lg font-medium",children:[(0,E.jsx)(Mi.Cube,{className:"mr-1 h-4 w-4"}),(0,E.jsx)("div",{children:n.core.name})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("button",{className:"flex h-6 w-6 flex-shrink-0 items-center justify-center text-lg",onClick:o,children:(0,E.jsx)(Mi.Menu,{})}),(0,E.jsxs)(Oc,{...a,menuProps:{anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},classes:{paper:"rounded-none mt-[1px]",list:"w-36 p-0 rounded-none border border-neutral-400 bg-white max-h-40 overflow-y-auto py-0.5"}},children:[(0,E.jsx)(Fc,{className:"flex h-[22px] w-full items-center px-2.5 text-base hover:bg-neutral-100 focus-visible:bg-neutral-100",onClick:()=>{e.documentationService.url&&e.navigationService.navigator.visitAddress(e.documentationService.url),r()},disabled:!0,children:"See Documentation"}),(0,E.jsx)("div",{className:"my-0.5 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)(Fc,{className:"flex h-[22px] w-full items-center px-2.5 text-base hover:bg-neutral-100 focus-visible:bg-neutral-100",onClick:()=>{t.settingsDisplay.open(),r()},children:"Settings..."})]})]})]})})),Su=(0,ht.PA)((()=>{const e=eu(),t=Ot(),n=e.dataCube;return(0,Rt.useEffect)((()=>{n.initialize().catch(t.logUnhandledError)}),[n,t]),(0,E.jsxs)("div",{className:"data-cube relative flex h-full w-full flex-col bg-white",children:[(0,E.jsx)(vu,{}),(0,E.jsx)(Cu,{}),(0,E.jsx)(yu,{}),(0,E.jsx)(Nu,{layoutManagerState:e.layout})]})})),Iu=(0,ht.PA)((e=>{const{children:t,simple:n}=e,o=L((0,Rt.useContext)(qo),"Can't find application platform in context"),r=Ot();return(0,Rt.useEffect)((()=>{r.initialize(o).catch(r.alertUnhandledError)}),[r,o]),r.initState.hasSucceeded?n?(0,E.jsx)(Qn,{children:t}):(0,E.jsx)(Jn,{children:t}):(0,E.jsx)(E.Fragment,{})}));class xu{application;pluginManager;constructor(e){this.application=e,this.pluginManager=e.pluginManager}}const ku=(0,Rt.createContext)(void 0),Ru=({children:e})=>{const t=Ot(),n=(0,ht.iz)((()=>new xu(t)));return(0,E.jsx)(ku.Provider,{value:n,children:e})},wu=({children:e})=>(0,E.jsx)(Iu,{simple:!0,children:(0,E.jsx)(Ru,{children:e})}),Ou=Object.freeze({DATA_CUBE:"/dataCube"}),Fu=(Lu=(0,ht.PA)((()=>(0,E.jsx)("div",{className:"app",children:(0,E.jsx)(Wo.dO,{children:(0,E.jsx)(Wo.qh,{exact:!0,path:[Ou.DATA_CUBE],component:Su})})}))),function(){return(0,E.jsx)(Zd,{children:(0,E.jsx)(Lu,{})})});var Lu;const Bu=e=>{const{baseUrl:t}=e;return(0,E.jsx)(Qo,{baseUrl:t,children:(0,E.jsxs)(wu,{children:[(0,E.jsx)(Fu,{}),(0,E.jsx)(Vi,{})]})})},Pu=JSON.parse('{"rE":"0.0.43","XO":{"F":"@finos/legend-application-repl-plugin-core"}}');class Du extends jo{_$nominalTypeBrand;install(e){e.registerApplicationPlugin(this)}getExtraRequiredDocumentationKeys(){return[Ul.DATA_CUBE_EXTENDED_COLUMN_LEVELS,Ul.DATA_CUBE_COLUMN_KINDS,Ul.DATA_CUBE_COLUMN_DISPLAY_AS_LINK]}}var ju,Mu=n(7441);!function(e){e.WHITESPACE="",e.KEYWORD="keyword",e.IDENTIFIER="identifier",e.OPERATOR="operator",e.DELIMITER="delimiter",e.PARSER="parser",e.NUMBER="number",e.DATE="date",e.COLOR="color",e.PACKAGE="package",e.STRING="string",e.COMMENT="comment",e.LANGUAGE_STRUCT="language-struct",e.MULTIPLICITY="multiplicity",e.GENERICS="generics",e.PROPERTY="property",e.PARAMETER="parameter",e.VARIABLE="variable",e.TYPE="type",e.INVALID="invalid"}(ju||(ju={}));const Uu=(e,t,n,o)=>{const r=(e=>{const t=[];e.tokenColors.forEach((e=>{if(!e.settings)return;let n=[];n=M(e.scope)?e.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(",").map((e=>e.trim())):Array.isArray(e.scope)?e.scope:[""];const o={};e.settings.foreground&&M(e.settings.foreground)&&(o.foreground=e.settings.foreground),e.settings.background&&M(e.settings.background)&&(o.background=e.settings.background),e.settings.fontStyle&&M(e.settings.fontStyle)&&(o.fontStyle=e.settings.fontStyle),n.forEach((e=>{if(O(e)||!Object.keys(o).length)return;const n={...o,token:e};t.push(n)}))}));const n={};return Object.entries(e.colors).forEach((([e,t])=>{Array.isArray(t)?t.length&&(n[e]=N(t,0)):n[e]=t})),{base:"vs-dark",inherit:!0,rules:t,colors:n}})(e);return{...r,base:t,colors:{...r.colors,...n},rules:[...r.rules,...o]}},Gu=JSON.parse('{"name":"Solarized (dark)","tokenColors":[{"settings":{"foreground":"#839496"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown"],"settings":{"foreground":"#839496"}},{"name":"Comment","scope":"comment","settings":{"fontStyle":"italic","foreground":"#586E75"}},{"name":"String","scope":"string","settings":{"foreground":"#2AA198"}},{"name":"Regexp","scope":"string.regexp","settings":{"foreground":"#DC322F"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#D33682"}},{"name":"Variable","scope":["variable.language","variable.other"],"settings":{"foreground":"#268BD2"}},{"name":"Keyword","scope":"keyword","settings":{"foreground":"#859900"}},{"name":"Storage","scope":"storage","settings":{"fontStyle":"bold","foreground":"#93A1A1"}},{"name":"Class name","scope":["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],"settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"Function name","scope":"entity.name.function","settings":{"foreground":"#268BD2"}},{"name":"Variable start","scope":"punctuation.definition.variable","settings":{"foreground":"#859900"}},{"name":"Embedded code markers","scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#DC322F"}},{"name":"Built-in constant","scope":["constant.language","meta.preprocessor"],"settings":{"foreground":"#B58900"}},{"name":"Support.construct","scope":["support.function.construct","keyword.other.new"],"settings":{"foreground":"#CB4B16"}},{"name":"User-defined constant","scope":["constant.character","constant.other"],"settings":{"foreground":"#CB4B16"}},{"name":"Inherited class","scope":"entity.other.inherited-class","settings":{"foreground":"#6C71C4"}},{"name":"Function argument","scope":"variable.parameter","settings":{}},{"name":"Tag name","scope":"entity.name.tag","settings":{"foreground":"#268BD2"}},{"name":"Tag start/end","scope":"punctuation.definition.tag","settings":{"foreground":"#586E75"}},{"name":"Tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#93A1A1"}},{"name":"Library function","scope":"support.function","settings":{"foreground":"#268BD2"}},{"name":"Continuation","scope":"punctuation.separator.continuation","settings":{"foreground":"#DC322F"}},{"name":"Library constant","scope":["support.constant","support.variable"],"settings":{}},{"name":"Library class/type","scope":["support.type","support.class"],"settings":{"foreground":"#859900"}},{"name":"Library Exception","scope":"support.type.exception","settings":{"foreground":"#CB4B16"}},{"name":"Library variable","scope":"support.other.variable","settings":{}},{"name":"Invalid","scope":"invalid","settings":{"foreground":"#DC322F"}},{"name":"diff: header","scope":["meta.diff","meta.diff.header"],"settings":{"fontStyle":"italic","foreground":"#268BD2"}},{"name":"diff: deleted","scope":"markup.deleted","settings":{"fontStyle":"","foreground":"#DC322F"}},{"name":"diff: changed","scope":"markup.changed","settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"diff: inserted","scope":"markup.inserted","settings":{"foreground":"#859900"}},{"name":"Markup Quote","scope":"markup.quote","settings":{"foreground":"#859900"}},{"name":"Markup Lists","scope":"markup.list","settings":{"foreground":"#B58900"}},{"name":"Markup Styling","scope":["markup.bold","markup.italic"],"settings":{"foreground":"#D33682"}},{"name":"Markup: Strong","scope":"markup.bold","settings":{"fontStyle":"bold"}},{"name":"Markup: Emphasis","scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"name":"Markup Inline","scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#2AA198"}},{"name":"Markup Headings","scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#268BD2"}},{"name":"Markup Setext Header","scope":"markup.heading.setext","settings":{"fontStyle":"","foreground":"#268BD2"}}],"colors":{"focusBorder":"#2AA19899","selection.background":"#2AA19899","input.background":"#003847","input.foreground":"#93A1A1","input.placeholderForeground":"#93A1A1AA","inputOption.activeBorder":"#2AA19899","inputValidation.infoBorder":"#363b5f","inputValidation.infoBackground":"#052730","inputValidation.warningBackground":"#5d5938","inputValidation.warningBorder":"#9d8a5e","inputValidation.errorBackground":"#571b26","inputValidation.errorBorder":"#a92049","errorForeground":"#ffeaea","badge.background":"#047aa6","progressBar.background":"#047aa6","dropdown.background":"#00212B","dropdown.border":"#2AA19899","button.background":"#2AA19899","list.activeSelectionBackground":"#005A6F","quickInputList.focusBackground":"#005A6F","list.hoverBackground":"#004454AA","list.inactiveSelectionBackground":"#00445488","list.dropBackground":"#00445488","list.highlightForeground":"#1ebcc5","editor.background":"#002B36","editor.foreground":"#839496","editorWidget.background":"#00212B","editorCursor.foreground":"#D30102","editorWhitespace.foreground":"#93A1A180","editor.lineHighlightBackground":"#073642","editorLineNumber.activeForeground":"#949494","editor.selectionBackground":"#274642","minimap.selectionHighlight":"#274642","editorIndentGuide.background":"#93A1A180","editorIndentGuide.activeBackground":"#C3E1E180","editorHoverWidget.background":"#004052","editorMarkerNavigationError.background":"#AB395B","editorMarkerNavigationWarning.background":"#5B7E7A","editor.selectionHighlightBackground":"#005A6FAA","editor.wordHighlightBackground":"#004454AA","editor.wordHighlightStrongBackground":"#005A6FAA","editorBracketHighlight.foreground1":"#cdcdcdff","editorBracketHighlight.foreground2":"#b58900ff","editorBracketHighlight.foreground3":"#d33682ff","peekViewResult.background":"#00212B","peekViewEditor.background":"#10192c","peekViewTitle.background":"#00212B","peekView.border":"#2b2b4a","peekViewEditor.matchHighlightBackground":"#7744AA40","titleBar.activeBackground":"#002C39","editorGroup.border":"#00212B","editorGroup.dropBackground":"#2AA19844","editorGroupHeader.tabsBackground":"#004052","tab.activeForeground":"#d6dbdb","tab.activeBackground":"#002B37","tab.inactiveForeground":"#93A1A1","tab.inactiveBackground":"#004052","tab.border":"#003847","tab.lastPinnedBorder":"#2AA19844","activityBar.background":"#003847","panel.border":"#2b2b4a","sideBar.background":"#00212B","sideBarTitle.foreground":"#93A1A1","statusBar.foreground":"#93A1A1","statusBar.background":"#00212B","statusBar.debuggingBackground":"#00212B","statusBar.noFolderBackground":"#00212B","statusBarItem.remoteBackground":"#2AA19899","ports.iconRunningProcessForeground":"#369432","statusBarItem.prominentBackground":"#003847","statusBarItem.prominentHoverBackground":"#003847","debugToolBar.background":"#00212B","debugExceptionWidget.background":"#00212B","debugExceptionWidget.border":"#AB395B","pickerGroup.foreground":"#2AA19899","pickerGroup.border":"#2AA19899","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightYellow":"#657b83","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightWhite":"#fdf6e3"},"semanticHighlighting":true}'),Hu=JSON.parse('{"name":"GitHub Dark","colors":{"focusBorder":"#005cc5","foreground":"#d1d5da","descriptionForeground":"#959da5","errorForeground":"#f97583","textLink.foreground":"#79b8ff","textLink.activeForeground":"#c8e1ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","badge.foreground":"#c8e1ff","badge.background":"#044289","progressBar.background":"#0366d6","titleBar.activeForeground":"#e1e4e8","titleBar.activeBackground":"#24292e","titleBar.inactiveForeground":"#959da5","titleBar.inactiveBackground":"#1f2428","titleBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBar.background":"#24292e","activityBarBadge.foreground":"#fff","activityBarBadge.background":"#0366d6","activityBar.activeBorder":"#f9826c","activityBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBarTitle.foreground":"#e1e4e8","sideBarSectionHeader.foreground":"#e1e4e8","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","list.hoverForeground":"#e1e4e8","list.inactiveSelectionForeground":"#e1e4e8","list.activeSelectionForeground":"#e1e4e8","list.hoverBackground":"#282e34","list.inactiveSelectionBackground":"#282e34","list.activeSelectionBackground":"#39414a","list.inactiveFocusBackground":"#1d2d3e","list.focusBackground":"#044289","tree.indentGuidesStroke":"#2f363d","notificationCenterHeader.foreground":"#959da5","notificationCenterHeader.background":"#24292e","notifications.foreground":"#e1e4e8","notifications.background":"#2f363d","notifications.border":"#1b1f23","notificationsErrorIcon.foreground":"#ea4a5a","notificationsWarningIcon.foreground":"#ffab70","notificationsInfoIcon.foreground":"#79b8ff","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","statusBar.foreground":"#d1d5da","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.noFolderBackground":"#24292e","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteForeground":"#d1d5da","statusBarItem.remoteBackground":"#24292e","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGroup.border":"#1b1f23","tab.activeForeground":"#e1e4e8","tab.inactiveForeground":"#959da5","tab.inactiveBackground":"#1f2428","tab.activeBackground":"#24292e","tab.hoverBackground":"#24292e","tab.unfocusedHoverBackground":"#24292e","tab.border":"#1b1f23","tab.unfocusedActiveBorderTop":"#1b1f23","tab.activeBorder":"#24292e","tab.unfocusedActiveBorder":"#24292e","tab.activeBorderTop":"#f9826c","breadcrumb.foreground":"#959da5","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumbPicker.background":"#2b3036","editor.foreground":"#e1e4e8","editor.background":"#24292e","editorWidget.background":"#1f2428","editor.foldBackground":"#58606915","editor.lineHighlightBackground":"#2b3036","editorLineNumber.foreground":"#444d56","editorLineNumber.activeForeground":"#e1e4e8","editorIndentGuide.background":"#2f363d","editorIndentGuide.activeBackground":"#444d56","editorWhitespace.foreground":"#444d56","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorWarning.foreground":"#ffea7f","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.linkedEditingBackground":"#3392FF22","editor.inactiveSelectionBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorGutter.modifiedBackground":"#2188ff","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","scrollbar.shadow":"#0008","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","scrollbarSlider.activeBackground":"#6a737d88","editorOverviewRuler.border":"#1b1f23","panel.background":"#1f2428","panel.border":"#1b1f23","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","panelInput.border":"#2f363d","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiWhite":"#d1d5da","terminal.ansiBrightBlack":"#959da5","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiGreen":"#34d058","terminal.ansiBrightGreen":"#85e89d","terminal.ansiCyan":"#39c5cf","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiRed":"#ea4a5a","terminal.ansiBrightRed":"#f97583","terminal.ansiMagenta":"#b392f0","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiYellow":"#ffea7f","terminal.ansiBrightYellow":"#ffea7f","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.untrackedResourceForeground":"#34d058","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.submoduleResourceForeground":"#6a737d","debugToolBar.background":"#2b3036","editor.stackFrameHighlightBackground":"#C6902625","editor.focusedStackFrameHighlightBackground":"#2b6a3033","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.matchHighlightBackground":"#ffd33d33","peekViewEditor.background":"#1f242888","peekViewResult.background":"#1f2428","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f97583","foreground":"#24292e","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2f363d","background":"#79b8ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#b392f0","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#dbedff","fontStyle":"underline"}}]}'),Vu=JSON.parse('{"name":"GitHub Dark Dimmed","colors":{"focusBorder":"#316dca","foreground":"#adbac7","descriptionForeground":"#768390","errorForeground":"#e5534b","textLink.foreground":"#539bf5","textLink.activeForeground":"#539bf5","textBlockQuote.background":"#1c2128","textBlockQuote.border":"#444c56","textCodeBlock.background":"#636e7b66","textPreformat.foreground":"#768390","textSeparator.foreground":"#373e47","icon.foreground":"#768390","keybindingLabel.foreground":"#adbac7","button.background":"#347d39","button.foreground":"#ffffff","button.hoverBackground":"#46954a","button.secondaryBackground":"#3d444d","button.secondaryForeground":"#adbac7","button.secondaryHoverBackground":"#444c56","checkbox.background":"#2d333b","checkbox.border":"#444c56","dropdown.background":"#2d333b","dropdown.border":"#444c56","dropdown.foreground":"#adbac7","dropdown.listBackground":"#2d333b","input.background":"#22272e","input.border":"#444c56","input.foreground":"#adbac7","input.placeholderForeground":"#636e7b","badge.foreground":"#cdd9e5","badge.background":"#316dca","progressBar.background":"#316dca","titleBar.activeForeground":"#768390","titleBar.activeBackground":"#22272e","titleBar.inactiveForeground":"#768390","titleBar.inactiveBackground":"#1c2128","titleBar.border":"#444c56","activityBar.foreground":"#adbac7","activityBar.inactiveForeground":"#768390","activityBar.background":"#22272e","activityBarBadge.foreground":"#cdd9e5","activityBarBadge.background":"#316dca","activityBar.activeBorder":"#ec775c","activityBar.border":"#444c56","sideBar.foreground":"#adbac7","sideBar.background":"#1c2128","sideBar.border":"#444c56","sideBarTitle.foreground":"#adbac7","sideBarSectionHeader.foreground":"#adbac7","sideBarSectionHeader.background":"#1c2128","sideBarSectionHeader.border":"#444c56","list.hoverForeground":"#adbac7","list.inactiveSelectionForeground":"#adbac7","list.activeSelectionForeground":"#adbac7","list.hoverBackground":"#636e7b1a","list.inactiveSelectionBackground":"#636e7b66","list.activeSelectionBackground":"#636e7b66","list.focusForeground":"#adbac7","list.focusBackground":"#4184e426","list.inactiveFocusBackground":"#4184e426","list.highlightForeground":"#539bf5","tree.indentGuidesStroke":"#373e47","notificationCenterHeader.foreground":"#768390","notificationCenterHeader.background":"#2d333b","notifications.foreground":"#adbac7","notifications.background":"#2d333b","notifications.border":"#444c56","notificationsErrorIcon.foreground":"#e5534b","notificationsWarningIcon.foreground":"#c69026","notificationsInfoIcon.foreground":"#539bf5","pickerGroup.border":"#444c56","pickerGroup.foreground":"#768390","quickInput.background":"#2d333b","quickInput.foreground":"#adbac7","statusBar.foreground":"#768390","statusBar.background":"#22272e","statusBar.border":"#444c56","statusBar.focusBorder":"#316dca80","statusBar.noFolderBackground":"#22272e","statusBar.debuggingForeground":"#cdd9e5","statusBar.debuggingBackground":"#c93c37","statusBarItem.prominentBackground":"#636e7b66","statusBarItem.remoteForeground":"#adbac7","statusBarItem.remoteBackground":"#444c56","statusBarItem.hoverBackground":"#adbac714","statusBarItem.activeBackground":"#adbac71f","statusBarItem.focusBorder":"#316dca","editorGroupHeader.tabsBackground":"#1c2128","editorGroupHeader.tabsBorder":"#444c56","editorGroup.border":"#444c56","tab.activeForeground":"#adbac7","tab.inactiveForeground":"#768390","tab.inactiveBackground":"#1c2128","tab.activeBackground":"#22272e","tab.hoverBackground":"#22272e","tab.unfocusedHoverBackground":"#636e7b1a","tab.border":"#444c56","tab.unfocusedActiveBorderTop":"#444c56","tab.activeBorder":"#22272e","tab.unfocusedActiveBorder":"#22272e","tab.activeBorderTop":"#ec775c","breadcrumb.foreground":"#768390","breadcrumb.focusForeground":"#adbac7","breadcrumb.activeSelectionForeground":"#768390","breadcrumbPicker.background":"#2d333b","editor.foreground":"#adbac7","editor.background":"#22272e","editorWidget.background":"#2d333b","editor.foldBackground":"#636e7b1a","editor.lineHighlightBackground":"#636e7b1a","editorLineNumber.foreground":"#636e7b","editorLineNumber.activeForeground":"#adbac7","editorIndentGuide.background":"#adbac71f","editorIndentGuide.activeBackground":"#adbac73d","editorWhitespace.foreground":"#545d68","editorCursor.foreground":"#539bf5","editor.findMatchBackground":"#966600","editor.findMatchHighlightBackground":"#eac55f80","editor.linkedEditingBackground":"#539bf512","editor.selectionHighlightBackground":"#57ab5a40","editor.wordHighlightBackground":"#636e7b80","editor.wordHighlightBorder":"#636e7b99","editor.wordHighlightStrongBackground":"#636e7b4d","editor.wordHighlightStrongBorder":"#636e7b99","editorBracketMatch.background":"#57ab5a40","editorBracketMatch.border":"#57ab5a99","editorInlayHint.background":"#76839033","editorInlayHint.foreground":"#768390","editorInlayHint.typeBackground":"#76839033","editorInlayHint.typeForeground":"#768390","editorInlayHint.paramBackground":"#76839033","editorInlayHint.paramForeground":"#768390","editorGutter.modifiedBackground":"#ae7c1466","editorGutter.addedBackground":"#46954a66","editorGutter.deletedBackground":"#e5534b66","diffEditor.insertedLineBackground":"#347d3926","diffEditor.insertedTextBackground":"#57ab5a4d","diffEditor.removedLineBackground":"#c93c3726","diffEditor.removedTextBackground":"#f470674d","scrollbar.shadow":"#545d6833","scrollbarSlider.background":"#76839033","scrollbarSlider.hoverBackground":"#7683903d","scrollbarSlider.activeBackground":"#76839047","editorOverviewRuler.border":"#1c2128","minimapSlider.background":"#76839033","minimapSlider.hoverBackground":"#7683903d","minimapSlider.activeBackground":"#76839047","panel.background":"#1c2128","panel.border":"#444c56","panelTitle.activeBorder":"#ec775c","panelTitle.activeForeground":"#adbac7","panelTitle.inactiveForeground":"#768390","panelInput.border":"#444c56","debugIcon.breakpointForeground":"#e5534b","debugConsole.infoForeground":"#768390","debugConsole.warningForeground":"#c69026","debugConsole.errorForeground":"#ff938a","debugConsole.sourceForeground":"#daaa3f","debugConsoleInputIcon.foreground":"#b083f0","debugTokenExpression.name":"#6cb6ff","debugTokenExpression.value":"#96d0ff","debugTokenExpression.string":"#96d0ff","debugTokenExpression.boolean":"#6bc46d","debugTokenExpression.number":"#6bc46d","debugTokenExpression.error":"#ff938a","symbolIcon.arrayForeground":"#e0823d","symbolIcon.booleanForeground":"#539bf5","symbolIcon.classForeground":"#e0823d","symbolIcon.colorForeground":"#6cb6ff","symbolIcon.constructorForeground":"#dcbdfb","symbolIcon.enumeratorForeground":"#e0823d","symbolIcon.enumeratorMemberForeground":"#539bf5","symbolIcon.eventForeground":"#636e7b","symbolIcon.fieldForeground":"#e0823d","symbolIcon.fileForeground":"#c69026","symbolIcon.folderForeground":"#c69026","symbolIcon.functionForeground":"#b083f0","symbolIcon.interfaceForeground":"#e0823d","symbolIcon.keyForeground":"#539bf5","symbolIcon.keywordForeground":"#f47067","symbolIcon.methodForeground":"#b083f0","symbolIcon.moduleForeground":"#f47067","symbolIcon.namespaceForeground":"#f47067","symbolIcon.nullForeground":"#539bf5","symbolIcon.numberForeground":"#57ab5a","symbolIcon.objectForeground":"#e0823d","symbolIcon.operatorForeground":"#6cb6ff","symbolIcon.packageForeground":"#e0823d","symbolIcon.propertyForeground":"#e0823d","symbolIcon.referenceForeground":"#539bf5","symbolIcon.snippetForeground":"#539bf5","symbolIcon.stringForeground":"#6cb6ff","symbolIcon.structForeground":"#e0823d","symbolIcon.textForeground":"#6cb6ff","symbolIcon.typeParameterForeground":"#6cb6ff","symbolIcon.unitForeground":"#539bf5","symbolIcon.variableForeground":"#e0823d","symbolIcon.constantForeground":["#b4f1b4","#8ddb8c","#6bc46d","#57ab5a","#46954a","#347d39","#2b6a30","#245829","#1b4721","#113417"],"terminal.foreground":"#adbac7","terminal.ansiBlack":"#545d68","terminal.ansiRed":"#f47067","terminal.ansiGreen":"#57ab5a","terminal.ansiYellow":"#c69026","terminal.ansiBlue":"#539bf5","terminal.ansiMagenta":"#b083f0","terminal.ansiCyan":"#39c5cf","terminal.ansiWhite":"#909dab","terminal.ansiBrightBlack":"#636e7b","terminal.ansiBrightRed":"#ff938a","terminal.ansiBrightGreen":"#6bc46d","terminal.ansiBrightYellow":"#daaa3f","terminal.ansiBrightBlue":"#6cb6ff","terminal.ansiBrightMagenta":"#dcbdfb","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightWhite":"#cdd9e5","editorBracketHighlight.foreground1":"#6cb6ff","editorBracketHighlight.foreground2":"#6bc46d","editorBracketHighlight.foreground3":"#daaa3f","editorBracketHighlight.foreground4":"#ff938a","editorBracketHighlight.foreground5":"#fc8dc7","editorBracketHighlight.foreground6":"#dcbdfb","editorBracketHighlight.unexpectedBracket.foreground":"#768390","gitDecoration.addedResourceForeground":"#57ab5a","gitDecoration.modifiedResourceForeground":"#c69026","gitDecoration.deletedResourceForeground":"#e5534b","gitDecoration.untrackedResourceForeground":"#57ab5a","gitDecoration.ignoredResourceForeground":"#636e7b","gitDecoration.conflictingResourceForeground":"#cc6b2c","gitDecoration.submoduleResourceForeground":"#768390","debugToolBar.background":"#2d333b","editor.stackFrameHighlightBackground":"#ae7c1466","editor.focusedStackFrameHighlightBackground":"#46954a66","peekViewEditor.matchHighlightBackground":"#ae7c1466","peekViewResult.matchHighlightBackground":"#ae7c1466","peekViewEditor.background":"#636e7b1a","peekViewResult.background":"#22272e","settings.headerForeground":"#adbac7","settings.modifiedItemIndicator":"#ae7c1466","welcomePage.buttonBackground":"#373e47","welcomePage.buttonHoverBackground":"#444c56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#768390"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#f47067"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#6cb6ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#f69d50"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#adbac7"}},{"scope":"entity.name.function","settings":{"foreground":"#dcbdfb"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#8ddb8c"}},{"scope":"keyword","settings":{"foreground":"#f47067"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f47067"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#adbac7"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#96d0ff"}},{"scope":"support","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.property-name","settings":{"foreground":"#6cb6ff"}},{"scope":"variable","settings":{"foreground":"#f69d50"}},{"scope":"variable.other","settings":{"foreground":"#adbac7"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f47067","foreground":"#cdd9e5","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#ff938a"}},{"scope":"string variable","settings":{"foreground":"#6cb6ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#96d0ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#96d0ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#8ddb8c"}},{"scope":"support.constant","settings":{"foreground":"#6cb6ff"}},{"scope":"support.variable","settings":{"foreground":"#6cb6ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#8ddb8c"}},{"scope":"meta.module-reference","settings":{"foreground":"#6cb6ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#f69d50"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"markup.quote","settings":{"foreground":"#8ddb8c"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#adbac7"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#adbac7"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#6cb6ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#5d0f12","foreground":"#ff938a"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#f47067"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#113417","foreground":"#8ddb8c"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#682d0f","foreground":"#f69d50"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2d333b","background":"#6cb6ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#dcbdfb","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"meta.output","settings":{"foreground":"#6cb6ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#768390"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ff938a"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#96d0ff"}}]}'),Yu=JSON.parse('{"name":"Material-Theme-Default","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#546E7A"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#80CBC420","button.foreground":"#ffffff","dropdown.background":"#263238","input.background":"#303C41","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#263238","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#263238","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#263238","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#546E7A","sideBar.background":"#263238","sideBarSectionHeader.background":"#263238","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#263238","tab.border":"#263238","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#263238","tab.activeModifiedBorder":"#607a86","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#263238","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#37474F","editorLineNumber.activeForeground":"#607a86","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#80CBC420","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#263238","editorHoverWidget.background":"#263238","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#263238","panel.border":"#26323860","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#263238","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#263238","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#546E7A20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#263238","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#546E7A","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#263238","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#37474F","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#37474F","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#607a86","sideBar.border":"#26323860","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#26323860","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#37474F70","editorIndentGuide.activeBackground":"#37474F","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#26323860","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#546E7A","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#607a86","tab.activeBackground":"#263238","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#26323860","statusBar.foreground":"#546E7A","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#263238","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#263238","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#263238","titleBar.inactiveForeground":"#607a86","titleBar.border":"#26323860","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#263238","quickInput.foreground":"#607a86","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#263238","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#263238","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#80CBC420","peekViewEditor.matchHighlightBackground":"#80CBC420","peekViewResult.selectionBackground":"#607a8670","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#607a8690","breadcrumb.background":"#263238","breadcrumb.foreground":"#607a86","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#263238","menu.background":"#263238","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#263238","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#263238","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#263238","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#263238","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),Wu=JSON.parse('{"name":"Material-Theme-Darker","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#545454"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#61616150","button.foreground":"#ffffff","dropdown.background":"#212121","input.background":"#2B2B2B","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#212121","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#212121","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#212121","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#545454","sideBar.background":"#212121","sideBarSectionHeader.background":"#212121","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#212121","tab.border":"#212121","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#212121","tab.activeModifiedBorder":"#616161","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#212121","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#424242","editorLineNumber.activeForeground":"#616161","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#61616150","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#212121","editorHoverWidget.background":"#212121","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#212121","panel.border":"#21212160","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#212121","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#212121","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#54545420","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#212121","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#545454","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#212121","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#424242","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#424242","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#616161","sideBar.border":"#21212160","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#21212160","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#42424270","editorIndentGuide.activeBackground":"#424242","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#21212160","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#545454","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#616161","tab.activeBackground":"#212121","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#21212160","statusBar.foreground":"#616161","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#212121","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#212121","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#212121","titleBar.inactiveForeground":"#616161","titleBar.border":"#21212160","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#212121","quickInput.foreground":"#616161","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#212121","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#212121","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#61616150","peekViewEditor.matchHighlightBackground":"#61616150","peekViewResult.selectionBackground":"#61616170","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#61616190","breadcrumb.background":"#212121","breadcrumb.foreground":"#616161","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#212121","menu.background":"#212121","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#212121","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#212121","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#212121","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#212121","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),$u=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e","fontStyle":"italic"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}},{"name":"js/ts italic","scope":"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super","settings":{"fontStyle":"italic"}},{"name":"comment","scope":"comment.line.double-slash,comment.block.documentation","settings":{"fontStyle":"italic"}},{"name":"Python Keyword Control","scope":"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python","settings":{"fontStyle":"italic"}},{"name":"markup.italic.markdown","scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}}],"colors":{"activityBar.background":"#282c34","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#282c34","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#21252b","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#21252b","dropdown.border":"#21252b","editor.background":"#282c34","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#21252b","editorHoverWidget.background":"#21252b","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#21252b","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#21252b","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#21252b","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#282c34","settings.headerForeground":"#fff","sideBar.background":"#21252b","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#282c34","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#21252b","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#21252b","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#282c34","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#21252b","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#282c34","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#282c34","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#21252b","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),Ku=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}}],"colors":{"activityBar.background":"#23272e","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#23272e","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#1e2227","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#1e2227","dropdown.border":"#1e2227","editor.background":"#23272e","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#1e2227","editorHoverWidget.background":"#1e2227","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#1e2227","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#1e2227","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#1e2227","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#1e2227","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#23272e","settings.headerForeground":"#fff","sideBar.background":"#1e2227","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#23272e","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#1e2227","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#1e2227","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#23272e","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#1e2227","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#23272e","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#23272e","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#1e2227","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),Xu=[{token:ju.IDENTIFIER,foreground:"dcdcaa"},{token:ju.NUMBER,foreground:"b5cea8"},{token:ju.DATE,foreground:"b5cea8"},{token:ju.COLOR,foreground:"b5cea8"},{token:ju.PACKAGE,foreground:"808080"},{token:ju.PARSER,foreground:"c586c0"},{token:ju.LANGUAGE_STRUCT,foreground:"c586c0"},{token:ju.MULTIPLICITY,foreground:"2d796b"},{token:ju.GENERICS,foreground:"2d796b"},{token:ju.PROPERTY,foreground:"9cdcfe"},{token:ju.PARAMETER,foreground:"9cdcfe"},{token:ju.VARIABLE,foreground:"4fc1ff"},{token:ju.TYPE,foreground:"3dc9b0"},{token:`${ju.STRING}.escape`,foreground:"d7ba7d"}];var zu;!function(e){e.DEFAULT_DARK="default-dark",e.GITHUB_DARK="github-dark",e.GITHUB_DARK_DIMMED="github-dark-dimmed",e.SOLARIZED_DARK="solarized-dark",e.ONE_DARK_PRO="one-dark-pro",e.ONE_DARK_PRO_DARKER="one-dark-pro-darker",e.MATERIAL_DEFAULT="material-default",e.MATERIAL_DARKER="material-darker",e.BUILT_IN__VSCODE_LIGHT="vs",e.BUILT_IN__VSCODE_DARK="vs-dark",e.BUILT_IN__VSCODE_HC_BLACK="hc-black",e.BUILT_IN__VSCODE_HC_LIGHT="hc-light"}(zu||(zu={}));const qu={base:"vs-dark",inherit:!0,colors:{},rules:[...Xu,{token:"string.sql",foreground:"ce9178"},{token:"white.sql",foreground:"d4d4d4"},{token:"identifier.sql",foreground:"d4d4d4"},{token:"operator.sql",foreground:"d4d4d4"}]},Ju=Uu(Gu,zu.BUILT_IN__VSCODE_DARK,{},[]),Qu=Uu(Hu,zu.BUILT_IN__VSCODE_DARK,{},[]),Zu=Uu(Vu,zu.BUILT_IN__VSCODE_DARK,{},[]),eg=Uu(Yu,zu.BUILT_IN__VSCODE_DARK,{},[]),tg=Uu(Wu,zu.BUILT_IN__VSCODE_DARK,{},[]),ng=Uu($u,zu.BUILT_IN__VSCODE_DARK,{},[]),og=Uu(Ku,zu.BUILT_IN__VSCODE_DARK,{},[]);var rg,ag,sg,ig;!function(e){e.TEXT="plaintext",e.PURE="pure",e.JSON="json",e.JAVA="java",e.MARKDOWN="markdown",e.SQL="sql",e.XML="xml",e.YAML="yaml",e.GRAPHQL="graphql"}(rg||(rg={})),function(e){e.PROFILE="Profile",e.CLASS="Class",e.ENUMERATION="Enum",e.MEASURE="Measure",e.ASSOCIATION="Association",e.FUNCTION="function",e.MAPPING="Mapping",e.FLAT_DATA="FlatData",e.DATABASE="Database",e.SERVICE="Service",e.RUNTIME="Runtime",e.CONNECTION="Connection",e.FILE_GENERATION="FileGeneration",e.GENERATION_SPECIFICATION="GenerationSpecification",e.DATA_ELEMENT="Data",e.EXECUTION_ENVIRONMENT="ExecutionEnvironment"}(ag||(ag={})),function(e){e.JSON_MODEL_CONNECTION="JsonModelConnection",e.XML_MODEL_CONNECTION="XmlModelConnection",e.MODEL_CHAIN_CONNECTION="ModelChainConnection",e.RELATIONAL_DATABASE_CONNECTION="RelationalDatabaseConnection",e.FLAT_DATA_CONNECTION="FlatDataConnection"}(sg||(sg={})),function(e){e.PURE="Pure",e.CONNECTION="Connection",e.RUNTIME="Runtime",e.MAPPING="Mapping",e.SERVICE="Service",e.FLATDATA="FlatData",e.RELATIONAL="Relational",e.GENERATION_SPECIFICATION="GenerationSpecification",e.FILE_GENERATION_SPECIFICATION="FileGeneration",e.DATA="Data"}(ig||(ig={}));const cg={wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^$&*()\-=+[{\]}\\|;:'",.<>/?\s][^`~!@#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]*)/,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"},{open:"<<",close:">>"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}};class lg extends Du{static NAME=Pu.XO.F;constructor(){super(lg.NAME,Pu.rE)}getExtraApplicationSetups(){return[async e=>{var t,n;await(async e=>{const t=`Monospaced font '${Ke}' has not been loaded properly, code editor might not display properly`;await Promise.all([400,700].map((e=>document.fonts.load(`${e} 1em ${Ke}`)))).then((()=>{document.fonts.check(`1em ${Ke}`)?Mu.editor.remeasureFonts():e.logService.error(l.create(ue.APPLICATION_SETUP__FAILURE),t)})).catch((()=>e.logService.error(l.create(ue.APPLICATION_SETUP__FAILURE),t)));const n="legend.code-editor.override-default-keybinding";Mu.editor.registerCommand(n,((t,...n)=>{e.keyboardShortcutsService.dispatch(n[0])}));const o=[[Mu.KeyCode.F1,"F1"],[Mu.KeyCode.F8,"F8"],[Mu.KeyCode.F9,"F9"],[Mu.KeyMod.WinCtrl|Mu.KeyCode.KeyG,"Control+KeyG"],[Mu.KeyMod.WinCtrl|Mu.KeyCode.KeyB,"Control+KeyB"],[Mu.KeyMod.WinCtrl|Mu.KeyCode.KeyO,"Control+KeyO"],[Mu.KeyMod.WinCtrl|Mu.KeyCode.KeyD,"Control+KeyD"],[Mu.KeyMod.WinCtrl|Mu.KeyCode.KeyP,"Control+KeyP"],[Mu.KeyMod.Shift|Mu.KeyCode.F10,"Shift+F10"],[Mu.KeyMod.WinCtrl|Mu.KeyCode.F2,"Control+F2"],[Mu.KeyMod.WinCtrl|Mu.KeyCode.F12,"Control+F12"]];Mu.editor.addKeybindingRules(o.map((([e,t])=>({keybinding:e,command:n,commandArgs:t})))),Mu.editor.defineTheme(zu.DEFAULT_DARK,qu),Mu.editor.defineTheme(zu.SOLARIZED_DARK,Ju),Mu.editor.defineTheme(zu.GITHUB_DARK,Qu),Mu.editor.defineTheme(zu.GITHUB_DARK_DIMMED,Zu),Mu.editor.defineTheme(zu.MATERIAL_DEFAULT,eg),Mu.editor.defineTheme(zu.MATERIAL_DARKER,tg),Mu.editor.defineTheme(zu.ONE_DARK_PRO,ng),Mu.editor.defineTheme(zu.ONE_DARK_PRO_DARKER,og)})(e),Mu.languages.register({id:rg.PURE}),Mu.languages.setLanguageConfiguration(rg.PURE,cg),Mu.languages.setMonarchTokensProvider(rg.PURE,(n=t?.extraKeywords??[],{defaultToken:"invalid",tokenPostfix:".pure",keywords:[...n,"Schema","Table","Join","View","primaryKey","groupBy","mainTable","let","extends","true","false","projects",ag.CLASS,ag.ASSOCIATION,ag.ENUMERATION,ag.MEASURE,ag.PROFILE,ag.FUNCTION,ag.MAPPING,ag.RUNTIME,ag.CONNECTION,ag.FILE_GENERATION,ag.GENERATION_SPECIFICATION,ag.DATA_ELEMENT,sg.JSON_MODEL_CONNECTION,sg.MODEL_CHAIN_CONNECTION,sg.XML_MODEL_CONNECTION,"include","EnumerationMapping","Pure","AssociationMapping","XStore","AggregationAware",ag.SERVICE,ag.FLAT_DATA,ag.DATABASE,sg.FLAT_DATA_CONNECTION,sg.RELATIONAL_DATABASE_CONNECTION,"Relational"],operators:["=",">","<","!","~","?",":","==","<=",">=","&&","||","++","--","+","-","*","/","&","|","^","%","->","#{","}#","@","<<",">>"],languageStructs:["import","native"],identifier:/[a-zA-Z_$][\w$]*/,symbols:/[=><!~?:&|+\-*/^%#@]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,multiplicity:/\[(?:[a-zA-Z0-9]+(?:\.\.(?:[a-zA-Z0-9]+|\*|))?|\*)\]/,package:/(?:[\w_]+::)+/,generics:/(?:(?:<\w+>)|(?:<[^:.@^()]+[^-]>))/,date:/%-?\d+(?:-\d+(?:-\d+(?:T(?:\d+(?::\d+(?::\d+(?:.\d+)?)?)?)(?:[+-][0-9]{4})?)))/,time:/%\d+(?::\d+(?::\d+(?:.\d+)?)?)?/,tokenizer:{root:[{include:"@pure"},{include:"@date"},{include:"@color"},[/^\s*###[\w]+/,ju.PARSER],[/(@identifier)/,{cases:{"@languageStructs":ju.LANGUAGE_STRUCT,"@keywords":`${ju.KEYWORD}.$0`,"([a-zA-Z_$][\\w$]*)_((\\w+_(([a-zA-Z0-9]+)|(\\$[a-zA-Z0-9]+_[a-zA-Z0-9]+\\$)))__)*(\\w+_(([a-zA-Z0-9]+)|(\\$[a-zA-Z0-9]+_[a-zA-Z0-9]+\\$)))_":ju.TYPE,"@default":ju.IDENTIFIER}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":ju.OPERATOR,"@default":ju.IDENTIFIER}}],{include:"@number"},[/[;,.]/,ju.DELIMITER],[/'([^'\\]|\\.)*$/,`${ju.STRING}.invalid`],[/'/,ju.STRING,"@string"],{include:"@characters"}],pure:[[/(@package\*)/,[ju.PACKAGE]],[/(@package?)(@identifier)(@generics?)(\s*)(@multiplicity)/,[ju.PACKAGE,ju.TYPE,ju.GENERICS,ju.WHITESPACE,ju.MULTIPLICITY]],[/(@package)(@identifier)(@generics?)/,[ju.PACKAGE,ju.TYPE,ju.GENERICS]],[/([@^])(\s*)(@package?)(@identifier)(@generics?)(@multiplicity?)/,[`${ju.TYPE}.operator`,ju.WHITESPACE,ju.PACKAGE,ju.TYPE,ju.GENERICS,ju.MULTIPLICITY]],[/(\.\s*)(@identifier)/,[ju.DELIMITER,ju.PROPERTY]],[/(@identifier)(\s*=)/,[ju.PROPERTY,ju.OPERATOR]],[/(@identifier)(\.)(@identifier)/,[ju.TYPE,ju.OPERATOR,ju.PROPERTY]],[/(@identifier)(\s*:)/,[ju.PARAMETER,ju.OPERATOR]],[/(let)(\s+)(@identifier)(\s*=)/,[ju.KEYWORD,ju.WHITESPACE,ju.VARIABLE,ju.OPERATOR]],[/(\$@identifier)/,[`${ju.VARIABLE}.reference`]]],date:[[/(%latest)/,[`${ju.DATE}.latest`]],[/(@date)/,[ju.DATE]],[/(@time)/,[`${ju.DATE}.time`]]],color:[[/(#[0-9a-fA-F]{6})/,[ju.COLOR]]],number:[[/(@digits)[eE]([-+]?(@digits))?[fFdD]?/,`${ju.NUMBER}.float`],[/(@digits)\.(@digits)([eE][-+]?(@digits))?[fFdD]?/,`${ju.NUMBER}.float`],[/0[xX](@hexdigits)[Ll]?/,`${ju.NUMBER}.hex`],[/0(@octaldigits)[Ll]?/,`${ju.NUMBER}.octal`],[/0[bB](@binarydigits)[Ll]?/,`${ju.NUMBER}.binary`],[/(@digits)[fFdD]/,`${ju.NUMBER}.float`],[/(@digits)[lL]?/,ju.NUMBER]],whitespace:[[/[ \t\r\n]+/,ju.WHITESPACE],[/\/\*\*(?!\/)/,`${ju.COMMENT}.doc`,"@doc"],[/\/\*/,ju.COMMENT,"@comment"],[/\/\/.*$/,ju.COMMENT]],comment:[[/[^/*]+/,ju.COMMENT],[/\*\//,ju.COMMENT,"@pop"],[/[/*]/,ju.COMMENT]],doc:[[/[^/*]+/,`${ju.COMMENT}.doc`],[/\/\*/,`${ju.COMMENT}.doc.invalid`],[/\*\//,`${ju.COMMENT}.doc`,"@pop"],[/[/*]/,`${ju.COMMENT}.doc`]],string:[[/[^\\']+/,ju.STRING],[/@escapes/,`${ju.STRING}.escape`],[/\\./,`${ju.STRING}.escape.invalid`],[/'/,ju.STRING,"@pop"]],characters:[[/'[^\\']'/,ju.STRING],[/(')(@escapes)(')/,[ju.STRING,`${ju.STRING}.escape`,ju.STRING]],[/'/,`${ju.STRING}.invalid`]]}}))}]}}class dg extends Bo{static create(){const e=new dg(Vo.create());return e.withBasePlugins([new Mo,new lg]),e.withBasePresets([]),e}async configureApplication(e){return new Go(e)}async loadApplication(e){(0,b.H)((()=>{let e=document.getElementsByTagName(Po).length?document.getElementsByTagName(Po)[0]:void 0;return e||(e=document.createElement(Po),document.body.appendChild(e)),e.setAttribute("style","height: 100%; width: 100%; display: block"),e})()).render((0,E.jsx)(Ft,{store:e,children:(0,E.jsx)(Bu,{baseUrl:this.baseAddress})}))}}class ug{static getPresetCollection(){return[]}static getPluginCollection(){return[new lg,new h]}static run(e){dg.create().setup({baseAddress:e}).withPresets(ug.getPresetCollection()).withPlugins(ug.getPluginCollection()).start().catch((e=>{throw e}))}}const gg=new URL("./",window.location.href).pathname;ug.run(gg)}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdO={},e=[],a.O=(t,n,o,r)=>{if(!n){var s=1/0;for(d=0;d<e.length;d++){for(var[n,o,r]=e[d],i=!0,c=0;c<n.length;c++)(!1&r||s>=r)&&Object.keys(a.O).every((e=>a.O[e](n[c])))?n.splice(c--,1):(i=!1,r<s&&(s=r));if(i){e.splice(d--,1);var l=o();void 0!==l&&(t=l)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,o,r]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);a.r(r);var s={};t=t||[null,n({}),n([]),n(n)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach((t=>s[t]=()=>e[t]));return s.default=()=>e,a.d(r,s),r},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.e=()=>Promise.resolve(),a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="./",(()=>{var e={57:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[s,i,c]=n,l=0;if(s.some((t=>0!==e[t]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(c)var d=c(a)}for(t&&t(n);l<s.length;l++)r=s[l],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(d)},n=globalThis.webpackChunk_finos_legend_application_repl_deployment=globalThis.webpackChunk_finos_legend_application_repl_deployment||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var s=a.O(void 0,[121],(()=>a(9501)));s=a.O(s)})();
45
+ //# sourceMappingURL=index.875bbafc.js.map