@finos/legend-application-pure-ide-deployment 11.64.0 → 11.66.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e,t,n,i={355:(e,t,n)=>{const i=JSON.parse('{"rE":"10.0.39","XO":{"Z":"@finos/legend-logger-plugin-web-console"}}');var s,o=n(2964);class r{name;version;signature;uuid}class a{name;version;uuid=(0,o.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 r;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class c{name;version;signature;uuid;plugins=[]}class l{name;version;uuid=(0,o.A)();plugins=[];constructor(e,t,n){this.name=e,this.version=t,this.plugins=n}getName(){return this.name}getVersion(){return this.version}getSignature(){return`${this.getName()}@${this.getVersion()}`}getUUID(){return this.uuid}getPlugins(){return[...this.plugins]}getInfo(){const e=new c;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e.plugins=this.plugins.map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name))),e}configure(e){return this}install(e){this.plugins.forEach((t=>t.install(e)))}}class d{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"}(s||(s={}));class u{channel;name;timestamp=Date.now();static create(e){const t=new u;return t.name=e,t}}class p extends a{level=s.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=s.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=s.INFO&&this._info(e,...t)}warn(e,...t){this.level<=s.WARN&&this._warn(e,...t)}error(e,...t){this.level<=s.ERROR&&this._error(e,...t)}}class h{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:m,info:g,warn:f,error:_}=console;class E extends p{constructor(){super(i.XO.Z,i.rE)}_debug(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){f(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){_(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var N=n(1085),b=n(5873),v=n(4417),T=n(4365);const C=e=>e.constructor,y=()=>()=>{},S=e=>e.length?e[0]:void 0,A=e=>e.length?e[e.length-1]:void 0,I=e=>new Promise(((t,n)=>setTimeout((()=>{try{t(e())}catch(e){n(e)}}),0))),x=(e,t,n=((e,t)=>e===t))=>!e.find((e=>n(e,t)))&&(e.push(t),!0),w=(e,t,n,i=((e,t)=>e===t))=>{const s=e.findIndex((e=>i(e,t))),o=e.findIndex((e=>i(e,n)));return-1!==s&&-1!==o&&(e[s]=n,e[o]=t,!0)},O=(e,t,n=((e,t)=>e===t))=>{const i=e.findIndex((e=>n(e,t)));return-1!==i&&(e.splice(i,1),!0)};class R extends Error{uuid=(0,o.A)();constructor(e){super(),this.message=void 0===e||""===e?"(no error message)":e}get detail(){return this.message}}class k 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 P extends k{constructor(e){super("Illegal State Error [PLEASE NOTIFY DEVELOPER]",e)}}class L extends k{constructor(e,t){super("Unsupported Operation Error",e||t?`${e}${t?`\n${((e,t)=>{const n=(i={printFunctionName:!1,maxDepth:t?.deep?void 0:1},(0,v.A)(i,(e=>void 0!==e)));var i;return(0,T.GP)(e,n).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,(e=>["[Array]","[Function]"].includes(e)?e:"[Object]"))})(t)}`:""}`:void 0)}}function M(e){if(!(e instanceof Error))throw new P("Expected error to be thrown")}const D=e=>{try{return e()}catch{return}};class F extends k{constructor(e,t){super("Assertion Error",e,t)}}const B=e=>null!=e;function j(e,t=""){if(null==e)throw new F(t||"Value is nullable")}const V=(e,t="")=>(j(e,t),e),H=(e,t)=>e instanceof t,G=e=>t=>H(t,e);function U(e,t,n=""){if(!(e instanceof t))throw new F(n||`Value is expected to be of type '${t.name}'`)}const $=(e,t,n="")=>(U(e,t,n),e);function Y(e,t=""){if(""===V(e,t))throw new F(t||"Expected string value to be non-empty")}function W(e,t=""){return Y(e,t),e}function z(e,t=""){if(!e)throw new F(t||"Expected predicate to be truthy")}const K=e=>"string"==typeof e,X=e=>"number"==typeof e&&!isNaN(e),q=e=>"boolean"==typeof e,J=e=>"object"==typeof e&&null!==e;var Z=n(6651),Q=n(6046),ee=n(6451),te=n(8041);const ne=Z.v,ie="charset=utf-8";var se,oe,re;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(se||(se={})),function(e){e.APPLICATION_JSON="application/json",e.APPLICATION_XML="application/xml",e.APPLICATION_ZLIB="application/zlib",e.TEXT_PLAIN="text/plain",e.TEXT_CSV="text/csv",e.ALL="*/*"}(oe||(oe={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(re||(re={}));const ae={mode:"cors",credentials:"include",redirect:"follow"},ce=(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 le 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:i,url:s}=e,o=`Received response with status ${n} (${i}) for ${s}`;this.message=(t?(e=>{if(J(e))return K(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&K(t.message)?t.message:e})(t).substring(0,5e3):"")||o,this.payload=t}}const de=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 le(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===ne.NO_CONTENT)return Promise.resolve(void 0);const i=t.headers.Accept;switch(i){case oe.APPLICATION_JSON:return e.json();case oe.TEXT_PLAIN:return e.text();default:return Promise.reject(new le(e,`Can't process response for request with Content-Type '${i}'`))}},ue=(e,t)=>{const n={};return n.Accept=oe.APPLICATION_JSON,e!==re.GET&&(n[se.CONTENT_TYPE]=`${oe.APPLICATION_JSON};${ie}`),ce(n,t)};class pe{options={};baseUrl;constructor(e){this.baseUrl=e?.baseUrl,this.options={...ae,...e?.options??{}}}async get(e,t={},n,i,s,o){return this.request(re.GET,e,void 0,t,n,i,s,o)}async put(e,t={},n={},i,s,o,r){return this.request(re.PUT,e,t,n,i,s,o,r)}async post(e,t={},n={},i,s,o,r){return this.request(re.POST,e,t,n,i,s,o,r)}async delete(e,t={},n={},i,s,o,r){return this.request(re.DELETE,e,t,n,i,s,o,r)}async request(e,t,n,i,s,o,r,a){const c=((e,t,n)=>{if(!e&&!D((()=>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 i=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(B).forEach((t=>i.searchParams.append(e,t.toString()))):i.searchParams.append(e,t.toString()))})),i.toString()})(this.baseUrl,t,o??{});let l;if((K(n)||J(n))&&r?.enableCompression&&(z(e!==re.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,Q.Kc)(J(e)?JSON.stringify(e):e)]))(n),s=ce(s,{[se.CONTENT_TYPE]:`${oe.APPLICATION_ZLIB};${ie}`})),void 0!==n)if(K(n)||n instanceof Blob)l=n;else{if(!J(n))throw new F("Request body can only be either a 'string' or an 'object'");l=JSON.stringify(n)}const d={...this.options,...i,method:e,body:l,headers:ue(e,s)};return fetch(c,d).then((e=>0===e.status||e.status===ne.UNAUTHORIZED?a?.autoReAuthenticateUrl?(e=>new Promise((t=>{const n="AUTO_AUTHENTICATION_IFRAME",i=document.getElementById(n);i?.remove();const s=document.createElement("iframe");s.id=n,s.src=e,s.style.display="none",s.addEventListener("load",(()=>{s.remove(),t()})),document.body.appendChild(s)})))(a.autoReAuthenticateUrl).then((()=>fetch(c,d))).then((e=>de(e,d,a))):fetch(c,d).then((e=>de(e,d,a))):de(e,d,a))).catch((e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(c,d).then((e=>de(e,d,a))):Promise.reject(e)))}}const he=(e,t,n)=>{const i=new Blob([t],{type:n}),s=URL.createObjectURL(i),o=document.createElement("a");"string"==typeof o.download?(document.body.appendChild(o),o.download=e,o.href=s,o.click(),document.body.removeChild(o)):location.replace(s)};var me;!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.DEVELOPMENT_ISSUE="development.issue",e.APPLICATION_CONTEXT__ACCESS="application.context.access",e.APPLICATION_USAGE__INTERRUPT="application.usage.interrupt",e.APPLICATION_TELEMETRY_EVENT__FAILURE="application.telemetry-event.failure"}(me||(me={}));var ge=n(7542);class fe{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,v.A)(t,(e=>null!==e))):e);var t}}const _e=e=>(0,ge.Ie)((t=>void 0===t?ge._Z:(0,ge.lK)(e,t)),(t=>(0,ge.iu)(e,t))),Ee=e=>(0,ge.Ie)((()=>e),(()=>e)),Ne=(e,t)=>(0,ge.Ie)((t=>t?e(t):ge._Z),(e=>e?t(e):ge._Z)),be=e=>(0,ge.Ie)((t=>t?(0,ge.lK)(e,t):ge._Z),(t=>t?(0,ge.iu)(e,t):ge._Z)),ve=(e,t,n)=>Array.isArray(e)?e.map(t):n?.skipIfEmpty?ge._Z:[],Te=(e,t,n)=>Array.isArray(e)?e.length?e.map((e=>t(e))):n?.skipIfEmpty?ge._Z:[]:ge._Z,Ce=(e,t)=>(0,ge.Ie)((n=>Te(n,(t=>(0,ge.lK)(e,t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:t?.INTERNAL__forceReturnEmptyInTest})),(t=>ve(t,(t=>(0,ge.iu)(e,t)),{skipIfEmpty:!1}))),ye=(e,t,n)=>(0,ge.Ie)((t=>Te(t,(t=>e(t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:n?.INTERNAL__forceReturnEmptyInTest})),(e=>ve(e,(e=>t(e)),{skipIfEmpty:!1}))),Se=e=>ye((e=>e),(e=>e),e);var Ae=n(6696);class Ie{key;markdownText;title;text;url;related;static serialization=new fe((0,ge.PL)(Ie,{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=Ie.serialization.fromJson(e);return n.key=t,n}}const xe=e=>Object.entries(e).map((e=>({key:e[0],content:Ie.create(e[1],e[0])})));class we{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(u.create(me.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,Ae.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(u.create(me.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(u.create(me.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]=Ie.serialization.toJson(t)})),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach(((t,n)=>{e[n]=t.key})),e}}var Oe,Re,ke=n(3794);!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Oe||(Oe={}));class Pe{state;_message;_messageFormatter;constructor(){this.state=Oe.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Oe.INITIAL,this}inProgress(){return this.state=Oe.IN_PROGRESS,this}fail(){return this.state=Oe.FAILED,this}pass(){return this.state=Oe.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===Oe.INITIAL}get isInProgress(){return this.state===Oe.IN_PROGRESS}get hasFailed(){return this.state===Oe.FAILED}get hasSucceeded(){return this.state===Oe.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,ke.Gn)(new Pe,{state:ke.sH,_message:ke.sH,reset:ke.XI,inProgress:ke.XI,pass:ke.XI,fail:ke.XI,complete:ke.XI,setMessage:ke.XI,sync:ke.XI,isInInitialState:ke.EW,isInProgress:ke.EW,hasFailed:ke.EW,hasSucceeded:ke.EW,hasCompleted:ke.EW,message:ke.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"}(Re||(Re={}));class Le{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 Me{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,i){const s=new Le;return e&&s.setup(this.plugins.map((s=>{const o=s.createClientSpan(e);return{clientSpan:o,serverSpan:s.createServerSpan(o,t,n,i),plugin:s}}))),s}}const De=n(7102).A;var Fe,Be;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(Fe||(Fe={}));class je{currentMode=Fe.STANDARD;onSearchModeChange;constructor(e){(0,ke.Gn)(this,{currentMode:ke.sH,isAdvancedSearchActive:ke.EW,setCurrentMode:ke.XI}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==Fe.STANDARD}generateSearchText(e){switch(this.currentMode){case Fe.INCLUDE:return`'"${e}"`;case Fe.EXACT:return`="${e}"`;case Fe.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(Be||(Be={}));class Ve{uuid=(0,o.A)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,ke.Gn)(this,{isOpen:ke.sH,setIsOpen:ke.XI}),this.documentationKey=e.key,this.title=W(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class He{uuid=(0,o.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 Ge=e=>Boolean(e.title&&(e.url??e.text??e.markdownText));class Ue{applicationStore;panelRenderingKey=(0,o.A)();isHidden=!0;isOpen=!1;isPanelMaximized=!1;selectedTab=Be.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=Pe.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,ke.Gn)(this,{isHidden:ke.sH,isOpen:ke.sH,isPanelMaximized:ke.sH,panelRenderingKey:ke.sH,isOverSearchLimit:ke.sH,selectedTab:ke.sH,searchText:ke.sH,searchResults:ke.sH,currentDocumentationEntry:ke.sH,showSearchConfigurationMenu:ke.sH,currentContextualDocumentationEntry:ke.EW,setIsHidden:ke.XI,setIsOpen:ke.XI,setIsPanelMaximized:ke.XI,setSelectedTab:ke.XI,setSearchText:ke.XI,resetSearch:ke.XI,search:ke.XI,openDocumentationEntry:ke.XI,refreshPanelRendering:ke.XI,setShowSearchConfigurationMenu:ke.XI}),this.applicationStore=e,this.searchEngine=new De(this.applicationStore.documentationService.getAllDocEntries().filter(Ge),{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 je((()=>{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 He(e,t,(t.related??[]).map((e=>this.applicationStore.documentationService.getDocEntry(e))).filter(B).filter(Ge).map((e=>new Ve(e)))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new Ve(t),this.currentDocumentationEntry.setIsOpen(!0),this.resetSearch())}openDocumentationEntryLink(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&((e=>Ge(e)&&Boolean(e.text??e.markdownText))(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,o.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 Ve(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 $e{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach((n=>n.notify(e,t)))}}class Ye{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(me.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(me.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(me.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(me.APPLICATION_USAGE__INTERRUPT,{})}}class We{applicationStore;contextStack=[];constructor(e){(0,ke.Gn)(this,{contextStack:ke.sH,currentContext:ke.EW,push:ke.XI,pop:ke.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 P(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[])).includes(e.key)&&Ye.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 ze{applicationStore;commandRegistry=new Map;constructor(e){(0,ke.Gn)(this,{commandRegistry:ke.sH,registerCommand:ke.XI,deregisterCommand:ke.XI}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(u.create(me.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 Ke{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,ke.Gn)(this,{keyMap:ke.sH,commandKeyMap:ke.sH,isHotkeysBlocked:ke.sH,addHotkey:ke.XI,blockGlobalHotkeys:ke.XI,unblockGlobalHotkeys:ke.XI}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedCommandConfigEntries?.()??[])).forEach((e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(B);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 Xe=n(4594),qe=n(2338),Je=n(4462),Ze=n(720),Qe=n(5974),et=n(382);const tt="Roboto Mono",nt="yyyy-MM-dd'T'HH:mm:ss";var it;!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=""}(it||(it={}));const st=(e,t)=>`[${e};${t}H`;class ot{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,ke.Gn)(this,{searchText:ke.sH,useRegex:ke.sH,matchWholeWord:ke.sH,matchCaseSensitive:ke.sH,resultCount:ke.sH,currentResultIndex:ke.sH})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class rt{applicationStore;searchConfig=new ot;constructor(e){(0,ke.Gn)(this,{setSearchText:ke.XI,setSearchRegex:ke.XI,setSearchWholeWord:ke.XI,setSearchCaseSensitive:ke.XI,setSearchResultCount:ke.XI,setSearchCurrentResultIndex:ke.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 at extends rt{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,ke.Gn)(this,{preserveLog:ke.sH,setPreserveLog:ke.XI})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var ct=n(9481),lt=n(4404);n(1880);const dt=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,ut=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],pt=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,(e=>ut.includes(e.toLowerCase())?e.toLowerCase():dt(e))).replace(/^(?:\w+)\b/u,(e=>dt(e))).replace(/\b(?:\w+)$/u,(e=>dt(e))),ht=e=>{try{return((e,t=2)=>{try{return((e,t,n)=>{const i=(0,lt.As)(e,void 0,n);return j(i,"Can't stringify lossless JSON value"),i})((0,lt.qg)(e),0,t)}catch{return e}})(e,0)}catch{return e.replace(/\n\s*/g,"")}};var mt;function gt(e){return e.trim().split(" ").map((e=>{const t=e.split(/\b\+/),n=V(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"}(mt||(mt={}));const ft=(e,t)=>t.key===e.code&&t.modifiers.every((t=>e.getModifierState(t)))&&![mt.SHIFT,mt.META,mt.ALT,mt.CONTROL].find((n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n))),_t=(e,t)=>ft(e,V(gt(t)[0]));var Et=n(2207),Nt=n(7063),bt=n(2285),vt=n(5844);const Tt="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/utils/LegendStyleProvider.tsx",Ct=(0,Nt.A)({transitions:{create:()=>"none"}}),yt=e=>{const{children:t}=e;return(0,Et.jsxDEV)(bt.A,{injectFirst:!0,children:(0,Et.jsxDEV)(vt.A,{theme:Ct,children:t},void 0,!1,{fileName:Tt,lineNumber:42,columnNumber:7},void 0)},void 0,!1,{fileName:Tt,lineNumber:37,columnNumber:11},void 0)};var St=n(6112),At=n(3432),It=n(5150),xt=n(3737),wt=n(692),Ot=n(3416),Rt=n(4357);const kt=(e,t)=>{const n=e=>{const{children:n,className:i}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)(t,i),"data-testid":e["data-testid"],children:n},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/utils/ComponentCreatorUtils.tsx",lineNumber:32,columnNumber:13},void 0)};return n.displayName=e,n},Pt="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/dialog/Modal.tsx",Lt=e=>{const{children:t,darkMode:n,className:i}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("modal",{"modal--dark":n},i),children:t},void 0,!1,{fileName:Pt,lineNumber:27,columnNumber:11},void 0)},Mt=e=>{const{title:t,icon:n,className:i}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("modal__title",i),children:[n&&(0,Et.jsxDEV)("div",{className:"modal__title__icon",children:n},void 0,!1,{fileName:Pt,lineNumber:42,columnNumber:15},void 0),(0,Et.jsxDEV)("div",{className:"modal__title__label",children:pt(t)},void 0,!1,{fileName:Pt,lineNumber:43,columnNumber:7},void 0)]},void 0,!0,{fileName:Pt,lineNumber:40,columnNumber:11},void 0)},Dt=e=>{const{title:t,children:n,className:i}=e;return!n&&t?(0,Et.jsxDEV)("div",{className:(0,Rt.$)("modal__header",i),children:(0,Et.jsxDEV)(Mt,{title:t},void 0,!1,{fileName:Pt,lineNumber:58,columnNumber:9},void 0)},void 0,!1,{fileName:Pt,lineNumber:56,columnNumber:13},void 0):(0,Et.jsxDEV)("div",{className:(0,Rt.$)("modal__header",i),children:n},void 0,!1,{fileName:Pt,lineNumber:62,columnNumber:9},void 0)},Ft=(kt("ModalHeaderActions","modal__header__actions"),kt("ModalBody","modal__body")),Bt=kt("ModalFooter","modal__footer");var jt,Vt;kt("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION"}(jt||(jt={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(Vt||(Vt={}));class Ht{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,ke.Gn)(this,{blockingAlertInfo:ke.sH,actionAlertInfo:ke.sH,setBlockingAlert:ke.XI,setActionAlertInfo:ke.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 Gt=n(4041);const Ut=(0,Gt.createContext)(void 0),$t=()=>V((0,Gt.useContext)(Ut),"Can't find application store in context"),Yt=({children:e,store:t})=>{const n=(0,It.iz)((()=>t));return(0,Et.jsxDEV)(Ut.Provider,{value:n,children:e},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/ApplicationStoreProvider.tsx",lineNumber:52,columnNumber:11},void 0)},Wt="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/ActionAlert.tsx",zt=e=>{switch(e){case Vt.PROCEED_WITH_CAUTION:return"btn--caution";case Vt.PROCEED:case Vt.STANDARD:default:return"btn--dark"}},Kt=(0,It.PA)((e=>{const{info:t}=e,n=$t(),{title:i,message:s,prompt:o,type:r,onClose:a,onEnter:c,actions:l}=t,d=()=>{a?.(),n.alertService.setActionAlertInfo(void 0)};return(0,Et.jsxDEV)(Ot.A,{open:Boolean(n.alertService.actionAlertInfo),onClose:y,TransitionProps:{onEnter:()=>c?.()},children:(0,Et.jsxDEV)("form",{onSubmit:e=>{e.preventDefault(),l.find((e=>e.default))?.handler?.(),d()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(r??jt.STANDARD).toLowerCase()}`,children:[i&&(0,Et.jsxDEV)(Dt,{title:i},void 0,!1,{fileName:Wt,lineNumber:69,columnNumber:18},void 0),(0,Et.jsxDEV)(Ft,{children:[(0,Et.jsxDEV)("div",{className:"blocking-alert__summary-text",children:s},void 0,!1,{fileName:Wt,lineNumber:71,columnNumber:11},void 0),(0,Et.jsxDEV)("div",{className:"blocking-alert__prompt-text",children:o},void 0,!1,{fileName:Wt,lineNumber:72,columnNumber:11},void 0)]},void 0,!0,{fileName:Wt,lineNumber:70,columnNumber:9},void 0),(0,Et.jsxDEV)(Bt,{children:[l.map(((e,t)=>(0,Et.jsxDEV)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${zt(e.type??Vt.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),d()},autoFocus:Boolean(e.default),children:e.label},t,!1,{fileName:Wt,lineNumber:86,columnNumber:21},void 0))),!l.length&&(0,Et.jsxDEV)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:d,children:"Cancel"},void 0,!1,{fileName:Wt,lineNumber:102,columnNumber:32},void 0)]},void 0,!0,{fileName:Wt,lineNumber:74,columnNumber:9},void 0)]},void 0,!0,{fileName:Wt,lineNumber:60,columnNumber:7},void 0)},void 0,!1,{fileName:Wt,lineNumber:52,columnNumber:11},void 0)})),Xt=(0,It.PA)((()=>{const e=$t().alertService.actionAlertInfo;return e?(0,Et.jsxDEV)(Kt,{info:e},void 0,!1,{fileName:Wt,lineNumber:124,columnNumber:9},void 0):null})),qt=e=>{const{isLoading:t,className:n}=e,i=(0,Gt.useRef)(null);return(0,Gt.useEffect)((()=>{i.current&&(t?i.current.parentElement?.classList.add("panel-loading-indicator__container"):i.current.parentElement?.classList.remove("panel-loading-indicator__container"))}),[t]),(0,Et.jsxDEV)("div",{ref:i,className:(0,Rt.$)(n,"panel-loading-indicator"+(t?"":"--disabled"))},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/PanelLoadingIndicator.tsx",lineNumber:41,columnNumber:11},void 0)},Jt="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/BlockingAlert.tsx",Zt=(0,It.PA)((()=>{const e=$t(),t=e.alertService.blockingAlertInfo;return t?(0,Et.jsxDEV)(Ot.A,{open:Boolean(t),onClose:y,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,Et.jsxDEV)(Lt,{darkMode:!e.layoutService.TEMPORARY__isLightColorThemeEnabled,className:"blocking-alert",children:[(0,Et.jsxDEV)(qt,{isLoading:Boolean(t.showLoading)},void 0,!1,{fileName:Jt,lineNumber:54,columnNumber:9},void 0),(0,Et.jsxDEV)(Ft,{children:[(0,Et.jsxDEV)("div",{className:"blocking-alert__message",children:t.message},void 0,!1,{fileName:Jt,lineNumber:56,columnNumber:11},void 0),t.prompt&&(0,Et.jsxDEV)("div",{className:"blocking-alert__message__prompt",children:t.prompt},void 0,!1,{fileName:Jt,lineNumber:57,columnNumber:28},void 0)]},void 0,!0,{fileName:Jt,lineNumber:55,columnNumber:9},void 0)]},void 0,!0,{fileName:Jt,lineNumber:48,columnNumber:7},void 0)},void 0,!1,{fileName:Jt,lineNumber:39,columnNumber:11},void 0):null}));var Qt=n(9787),en=n(5314),tn=n(4269),nn=n(9896),sn=n(431),on=n(6750),rn=n(7997),an=n(6819),cn=n(5250),ln=n(3318);const dn=Qt.nvT,un=en.joZ,pn=en.OAW,hn=en.RCA,mn=en.E1y,gn=tn.LkA,fn=tn.EiC,_n=tn.RQJ,En=tn.MYw,Nn=tn.ZCl,bn=tn.suX,vn=tn.Xv9,Tn=tn.xoW,Cn=tn.z6b,yn=tn.kkD,Sn=nn.QRP,An=nn.WnZ,In=nn.q$s,xn=nn.UHp,wn=nn.$15,On=nn.qt6,Rn=nn.UJh,kn=nn.HLi,Pn=nn.JpF,Ln=nn.r$n,Mn=sn.GaR,Dn=on.OKX,Fn=on.hO$,Bn=on.JhU,jn=on.QCr,Vn=on._Hm,Hn=on.OiG,Gn=on.Pcn,Un=on.z44,$n=on.$qz,Yn=on.Hcz,Wn=on.Kni,zn=on.gZZ,Kn=on.__w,Xn=on.Wsx,qn=on.A4L,Jn=on.gSK,Zn=on.QyA,Qn=on.E4Q,ei=on.KSO,ti=on.svy,ni=on.UnJ,ii=on.qbC,si=on.A7C,oi=on.BS8,ri=on.KRc,ai=on.q7G,ci=on._AH,li=on.Ph,di=on.$TP,ui=on.uCC,pi=on.iuJ,hi=on.g1V,mi=on.M1W,gi=on.TNq,fi=on.Rqy,_i=on.Su4,Ei=on.zU_,Ni=on.t69,bi=on.kxO,vi=on.vq8,Ti=on.GfC,Ci=on.SoL,yi=on.Wx3,Si=on.nBS,Ai=rn.f7n,Ii=rn.Lun,xi=an.oss,wi=an.Br,Oi=an.YZI,Ri=an.D9N,ki=cn.BMQ,Pi=ln.est,Li=ln._cq,Mi=ln.PfQ,Di=ln._wx,Fi=ln.lIm;var Bi=n(5473),ji=n(8960);const Vi=6e3;var Hi;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(Hi||(Hi={}));class Gi{severity;message;actions;autoHideDuration;constructor(e,t,n,i){this.severity=e,this.message=t,this.actions=n,this.autoHideDuration=i}}class Ui{notification;constructor(){(0,ke.Gn)(this,{notification:ke.sH,setNotification:ke.XI,notify:ke.XI,notifySuccess:ke.XI,notifyWarning:ke.XI,notifyIllegalState:ke.XI,notifyError:ke.XI})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new Gi(Hi.INFO,e,t??[],null===n?void 0:n??Vi))}notifySuccess(e,t,n){this.setNotification(new Gi(Hi.SUCCESS,e,t??[],null===n?void 0:n??Vi))}notifyWarning(e,t,n){this.setNotification(new Gi(Hi.WARNING,e instanceof Error?e.message:e,t??[],null===n?void 0:n??Vi))}notifyError(e,t){let n;e instanceof R?n=e.detail:e instanceof Error?n=e.message:(z(K(e),"Can't display error"),n=e),n&&this.setNotification(new Gi(Hi.ERROR,n,t??[],void 0))}notifyIllegalState(e,t,n){this.setNotification(new Gi(Hi.ILEGAL_STATE,K(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t??[],null===n?void 0:n??Vi))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return M(e),this.notifyIllegalState(e.message),t}}}const $i="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/NotificationManager.tsx",Yi=(0,It.PA)((()=>{const e=$t(),t=e.notificationService.notification,n=Boolean(t),i=t?.message??"",s=t?.severity??Hi.INFO,[o,r]=(0,Gt.useState)(!1);let a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,Et.jsxDEV)(Kn,{},void 0,!1,{fileName:$i,lineNumber:48,columnNumber:7},void 0)},void 0,!1,{fileName:$i,lineNumber:46,columnNumber:27},void 0);switch(s){case Hi.ILEGAL_STATE:a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,Et.jsxDEV)(ri,{},void 0,!1,{fileName:$i,lineNumber:55,columnNumber:11},void 0)},void 0,!1,{fileName:$i,lineNumber:53,columnNumber:27},void 0);break;case Hi.ERROR:a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,Et.jsxDEV)(Vn,{},void 0,!1,{fileName:$i,lineNumber:62,columnNumber:11},void 0)},void 0,!1,{fileName:$i,lineNumber:60,columnNumber:27},void 0);break;case Hi.WARNING:a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,Et.jsxDEV)(oi,{},void 0,!1,{fileName:$i,lineNumber:69,columnNumber:11},void 0)},void 0,!1,{fileName:$i,lineNumber:67,columnNumber:27},void 0);break;case Hi.SUCCESS:a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,Et.jsxDEV)(si,{},void 0,!1,{fileName:$i,lineNumber:76,columnNumber:11},void 0)},void 0,!1,{fileName:$i,lineNumber:74,columnNumber:27},void 0)}const c=()=>{e.notificationService.setNotification(void 0),r(!1)},l=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(i)));return(0,Et.jsxDEV)(Bi.A,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:Vi,onClose:(e,t)=>{"timeout"===t&&c()},children:(0,Et.jsxDEV)(ji.A,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,Et.jsxDEV)("div",{className:"notification__message__content",children:[a,(0,Et.jsxDEV)("div",{className:(0,Rt.$)("notification__message__content__text",{"notification__message__content__text--expanded":o}),onClick:l,title:"Click to Copy",children:i},void 0,!1,{fileName:$i,lineNumber:140,columnNumber:13},void 0)]},void 0,!0,{fileName:$i,lineNumber:137,columnNumber:18},void 0),action:[(0,Et.jsxDEV)("button",{className:"notification__action",onClick:()=>r(!o),tabIndex:-1,title:o?"Collapse":"Expand",children:o?(0,Et.jsxDEV)(xi,{},void 0,!1,{fileName:$i,lineNumber:159,columnNumber:26},void 0):(0,Et.jsxDEV)(wi,{},void 0,!1,{fileName:$i,lineNumber:159,columnNumber:48},void 0)},"expand",!1,{fileName:$i,lineNumber:151,columnNumber:18},void 0),(0,Et.jsxDEV)("button",{className:"notification__action",onClick:c,tabIndex:-1,title:"Dismiss",children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:$i,lineNumber:168,columnNumber:13},void 0)},"close",!1,{fileName:$i,lineNumber:160,columnNumber:21},void 0)]},void 0,!1,{fileName:$i,lineNumber:131,columnNumber:7},void 0)},"string"==typeof i||"number"==typeof i?i:"",!1,{fileName:$i,lineNumber:104,columnNumber:11},void 0)}));var Wi=n(1218);const zi=e=>{const{children:t,classes:n,...i}=e;return(0,Et.jsxDEV)(Wi.A,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...i,children:e.children},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/menu/BaseMenu.tsx",lineNumber:22,columnNumber:11},void 0)},Ki="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/menu/ContextMenu.tsx",Xi=e=>{const{className:t,children:n,menuProps:i,content:s,disabled:o,onClose:r,onOpen:a}=e,c=(0,Gt.useRef)(null),[l,d]=(0,Gt.useState)(!1),[u,p]=(0,Gt.useState)(),[h,m]=(0,Gt.useState)(0),[g,f]=(0,Gt.useState)(0),_=()=>{p(void 0),d(!1),f(0),m(0)},E=e=>{e.stopPropagation(),e.preventDefault(),_(),r?.()},N=e=>{if(e.stopPropagation(),e.preventDefault(),!o&&(a?.(),c.current)){const t=c.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),i=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:s,clientY:o,target:a}=e,l=a;if(u!==l&&!(document.elementsFromPoint(s,o).some((e=>e===l))&&n<=s&&s<=n+t.width&&i<=o&&o<=i+t.height))return _(),void r?.();p(l),d(!0),f(o),m(s)}};return(0,Et.jsxDEV)("div",{ref:c,className:t,onContextMenu:N,children:[n,(0,Et.jsxDEV)(zi,{open:l,anchorPosition:{left:h,top:g},onClose:E,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:N},disableRestoreFocus:!0,transitionDuration:0,onClick:E,...i,children:l&&s},`${h}, ${g}`,!1,{fileName:Ki,lineNumber:103,columnNumber:7},void 0)]},void 0,!0,{fileName:Ki,lineNumber:96,columnNumber:11},void 0)},qi="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/menu/MenuContent.tsx",Ji=(0,Gt.forwardRef)((function(e,t){const{className:n,children:i,...s}=e;return(0,Et.jsxDEV)("div",{ref:t,className:(0,Rt.$)("menu",n),...s,children:i},void 0,!1,{fileName:qi,lineNumber:26,columnNumber:11},this)})),Zi=e=>{const{className:t,onClick:n,title:i,disabled:s,children:o,...r}=e;return(0,Et.jsxDEV)("button",{className:(0,Rt.$)("menu__item",t),disabled:Boolean(s),title:i,onClick:n,...r,children:o},void 0,!1,{fileName:qi,lineNumber:42,columnNumber:11},void 0)},Qi=kt("MenuContentDivider","menu__divider");kt("MenuContentItemIcon","menu__item__icon"),kt("MenuContentItemLabel","menu__item__label");var es=n(2973),ts=n(3310),ns=n(3927);const is="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/markdown/MarkdownTextViewer.tsx",ss=e=>((0,Gt.useEffect)((()=>{ns.N.initialize({startOnLoad:!0,theme:"dark"}),ns.N.contentLoaded()}),[e.value]),(0,Et.jsxDEV)(es.o,{className:(0,Rt.$)("markdown-content",e.className),remarkPlugins:[ts.A],components:e.components??{code:e=>{const{children:t,className:n,node:i,...s}=e,o=/language-(?<language>\w+)/.exec(n??"");return o?.groups?.language?(0,Et.jsxDEV)("code",{...s,className:(0,Rt.$)(o.groups.language),children:t},void 0,!1,{fileName:is,lineNumber:46,columnNumber:47},void 0):(0,Et.jsxDEV)("code",{...s,className:n,children:t},void 0,!1,{fileName:is,lineNumber:50,columnNumber:18},void 0)}},children:e.value.value},void 0,!1,{fileName:is,lineNumber:35,columnNumber:11},void 0));var os=n(5143);const rs="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/BlankPanelContent.tsx",as=e=>{const{children:t}=e,{ref:n,width:i,height:s}=(0,os.u)({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[o,r]=(0,Gt.useState)(!1),{ref:a,width:c,height:l}=(0,os.u)({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,Gt.useEffect)((()=>{r((c??0)>(i??0)+40&&(l??0)>(s??0)+40)}),[c,l,i,s]),(0,Et.jsxDEV)("div",{ref:a,className:"panel__content__blank",children:(0,Et.jsxDEV)("div",{ref:n,className:(0,Rt.$)("panel__content__blank__content",{"panel__content__blank__content--hide":!o}),children:t},void 0,!1,{fileName:rs,lineNumber:62,columnNumber:7},void 0)},void 0,!1,{fileName:rs,lineNumber:60,columnNumber:11},void 0)};var cs=n(1122),ls=n(7143),ds=n(4904);const us="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/radio-group/BaseRadioGroup.tsx",ps=e=>{const{children:t,options:n,size:i,className:s,...o}=e,r=((e,t)=>{const n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n})(n,i);return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("mui-radio-group",s),children:[r.map(((e,t)=>(0,Et.jsxDEV)("div",{children:(0,Et.jsxDEV)(cs.A,{className:"mui-radio-group__group",...o,children:e.map((e=>(0,Et.jsxDEV)(ls.A,{className:"mui-radio-group__group__column",style:{width:100/i+"%"},value:e,control:(0,Et.jsxDEV)(ds.A,{className:"mui-radio-group__group__item__radio-btn"},void 0,!1,{fileName:us,lineNumber:62,columnNumber:26},void 0),label:(0,Et.jsxDEV)("div",{className:"mui-radio-group__group__item__label",children:e},void 0,!1,{fileName:us,lineNumber:65,columnNumber:24},void 0)},e,!1,{fileName:us,lineNumber:56,columnNumber:31},void 0)))},void 0,!1,{fileName:us,lineNumber:55,columnNumber:11},void 0)},t,!1,{fileName:us,lineNumber:52,columnNumber:55},void 0))),t]},void 0,!0,{fileName:us,lineNumber:50,columnNumber:11},void 0)};var hs=n(7669);const ms=e=>{const{children:t,...n}=e;return(0,Et.jsxDEV)(hs.Ay,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/popover/BasePopover.tsx",lineNumber:25,columnNumber:11},void 0)};var gs,fs=n(9463),_s=n(5318),Es=n(5461);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(gs||(gs={}));const Ns="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/VirtualAssistant.tsx",bs=(0,It.PA)((e=>{const{entry:t}=e,n=$t(),i=()=>{t.isOpen||Ye.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey}),t.setIsOpen(!t.isOpen)},s=n.guardUnhandledError((()=>n.clipboardService.copyTextToClipboard(t.documentationKey)));return(0,Et.jsxDEV)(Xi,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,Et.jsxDEV)(Ji,{children:(0,Et.jsxDEV)(Zi,{onClick:s,children:"Copy Documentation Key"},void 0,!1,{fileName:Ns,lineNumber:111,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:109,columnNumber:18},void 0),children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,Et.jsxDEV)("button",{className:(0,Rt.$)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:i,children:t.isOpen?(0,Et.jsxDEV)(xi,{},void 0,!1,{fileName:Ns,lineNumber:128,columnNumber:30},void 0):(0,Et.jsxDEV)(Oi,{},void 0,!1,{fileName:Ns,lineNumber:128,columnNumber:52},void 0)},void 0,!1,{fileName:Ns,lineNumber:119,columnNumber:13},void 0),t.url?(0,Et.jsxDEV)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{Ye.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey})},title:"Click to see external documentation",children:t.title},void 0,!1,{fileName:Ns,lineNumber:130,columnNumber:27},void 0):(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry__title",onClick:i,children:t.title},void 0,!1,{fileName:Ns,lineNumber:141,columnNumber:18},void 0)]},void 0,!0,{fileName:Ns,lineNumber:118,columnNumber:11},void 0),t.isOpen&&t.content&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry__content",children:K(t.content)?(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content},void 0,!1,{fileName:Ns,lineNumber:152,columnNumber:43},void 0):(0,Et.jsxDEV)(ss,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content},void 0,!1,{fileName:Ns,lineNumber:156,columnNumber:20},void 0)},void 0,!1,{fileName:Ns,lineNumber:150,columnNumber:46},void 0)]},void 0,!0,{fileName:Ns,lineNumber:117,columnNumber:9},void 0)},void 0,!1,{fileName:Ns,lineNumber:100,columnNumber:13},void 0)})),vs=(0,It.PA)((()=>{const e=$t(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(t?.context??""))),i=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??""))),s=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map((e=>e.key)).join(" > "))));return(0,Et.jsxDEV)(Xi,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,Et.jsxDEV)(Ji,{children:[(0,Et.jsxDEV)(Zi,{onClick:n,children:"Copy Context ID"},void 0,!1,{fileName:Ns,lineNumber:205,columnNumber:11},void 0),(0,Et.jsxDEV)(Zi,{onClick:i,children:"Copy Current Context ID"},void 0,!1,{fileName:Ns,lineNumber:208,columnNumber:11},void 0),(0,Et.jsxDEV)(Zi,{onClick:s,children:"Copy Context Stack"},void 0,!1,{fileName:Ns,lineNumber:211,columnNumber:11},void 0)]},void 0,!0,{fileName:Ns,lineNumber:203,columnNumber:16},void 0),children:[t&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__title",children:t.title},void 0,!1,{fileName:Ns,lineNumber:219,columnNumber:38},void 0),t.content&&(0,Et.jsxDEV)(Et.Fragment,{children:K(t.content)?(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__text",children:t.content},void 0,!1,{fileName:Ns,lineNumber:226,columnNumber:53},void 0):(0,Et.jsxDEV)(ss,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content},void 0,!1,{fileName:Ns,lineNumber:230,columnNumber:20},void 0)},void 0,!1,{fileName:Ns,lineNumber:224,columnNumber:40},void 0),t.related.length&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]},void 0,!0,{fileName:Ns,lineNumber:240,columnNumber:15},void 0),t.related.map((e=>(0,Et.jsxDEV)(bs,{entry:e},e.uuid,!1,{fileName:Ns,lineNumber:243,columnNumber:56},void 0)))]},void 0,!0,{fileName:Ns,lineNumber:238,columnNumber:47},void 0)]},void 0,!0,{fileName:Ns,lineNumber:217,columnNumber:28},void 0),!t&&(0,Et.jsxDEV)(as,{children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,Et.jsxDEV)(Ci,{className:"virtual-assistant__panel__placeholder__icon"},void 0,!1,{fileName:Ns,lineNumber:256,columnNumber:13},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"},void 0,!1,{fileName:Ns,lineNumber:257,columnNumber:13},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"},void 0,!1,{fileName:Ns,lineNumber:260,columnNumber:13},void 0)]},void 0,!0,{fileName:Ns,lineNumber:255,columnNumber:11},void 0)},void 0,!1,{fileName:Ns,lineNumber:253,columnNumber:29},void 0)]},void 0,!0,{fileName:Ns,lineNumber:193,columnNumber:11},void 0)})),Ts=(0,It.PA)((()=>{const e=$t(),t=(0,Gt.useRef)(null),n=e.assistantService,i=n.searchText,s=(0,Gt.useMemo)((()=>(0,_s.A)((()=>n.search()),100)),[n]);return(0,Gt.useEffect)((()=>{t.current?.focus()}),[]),(0,Et.jsxDEV)("div",{className:"virtual-assistant__search",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__header",children:[(0,Et.jsxDEV)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,Rt.$)("virtual-assistant__search__input input--dark",{"virtual-assistant__search__input--searching":i}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),s()},value:i,placeholder:"Ask me a question"},void 0,!1,{fileName:Ns,lineNumber:334,columnNumber:9},void 0),i&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")},void 0,!1,{fileName:Ns,lineNumber:375,columnNumber:25},void 0),(0,Et.jsxDEV)("button",{className:(0,Rt.$)("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,Et.jsxDEV)(Gn,{},void 0,!1,{fileName:Ns,lineNumber:396,columnNumber:11},void 0)},void 0,!1,{fileName:Ns,lineNumber:381,columnNumber:9},void 0),i?(0,Et.jsxDEV)("button",{className:"virtual-assistant__search__input__clear-btn",tabIndex:-1,onClick:()=>{n.resetSearch(),n.currentDocumentationEntry=void 0,t.current?.focus()},title:"Clear",children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:Ns,lineNumber:409,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:402,columnNumber:14},void 0):(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,Et.jsxDEV)(ei,{},void 0,!1,{fileName:Ns,lineNumber:400,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:398,columnNumber:25},void 0)]},void 0,!0,{fileName:Ns,lineNumber:333,columnNumber:7},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__content",children:[(0,Et.jsxDEV)(qt,{isLoading:n.searchState.isInProgress},void 0,!1,{fileName:Ns,lineNumber:414,columnNumber:9},void 0),(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(gs.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,Et.jsxDEV)("div",{onClick:()=>n.openDocumentationEntryLink(gs.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,Et.jsxDEV)(zn,{},void 0,!1,{fileName:Ns,lineNumber:438,columnNumber:19},void 0)},void 0,!1,{fileName:Ns,lineNumber:428,columnNumber:21},void 0)]},void 0,!0,{fileName:Ns,lineNumber:424,columnNumber:13},void 0),(0,Et.jsxDEV)("div",{children:(0,Et.jsxDEV)(ps,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[Fe.STANDARD,Fe.INCLUDE,Fe.EXACT,Fe.INVERSE],size:1},void 0,!1,{fileName:Ns,lineNumber:443,columnNumber:15},void 0)},void 0,!1,{fileName:Ns,lineNumber:442,columnNumber:13},void 0)]},void 0,!0,{fileName:Ns,lineNumber:423,columnNumber:11},void 0)},void 0,!1,{fileName:Ns,lineNumber:417,columnNumber:9},void 0),n.currentDocumentationEntry&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__results",children:(0,Et.jsxDEV)(bs,{entry:n.currentDocumentationEntry},n.currentDocumentationEntry.uuid,!1,{fileName:Ns,lineNumber:466,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:464,columnNumber:57},void 0),!n.currentDocumentationEntry&&(0,Et.jsxDEV)(Et.Fragment,{children:[Boolean(n.searchResults.length)&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map((e=>(0,Et.jsxDEV)(bs,{entry:e},e.uuid,!1,{fileName:Ns,lineNumber:476,columnNumber:66},void 0)))},void 0,!1,{fileName:Ns,lineNumber:474,columnNumber:65},void 0),i&&!n.searchResults.length&&(0,Et.jsxDEV)(as,{children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,Et.jsxDEV)(yi,{className:"virtual-assistant__panel__placeholder__icon"},void 0,!1,{fileName:Ns,lineNumber:487,columnNumber:19},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."},void 0,!1,{fileName:Ns,lineNumber:488,columnNumber:19},void 0)]},void 0,!0,{fileName:Ns,lineNumber:486,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:484,columnNumber:71},void 0),!i&&!n.searchResults.length&&(0,Et.jsxDEV)(Xi,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,Et.jsxDEV)(Ji,{children:[(0,Et.jsxDEV)(Zi,{onClick:()=>{he(`documentation-registry_${(0,Es.GP)(new Date(Date.now()),nt)}.json`,JSON.stringify(e.documentationService.publishDocRegistry(),void 0,2),oe.APPLICATION_JSON)},children:"Download documentation registry"},void 0,!1,{fileName:Ns,lineNumber:511,columnNumber:21},void 0),(0,Et.jsxDEV)(Zi,{onClick:()=>{he(`documentation-registry_${(0,Es.GP)(new Date(Date.now()),nt)}.json`,JSON.stringify(e.documentationService.publishContextualDocIndex(),void 0,2),oe.APPLICATION_JSON)},children:"Download contextual documentation mapping"},void 0,!1,{fileName:Ns,lineNumber:514,columnNumber:21},void 0)]},void 0,!0,{fileName:Ns,lineNumber:509,columnNumber:26},void 0),children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__character",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__character__figure",children:[(0,Et.jsxDEV)(Ti,{className:"virtual-assistant__character__hat"},void 0,!1,{fileName:Ns,lineNumber:522,columnNumber:21},void 0),(0,Et.jsxDEV)(Ii,{className:"virtual-assistant__character__glasses"},void 0,!1,{fileName:Ns,lineNumber:523,columnNumber:21},void 0),(0,Et.jsxDEV)(Ai,{className:"virtual-assistant__character__beard"},void 0,!1,{fileName:Ns,lineNumber:524,columnNumber:21},void 0)]},void 0,!0,{fileName:Ns,lineNumber:521,columnNumber:19},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__character__greeting",children:"Bonjour, It's Pierre!"},void 0,!1,{fileName:Ns,lineNumber:526,columnNumber:19},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__character__question",children:"How can I help today?"},void 0,!1,{fileName:Ns,lineNumber:529,columnNumber:19},void 0)]},void 0,!0,{fileName:Ns,lineNumber:520,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:500,columnNumber:72},void 0)]},void 0,!0,{fileName:Ns,lineNumber:472,columnNumber:58},void 0)]},void 0,!0,{fileName:Ns,lineNumber:413,columnNumber:7},void 0)]},void 0,!0,{fileName:Ns,lineNumber:331,columnNumber:11},void 0)})),Cs=(0,It.PA)((e=>{const{triggerElement:t}=e,n=$t(),i=n.assistantService,s=i.currentContextualDocumentationEntry,o=i.selectedTab,r=n.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraVirtualAssistantViewConfigurations?.()??[])),a=r.find((e=>e.key===o));return(0,Et.jsxDEV)(ms,{open:i.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,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__panel",{"virtual-assistant__panel--maximized":i.isPanelMaximized}),tabIndex:0,onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())},children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tabs",children:[(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":o===Be.SEARCH}),onClick:()=>i.setSelectedTab(Be.SEARCH),title:"Search",children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tab__content",children:(0,Et.jsxDEV)(ei,{},void 0,!1,{fileName:Ns,lineNumber:644,columnNumber:19},void 0)},void 0,!1,{fileName:Ns,lineNumber:643,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:635,columnNumber:15},void 0),(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":o===Be.CONTEXTUAL_SUPPORT}),onClick:()=>i.setSelectedTab(Be.CONTEXTUAL_SUPPORT),title:"Contextual Support",children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tab__content",children:[(0,Et.jsxDEV)(vi,{},void 0,!1,{fileName:Ns,lineNumber:656,columnNumber:19},void 0),s&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tab__indicator",title:"Contextual support available"},void 0,!1,{fileName:Ns,lineNumber:657,columnNumber:60},void 0)]},void 0,!0,{fileName:Ns,lineNumber:655,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:647,columnNumber:15},void 0),r.map((e=>(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":o===e.key}),onClick:()=>{i.setSelectedTab(e.key),e.autoExpandOnOpen&&i.setIsPanelMaximized(!0)},title:e.title,children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tab__content",children:e.icon??(0,Et.jsxDEV)(zn,{},void 0,!1,{fileName:Ns,lineNumber:681,columnNumber:36},void 0)},void 0,!1,{fileName:Ns,lineNumber:680,columnNumber:19},void 0)},e.key,!1,{fileName:Ns,lineNumber:665,columnNumber:57},void 0)))]},void 0,!0,{fileName:Ns,lineNumber:634,columnNumber:13},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__actions",children:[(0,Et.jsxDEV)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>i.setIsPanelMaximized(!i.isPanelMaximized),title:i.isPanelMaximized?"Minimize":"Maximize",children:i.isPanelMaximized?(0,Et.jsxDEV)(_i,{},void 0,!1,{fileName:Ns,lineNumber:695,columnNumber:55},void 0):(0,Et.jsxDEV)(bi,{},void 0,!1,{fileName:Ns,lineNumber:697,columnNumber:22},void 0)},void 0,!1,{fileName:Ns,lineNumber:687,columnNumber:15},void 0),(0,Et.jsxDEV)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>i.setIsOpen(!1),title:"Close",children:(0,Et.jsxDEV)(_n,{className:"virtual-assistant__panel__icon__close"},void 0,!1,{fileName:Ns,lineNumber:707,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:701,columnNumber:15},void 0)]},void 0,!0,{fileName:Ns,lineNumber:686,columnNumber:13},void 0)]},void 0,!0,{fileName:Ns,lineNumber:633,columnNumber:11},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__content",children:[o===Be.SEARCH&&(0,Et.jsxDEV)(Ts,{},void 0,!1,{fileName:Ns,lineNumber:712,columnNumber:63},void 0),o===Be.CONTEXTUAL_SUPPORT&&(0,Et.jsxDEV)(vs,{},void 0,!1,{fileName:Ns,lineNumber:715,columnNumber:75},void 0),a?.renderer()]},void 0,!0,{fileName:Ns,lineNumber:711,columnNumber:11},void 0)]},void 0,!0,{fileName:Ns,lineNumber:608,columnNumber:9},void 0)},i.panelRenderingKey,!1,{fileName:Ns,lineNumber:568,columnNumber:13},void 0)})),ys=(0,It.PA)((()=>{const[e,t]=(0,Gt.useState)(!1),[n,i]=(0,Gt.useState)((0,o.A)()),s=$t(),r=(0,Gt.useRef)(null),a=s.assistantService,c=a.currentContextualDocumentationEntry,l=()=>{!a.isOpen&&c&&a.setSelectedTab(Be.CONTEXTUAL_SUPPORT),a.setIsOpen(!a.isOpen)};return(0,Gt.useEffect)((()=>{a.isHidden&&i((0,o.A)())}),[a.isHidden]),(0,Et.jsxDEV)(fs,{bounds:"parent",onStart:()=>t(!0),onStop:()=>t(!1),nodeRef:r,handle:".virtual-assistant__station__drag-handle",children:(0,Et.jsxDEV)("div",{className:"virtual-assistant",ref:r,children:[(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__station",{"virtual-assistant__station--hidden":a.isHidden,"virtual-assistant__station--active":Boolean(c)}),children:[(0,Et.jsxDEV)("button",{className:"virtual-assistant__station__hide-button",title:"Hide assistant",onClick:()=>{s.assistantService.toggleAssistant()},children:(0,Et.jsxDEV)(ni,{},void 0,!1,{fileName:Ns,lineNumber:802,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:795,columnNumber:11},void 0),(0,Et.jsxDEV)("button",{className:"virtual-assistant__station__trigger",tabIndex:-1,onClick:l,title:a.isOpen?"Click to close assistant panel":(c?"Contextual support available.\n":"")+"Click to open Assistant...",children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__station__character",children:[(0,Et.jsxDEV)(Ti,{className:"virtual-assistant__station__character__hat"},void 0,!1,{fileName:Ns,lineNumber:819,columnNumber:15},void 0),(0,Et.jsxDEV)(Ii,{className:"virtual-assistant__station__character__glasses"},void 0,!1,{fileName:Ns,lineNumber:820,columnNumber:15},void 0),(0,Et.jsxDEV)(Ai,{className:"virtual-assistant__station__character__beard"},void 0,!1,{fileName:Ns,lineNumber:821,columnNumber:15},void 0)]},void 0,!0,{fileName:Ns,lineNumber:818,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:804,columnNumber:11},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__station__label",onClick:l,children:"Assistant"},void 0,!1,{fileName:Ns,lineNumber:824,columnNumber:11},void 0),(0,Et.jsxDEV)(Xi,{className:(0,Rt.$)("virtual-assistant__station__drag-handle",{"virtual-assistant__station__drag-handle--dragging":e}),menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,Et.jsxDEV)(Ji,{children:[(0,Et.jsxDEV)(Zi,{onClick:()=>{a.setIsOpen(!1),i((0,o.A)())},children:"Reset Position"},void 0,!1,{fileName:Ns,lineNumber:842,columnNumber:17},void 0),(0,Et.jsxDEV)(Zi,{onClick:()=>s.assistantService.hideAssistant(),children:"Hide Assistant"},void 0,!1,{fileName:Ns,lineNumber:845,columnNumber:17},void 0)]},void 0,!0,{fileName:Ns,lineNumber:840,columnNumber:22},void 0),children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__station__drag-handle__content",title:e?void 0:"Grab to drag assistant",children:(0,Et.jsxDEV)(Sn,{},void 0,!1,{fileName:Ns,lineNumber:855,columnNumber:15},void 0)},void 0,!1,{fileName:Ns,lineNumber:851,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:830,columnNumber:11},void 0)]},c?.uuid??"",!0,{fileName:Ns,lineNumber:784,columnNumber:9},void 0),!e&&a.isOpen&&!a.isHidden&&r.current&&(0,Et.jsxDEV)(Cs,{triggerElement:r.current},void 0,!1,{fileName:Ns,lineNumber:863,columnNumber:36},void 0)]},void 0,!0,{fileName:Ns,lineNumber:777,columnNumber:7},void 0)},n,!1,{fileName:Ns,lineNumber:762,columnNumber:11},void 0)})),Ss="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/ApplicationComponentFrameworkProvider.tsx";var As;!function(e){e.TOP_LEVEL_CONTAINER="application.top-level-container",e.BACKDROP_CONTAINER="application.backdrop-container"}(As||(As={}));const Is=["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"],xs=e=>(0,Et.jsxDEV)("div",{className:"backdrop__container","data-elementid":e.elementId},void 0,!1,{fileName:Ss,lineNumber:113,columnNumber:79},void 0),ws=(0,It.PA)((e=>{const{children:t}=e,n=$t(),i=((e,t)=>{const n={};return e.forEach(((e,i)=>{e.length&&(n[i]={combinations:e,handler:t})})),n.INTERNAL__PLATFORM_NATIVE_KEYBOARD_COMMAND={combinations:Is,handler:(e,t)=>{t.preventDefault()}},n})(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{Is.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Gt.useEffect)((()=>{const e=function(e){const t=new Map;let n=null;return i=>{i instanceof KeyboardEvent&&((0,ct.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,s=gt(e.combination);if(!s.length)return;const o=t.get(n)??s,r=V(o[0]);ft(i,r)?o.length>1?t.set(n,o.slice(1)):(t.delete(n),e.handler(n,i)):i.getModifierState(i.key)||t.delete(n)})),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}(i);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[i]),(0,Gt.useEffect)((()=>{const e=()=>{document.hidden&&(Ye.logEvent_ApplicationUsageInterrupted(n.telemetryService),n.timeService.recordUsageInterruption())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[n]),(0,Et.jsxDEV)(yt,{children:[(0,Et.jsxDEV)(Zt,{},void 0,!1,{fileName:Ss,lineNumber:174,columnNumber:9},void 0),(0,Et.jsxDEV)(Xt,{},void 0,!1,{fileName:Ss,lineNumber:175,columnNumber:9},void 0),(0,Et.jsxDEV)(Yi,{},void 0,!1,{fileName:Ss,lineNumber:176,columnNumber:9},void 0),(0,Et.jsxDEV)(ys,{},void 0,!1,{fileName:Ss,lineNumber:177,columnNumber:9},void 0),n.layoutService.showBackdrop&&(0,Et.jsxDEV)(St.Z,{container:n.layoutService.getElementByID(n.layoutService.backdropContainerElementID??As.BACKDROP_CONTAINER)??null,children:(0,Et.jsxDEV)(At.A,{className:"backdrop",open:n.layoutService.showBackdrop},void 0,!1,{fileName:Ss,lineNumber:193,columnNumber:13},void 0)},void 0,!1,{fileName:Ss,lineNumber:178,columnNumber:58},void 0),(0,Et.jsxDEV)(xt.Q,{backend:wt.t2,children:(0,Et.jsxDEV)("div",{className:"app__container","data-elementid":As.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,Et.jsxDEV)(xs,{elementId:As.BACKDROP_CONTAINER},void 0,!1,{fileName:Ss,lineNumber:210,columnNumber:13},void 0),t]},void 0,!0,{fileName:Ss,lineNumber:200,columnNumber:11},void 0)},void 0,!1,{fileName:Ss,lineNumber:199,columnNumber:9},void 0)]},void 0,!0,{fileName:Ss,lineNumber:172,columnNumber:13},void 0)})),Os={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"},Rs={matchOverviewRuler:"#d186167e",activeMatchColorOverviewRuler:"#A0A0A0CC",matchBackground:"#62331c",activeMatchBackground:"#515C6A"},ks=`\n${it.BOLD}${it.BRIGHT_BLUE}$purist${it.RESET}\n${it.BOLD}${it.MAGENTA}❯${it.RESET} `,Ps="❯ ";class Ls extends at{instance;resizer;renderer;searcher;webLinkProvider;_TEMPORARY__onKeyListener;_TEMPORARY__onDataListener;command="";commandHistory=[];currentCommandSearchString="";commandHistoryNavigationIdx=void 0;isRunningCommand=!1;setupState=Pe.create();constructor(e){super(e),this.instance=new Xe.Terminal({allowProposedApi:!0,fontSize:12,letterSpacing:2,fontWeight:400,fontWeightBold:700,fontFamily:`"${tt}", Menlo, Consolas, monospace`,tabStopWidth:2,theme:Os,overviewRulerWidth:14,scrollback:1e5,convertEol:!0,scrollOnUserInput:!1}),this.resizer=new Je.FitAddon,this.searcher=new Ze.SearchAddon,this.renderer=new et.WebglAddon}setup(e){if(this.setupState.hasCompleted)throw new P("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 Qe.Unicode11Addon),this.instance.unicode.activeVersion="11",this.instance.attachCustomKeyEventHandler((e=>_t(e,"Control+KeyF")||_t(e,"Meta+KeyF")?(e.preventDefault(),e.stopPropagation(),this.searchConfig.focus(),!1):!(_t(e,"Control+KeyC")&&this.instance.hasSelection()||_t(e,"Control+KeyV")))),this.webLinkProvider=e?.webLinkProvider?new qe.WebLinksAddon(e.webLinkProvider.handler,{urlRegex:e.webLinkProvider.regex}):new qe.WebLinksAddon,this.instance.loadAddon(this.webLinkProvider),(e?.commands??[]).forEach((e=>{[e.command,...e.aliases??[]].forEach((t=>{this.commandRegistry.has(t)?this.applicationStore.logService.warn(u.create(me.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,i;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 i=this.commandRegistry.get(t);if(!i)return void this.fail(`command not found: ${t}`);if(this.isRunningCommand)return;this.isRunningCommand=!0,i.handler(n.map((e=>e.trim())),t,e).catch((()=>{})).finally((()=>{this.isRunningCommand=!1,this.isFlushed||this.abort()}))}}else if(_t(t,"Control+KeyD")||_t(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,i=this.applicationStore,i.layoutService.getElementByID(As.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=`${Ps}${this.command}`,i=`${Ps}${this.command.substring(0,t-2)}${this.command.length<t-2?" ".repeat(t-this.command.length-2):""}`;let s=0,o=0;for(let n=e.baseY+e.cursorY;n>-1;--n){if(V(e.getLine(n)).translateToString()===i){s=n,o+=(n===e.baseY+e.cursorY?e.cursorX:t)-2;break}o+=n===e.baseY+e.cursorY?e.cursorX:t}return{startY:s,startX:2,endY:s+(n.length-n.length%t)/t,endX:n.length%t,cursorIdx:o}}computeCursorJumpMovement(e){const t=this.getCommandRange();let n,i=!1;if(e){for(let e=t.cursorIdx-1;e>-1;--e)if(this.command.charAt(e).match(/\w/))i||(i=!0);else if(i){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/))i||(i=!0);else if(i){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,i=this.instance.cols,s=this.instance.rows,o=this.getCommandRange(),r=t?e<0?o.cursorIdx:this.command.length-o.cursorIdx:e,a=Math.min(Math.abs(e),r);let c=n.cursorX,l=n.cursorY,d=n.baseY+n.cursorY;e<0?(c=(i+(n.cursorX-a)%i)%i,l=n.cursorY-(a>n.cursorX?Math.ceil(a/i):0),d=l+n.baseY,l=Math.max(l,-1)):e>0&&(c=(n.cursorX+a)%i,l=n.cursorY+(n.cursorX+a>=i?Math.floor((n.cursorX+a)/i):0),d=l+n.baseY,l=Math.min(l,s-1));const u=d>n.viewportY+s?d-(n.viewportY+s):d<n.viewportY?d-n.viewportY:0;return{seq:st(l+1,c+1),scroll:u}}writeToCommand(e){const t=this.getCommandRange(),n=this.command.slice(0,t.cursorIdx),i=this.command.slice(t.cursorIdx),s=this.computeCursorMovement(e.length,!1);this.instance.scrollLines(s.scroll),this.instance.write(e+i+s.seq),this.setCommand(n+e+i)}deleteFromCommand(e){const t=this.getCommandRange(),n=e<0?t.cursorIdx:this.command.length-t.cursorIdx,i=Math.min(Math.abs(e),n);let s,o,r;if(0===e)return;e<0?(s=this.command.slice(0,t.cursorIdx-i),o=this.command.slice(t.cursorIdx,this.command.length),r=-i):(s=this.command.slice(0,t.cursorIdx),o=this.command.slice(t.cursorIdx+i,this.command.length),r=0);const a=this.computeCursorMovement(r);this.instance.scrollLines(a.scroll),this.instance.write(st(t.startY+1,t.startX+1)+s+o+" ".repeat(i)+a.seq),this.setCommand(s+o)}get isSetup(){return this.setupState.hasCompleted}isFocused(){return document.activeElement===this.instance.textarea}mount(e){if(!this.setupState.hasCompleted)throw new P("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(st(n.startY+1,n.startX+1)+t.padEnd(this.command.length)),this.command=t,n=this.getCommandRange(),this.instance.write(st(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(ks),this.setCommand("")}newSystemCommand(e){this.isRunningCommand||(this.command&&(this.abort(),this.newCommand()),this.instance.write(`${it.DIM}(system: ${e})\n${it.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 i=V(e.getLine(n)).translateToString();if(i.trim()){t=i!==Ps;break}}return""===this.command&&t}clear(){this.flushScreen(),this.instance.scrollToTop(),this.newCommand()}resetANSIStyling(){this.instance.write(it.RESET)}showHelp(){var e;this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write((e=this.commandRegistry,`\n${it.BRIGHT_BLACK}+-------------------------------------------------------+${it.RESET}\n${it.BRIGHT_BLACK}|${it.RESET} ${it.BRIGHT_GREEN}[@@]${it.RESET} "Hi! Welcome to the HELP menu of Pure IDE" ${it.BRIGHT_BLACK}|${it.RESET}\n${it.BRIGHT_BLACK}|${it.RESET} ${it.BRIGHT_GREEN}/|__|\\${it.RESET} ${it.BRIGHT_BLACK}|${it.RESET}\n${it.BRIGHT_BLACK}+--${it.RESET} ${it.BRIGHT_GREEN}d b${it.RESET} ${it.BRIGHT_BLACK}-----------------------------------------------+${it.RESET}\n\nFollowing is the list of supported commands:\n\n${(0,ct.A)(Array.from(e.values()),(e=>e.command)).map((e=>`${it.BRIGHT_GREEN}${e.command.padEnd(30)}${it.RESET}${e.description}${e.aliases?.length?`\n${"".padEnd(30)}Aliases: ${e.aliases.join(", ")}`:""}\n${"".padEnd(30)}Usage: ${it.DIM}${e.usage}${it.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(it).map((([e,t])=>`${t}${(e=>e?e.trim().match(/^[A-Z_]+$/)?pt(e.trim().replace(/_+/gu," ").toLowerCase()):dt(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)}${it.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${it.RED}${e}${it.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:Rs,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:Rs,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}findNext(){this.searcher.findNext(this.searchConfig.searchText,{decorations:Rs,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 i=V(e.getLine(n));t.push(i.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 Ms{applicationStore;terminal;constructor(e){this.applicationStore=e,this.terminal=new Ls(e)}}const Ds="(unknown)";class Fs{applicationStore;currentUser=Ds;constructor(e){(0,ke.Gn)(this,{currentUser:ke.sH,setCurrentUser:ke.XI}),this.applicationStore=e}get isAnonymous(){return this.currentUser===Ds}setCurrentUser(e){this.currentUser=e}}var Bs,js=n(5992);class Vs{get localStorage(){return V(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 Hs{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?((e,t="")=>(function(e,t=""){if(!X(e))throw new F(t||"Value is expected to be a number")}(e,t),e))(t):void 0}getStringValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!K(e))throw new F(t||"Value is expected to be a string")}(e,t),e))(t):void 0}getBooleanValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!q(e))throw new F(t||"Value is expected to be a boolean")}(e,t),e))(t):void 0}getObjectValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!J(e))throw new F(t||"Value is expected to be a object")}(e,t),e))(t):void 0}hasValue(e){return B(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 Gs{applicationStore;storage;data;constructor(e){this.applicationStore=e,this.storage=new Vs;const t=this.storage.getItem(e.config.applicationStorageKey);this.data=t?D((()=>JSON.parse(t)))??{}:{}}getIndex(e){return this.data[e]}updateIndex(e,t){(0,js.A)(t)?delete this.data[e]:this.data[e]=t,this.storage.setItem(this.applicationStore.config.applicationStorageKey,JSON.stringify(this.data))}}class Us{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 $s{timestamp=Date.now();interruptions=[];recordUsageInterruption(){this.interruptions.push(Date.now())}finalizeTimingsRecord(e,t){const n=e.elapsed,i=e.startTime,s=i+n,o={...t??{},...Object.fromEntries(e.records),total:n};let r=0;for(const e of this.interruptions)if(e>=i&&e<=s)r++;else if(e>s)break;return r>0?{...o,__numberOfInteruptions:r}:o}}!function(e){e.DEFAULT_DARK="default-dark",e.LEGACY_LIGHT="legacy-light",e.HIGH_CONTRAST_LIGHT="hc-light"}(Bs||(Bs={}));const Ys={name:"Default Dark (default)",key:Bs.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"}},Ws={name:"Legacy Light",key:Bs.LEGACY_LIGHT,TEMPORARY__globalCSSClassName:"theme__legacy-light"},zs={name:"High-Contrast Light",key:Bs.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 Ks;!function(e){e.COLOR_THEME="application.layout.colorTheme"}(Ks||(Ks={}));const Xs={[Ks.COLOR_THEME]:{defaultValue:Bs.DEFAULT_DARK}};class qs{applicationStore;backdropContainerElementID;showBackdrop=!1;colorThemeRegistry=new Map;currentColorTheme;constructor(e){(0,ke.Gn)(this,{currentColorTheme:ke.sH.ref,TEMPORARY__isLightColorThemeEnabled:ke.EW,backdropContainerElementID:ke.sH,showBackdrop:ke.sH,setBackdropContainerElementID:ke.XI,setShowBackdrop:ke.XI,setColorTheme:ke.XI}),this.applicationStore=e,this.colorThemeRegistry.set(Bs.DEFAULT_DARK,Ys),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraColorThemes?.()??[])).forEach((e=>{this.colorThemeRegistry.has(e.key)?this.applicationStore.logService.warn(u.create(me.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(Ks.COLOR_THEME)??Bs.DEFAULT_DARK;this.currentColorTheme=V(this.colorThemeRegistry.get(t)),this.TEMPORARY__syncGlobalCSSClassName(this.currentColorTheme,void 0)}getElementByID(e){return document.querySelector(`[data-elementid='${e}']`)??void 0}setBackdropContainerElementID(e){this.backdropContainerElementID=e}setShowBackdrop(e){this.showBackdrop=e}get TEMPORARY__isLightColorThemeEnabled(){return this.currentColorTheme.key!==Bs.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 i=this.currentColorTheme;this.currentColorTheme=n,this.TEMPORARY__syncGlobalCSSClassName(n,i),t?.persist&&this.applicationStore.settingService.persistValue(Ks.COLOR_THEME,e)}getColor(e){return this.currentColorTheme.colors?.[e]??V(this.colorThemeRegistry.get(Bs.DEFAULT_DARK)).colors?.[e]??"transparent"}}class Js{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 Zs{navigator;constructor(e){this.navigator=e}}var Qs=n(2853);class eo{applicationStore;storage;registry=new Map;constructor(e){this.applicationStore=e,this.storage=new Hs(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(u.create(me.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(X(t))return t;this.applicationStore.logService.warn(u.create(me.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(K(t))return t;this.applicationStore.logService.warn(u.create(me.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(q(t))return t;this.applicationStore.logService.warn(u.create(me.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(J(t))return t;this.applicationStore.logService.warn(u.create(me.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,Qs.A)(n,t)?void 0:t)}}class to{goToLocation(e,t){throw new L("Navigator does not support this operation")}reload(e){throw new L("Navigator does not support this operation")}goToAddress(e,t){throw new L("Navigator does not support this operation")}visitAddress(e){throw new L("Navigator does not support this operation")}generateAddress(e){throw new L("Navigator does not support this operation")}updateCurrentLocation(e){throw new L("Navigator does not support this operation")}updateCurrentZone(e){throw new L("Navigator does not support this operation")}resetZone(){throw new L("Navigator does not support this operation")}getCurrentBaseAddress(e){throw new L("Navigator does not support this operation")}getCurrentAddress(){throw new L("Navigator does not support this operation")}getCurrentLocation(){throw new L("Navigator does not support this operation")}getCurrentLocationParameters(){throw new L("Navigator does not support this operation")}getCurrentLocationParameterValue(e){throw new L("Navigator does not support this operation")}getCurrentZone(){throw new L("Navigator does not support this operation")}blockNavigation(e,t,n){throw new L("Navigator does not support this operation")}unblockNavigation(){throw new L("Navigator does not support this operation")}get isNavigationBlocked(){throw new L("Navigator does not support this operation")}INTERNAL__internalizeTransientParameter(e){throw new L("Navigator does not support this operation")}}class no{applicationStore;storage;constructor(e){this.applicationStore=e,this.storage=new Hs(this.applicationStore.storageService,"application-user-data-storage")}getNumericValue(e){const t=this.storage.getValue(e);if(X(t))return t;this.applicationStore.logService.warn(u.create(me.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve numeric value for user data '${e}'`)}getStringValue(e){const t=this.storage.getValue(e);if(K(t))return t;this.applicationStore.logService.warn(u.create(me.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve string value for user data '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e);if(q(t))return t;this.applicationStore.logService.warn(u.create(me.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve boolean value for user data '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e);if(J(t))return t;this.applicationStore.logService.warn(u.create(me.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 so;!function(e){e.BUG_FIX="BUG_FIX",e.ENHANCEMENT="ENHANCEMENT"}(so||(so={}));const oo="application.lastOpenedVersion";class ro{applicationStore;releaseNotes;showCurrentReleaseModal=!0;showReleaseLog=!1;isConfigured=!1;constructor(e){(0,ke.Gn)(this,{showCurrentReleaseModal:ke.sH,showReleaseLog:ke.sH,isConfigured:ke.sH,setShowCurrentRelease:ke.XI,configure:ke.XI,setReleaseLog:ke.XI}),this.applicationStore=e}configure(e){this.isConfigured=!0,this.releaseNotes=(e=>e.map((e=>(W(e.version,"Release notes 'version' is missing"),e.notes?.map((e=>(W(e.type,"Release note 'type' is missing"),W(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(oo)}updateViewedVersion(){this.applicationStore.userDataService.persistValue(oo,this.applicationStore.config.appVersion)}showVersion(e,t){const n=e.version;return!(!io(n)||!io(t)||1!==(i=t,n.localeCompare(i,void 0,{numeric:!0})));var i}showableVersions(){const e=this.getViewedVersion();if(e)return this.releaseNotes?.filter((t=>this.showVersion(t,e)))}}class ao{uuid=(0,o.A)();extensionStates=[];config;pluginManager;initState=Pe.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 $s,this.logService=new h,this.logService.registerPlugins(t.getLoggerPlugins()),this.storageService=new Gs(this),this.settingService=new eo(this),this.userDataService=new no(this),this.alertService=new Ht(this),this.notificationService=new Ui,this.identityService=new Fs(this),this.layoutService=new qs(this),this.clipboardService=new Js(this),this.terminalService=new Ms(this),this.commandService=new ze(this),this.keyboardShortcutsService=new Ke(this),this.navigationService=new Zs(new to),this.navigationContextService=new We(this),this.documentationService=new we(this),this.assistantService=new Ue(this),this.releaseNotesService=new ro(this),this.eventService=new $e,this.eventService.registerEventNotifierPlugins(t.getEventNotifierPlugins()),this.telemetryService=new Us(this),this.telemetryService.registerPlugins(t.getTelemetryServicePlugins()),this.telemetryService.setup(),this.tracerService=new Me,this.tracerService.registerPlugins(t.getTracerServicePlugins()),this.extensionStates=this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationExtensionStateBuilders?.()??[])).map((e=>e(this))).filter(B)}async initialize(e){if(this.initState.isInInitialState){this.initState.inProgress();try{if(this.platform)throw new P("Platform is already configured");this.platform=e,this.navigationService=new Zs(e.getNavigator()),await e.initialize(),this.initState.pass()}catch(e){M(e),this.notificationService.notifyError(e),this.logService.error(u.create(me.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),this.initState.fail()}}else this.notificationService.notifyIllegalState("Application store is re-initialized")}alertUnhandledError=e=>{this.logService.error(u.create(me.ILLEGAL_APPLICATION_STATE_OCCURRED),"Encountered unhandled error in component tree",e),this.notificationService.notifyIllegalState(e.message)};guardUnhandledError=e=>()=>{e().catch(this.alertUnhandledError)}}var co;!function(e){e.TAG_REQUEST="download-request",e.TAG_RESPONSE="download-response",e.STREAM_CLOSED="#stream-closed",e.STREAM_ABORTED="#stream-aborted"}(co||(co={}));class lo{}class uo extends lo{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 po{config;logger;pluginManager;basePresets=[];basePlugins=[];baseAddress;pluginRegister;_isConfigured=!1;downloadHelperServiceWorkerPath;downloadHelper=!1;releaseNotes;constructor(e){this.pluginManager=e,this.logger=new uo}setup(e){return this.baseAddress=W(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 pe;let n,i;try{n=await t.get(`${window.location.origin}${e}config.json`)}catch(e){M(e),this.logger.error(u.create(me.APPLICATION_CONFIGURATION__FAILURE),e)}j(n,"Can't fetch Legend application configuration");try{i=await t.get(`${window.location.origin}${e}version.json`)}catch(e){M(e),this.logger.error(u.create(me.APPLICATION_CONFIGURATION__FAILURE),e)}return j(i,"Can't fetch Legend application version"),[await this.configureApplication({configData:n,versionData:i,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 pe(e.simple?{options:{credentials:"omit"}}:{}),i=await n.get(W(e.url,"Can't load documentation registry: 'url' field is missing or empty"));j(i.entries,"Can't load documentation registry data: 'entries' field is missing");const s=e.includes?.map((e=>new RegExp(`^${e.trim().replace(/[\^$\\.+?()[\]{}|]/g,"\\$&").replace(/\*/g,".*")}$`)));Object.entries(i.entries).forEach((([e,n])=>{s&&!s.some((t=>t.test(e)))||t[e]||(t[e]=n)}))}catch(e){M(e),this.logger.warn(u.create(me.DOCUMENTATION_FETCH__FAILURE),e)}}))),e.keyedDocumentationEntries=[...xe(t),...e.keyedDocumentationEntries]}async start(){j(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 ao(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(u.create(me.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 M(e),this.logger.error(u.create(me.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),e}}}const ho="legend-application-root",mo=JSON.parse('{"rE":"15.1.8","XO":{"c":"@finos/legend-application-plugin-core"}}');class go extends a{}class fo extends go{static NAME=mo.XO.c;constructor(){super(fo.NAME,mo.rE)}install(e){e.registerApplicationPlugin(this)}getExtraApplicationSetups(){return[async e=>{(0,ke.jK)({enforceActions:"observed"})}]}getExtraColorThemes(){return[Ws,zs]}getExtraSettingConfigurationEntries(){return e=Xs,Object.entries(e).map((e=>({key:e[0],...e[1]})));var e}}class _o{appName;baseAddress;env;applicationStorageKey;documentationUrl;documentationLinkEntries=[];documentationRegistryEntries=[];keyedDocumentationEntries=[];contextualDocEntries=[];appVersion;appVersionBuildTime;appVersionCommitId;constructor(e){var t,n;this.baseAddress=e.baseAddress,this.appName=W(e.configData.appName,"Can't configure application: 'appName' field is missing or empty"),this.env=W(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:W(e[0],"Documentation link 'key' is missing"),label:W(e[1].label,"Documentation link 'label' is missing"),url:W(e[1].url,"Documentation link 'url' is missing")})))),this.documentationRegistryEntries=e.configData.documentation?.registry??[],this.keyedDocumentationEntries=xe(e.configData.documentation?.entries??{}),this.contextualDocEntries=(n=e.configData.documentation?.contextualEntries??{},Object.entries(n).map((e=>({context:e[0],documentationKey:e[1]})))),this.appVersion=V(e.versionData.version,"Can't collect application version: 'version' field is missing"),this.appVersionBuildTime=V(e.versionData.buildTime,"Can't collect application version: 'buildTime' field is missing"),this.appVersionCommitId=V(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 Eo extends _o{pureUrl;useDynamicPureServer=!1;constructor(e){super(e),j(e.configData.pure,"Can't configure application: 'pure' field is missing"),this.pureUrl=_o.resolveAbsoluteUrl(W(e.configData.pure.url,"Can't configure application: 'pure.url' field is missing or empty")),void 0!==e.configData.pure.dynamic&&(this.useDynamicPureServer=Boolean(e.configData.pure.dynamic))}getDefaultApplicationStorageKey(){return"legend-pure-ide"}}class No extends d{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 bo extends No{pureProtocolProcessorPlugins=[];pureGraphManagerPlugins=[];pureGraphPlugins=[];constructor(){super()}static create(){return new bo}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]}}const vo=JSON.parse('{"rE":"8.0.181","XO":{"rj":"@finos/legend-graph-manager-preset-dsl-diagram","gM":"@finos/legend-pure-protocol-processor-plugin-dsl-diagram","ns":"@finos/legend-pure-graph-manager-plugin-dsl-diagram","QC":"@finos/legend-pure-graph-plugin-dsl-diagram"}}');class To extends a{_$nominalTypeBrand;install(e){e.registerPureGraphManagerPlugin(this)}}const Co=e=>t=>(0,ke.AT)(t)?t:e(t),yo=e=>(t,n)=>(0,ke.AT)(t)?t:e(t,n),So=e=>{(0,ke.Gn)(e,{_isDeleted:ke.sH,_isDisposed:ke.sH,name:ke.sH,package:ke.sH,isDeleted:ke.EW,path:ke.EW,_elementHashCode:ke.EW,hashCode:ke.EW,setIsDeleted:ke.XI,dispose:ke.XI})},Ao=Co((e=>(So(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))),Io=Co((e=>(So(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))),xo=Co((e=>(0,ke.Gn)(e,{value:ke.sH,valueForSerialization:ke.EW})));var wo=n(9499),Oo=n(1937);const Ro=e=>wo.sha1().update(e).digest("hex"),ko=e=>Ro(e.filter(B).map((e=>"string"==typeof e||"boolean"==typeof e||"number"==typeof e?Ro(e):e.hashCode)).join(",")),Po="::",Lo="###",Mo=["$implicit"];var Do,Fo,Bo,jo,Vo;(Vo=Do||(Do={})).CORE="CORE",Vo.MAIN="ROOT",Vo.MODEL_GENERATION="MODEL_GENERATION_ROOT",Vo.SYSTEM="SYSTEM_ROOT",Vo.PROJECT_DEPENDENCY_ROOT="PROJECT_DEPENDENCY_ROOT",(jo=Fo||(Fo={})).STRING="String",jo.BOOLEAN="Boolean",jo.BINARY="Binary",jo.NUMBER="Number",jo.INTEGER="Integer",jo.FLOAT="Float",jo.DECIMAL="Decimal",jo.DATE="Date",jo.STRICTDATE="StrictDate",jo.DATETIME="DateTime",jo.STRICTTIME="StrictTime",jo.LATESTDATE="LatestDate",jo.BYTE="Byte",function(e){e.Service_Test="serviceTest",e.Mapping_Test="mappingTest",e.Function_Test="functionTest"}(Bo||(Bo={}));const Ho=["meta::pure::metamodel::type","meta::pure::functions::date","meta::pure::profiles"];var Go,Uo,$o,Yo,Wo,zo,Ko,Xo,qo,Jo,Zo;(Uo=Go||(Go={})).ANY="meta::pure::metamodel::type::Any",Uo.NIL="meta::pure::metamodel::type::Nil",Uo.PROFILE_DOC="meta::pure::profiles::doc",Uo.PROFILE_TEMPORAL="meta::pure::profiles::temporal",Uo.PROFILE="meta::pure::metamodel::extension::Profile",Uo.ENUMERATION="meta::pure::metamodel::type::Enumeration",Uo.MEASURE="meta::pure::metamodel::type::Measure",Uo.CLASS="meta::pure::metamodel::type::Class",Uo.ASSOCIATION="meta::pure::metamodel::relationship::Association",Uo.FUNCTION="meta::pure::metamodel::function::ConcreteFunctionDefinition",Uo.FLAT_DATA="meta::flatData::metamodel::FlatData",Uo.DATABASE="meta::relational::metamodel::Database",Uo.MAPPING="meta::pure::mapping::Mapping",Uo.SERVICE="meta::legend::service::metamodel::Service",Uo.CONNECTION="meta::pure::runtime::PackageableConnection",Uo.RUNTIME="meta::pure::runtime::PackageableRuntime",Uo.EXECUTION_ENVIRONMENT="meta::legend::service::metamodel::ExecutionEnvironmentInstance",Uo.FILE_GENERATION="meta::pure::generation::metamodel::GenerationConfiguration",Uo.GENERATION_SPECIFICATION="meta::pure::generation::metamodel::GenerationSpecification",Uo.SECTION_INDEX="meta::pure::metamodel::section::SectionIndex",Uo.DATA_ELEMENT="meta::pure::data::DataElement",Uo.SNOWFLAKE_APP="meta::external::function::activator::snowflakeApp::SnowflakeApp",Uo.HOSTED_SERVICE="meta::external::function::activator::hostedService::HostedService",(zo=$o||($o={})).BUSINESS_TEMPORAL="businesstemporal",zo.PROCESSING_TEMPORAL="processingtemporal",zo.BITEMPORAL="bitemporal",(Wo=Yo||(Yo={})).ALL_VERSIONS="AllVersions",Wo.ALL_VERSIONS_IN_RANGE="AllVersionsInRange",(qo=Ko||(Ko={})).CLASS="CLASS",qo.STORE="STORE",qo.MAPPING="MAPPING",qo.RUNTIME="RUNTIME",qo.FUNCTION="FUNCTION",qo.FILE_GENERATION="FILE_GENERATION",qo.SERVICE="SERVICE",qo.DATA="DATA",function(e){e.LET="meta::pure::functions::lang::letFunction",e.NEW="meta::pure::functions::meta::new",e.FROM="meta::pure::mapping::from"}(Xo||(Xo={})),(Zo=Jo||(Jo={})).INTERNAL__UNKNOWN_ELEMENT="INTERNAL__UNKNOWN_ELEMENT",Zo.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT="INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT",Zo.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR="INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR",Zo.PACKAGE="PACKAGE",Zo.PACKAGEABLE_ELEMENT="PACKAGEABLE_ELEMENT",Zo.PACKAGEABLE_ELEMENT_POINTER="PACKAGEABLE_ELEMENT_POINTER",Zo.PROFILE="PROFILE",Zo.TAG_POINTER="TAG_POINTER",Zo.STEREOTYPE_POINTER="STEREOTYPE_POINTER",Zo.TAGGED_VALUE="TAGGED_VALUE",Zo.ENUMERATION="ENUMERATION",Zo.ENUM_VALUE="ENUM_VALUE",Zo.CLASS="CLASS",Zo.PROPERTY="PROPERTY",Zo.PROPERTY_DEFAULT_VALUE="PROPERTY_DEFAULT_VALUE",Zo.PROPERTY_POINTER="PROPERTY_POINTER",Zo.MULTIPLICITY="MULTIPLICITY",Zo.CONSTRAINT="CONSTRAINT",Zo.DERIVED_PROPERTY="DERIVED_PROPERTY",Zo.ASSOCIATION="ASSOCIATION",Zo.FUNCTION="FUNCTION",Zo.MEASURE="MEASURE",Zo.UNIT="UNIT",Zo.FUNCTION_TEST_SUITE="FUNCTION_TEST_SUITE",Zo.FUNCTION_TEST="FUNCTION_TEST",Zo.FUNCTION_STORE_TEST_DATA="FUNCTION_STORE_TEST_DATA",Zo.FUNCTION_PARAMETER_VALUE="FUNCTION_PARAMETER_VALUE",Zo.ASSERT_FAIL="ASSERT_FAIL",Zo.ASSERT_PASS="ASSERT_PASS",Zo.EQUAL_TO_JSON_ASSERT_FAIL="EQUAL_TO_JSON_ASSERT_FAIL",Zo.EQUAL_TO="EQUAL_TO",Zo.EQUAL_TO_JSON="EQUAL_TO_JSON",Zo.EQUAL_TO_TDS="EQUAL_TO_TDS",Zo.SECTION_INDEX="SECTION_INDEX",Zo.SECTION="SECTION",Zo.IMPORT_AWARE_CODE_SECTION="IMPORT_AWARE_CODE_SECTION",Zo.DEFAULT_CODE_SECTION="DEFAULT_CODE_SECTION",Zo.RAW_LAMBDA="RAW_LAMBDA",Zo.RAW_VARIABLE="RAW_VARIABLE",Zo.RAW_INSTANCE_VALUE="RAW_INSTANCE_VALUE",Zo.BINDING_TRANSFORMER="BINDING_TRANSFORMER",Zo.INTERNAL__UNKNOWN_VALUE_SPECIFICATION="INTERNAL__UNKNOWN_VALUE_SPECIFICATION",Zo.INTERNAL__PROPAGATED_VALUE="INTERNAL__PROPAGATED_VALUE",Zo.VARIABLE_EXPRESSION="VARIABLE_EXPRESSION",Zo.EXPRESSION="EXPRESSION",Zo.FUNCTION_EXPRESSION="FUNCTION_EXPRESSION",Zo.SIMPLE_FUNCTION_EXPRESSION="SIMPLE_FUNCTION_EXPRESSION",Zo.ABSTRACT_PROPERTY_EXPRESSION="ABSTRACT_PROPERTY_EXPRESSION",Zo.INSTANCE_VALUE="INSTANCE_VALUE",Zo.PRIMITIVE_INSTANCE_VALUE="PRIMITIVE_INSTANCE_VALUE",Zo.ENUM_INSTANCE_VALUE="ENUM_INSTANCE_VALUE",Zo.KEY_EXPRESSION_INSTANCE_VALUE="KEY_EXPRESSION_INSTANCE_VALUE",Zo.KEY_EXPRESSION_VALUE="KEY_EXPRESSION_VALUE",Zo.RUNTIME_INSTANCE_VALUE="RUNTIME_INSTANCE_VALUE",Zo.PAIR_INSTANCE_VALUE="PAIR_INSTANCE_VALUE",Zo.MAPPING_INSTANCE_VALUE="MAPPING_INSTANCE_VALUE",Zo.PURE_LIST_INSTANCE_VALUE="PURE_LIST_INSTANCE_VALUE",Zo.COLLECTION_INSTANCE_VALUE="COLLECTION_INSTANCE_VALUE",Zo.LAMBDA_FUNCTION_INSTANCE_VALUE="LAMBDA_FUNCTION_INSTANCE_VALUE",Zo.FUNCTION_TYPE="FUNCTION_TYPE",Zo.LAMBDA_FUNCTION="LAMBDA_FUNCTION",Zo.ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE="ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE",Zo.ALLOY_SERIALIZATION_CONFIG="ALLOY_SERIALIZATION_CONFIG",Zo.ROOT_GRAPH_FETCH_TREE="ROOT_GRAPH_FETCH_TREE",Zo.PROPERTY_GRAPH_FETCH_TREE="PROPERTY_GRAPH_FETCH_TREE",Zo.SUBTYPE_GRAPH_FETCH_TREE="SUBTYPE_GRAPH_FETCH_TREE",Zo.SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE="SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE",Zo.PROPERTY_GRAPH_FETCH_TREE_INSTANCE_VALUE="PROEPRTY_GRAPH_FETCH_TREE_INSTANCE_VALUE",Zo.ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE="ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE",Zo.RELATION_COL_SPEC_ARRAY="RELATION_COL_SPEC_ARRAY",Zo.RELATION_COL_SPEC="RELATION_COL_SPEC",Zo.INTERNAL__UNKNOWN_STORE="INTERNAL__UNKNOWN_STORE",Zo.INTERNAL__UNKNOWN_CONNECTION="INTERNAL__UNKNOWN_CONNECTION",Zo.INTERNAL__UNKNOWN_PROPERTY_MAPPING="INTERNAL__UNKNOWN_PROPERTY_MAPPING",Zo.INTERNAL__UNKNOWN_CLASS_MAPPING="INTERNAL__UNKNOWN_CLASS_MAPPING",Zo.INTERNAL__UNKNOWN_MAPPING_INCLUDE="INTERNAL__UNKNOWN_MAPPING_INCLUDE",Zo.MAPPING="MAPPING",Zo.MAPPING_INCLUDE_MAPPING="MAPPING_INCLUDE_MAPPING",Zo.ASSOCIATION_IMPLEMENTATION="ASSOCIATION_IMPLEMENTATION",Zo.RELATIONAL_ASSOCIATION_IMPLEMENTATION="RELATIONAL_ASSOCIATION_IMPLEMENTATION",Zo.XSTORE_ASSOCIATION_IMPLEMENTATION="XSTORE_ASSOCIATION_IMPLEMENTATION",Zo.ENUMERATION_MAPPING="ENUMERATION_MAPPING",Zo.ENUM_VALUE_MAPPING="ENUM_VALUE_MAPPING",Zo.SET_IMPLEMENTATION="SET_IMPLEMENTATION",Zo.OPERATION_SET_IMPLEMENTATION="OPERATION_SET_IMPLEMENTATION",Zo.PURE_INSTANCE_SET_IMPLEMENTATION="PURE_INSTANCE_SET_IMPLEMENTATION",Zo.PROPERTY_MAPPING="PROPERTY_MAPPING",Zo.LOCAL_MAPPING_PROPERTY="LOCAL_MAPPING_PROPERTY",Zo.PURE_PROPERTY_MAPPING="PURE_PROPERTY_MAPPING",Zo.XSTORE_PROPERTY_MAPPING="XSTORE_PROPERTY_MAPPING",Zo.MAPPING_TEST_LEGACY="MAPPING_TEST_LEGACY",Zo.MAPPING_TEST_SUITE="MAPPING_TEST_SUITE",Zo.MAPPING_TEST="MAPPING_TEST",Zo.STORE_TEST_DATA="STORE_TEST_DATA",Zo.INPUT_DATA="INPUT_DATA",Zo.FLAT_DATA_INPUT_DATA="FLAT_DATA_INPUT_DATA",Zo.RELATIONAL_INPUT_DATA="RELATIONAL_INPUT_DATA",Zo.OBJECT_INPUT_DATA="OBJECT_INPUT_DATA",Zo.MAPPING_TEST_ASSERT="MAPPING_TEST_ASSERT",Zo.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT="EXPECTED_OUTPUT_MAPPING_TEST_ASSERT",Zo.FILTER_MAPPING="FILTER_MAPPING",Zo.COLUMN_MAPPING="COLUMN_MAPPING",Zo.GROUP_BY_MAPPING="GROUP_BY_MAPPING",Zo.RUNTIME="RUNTIME",Zo.PACKAGEABLE_RUNTIME="PACKAGEABLE_RUNTIME",Zo.ENGINE_RUNTIME="ENGINE_RUNTIME",Zo.SINGLE_ENGINE_RUNTIME="SINGLE_ENGINE_RUNTIME",Zo.LEGACY_RUNTIME="LEGACY_RUNTIME",Zo.RUNTIME_POINTER="RUNTIME_POINTER",Zo.STORE_CONNECTIONS="STORE_CONNECTIONS",Zo.IDENTIFIED_CONNECTION="IDENTIFIED_CONNECTION",Zo.PACKAGEABLE_CONNECTION="PACKAGEABLE_CONNECTION",Zo.CONNECTION_POINTER="CONNECTION_POINTER",Zo.XML_MODEL_CONNECTION="XML_MODEL_CONNECTION",Zo.JSON_MODEL_CONNECTION="JSON_MODEL_CONNECTION",Zo.MODEL_CHAIN_CONNECTION="MODEL_CHAIN_CONNECTION",Zo.FLAT_DATA_CONNECTION="FLAT_DATA_CONNECTION",Zo.AGGREGATION_AWARE_MAPPING="AGGREGATION_AWARE_MAPPING",Zo.AGGREGATION_AWARE_SPECIFICATION="AGGREGATION_AWARE_SPECIFICATION",Zo.AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER="AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER",Zo.AGGREGATE_FUNCTION="AGGREGATE_FUNCTION",Zo.GROUP_BY_FUNCTION="GROUP_BY_FUNCTION",Zo.GENERATION_TREE="GENERATION_TREE",Zo.GENERATION_TREE_NODE="GENERATION_TREE_NODE",Zo.FILE_GENERATION="FILE_GENERATION",Zo.CONFIGURATION_PROPERTY="CONFIGURATION_PROPERTY",Zo.INTERNAL__UNKNOWN_EMBEDDED_DATA="INTERNAL__UNKNOWN_EMBEDDED_DATA",Zo.EXTERNAL_FORMAT_DATA="EXTERNAL_FORMAT_DATA",Zo.MODEL_STORE_DATA="MODEL_STORE_DATA",Zo.MODEL_DATA="MODEL_DATA",Zo.MODEL_EMBEDDED_DATA="MODEL_EMBEDDED_DATA",Zo.MODEL_INSTANCE_DATA="MODEL_INSTANCE_DATA",Zo.DATA_ELEMENT_REFERENCE="DATA_ELEMENT_REFERENCE",Zo.DATA_ELEMENT="DATA_ELEMENT",Zo.RELATIONAL_CSV_DATA="RELATIONAL_CSV_DATA",Zo.RELATIONAL_TDS="RELATIONAL_TDS",Zo.RELATIONAL_CSV_DATA_TABLE="RELATIONAL_CSV_DATA_TABLE",Zo.BINDING="BINDING",Zo.SCHEMA_SET="SCHEMA_SET",Zo.SCHEMA="SCHEMA",Zo.MODEL_UNIT="MODEL_UNIT",Zo.URL_STREAM="URL_STREAM",Zo.EXTERNAL_FORMAT_CONNECTION="EXTERNAL_FORMAT_CONNECTION",Zo.SERVICE="SERVICE",Zo.SERVICE_OWNER="SERVICE_OWNER",Zo.SERVICE_PURE_EXECUTION="SERVICE_PURE_EXECUTION",Zo.SERVICE_PURE_SINGLE_EXECUTION="SERVICE_PURE_SINGLE_EXECUTION",Zo.SERVICE_KEYED_EXECUTION_PARAMETER="SERVICE_KEYED_EXECUTION_PARAMETER",Zo.SERVICE_PURE_MULTI_EXECUTION="SERVICE_PURE_MULTI_EXECUTION",Zo.SERVICE_TEST_CONTAINER="SERVICE_TEST_CONTAINER",Zo.SERVICE_LEGACY_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_SINGLE_EXECUTION_TEST",Zo.SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST",Zo.SERVICE_LEGACY_MULTI_EXECUTION_TEST="SERVICE_LEGACY_MULTI_EXECUTION_TEST",Zo.SERVICE_CONNECTION_TEST_DATA="SERVICE_CONNECTION_TEST_DATA",Zo.SERVICE_TEST_DATA="SERVICE_TEST_DATA",Zo.SERVICE_TEST_SUITE="SERVICE_TEST_SUITE",Zo.SERVICE_TEST="SERVICE_TEST",Zo.SERVICE_PARAMETER_VALUE="SERVICE_PARAMETER_VALUE",Zo.SERVICE_POST_VALIDATION="SERVICE_POST_VALIDATION",Zo.SERVICE_POST_VALIDATION_ASSERTION="SERVICE_POST_VALIDATION_ASSERTION",Zo.EXECUTION_ENVIRONMENT_INSTANCE="EXECUTION_ENVIRONMENT_INSTANCE",Zo.SINGLE_EXECUTION_PARAMETER="SINGLE_EXECUTION_PARAMETER",Zo.MULTI_EXECUTION_PARAMETER="MULTI_EXECUTION_PARAMETER",Zo.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION="INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION",Zo.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY="INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY",Zo.INTERNAL__UNKNOWN_POST_PROCESSOR="INTERNAL__UNKNOWN_POST_PROCESSOR",Zo.DATABASE="DATABASE",Zo.DATABASE_SCHEMA="DATABASE_SCHEMA",Zo.DATABASE_JOIN="DATABASE_JOIN",Zo.DATABASE_FILTER="DATABASE_FILTER",Zo.DATBASE_VIEW="DATBASE_VIEW",Zo.DATABASE_SCHEMA_TABLE="DATABASE_SCHEMA_TABLE",Zo.DATABASE_TABLE_COLUMN="DATABASE_TABLE_COLUMN",Zo.RELATIONAL="RELATIONAL",Zo.RELATIONAL_OPERATION_DYNA_FUNC="RELATIONAL_OPERATION_DYNA_FUNC",Zo.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS="RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS",Zo.RELATIONAL_OPERATION_LITERAL="RELATIONAL_OPERATION_LITERAL",Zo.RELATIONAL_OPERATION_LITERAL_LIST="RELATIONAL_OPERATION_LITERAL_LIST",Zo.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN="RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN",Zo.RELATIONAL_OPERATION_TABLE_POINTER="RELATIONAL_OPERATION_TABLE_POINTER",Zo.RELATIONAL_OPERATION_JOIN_POINTER="RELATIONAL_OPERATION_JOIN_POINTER",Zo.RELATIONAL_DATATYPE_VARCHAR="RELATIONAL_DATATYPE_VARCHAR",Zo.RELATIONAL_DATATYPE_CHAR="RELATIONAL_DATATYPE_CHAR",Zo.RELATIONAL_DATATYPE_VARBINARY="RELATIONAL_DATATYPE_VARBINARY",Zo.RELATIONAL_DATATYPE_BINARY="RELATIONAL_DATATYPE_BINARY",Zo.RELATIONAL_DATATYPE_BIT="RELATIONAL_DATATYPE_BIT",Zo.RELATIONAL_DATATYPE_INTEGER="RELATIONAL_DATATYPE_INTEGER",Zo.RELATIONAL_DATATYPE_BIGINT="RELATIONAL_DATATYPE_BIGINT",Zo.RELATIONAL_DATATYPE_SMALLINT="RELATIONAL_DATATYPE_SMALLINT",Zo.RELATIONAL_DATATYPE_TINYINT="RELATIONAL_DATATYPE_TINYINT",Zo.RELATIONAL_DATATYPE_NUMERIC="RELATIONAL_DATATYPE_NUMERIC",Zo.RELATIONAL_DATATYPE_DECIMAL="RELATIONAL_DATATYPE_DECIMAL",Zo.RELATIONAL_DATATYPE_DOUBLE="RELATIONAL_DATATYPE_DOUBLE",Zo.RELATIONAL_DATATYPE_FLOAT="RELATIONAL_DATATYPE_FLOAT",Zo.RELATIONAL_DATATYPE_REAL="RELATIONAL_DATATYPE_REAL",Zo.RELATIONAL_DATATYPE_DATE="RELATIONAL_DATATYPE_DATE",Zo.RELATIONAL_DATATYPE_TIMESTAMP="RELATIONAL_DATATYPE_TIMESTAMP",Zo.RELATIONAL_DATATYPE_OTHER="RELATIONAL_DATATYPE_OTHER",Zo.RELATIONAL_DATATYPE_SEMISTRUCTURED="RELATIONAL_DATATYPE_SEMISTRUCTURED",Zo.RELATIONAL_DATATYPE_JSON="RELATIONAL_DATATYPE_JSON",Zo.ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION="ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Zo.RELATIONAL_INSTANCE_SET_IMPLEMENTATION="RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Zo.REALTIONAL_PROPERTY_MAPPING="REALTIONAL_PROPERTY_MAPPING",Zo.EMBEDDED_REALTIONAL_PROPERTY_MAPPING="EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Zo.INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Zo.OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Zo.BUSINESS_MILESTONING="BUSINESS_MILESTONING",Zo.BUSINESS_SNAPSHOT_MILESTONING="BUSINESS_SNAPSHOT_MILESTONING",Zo.PROCESSING_MILESTONING="PROCESSING_MILESTONING",Zo.RELATIONAL_DATABASE_CONNECTION="RELATIONAL_DATABASE_CONNECTION",Zo.STATIC_DATASOURCE_SPECIFICATION="STATIC_DATASOURCE_SPECIFICATION",Zo.LOCAL_H2_DATASOURCE_SPECIFICATION="LOCAL_H2_DATASOURCE_SPECIFICATION",Zo.EMBEDDED_H2_DATASOURCE_SPECIFICATION="EMBEDDED_H2_DATASOURCE_SPECIFICATION",Zo.SNOWFLAKE_DATASOURCE_SPECIFICATION="SNOWFLAKE_DATASOURCE_SPECIFICATION",Zo.REDSHIFT_DATASOURCE_SPECIFICATION="REDSHIFT_DATASOURCE_SPECIFICATION",Zo.BIGQUERY_DATASOURCE_SPECIFICATION="BIGQUERY_DATASOURCE_SPECIFICATION",Zo.DATABRICKS_DATASOURCE_SPECIFICATION="DATABRICKS_DATASOURCE_SPECIFICATION",Zo.SPANNER_DATASOURCE_SPECIFICATION="SPANNER_DATASOURCE_SPECIFICATION",Zo.TRINO_DATASOURCE_SPECIFICATION="TRINO_DATASOURCE_SPECIFICATION",Zo.TRINO_SSL_SPECIFICATION="TRINO_SSL_SPECIFICATION",Zo.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY="DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY",Zo.DEFAULT_H2_AUTHENTICATION_STRATEGY="DEFAULT_H2_AUTHENTICATION_STRATEGY",Zo.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY="SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY",Zo.API_TOKEN_AUTHENTICATION_STRATEGY="API_TOKEN_AUTHENTICATION_STRATEGY",Zo.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY="GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY",Zo.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Zo.OAUTH_AUTHENTICATION_STRATEGY="OAUTH_AUTHENTICATION_STRATEGY",Zo.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY="GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY",Zo.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Zo.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY="TRINO_KEREBEROS_AUTHENTICATION_STRATEGY",Zo.MAPPER_POST_PROCESSOR="MAPPER_POST_PROCESSOR",Zo.SCHEMA_MAPPER="SCHEMA_MAPPER",Zo.TABLE_MAPPER="TABLE_MAPPER",Zo.FLAT_DATA="FLAT_DATA",Zo.FLAT_DATA_SECTION="FLAT_DATA_SECTION",Zo.FLAT_DATA_PROPERTY="FLAT_DATA_PROPERTY",Zo.FLAT_DATA_ROOT_RECORD_TYPE="FLAT_DATA_ROOT_RECORD_TYPE",Zo.FLAT_DATA_RECORD_TYPE="FLAT_DATA_RECORD_TYPE",Zo.FLAT_DATA_RECORD_FIELD="FLAT_DATA_RECORD_FIELD",Zo.FLAT_DATA_STRING="FLAT_DATA_STRING",Zo.FLAT_DATA_BOOLEAN="FLAT_DATA_BOOLEAN",Zo.FLAT_DATA_NUMBER="FLAT_DATA_NUMBER",Zo.FLAT_DATA_INTEGER="FLAT_DATA_INTEGER",Zo.FLAT_DATA_FLOAT="FLAT_DATA_FLOAT",Zo.FLAT_DATA_DECIMAL="FLAT_DATA_DECIMAL",Zo.FLAT_DATA_DATE="FLAT_DATA_DATE",Zo.FLAT_DATA_DATE_TIME="FLAT_DATA_DATE_TIME",Zo.FLAT_DATA_STRICT_DATE="FLAT_DATA_STRICT_DATE",Zo.FLAT_DATA_INSTANCE_SET_IMPLEMENTATION="FLAT_DATA_INSTANCE_SET_IMPLEMENTATION",Zo.FLAT_DATA_PROPERTY_MAPPING="FLAT_DATA_PROPERTY_MAPPING",Zo.FLAT_DATA_ASSOCIATION_IMPLEMENTATION="FLAT_DATA_ASSOCIATION_IMPLEMENTATION",Zo.FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING="FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING",Zo.EMBEDDED_FLAT_DATA_PROPERTY_MAPPING="EMBEDDED_FLAT_DATA_PROPERTY_MAPPING",Zo.FLAT_DATA_SECTION_POINTER="FLAT_DATA_SECTION_POINTER",Zo.SNOWFLAKE_APP="SNOWFLAKE_APP",Zo.HOSTED_SERVICE="HOSTED_SERVICE",Zo.HOSTED_SERVICE_OWNER="HOSTED_SERVICE_OWNER";const Qo=e=>{return n={excludeKeys:e=>e.toLowerCase().endsWith("sourceInformation".toLowerCase())},z(J(t=e),"Can't hash non-object value"),Oo(t,n);var t,n},er=(e,t)=>ko([e?Qo(e):"",t?Qo(t):""]),tr=(e,t)=>[Jo.PACKAGEABLE_ELEMENT_POINTER,e??"",t].map(Ro).join(",");class nr{stereotypes=[];taggedValues=[]}class ir extends nr{name}class sr extends ir{_UUID=(0,o.A)();_isDeleted=!1;_isDisposed=!1;package;constructor(e){super(),this.name=e}get isDeleted(){return this._isDeleted}setIsDeleted(e){this._isDeleted=e}get path(){if(!this.package)return this.name;const e=this.package.path;return e?`${e}${Po}${this.name}`:this.name}dispose(){this._isDisposed=!0;try{this.hashCode}catch{}}get _elementHashCode(){return ko([Jo.PACKAGEABLE_ELEMENT,this.path])}get hashCode(){if(this._isDisposed)throw new P(`Element '${this.path}' is already disposed`);return this._elementHashCode}}class or extends sr{}class rr extends or{_subclasses=[];_generatedMilestonedProperties=[];properties=[];propertiesFromAssociations=[];derivedProperties=[];generalizations=[];constraints=[];dispose(){super.dispose(),this._subclasses=[],this.generalizations.forEach((e=>{const t=e.value.rawType;t._isDisposed||(t._subclasses=t._subclasses.filter((e=>!e._isDisposed)))}))}get _elementHashCode(){return ko([Jo.CLASS,this.path,ko(this.properties),ko(this.derivedProperties),ko(this.generalizations.map((e=>e.ownerReference.valueForSerialization??""))),ko(this.constraints),ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Class(this)}}class ar extends or{}class cr extends ar{values=[];get _elementHashCode(){return ko([Jo.ENUMERATION,this.path,ko(this.values),ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Enumeration(this)}}class lr extends ar{measure;conversionFunction;constructor(e,t,n){super(e),this.measure=t,this.conversionFunction=n}get hashCode(){return ko([Jo.UNIT,this.measure.path,this.conversionFunction??""])}accept_PackageableElementVisitor(e){throw new L}}class dr extends or{canonicalUnit;nonCanonicalUnits=[];get _elementHashCode(){return ko([Jo.MEASURE,this.path,this.canonicalUnit??"",ko(this.nonCanonicalUnits)])}accept_PackageableElementVisitor(e){return e.visit_Measure(this)}}class ur extends sr{children=[];get path(){return this.package?super.path:""}get hashCode(){return""}accept_PackageableElementVisitor(e){return e.visit_Package(this)}}class pr{_OWNER;parserName;elements=[];constructor(e,t){this.parserName=e,this._OWNER=t}get hashCode(){return ko([Jo.SECTION,this.parserName,ko(this.elements.map((e=>e.valueForSerialization??"")))])}}class hr extends pr{imports=[];get hashCode(){return ko([Jo.IMPORT_AWARE_CODE_SECTION,super.hashCode,ko(this.imports.map((e=>e.valueForSerialization??"")))])}}class mr extends pr{get hashCode(){return ko([Jo.DEFAULT_CODE_SECTION,super.hashCode])}}class gr{_UUID=(0,o.A)()}class fr extends gr{ownerReference;constructor(e){super(),this.ownerReference=e}}class _r extends gr{value;constructor(e){super(),this.value=e}}class Er extends _r{constructor(e){super(e)}static create(e){return new Er(e)}get valueForSerialization(){return this.value.path}}const Nr=Co((e=>(0,ke.Gn)(e,{name:ke.sH,value:ke.sH.ref,hashCode:ke.EW}))),br=Co((e=>(So(e),(0,ke.Gn)(e,{type:ke.sH,generationOutputPath:ke.sH,scopeElements:ke.sH,configurationProperties:ke.sH,_elementHashCode:ke.$Z}),e.scopeElements.forEach((e=>{e instanceof _r&&xo(e)})),e.configurationProperties.forEach(Nr),e))),vr=Co((e=>((0,ke.Gn)(e,{id:ke.sH,hashCode:ke.EW}),xo(e.generationElement),e))),Tr=Co((e=>(So(e),(0,ke.Gn)(e,{generationNodes:ke.sH,fileGenerations:ke.sH,_elementHashCode:ke.$Z}),e.generationNodes.forEach(vr),e.fileGenerations.forEach(xo),e)));class Cr{_OWNER;included;constructor(e,t){this._OWNER=e,this.included=t}}class yr extends Cr{storeSubstitutions=[];get hashCode(){return ko([Jo.MAPPING_INCLUDE_MAPPING,this.included.valueForSerialization??"",S(this.storeSubstitutions)?.original.valueForSerialization??"",S(this.storeSubstitutions)?.substitute.valueForSerialization??""])}}class Sr{}class Ar extends Sr{expectedOutput;constructor(e){super(),this.expectedOutput=ht(e)}get hashCode(){return ko([Jo.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT,this.expectedOutput])}}class Ir{}var xr,wr,Or;(Or=xr||(xr={})).JSON="JSON",Or.XML="XML";class Rr extends Ir{sourceClass;inputType;data;constructor(e,t,n){super(),this.sourceClass=e,this.inputType=t,this.data=t===xr.JSON?ht(n):n}get hashCode(){return ko([Jo.OBJECT_INPUT_DATA,this.sourceClass.valueForSerialization??"",this.inputType,this.data])}}class kr extends Ir{sourceFlatData;data;constructor(e,t){super(),this.sourceFlatData=e,this.data=t}get hashCode(){return ko([Jo.FLAT_DATA_INPUT_DATA,tr(Ko.STORE,this.sourceFlatData.valueForSerialization??""),this.data])}}!function(e){e.SQL="SQL",e.CSV="CSV"}(wr||(wr={}));class Pr extends Ir{database;data;inputType;constructor(e,t,n){super(),this.database=e,this.data=t,this.inputType=n}get hashCode(){return ko([Jo.RELATIONAL_INPUT_DATA,this.database.valueForSerialization??"",this.data,this.inputType])}}class Lr{}class Mr extends Lr{mappings=[];connectionStores=[];connections=[];get hashCode(){return ko([Jo.ENGINE_RUNTIME,ko(this.mappings.map((e=>tr(Ko.MAPPING,e.valueForSerialization??"")))),ko(this.connectionStores),ko(this.connections.filter((e=>e.storeConnections.length)))])}}class Dr extends Lr{packageableRuntime;constructor(e){super(),this.packageableRuntime=e}get hashCode(){return ko([Jo.RUNTIME_POINTER,this.packageableRuntime.valueForSerialization??""])}}const Fr=Co((e=>((0,ke.Gn)(e,{value:ke.sH,hashCode:ke.EW}),xo(e.type),e))),Br=Co((e=>(0,ke.Gn)(e,{body:ke.sH.ref,parameters:ke.sH.ref,hashCode:ke.EW}))),jr=Co((e=>((0,ke.Gn)(e,{name:ke.sH,multiplicity:ke.sH,hashCode:ke.EW}),xo(e.type),e)));class Vr{observerContext;constructor(e){this.observerContext=e}visit_RawLambda(e){Br(e)}visit_RawVariableExpression(e){jr(e)}visit_RawPrimitiveInstanceValue(e){Fr(e)}}yo(((e,t)=>(e.accept_RawValueSpecificationVisitor(new Vr(t)),e)));class Hr{_correspondingPrimitiveType;constructor(e){this._correspondingPrimitiveType=e}}class Gr extends Hr{trueString;falseString;get hashCode(){return ko([Jo.FLAT_DATA_BOOLEAN,this.trueString??"",this.falseString??""])}}class Ur extends Hr{get hashCode(){return ko([Jo.FLAT_DATA_STRING])}}class $r extends Hr{get hashCode(){return ko([Jo.FLAT_DATA_NUMBER])}}class Yr extends Hr{dateFormat;timeZone;get hashCode(){return ko([Jo.FLAT_DATA_DATE,this.dateFormat?ko(this.dateFormat):"",this.timeZone??""])}}class Wr extends Hr{fields=[];get hashCode(){return ko([Jo.FLAT_DATA_RECORD_TYPE,ko(this.fields)])}}const zr=yo(((e,t)=>(Zd(e,t),(0,ke.Gn)(e,{flatData:ke.sH,sectionName:ke.sH,hashCode:ke.EW}),e))),Kr=Co((e=>((0,ke.Gn)(e,{label:ke.sH,flatDataDataType:ke.sH,optional:ke.sH,address:ke.sH,hashCode:ke.EW}),(e=>{e instanceof Gr?(0,ke.Gn)(e,{trueString:ke.sH,falseString:ke.sH,hashCode:ke.EW}):e instanceof Ur||e instanceof $r?(0,ke.Gn)(e,{hashCode:ke.EW}):e instanceof Yr?(0,ke.Gn)(e,{dateFormat:ke.sH,timeZone:ke.sH,hashCode:ke.EW}):e instanceof Wr&&Co(Xr)(e)})(e.flatDataDataType),e)));function Xr(e){return(0,ke.Gn)(e,{fields:ke.sH,hashCode:ke.EW}),e.fields.forEach(Kr),e}Co(Xr);const qr=Co(Xr),Jr=Co((e=>((0,ke.Gn)(e,{name:ke.sH,value:ke.sH,hashCode:ke.EW}),e))),Zr=Co((e=>((0,ke.Gn)(e,{driverId:ke.sH,name:ke.sH,sectionProperties:ke.sH,recordType:ke.sH,hashCode:ke.EW}),e.sectionProperties.forEach(Jr),e.recordType&&qr(e.recordType),e))),Qr=(Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW}),xo(e.ownerReference),e))),Co((e=>(So(e),(0,ke.Gn)(e,{sections:ke.sH,_elementHashCode:ke.$Z}),e.sections.forEach(Zr),e)))),ea=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),ta=yo(((e,t)=>(au(e,t),(0,ke.Gn)(e,{filter:ke.sH,hashCode:ke.EW}),ea(e.sourceRootRecordType),e.filter&&Br(e.filter),e))),na=yo(((e,t)=>(Zd(e,t),au(e,t),(0,ke.Gn)(e,{rootInstanceSetImplementation:ke.sH,hashCode:ke.EW}),e))),ia=yo(((e,t)=>(Zd(e,t),(0,ke.Gn)(e,{transformer:ke.sH,transform:ke.sH,hashCode:ke.EW}),Br(e.transform),e))),sa=Co((e=>((0,ke.Gn)(e,{data:ke.sH,hashCode:ke.EW}),xo(e.sourceFlatData),e))),oa=Co((e=>((0,ke.Gn)(e,{url:ke.sH,hashCode:ke.EW}),e)));class ra{}class aa extends ra{serverPrincipal;get hashCode(){return ko([Jo.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY,this.serverPrincipal?.toString()??""])}}class ca extends ra{get hashCode(){return ko([Jo.DEFAULT_H2_AUTHENTICATION_STRATEGY])}}class la extends ra{apiToken;constructor(e){super(),this.apiToken=e}get hashCode(){return ko([Jo.API_TOKEN_AUTHENTICATION_STRATEGY,this.apiToken])}}class da extends ra{oauthKey;scopeName;constructor(e,t){super(),this.oauthKey=e,this.scopeName=t}get hashCode(){return ko([Jo.OAUTH_AUTHENTICATION_STRATEGY,this.oauthKey,this.scopeName])}}class ua extends ra{privateKeyVaultReference;passPhraseVaultReference;publicUserName;constructor(e,t,n){super(),this.privateKeyVaultReference=e,this.passPhraseVaultReference=t,this.publicUserName=n}get hashCode(){return ko([Jo.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY,this.privateKeyVaultReference,this.passPhraseVaultReference,this.publicUserName])}}class pa extends ra{get hashCode(){return ko([Jo.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY])}}class ha extends ra{serviceAccountEmail;additionalGcpScopes=[];constructor(e,t=[]){super(),this.serviceAccountEmail=e,this.additionalGcpScopes=t}get hashCode(){return ko([Jo.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY,this.serviceAccountEmail,ko(this.additionalGcpScopes)])}}class ma extends ra{baseVaultReference;userNameVaultReference;passwordVaultReference;constructor(e,t){super(),this.userNameVaultReference=e,this.passwordVaultReference=t}get hashCode(){return ko([Jo.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.baseVaultReference?.toString()??"",this.userNameVaultReference,this.passwordVaultReference])}}class ga extends ra{vaultReference;constructor(e){super(),this.vaultReference=e}get hashCode(){return ko([Jo.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.vaultReference])}}class fa extends ra{kerberosRemoteServiceName;kerberosUseCanonicalHostname;constructor(e,t){super(),this.kerberosRemoteServiceName=e,this.kerberosUseCanonicalHostname=t}get hashCode(){return ko([Jo.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY,this.kerberosRemoteServiceName,this.kerberosUseCanonicalHostname.toString()])}}class _a{}class Ea extends _a{host;port;databaseName;constructor(e,t,n){super(),this.host=e,this.port=t,this.databaseName=n}get hashCode(){return ko([Jo.STATIC_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.databaseName])}}class Na extends _a{hostname;port;protocol;httpPath;constructor(e,t,n,i){super(),this.hostname=e,this.port=t,this.protocol=n,this.httpPath=i}get hashCode(){return ko([Jo.DATABRICKS_DATASOURCE_SPECIFICATION,this.hostname,this.port,this.protocol,this.httpPath])}}class ba extends _a{databaseName;directory;autoServerMode;constructor(e,t,n){super(),this.databaseName=e,this.directory=t,this.autoServerMode=n}get hashCode(){return ko([Jo.EMBEDDED_H2_DATASOURCE_SPECIFICATION,this.databaseName,this.directory,this.autoServerMode.toString()])}}class va extends _a{testDataSetupCsv;testDataSetupSqls=[];get hashCode(){return ko([Jo.LOCAL_H2_DATASOURCE_SPECIFICATION,this.testDataSetupCsv??"",ko(this.testDataSetupSqls)])}}class Ta extends _a{accountName;region;warehouseName;databaseName;cloudType;quotedIdentifiersIgnoreCase;proxyHost;proxyPort;nonProxyHosts;organization;accountType;role;enableQueryTags;constructor(e,t,n,i){super(),this.region=t,this.warehouseName=n,this.databaseName=i,this.accountName=e}get hashCode(){return ko([Jo.SNOWFLAKE_DATASOURCE_SPECIFICATION,this.accountName,this.region,this.warehouseName,this.databaseName,this.cloudType??"",this.proxyHost??"",this.proxyPort??"",this.nonProxyHosts??"",this.organization??"",this.accountType??"",this.role??"",this.quotedIdentifiersIgnoreCase?.toString()??"",this.enableQueryTags?.toString()??""])}}class Ca extends _a{clusterID;databaseName;host;port;region;endpointURL;constructor(e,t,n,i,s,o){super(),this.clusterID=s,this.region=o,this.host=i,this.databaseName=e,this.endpointURL=t,this.port=n}get hashCode(){return ko([Jo.REDSHIFT_DATASOURCE_SPECIFICATION,this.databaseName,this.endpointURL,this.port.toString(),this.clusterID,this.host,this.region])}}class ya extends _a{projectId;defaultDataset;proxyHost;proxyPort;constructor(e,t){super(),this.projectId=e,this.defaultDataset=t}get hashCode(){return ko([Jo.BIGQUERY_DATASOURCE_SPECIFICATION,this.projectId,this.defaultDataset,this.proxyHost??"",this.proxyPort??""])}}class Sa extends _a{projectId;instanceId;databaseId;proxyHost;proxyPort;constructor(e,t,n,i,s){super(),this.projectId=e,this.instanceId=t,this.databaseId=n,this.proxyHost=i,this.proxyPort=s}get hashCode(){return ko([Jo.SPANNER_DATASOURCE_SPECIFICATION,this.projectId,this.instanceId,this.databaseId,this.proxyHost??"",this.proxyPort??""])}}class Aa extends _a{host;port;sslSpecification;catalog;schema;clientTags;constructor(e,t,n){super(),this.host=e,this.port=t,this.sslSpecification=n}get hashCode(){return ko([Jo.TRINO_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.sslSpecification,this.catalog??"",this.schema??"",this.clientTags??""])}}class Ia{}class xa extends Ia{_UUID=(0,o.A)();from;to;constructor(e,t){super(),this.from=e,this.to=t}get hashCode(){return ko([this.from,this.to])}}class wa extends xa{get hashCode(){return ko([super.hashCode,Jo.SCHEMA_MAPPER])}}class Oa extends xa{schema;constructor(e,t,n){super(e,t),this.schema=n}get hashCode(){return ko([super.hashCode,Jo.TABLE_MAPPER,this.schema])}}class Ra{_UUID=(0,o.A)()}class ka extends Ra{mappers=[];get hashCode(){return ko([Jo.MAPPER_POST_PROCESSOR,ko(this.mappers)])}}const Pa="{target}",La="default";class Ma{}class Da extends Ma{}class Fa extends Da{}class Ba extends Fa{name;parameters=[];constructor(e){super(),this.name=e}get hashCode(){return ko([Jo.RELATIONAL_OPERATION_DYNA_FUNC,this.name,ko(this.parameters)])}}var ja;!function(e){e.INNER="INNER",e.LEFT_OUTER="LEFT_OUTER",e.RIGHT_OUTER="RIGHT_OUTER",e.OUTER="OUTER"}(ja||(ja={}));const Va=e=>[e].concat(e.children.length?Va(e.children[0]):[]);class Ha extends Ma{relationalOperationElement;joinTreeNode;get hashCode(){return ko([Jo.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS,ko(this.joinTreeNode?Va(this.joinTreeNode):[]),this.relationalOperationElement??""])}}class Ga extends Ma{relation;name;database;isSelfJoinTarget=!1;get hashCode(){throw new L}}class Ua extends Ma{alias;column;columnName;get hashCode(){return ko([Jo.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN,this.alias.isSelfJoinTarget?this.alias.relation.selfJoinPointerHashCode:this.alias.relation.pointerHashCode,this.alias.isSelfJoinTarget?Pa:this.alias.name,this.column.value.name])}}class $a extends Ma{value;constructor(e){super(),this.value=e}get hashCode(){return ko([Jo.RELATIONAL_OPERATION_LITERAL,"number"==typeof this.value?this.value.toString():this.value])}}class Ya extends Ma{values=[];get hashCode(){return ko([Jo.RELATIONAL_OPERATION_LITERAL_LIST,ko(this.values)])}}class Wa extends Ma{owner;name;type;nullable;get hashCode(){return ko([Jo.DATABASE_TABLE_COLUMN,this.name,this.nullable?.toString()??"",this.type])}}class za{}class Ka extends za{infinityDate}class Xa{}class qa extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_BIGINT])}}class Ja extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_SMALLINT])}}class Za extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_TINYINT])}}class Qa extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_INTEGER])}}class ec extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_FLOAT])}}class tc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_DOUBLE])}}class nc extends Xa{size;constructor(e){super(),this.size=e}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_VARCHAR,this.size.toString()])}}class ic extends Xa{size;constructor(e){super(),this.size=e}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_CHAR,this.size.toString()])}}class sc extends Xa{size;constructor(e){super(),this.size=e}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_VARBINARY,this.size.toString()])}}class oc extends Xa{precision;scale;constructor(e,t){super(),this.precision=e,this.scale=t}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_DECIMAL,this.precision.toString(),this.scale.toString()])}}class rc extends Xa{precision;scale;constructor(e,t){super(),this.precision=e,this.scale=t}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_NUMERIC,this.precision.toString(),this.scale.toString()])}}class ac extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_TIMESTAMP])}}class cc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_VARCHAR])}}class lc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_BIT])}}class dc extends Xa{size;constructor(e){super(),this.size=e}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_BINARY,this.size.toString()])}}class uc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_REAL])}}class pc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_SEMISTRUCTURED])}}class hc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_JSON])}}class mc extends fr{ownerReference;constructor(e){super(e),this.ownerReference=e}}class gc extends mc{value;constructor(e,t){super(e),this.value=t}get pointerHashCode(){return[Jo.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",this.value.schema.name,this.value.name].map(Ro).join(",")}get selfJoinPointerHashCode(){return[Jo.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",La,Pa].map(Ro).join(",")}}class fc extends mc{value;constructor(e,t){super(e),this.value=t}get pointerHashCode(){return[Jo.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",this.value.schema.name,this.value.name].map(Ro).join(",")}get selfJoinPointerHashCode(){return[Jo.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",La,Pa].map(Ro).join(",")}}const _c=Co((e=>((0,ke.Gn)(e,{packageableElementIncludes:ke.sH,packageableElementExcludes:ke.sH,hashCode:ke.EW}),e.packageableElementIncludes.forEach(xo),e.packageableElementExcludes.forEach(xo),e))),Ec=(Co((e=>($d(e),(0,ke.Gn)(e,{schemaSet:ke.sH,schemaId:ke.sH,contentType:ke.sH,modelUnit:ke.sH,_elementHashCode:ke.$Z}),e.schemaSet&&xo(e.schemaSet),_c(e.modelUnit),e))),Co((e=>((0,ke.Gn)(e,{binding:ke.sH,hashCode:ke.EW}),xo(e.binding),e)))),Nc=Co((e=>((0,ke.Gn)(e,{url:ke.sH,hashCode:ke.EW}),e))),bc=(Co((e=>(Au(e),(0,ke.Gn)(e,{externalSource:ke.sH,hashCode:ke.EW}),Nc(e.externalSource),e))),Co((e=>(0,ke.Gn)(e,{id:ke.sH,location:ke.sH,content:ke.sH,hashCode:ke.EW}))));Co((e=>(So(e),(0,ke.Gn)(e,{format:ke.sH,schemas:ke.sH,_elementHashCode:ke.$Z}),e.schemas.forEach(bc),e)));class vc extends Ra{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_POST_PROCESSOR,Qo(this.content)])}}class Tc extends _a{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION,Qo(this.content)])}}class Cc extends ra{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY,Qo(this.content)])}}const yc=Co((e=>e instanceof qa||e instanceof Ja||e instanceof Za||e instanceof Qa||e instanceof ec||e instanceof tc||e instanceof ac||e instanceof Date||e instanceof cc||e instanceof lc||e instanceof uc||e instanceof pc||e instanceof hc?(0,ke.Gn)(e,{hashCode:ke.EW}):e instanceof nc||e instanceof ic||e instanceof sc||e instanceof dc?(0,ke.Gn)(e,{size:ke.sH,hashCode:ke.EW}):e instanceof oc||e instanceof rc?(0,ke.Gn)(e,{precision:ke.sH,scale:ke.sH,hashCode:ke.EW}):e)),Sc=Co((e=>((0,ke.Gn)(e,{name:ke.sH,type:ke.sH,nullable:ke.sH,hashCode:ke.EW}),yc(e.type),e))),Ac=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW,selfJoinPointerHashCode:ke.EW}),xo(e.ownerReference),e))),Ic=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW,selfJoinPointerHashCode:ke.EW}),xo(e.ownerReference),e))),xc=Co((e=>((0,ke.Gn)(e,{relation:ke.sH,name:ke.sH,database:ke.sH,isSelfJoinTarget:ke.sH}),(e=>{e instanceof fc?Ic(e):e instanceof gc&&Ac(e)})(e.relation),e))),wc=Co((e=>((0,ke.Gn)(e,{name:ke.sH,parameters:ke.sH,hashCode:ke.EW}),e.parameters.forEach(Fc),e))),Oc=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Rc=Co((e=>((0,ke.Gn)(e,{alias:ke.sH,column:ke.sH,columnName:ke.sH,hashCode:ke.EW}),xc(e.alias),Oc(e.column),e))),kc=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Pc=Co((e=>((0,ke.Gn)(e,{alias:ke.sH,children:ke.sH,joinType:ke.sH,hashCode:ke.EW}),e.alias&&xc(e.alias),e.children.forEach(Pc),kc(e.join),e))),Lc=Co((e=>((0,ke.Gn)(e,{relationalOperationElement:ke.sH,joinTreeNode:ke.sH,hashCode:ke.EW}),e.relationalOperationElement&&Fc(e.relationalOperationElement),e.joinTreeNode&&Pc(e.joinTreeNode),e))),Mc=Co((e=>((0,ke.Gn)(e,{value:ke.sH,hashCode:ke.EW}),e.value instanceof Ma&&Fc(e.value),e))),Dc=Co((e=>((0,ke.Gn)(e,{values:ke.sH,hashCode:ke.EW}),e.values.forEach(Mc),e)));function Fc(e){return e instanceof Ba?wc(e):e instanceof Ga?xc(e):e instanceof Ua?Rc(e):e instanceof Wa?Sc(e):e instanceof $a?Mc(e):e instanceof Ya?Dc(e):e instanceof Ha?Lc(e):e}const Bc=Co((e=>e)),jc=yo(((e,t)=>{if(e instanceof Ka)return Bc(e);const n=t.plugins.flatMap((e=>e.getExtraMilestoningObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e})),Vc=Co((e=>((0,ke.Gn)(e,{columnName:ke.sH,relationalOperationElement:ke.sH,hashCode:ke.EW}),Fc(e.relationalOperationElement),e))),Hc=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Gc=Co((e=>((0,ke.Gn)(e,{joinTreeNode:ke.sH,database:ke.sH,filterName:ke.sH,hashCode:ke.EW}),e.joinTreeNode&&Pc(e.joinTreeNode),Hc(e.filter),e))),Uc=Co((e=>((0,ke.Gn)(e,{columns:ke.sH}),e.columns.forEach(Fc),e))),$c=e=>{(0,ke.Gn)(e,{columns:ke.sH,name:ke.sH})},Yc=yo(((e,t)=>($c(e),(0,ke.Gn)(e,{primaryKey:ke.sH,hashCode:ke.EW}),e.primaryKey.forEach(Sc),e.milestoning.forEach((e=>jc(e,t))),e))),Wc=yo(((e,t)=>($c(e),(0,ke.Gn)(e,{primaryKey:ke.sH,columnMappings:ke.sH,filter:ke.sH,distinct:ke.sH,groupBy:ke.sH,hashCode:ke.EW}),e.primaryKey.forEach(Sc),e.columnMappings.forEach(Vc),e.filter&&Gc(e.filter),e.groupBy&&Uc(e.groupBy),e))),zc=yo(((e,t)=>((0,ke.Gn)(e,{name:ke.sH,tables:ke.sH,views:ke.sH,hashCode:ke.EW}),e.tables.forEach((e=>Yc(e,t))),e.views.forEach((e=>Wc(e,t))),e))),Kc=Co((e=>((0,ke.Gn)(e,{name:ke.sH,operation:ke.sH,hashCode:ke.EW}),Fc(e.operation),e))),Xc=Co((e=>((0,ke.Gn)(e,{name:ke.sH,target:ke.sH,aliases:ke.sH,operation:ke.sH,hashCode:ke.EW}),e.target&&xc(e.target),Fc(e.operation),e))),qc=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{schemas:ke.sH,joins:ke.sH,filters:ke.sH,_elementHashCode:ke.$Z}),e.schemas.forEach((e=>zc(e,t))),e.joins.forEach(Xc),e.filters.forEach(Kc),e))),Jc=yo(((e,t)=>(Zd(e,t),(0,ke.Gn)(e,{transformer:ke.sH,relationalOperation:ke.sH.ref,bindingTransformer:ke.sH,hashCode:ke.EW}),e.bindingTransformer&&Ec(e.bindingTransformer),e))),Zc=(e,t)=>(au(e,t),Zd(e,t),(0,ke.Gn)(e,{id:ke.sH,rootInstanceSetImplementation:ke.sH,primaryKey:ke.sH}),e.primaryKey.forEach(Fc),e),Qc=yo(Zc),el=yo(((e,t)=>(Zc(e,t),(0,ke.Gn)(e,{inlineSetImplementation:ke.sH}),gu(e.inlineSetImplementation,t),e))),tl=yo(((e,t)=>(Zc(e,t),(0,ke.Gn)(e,{otherwisePropertyMapping:ke.sH,hashCode:ke.EW}),nu(e.otherwisePropertyMapping,t),e))),nl=yo(((e,t)=>(au(e,t),(0,ke.Gn)(e,{primaryKey:ke.sH}),e.primaryKey.forEach(Fc),e))),il=yo(((e,t)=>(au(e,t),(0,ke.Gn)(e,{columnMappings:ke.sH,filter:ke.sH,distinct:ke.sH,groupBy:ke.sH,mainTableAlias:ke.sH,superSetImplementationId:ke.sH,hashCode:ke.EW}),e.columnMappings.forEach(Vc),e.filter&&Gc(e.filter),e.groupBy&&Uc(e.groupBy),e.mainTableAlias&&xc(e.mainTableAlias),e))),sl=Co((e=>((0,ke.Gn)(e,{data:ke.sH,inputType:ke.sH,hashCode:ke.EW}),xo(e.database),e))),ol=Co((e=>(0,ke.Gn)(e,{host:ke.sH,port:ke.sH,databaseName:ke.sH,hashCode:ke.EW}))),rl=Co((e=>(0,ke.Gn)(e,{hostname:ke.sH,port:ke.sH,protocol:ke.sH,httpPath:ke.sH,hashCode:ke.EW}))),al=Co((e=>(0,ke.Gn)(e,{databaseName:ke.sH,directory:ke.sH,autoServerMode:ke.sH,hashCode:ke.EW}))),cl=Co((e=>(0,ke.Gn)(e,{testDataSetupCsv:ke.sH,testDataSetupSqls:ke.sH,hashCode:ke.EW}))),ll=Co((e=>(0,ke.Gn)(e,{accountName:ke.sH,region:ke.sH,warehouseName:ke.sH,databaseName:ke.sH,cloudType:ke.sH,quotedIdentifiersIgnoreCase:ke.sH,enableQueryTags:ke.sH,proxyHost:ke.sH,proxyPort:ke.sH,nonProxyHosts:ke.sH,organization:ke.sH,accountType:ke.sH,role:ke.sH,hashCode:ke.EW}))),dl=Co((e=>(0,ke.Gn)(e,{databaseName:ke.sH,endpointURL:ke.sH,port:ke.sH,region:ke.sH,clusterID:ke.sH,host:ke.sH,hashCode:ke.EW}))),ul=Co((e=>(0,ke.Gn)(e,{projectId:ke.sH,defaultDataset:ke.sH,proxyHost:ke.sH,proxyPort:ke.sH,hashCode:ke.EW}))),pl=Co((e=>(0,ke.Gn)(e,{projectId:ke.sH,instanceId:ke.sH,databaseId:ke.sH,proxyHost:ke.sH,proxyPort:ke.sH,hashCode:ke.EW}))),hl=Co((e=>(0,ke.Gn)(e,{ssl:ke.sH,trustStorePathVaultReference:ke.sH,trustStorePasswordVaultReference:ke.sH,hashCode:ke.EW}))),ml=Co((e=>((0,ke.Gn)(e,{host:ke.sH,port:ke.sH,catalog:ke.sH,schema:ke.sH,clientTags:ke.sH,hashCode:ke.EW}),hl(e.sslSpecification),e))),gl=Co((e=>(0,ke.Gn)(e,{content:ke.sH.ref,hashCode:ke.EW}))),fl=Co((e=>(0,ke.Gn)(e,{serverPrincipal:ke.sH,hashCode:ke.EW}))),_l=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW}))),El=Co((e=>(0,ke.Gn)(e,{apiToken:ke.sH,hashCode:ke.EW}))),Nl=Co((e=>(0,ke.Gn)(e,{oauthKey:ke.sH,scopeName:ke.sH,hashCode:ke.EW}))),bl=Co((e=>(0,ke.Gn)(e,{privateKeyVaultReference:ke.sH,passPhraseVaultReference:ke.sH,publicUserName:ke.sH,hashCode:ke.EW}))),vl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW}))),Tl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW,userNameVaultReference:ke.sH,passwordVaultReference:ke.sH,baseVaultReference:ke.sH}))),Cl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW,serviceAccountEmail:ke.sH,additionalGcpScopes:ke.sH}))),yl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW,vaultReference:ke.sH}))),Sl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW,kerberosRemoteServiceName:ke.sH,kerberosUseCanonicalHostname:ke.sH}))),Al=Co((e=>(0,ke.Gn)(e,{content:ke.sH.ref,hashCode:ke.EW}))),Il=e=>{(0,ke.Gn)(e,{from:ke.sH,to:ke.sH,hashCode:ke.EW})},xl=Co((e=>(Il(e),e))),wl=Co((e=>(Il(e),(0,ke.Gn)(e,{schema:ke.sH}),xl(e.schema),e))),Ol=e=>{(0,ke.Gn)(e,{hashCode:ke.EW})},Rl=(e,t)=>{if(e instanceof vc)return(e=>(Ol(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))(e);if(e instanceof ka)return(e=>(Ol(e),(0,ke.Gn)(e,{mappers:ke.sH}),e.mappers.forEach((e=>{(e=>{e instanceof wa?xl(e):e instanceof Oa&&wl(e)})(e)})),e))(e);const n=t.plugins.flatMap((e=>e.getExtraPostProcessorObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e},kl=yo(((e,t)=>((e=>{Au(e),(0,ke.Gn)(e,{type:ke.sH,timeZone:ke.sH,quoteIdentifiers:ke.sH})})(e),(0,ke.Gn)(e,{datasourceSpecification:ke.sH,authenticationStrategy:ke.sH,localMode:ke.sH,postProcessors:ke.sH,hashCode:ke.EW}),((e,t)=>{if(e instanceof Tc)return gl(e);if(e instanceof Ea)return ol(e);if(e instanceof Na)return rl(e);if(e instanceof ba)return al(e);if(e instanceof va)return cl(e);if(e instanceof Ta)return ll(e);if(e instanceof Ca)return dl(e);if(e instanceof ya)return ul(e);if(e instanceof Sa)return pl(e);if(e instanceof Aa)return ml(e);const n=t.plugins.flatMap((e=>e.getExtraDatasourceSpecificationObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}})(e.datasourceSpecification,t),((e,t)=>{if(e instanceof Cc)return Al(e);if(e instanceof aa)return fl(e);if(e instanceof ca)return _l(e);if(e instanceof la)return El(e);if(e instanceof da)return Nl(e);if(e instanceof ua)return bl(e);if(e instanceof pa)return vl(e);if(e instanceof ma)return Tl(e);if(e instanceof ha)return Cl(e);if(e instanceof ga)return yl(e);if(e instanceof fa)return Sl(e);const n=t.plugins.flatMap((e=>e.getExtraAuthenticationStrategyObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}})(e.authenticationStrategy,t),e.postProcessors.forEach((e=>{Rl(e,t)})),e)));class Pl{id}class Ll extends Pl{__parent;doc;assertions=[]}class Ml extends Pl{__parent;doc;tests=[];skip}class Dl extends Ll{storeTestData=[];get hashCode(){return ko([Jo.MAPPING_TEST,this.id,this.doc??"",ko(this.storeTestData),ko(this.assertions)])}}class Fl extends Ml{func;get hashCode(){return ko([Jo.MAPPING_TEST_SUITE,this.id,this.doc??"",this.func,ko(this.tests)])}}class Bl extends Ll{serializationFormat;parameters=[];keys=[];get hashCode(){return ko([Jo.SERVICE_TEST,this.id,ko(this.assertions),ko(this.parameters),ko(this.keys),this.serializationFormat??""])}}class jl extends Ml{testData;get hashCode(){return ko([Jo.SERVICE_TEST_SUITE,this.id,ko(this.tests),this.testData??""])}}class Vl{id;parentTest}class Hl extends Vl{expected;get hashCode(){return ko([Jo.EQUAL_TO,this.id,Qo(this.expected)])}accept_TestAssertionVisitor(e){return e.visit_EqualTo(this)}}class Gl extends Vl{expected;get hashCode(){return ko([Jo.EQUAL_TO_JSON,this.id,this.expected])}accept_TestAssertionVisitor(e){return e.visit_EqualToJSON(this)}}class Ul extends Vl{expected;get hashCode(){return ko([Jo.EQUAL_TO_TDS,this.id,this.expected])}accept_TestAssertionVisitor(e){return e.visit_EqualToTDS(this)}}class $l{}class Yl extends $l{dataElement;get hashCode(){return ko([Jo.DATA_ELEMENT_REFERENCE,this.dataElement.valueForSerialization??""])}accept_EmbeddedDataVisitor(e){return e.visit_DataElementReference(this)}}class Wl extends $l{contentType;data;get hashCode(){return ko([Jo.EXTERNAL_FORMAT_DATA,this.contentType,this.data])}accept_EmbeddedDataVisitor(e){return e.visit_ExternalFormatData(this)}}class zl{model}class Kl extends zl{data;get hashCode(){return ko([Jo.MODEL_EMBEDDED_DATA,this.model.valueForSerialization??"",this.data])}}class Xl extends zl{instances;get hashCode(){return ko([Jo.MODEL_INSTANCE_DATA,this.model.valueForSerialization??"",Qo(this.instances)])}}class ql extends $l{modelData;get hashCode(){return ko([Jo.MODEL_STORE_DATA,this.modelData?ko(this.modelData):""])}accept_EmbeddedDataVisitor(e){return e.visit_ModelStoreData(this)}}class Jl extends $l{tables=[];accept_EmbeddedDataVisitor(e){return e.visit_RelationalCSVData(this)}get hashCode(){return ko([Jo.RELATIONAL_CSV_DATA_TABLE,ko(this.tables)])}}class Zl extends $l{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_EMBEDDED_DATA,Qo(this.content)])}accept_EmbeddedDataVisitor(e){return e.visit_INTERNAL__UnknownEmbeddedData(this)}}const Ql=Co((e=>((0,ke.Gn)(e,{contentType:ke.sH,data:ke.sH,hashCode:ke.EW}),e))),ed=Co((e=>((0,ke.Gn)(e,{dataElement:ke.sH,hashCode:ke.EW}),e))),td=yo(((e,t)=>((0,ke.Gn)(e,{model:ke.sH,data:ke.sH,hashCode:ke.EW}),cd(e.data,t),e))),nd=yo(((e,t)=>((0,ke.Gn)(e,{model:ke.sH,instances:ke.sH,hashCode:ke.EW}),e))),id=yo(((e,t)=>(e instanceof Kl?td(e,t):e instanceof Xl&&nd(e,t),e))),sd=yo(((e,t)=>((0,ke.Gn)(e,{modelData:ke.sH,hashCode:ke.EW}),e.modelData?.forEach((e=>{id(e,t)})),e))),od=Co((e=>((0,ke.Gn)(e,{values:ke.sH,table:ke.sH,schema:ke.sH,hashCode:ke.EW}),e))),rd=Co((e=>((0,ke.Gn)(e,{tables:ke.sH,hashCode:ke.EW}),e.tables.forEach(od),e))),ad=Co((e=>((0,ke.Gn)(e,{content:ke.sH.ref}),e)));function cd(e,t){if(e instanceof Zl)return ad(e);if(e instanceof Yl)return ed(e);if(e instanceof Wl)return Ql(e);if(e instanceof ql)return sd(e,t);if(e instanceof Jl)return rd(e);const n=t.plugins.flatMap((e=>e.getExtraEmbeddedDataObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e}const ld=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{stereotypes:ke.sH,taggedValues:ke.sH,data:ke.sH,_elementHashCode:ke.$Z}),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),cd(e.data,t),e)));class dd{}class ud extends dd{_OWNER;func;constructor(e,t){super(),this.func=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_PURE_EXECUTION,this.func])}}class pd extends ud{mapping;runtime;constructor(e,t,n,i){super(e,t),this.mapping=n,this.runtime=i}get hashCode(){return ko([Jo.SERVICE_PURE_SINGLE_EXECUTION,super.hashCode,this.mapping?.valueForSerialization??"",this.runtime??""])}}class hd extends ud{executionKey;executionParameters;constructor(e,t,n){super(t,n),this.executionKey=e}get hashCode(){return ko([Jo.SERVICE_PURE_MULTI_EXECUTION,super.hashCode,this.executionKey,ko(this.executionParameters??[])])}}class md{_OWNER;constructor(e){this._OWNER=e}}class gd extends md{data;asserts=[];constructor(e,t){super(e),this.data=t}get hashCode(){return ko([Jo.SERVICE_LEGACY_SINGLE_EXECUTION_TEST,this.data,ko(this.asserts)])}}class fd extends md{tests=[];get hashCode(){return ko([Jo.SERVICE_LEGACY_MULTI_EXECUTION_TEST,ko(this.tests)])}}class _d{}class Ed extends _d{_OWNER;identifier;constructor(e,t){super(),this.identifier=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_OWNER,this.identifier])}}class Nd extends _d{_OWNER;users=[];constructor(e,t){super(),this.users=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_OWNER,ko(this.users)])}}const bd=yo(((e,t)=>((0,ke.Gn)(e,{connectionId:ke.sH,testData:ke.sH,hashCode:ke.EW}),cd(e.testData,t),e))),vd=Co((e=>((0,ke.Gn)(e,{name:ke.sH,value:ke.sH.ref,hashCode:ke.EW}),e))),Td=Co((e=>((0,ke.Gn)(e,{assertion:ke.sH,hashCode:ke.EW,id:ke.sH}),Br(e.assertion),e))),Cd=Co((e=>((0,ke.Gn)(e,{assertions:ke.sH,description:ke.sH,parameters:ke.sH,hashCode:ke.EW}),e.assertions.forEach(Td),e.parameters.forEach(Br),e))),yd=yo(((e,t)=>((0,ke.Gn)(e,{connectionsTestData:ke.sH,hashCode:ke.EW}),e.connectionsTestData.forEach((e=>bd(e,t))),e))),Sd=Co((e=>((0,ke.Gn)(e,{id:ke.sH,serializationFormat:ke.sH,assertions:ke.sH,parameters:ke.sH,keys:ke.sH,hashCode:ke.EW}),e.parameters.forEach(vd),e.assertions.forEach(Ud),e))),Ad=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,tests:ke.sH,testData:ke.sH,hashCode:ke.EW}),e.tests.forEach((e=>Gd(e,t))),e.testData&&yd(e.testData,t),e))),Id=Co((e=>((0,ke.Gn)(e,{parametersValues:ke.sH,assert:ke.sH,singleExecutionTestParent:ke.sH,hashCode:ke.EW}),Br(e.assert),e))),xd=Co((e=>((0,ke.Gn)(e,{data:ke.sH,asserts:ke.sH,hashCode:ke.EW}),e.asserts.forEach(Id),e))),wd=Co((e=>(xd(e),(0,ke.Gn)(e,{key:ke.sH}),e))),Od=Co((e=>((0,ke.Gn)(e,{tests:ke.sH,hashCode:ke.EW}),e.tests.forEach(wd),e))),Rd=Co((e=>((0,ke.Gn)(e,{identifier:ke.sH,hashCode:ke.EW}),e))),kd=Co((e=>((0,ke.Gn)(e,{users:ke.sH,hashCode:ke.EW}),e))),Pd=e=>{(0,ke.Gn)(e,{func:ke.sH}),Br(e.func)},Ld=yo(((e,t)=>(Pd(e),(0,ke.Gn)(e,{runtime:ke.sH,hashCode:ke.EW}),e.mapping&&xo(e.mapping),e.runtime&&ju(e.runtime,t),e))),Md=yo(((e,t)=>((0,ke.Gn)(e,{key:ke.sH,runtime:ke.sH,hashCode:ke.EW}),xo(e.mapping),ju(e.runtime,t),e))),Dd=yo(((e,t)=>(Pd(e),(0,ke.Gn)(e,{executionKey:ke.sH,executionParameters:ke.sH,hashCode:ke.EW}),e.executionParameters?.forEach((e=>Md(e,t))),e))),Fd=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{pattern:ke.sH,owners:ke.sH,ownership:ke.sH,documentation:ke.sH,autoActivateUpdates:ke.sH,execution:ke.sH,test:ke.sH,tests:ke.sH,postValidations:ke.sH,patternParameters:ke.EW,_elementHashCode:ke.$Z}),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),((e,t)=>{e instanceof pd?Ld(e,t):e instanceof hd&&Dd(e,t)})(e.execution,t),e.test&&(e=>{e instanceof gd?xd(e):e instanceof fd&&Od(e)})(e.test),e.ownership&&(e=>{e instanceof Ed?Rd(e):e instanceof Nd&&kd(e)})(e.ownership),e.tests.forEach((e=>Ad(e,t))),e.postValidations.forEach((e=>Cd(e))),e)));class Bd extends Ll{parameters;get hashCode(){return ko([Jo.FUNCTION_TEST,this.id,this.doc??"",this.parameters?ko(this.parameters):""])}}const jd=Co((e=>((0,ke.Gn)(e,{id:ke.sH,expected:ke.sH,hashCode:ke.EW}),e))),Vd=Co((e=>((0,ke.Gn)(e,{id:ke.sH,expected:ke.sH,hashCode:ke.EW}),Ql(e.expected),e))),Hd=Co((e=>((0,ke.Gn)(e,{id:ke.sH,expected:ke.sH,hashCode:ke.EW}),Ql(e.expected),e)));function Gd(e,t){if(e instanceof Bl)return Sd(e);if(e instanceof Dl)return zd(e,t);if(e instanceof Bd)return bp(e);const n=t.plugins.flatMap((e=>e.getExtraAtomicTestObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e}function Ud(e){return e instanceof Hl?jd(e):e instanceof Gl?Hd(e):e instanceof Ul?Vd(e):e}const $d=e=>{So(e),(0,ke.Gn)(e,{includes:ke.sH}),e.includes.forEach(xo)},Yd=Co((e=>(So(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))),Wd=yo(((e,t)=>((0,ke.Gn)(e,{store:ke.sH,data:ke.sH,hashCode:ke.EW}),cd(e.data,t),e))),zd=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,assertions:ke.sH,doc:ke.sH,storeTestData:ke.sH,hashCode:ke.EW}),e.assertions.forEach(Ud),e.storeTestData.forEach((e=>Wd(e,t))),e))),Kd=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,tests:ke.sH,func:ke.sH,hashCode:ke.EW}),e.tests.forEach((e=>Gd(e,t))),Br(e.func),e))),Xd=Co((e=>((0,ke.Gn)(e,{value:ke.sH,valueForSerialization:ke.EW}),xo(e.ownerReference),e))),qd=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Jd=Co((e=>((0,ke.Gn)(e,{localMappingProperty:ke.sH,localMappingPropertyType:ke.sH,localMappingPropertyMultiplicity:ke.sH,hashCode:ke.EW}),xo(e.localMappingPropertyType),e))),Zd=(e,t)=>{(0,ke.Gn)(e,{sourceSetImplementation:ke.sH,targetSetImplementation:ke.sH}),gp(e.property),qd(e.sourceSetImplementation),e.targetSetImplementation&&qd(e.targetSetImplementation),e.localMappingProperty&&Jd(e.localMappingProperty)},Qd=yo(((e,t)=>(Zd(e,t),(0,ke.Gn)(e,{transformer:ke.sH,transform:ke.sH,explodeProperty:ke.sH,hashCode:ke.EW}),e.transformer&&Xd(e.transformer),Br(e.transform),e))),eu=Co((e=>(0,ke.Gn)(e,{content:ke.sH.ref})));class tu{observerContext;constructor(e){this.observerContext=e}visit_PropertyMapping(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraPropertyMappingObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownPropertyMapping(e){eu(e)}visit_PurePropertyMapping(e){Qd(e,this.observerContext)}visit_FlatDataPropertyMapping(e){ia(e,this.observerContext)}visit_EmbeddedFlatDataPropertyMapping(e){na(e,this.observerContext)}visit_RelationalPropertyMapping(e){Jc(e,this.observerContext)}visit_FlatDataAssociationPropertyMapping(e){zr(e,this.observerContext)}visit_EmbeddedRelationalPropertyMapping(e){Qc(e,this.observerContext)}visit_InlineEmbeddedRelationalPropertyMapping(e){el(e,this.observerContext)}visit_OtherwiseEmbeddedRelationalPropertyMapping(e){tl(e,this.observerContext)}visit_AggregationAwarePropertyMapping(e){}visit_XStorePropertyMapping(e){}}const nu=(e,t)=>(e.accept_PropertyMappingVisitor(new tu(t)),e),iu=Co((e=>(0,ke.Gn)(e,{isDefault:ke.EW,valueForSerialization:ke.EW}))),su=Co((e=>(0,ke.Gn)(e,{valueForSerialization:ke.EW}))),ou=e=>{(0,ke.Gn)(e,{root:ke.sH}),xo(e.class),iu(e.id),su(e.root)},ru=Co((e=>((0,ke.Gn)(e,{setImplementation:ke.sH,class:ke.sH,properties:ke.sH}),e))),au=(e,t)=>{ou(e),(0,ke.Gn)(e,{mappingClass:ke.sH,propertyMappings:ke.sH}),e.mappingClass&&ru(e.mappingClass),e.propertyMappings.forEach((e=>nu(e,t)))},cu=Co((e=>((0,ke.Gn)(e,{}),qd(e.setImplementation),e))),lu=e=>{ou(e),(0,ke.Gn)(e,{parameters:ke.sH,operation:ke.sH,hashCode:ke.EW}),e.parameters.forEach(cu)},du=Co((e=>(lu(e),e))),uu=Co((e=>(lu(e),(0,ke.Gn)(e,{validationFunction:ke.sH}),Br(e.validationFunction),e))),pu=yo(((e,t)=>(au(e,t),(0,ke.Gn)(e,{filter:ke.sH,hashCode:ke.EW}),e.srcClass&&xo(e.srcClass),e.filter&&Br(e.filter),e))),hu=Co((e=>(ou(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e)));class mu{observerContext;constructor(e){this.observerContext=e}visit_SetImplementation(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraSetImplementationObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownSetImplementation(e){hu(e)}visit_MergeOperationSetImplementation(e){uu(e)}visit_OperationSetImplementation(e){du(e)}visit_PureInstanceSetImplementation(e){pu(e,this.observerContext)}visit_FlatDataInstanceSetImplementation(e){ta(e,this.observerContext)}visit_EmbeddedFlatDataSetImplementation(e){}visit_RelationalInstanceSetImplementation(e){nl(e,this.observerContext)}visit_RootRelationalInstanceSetImplementation(e){il(e,this.observerContext)}visit_AggregationAwareSetImplementation(e){}visit_INTERNAL__UnresolvedSetImplementation(e){}}const gu=(e,t)=>(e.accept_SetImplementationVisitor(new mu(t)),e),fu=Co((e=>((0,ke.Gn)(e,{original:ke.sH,substitute:ke.sH}),xo(e.original),xo(e.substitute),e))),_u=Co((e=>e instanceof yr?((0,ke.Gn)(e,{included:ke.sH,storeSubstitutions:ke.sH}),xo(e.included),e.storeSubstitutions.forEach(fu),e):e)),Eu=Co((e=>(0,ke.Gn)(e,{value:ke.sH}))),Nu=Co((e=>((0,ke.Gn)(e,{sourceValues:ke.sH,hashCode:ke.EW}),lp(e.enum),e.sourceValues.forEach(Eu),e))),bu=Co((e=>((0,ke.Gn)(e,{sourceType:ke.sH,enumValueMappings:ke.sH,hashCode:ke.EW}),xo(e.enumeration),iu(e.id),e.sourceType&&xo(e.sourceType),e.enumValueMappings.forEach(Nu),e))),vu=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,stores:ke.sH,propertyMappings:ke.sH,hashCode:ke.EW}),xo(e.association),iu(e.id),e.stores.forEach(xo),e.propertyMappings.forEach((e=>nu(e,t))),e))),Tu=Co((e=>((0,ke.Gn)(e,{inputType:ke.sH,data:ke.sH,hashCode:ke.EW}),xo(e.sourceClass),e))),Cu=Co((e=>(0,ke.Gn)(e,{expectedOutput:ke.sH,hashCode:ke.EW}))),yu=yo(((e,t)=>((0,ke.Gn)(e,{name:ke.sH,query:ke.sH,inputData:ke.sH,assert:ke.sH,hashCode:ke.EW}),Br(e.query),e.inputData.forEach((e=>((e,t)=>{if(e instanceof Rr)return Tu(e);if(e instanceof kr)return sa(e);if(e instanceof Pr)return sl(e);const n=t.plugins.flatMap((e=>e.getExtraMappingTestInputDataObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e})(e,t))),((e,t)=>{e instanceof Ar&&Cu(e)})(e.assert),e))),Su=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{includes:ke.sH,classMappings:ke.sH,enumerationMappings:ke.sH,associationMappings:ke.sH,test:ke.sH,tests:ke.sH,_elementHashCode:ke.$Z}),e.includes.forEach(_u),e.classMappings.forEach((e=>gu(e,t))),e.enumerationMappings.forEach(bu),e.associationMappings.forEach((e=>vu(e,t))),e.test.forEach((e=>yu(e,t))),e.tests.forEach((e=>function(e,t){return e instanceof jl?Ad(e,t):e instanceof Fl?Kd(e,t):e}(e,t))),e))),Au=e=>{(0,ke.Gn)(e,{store:ke.sH}),xo(e.store)},Iu=Co((e=>(Au(e),(0,ke.Gn)(e,{hashCode:ke.EW}),e))),xu=Co((e=>(Au(e),(0,ke.Gn)(e,{url:ke.sH,hashCode:ke.EW}),xo(e.class),e))),wu=Co((e=>(Au(e),(0,ke.Gn)(e,{url:ke.sH,hashCode:ke.EW}),xo(e.class),e))),Ou=Co((e=>(Au(e),(0,ke.Gn)(e,{mappings:ke.sH,hashCode:ke.EW}),e.mappings.forEach(xo),e))),Ru=Co((e=>(Au(e),(0,ke.Gn)(e,{content:ke.sH.ref,hashCode:ke.EW}),e)));class ku{observerContext;constructor(e){this.observerContext=e}visit_Connection(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraConnectionObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownConnection(e){Ru(e)}visit_ConnectionPointer(e){Iu(e)}visit_ModelChainConnection(e){Ou(e)}visit_JsonModelConnection(e){xu(e)}visit_XmlModelConnection(e){wu(e)}visit_FlatDataConnection(e){oa(e)}visit_RelationalDatabaseConnection(e){kl(e,this.observerContext)}}const Pu=(e,t)=>(e.accept_ConnectionVisitor(new ku(t)),e),Lu=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{connectionValue:ke.sH,_elementHashCode:ke.$Z}),Pu(e.connectionValue,t),e))),Mu=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,connection:ke.sH,hashCode:ke.EW}),Pu(e.connection,t),e))),Du=yo(((e,t)=>((0,ke.Gn)(e,{storeConnections:ke.sH,hashCode:ke.EW}),xo(e.store),e.storeConnections.forEach((e=>Mu(e,t))),e))),Fu=yo(((e,t)=>((0,ke.Gn)(e,{mappings:ke.sH,connections:ke.sH,hashCode:ke.EW}),e.mappings.forEach(xo),e.connections.forEach((e=>Du(e,t))),e))),Bu=Co((e=>((0,ke.Gn)(e,{hashCode:ke.EW}),xo(e.packageableRuntime),e))),ju=(e,t)=>e instanceof Dr?Bu(e):e instanceof Mr?Fu(e,t):e,Vu=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{runtimeValue:ke.sH,_elementHashCode:ke.$Z}),Fu(e.runtimeValue,t),e))),Hu=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{_elementHashCode:ke.$Z}),e)));class Gu{observerContext;constructor(e){this.observerContext=e}visit_PackageableElement(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraElementObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownElement(e){Ao(e)}visit_INTERNAL__UnknownPackageableElement(e){Io(e)}visit_INTERNAL__UnknownFunctionActivator(e){yp(e)}visit_SnowflakeApp(e){Sp(e)}visit_HostedService(e){Ap(e)}visit_INTERNAL__UnknownStore(e){Yd(e)}visit_Package(e){Ju(e,this.observerContext)}visit_SectionIndex(e){sp(e)}visit_PrimitiveType(e){}visit_Profile(e){ap(e)}visit_Enumeration(e){dp(e)}visit_Measure(e){pp(e)}visit_Class(e){_p(e)}visit_Association(e){Ep(e)}visit_ConcreteFunctionDefinition(e){Cp(e,this.observerContext)}visit_FlatData(e){Qr(e)}visit_Database(e){qc(e,this.observerContext)}visit_Mapping(e){Su(e,this.observerContext)}visit_Service(e){Fd(e,this.observerContext)}visit_ExecutionEnvironmentInstance(e){Hu(e,this.observerContext)}visit_PackageableRuntime(e){Vu(e,this.observerContext)}visit_PackageableConnection(e){Lu(e,this.observerContext)}visit_FileGenerationSpecification(e){br(e)}visit_GenerationSpecification(e){Tr(e)}visit_DataElement(e){ld(e,this.observerContext)}}const Uu=yo(((e,t)=>(e.accept_PackageableElementVisitor(new Gu(t)),e)));class $u{}class Yu extends $u{_OWNER;id;constructor(e,t){super(),this.id=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_OWNER,this.id])}}class Wu extends $u{_OWNER;users=[];constructor(e,t){super(),this.users=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_OWNER,ko(this.users)])}}const zu=Co((e=>((0,ke.Gn)(e,{activationConnection:ke.sH}),e.activationConnection&&Iu(e.activationConnection),e))),Ku=Co((e=>((0,ke.Gn)(e,{id:ke.sH,hashCode:ke.EW}),e))),Xu=Co((e=>((0,ke.Gn)(e,{users:ke.sH,hashCode:ke.EW}),e))),qu=Co((e=>(e.host&&e.port&&e.path&&(0,ke.Gn)(e,{host:ke.sH,port:ke.sH,path:ke.sH}),e))),Ju=yo(((e,t)=>((e=>{So(e),(0,ke.Gn)(e,{children:ke.sH,hashCode:ke.$Z})})(e),e.children.forEach((e=>{e instanceof ur?Ju(e,t):Uu(e,t)})),e))),Zu=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW}),xo(e.ownerReference),e))),Qu=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW}),e))),ep=Co((e=>((0,ke.Gn)(e,{value:ke.sH,hashCode:ke.EW}),Qu(e.tag),e))),tp=Co((e=>(0,ke.Gn)(e,{rawType:ke.sH}))),np=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),tp(e.value),xo(e.ownerReference),e))),ip=Co((e=>((0,ke.Gn)(e,{parserName:ke.sH,elements:ke.sH}),e instanceof hr?(0,ke.Gn)(e,{imports:ke.sH,hashCode:ke.EW}):e instanceof mr&&(0,ke.Gn)(e,{hashCode:ke.EW}),e))),sp=Co((e=>(So(e),(0,ke.Gn)(e,{sections:ke.sH,_elementHashCode:ke.$Z}),e.sections.forEach(ip),e))),op=Co((e=>(0,ke.Gn)(e,{value:ke.sH}))),rp=Co((e=>(0,ke.Gn)(e,{value:ke.sH}))),ap=Co((e=>(So(e),(0,ke.Gn)(e,{p_stereotypes:ke.sH,p_tags:ke.sH,_elementHashCode:ke.$Z}),e.p_stereotypes.forEach(op),e.p_tags.forEach(rp),e))),cp=Co((e=>((0,ke.Gn)(e,{name:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,hashCode:ke.EW}),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),lp=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),dp=Co((e=>(So(e),(0,ke.Gn)(e,{values:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,_elementHashCode:ke.$Z}),e.values.forEach(cp),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),up=Co((e=>((0,ke.Gn)(e,{measure:ke.sH,conversionFunction:ke.sH,hashCode:ke.EW}),e.conversionFunction&&Br(e.conversionFunction),e))),pp=Co((e=>(So(e),(0,ke.Gn)(e,{canonicalUnit:ke.sH,nonCanonicalUnits:ke.sH,_elementHashCode:ke.$Z}),e.canonicalUnit&&up(e.canonicalUnit),e.nonCanonicalUnits.forEach(up),e))),hp=Co((e=>((0,ke.Gn)(e,{name:ke.sH,multiplicity:ke.sH,aggregation:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,hashCode:ke.EW}),np(e.genericType),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),mp=Co((e=>((0,ke.Gn)(e,{name:ke.sH,multiplicity:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,body:ke.sH.ref,parameters:ke.sH.ref,hashCode:ke.EW}),np(e.genericType),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),gp=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW}),xo(e.ownerReference),e))),fp=Co((e=>((0,ke.Gn)(e,{name:ke.sH,functionDefinition:ke.sH,externalId:ke.sH,enforcementLevel:ke.sH,messageFunction:ke.sH,hashCode:ke.EW}),Br(e.functionDefinition),e.messageFunction&&Br(e.messageFunction),e))),_p=Co((e=>(So(e),(0,ke.Gn)(e,{_subclasses:ke.sH,properties:ke.sH,propertiesFromAssociations:ke.sH,derivedProperties:ke.sH,generalizations:ke.sH,constraints:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,dispose:ke.$Z,_elementHashCode:ke.$Z}),e.properties.forEach(hp),e.propertiesFromAssociations.forEach(hp),e.derivedProperties.forEach(mp),e.generalizations.forEach(np),e.constraints.forEach(fp),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),Ep=Co((e=>(So(e),(0,ke.Gn)(e,{properties:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,derivedProperties:ke.sH,dispose:ke.$Z,_elementHashCode:ke.$Z}),e.properties.forEach(hp),e.derivedProperties.forEach(mp),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),Np=Co((e=>((0,ke.Gn)(e,{name:ke.sH,value:ke.sH.ref,hashCode:ke.EW}),e))),bp=Co((e=>((0,ke.Gn)(e,{id:ke.sH,doc:ke.sH,assertions:ke.sH,hashCode:ke.EW}),e.parameters?.forEach(Np),e.assertions.forEach(Ud),e))),vp=yo(((e,t)=>((0,ke.Gn)(e,{store:ke.sH,data:ke.sH,hashCode:ke.EW}),cd(e.data,t),e))),Tp=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,tests:ke.sH,testData:ke.sH,hashCode:ke.EW}),e.tests.forEach((e=>Gd(e,t))),e.testData?.forEach((e=>vp(e,t))),e))),Cp=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{functionName:ke.sH,returnMultiplicity:ke.sH,parameters:ke.sH.shallow,expressionSequence:ke.sH.ref,stereotypes:ke.sH,taggedValues:ke.sH,tests:ke.sH,_elementHashCode:ke.$Z}),e.parameters.forEach(jr),xo(e.returnType),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e.tests.forEach((e=>Tp(e,t))),e))),yp=Co((e=>(So(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))),Sp=Co((e=>(So(e),(0,ke.Gn)(e,{applicationName:ke.sH,description:ke.sH,ownership:ke.sH,activationConfiguration:ke.sH,_elementHashCode:ke.$Z}),zu(e.activationConfiguration),e))),Ap=Co((e=>(So(e),(0,ke.Gn)(e,{documentation:ke.sH,pattern:ke.sH,autoActivateUpdates:ke.sH,storeModel:ke.sH,generateLineage:ke.sH,ownership:ke.sH,activationConfiguration:ke.sH,_elementHashCode:ke.$Z}),(e=>{e instanceof Yu?Ku(e):e instanceof Wu&&Xu(e)})(e.ownership),e.activationConfiguration&&qu(e.activationConfiguration),e))),Ip=Co((e=>e instanceof cr?dp(e):e instanceof lr?up(e):e instanceof rr?_p(e):e instanceof dr?pp(e):e)),xp=(Co((e=>e instanceof cr?dp(e):e instanceof lr?up(e):e)),Co((e=>(0,ke.Gn)(e,{_dummyObservable:ke.sH})))),wp=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Op=Co((e=>(xp(e),(0,ke.Gn)(e,{id:ke.sH,hideProperties:ke.sH,hideTaggedValues:ke.sH,hideStereotypes:ke.sH,hashCode:ke.EW}),xo(e.class),e))),Rp=Co((e=>(wp(e.classView),e))),kp=Co((e=>((0,ke.Gn)(e,{path:ke.sH,pathForSerialization:ke.EW}),Rp(e.from),Rp(e.to),e))),Pp=Co((e=>(kp(e),(0,ke.Gn)(e,{hashCode:ke.EW}),e))),Lp=Co((e=>(kp(e),(0,ke.Gn)(e,{hashCode:ke.EW}),gp(e.property),xo(e.association),e))),Mp=Co((e=>(kp(e),(0,ke.Gn)(e,{hashCode:ke.EW}),gp(e.property),e))),Dp=Co((e=>(So(e),(0,ke.Gn)(e,{classViews:ke.sH,associationViews:ke.sH,generalizationViews:ke.sH,propertyViews:ke.sH,_elementHashCode:ke.$Z}),e.classViews.forEach(Op),e.associationViews.forEach(Lp),e.generalizationViews.forEach(Pp),e.propertyViews.forEach(Mp),e)));var Fp;!function(e){e.DIAGRAM="DIAGRAM",e.CLASS_VIEW="CLASS_VIEW",e.PROPERTY_VIEW="PROPERTY_VIEW",e.ASSOCIATION_VIEW="ASSOCIATION_VIEW",e.PROPERTY_HOLDER_VIEW="PROPERTY_HOLDER_VIEW",e.GENERALIZATION_VIEW="GENERALIZATION_VIEW",e.RELATIONSHIP_VIEW="RELATIONSHIP_VIEW",e.POINT="POINT",e.RECTANGLE="RECTANGLE",e.POSITIONED_RECTANGLE="POSITIONED_RECTANGLE"}(Fp||(Fp={}));class Bp extends sr{classViews=[];associationViews=[];generalizationViews=[];propertyViews=[];get _elementHashCode(){return ko([Fp.DIAGRAM,this.path,ko(this.classViews),ko(this.generalizationViews),ko(this.propertyViews)])}accept_PackageableElementVisitor(e){return e.visit_PackageableElement(this)}}class jp extends To{constructor(){super(vo.XO.ns,vo.rE)}getExtraElementObservers(){return[(e,t)=>{if(e instanceof Bp)return Dp(e)}]}}class Vp{package;name;get path(){return`${this.package}${Po}${this.name}`}get hashCode(){return ko([Jo.PACKAGEABLE_ELEMENT,this.path])}}class Hp extends Vp{classViews=[];propertyViews=[];generalizationViews=[];get hashCode(){return ko([Fp.DIAGRAM,this.path,ko(this.classViews),ko(this.generalizationViews),ko(this.propertyViews)])}accept_PackageableElementVisitor(e){return e.visit_PackageableElement(this)}}class Gp{rectangle;position;get hashCode(){return ko([Fp.POSITIONED_RECTANGLE,this.position,this.rectangle])}}class Up extends Gp{id;class;hideProperties;hideTaggedValues;hideStereotypes;get hashCode(){return ko([Fp.CLASS_VIEW,super.hashCode,this.id,this.class,this.hideProperties?.toString()??"",this.hideTaggedValues?.toString()??"",this.hideStereotypes?.toString()??""])}}class $p{x;y;get hashCode(){return ko([Fp.POINT,this.x.toString(),this.y.toString()])}}class Yp{width;height;get hashCode(){return ko([Fp.RECTANGLE,this.width.toString(),this.height.toString()])}}class Wp{points=[]}class zp{sourceView;targetView;line;get hashCode(){return ko([Fp.RELATIONSHIP_VIEW,this.sourceView,this.targetView,ko(this.line.points)])}}class Kp extends zp{property;get hashCode(){return ko([Fp.PROPERTY_HOLDER_VIEW,super.hashCode,this.property])}}class Xp extends Kp{get hashCode(){return ko([Fp.PROPERTY_VIEW,super.hashCode])}}class qp extends zp{get hashCode(){return ko([Fp.GENERALIZATION_VIEW,super.hashCode])}}class Jp{lowerBound=0;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return ko([Jo.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Jp(0,0);static ZERO_ONE=new Jp(0,1);static ZERO_MANY=new Jp(0,void 0);static ONE=new Jp(1,1);static ONE_MANY=new Jp(1,void 0)}const Zp=new fe((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 Qp{package;name;sourceInformation;static serialization=new fe((0,ge.PL)(Qp,{package:(0,ge.MY)(),name:(0,ge.MY)(),sourceInformation:be(Zp.schema)}))}const eh=(0,ge.PL)(class{type;path;constructor(e,t){this.type=e,this.path=t}get hashCode(){return ko([Jo.PACKAGEABLE_ELEMENT_POINTER,this.type??"",this.path])}},{path:(0,ge.MY)(),type:(0,ge.lq)((0,ge.MY)())}),th=(0,ge.PL)(Jp,{lowerBound:(0,ge.MY)(),upperBound:(0,ge.lq)((0,ge.MY)())});class nh{class;property;get hashCode(){return ko([Jo.PROPERTY_POINTER,this.property,this.class??""])}}class ih{}class sh{queryTimeOutInSeconds=null;enableConstraints=!0}var oh,rh;!function(e){e.BASE_EXECUTION_CONTEXT="BaseExecutionContext"}(oh||(oh={})),function(e){e.LAMBDA="lambda",e.VARIABLE="var",e.CINTEGER="integer",e.CDECIMAL="decimal",e.CSTRING="string",e.CBOOLEAN="boolean",e.CFLOAT="float",e.CDATETIME="dateTime",e.CSTRICTDATE="strictDate",e.CSTRICTTIME="strictTime",e.CLATESTDATE="latestDate"}(rh||(rh={})),(0,ge.PL)(class extends sh{},{_type:Ee(oh.BASE_EXECUTION_CONTEXT),queryTimeOutInSeconds:(0,ge.MY)(),enableConstraints:(0,ge.MY)()});const ah=(0,ge.PL)(class extends ih{body;parameters;get hashCode(){return ko([Jo.RAW_LAMBDA,er(this.parameters,this.body)])}accept_RawValueSpecificationVisitor(e){return e.visit_Lambda(this)}},{_type:Ee(rh.LAMBDA),body:(0,ge.lS)(),parameters:(0,ge.lS)()});(0,ge.PL)(class extends ih{class;name;multiplicity;get hashCode(){return ko([Jo.RAW_VARIABLE,this.class,this.name,this.multiplicity])}accept_RawValueSpecificationVisitor(e){return e.visit_Variable(this)}},{_type:Ee(rh.VARIABLE),class:(0,ge.MY)(),multiplicity:_e(th),name:(0,ge.MY)()}),(0,ge.PL)(class extends ih{multiplicity=Jp.ONE;type;value;get hashCode(){return ko([Jo.RAW_INSTANCE_VALUE,this.type,this.multiplicity,this.value??""])}accept_RawValueSpecificationVisitor(e){return e.visit_PrimitiveInstanceValue(this)}},{type:(0,ge.nK)("_type",(0,ge.Ie)((e=>{switch(e){case Fo.INTEGER:return rh.CINTEGER;case Fo.DECIMAL:return rh.CDECIMAL;case Fo.STRING:return rh.CSTRING;case Fo.BOOLEAN:return rh.CBOOLEAN;case Fo.FLOAT:return rh.CFLOAT;case Fo.DATETIME:return rh.CDATETIME;case Fo.STRICTDATE:return rh.CSTRICTDATE;case Fo.STRICTTIME:return rh.CSTRICTTIME;case Fo.LATESTDATE:return rh.CLATESTDATE;default:throw new L(`Can't serialize raw instance value type '${e}'`)}}),(e=>{switch(e){case rh.CINTEGER:return Fo.INTEGER;case rh.CDECIMAL:return Fo.DECIMAL;case rh.CSTRING:return Fo.STRING;case rh.CBOOLEAN:return Fo.BOOLEAN;case rh.CFLOAT:return Fo.FLOAT;case rh.CDATETIME:return Fo.DATETIME;case rh.CSTRICTDATE:return Fo.STRICTDATE;case rh.CSTRICTTIME:return Fo.STRICTTIME;case rh.CLATESTDATE:return Fo.LATESTDATE;default:throw new L(`Can't deserialize raw value instance value type '${e}'`)}}))),value:(0,ge.lq)((0,ge.MY)())});class ch extends Vp{function;activationConfiguration;ownership;stereotypes=[];taggedValues=[]}class lh{}class dh{store}class uh{}class ph{}var hh;!function(e){e.CONNECTION_POINTER="connectionPointer",e.MODEL_CHAIN_CONNECTION="ModelChainConnection",e.JSON_MODEL_CONNECTION="JsonModelConnection",e.XML_MODEL_CONNECTION="XmlModelConnection",e.FLAT_DATA_CONNECTION="FlatDataConnection",e.RELATIONAL_DATABASE_CONNECTION="RelationalDatabaseConnection"}(hh||(hh={}));const mh=(0,ge.PL)(class extends dh{connection;get hashCode(){return ko([Jo.CONNECTION_POINTER,this.connection])}accept_ConnectionVisitor(e){return e.visit_ConnectionPointer(this)}},{_type:Ee(hh.CONNECTION_POINTER),connection:(0,ge.MY)()});var gh;(0,ge.PL)(class extends dh{mappings=[];get hashCode(){return ko([Jo.MODEL_CHAIN_CONNECTION,ko(this.mappings)])}accept_ConnectionVisitor(e){return e.visit_ModelChainConnection(this)}},{_type:Ee(hh.MODEL_CHAIN_CONNECTION),store:(0,ge.nK)("element",(0,ge.lq)((0,ge.MY)())),mappings:(0,ge.p_)((0,ge.MY)())}),(0,ge.PL)(class extends dh{class;url;get hashCode(){return ko([Jo.JSON_MODEL_CONNECTION,this.class,this.url])}accept_ConnectionVisitor(e){return e.visit_JsonModelConnection(this)}},{_type:Ee(hh.JSON_MODEL_CONNECTION),class:(0,ge.MY)(),store:(0,ge.nK)("element",(0,ge.lq)((0,ge.MY)())),url:(0,ge.MY)()}),(0,ge.PL)(class extends dh{class;url;get hashCode(){return ko([Jo.XML_MODEL_CONNECTION,this.class,this.url])}accept_ConnectionVisitor(e){return e.visit_XmlModelConnection(this)}},{_type:Ee(hh.XML_MODEL_CONNECTION),class:(0,ge.MY)(),store:(0,ge.nK)("element",(0,ge.lq)((0,ge.MY)())),url:(0,ge.MY)()}),(0,ge.PL)(class extends dh{url;get hashCode(){return ko([Jo.FLAT_DATA_CONNECTION,this.store??"",this.url])}accept_ConnectionVisitor(e){return e.visit_FlatDataConnection(this)}},{_type:Ee(hh.FLAT_DATA_CONNECTION),store:(0,ge.nK)("element",(0,ge.MY)()),url:(0,ge.MY)()}),function(e){e.STATIC="static",e.H2_EMBEDDED="h2Embedded",e.H2_LOCAL="h2Local",e.DATABRICKS="databricks",e.SNOWFLAKE="snowflake",e.REDSHIFT="redshift",e.BIGQUERY="bigQuery",e.SPANNER="spanner",e.TRINO="Trino"}(gh||(gh={})),(0,ge.PL)(class extends uh{host;port;databaseName;get hashCode(){return ko([Jo.STATIC_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.databaseName])}},{_type:Ee(gh.STATIC),databaseName:(0,ge.MY)(),host:(0,ge.MY)(),port:(0,ge.MY)()}),(0,ge.PL)(class extends uh{databaseName;directory;autoServerMode;get hashCode(){return ko([Jo.EMBEDDED_H2_DATASOURCE_SPECIFICATION,this.databaseName,this.directory,this.autoServerMode.toString()])}},{_type:Ee(gh.H2_EMBEDDED),autoServerMode:(0,ge.MY)(),databaseName:(0,ge.MY)(),directory:(0,ge.MY)()}),(0,ge.PL)(class extends uh{testDataSetupCsv;testDataSetupSqls=[];get hashCode(){return ko([Jo.LOCAL_H2_DATASOURCE_SPECIFICATION,this.testDataSetupCsv??"",ko(this.testDataSetupSqls)])}},{_type:Ee(gh.H2_LOCAL),testDataSetupCsv:(0,ge.lq)((0,ge.MY)()),testDataSetupSqls:Se()}),(0,ge.PL)(class extends uh{hostname;port;protocol;httpPath;get hashCode(){return ko([Jo.DATABRICKS_DATASOURCE_SPECIFICATION,this.hostname,this.port,this.protocol,this.httpPath])}},{_type:Ee(gh.DATABRICKS),hostname:(0,ge.MY)(),port:(0,ge.MY)(),protocol:(0,ge.MY)(),httpPath:(0,ge.MY)()}),(0,ge.PL)(class extends uh{accountName;region;warehouseName;databaseName;cloudType;quotedIdentifiersIgnoreCase;enableQueryTags;proxyHost;proxyPort;nonProxyHosts;organization;accountType;role;get hashCode(){return ko([Jo.SNOWFLAKE_DATASOURCE_SPECIFICATION,this.accountName,this.region,this.warehouseName,this.databaseName,this.cloudType??"",this.proxyHost??"",this.proxyPort??"",this.nonProxyHosts??"",this.organization??"",this.accountType??"",this.role??"",this.quotedIdentifiersIgnoreCase?.toString()??"",this.enableQueryTags?.toString()??""])}},{_type:Ee(gh.SNOWFLAKE),accountName:(0,ge.MY)(),accountType:(0,ge.lq)((0,ge.MY)()),cloudType:(0,ge.lq)((0,ge.MY)()),databaseName:(0,ge.MY)(),nonProxyHosts:(0,ge.lq)((0,ge.MY)()),organization:(0,ge.lq)((0,ge.MY)()),proxyHost:(0,ge.lq)((0,ge.MY)()),proxyPort:(0,ge.lq)((0,ge.MY)()),quotedIdentifiersIgnoreCase:(0,ge.lq)((0,ge.MY)()),enableQueryTags:(0,ge.lq)((0,ge.MY)()),region:(0,ge.MY)(),role:(0,ge.lq)((0,ge.MY)()),warehouseName:(0,ge.MY)()}),(0,ge.PL)(class extends uh{clusterID;databaseName;host;port;region;endpointURL;get hashCode(){return ko([Jo.REDSHIFT_DATASOURCE_SPECIFICATION,this.databaseName,this.endpointURL,this.port.toString(),this.clusterID,this.host,this.region])}},{_type:Ee(gh.REDSHIFT),clusterID:(0,ge.MY)(),databaseName:(0,ge.MY)(),endpointURL:(0,ge.lq)((0,ge.MY)()),host:(0,ge.MY)(),port:(0,ge.MY)(),region:(0,ge.MY)()}),(0,ge.PL)(class extends uh{projectId;defaultDataset;proxyHost;proxyPort;get hashCode(){return ko([Jo.BIGQUERY_DATASOURCE_SPECIFICATION,this.projectId,this.defaultDataset,this.proxyHost??"",this.proxyPort??""])}},{_type:Ee(gh.BIGQUERY),defaultDataset:(0,ge.MY)(),projectId:(0,ge.MY)(),proxyHost:(0,ge.lq)((0,ge.MY)()),proxyPort:(0,ge.lq)((0,ge.MY)())}),(0,ge.PL)(class extends uh{projectId;instanceId;databaseId;proxyHost;proxyPort;get hashCode(){return ko([Jo.SPANNER_DATASOURCE_SPECIFICATION,this.projectId,this.instanceId,this.databaseId,this.proxyHost??"",this.proxyPort??""])}},{_type:Ee(gh.SPANNER),databaseId:(0,ge.MY)(),instanceId:(0,ge.MY)(),projectId:(0,ge.MY)(),proxyHost:(0,ge.lq)((0,ge.MY)()),proxyPort:(0,ge.lq)((0,ge.MY)())});const fh=(0,ge.PL)(class{ssl;trustStorePathVaultReference;trustStorePasswordVaultReference;get hashCode(){return ko([Jo.TRINO_SSL_SPECIFICATION,this.ssl.toString(),this.trustStorePathVaultReference??"",this.trustStorePasswordVaultReference??""])}},{ssl:(0,ge.MY)(),trustStorePathVaultReference:(0,ge.lq)((0,ge.MY)()),trustStorePasswordVaultReference:(0,ge.lq)((0,ge.MY)())});var _h;(0,ge.PL)(class extends uh{host;port;sslSpecification;catalog;schema;clientTags;get hashCode(){return ko([Jo.TRINO_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.sslSpecification,this.catalog??"",this.schema??"",this.clientTags??""])}},{_type:Ee(gh.TRINO),host:(0,ge.MY)(),port:(0,ge.MY)(),catalog:(0,ge.lq)((0,ge.MY)()),schema:(0,ge.lq)((0,ge.MY)()),clientTags:(0,ge.lq)((0,ge.MY)()),sslSpecification:_e(fh)}),function(e){e.DELEGATED_KERBEROS="delegatedKerberos",e.SNOWFLAKE_PUBLIC="snowflakePublic",e.GCP_APPLICATION_DEFAULT_CREDENTIALS="gcpApplicationDefaultCredentials",e.API_TOKEN="apiToken",e.H2_DEFAULT="h2Default",e.OAUTH="oauth",e.USERNAME_PASSWORD="userNamePassword",e.GCP_WORKLOAD_IDENTITY_FEDERATION="gcpWorkloadIdentityFederation",e.MIDDLE_TIER_USERNAME_PASSWORD="middleTierUserNamePassword",e.TRINO_DELEGATED_KERBEROS="TrinoDelegatedKerberosAuth"}(_h||(_h={})),(0,ge.PL)(class extends ph{serverPrincipal;get hashCode(){return ko([Jo.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY,this.serverPrincipal?.toString()??""])}},{_type:Ee(_h.DELEGATED_KERBEROS),serverPrincipal:(0,ge.lq)((0,ge.MY)())}),(0,ge.PL)(class extends ph{get hashCode(){return ko([Jo.DEFAULT_H2_AUTHENTICATION_STRATEGY])}},{_type:Ee(_h.H2_DEFAULT)}),(0,ge.PL)(class extends ph{apiToken;get hashCode(){return ko([Jo.API_TOKEN_AUTHENTICATION_STRATEGY,this.apiToken])}},{_type:Ee(_h.API_TOKEN),apiToken:(0,ge.MY)()}),(0,ge.PL)(class extends ph{privateKeyVaultReference;passPhraseVaultReference;publicUserName;get hashCode(){return ko([Jo.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY,this.privateKeyVaultReference,this.passPhraseVaultReference,this.publicUserName])}},{_type:Ee(_h.SNOWFLAKE_PUBLIC),privateKeyVaultReference:(0,ge.MY)(),passPhraseVaultReference:(0,ge.MY)(),publicUserName:(0,ge.MY)()}),(0,ge.PL)(class extends ph{get hashCode(){return ko([Jo.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY])}},{_type:Ee(_h.GCP_APPLICATION_DEFAULT_CREDENTIALS)}),(0,ge.PL)(class extends ph{vaultReference;get hashCode(){return ko([Jo.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.vaultReference])}},{_type:Ee(_h.MIDDLE_TIER_USERNAME_PASSWORD),vaultReference:(0,ge.MY)()}),(0,ge.PL)(class extends ph{serviceAccountEmail;additionalGcpScopes=[];get hashCode(){return ko([Jo.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY,this.serviceAccountEmail,ko(this.additionalGcpScopes)])}},{_type:Ee(_h.GCP_WORKLOAD_IDENTITY_FEDERATION),additionalGcpScopes:(0,ge.p_)((0,ge.MY)()),serviceAccountEmail:(0,ge.MY)()}),(0,ge.PL)(class extends ph{baseVaultReference;userNameVaultReference;passwordVaultReference;get hashCode(){return ko([Jo.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.baseVaultReference?.toString()??"",this.userNameVaultReference,this.passwordVaultReference])}},{_type:Ee(_h.USERNAME_PASSWORD),baseVaultReference:(0,ge.lq)((0,ge.MY)()),userNameVaultReference:(0,ge.MY)(),passwordVaultReference:(0,ge.MY)()}),(0,ge.PL)(class extends ph{kerberosRemoteServiceName;kerberosUseCanonicalHostname;get hashCode(){return ko([Jo.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY,this.kerberosRemoteServiceName,this.kerberosUseCanonicalHostname.toString()])}},{_type:Ee(_h.TRINO_DELEGATED_KERBEROS),kerberosRemoteServiceName:(0,ge.MY)(),kerberosUseCanonicalHostname:(0,ge.lq)((0,ge.MY)())}),(0,ge.PL)(class extends ph{oauthKey;scopeName;get hashCode(){return ko([Jo.OAUTH_AUTHENTICATION_STRATEGY,this.oauthKey,this.scopeName])}},{_type:Ee(_h.OAUTH),oauthKey:(0,ge.MY)(),scopeName:(0,ge.MY)()}),(0,ge.PL)(class extends dh{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_CONNECTION,Qo(this.content)])}accept_ConnectionVisitor(e){return e.visit_INTERNAL__UnknownConnection(this)}},{store:(0,ge.nK)("element",(0,ge.lq)((0,ge.MY)()))});class Eh{}class Nh extends Eh{id;get hashCode(){return ko([Jo.SERVICE_OWNER,this.id])}}class bh extends Eh{users=[];get hashCode(){return ko([Jo.SERVICE_OWNER,ko(this.users)])}}const vh=(0,ge.PL)(class extends lh{activationConnection;get hashCode(){return ko([this.activationConnection??""])}},{_type:Ee("snowflakeDeploymentConfiguration"),activationConnection:_e(mh)}),Th=(0,ge.PL)(class extends lh{host;port;path;get hashCode(){return ko([this.host??"",this.port??"",this.path??""])}},{_type:Ee("hostedServiceDeploymentConfiguration"),host:(0,ge.MY)(),port:(0,ge.MY)(),path:(0,ge.MY)()});var Ch;!function(e){e.DEPLOYMENT_OWNERSHIP="DeploymentOwner",e.USERLIST_OWNERSHIP="userList"}(Ch||(Ch={}));const yh=(0,ge.PL)(Nh,{_type:Ee(Ch.DEPLOYMENT_OWNERSHIP),id:(0,ge.MY)()}),Sh=(0,ge.PL)(bh,{_type:Ee(Ch.USERLIST_OWNERSHIP),users:(0,ge.p_)((0,ge.MY)())}),Ah=(0,ge.PL)(nh,{class:(0,ge.lq)((0,ge.MY)()),property:(0,ge.MY)()}),Ih=(0,ge.PL)(class{profile;value;get hashCode(){return ko([Jo.STEREOTYPE_POINTER,this.value,this.profile])}},{profile:(0,ge.MY)(),value:(0,ge.MY)()}),xh=(0,ge.PL)(class{profile;value;get hashCode(){return ko([Jo.TAG_POINTER,this.value,this.profile])}},{profile:(0,ge.MY)(),value:(0,ge.MY)()}),wh=(0,ge.PL)(class{tag;value;get hashCode(){return ko([Jo.TAGGED_VALUE,this.tag,this.value])}},{tag:_e(xh),value:(0,ge.MY)()}),Oh=((0,ge.PL)(class extends Vp{stereotypes=[];tags=[];get hashCode(){return ko([Jo.PROFILE,this.path,ko(this.stereotypes),ko(this.tags)])}accept_PackageableElementVisitor(e){return e.visit_Profile(this)}},{_type:Ee("profile"),name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:(0,ge.p_)((0,ge.MY)()),tags:(0,ge.p_)((0,ge.MY)())}),(0,ge.PL)(class{value;stereotypes=[];taggedValues=[];get hashCode(){return ko([Jo.ENUM_VALUE,this.value,ko(this.stereotypes),ko(this.taggedValues)])}},{stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),value:(0,ge.MY)()})),Rh=((0,ge.PL)(class extends Vp{values=[];stereotypes=[];taggedValues=[];get hashCode(){return ko([Jo.ENUMERATION,this.path,ko(this.values),ko(this.stereotypes),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Enumeration(this)}},{_type:Ee("Enumeration"),name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),values:(0,ge.p_)(_e(Oh))}),(0,ge.PL)(class extends Vp{measure;conversionFunction;get hashCode(){return ko([Jo.UNIT,this.measure,this.conversionFunction??""])}accept_PackageableElementVisitor(e){throw new L}},{_type:Ee("unit"),conversionFunction:(0,ge.lq)(_e(ah)),measure:(0,ge.MY)(),name:(0,ge.MY)(),package:(0,ge.MY)()})),kh=((0,ge.PL)(class extends Vp{canonicalUnit;nonCanonicalUnits=[];get hashCode(){return ko([Jo.MEASURE,this.path,this.canonicalUnit??"",ko(this.nonCanonicalUnits)])}accept_PackageableElementVisitor(e){return e.visit_Measure(this)}},{_type:Ee("measure"),canonicalUnit:(0,ge.lq)(_e(Rh)),name:(0,ge.MY)(),nonCanonicalUnits:(0,ge.p_)(_e(Rh)),package:(0,ge.MY)()}),(0,ge.PL)(class extends ch{applicationName;description;accept_PackageableElementVisitor(e){return e.visit_SnowflakeApp(this)}get hashCode(){return ko([Jo.SNOWFLAKE_APP,this.applicationName,this.description??"",this.ownership,this.activationConfiguration])}},{_type:Ee("snowflakeApp"),description:(0,ge.lq)((0,ge.MY)()),applicationName:(0,ge.MY)(),function:_e(eh),name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),activationConfiguration:_e(vh),ownership:Ne((e=>{return t=e,(0,ge.lK)(yh,t);var t}),(e=>{return t=e,(0,ge.iu)(yh,t);var t}))}),(0,ge.PL)(class extends ch{documentation;pattern;autoActivateUpdates;storeModel;generateLineage;accept_PackageableElementVisitor(e){return e.visit_HostedService(this)}get hashCode(){return ko([Jo.HOSTED_SERVICE,this.documentation??"",this.pattern,this.autoActivateUpdates,this.storeModel??"",this.generateLineage??"",this.activationConfiguration,this.ownership])}},{_type:Ee("hostedService"),documentation:(0,ge.lq)((0,ge.MY)()),pattern:(0,ge.MY)(),autoActivateUpdates:(0,ge.MY)(),storeModel:(0,ge.MY)(),generateLineage:(0,ge.MY)(),function:_e(eh),name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),ownership:Ne((e=>(e=>{if(e instanceof Nh)return(0,ge.lK)(yh,e);if(e instanceof bh)return(0,ge.lK)(Sh,e);throw new L("Can't serialize function activator ownership",e)})(e)),(e=>(e=>{switch(e._type){case Ch.DEPLOYMENT_OWNERSHIP:return(0,ge.iu)(yh,e);case Ch.USERLIST_OWNERSHIP:return(0,ge.iu)(Sh,e);default:throw new L(`Can't deserialize rest service ownership of type '${e._type}'`)}})(e))),activationConfiguration:(0,ge.lq)(_e(Th))}),(0,ge.PL)(class{value;get hashCode(){return ko([Jo.PROPERTY_DEFAULT_VALUE,Qo(this.value)])}},{value:(0,ge.lS)()})),Ph=(0,ge.PL)(class{name;type;multiplicity;aggregation;defaultValue;stereotypes=[];taggedValues=[];get hashCode(){return ko([Jo.PROPERTY,this.name,this.multiplicity,this.type,this.aggregation??"",this.defaultValue??"",ko(this.stereotypes),ko(this.taggedValues)])}},{aggregation:(0,ge.lq)((0,ge.MY)()),defaultValue:(0,ge.lq)(_e(kh)),multiplicity:_e(th),name:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),type:(0,ge.MY)()}),Lh=(0,ge.PL)(class{name;returnType;returnMultiplicity;stereotypes=[];taggedValues=[];body;parameters;get hashCode(){return ko([Jo.DERIVED_PROPERTY,this.name,this.returnMultiplicity,this.returnType,ko(this.stereotypes),ko(this.taggedValues),er(this.parameters,this.body)])}},{body:(0,ge.lS)(),name:(0,ge.MY)(),parameters:(0,ge.lS)(),returnMultiplicity:_e(th),returnType:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0})}),Mh=(0,ge.PL)(class{name;functionDefinition;externalId;enforcementLevel;messageFunction;get hashCode(){return ko([Jo.CONSTRAINT,this.name,this.functionDefinition,this.externalId??"",this.enforcementLevel??"",this.messageFunction??""])}},{enforcementLevel:(0,ge.lq)((0,ge.MY)()),externalId:(0,ge.lq)((0,ge.MY)()),functionDefinition:_e(ah),messageFunction:(0,ge.lq)(_e(ah)),name:(0,ge.MY)()}),Dh=((0,ge.PL)(class extends Vp{superTypes=[];properties=[];derivedProperties=[];stereotypes=[];taggedValues=[];constraints=[];get hashCode(){return ko([Jo.CLASS,this.path,ko(this.properties),ko(this.derivedProperties),ko(this.superTypes),ko(this.constraints),ko(this.stereotypes),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Class(this)}},{_type:Ee("class"),constraints:Ce(Mh,{INTERNAL__forceReturnEmptyInTest:!0}),name:(0,ge.MY)(),originalMilestonedProperties:ye((()=>ge._Z),(()=>ge._Z),{INTERNAL__forceReturnEmptyInTest:!0}),package:(0,ge.MY)(),properties:Ce(Ph,{INTERNAL__forceReturnEmptyInTest:!0}),derivedProperties:(0,ge.nK)("qualifiedProperties",Ce(Lh,{INTERNAL__forceReturnEmptyInTest:!0})),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),superTypes:Se({INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0})}),(0,ge.PL)(class extends Vp{properties=[];derivedProperties=[];stereotypes=[];taggedValues=[];get hashCode(){return ko([Jo.ASSOCIATION,this.path,ko(this.properties),ko(this.derivedProperties),ko(this.stereotypes),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Association(this)}},{_type:Ee("association"),name:(0,ge.MY)(),originalMilestonedProperties:ye((()=>ge._Z),(()=>ge._Z),{INTERNAL__forceReturnEmptyInTest:!0}),package:(0,ge.MY)(),properties:(0,ge.p_)(_e(Ph)),derivedProperties:(0,ge.nK)("qualifiedProperties",Ce(Lh,{INTERNAL__forceReturnEmptyInTest:!0})),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0})}),(0,ge.PL)(class extends ch{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR,this.path,Qo(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownFunctionActivator(this)}},{function:(0,ge.MY)(),name:(0,ge.MY)(),package:(0,ge.MY)()}),"diagram"),Fh=(0,ge.PL)($p,{x:(0,ge.MY)(),y:(0,ge.MY)()}),Bh=(0,ge.PL)(Yp,{height:(0,ge.MY)(),width:(0,ge.MY)()}),jh=(0,ge.PL)(Wp,{points:(0,ge.p_)(_e(Fh))}),Vh=(0,ge.PL)(Up,{class:(0,ge.MY)(),hideProperties:(0,ge.lq)((0,ge.MY)()),hideStereotypes:(0,ge.lq)((0,ge.MY)()),hideTaggedValues:(0,ge.lq)((0,ge.MY)()),id:(0,ge.MY)(),position:_e(Fh),rectangle:_e(Bh)}),Hh=(0,ge.PL)(Xp,{line:_e(jh),property:_e(Ah),sourceView:(0,ge.MY)(),targetView:(0,ge.MY)()}),Gh=(0,ge.PL)(qp,{line:_e(jh),sourceView:(0,ge.MY)(),targetView:(0,ge.MY)()}),Uh=(0,ge.PL)(Hp,{_type:Ee(Dh),classViews:(0,ge.p_)(_e(Vh)),generalizationViews:(0,ge.p_)(_e(Gh)),name:(0,ge.MY)(),package:(0,ge.MY)(),propertyViews:(0,ge.p_)(_e(Hh))});class $h extends a{_$nominalTypeBrand;install(e){e.registerPureProtocolProcessorPlugin(this)}}class Yh{_UUID=(0,o.A)();_OWNER;name;multiplicity;genericType;aggregation;defaultValue;stereotypes=[];taggedValues=[];constructor(e,t,n,i){this.name=e,this.multiplicity=t,this.genericType=n,this._OWNER=i}get hashCode(){return ko([Jo.PROPERTY,this.name,this.multiplicity,this.genericType.ownerReference.valueForSerialization??"",this.aggregation??"",this.defaultValue??"",ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues)])}}class Wh{lowerBound;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return ko([Jo.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Wh(0,0);static ZERO_ONE=new Wh(0,1);static ZERO_MANY=new Wh(0,void 0);static ONE=new Wh(1,1);static ONE_MANY=new Wh(1,void 0)}class zh extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}}class Kh extends zh{ownerReference;constructor(e){const t=Er.create(e.rawType);super(t,e),this.ownerReference=t}static create(e){return new Kh(e)}}class Xh{_UUID=(0,o.A)();rawType;constructor(e){this.rawType=e}}class qh extends sr{_generatedMilestonedProperties=[];properties;derivedProperties=[];constructor(e){super(e);const t=[new Yh("",Wh.ONE,Kh.create(new Xh(new rr(""))),new rr("")),new Yh("",Wh.ONE,Kh.create(new Xh(new rr(""))),new rr(""))];t[0]._OWNER=this,t[1]._OWNER=this,this.properties=t}dispose(){super.dispose();const[e,t]=this.properties;if(e.genericType.value.rawType instanceof rr&&t.genericType.value.rawType instanceof rr){const n=$(e.genericType.value.rawType,rr),i=$(t.genericType.value.rawType,rr);n.propertiesFromAssociations=n.propertiesFromAssociations.filter((e=>e!==t)),i.propertiesFromAssociations=i.propertiesFromAssociations.filter((t=>t!==e))}}get _elementHashCode(){return ko([Jo.ASSOCIATION,this.path,ko(this.properties),ko(this.derivedProperties),ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Association(this)}}class Jh extends sr{includes=[];classMappings=[];enumerationMappings=[];associationMappings=[];test=[];tests=[];get _elementHashCode(){return ko([Jo.MAPPING,this.path,ko(this.classMappings),ko(this.enumerationMappings),ko(this.associationMappings),ko(this.test),ko(this.includes),ko(this.tests)])}accept_PackageableElementVisitor(e){return e.visit_Mapping(this)}}class Zh extends sr{p_stereotypes=[];p_tags=[];get _elementHashCode(){return ko([Jo.PROFILE,this.path,ko(this.p_stereotypes.map((e=>e.value))),ko(this.p_tags.map((e=>e.value)))])}accept_PackageableElementVisitor(e){return e.visit_Profile(this)}}class Qh extends sr{pattern="/";owners=[];ownership;documentation="";autoActivateUpdates=!0;execution;test;tests=[];postValidations=[];get patternParameters(){return(0,Ae.A)((this.pattern.match(/\{\w+\}/gu)??[]).map((e=>e.substring(1,e.length-1))))}get _elementHashCode(){return ko([Jo.SERVICE,ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues),this.path,this.pattern,ko(this.owners),this.ownership,this.documentation,this.autoActivateUpdates.toString(),this.execution,this.test??"",ko(this.tests),ko(this.postValidations)])}accept_PackageableElementVisitor(e){return e.visit_Service(this)}}class em extends sr{functionName;constructor(e){super(e),this.functionName=e}}class tm extends em{}class nm extends tm{returnType;returnMultiplicity;parameters=[];expressionSequence=[];tests=[];constructor(e,t,n){super(e),this.returnType=t,this.returnMultiplicity=n}get _elementHashCode(){return ko([Jo.FUNCTION,this.path,ko(this.parameters),this.returnType.valueForSerialization??"",ko(this.taggedValues),ko(this.stereotypes.map((e=>e.pointerHashCode))),er(void 0,this.expressionSequence),this.tests.length?ko(this.tests):""])}accept_PackageableElementVisitor(e){return e.visit_ConcreteFunctionDefinition(this)}}class im extends sr{includes=[]}class sm extends im{sections=[];get _elementHashCode(){return ko([Jo.FLAT_DATA,this.path,ko(this.includes.map((e=>e.valueForSerialization??""))),ko(this.sections)])}accept_PackageableElementVisitor(e){return e.visit_FlatData(this)}}class om extends sr{runtimeValue;get _elementHashCode(){return ko([Jo.PACKAGEABLE_RUNTIME,this.path,this.runtimeValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableRuntime(this)}}class rm extends sr{connectionValue;get _elementHashCode(){return ko([Jo.PACKAGEABLE_CONNECTION,this.path,this.connectionValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableConnection(this)}}class am extends sr{}class cm extends am{type;generationOutputPath;scopeElements=[];configurationProperties=[];get _elementHashCode(){return ko([Jo.FILE_GENERATION,this.path,this.type,this.generationOutputPath??"",ko(this.scopeElements.map((e=>e instanceof _r?e.valueForSerialization??"":e))),ko(this.configurationProperties)])}accept_PackageableElementVisitor(e){return e.visit_FileGenerationSpecification(this)}}class lm extends sr{generationNodes=[];fileGenerations=[];findGenerationElementById(e){return this.generationNodes.find((t=>t.id===e))?.generationElement.value}get _elementHashCode(){return ko([Jo.GENERATION_TREE,this.path,ko(this.generationNodes),ko(this.fileGenerations.map((e=>tr(Ko.FILE_GENERATION,e.valueForSerialization??""))))])}accept_PackageableElementVisitor(e){return e.visit_GenerationSpecification(this)}}class dm extends im{schemas=[];joins=[];filters=[];get _elementHashCode(){return ko([Jo.DATABASE,this.path,ko(this.includes.map((e=>e.valueForSerialization??""))),ko(this.schemas),ko(this.joins),ko(this.filters),ko(this.stereotypes.map((e=>e.pointerHashCode)))])}accept_PackageableElementVisitor(e){return e.visit_Database(this)}}class um{_class;index=new Map;constructor(e){this._class=e}getElementClass(){return this._class}get elements(){return Array.from(this.index.values())}getElement(e){return this.index.get(e)}setElement(e,t){this.index.set(e,t)}deleteElement(e){this.index.delete(e)}renameElement(e,t){const n=this.getElement(e);n&&(this.deleteElement(e),this.setElement(t,n))}}class pm extends ar{accept_PackageableElementVisitor(e){return e.visit_PrimitiveType(this)}static STRING=new pm(Fo.STRING);static BOOLEAN=new pm(Fo.BOOLEAN);static BINARY=new pm(Fo.BINARY);static NUMBER=new pm(Fo.NUMBER);static INTEGER=new pm(Fo.INTEGER);static FLOAT=new pm(Fo.FLOAT);static DECIMAL=new pm(Fo.DECIMAL);static DATE=new pm(Fo.DATE);static STRICTDATE=new pm(Fo.STRICTDATE);static DATETIME=new pm(Fo.DATETIME);static STRICTTIME=new pm(Fo.STRICTTIME);static LATESTDATE=new pm(Fo.LATESTDATE);static BYTE=new pm(Fo.BYTE)}var hm=n(8492);const mm=e=>V((0,hm.A)(e.split(Po))),gm=e=>{const t=e.lastIndexOf(Po);return-1===t?void 0:e.substring(0,t)},fm=(e,t)=>{const n=e.lastIndexOf(Po);return-1===n?[t??"",e]:[e.substring(0,n),e.substring(n+2,e.length)]},_m=(e,t)=>`${e?`${e}${Po}`:""}${t}`,Em=(e,t)=>{e.children.push(t),t.package=e},Nm=(e,t)=>{e.children=e.children.filter((e=>e!==t))},bm=e=>e.package?bm(e.package):$(e,ur),vm=(e,t,n,i)=>{const s=t.indexOf(Po),o=-1===s?t:t.substring(0,s);let r;if(r=e.children.find((e=>e instanceof ur&&e.name===o)),!r){if(!n)throw new F(`Can't find child package '${o}' in package '${e.path}'`);z(!Mo.includes(o),`Can't create package with reserved name '${o}'`),r=new ur(o),r.package=e,e.children.push(r)}return i&&i.set(_m(e.path,o),r),-1!==s?vm(r,t.substring(s+2),n,i):r},Tm=(e,t,n,i)=>{if(i){const s=i.get(_m(e.path,t));if(s)return s;let o=t;for(;""!==o;){const s=_m(e.path,o),r=i.get(s);if(r)return vm(r,t.substring(o.length+2,t.length),n,i);const a=o.lastIndexOf(Po);o=-1!==a?o.substring(0,a):""}}return vm(e,t,n,i)},Cm=(e,t,n)=>(Y(t,"Package path is required"),Tm(e.root,t,!0,n)),ym=(e,t)=>$(e.rawType,t),Sm=e=>{const t=new Set;t.add(e);const n=e=>{e.generalizations.forEach((e=>{const i=ym(e.value,rr);t.has(i)||(t.add(i),n(i))}))};return n(e),t.delete(e),Array.from(t)},Am=e=>e.properties.concat(e.propertiesFromAssociations).concat(e.derivedProperties),Im=(e,t)=>e===t?e.toString():0===e&&void 0===t?"MANY":`$${e}_${t??"MANY"}$`,xm=(e,t)=>{if((e=>{const t=D((()=>bm(e)))?.name;return e instanceof pm||t===Do.SYSTEM||t===Do.CORE})(e))return"system elements";if((e=>D((()=>bm(e)))?.name===Do.MODEL_GENERATION)(e))return"generation elements";if((e=>{const t=D((()=>bm(e)));return t?.name===Do.PROJECT_DEPENDENCY_ROOT||void 0!==t&&Boolean(Hm(t.name))})(e)){const n=t.dependencyManager.getElementOrigin(e);if(n)return`project dependency ${n}`}return""};class wm extends sr{data;get hashCode(){return ko([Jo.DATA_ELEMENT,this.path,ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues),this.data])}accept_PackageableElementVisitor(e){return e.visit_DataElement(this)}}class Om extends sr{executionParameters=[];get _elementHashCode(){return ko([Jo.EXECUTION_ENVIRONMENT_INSTANCE,this.path,ko(this.executionParameters)])}accept_PackageableElementVisitor(e){return e.visit_ExecutionEnvironmentInstance(this)}}class Rm extends sr{content;get _elementHashCode(){return ko([Jo.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT,this.path,Qo(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownPackageableElement(this)}}class km extends sr{function;activationConfiguration;ownership}class Pm extends km{content;get _elementHashCode(){return ko([Jo.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR,this.path,Qo(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownFunctionActivator(this)}}class Lm extends im{content;get _elementHashCode(){return ko([Jo.INTERNAL__UNKNOWN_STORE,this.path,Qo(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownStore(this)}}class Mm extends sr{content;classifierPath;get _elementHashCode(){return ko([Jo.INTERNAL__UNKNOWN_ELEMENT,this.path,Qo(this.content),this.classifierPath])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownElement(this)}}const Dm=new Set([sr,or,ar,pm,rr,qh,cr,nm,Zh,dr,lr,wm,im,Jh,rm,om,lm,cm,Qh,Om,class extends sr{sections=[];get _elementHashCode(){return ko([Jo.SECTION_INDEX,this.path,ko(this.sections)])}accept_PackageableElementVisitor(e){return e.visit_SectionIndex(this)}},Rm,Lm]);class Fm{root;_origin;extensions=[];graphPlugins=[];elementSectionIndex=new Map;sectionIndicesIndex=new Map;profilesIndex=new Map;typesIndex=new Map;associationsIndex=new Map;functionsIndex=new Map;functionActivatorsIndex=new Map;storesIndex=new Map;mappingsIndex=new Map;connectionsIndex=new Map;runtimesIndex=new Map;servicesIndex=new Map;generationSpecificationsIndex=new Map;fileGenerationsIndex=new Map;dataElementsIndex=new Map;executionEnvironmentsIndex=new Map;INTERNAL__unknownElementsIndex=new Map;INTERNAL__unknownIndex=new Map;constructor(e,t,n){this.root=new ur(e);const i=t.flatMap((e=>e.getExtraPureGraphExtensionClasses?.()??[]));this.extensions=this.createGraphExtensions(i),this._origin=n}createGraphExtensions(e){return e.map((e=>{if(Dm.has(e))throw new P("Pure graph extension not allowed for the specified class. Consider removing this extension from plugins.");return new um(e)}))}get ownSectionIndices(){return Array.from(this.sectionIndicesIndex.values())}get ownProfiles(){return Array.from(this.profilesIndex.values())}get ownEnumerations(){return Array.from(this.typesIndex.values()).filter(G(cr))}get ownMeasures(){return Array.from(this.typesIndex.values()).filter(G(dr))}get ownClasses(){return Array.from(this.typesIndex.values()).filter(G(rr))}get ownTypes(){return Array.from(this.typesIndex.values())}get ownAssociations(){return Array.from(this.associationsIndex.values())}get ownFunctions(){return Array.from(this.functionsIndex.values())}get ownFunctionActivators(){return Array.from(this.functionActivatorsIndex.values())}get ownStores(){return Array.from(this.storesIndex.values())}get ownFlatDatas(){return Array.from(this.storesIndex.values()).filter(G(sm))}get ownDatabases(){return Array.from(this.storesIndex.values()).filter(G(dm))}get ownMappings(){return Array.from(this.mappingsIndex.values())}get ownServices(){return Array.from(this.servicesIndex.values())}get ownRuntimes(){return Array.from(this.runtimesIndex.values())}get ownConnections(){return Array.from(this.connectionsIndex.values())}get ownFileGenerations(){return Array.from(this.fileGenerationsIndex.values())}get ownDataElements(){return Array.from(this.dataElementsIndex.values())}get ownExecutionEnvironments(){return Array.from(this.executionEnvironmentsIndex.values())}get ownGenerationSpecifications(){return Array.from(this.generationSpecificationsIndex.values())}get ownTestables(){const e=[...this.ownServices,...this.ownMappings],t=this.graphPlugins.flatMap((e=>e.getExtraTestablesCollectors?.()??[]));return[...e,...this.allOwnElements.map((e=>t.find((t=>Boolean(t(e))))?.(e))).filter(B)]}get origin(){return this._origin}setOrigin(e){if(this._origin)throw new P("Graph origin has already been set");this._origin=e}getExtensionElements(e){return this.getExtensionForElementClass(e).elements}getExtensionForElementClass(e){const t=this.extensions.filter((t=>t.getElementClass()===e));if(0===t.length)throw new L("Can't find graph extension for the specified element class: no compatible graph extensions available from plugins");if(t.length>1)throw new P("Found multiple extensions for the specified element class");return t[0]}getOwnNullableSection=e=>this.elementSectionIndex.get(e);getOwnNullableSectionIndex=e=>this.sectionIndicesIndex.get(e);getOwnNullableProfile=e=>this.profilesIndex.get(e);getOwnNullableType=e=>this.typesIndex.get(e);getOwnNullableClass=e=>{const t=this.getOwnNullableType(e);return t instanceof rr?t:void 0};getOwnNullableEnumeration=e=>{const t=this.getOwnNullableType(e);return t instanceof cr?t:void 0};getOwnNullableMeasure=e=>{const t=this.getOwnNullableType(e);return t instanceof dr?t:void 0};getOwnNullableAssociation=e=>this.associationsIndex.get(e);getOwnNullableFunction=e=>this.functionsIndex.get(e);getOwnNullableFunctionActivator=e=>this.functionActivatorsIndex.get(e);getOwnNullableStore=e=>this.storesIndex.get(e);getOwnNullableMapping=e=>this.mappingsIndex.get(e);getOwnNullableConnection=e=>this.connectionsIndex.get(e);getOwnNullableRuntime=e=>this.runtimesIndex.get(e);getOwnNullableService=e=>this.servicesIndex.get(e);getOwnNullableGenerationSpecification=e=>this.generationSpecificationsIndex.get(e);getOwnNullableFileGeneration=e=>this.fileGenerationsIndex.get(e);getOwnNullableDataElement=e=>this.dataElementsIndex.get(e);getOwnNullableExecutionEnviornment=e=>this.executionEnvironmentsIndex.get(e);getOwnSectionIndex=e=>V(this.getOwnNullableSectionIndex(e),`Can't find section index '${e}'`);getOwnProfile=e=>V(this.getOwnNullableProfile(e),`Can't find profile '${e}'`);getOwnType=e=>V(this.getOwnNullableType(e),`Can't find type '${e}'`);getOwnClass=e=>V(this.getOwnNullableClass(e),`Can't find class '${e}'`);getOwnEnumeration=e=>V(this.getOwnNullableEnumeration(e),`Can't find enumeration '${e}'`);getOwnMeasure=e=>V(this.getOwnNullableMeasure(e),`Can't find measure '${e}'`);getOwnAssociation=e=>V(this.getOwnNullableAssociation(e),`Can't find association '${e}'`);getOwnFunction=e=>V(this.getOwnNullableFunction(e),`Can't find function '${e}'`);getOwnFunctionActivator=e=>V(this.getOwnNullableFunctionActivator(e),`Can't find function activator '${e}'`);getOwnStore=e=>V(this.getOwnNullableStore(e),`Can't find store '${e}'`);getOwnDatabase=e=>$(this.getOwnNullableStore(e),dm,`Can't find database '${e}'`);getOwnFlatDataStore=e=>$(this.getOwnNullableStore(e),sm,`Can't find flat-data store '${e}'`);getOwnMapping=e=>V(this.getOwnNullableMapping(e),`Can't find mapping '${e}'`);getOwnConnection=e=>V(this.getOwnNullableConnection(e),`Can't find connection '${e}'`);getOwnRuntime=e=>V(this.getOwnNullableRuntime(e),`Can't find runtime '${e}'`);getOwnService=e=>V(this.getOwnNullableService(e),`Can't find service '${e}'`);getOwnGenerationSpecification=e=>V(this.getOwnNullableGenerationSpecification(e),`Can't find generation specification '${e}'`);getOwnFileGeneration=e=>V(this.getOwnNullableFileGeneration(e),`Can't find file generation '${e}'`);getOwnDataElement=e=>V(this.getOwnNullableDataElement(e),`Can't find data element '${e}'`);getOwnExecutionEnvironment=e=>V(this.getOwnNullableExecutionEnviornment(e),`Can't find execution environment element '${e}'`);getOwnNullableExtensionElement(e,t){return this.getExtensionForElementClass(t).getElement(e)}setOwnSection(e,t){this.elementSectionIndex.set(e,t)}setOwnSectionIndex(e,t){this.sectionIndicesIndex.set(e,t)}setOwnProfile(e,t){this.profilesIndex.set(e,t)}setOwnType(e,t){this.typesIndex.set(e,t)}setOwnAssociation(e,t){this.associationsIndex.set(e,t)}setOwnFunction(e,t){this.functionsIndex.set(e,t)}setOwnFunctionActivator(e,t){this.functionActivatorsIndex.set(e,t)}setOwnStore(e,t){this.storesIndex.set(e,t)}setOwnMapping(e,t){this.mappingsIndex.set(e,t)}setOwnConnection(e,t){this.connectionsIndex.set(e,t)}setOwnRuntime(e,t){this.runtimesIndex.set(e,t)}setOwnService(e,t){this.servicesIndex.set(e,t)}setOwnGenerationSpecification(e,t){this.generationSpecificationsIndex.set(e,t)}setOwnFileGeneration(e,t){this.fileGenerationsIndex.set(e,t)}setOwnDataElement(e,t){this.dataElementsIndex.set(e,t)}setOwnExecutionEnvironment(e,t){this.executionEnvironmentsIndex.set(e,t)}INTERNAL__setOwnUnknown(e,t){this.INTERNAL__unknownIndex.set(e,t)}INTERNAL__setOwnUnknownElement(e,t){this.INTERNAL__unknownElementsIndex.set(e,t)}setOwnElementInExtension(e,t,n){this.getExtensionForElementClass(n).setElement(e,t)}get allOwnElements(){return[...this.ownProfiles,...this.ownEnumerations,...this.ownMeasures,...this.ownClasses,...this.ownAssociations,...this.ownFunctions,...this.ownFunctionActivators,...this.ownStores,...this.ownMappings,...this.ownServices,...this.ownRuntimes,...this.ownConnections,...this.ownGenerationSpecifications,...this.ownFileGenerations,...this.ownDataElements,...this.ownExecutionEnvironments,...Array.from(this.INTERNAL__unknownElementsIndex.values()),...Array.from(this.INTERNAL__unknownIndex.values()),...this.extensions.flatMap((e=>e.elements))]}get knownAllOwnElements(){return this.allOwnElements.filter((e=>!H(e,Mm)))}async dispose(){this.allOwnElements.length&&await Promise.all(this.allOwnElements.map((e=>I((()=>{e.dispose()})))))}getNullablePackage=e=>e?D((()=>Tm(this.root,e,!1,void 0))):this.root;getOwnNullableElement(e,t){let n=this.sectionIndicesIndex.get(e)??this.INTERNAL__unknownIndex.get(e)??this.INTERNAL__unknownElementsIndex.get(e)??this.typesIndex.get(e)??this.profilesIndex.get(e)??this.associationsIndex.get(e)??this.functionsIndex.get(e)??this.functionActivatorsIndex.get(e)??this.storesIndex.get(e)??this.mappingsIndex.get(e)??this.servicesIndex.get(e)??this.runtimesIndex.get(e)??this.connectionsIndex.get(e)??this.fileGenerationsIndex.get(e)??this.dataElementsIndex.get(e)??this.executionEnvironmentsIndex.get(e)??this.generationSpecificationsIndex.get(e);if(!n)for(const t of this.extensions){const i=t.getElement(e);if(i){n=i;break}}return t&&!n?this.getNullablePackage(e):n}addOwnElement(e,t){Em(t?Cm(this,t,void 0):this.root,e),e instanceof Jh?this.setOwnMapping(e.path,e):e instanceof im?this.setOwnStore(e.path,e):e instanceof or?this.setOwnType(e.path,e):e instanceof qh?this.setOwnAssociation(e.path,e):e instanceof Zh?this.setOwnProfile(e.path,e):e instanceof nm?this.setOwnFunction(e.path,e):e instanceof km?this.setOwnFunctionActivator(e.path,e):e instanceof Qh?this.setOwnService(e.path,e):e instanceof rm?this.setOwnConnection(e.path,e):e instanceof om?this.setOwnRuntime(e.path,e):e instanceof cm?this.setOwnFileGeneration(e.path,e):e instanceof lm?this.setOwnGenerationSpecification(e.path,e):e instanceof wm?this.setOwnDataElement(e.path,e):e instanceof Om?this.setOwnExecutionEnvironment(e.path,e):e instanceof ur||this.getExtensionForElementClass(C(e)).setElement(e.path,e)}deleteOwnElement(e){e.package&&Nm(e.package,e),e instanceof Mm?this.INTERNAL__unknownIndex.delete(e.path):e instanceof Rm?this.INTERNAL__unknownElementsIndex.delete(e.path):e instanceof Jh?this.mappingsIndex.delete(e.path):e instanceof im?this.storesIndex.delete(e.path):e instanceof or?(this.typesIndex.delete(e.path),e instanceof dr&&(e.canonicalUnit&&this.typesIndex.delete(e.canonicalUnit.path),e.nonCanonicalUnits.forEach((e=>this.typesIndex.delete(e.path))))):e instanceof qh?this.associationsIndex.delete(e.path):e instanceof Zh?this.profilesIndex.delete(e.path):e instanceof nm?this.functionsIndex.delete(e.path):e instanceof km?this.functionActivatorsIndex.delete(e.path):e instanceof Qh?this.servicesIndex.delete(e.path):e instanceof om?this.runtimesIndex.delete(e.path):e instanceof rm?this.connectionsIndex.delete(e.path):e instanceof cm?this.fileGenerationsIndex.delete(e.path):e instanceof lm?this.generationSpecificationsIndex.delete(e.path):e instanceof wm?this.dataElementsIndex.delete(e.path):e instanceof Om?this.executionEnvironmentsIndex.delete(e.path):e instanceof ur?e.children.forEach((e=>this.deleteOwnElement(e))):this.getExtensionForElementClass(C(e)).deleteElement(e.path)}renameOwnElement(e,t,n){if(t===n)return;if(!n)throw new L(`Can't rename element '${t} to '${n}': path is empty'`);if(e instanceof ur&&!Boolean(n.match(/^(?:\w[\w$_-]*)(?:::\w[\w$_-]*)*$/))||!(e instanceof ur)&&!Boolean(n.match(/^(?:\w[\w$_-]*)(?:::\w[\w$_-]*)+$/)))throw new L(`Can't rename element '${t} to '${n}': invalid path'`);if(this.getOwnNullableElement(n,!0))throw new L(`Can't rename element '${t} to '${n}': another element with the same path already existed'`);const[i,s]=fm(n);if(!(e instanceof ur)){const t=this.getNullablePackage(i)??(""!==i?Cm(this,i,void 0):this.root);e.name=s,e instanceof nm&&(e.functionName=(o=e,(r=e.name).substring(0,r.indexOf((e=>`_${e.parameters.map((e=>`${e.type.value.name}_${Im(e.multiplicity.lowerBound,e.multiplicity.upperBound)}_`)).join("_")}_${e.returnType.value.name}_${Im(e.returnMultiplicity.lowerBound,e.returnMultiplicity.upperBound)}_`)(o))))),e.package!==t&&(e.package&&Nm(e.package,e),Em(t,e))}var o,r;if(e instanceof Mm)this.INTERNAL__unknownIndex.delete(t),this.INTERNAL__unknownIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Rm)this.INTERNAL__unknownElementsIndex.delete(t),this.INTERNAL__unknownElementsIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Pm)this.functionActivatorsIndex.delete(t),this.functionActivatorsIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Lm)this.storesIndex.delete(t),this.storesIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Jh)this.mappingsIndex.delete(t),this.mappingsIndex.set(n,e);else if(e instanceof im)this.storesIndex.delete(t),this.storesIndex.set(n,e);else if(e instanceof or)this.typesIndex.delete(t),this.typesIndex.set(n,e),e instanceof dr&&(e.canonicalUnit&&(this.typesIndex.delete(e.canonicalUnit.path),this.typesIndex.set(e.canonicalUnit.path.replace(t,n),e.canonicalUnit)),e.nonCanonicalUnits.forEach((e=>{this.typesIndex.delete(e.path),this.typesIndex.set(e.path.replace(t,n),e)})));else if(e instanceof qh)this.associationsIndex.delete(t),this.associationsIndex.set(n,e);else if(e instanceof Zh)this.profilesIndex.delete(t),this.profilesIndex.set(n,e);else if(e instanceof nm)this.functionsIndex.delete(t),this.functionsIndex.set(n,e);else if(e instanceof km)this.functionActivatorsIndex.delete(t),this.functionActivatorsIndex.set(n,e);else if(e instanceof Qh)this.servicesIndex.delete(t),this.servicesIndex.set(n,e);else if(e instanceof om)this.runtimesIndex.delete(t),this.runtimesIndex.set(n,e);else if(e instanceof rm)this.connectionsIndex.delete(t),this.connectionsIndex.set(n,e);else if(e instanceof cm)this.fileGenerationsIndex.delete(t),this.fileGenerationsIndex.set(n,e);else if(e instanceof wm)this.dataElementsIndex.delete(t),this.dataElementsIndex.set(n,e);else if(e instanceof Om)this.executionEnvironmentsIndex.delete(t),this.executionEnvironmentsIndex.set(n,e);else if(e instanceof lm)this.generationSpecificationsIndex.delete(t),this.generationSpecificationsIndex.set(n,e);else if(e instanceof ur){const o=new Map;if(e.children.forEach((e=>{o.set(e.path,e)})),e.name=s,!e.package)throw new P("Can't rename root package");const r=e.package;if(r!==this.getNullablePackage(i)){Nm(r,e);const t=""!==i?Cm(this,i,void 0):this.root;Em(t,e)}o.forEach(((e,i)=>{this.renameOwnElement(e,i,i.replace(t,n))}))}else this.getExtensionForElementClass(C(e)).renameElement(t,n)}TEMPORARY__deleteOwnSectionIndex(){this.sectionIndicesIndex.forEach((e=>{e.setIsDeleted(!0),this.sectionIndicesIndex.delete(e.path)})),this.sectionIndicesIndex=new Map,this.elementSectionIndex=new Map}}class Bm{}class jm extends Bm{groupId;artifactId;versionId;constructor(e,t,n){super(),this.groupId=e,this.artifactId=t,this.versionId=n}}const Vm="@dependency__",Hm=e=>{if(0===e.indexOf(Vm))return e.substring(13)};class Gm extends Fm{constructor(e,t,n){super(t.name,e,n),this.root=t}}const Um=(e,t)=>n=>{for(const i of e.dependencyGraphs){const e=t(i,n);if(e)return e}};class $m{graphPlugins;_origin;roots=[];projectDependencyModelsIndex=new Map;constructor(e){this.graphPlugins=e}initialize(e){Array.from(e.entries()).forEach((([e,t])=>{const n=new ur((e=>`${Vm}${e}`)(e));this.roots.push(n),this.projectDependencyModelsIndex.set(e,new Gm(this.graphPlugins,n,new jm(t.groupId,t.artifactId,t.versionId)))}))}get numberOfDependencies(){return this.projectDependencyModelsIndex.size}get hasDependencies(){return Boolean(this.projectDependencyModelsIndex.size)}get dependencyGraphs(){return Array.from(this.projectDependencyModelsIndex.values())}get allOwnElements(){return this.dependencyGraphs.flatMap((e=>e.allOwnElements))}get origin(){return this._origin}setOrigin(e){if(this._origin)throw new P("Graph origin has already been set");this._origin=e}getOwnNullableSectionIndex=Um(this,((e,t)=>e.getOwnNullableSectionIndex(t)));getOwnNullableProfile=Um(this,((e,t)=>e.getOwnNullableProfile(t)));getOwnNullableType=Um(this,((e,t)=>e.getOwnNullableType(t)));getOwnNullableClass=Um(this,((e,t)=>e.getOwnNullableClass(t)));getOwnNullableEnumeration=Um(this,((e,t)=>e.getOwnNullableEnumeration(t)));getOwnNullableMeasure=Um(this,((e,t)=>e.getOwnNullableMeasure(t)));getOwnNullableAssociation=Um(this,((e,t)=>e.getOwnNullableAssociation(t)));getOwnNullableFunction=Um(this,((e,t)=>e.getOwnNullableFunction(t)));getOwnNullableFunctionActivator=Um(this,((e,t)=>e.getOwnNullableFunctionActivator(t)));getOwnNullableStore=Um(this,((e,t)=>e.getOwnNullableStore(t)));getOwnNullableMapping=Um(this,((e,t)=>e.getOwnNullableMapping(t)));getOwnNullableConnection=Um(this,((e,t)=>e.getOwnNullableConnection(t)));getOwnNullableRuntime=Um(this,((e,t)=>e.getOwnNullableRuntime(t)));getOwnNullableService=Um(this,((e,t)=>e.getOwnNullableService(t)));getOwnNullableGenerationSpecification=Um(this,((e,t)=>e.getOwnNullableGenerationSpecification(t)));getOwnNullableFileGeneration=Um(this,((e,t)=>e.getOwnNullableFileGeneration(t)));getOwnNullableDataElement=Um(this,((e,t)=>e.getOwnNullableDataElement(t)));getOwnExecutionEnvironment=Um(this,((e,t)=>e.getOwnNullableExecutionEnviornment(t)));getOwnNullableExtensionElement(e,t){for(const n of this.dependencyGraphs){const i=n.getExtensionForElementClass(t).getElement(e);if(i)return i}}get sectionIndices(){return this.dependencyGraphs.flatMap((e=>e.ownSectionIndices))}get profiles(){return this.dependencyGraphs.flatMap((e=>e.ownProfiles))}get enumerations(){return this.dependencyGraphs.flatMap((e=>e.ownEnumerations))}get measures(){return this.dependencyGraphs.flatMap((e=>e.ownMeasures))}get classes(){return this.dependencyGraphs.flatMap((e=>e.ownClasses))}get types(){return this.dependencyGraphs.flatMap((e=>e.ownTypes))}get associations(){return this.dependencyGraphs.flatMap((e=>e.ownAssociations))}get functions(){return this.dependencyGraphs.flatMap((e=>e.ownFunctions))}get functionActivators(){return this.dependencyGraphs.flatMap((e=>e.ownFunctionActivators))}get stores(){return this.dependencyGraphs.flatMap((e=>e.ownStores))}get databases(){return this.dependencyGraphs.flatMap((e=>e.ownDatabases))}get mappings(){return this.dependencyGraphs.flatMap((e=>e.ownMappings))}get services(){return this.dependencyGraphs.flatMap((e=>e.ownServices))}get runtimes(){return this.dependencyGraphs.flatMap((e=>e.ownRuntimes))}get connections(){return this.dependencyGraphs.flatMap((e=>e.ownConnections))}get dataElements(){return this.dependencyGraphs.flatMap((e=>e.ownDataElements))}get generationSpecifications(){return this.dependencyGraphs.flatMap((e=>e.ownGenerationSpecifications))}get fileGenerations(){return this.dependencyGraphs.flatMap((e=>e.ownFileGenerations))}get testables(){return this.dependencyGraphs.flatMap((e=>e.ownTestables))}get executionEnvironments(){return this.dependencyGraphs.flatMap((e=>e.ownExecutionEnvironments))}getExtensionElements(e){return this.dependencyGraphs.flatMap((t=>t.getExtensionElements(e)))}getModel(e){return V(this.projectDependencyModelsIndex.get(e),`Can't find dependency model with project ID '${e}'`)}getNullableElement(e,t){const n=this.dependencyGraphs.find((n=>Boolean(n.getOwnNullableElement(e,t))));return n?.getOwnNullableElement(e,t)}getElementOrigin(e){const t=this.dependencyGraphs.find((t=>Boolean(t.getOwnNullableElement(e.path))));return t?.origin instanceof jm?`${t.origin.groupId}:${t.origin.artifactId}`:void 0}}class Ym extends im{static NAME="ModelStore";static INSTANCE=new Ym;constructor(){super(Ym.NAME)}accept_PackageableElementVisitor(e){throw new L}}class Wm extends Fm{primitiveTypesIndex=new Map;get primitiveTypes(){return Array.from(this.primitiveTypesIndex.values())}constructor(e){super(Do.CORE,e),this.initializePrimitiveTypes(),this.setOwnStore(Ym.NAME,Ym.INSTANCE)}get allOwnElements(){return[...super.allOwnElements,...this.primitiveTypes]}initializePrimitiveTypes(){[pm.STRING,pm.BOOLEAN,pm.BINARY,pm.NUMBER,pm.INTEGER,pm.FLOAT,pm.DECIMAL,pm.DATE,pm.STRICTDATE,pm.DATETIME,pm.STRICTTIME,pm.LATESTDATE,pm.BYTE].forEach((e=>{this.primitiveTypesIndex.set(e.path,e),this.setOwnType(e.path,e)}))}}class zm extends Fm{autoImports=[];constructor(e){super(Do.SYSTEM,e)}initializeAutoImports(){this.autoImports=Ho.map((e=>$(this.getOwnNullableElement(e,!0),ur,`Can't find auto-import package '${e}'`)))}}class Km extends Fm{constructor(e){super(Do.MODEL_GENERATION,e)}}class Xm extends Fm{coreModel;systemModel;generationModel;dependencyManager;constructor(e,t,n){super(Do.MAIN,n),this.coreModel=e,this.systemModel=t,this.generationModel=new Km(n),this.dependencyManager=new $m(n)}get autoImports(){return this.systemModel.autoImports}get primitiveTypes(){return this.coreModel.primitiveTypes}get sectionIndices(){return[...this.coreModel.ownSectionIndices,...this.systemModel.ownSectionIndices,...this.dependencyManager.sectionIndices,...this.ownSectionIndices,...this.generationModel.ownSectionIndices]}get profiles(){return[...this.coreModel.ownProfiles,...this.systemModel.ownProfiles,...this.dependencyManager.profiles,...this.ownProfiles,...this.generationModel.ownProfiles]}get enumerations(){return[...this.coreModel.ownEnumerations,...this.systemModel.ownEnumerations,...this.dependencyManager.enumerations,...this.ownEnumerations,...this.generationModel.ownEnumerations]}get measures(){return[...this.coreModel.ownMeasures,...this.systemModel.ownMeasures,...this.dependencyManager.measures,...this.ownMeasures,...this.generationModel.ownMeasures]}get classes(){return[...this.coreModel.ownClasses,...this.systemModel.ownClasses,...this.dependencyManager.classes,...this.ownClasses,...this.generationModel.ownClasses]}get types(){return[...this.coreModel.ownTypes,...this.systemModel.ownTypes,...this.dependencyManager.types,...this.ownTypes,...this.generationModel.ownTypes]}get associations(){return[...this.coreModel.ownAssociations,...this.systemModel.ownAssociations,...this.dependencyManager.associations,...this.ownAssociations,...this.generationModel.ownAssociations]}get functions(){return[...this.coreModel.ownFunctions,...this.systemModel.ownFunctions,...this.dependencyManager.functions,...this.ownFunctions,...this.generationModel.ownFunctions]}get functionActivators(){return[...this.coreModel.ownFunctionActivators,...this.systemModel.ownFunctionActivators,...this.dependencyManager.functionActivators,...this.ownFunctionActivators,...this.generationModel.ownFunctionActivators]}get stores(){return[...this.coreModel.ownStores,...this.systemModel.ownStores,...this.dependencyManager.stores,...this.ownStores,...this.generationModel.ownStores]}get databases(){return[...this.coreModel.ownDatabases,...this.systemModel.ownDatabases,...this.dependencyManager.databases,...this.ownDatabases,...this.generationModel.ownDatabases]}get mappings(){return[...this.coreModel.ownMappings,...this.systemModel.ownMappings,...this.dependencyManager.mappings,...this.ownMappings,...this.generationModel.ownMappings]}get services(){return[...this.coreModel.ownServices,...this.systemModel.ownServices,...this.dependencyManager.services,...this.ownServices,...this.generationModel.ownServices]}get runtimes(){return[...this.coreModel.ownRuntimes,...this.systemModel.ownRuntimes,...this.dependencyManager.runtimes,...this.ownRuntimes,...this.generationModel.ownRuntimes]}get connections(){return[...this.coreModel.ownConnections,...this.systemModel.ownConnections,...this.dependencyManager.connections,...this.ownConnections,...this.generationModel.ownConnections]}get dataElements(){return[...this.coreModel.ownDataElements,...this.systemModel.ownDataElements,...this.dependencyManager.dataElements,...this.ownDataElements,...this.generationModel.ownDataElements]}get executionEnvironments(){return[...this.coreModel.ownExecutionEnvironments,...this.systemModel.ownExecutionEnvironments,...this.dependencyManager.executionEnvironments,...this.ownExecutionEnvironments,...this.generationModel.ownExecutionEnvironments]}get generationSpecifications(){return[...this.coreModel.ownGenerationSpecifications,...this.systemModel.ownGenerationSpecifications,...this.dependencyManager.generationSpecifications,...this.ownGenerationSpecifications,...this.generationModel.ownGenerationSpecifications]}get fileGenerations(){return[...this.coreModel.ownFileGenerations,...this.systemModel.ownFileGenerations,...this.dependencyManager.fileGenerations,...this.ownFileGenerations,...this.generationModel.ownFileGenerations]}get allElements(){return[...this.coreModel.allOwnElements,...this.systemModel.allOwnElements,...this.dependencyManager.allOwnElements,...this.allOwnElements,...this.generationModel.allOwnElements]}get testables(){return[...this.coreModel.ownTestables,...this.systemModel.ownTestables,...this.dependencyManager.testables,...this.ownTestables,...this.generationModel.ownTestables]}getPrimitiveType=e=>V(this.coreModel.primitiveTypesIndex.get(e),`Can't find primitive type '${e}'`);getType=e=>V(this.getOwnNullableType(e)??this.generationModel.getOwnNullableType(e)??this.dependencyManager.getOwnNullableType(e)??this.systemModel.getOwnNullableType(e)??this.coreModel.getOwnNullableType(e),`Can't find type '${e}'`);getProfile=e=>V(this.getOwnNullableProfile(e)??this.generationModel.getOwnNullableProfile(e)??this.dependencyManager.getOwnNullableProfile(e)??this.systemModel.getOwnNullableProfile(e),`Can't find profile '${e}'`);getEnumeration=e=>$(this.getType(e),cr,`Can't find enumeration '${e}'`);getMeasure=e=>$(this.getType(e),dr,`Can't find measure '${e}'`);getUnit=e=>$(this.getType(e),lr,`Can't find unit '${e}'`);getClass=e=>$(this.getType(e),rr,`Can't find class '${e}'`);getAssociation=e=>V(this.getOwnNullableAssociation(e)??this.generationModel.getOwnNullableAssociation(e)??this.dependencyManager.getOwnNullableAssociation(e)??this.systemModel.getOwnNullableAssociation(e),`Can't find association '${e}'`);getPropertyOwner=e=>V(this.getOwnNullableAssociation(e)??this.generationModel.getOwnNullableAssociation(e)??this.dependencyManager.getOwnNullableAssociation(e)??this.systemModel.getOwnNullableAssociation(e)??$(this.getType(e),rr),`Can't find property owner '${e}'`);getFunction=e=>$(this.getOwnNullableFunction(e)??this.generationModel.getOwnNullableFunction(e)??this.dependencyManager.getOwnNullableFunction(e)??this.systemModel.getOwnNullableFunction(e),nm,`Can't find function '${e}'`);getFunctionActivator=e=>$(this.getOwnNullableFunctionActivator(e)??this.generationModel.getOwnNullableFunctionActivator(e)??this.dependencyManager.getOwnNullableFunctionActivator(e)??this.systemModel.getOwnNullableFunctionActivator(e),km,`Can't find function activator '${e}'`);getStore=e=>V(this.getOwnNullableStore(e)??this.generationModel.getOwnNullableStore(e)??this.dependencyManager.getOwnNullableStore(e)??this.systemModel.getOwnNullableStore(e)??this.coreModel.getOwnNullableStore(e),`Can't find store '${e}'`);getFlatDataStore=e=>$(this.getStore(e),sm,`Can't find flat-data store '${e}'`);getDatabase=e=>$(this.getStore(e),dm,`Can't find database store '${e}'`);getMapping=e=>V(this.getOwnNullableMapping(e)??this.generationModel.getOwnNullableMapping(e)??this.dependencyManager.getOwnNullableMapping(e)??this.systemModel.getOwnNullableMapping(e),`Can't find mapping '${e}'`);getService=e=>V(this.getOwnNullableService(e)??this.generationModel.getOwnNullableService(e)??this.dependencyManager.getOwnNullableService(e)??this.systemModel.getOwnNullableService(e),`Can't find service '${e}'`);getConnection=e=>V(this.getOwnNullableConnection(e)??this.generationModel.getOwnNullableConnection(e)??this.dependencyManager.getOwnNullableConnection(e)??this.systemModel.getOwnNullableConnection(e),`Can't find connection '${e}'`);getRuntime=e=>V(this.getOwnNullableRuntime(e)??this.generationModel.getOwnNullableRuntime(e)??this.dependencyManager.getOwnNullableRuntime(e)??this.systemModel.getOwnNullableRuntime(e),`Can't find runtime '${e}'`);getGenerationSpecification=e=>V(this.getOwnNullableGenerationSpecification(e)??this.generationModel.getOwnNullableGenerationSpecification(e)??this.dependencyManager.getOwnNullableGenerationSpecification(e)??this.systemModel.getOwnNullableGenerationSpecification(e),`Can't find generation specification '${e}'`);getFileGeneration=e=>V(this.getOwnNullableFileGeneration(e)??this.generationModel.getOwnNullableFileGeneration(e)??this.dependencyManager.getOwnNullableFileGeneration(e)??this.systemModel.getOwnNullableFileGeneration(e),`Can't find file generation '${e}'`);getDataElement=e=>V(this.getOwnNullableDataElement(e)??this.generationModel.getOwnNullableDataElement(e)??this.dependencyManager.getOwnNullableDataElement(e)??this.systemModel.getOwnNullableDataElement(e),`Can't find data element '${e}'`);getExtensionElement(e,t,n){return V(this.getOwnNullableExtensionElement(e,t)??this.generationModel.getOwnNullableExtensionElement(e,t)??this.dependencyManager.getOwnNullableExtensionElement(e,t)??this.systemModel.getOwnNullableExtensionElement(e,t),n??`Can't find element '${e}'`)}getElement=(e,t)=>V(this.getNullableElement(e,t),`Can't find element '${e}'`);getNullableClass=e=>D((()=>this.getClass(e)));getNullableMapping=e=>D((()=>this.getMapping(e)));getNullableService=e=>D((()=>this.getService(e)));getNullableRuntime=e=>D((()=>this.getRuntime(e)));getNullableFileGeneration=e=>D((()=>this.getFileGeneration(e)));getNullableElement(e,t){const n=super.getOwnNullableElement(e)??this.dependencyManager.getNullableElement(e)??this.generationModel.getOwnNullableElement(e)??this.systemModel.getOwnNullableElement(e)??this.coreModel.getOwnNullableElement(e);return t&&!n?this.getNullablePackage(e)??this.dependencyManager.getNullableElement(e,!0)??this.generationModel.getNullablePackage(e)??this.systemModel.getNullablePackage(e):n}getMultiplicity(e,t){let n;return 1===e&&1===t?n=Wh.ONE:0===e&&1===t?n=Wh.ZERO_ONE:0===e&&void 0===t?n=Wh.ZERO_MANY:1===e&&void 0===t?n=Wh.ONE_MANY:0===e&&0===t&&(n=Wh.ZERO),n??new Wh(e,t)}addElement(e,t){const n=_m(t??"",e.name);if(this.getNullableElement(n,!1))throw new P(`Can't create element '${n}': another element with the same path already existed`);super.addOwnElement(e,t)}deleteElement(e){super.deleteOwnElement(e);const t=this.graphPlugins.flatMap((e=>e.getExtraDeadReferencesCleaners?.()??[]));for(const e of t)e(this)}renameElement(e,t){if(this.getNullableElement(t,!1))throw new P(`Can't rename element '${e.path}' to '${t}': another element with the same path already existed`);super.renameOwnElement(e,e.path,t)}}const qm=(e,t)=>`${V(e,"Package path is required")}${Po}${V(t,"Name is required")}`,Jm=e=>e instanceof zm?"System elements":e instanceof Km?"Generation elements":e instanceof Gm&&e.origin instanceof jm?`Project dependency ${e.origin.groupId}:${e.origin.artifactId} `:"";class Zm{elementClassName;_class;prerequisites=[];firstPass;secondPass;thirdPass;fourthPass;fifthPass;constructor(e){this.elementClassName=e.elementClassName,this._class=e._class,this.prerequisites=e.prerequisites??[],this.firstPass=e.firstPass,this.secondPass=e.secondPass,this.thirdPass=e.thirdPass,this.fourthPass=e.fourthPass,this.fifthPass=e.fifthPass}getElementProtocolClass(){return this._class}getPrerequisiteElementProtocolClasses(){return this.prerequisites}runFirstPass(e,t,n,i){Y(e.package,"Element 'package' field is missing or empty"),Y(e.name,"Element 'name' field is missing or empty"),((e,t,n)=>{if(n){if(n.has(e)){const n=t.graph.getNullableElement(e),i=xm(V(n),t.graph);throw new F(`${Jm(t.currentSubGraph)}Element '${e}' already exists${i?` in ${i}`:""}`)}n.add(e)}else{const n=t.graph.getNullableElement(e);if(n){const i=xm(n,t.graph);throw new F(`${Jm(t.currentSubGraph)}Element '${e}' already exists${i?` in ${i}`:""}`)}}})(qm(e.package,e.name),t,i);const s=this.firstPass(e,t);return Em(Cm(t.currentSubGraph,e.package,n),s),s}runSecondPass(e,t){this.secondPass?.(e,t)}runThirdPass(e,t){this.thirdPass?.(e,t)}runFourthPass(e,t){this.fourthPass?.(e,t)}runFifthPass(e,t){this.fifthPass?.(e,t)}}const Qm=e=>e.classView.value.id,eg=e=>{const t=new Xp,n=new Wp;return n.points=e.pathForSerialization,t.line=n,t.property=((e,t)=>{const n=new nh;return n.class=t?.isTransformingEmbeddedPropertyMapping||t?.isTransformingLocalPropertyMapping?void 0:e.ownerReference.valueForSerialization??"",n.property=e.value.name,n})(e.property),t.sourceView=Qm(e.from),t.targetView=Qm(e.to),t},tg=e=>{const t=new qp,n=new Wp;return n.points=e.pathForSerialization,t.line=n,t.sourceView=Qm(e.from),t.targetView=Qm(e.to),t},ng=e=>{const t=new Up;return t.class=e.class.valueForSerialization??"",t.hideProperties=e.hideProperties,t.hideStereotypes=e.hideStereotypes,t.hideTaggedValues=e.hideTaggedValues,t.id=e.id,t.position=((e,t)=>{const n=new $p;return n.x=e,n.y=t,n})(e.position.x,e.position.y),t.rectangle=((e,t)=>{const n=new Yp;return n.height=e,n.width=t,n})(e.rectangle.height,e.rectangle.width),t};class ig{x;y;constructor(e,t){this.x=e,this.y=t}get hashCode(){return ko([Fp.POINT,this.x.toString(),this.y.toString()])}}class sg{width;height;constructor(e,t){this.width=e,this.height=t}get hashCode(){return ko([Fp.RECTANGLE,this.width.toString(),this.height.toString()])}}class og{_dummyObservable={};position;rectangle;constructor(e,t){this.position=e,this.rectangle=t}center=()=>new ig(this.position.x+this.rectangle.width/2,this.position.y+this.rectangle.height/2);contains(e,t){const n=this.normalizeBox(this);return e>n.position.x&&e<n.position.x+n.rectangle.width&&t>n.position.y&&t<n.position.y+n.rectangle.height}normalizeBox(e){let t=e;return e.rectangle.width<0&&(t=new og(new ig(e.position.x+e.rectangle.width,e.position.y),new sg(-e.rectangle.width,e.rectangle.height))),e.rectangle.height<0&&(t=new og(new ig(e.position.x,e.position.y+e.rectangle.height),new sg(e.rectangle.width,-e.rectangle.height))),t}get hashCode(){return this._dummyObservable,ko([Fp.POSITIONED_RECTANGLE,this.position,this.rectangle])}}class rg extends og{_OWNER;class;id;hideProperties;hideTaggedValues;hideStereotypes;constructor(e,t,n){super(new ig(0,0),new sg(0,0)),this._OWNER=e,this.id=t,this.class=n}get hashCode(){return ko([Fp.CLASS_VIEW,super.hashCode,this.id,this.class.valueForSerialization??"",this.hideProperties?.toString()??"",this.hideTaggedValues?.toString()??"",this.hideStereotypes?.toString()??""])}}class ag{_offsetX;_offsetY;classView;constructor(e){this.classView=e}}class cg extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}}class lg extends cg{ownerReference;constructor(e){const t=Er.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new lg(e)}}class dg{_OWNER;from;to;path=[];constructor(e,t,n){this._OWNER=e,this.from=new ag(lg.create(t)),this.to=new ag(lg.create(n))}computeEdgeEndpoint(e,t=!0){const n=e.classView.value,i=e.classView.value.center(),s=i.x+(e._offsetX??0),o=i.y+(e._offsetY??0);return n.contains(s,o)?new ig(s,o):(t&&(e._offsetX=0,e._offsetY=0),new ig(i.x,i.y))}buildFullPath(e=!0){return[this.computeEdgeEndpoint(this.from,e),...this.path,this.computeEdgeEndpoint(this.to,e)]}static pruneUnnecessaryInsidePoints=(e,t,n)=>{z(Boolean(e.length),"Path requires at least 1 point");let i=0,s=e[i];for(;i<e.length-1&&t.contains(s.x,s.y);)i++,s=e[i];let o=e.length-1,r=e[o];for(;o>0&&n.contains(r.x,r.y);)o--,r=e[o];const a=e.slice(i-1,o+2);return a.length<2?[s,r]:a};get pathForSerialization(){return dg.pruneUnnecessaryInsidePoints(this.buildFullPath(),this.from.classView.value,this.to.classView.value)}get hashCode(){return ko([Fp.RELATIONSHIP_VIEW,this.from.classView.value.id,this.to.classView.value.id,ko(this.pathForSerialization)])}}class ug extends dg{property;constructor(e,t,n,i){super(e,n,i),this.property=t}get hashCode(){return ko([Fp.PROPERTY_HOLDER_VIEW,super.hashCode,this.property.pointerHashCode])}}class pg extends ug{get hashCode(){return ko([Fp.PROPERTY_VIEW,super.hashCode])}}class hg extends dg{get hashCode(){return ko([Fp.GENERALIZATION_VIEW,super.hashCode])}}class mg{x;y;constructor(e,t){this.x=e,this.y=t}static fromPoints(e,t){return new mg(t.x-e.x,t.y-e.y)}unit(){const e=Math.sqrt(this.x*this.x+this.y*this.y);return new mg(this.x/e,this.y/e)}normal(e){return new mg(e.y-this.y,-(e.x-this.x))}dotProduct(e){return this.x*e.x+this.y*e.y}}const gg=e=>{let t=0,n=0;for(;e.offsetParent;)t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent;return new ig(t,n)},fg=(e,t)=>e.classViews.find((e=>e.id===t)),_g=(e,t)=>{e.path=t},Eg=e=>{const t=e.buildFullPath(),n=dg.pruneUnnecessaryInsidePoints(t,e.from.classView.value,e.to.classView.value);if(n[0]!==t[0]){const t=e.from.classView.value.center();e.from._offsetX=V(n[0],"Diagram path expected to have at least 2 points").x-t.x,e.from._offsetY=V(n[0],"Diagram path expected to have at least 2 points").y-t.y}if(n[n.length-1]!==t[t.length-1]){const t=e.to.classView.value.center();e.to._offsetX=n[n.length-1].x-t.x,e.to._offsetY=n[n.length-1].y-t.y}const i=[];for(let e=0;e<n.length-2;e++){const t=mg.fromPoints(n[e+1],n[e]).unit(),s=mg.fromPoints(n[e+1],n[e+2]).unit(),o=t.dotProduct(s),r=180*Math.acos(o)/Math.PI;Math.abs(r-180)>5&&i.push(n[e+1])}_g(e,i)},Ng=(e,t)=>e.x*Math.cos(t)-e.y*Math.sin(t),bg=(e,t)=>e.x*Math.sin(t)+e.y*Math.cos(t),vg=e=>new ig(e.position.x+e.rectangle.width,e.position.y+e.rectangle.height),Tg=e=>{const t=vg(e);return new og(new ig(t.x-5,t.y-5),new sg(10,10))},Cg=(e,t)=>(t=e.normalizeBox(t),e.contains(t.position.x,t.position.y)||e.contains(t.position.x+t.rectangle.width,t.position.y)||e.contains(t.position.x,t.position.y+t.rectangle.height)||e.contains(t.position.x+t.rectangle.width,t.position.y+t.rectangle.height)),yg=e=>{const t=V(e.x,"Point 'x' coordinate is missing"),n=V(e.y,"Point 'y' coordinate is missing");return new ig(t,n)};class Sg extends $h{constructor(){super(vo.XO.gM,vo.rE)}V1_getExtraElementBuilders(){return[new Zm({elementClassName:"Diagram",_class:Hp,firstPass:(e,t)=>{U(e,Hp);const n=new Bp(e.name),i=qm(e.package,e.name);return t.currentSubGraph.setOwnElementInExtension(i,n,Bp),n},secondPass:(e,t)=>{U(e,Hp);const n=(i=qm(e.package,e.name),s=t.currentSubGraph,V(s.getOwnNullableExtensionElement(i,Bp),`Can't find diagram '${i}'`));var i,s;n.classViews=e.classViews.map((e=>((e,t,n)=>{Y(e.class,"Class view 'class' field is missing or empty"),Y(e.id,"Class view 'id' field is missing or empty"),j(e.rectangle,"Class view 'rectangle' field is missing"),j(e.position,"Class view 'position' field is missing");const i=new rg(n,e.id,t.resolveClass(e.class));return i.hideProperties=e.hideProperties,i.hideTaggedValues=e.hideTaggedValues,i.hideStereotypes=e.hideStereotypes,i.rectangle=(e=>{const t=V(e.width,"Rectangle 'width' is missing"),n=V(e.height,"Rectangle 'height' is missing");return new sg(t,n)})(e.rectangle),i.position=yg(e.position),i})(e,t,n))),n.propertyViews=e.propertyViews.map((e=>((e,t,n)=>{j(e.property,"Property view 'property' field is missing"),j(e.line,"Property view 'line' field is missing");const i=V(fg(n,V(e.sourceView)),"Property view 'sourceView' field is missing"),s=V(fg(n,V(e.targetView)),"Property view 'targetView' field is missing"),o=t.resolveOwnProperty(e.property),r=new pg(n,o,i,s);r.path=e.line.points.map((e=>yg(e)));try{Eg(r)}catch(e){M(e),t.logService.warn(u.create(e.message))}return r})(e,t,n))),n.generalizationViews=e.generalizationViews.map((e=>((e,t,n)=>{j(e.line,"Generalization view 'line' field is missing");const i=V(fg(t,V(e.sourceView)),"Generalization view 'sourceView' field is missing"),s=V(fg(t,V(e.targetView)),"Generalization view 'targetView' field is missing"),o=new hg(t,i,s);o.path=e.line.points.map((e=>yg(e)));try{Eg(o)}catch(e){M(e),n.logService.warn(u.create(e.message))}return o})(e,n,t)))}})]}V1_getExtraElementClassifierPathGetters(){return[e=>{if(e instanceof Hp)return"meta::pure::metamodel::diagram::Diagram"}]}V1_getExtraElementProtocolSerializers(){return[(e,t)=>{if(e instanceof Hp)return(0,ge.lK)(Uh,e)}]}V1_getExtraElementProtocolDeserializers(){return[(e,t)=>{if(e._type===Dh)return(0,ge.iu)(Uh,e)}]}V1_getExtraElementTransformers(){return[(e,t)=>{if(e instanceof Bp)return(e=>{const t=new Hp;return((e,t)=>{e.name=t.name,e.package=t.package?.path??""})(t,e),t.classViews=e.classViews.map(ng),t.generalizationViews=e.generalizationViews.map(tg),t.propertyViews=e.propertyViews.map(eg),t})(e)}]}}class Ag extends a{_$nominalTypeBrand;install(e){e.registerPureGraphPlugin(this)}}class Ig extends Ag{constructor(){super(vo.XO.QC,vo.rE)}getExtraPureGraphExtensionClasses(){return[Bp]}getExtraDeadReferencesCleaners(){return[e=>{e.getExtensionForElementClass(Bp).elements.forEach((t=>((e,t)=>{e.propertyViews.filter((e=>!(e.property.ownerReference.value instanceof rr?Am(e.property.ownerReference.value):e.property.ownerReference.value.properties).map((e=>e.name)).includes(e.property.value.name))).forEach((t=>O(e.propertyViews,t))),e.classViews.filter((e=>!t.getNullableClass(e.class.value.path))).forEach((t=>O(e.classViews,t))),e.generalizationViews.filter((e=>{const n=e.from.classView.value.class.value,i=e.to.classView.value.class.value;return!t.getNullableClass(n.path)||!t.getNullableClass(i.path)||0===n.generalizations.filter((e=>e.value.rawType===i)).length})).forEach((t=>O(e.generalizationViews,t)))})(t,e)))}]}}class xg extends l{constructor(){super(vo.XO.rj,vo.rE,[new Ig,new jp,new Sg])}}var wg,Og=n(6839),Rg=n(8684);class kg{historyAPI;_isNavigationBlocked=!1;_forceBypassNavigationBlocking=!1;_blockCheckers=[];_beforeUnloadListener=e=>{this._forceBypassNavigationBlocking||this._blockCheckers.some((e=>e()))&&(e.returnValue="")};onBlock;onNativePlatformNavigationBlock;constructor(e){(0,ke.Gn)(this,{_isNavigationBlocked:ke.sH,isNavigationBlocked:ke.EW,blockNavigation:ke.XI,unblockNavigation:ke.XI}),this.historyAPI=e}get window(){return V(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=((e,t=!1)=>t?ee.A.parseUrl(e).query:ee.A.parse(e))((n=this.getCurrentAddress(),(0,te.J)(n)),!0);var n;return Object.keys(t).forEach((n=>{e[n]=((e,t)=>{const n=t[e];return n?decodeURIComponent(n):void 0})(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 i,s;delete n[e],this.updateCurrentLocation((i=this.getCurrentLocation(),s=(e=>{const t={};return Object.entries(e).forEach((([e,n])=>{n&&(t[e]=n.toString())})),ee.A.stringify(t)})(n),s?`${i}?${s}`:i)),this.updateCurrentZone(t)}}class Pg{applicationStore;constructor(e){this.applicationStore=e}async initialize(){}}!function(e){e.INITIAL_COLOR_THEME="initialColorTheme"}(wg||(wg={}));class Lg extends Pg{navigator;constructor(e,t){super(e),this.navigator=new kg(t.historyAPI)}getNavigator(){return this.navigator}async initialize(){const e=this.applicationStore.navigationService.navigator.getCurrentLocationParameterValue(wg.INITIAL_COLOR_THEME);e&&(this.applicationStore.layoutService.setColorTheme(e),this.applicationStore.navigationService.navigator.INTERNAL__internalizeTransientParameter(wg.INITIAL_COLOR_THEME))}}const Mg=(0,Gt.createContext)(void 0),Dg="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/BrowserEnvironmentProvider.tsx",Fg=({children:e})=>{const t=$t(),n=(0,Og.W6)(),i=(0,It.iz)((()=>new Lg(t,{historyAPI:n})));return(0,Et.jsxDEV)(Mg.Provider,{value:i,children:e},void 0,!1,{fileName:Dg,lineNumber:34,columnNumber:11},void 0)},Bg=({children:e,baseUrl:t})=>(0,Et.jsxDEV)(Rg.Kd,{basename:t,children:(0,Et.jsxDEV)(Fg,{children:e},void 0,!1,{fileName:Dg,lineNumber:46,columnNumber:5},void 0)},void 0,!1,{fileName:Dg,lineNumber:44,columnNumber:34},void 0),jg="/welcome.pure",Vg="/",Hg="::";var Gg,Ug;!function(e){e.CONCEPT_EXPLORER="CONCEPT_EXPLORER",e.FILE_EXPLORER="FILE_EXPLORER"}(Gg||(Gg={})),function(e){e.TERMINAL="TERMINAL",e.SEARCH="SEARCH",e.REFERENCES="REFERNECES",e.TEST_RUNNER="TEST_RUNNER",e.CODE_FIX_SUGGESTION="CODE_FIX_SUGGESTION"}(Ug||(Ug={}));var $g,Yg=n(7504);!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"}($g||($g={}));const Wg=(e,t,n,i)=>{const s=(e=>{const t=[];e.tokenColors.forEach((e=>{if(!e.settings)return;let n=[];n=K(e.scope)?e.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(",").map((e=>e.trim())):Array.isArray(e.scope)?e.scope:[""];const i={};e.settings.foreground&&K(e.settings.foreground)&&(i.foreground=e.settings.foreground),e.settings.background&&K(e.settings.background)&&(i.background=e.settings.background),e.settings.fontStyle&&K(e.settings.fontStyle)&&(i.fontStyle=e.settings.fontStyle),n.forEach((e=>{if(B(e)||!Object.keys(i).length)return;const n={...i,token:e};t.push(n)}))}));const n={};return Object.entries(e.colors).forEach((([e,t])=>{var i;Array.isArray(t)?t.length&&(n[e]=(z(0<(i=t).length,"Index out of bound: 0"),V(i[0],void 0))):n[e]=t})),{base:"vs-dark",inherit:!0,rules:t,colors:n}})(e);return{...s,base:t,colors:{...s.colors,...n},rules:[...s.rules,...i]}},zg=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}'),Kg=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"}}]}'),Xg=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"}}]}'),qg=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"}}'),Jg=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"}}'),Zg=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"}}'),Qg=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"}}'),ef=[{token:$g.IDENTIFIER,foreground:"dcdcaa"},{token:$g.NUMBER,foreground:"b5cea8"},{token:$g.DATE,foreground:"b5cea8"},{token:$g.COLOR,foreground:"b5cea8"},{token:$g.PACKAGE,foreground:"808080"},{token:$g.PARSER,foreground:"c586c0"},{token:$g.LANGUAGE_STRUCT,foreground:"c586c0"},{token:$g.MULTIPLICITY,foreground:"2d796b"},{token:$g.GENERICS,foreground:"2d796b"},{token:$g.PROPERTY,foreground:"9cdcfe"},{token:$g.PARAMETER,foreground:"9cdcfe"},{token:$g.VARIABLE,foreground:"4fc1ff"},{token:$g.TYPE,foreground:"3dc9b0"},{token:`${$g.STRING}.escape`,foreground:"d7ba7d"}];var tf;!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"}(tf||(tf={}));const nf={base:"vs-dark",inherit:!0,colors:{},rules:[...ef,{token:"string.sql",foreground:"ce9178"},{token:"white.sql",foreground:"d4d4d4"},{token:"identifier.sql",foreground:"d4d4d4"},{token:"operator.sql",foreground:"d4d4d4"}]},sf=Wg(zg,tf.BUILT_IN__VSCODE_DARK,{},[]),of=Wg(Kg,tf.BUILT_IN__VSCODE_DARK,{},[]),rf=Wg(Xg,tf.BUILT_IN__VSCODE_DARK,{},[]),af=Wg(qg,tf.BUILT_IN__VSCODE_DARK,{},[]),cf=Wg(Jg,tf.BUILT_IN__VSCODE_DARK,{},[]),lf=Wg(Zg,tf.BUILT_IN__VSCODE_DARK,{},[]),df=Wg(Qg,tf.BUILT_IN__VSCODE_DARK,{},[]),uf=(e,t)=>{e.hasTextFocus()||e.focus(),e.revealPositionInCenter(t,0),e.setPosition(t)},pf="dummy_problem_marker_owner";var hf,mf;!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"}(hf||(hf={})),function(e){e.PACKAGE="Package",e.PROFILE="Profile",e.TAG="Tag",e.STEREOTYPE="Stereotype",e.CLASS="Class",e.ASSOCIATION="Association",e.PROPERTY="Property",e.QUALIFIED_PROPERTY="QualifiedProperty",e.ENUMERATION="Enumeration",e.ENUM_VALUE="Enum",e.MEASURE="Measure",e.UNIT="Unit",e.FUNCTION="ConcreteFunctionDefinition",e.NATIVE_FUNCTION="NativeFunction",e.DIAGRAM="Diagram",e.DATABASE="Database",e.MAPPING="Mapping"}(mf||(mf={}));class gf{pureId;pureType;pureName;get id(){return this.pureId}}class ff extends gf{deprecated}(0,ge.PL)(ff,{pureId:(0,ge.MY)(),pureType:(0,ge.MY)(),deprecated:(0,ge.MY)()});class _f extends gf{RO;classPath;file;line;column;get id(){return`${this.classPath}.${this.pureId}`}}(0,ge.PL)(_f,{pureId:(0,ge.MY)(),pureName:(0,ge.MY)(),pureType:(0,ge.MY)(),RO:(0,ge.MY)(),classPath:(0,ge.MY)(),file:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)()});class Ef extends gf{RO;notpublic;user;file;line;column}(0,ge.PL)(Ef,{pureId:(0,ge.MY)(),pureName:(0,ge.lq)((0,ge.MY)()),pureType:(0,ge.MY)(),RO:(0,ge.MY)(),notpublic:(0,ge.MY)(),user:(0,ge.MY)(),file:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)()});class Nf{li_attr;id;text;icon;children;state;getNodeAttribute(e){return $(this.li_attr,e,`Expected concept node attribute to be of type '${e.name}'`)}}(0,ge.PL)(Nf,{li_attr:(0,ge.Ie)((()=>ge._Z),(e=>e.classPath?(0,ge.iu)(_f,e):e.file?(0,ge.iu)(Ef,e):(0,ge.iu)(ff,e))),id:(0,ge.MY)(),text:(0,ge.MY)(),icon:(0,ge.MY)(),children:(0,ge.MY)(),state:(0,ge.MY)()});const bf=e=>e.startsWith("/")?e.substring(1,e.length):e;class vf{content;RO;constructor(){(0,ke.Gn)(this,{content:ke.sH,hashCode:ke.EW,setContent:ke.XI})}setContent(e){this.content=e}get hashCode(){return Ro(this.content)}}(0,ge.PL)(vf,{content:(0,ge.MY)(),RO:(0,ge.MY)()});class Tf{file;line;column;constructor(e,t,n){this.file=e,this.line=t,this.column=n}}class Cf extends Tf{error;constructor(e,t,n,i){super(e,t??1,n??1),this.error=i}}var yf;!function(e){e.ENUM="meta::pure::ide::findusages::findUsagesForEnum_String_1__String_1__SourceInformation_MANY_",e.PROPERTY="meta::pure::ide::findusages::findUsagesForProperty_String_1__String_1__SourceInformation_MANY_",e.ELEMENT="meta::pure::ide::findusages::findUsagesForPath_String_1__SourceInformation_MANY_",e.MULTIPLE_PATHS="meta::pure::ide::findusages::findUsagesForMultiplePaths_String_1__Pair_MANY_"}(yf||(yf={}));const Sf=e=>`'${e.path}'${e.owner?` of '${e.owner}'`:""}`;class Af{source;line;column;startLine;startColumn;endLine;endColumn}(0,ge.PL)(Af,{source:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),startLine:(0,ge.MY)(),startColumn:(0,ge.MY)(),endLine:(0,ge.MY)(),endColumn:(0,ge.MY)()});class If{first;second}(0,ge.PL)(If,{first:(0,ge.MY)(),second:(0,ge.p_)((0,ge.Ik)(Af))});class xf{uuid=(0,o.A)();get description(){}match(e){return this===e}onOpen(){}onClose(){}}class wf{currentTab;tabs=[];constructor(){(0,ke.Gn)(this,{currentTab:ke.sH,tabs:ke.sH,setCurrentTab:ke.XI,closeTab:ke.XI,closeAllTabs:ke.XI,closeAllOtherTabs:ke.XI,openTab:ke.XI,swapTabs:ke.XI})}setCurrentTab(e){this.currentTab=e}closeAllOtherTabs(e){j(this.tabs.find((t=>t===e)),"Specified tab should be currently opened"),this.setCurrentTab(e),this.tabs=[e]}closeAllTabs(){this.setCurrentTab(void 0),this.tabs=[]}swapTabs(e,t){w(this.tabs,e,t)}openTab(e){if(!this.tabs.find((t=>t.match(e))))if(this.currentTab){const t=this.tabs.findIndex((e=>e===this.currentTab));this.tabs.splice(t+1,0,e)}else this.tabs.push(e);this.setCurrentTab(e),e.onOpen()}closeTab(e){const t=this.tabs.findIndex((t=>t.match(e)));if(z(-1!==t,"Can't close a tab which is not opened"),this.tabs.splice(t,1),this.currentTab===e)if(this.tabs.length){const e=t-1;this.setCurrentTab(e>=0?this.tabs[e]:this.tabs[0])}else this.setCurrentTab(void 0);e.onClose()}}class Of extends xf{ideStore;constructor(e){super(),this.ideStore=e}}class Rf extends wf{ideStore;constructor(e){super(),this.ideStore=e}get dndType(){return"editor.tab-manager.tab"}closeTab(e){e instanceof Hf&&e.hasChanged?this.ideStore.applicationStore.alertService.setActionAlertInfo({message:"Unsaved changes will be lost if you continue. Do you still want to proceed?",prompt:"To save changes, abort and compile",type:jt.CAUTION,actions:[{label:"Proceed",type:Vt.PROCEED_WITH_CAUTION,handler:()=>super.closeTab(e)},{label:"Save changes",type:Vt.PROCEED_WITH_CAUTION,handler:()=>{(0,ke.gP)(this.ideStore.executeGo()).then((()=>{super.closeTab(e)})).catch(this.ideStore.applicationStore.alertUnhandledError)}},{label:"Abort",type:Vt.PROCEED,default:!0}]}):super.closeTab(e)}}var kf;!function(e){e.SEARCH_FILE="editor.search.file",e.SEARCH_TEXT="editor.search.text",e.GO_TO_FILE="editor.go-to-file",e.TOGGLE_TERMINAL_PANEL="editor.toggle-terminal-panel",e.EXECUTE="editor.execute",e.FULL_RECOMPILE="editor.full-compile",e.FULL_RECOMPILE_WITH_FULL_INIT="editor.full-compile.with-init",e.RUN_ALL_TESTS="editor.run-all-tests",e.RUN_RELAVANT_TESTS="editor.run-relavant-tests"}(kf||(kf={}));const Pf={[kf.SEARCH_FILE]:{title:"Search for file",defaultKeyboardShortcut:"Control+Shift+KeyN",additionalKeyboardShortcuts:["Control+KeyP","Meta+KeyP"]},[kf.SEARCH_TEXT]:{title:"Search text",defaultKeyboardShortcut:"Control+Shift+KeyF",additionalKeyboardShortcuts:["Meta+Shift+KeyF"]},[kf.GO_TO_FILE]:{title:"Go to file",defaultKeyboardShortcut:"Control+F1"},[kf.TOGGLE_TERMINAL_PANEL]:{title:"Toggle terminal",defaultKeyboardShortcut:"Control+Backquote"},[kf.EXECUTE]:{title:"Execute",defaultKeyboardShortcut:"F9"},[kf.FULL_RECOMPILE]:{title:"Run full re-compilation",defaultKeyboardShortcut:"F11"},[kf.FULL_RECOMPILE_WITH_FULL_INIT]:{title:"Run full re-compilation",defaultKeyboardShortcut:"Shift+F11"},[kf.RUN_ALL_TESTS]:{title:"Run all tests",defaultKeyboardShortcut:"F10"},[kf.RUN_RELAVANT_TESTS]:{title:"Run relavant tests",defaultKeyboardShortcut:"Shift+F10"}};var Lf;!function(e){e.RECENTER="editor.diagram-editor.recenter",e.USE_ZOOM_TOOL="editor.diagram-editor.use-zoom-tool",e.USE_VIEW_TOOL="editor.diagram-editor.use-view-tool",e.USE_PAN_TOOL="editor.diagram-editor.use-pan-tool"}(Lf||(Lf={}));const Mf={[Lf.RECENTER]:{title:"Diagram Editor: Recenter",defaultKeyboardShortcut:"KeyR"},[Lf.USE_ZOOM_TOOL]:{title:"Diagram Editor: Use zoom tool",defaultKeyboardShortcut:"KeyZ"},[Lf.USE_VIEW_TOOL]:{title:"Diagram Editor: Use view tool",defaultKeyboardShortcut:"KeyV"},[Lf.USE_PAN_TOOL]:{title:"Diagram Editor: Use pan tool",defaultKeyboardShortcut:"KeyM"}};var Df;!function(e){e.TOGGLE_TEXT_WRAP="editor.file-editor.toggle-text-wrap",e.REVEAL_CONCEPT_IN_TREE="editor.file-editor.reveal-concept-in-tree",e.GO_TO_DEFINITION="editor.file-editor.go-to-definition",e.GO_BACK="editor.file-editor.go-back",e.FIND_USAGES="editor.file-editor.find-usage",e.RENAME_CONCEPT="editor.file-editor.rename-concept",e.GO_TO_LINE="editor.file-editor.go-to-line",e.DELETE_LINE="editor.file-editor.delete-line"}(Df||(Df={}));const Ff={[Df.TOGGLE_TEXT_WRAP]:{title:"Toggle Text-wrap (File)",defaultKeyboardShortcut:"Alt+KeyZ"},[Df.REVEAL_CONCEPT_IN_TREE]:{title:"Reveal Concept in Tree (File)",defaultKeyboardShortcut:"Control+Shift+KeyB"},[Df.GO_TO_DEFINITION]:{title:"Go to Definition (File)",defaultKeyboardShortcut:"Control+KeyB"},[Df.GO_BACK]:{title:"Go Back (File)",defaultKeyboardShortcut:"Control+Alt+KeyB"},[Df.FIND_USAGES]:{title:"Find Usages (File)",defaultKeyboardShortcut:"Alt+F7"},[Df.RENAME_CONCEPT]:{title:"Rename Concept (File)",defaultKeyboardShortcut:"F2"},[Df.GO_TO_LINE]:{title:"Go to Line (File)",defaultKeyboardShortcut:"Control+KeyG"},[Df.DELETE_LINE]:{title:"Delete Line (File)",defaultKeyboardShortcut:"Control+KeyD"}};var Bf;!function(e){e.GO="go",e.TEST="test",e.REMOVE="rm",e.MOVE="mv",e.NEW_DIRECTORY="mkdir",e.NEW_FILE="touch",e.OPEN_FILE="open",e.OPEN_DIRECTORY="cd",e.LIST_DIRECTORY="ls",e.WELCOME="welcome",e.ECHO="echo",e.CLEAR="clear",e.ANSI="ansi",e.HELP="help"}(Bf||(Bf={}));class jf{model;editor;_dummyCursorObservable={};language;viewState;forcedCursorPosition;wrapText=!1;constructor(e){(0,ke.Gn)(this,{viewState:ke.sH.ref,editor:ke.sH.ref,_dummyCursorObservable:ke.sH.ref,forcedCursorPosition:ke.sH.ref,wrapText:ke.sH,cursorObserver:ke.EW,notifyCursorObserver:ke.XI,setViewState:ke.XI,setEditor:ke.XI,setForcedCursorPosition:ke.XI,setWrapText:ke.XI}),this.language=(e=>{switch(A(e.split("."))){case"pure":return hf.PURE;case"java":return hf.JAVA;case"md":return hf.MARKDOWN;case"sql":return hf.SQL;case"json":return hf.JSON;case"xml":return hf.XML;case"yml":case"yaml":return hf.YAML;case"graphql":return hf.GRAPHQL;default:return hf.TEXT}})(e.filePath),this.model=Yg.editor.createModel(e.uuid,this.language),this.model.setValue(e.file.content)}notifyCursorObserver(){this._dummyCursorObservable={}}get cursorObserver(){return this._dummyCursorObservable,this.editor?{position:this.editor.getPosition()??void 0,selection:this.editor.getSelection()??void 0}:void 0}setViewState(e){this.viewState=e}setEditor(e){this.editor=e}setForcedCursorPosition(e){this.forcedCursorPosition=e}setWrapText(e){const t=this.wrapText;this.wrapText=e,t!==e&&this.editor&&(this.editor.updateOptions({wordWrap:e?"on":"off"}),this.editor.focus())}}class Vf{fileEditorState;concept;coordinate;constructor(e,t,n){this.fileEditorState=e,this.concept=t,this.coordinate=n}}class Hf extends Of{filePath;textEditorState;_currentHashCode;file;renameConceptState;showGoToLinePrompt=!1;constructor(e,t,n){super(e),(0,ke.Gn)(this,{_currentHashCode:ke.sH,file:ke.sH,renameConceptState:ke.sH,showGoToLinePrompt:ke.sH,hasChanged:ke.EW,resetChangeDetection:ke.XI,setFile:ke.XI,setShowGoToLinePrompt:ke.XI,setConceptToRenameState:ke.L3}),this.file=t,this._currentHashCode=t.hashCode,this.filePath=n,this.textEditorState=new jf(this)}get label(){return bf(this.filePath)}get description(){return`File: ${bf(this.filePath)}${this.file.RO?" (readonly)":""}`}get fileName(){return V(A(this.filePath.split("/")))}match(e){return e instanceof Hf&&this.filePath===e.filePath}onClose(){this.textEditorState.model.dispose()}get hasChanged(){return this._currentHashCode!==this.file.hashCode}resetChangeDetection(){this._currentHashCode=this.file.hashCode}setFile(e){this.file=e,this.textEditorState.model.setValue(e.content),this.resetChangeDetection()}setShowGoToLinePrompt(e){this.showGoToLinePrompt=e}*setConceptToRenameState(e){if(!e)return void(this.renameConceptState=void 0);if(this.hasChanged)return void this.ideStore.applicationStore.notificationService.notifyWarning("Can't rename concept: source is not compiled");const t=yield this.ideStore.getConceptInfo(e);this.renameConceptState=t?new Vf(this,t,e):void 0}showError(e){var t,n,i;t=this.textEditorState.model,n=[{message:e.error.message,startLineNumber:e.line,startColumn:e.column,endLineNumber:e.line,endColumn:e.column}],i=this.uuid,Yg.editor.setModelMarkers(t,i??pf,n.map((e=>({startLineNumber:e.startLineNumber,startColumn:e.startColumn,endLineNumber:e.endLineNumber,endColumn:e.endColumn+1,message:""===e.message?"(no error message)":e.message,severity:Yg.MarkerSeverity.Error}))))}clearError(){var e;e=this.uuid,Yg.editor.removeAllMarkers(e??pf)}registerCommands(){this.textEditorState.language===hf.PURE&&(this.ideStore.applicationStore.commandService.registerCommand({key:Df.GO_TO_DEFINITION,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&(0,ke.gP)(this.ideStore.executeNavigation(new Tf(this.filePath,e.lineNumber,e.column))).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.GO_BACK,action:()=>{(0,ke.gP)(this.ideStore.navigateBack()).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.REVEAL_CONCEPT_IN_TREE,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&this.ideStore.revealConceptInTree(new Tf(this.filePath,e.lineNumber,e.column)).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.FIND_USAGES,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();if(e){const t=new Tf(this.filePath,e.lineNumber,e.column);this.findConceptUsages(t)}}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.RENAME_CONCEPT,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();if(e){if(!this.textEditorState.model.getWordAtPosition(e))return;const t=new Tf(this.filePath,e.lineNumber,e.column);(0,ke.gP)(this.setConceptToRenameState(t)).catch(this.ideStore.applicationStore.alertUnhandledError)}}})),this.ideStore.applicationStore.commandService.registerCommand({key:Df.DELETE_LINE,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&this.textEditorState.model.pushEditOperations([],[{range:{startLineNumber:e.lineNumber,startColumn:1,endLineNumber:e.lineNumber+1,endColumn:1},text:"",forceMoveMarkers:!0}],(()=>null))}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.GO_TO_LINE,trigger:()=>this.ideStore.tabManagerState.currentTab===this,action:()=>{this.setShowGoToLinePrompt(!0)}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.TOGGLE_TEXT_WRAP,trigger:()=>this.ideStore.tabManagerState.currentTab===this,action:()=>{this.textEditorState.setWrapText(!this.textEditorState.wrapText)}})}findConceptUsages(e){const t=()=>{(0,ke.gP)(this.ideStore.findUsagesFromCoordinate(e)).catch(this.ideStore.applicationStore.alertUnhandledError)};this.hasChanged?this.ideStore.applicationStore.alertService.setActionAlertInfo({message:"Source is not compiled, finding concept usages might be inaccurate. Do you want compile to proceed?",type:jt.CAUTION,actions:[{label:"Compile and Proceed",type:Vt.PROCEED_WITH_CAUTION,handler:()=>{(0,ke.gP)(this.ideStore.executeGo()).then(t).catch(this.ideStore.applicationStore.alertUnhandledError)}},{label:"Abort",type:Vt.PROCEED,default:!0}]}):t()}async renameConcept(e){if(!this.renameConceptState)return;const t=this.renameConceptState.concept;try{this.ideStore.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",showLoading:!0});const n=await this.ideStore.findConceptUsages(t.pureType===mf.ENUM_VALUE?yf.ENUM:t.pureType===mf.PROPERTY||t.pureType===mf.QUALIFIED_PROPERTY?yf.PROPERTY:yf.ELEMENT,(t.owner?[`'${t.owner}'`]:[]).concat(`'${t.path}'`));await(0,ke.gP)(this.ideStore.renameConcept(t.pureName,e,t.pureType,n)),this.textEditorState.setForcedCursorPosition({lineNumber:this.renameConceptState.coordinate.line,column:this.renameConceptState.coordinate.column})}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyError(e)}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}}deregisterCommands(){this.textEditorState.language===hf.PURE&&[Df.GO_TO_DEFINITION,Df.GO_BACK,Df.REVEAL_CONCEPT_IN_TREE,Df.FIND_USAGES,Df.RENAME_CONCEPT].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e))),[Df.GO_TO_LINE,Df.TOGGLE_TEXT_WRAP].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e)))}}class Gf{ideStore;treeData;selectedNode;loadInitialDataState=Pe.create();refreshDataState=Pe.create();constructor(e){(0,ke.Gn)(this,{treeData:ke.sH.ref,loadInitialDataState:ke.sH,refreshDataState:ke.sH,initialize:ke.L3,expandNode:ke.L3,openNode:ke.L3,refreshTreeData:ke.L3,setTreeData:ke.XI,setSelectedNode:ke.XI}),this.ideStore=e}getTreeData(){return V(this.treeData,"Tree data has not been initialized")}*initialize(){if(this.loadInitialDataState.isInProgress)this.ideStore.applicationStore.notificationService.notifyWarning("Tree state initialization is in progress");else{this.loadInitialDataState.inProgress();try{this.treeData=this.buildTreeData(yield this.getRootNodes()),this.loadInitialDataState.pass()}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyError(e),this.loadInitialDataState.fail()}}}setSelectedNode(e){e!==this.selectedNode&&(this.selectedNode&&(this.selectedNode.isSelected=!1),e&&(e.isSelected=!0),this.selectedNode=e,this.refreshTree())}setTreeData(e){this.treeData=e}refreshTree(){this.setTreeData({...V(this.treeData)})}*expandNode(e){if(!e.isLoading)if(this.getTreeData().nodes.has(e.id)&&e.childrenIds)e.isLoading=!1,e.isOpen=!0,this.refreshTree();else{e.isLoading=!0;try{const t=yield this.getChildNodes(e);this.processChildNodes(e,t),e.isOpen=!0,this.refreshTree()}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyError(e)}finally{e.isLoading=!1}}}*refreshTreeData(){if(!this.treeData)return;const e=new Set(Array.from(this.getTreeData().nodes.values()).filter((e=>e.isOpen)).map((e=>e.id))),t=this.selectedNode?.id;this.refreshDataState.inProgress();try{this.treeData=this.buildTreeData(yield this.getRootNodes())}catch(e){return M(e),this.ideStore.applicationStore.notificationService.notifyError(e),void this.refreshDataState.fail()}const n=this.getTreeData().rootIds.map((e=>V(this.getTreeData().nodes.get(e)))).filter((t=>e.has(t.id)));yield this.refreshOpenNodes(n,e),t&&this.getTreeData().nodes.has(t)&&this.setSelectedNode(V(this.getTreeData().nodes.get(t)))}async refreshOpenNodes(e,t){return await Promise.all(e.map((e=>(t.delete(e.id),(0,ke.gP)(this.expandNode(e)).catch((()=>{})))))),(e=e.flatMap((e=>e.childrenIds??[])).map((e=>V(this.getTreeData().nodes.get(e)))).filter((e=>t.has(e.id)))).length?this.refreshOpenNodes(e,t):Promise.resolve()}}class Uf{id;path;RO}class $f extends Uf{file;statusType}(0,ge.PL)($f,{id:(0,ge.MY)(),path:(0,ge.MY)(),file:(0,ge.MY)(),statusType:(0,ge.MY)(),RO:(0,ge.MY)()});class Yf extends Uf{repo}(0,ge.PL)(Yf,{id:(0,ge.MY)(),path:(0,ge.MY)(),repo:(0,ge.MY)(),RO:(0,ge.MY)()});class Wf{li_attr;text;icon;children;state;get isFolderNode(){return this.li_attr instanceof Yf}get isFileNode(){return this.li_attr instanceof $f}get isRepoNode(){return this.li_attr instanceof Yf&&Boolean(this.li_attr.repo)}getNodeAttribute(e){return $(this.li_attr,e,`Expected directory node attribute to be of type '${e.name}'`)}}(0,ge.PL)(Wf,{li_attr:(0,ge.Ie)((()=>ge._Z),(e=>e.file?(0,ge.iu)($f,e):(0,ge.iu)(Yf,e))),text:(0,ge.MY)(),icon:(0,ge.MY)(),children:(0,ge.MY)(),state:(0,ge.MY)()});const zf=e=>{const t=e.trim(),n=t.lastIndexOf("/");if(!(n<=0))return t.substring(0,n)},Kf=e=>`file_${e}`;class Xf extends Gf{nodeForCreateNewFile;nodeForCreateNewDirectory;nodeForRenameFile;constructor(e){super(e),(0,ke.Gn)(this,{nodeForCreateNewFile:ke.sH,nodeForCreateNewDirectory:ke.sH,nodeForRenameFile:ke.sH,setNodeForCreateNewFile:ke.XI,setNodeForCreateNewDirectory:ke.XI,setNodeForRenameFile:ke.XI,revealPath:ke.L3})}setNodeForCreateNewFile=e=>{z(!e||e.data.isFolderNode,"Node selected for creating a new file from must be a directory"),this.nodeForCreateNewFile=e};setNodeForCreateNewDirectory=e=>{z(!e||e.data.isFolderNode,"Node selected for creating a new directory from must be a directory"),this.nodeForCreateNewDirectory=e};setNodeForRenameFile=e=>{z(!e||e.data.isFileNode,"Node selected for renaming must be a file"),this.nodeForRenameFile=e};async getRootNodes(){return(await this.ideStore.client.getDirectoryChildren()).map((e=>(0,ge.iu)(Wf,e)))}buildTreeData(e){const t=[],n=new Map;return e.forEach((e=>{const i=e.li_attr.id;t.push(i),n.set(i,{data:e,id:i,label:e.text,isLoading:!1})})),{rootIds:t,nodes:n}}async getChildNodes(e){return(await this.ideStore.client.getDirectoryChildren(e.data.li_attr.path)).map((e=>(0,ge.iu)(Wf,e)))}processChildNodes(e,t){const n=this.getTreeData(),i=[];t.forEach((e=>{const t=e.li_attr.id;i.push(t),n.nodes.set(t,{data:e,id:t,label:e.text,isLoading:!1})})),e.childrenIds=i}*openNode(e){e.data.isFileNode&&(yield(0,ke.gP)(this.ideStore.loadFile(e.data.li_attr.path)))}*revealPath(e,t){t?.forceOpenExplorerPanel&&this.ideStore.setActiveActivity(Gg.FILE_EXPLORER,{keepShowingIfMatchedCurrent:!0});const n=[];let i=e;for(;i;)n.unshift(i),i=zf(i);for(const e of n){const n=V(this.getTreeData().nodes.get(Kf(e)),`Can't find node with path '${e}'`);if(n.data.isFolderNode)yield(0,ke.gP)(this.expandNode(n));else{if(t?.directoryOnly)throw new Error("Can't reveal non-directory path");yield(0,ke.gP)(this.ideStore.loadFile(e,t?.coordinate))}}this.setSelectedNode(V(this.getTreeData().nodes.get(Kf(e)),`Can't find node with path '${e}'`))}}const qf=e=>{const t=e.trim(),n=t.lastIndexOf(Po);if(!(n<=0))return t.substring(0,n)};class Jf extends Gf{loadConceptActivity=Pe.create();statusText;nodeForRenameConcept;nodeForMoveElement;constructor(e){super(e),(0,ke.Gn)(this,{statusText:ke.sH,nodeForRenameConcept:ke.sH,nodeForMoveElement:ke.sH,setStatusText:ke.XI,setNodeForRenameConcept:ke.XI,setNodeForMoveElement:ke.XI,pullConceptsActivity:ke.XI,pollConceptsActivity:ke.L3,revealConcept:ke.L3})}setStatusText(e){this.statusText=e}setNodeForRenameConcept(e){this.nodeForRenameConcept=e}setNodeForMoveElement(e){this.nodeForMoveElement=e}async getRootNodes(){return await(0,ke.gP)(this.pollConceptsActivity()),(await this.ideStore.client.getConceptChildren()).map((e=>(0,ge.iu)(Nf,e)))}buildTreeData(e){const t=[],n=new Map;return e.forEach((e=>{const i=e.li_attr.id;t.push(i),n.set(i,{data:e,id:i,label:e.text,isLoading:!1})})),{rootIds:t,nodes:n}}async getChildNodes(e){return(await this.ideStore.client.getConceptChildren(e.data.li_attr.pureId)).map((e=>(0,ge.iu)(Nf,e)))}processChildNodes(e,t){const n=this.getTreeData(),i=[];t.forEach((t=>{const s=t.li_attr.id;i.push(s),n.nodes.set(s,{data:t,id:s,label:t.text,isLoading:!1,parent:e})})),e.childrenIds=i}*openNode(e){(e.data.li_attr instanceof _f||e.data.li_attr instanceof Ef)&&("Diagram"===e.data.li_attr.pureType?yield(0,ke.gP)(this.ideStore.loadDiagram(e.data.li_attr.file,e.data.li_attr.pureId,Number.parseInt(e.data.li_attr.line,10),Number.parseInt(e.data.li_attr.column,10))):yield(0,ke.gP)(this.ideStore.loadFile(e.data.li_attr.file,new Tf(e.data.li_attr.file,Number.parseInt(e.data.li_attr.line,10),Number.parseInt(e.data.li_attr.column,10)))))}*pollConceptsActivity(){if(this.loadConceptActivity.isInInitialState){this.loadConceptActivity.inProgress(),this.setStatusText("Loading concepts activity...");try{yield this.pullConceptsActivity()}finally{this.setStatusText(void 0),this.loadConceptActivity.reset()}}}async pullConceptsActivity(){const e=await this.ideStore.client.getConceptActivity();return e.text&&this.setStatusText(`Preparing - ${e.text}`),e.initializing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullConceptsActivity())}catch(e){t(e)}}),1e3))):Promise.resolve()}*revealConcept(e,t){t?.forceOpenExplorerPanel&&this.ideStore.setActiveActivity(Gg.CONCEPT_EXPLORER,{keepShowingIfMatchedCurrent:!0});const n=[];let i=e;for(;i;)n.unshift(i),i=qf(i);for(const e of n){const n=V(this.getTreeData().nodes.get(e),`Can't find node with path '${e}'`);if(n.data.li_attr instanceof ff)yield(0,ke.gP)(this.expandNode(n));else if(t?.packageOnly)throw new Error("Can't reveal non-package path")}this.setSelectedNode(V(this.getTreeData().nodes.get(e),`Can't find node with path '${e}'`))}async movePackageableElements(e,t){let n=[];try{n=(await this.ideStore.client.getPackageableElementsUsage(e.map((e=>e.pureId)))).map((e=>(0,ge.iu)(If,e)))}catch{return void this.ideStore.applicationStore.notificationService.notifyError("Can't find usage for child packageable elements")}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}const i=[];z(n.length===e.length,"Can't find matching usages for packageable elements");for(let s=0;s<n.length;++s){const o=V(e[s]);i.push({pureName:o.pureName,pureType:o.pureType,sourcePackage:V(gm(o.pureId)),destinationPackage:t,usages:V(n[s]).second})}await(0,ke.gP)(this.ideStore.movePackageableElements(i))}async renameConcept(e,t){const n=e.data.li_attr,i=n.pureName??n.pureId;let s=[];try{switch(this.ideStore.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",showLoading:!0}),n.pureType){case mf.PROPERTY:case mf.QUALIFIED_PROPERTY:U(n,_f),s=await this.ideStore.findConceptUsages(yf.PROPERTY,[`'${n.classPath}'`,`'${n.pureId}'`]);break;case mf.PACKAGE:{let e=[],n=[];try{n=await this.ideStore.client.getChildPackageableElements(i),e=(await this.ideStore.client.getPackageableElementsUsage(n.map((e=>e.pureId)))).map((e=>(0,ge.iu)(If,e)))}catch{return void this.ideStore.applicationStore.notificationService.notifyError("Can't find usage for child packageable elements")}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}const s=[];z(e.length===n.length,"Can't find matching usages for child packageable elements");const o=gm(i)?.concat(Po).concat(t)??t;for(let t=0;t<e.length;++t){const r=V(n[t]),a=V(gm(r.pureId)),c=o.concat(a.substring(a.indexOf(i)+i.length));s.push({pureName:r.pureName,pureType:r.pureType,sourcePackage:a,destinationPackage:c,usages:V(e[t]).second})}return void await(0,ke.gP)(this.ideStore.movePackageableElements(s))}default:s=await this.ideStore.findConceptUsages(yf.ELEMENT,[`'${n.pureId}'`])}}catch(e){return M(e),void this.ideStore.applicationStore.notificationService.notifyError(e)}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}await(0,ke.gP)(this.ideStore.renameConcept(i,t,n.pureType,s))}}class Zf{cached;datamarts;text}(0,ge.PL)(Zf,{cached:(0,ge.MY)(),datamarts:(0,ge.p_)((0,ge.MY)()),text:(0,ge.MY)()});class Qf extends Zf{error;sessionError}(0,ge.PL)(Qf,{cached:(0,ge.MY)(),datamarts:(0,ge.p_)((0,ge.MY)()),text:(0,ge.MY)(),error:(0,ge.MY)(),sessionError:(0,ge.MY)()});class e_ extends Qf{RO;line;column;source}(0,ge.PL)(e_,{cached:(0,ge.MY)(),datamarts:(0,ge.p_)((0,ge.MY)()),text:(0,ge.MY)(),RO:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),source:(0,ge.MY)(),error:(0,ge.MY)(),sessionError:(0,ge.MY)()});class t_{text;reinit}class n_ extends t_{cache;modifiedFiles=[]}(0,ge.PL)(n_,{text:(0,ge.MY)(),cache:(0,ge.MY)(),modifiedFiles:(0,ge.p_)((0,ge.MY)()),reinit:(0,ge.MY)()});class i_ extends t_{RO;line;column;source;error;sessionError}(0,ge.PL)(i_,{text:(0,ge.MY)(),RO:(0,ge.MY)(),line:(0,ge.lq)((0,ge.MY)()),column:(0,ge.lq)((0,ge.MY)()),source:(0,ge.lq)((0,ge.MY)()),error:(0,ge.MY)(),sessionError:(0,ge.MY)()});class s_{RO;line;column;source}(0,ge.PL)(s_,{RO:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),source:(0,ge.MY)()});class o_ extends t_{jumpTo}(0,ge.PL)(o_,{text:(0,ge.MY)(),jumpTo:(0,ge.Ik)(s_)});class r_{uuid=(0,o.A)();sourceID;line;column;foundName}(0,ge.PL)(r_,{sourceID:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),foundName:(0,ge.MY)()});class a_{uuid=(0,o.A)();sourceID;line;column;foundName;add;messageToBeModified;fileToBeModified;lineToBeModified;columnToBeModified}(0,ge.PL)(a_,{sourceID:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),foundName:(0,ge.MY)(),add:(0,ge.MY)(),messageToBeModified:(0,ge.MY)(),fileToBeModified:(0,ge.MY)(),lineToBeModified:(0,ge.MY)(),columnToBeModified:(0,ge.MY)()});class c_ extends i_{candidateName;candidatesWithPackageImported=[];candidatesWithPackageNotImported=[]}(0,ge.PL)(c_,{candidateName:(0,ge.MY)(),candidatesWithPackageImported:(0,ge.p_)((0,ge.Ik)(r_)),candidatesWithPackageNotImported:(0,ge.p_)((0,ge.Ik)(a_))});class l_ extends i_{candidateName;candidates=[]}(0,ge.PL)(l_,{candidateName:(0,ge.MY)(),candidates:(0,ge.p_)((0,ge.Ik)(a_))});class d_{id;parentId;file;line;column}(0,ge.PL)(d_,{id:(0,ge.MY)(),parentId:(0,ge.MY)(),file:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)()});class u_{children=[];li_attr;text;type}(0,ge.PL)(u_,{children:(0,ge.p_)((0,ge.Ik)(u_)),li_attr:(0,ge.Ik)(d_),text:(0,ge.MY)(),type:(0,ge.MY)()});class p_ extends t_{count;filterPaths=[];path;relevantTestsOnly;runnerId;tests=[]}(0,ge.PL)(p_,{count:(0,ge.MY)(),filterPaths:(0,ge.p_)((0,ge.MY)()),path:(0,ge.MY)(),relevantTestsOnly:(0,ge.MY)(),runnerId:(0,ge.MY)(),tests:(0,ge.p_)((0,ge.Ik)(u_))});class h_{uuid=(0,o.A)()}class m_{before;found;after}(0,ge.PL)(m_,{after:(0,ge.MY)(),before:(0,ge.MY)(),found:(0,ge.MY)()});class g_{uuid=(0,o.A)();sourceId;startLine;startColumn;endLine;endColumn;preview;constructor(e,t,n,i,s){this.sourceId=e,this.startLine=t,this.startColumn=n,this.endLine=i,this.endColumn=s}}(0,ge.PL)(g_,{sourceId:(0,ge.MY)(),startLine:(0,ge.MY)(),startColumn:(0,ge.MY)(),endLine:(0,ge.MY)(),endColumn:(0,ge.MY)(),preview:(0,ge.lq)((0,ge.Ik)(m_))});class f_ extends h_{sourceId;coordinates=[];isExpanded=!0;constructor(){super(),(0,ke.Gn)(this,{coordinates:ke.sH,isExpanded:ke.sH,setIsExpanded:ke.XI,dismissCoordinate:ke.XI})}setCoordinates(e){this.coordinates=e}setIsExpanded(e){this.isExpanded=e}dismissCoordinate(e){O(this.coordinates,e)}}var __,E_,N_;(0,ge.PL)(f_,{sourceId:(0,ge.MY)(),coordinates:(0,ge.p_)((0,ge.Ik)(g_))}),function(e){e.PASSED="Success",e.FAILED="AssertFail",e.ERROR="Error",e.NOT_RUN="notRan"}(__||(__={}));class b_{status;test}class v_ extends b_{test=[]}(0,ge.PL)(v_,{status:(0,ge.MY)(),test:(0,ge.p_)((0,ge.MY)())});class T_{text;RO;line;column;source;error}(0,ge.PL)(T_,{text:(0,ge.MY)(),RO:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),source:(0,ge.MY)(),error:(0,ge.MY)()});class C_ extends b_{test=[];error}(0,ge.PL)(C_,{status:(0,ge.MY)(),test:(0,ge.p_)((0,ge.MY)()),error:(0,ge.Ik)(T_)});class y_{}class S_ extends y_{finished;tests=[]}(0,ge.PL)(S_,{finished:(0,ge.MY)(),tests:(0,ge.p_)((0,ge.Ie)((()=>ge._Z),(e=>e.error?(0,ge.iu)(C_,e):(0,ge.iu)(v_,e))))});class A_ extends y_{error;text}(0,ge.PL)(A_,{error:(0,ge.MY)(),text:(0,ge.MY)()}),function(e){e.PASSED="PASSED",e.FAILED="FAILED",e.NONE="NONE"}(E_||(E_={})),function(e){e.PASSED="PASSED",e.FAILED="FAILED",e.ERROR="ERROR",e.RUNNING="RUNNING"}(N_||(N_={}));class I_{_START_TIME;total;time=0;passedTests=new Set;failedTests=new Map;testsWithError=new Map;notRunTests;results=new Map;constructor(e){(0,ke.Gn)(this,{total:ke.sH,time:ke.sH,passedTests:ke.sH,failedTests:ke.sH,testsWithError:ke.sH,notRunTests:ke.sH,results:ke.sH,passed:ke.EW,error:ke.EW,failed:ke.EW,passedTestIds:ke.EW,failedTestIds:ke.EW,testWithErrorIds:ke.EW,notRunTestIds:ke.EW,numberOfTestsRun:ke.EW,runPercentage:ke.EW,suiteStatus:ke.EW,setTime:ke.XI,addResult:ke.XI}),this._START_TIME=Date.now(),this.total=e.size,this.notRunTests=new Set(e)}get passed(){return this.passedTests.size}get error(){return this.testsWithError.size}get failed(){return this.failedTests.size}get passedTestIds(){return Array.from(this.passedTests.values())}get failedTestIds(){return Array.from(this.failedTests.keys())}get testWithErrorIds(){return Array.from(this.testsWithError.keys())}get notRunTestIds(){return Array.from(this.notRunTests.values())}get numberOfTestsRun(){return this.passed+this.error+this.failed}get runPercentage(){return Math.floor(100*this.numberOfTestsRun/this.total)}get suiteStatus(){return this.failed+this.error?E_.FAILED:this.passed?E_.PASSED:E_.NONE}setTime(e){this.time=e}addResult(e,t){switch(this.results.set(t,e),this.notRunTests.delete(t),e.status){case __.PASSED:this.passedTests.add(t);break;case __.FAILED:this.failedTests.set(t,$(e,C_));break;case __.ERROR:this.testsWithError.set(t,$(e,C_));break;default:throw new L(`Unsupported test result status '${e.status}'`)}this.time=Date.now()-this._START_TIME}}class x_{ideStore;testExecutionResult;checkTestRunnerState=Pe.create();testResultInfo;allTests=new Map;selectedTestId;treeBuildingState=Pe.create();treeData;viewAsList=!1;constructor(e,t){(0,ke.Gn)(this,{testResultInfo:ke.sH.ref,allTests:ke.sH,selectedTestId:ke.sH,treeData:ke.sH.ref,viewAsList:ke.sH,setViewAsList:ke.XI,setSelectedTestId:ke.XI,setTestResultInfo:ke.XI,setTreeData:ke.XI,refreshTree:ke.XI,collapseTree:ke.XI,expandTree:ke.XI,buildTreeDataByLayer:ke.XI,pullTestRunnerResult:ke.XI,buildTestTreeData:ke.L3,pollTestRunnerResult:ke.L3,rerunTestSuite:ke.L3,cancelTestRun:ke.L3}),this.ideStore=e,this.testExecutionResult=t}getTreeData(){return V(this.treeData,"Test tree data has not been initialized")}setViewAsList(e){this.viewAsList=e}setSelectedTestId(e){this.selectedTestId=e}setTestResultInfo(e){this.testResultInfo=e}setTreeData(e){this.treeData=e}refreshTree(){this.setTreeData({...V(this.treeData)})}*buildTestTreeData(){if(this.treeBuildingState.isInProgress)return;this.treeBuildingState.inProgress();const e=this.testExecutionResult.tests.map((e=>{const t=e.li_attr.id;return e.type&&this.allTests.set(t,e),t})),t=new Map;this.treeData={rootIds:e,nodes:t},yield this.buildTreeDataByLayer(this.testExecutionResult.tests),this.treeBuildingState.reset()}collapseTree(){this.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),this.refreshTree()}expandTree(){this.getTreeData().nodes.forEach((e=>{e.isOpen=!0})),this.refreshTree()}async buildTreeDataByLayer(e){const t=this.getTreeData(),n=[];return await Promise.all(e.map((e=>new Promise(((i,s)=>setTimeout((()=>{const o=e.li_attr.id,r={id:o,label:e.text,data:e,childrenIds:e.type?void 0:[],isLoading:!1};if(e.type&&this.allTests.set(o,e),t.nodes.set(o,r),"Root"!==e.li_attr.parentId)try{const n=V(t.nodes.get((a=e,`test${this.testExecutionResult.runnerId}_${a.li_attr.parentId}`)),`Can't find parent test node with ID '${e.li_attr.parentId}'`);n.childrenIds?x(n.childrenIds,o):n.childrenIds=[o]}catch(e){return void s(e)}var a;n.push(...e.children),i()}),0)))))),n.length?this.buildTreeDataByLayer(n):Promise.resolve()}*pollTestRunnerResult(){if(this.checkTestRunnerState.isInInitialState){this.checkTestRunnerState.inProgress();try{z(this.allTests.size===this.testExecutionResult.count,`Number of tests scanned in tree (${this.allTests.size}) does not match the number of total reported tests (${this.testExecutionResult.count})`);const e=new I_(new Set(this.allTests.keys()));this.testResultInfo=e,yield this.pullTestRunnerResult(e)}finally{this.checkTestRunnerState.reset()}}}async pullTestRunnerResult(e){const t=(n=await this.ideStore.client.checkTestRunner(this.testExecutionResult.runnerId)).error?(0,ge.iu)(A_,n):(0,ge.iu)(S_,n);var n;return t instanceof S_?(await Promise.all(t.tests.map((t=>I((()=>{return e.addResult(t,(n=t,`test${this.testExecutionResult.runnerId}_${n.test.join("_")}`));var n}))))),t.finished?Promise.resolve():new Promise(((t,n)=>setTimeout((()=>{try{t(this.pullTestRunnerResult(e))}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyWarning("Failed to run test"+(e.message?`: ${e.message}`:"")),n(e)}}),1e3)))):(this.setTestResultInfo(void 0),Promise.resolve())}*rerunTestSuite(){this.ideStore.testRunState.isInProgress||(yield(0,ke.gP)(this.ideStore.executeTests(this.testExecutionResult.path,this.testExecutionResult.relevantTestsOnly)))}*cancelTestRun(){this.ideStore.testRunState.isInProgress&&(yield this.ideStore.client.cancelTestRunner(this.testExecutionResult.runnerId),this.ideStore.applicationStore.notificationService.notifyWarning(`Stopped running test (id: ${this.testExecutionResult.runnerId}) successfully!`))}}class w_{}class O_ extends w_{error;errorDialog;text}(0,ge.PL)(O_,{error:(0,ge.MY)(),errorDialog:(0,ge.MY)(),text:(0,ge.MY)()});class R_{networkClient;userId="localuser";sessionId=`${this.userId}@${Date.now()}@abcd`;compilerMode;mode;constructor(e){this.networkClient=e}get baseUrl(){return V(this.networkClient.baseUrl,"Pure server client has not been configured properly")}initialize=e=>this.networkClient.get(`${this.baseUrl}/initialize`,void 0,void 0,{requestCache:e,sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getInitializationActivity=()=>this.networkClient.get(`${this.baseUrl}/initializationActivity`,void 0,void 0,{sessionId:this.sessionId});getConceptActivity=()=>this.networkClient.get(`${this.baseUrl}/conceptsActivity`,void 0,void 0,{sessionId:this.sessionId});execute=(e,t,n)=>this.networkClient.post(`${this.baseUrl}/${t}`,{extraParams:n,openFiles:e},void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getExecutionActivity=()=>this.networkClient.get(`${this.baseUrl}/executionActivity`,void 0,void 0,{sessionId:this.sessionId});findFiles=(e,t)=>this.networkClient.get(`${this.baseUrl}/findPureFiles`,void 0,void 0,{file:e,regex:t});searchText=(e,t,n,i=2e3)=>this.networkClient.get(`${this.baseUrl}/findInSources`,void 0,void 0,{string:e,caseSensitive:t,regex:n,limit:i});getTextSearchPreview=e=>this.networkClient.post(`${this.baseUrl}/getTextSearchPreview`,e);checkTestRunner=e=>this.networkClient.get(`${this.baseUrl}/testRunnerCheck`,void 0,void 0,{sessionId:this.sessionId,testRunnerId:e});cancelTestRunner=e=>this.networkClient.get(`${this.baseUrl}/testRunnerCancel`,void 0,void 0,{sessionId:this.sessionId,testRunnerId:e});getConceptChildren=e=>this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::display_ide(String[1]):String[1]",param:e?`'${e}'`:`'${Hg}'`,format:"raw",mode:this.mode,sessionId:this.sessionId});getConceptInfo=async(e,t,n)=>{const i=await this.networkClient.get(`${this.baseUrl}/getConceptInfo`,void 0,void 0,{file:e,line:t,column:n});if(i.error)throw new Error(i.text);return i};getUsages=async(e,t)=>{const n=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:e,param:t});return Array.isArray(n)?n:[n]};renameConcept=e=>this.networkClient.put(`${this.baseUrl}/renameConcept`,e);movePackageableElements=e=>this.networkClient.put(`${this.baseUrl}/movePackageableElements`,e);getPackageableElementsUsage=async e=>{const t=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:yf.MULTIPLE_PATHS,param:[`'${e.join(",")}'`]});return Array.isArray(t)?t:[t]};getChildPackageableElements=async e=>{const t=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::getChildPackageableElements_String_1__String_MANY_",param:[`'${e}'`]});return(Array.isArray(t)?t:[t]).map((e=>JSON.parse(e)))};getFile=e=>this.networkClient.get(`${this.baseUrl}/fileAsJson/${e}`,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getDirectoryChildren=e=>this.networkClient.get(`${this.baseUrl}/dir`,void 0,void 0,{parameters:e??"/",mode:this.mode,sessionId:this.sessionId});updateSource=e=>this.networkClient.put(`${this.baseUrl}/updateSource`,e);createFile=e=>this.networkClient.post(`${this.baseUrl}/newFile/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});createFolder=e=>this.networkClient.post(`${this.baseUrl}/newFolder/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});renameFile=(e,t)=>this.networkClient.put(`${this.baseUrl}/renameFile`,{oldPath:e,newPath:t},void 0);deleteDirectoryOrFile=e=>this.networkClient.delete(`${this.baseUrl}/deleteFile/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId});getDiagramInfo=async e=>JSON.parse(await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::diagram::getDiagramInfo_String_1__String_1_",param:[`'${e}'`]}));getDiagramClassInfo=async e=>JSON.parse(await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::diagram::getDiagramClassInfo_String_1__String_1_",param:[`'${e}'`]}));getSuggestionsForIncompletePath=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/incompletePath`,{path:e,types:t});getSuggestionsForIdentifier=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/identifier`,{importPaths:e,types:t});getSuggestionsForAttribute=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/attribute`,{importPaths:e,path:t});getSuggestionsForClass=e=>this.networkClient.post(`${this.baseUrl}/suggestion/class`,{importPaths:e});getSuggestionsForVariable=(e,t,n)=>this.networkClient.post(`${this.baseUrl}/suggestion/variable`,{sourceId:e,line:t,column:n})}class k_{_initialDefaultSize;_tempSize;size;defaultSize;snapSize;maxSize;constructor(e){this.size=e.initial,this._tempSize=e.default,this.defaultSize=e.default,this._initialDefaultSize=e.default,this.snapSize=e.snap,(0,ke.Gn)(this,{_tempSize:ke.sH,size:ke.sH,defaultSize:ke.sH,snapSize:ke.sH,maxSize:ke.sH,isOpen:ke.EW,isMaximizable:ke.EW,isMaximized:ke.EW,setSize:ke.XI,open:ke.XI,close:ke.XI,toggle:ke.XI,setMaxSize:ke.XI,maximize:ke.XI,minimize:ke.XI,toggleMaximize:ke.XI})}get isOpen(){return 0!==this.size}get isMaximizable(){return void 0!==this.maxSize}get isMaximized(){return void 0!==this.maxSize&&this.size===this.maxSize}setSize(e){e=Math.max(e,0),this.maxSize&&(e=Math.min(e,this.maxSize)),this.size!==e&&(void 0!==this.snapSize?e>this.size?this.maxSize&&e>this.maxSize-this.snapSize?this.size=this.maxSize:this.size=e<this.snapSize?this.defaultSize:e:this.size=e<this.snapSize?0:e:this.size=e)}open(){0===this.size&&(this.size=this._tempSize)}close(){0!==this.size&&(this._tempSize=this.size||this.defaultSize,this.size=0)}toggle(){0===this.size?this.open():this.close()}setMaxSize(e){this._tempSize=Math.min(this._tempSize,e),this.size=Math.min(this.size,e),this.defaultSize=Math.min(this._initialDefaultSize,e),this.maxSize=e}maximize(){void 0!==this.maxSize&&this.size!==this.maxSize&&(this._tempSize=this.size,this.size=this.maxSize)}minimize(){void 0!==this.maxSize&&this.size===this.maxSize&&(this.size=this._tempSize===this.maxSize?this.defaultSize:this._tempSize)}toggleMaximize(){void 0!==this.maxSize&&(this.size===this.maxSize?this.minimize():this.maximize())}}class P_{_UUID=(0,o.A)();tag;value;constructor(e,t){this.tag=e,this.value=t}get hashCode(){return ko([Jo.TAGGED_VALUE,this.tag.pointerHashCode,this.value])}}class L_ extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Jo.TAG_POINTER,this.value.value,this.ownerReference.valueForSerialization??""].map(Ro).join(",")}}class M_ extends L_{ownerReference;constructor(e){const t=Er.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new M_(e)}}class D_ extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Jo.STEREOTYPE_POINTER,this.value.value,this.ownerReference.valueForSerialization??""].map(Ro).join(",")}}class F_ extends D_{ownerReference;constructor(e){const t=Er.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new F_(e)}}var B_;!function(e){e.NONE="NONE",e.SHARED="SHARED",e.COMPOSITE="COMPOSITE"}(B_||(B_={}));class j_{_UUID=(0,o.A)();_OWNER;name;genericType;multiplicity;stereotypes=[];taggedValues=[];body;parameters;defaultValue=void 0;constructor(e,t,n,i){this.name=e,this.multiplicity=t,this.genericType=n,this._OWNER=i}get hashCode(){return ko([Jo.DERIVED_PROPERTY,this.name,this.multiplicity,this.genericType.ownerReference.valueForSerialization??"",ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues),er(this.parameters,this.body)])}}class V_{_UUID=(0,o.A)();_OWNER;value;constructor(e,t){this._OWNER=e,this.value=t}}class H_{_UUID=(0,o.A)();_OWNER;value;constructor(e,t){this._OWNER=e,this.value=t}}class G_ extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Jo.PROPERTY_POINTER,this.value.name,this.ownerReference.valueForSerialization??""].map(Ro).join(",")}}class U_ extends G_{ownerReference;constructor(e){const t=Er.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new U_(e)}}class $_{sourceId;line;column;startLine;startColumn;endLine;endColumn}(0,ge.PL)($_,{column:(0,ge.MY)(),endLine:(0,ge.MY)(),endColumn:(0,ge.MY)(),line:(0,ge.MY)(),sourceId:(0,ge.MY)(),startLine:(0,ge.MY)(),startColumn:(0,ge.MY)()});const Y_=(0,ge.Ie)((()=>ge._Z),(e=>(e.sourceId=e.source,(0,ge.iu)($_,e))));class W_{package;name;tags=[];stereotypes=[]}(0,ge.PL)(W_,{name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:(0,ge.p_)((0,ge.MY)()),tags:(0,ge.p_)((0,ge.MY)())});class z_{profile;value}(0,ge.PL)(z_,{profile:(0,ge.MY)(),value:(0,ge.MY)()});class K_{profile;value}(0,ge.PL)(K_,{profile:(0,ge.MY)(),value:(0,ge.MY)()});class X_{tag;value}(0,ge.PL)(X_,{tag:(0,ge.Ik)(K_),value:(0,ge.MY)()});class q_{rawType;typeParameter}(0,ge.PL)(q_,{rawType:(0,ge.lq)((0,ge.MY)()),typeParameter:(0,ge.lq)((0,ge.MY)())});class J_{name;stereotypes=[];taggedValues=[];aggregation;multiplicity;genericType}(0,ge.PL)(J_,{aggregation:(0,ge.MY)(),genericType:(0,ge.Ik)(q_),multiplicity:(0,ge.MY)(),name:(0,ge.MY)(),stereotypes:(0,ge.p_)((0,ge.Ik)(z_)),taggedValues:(0,ge.p_)((0,ge.Ik)(X_))});class Z_{package;name;sourceInformation}(0,ge.PL)(Z_,{name:(0,ge.MY)(),package:(0,ge.MY)(),sourceInformation:Y_});class Q_{package;name;sourceInformation;stereotypes=[];taggedValues=[];generalizations=[];properties=[];qualifiedProperties=[]}(0,ge.PL)(Q_,{generalizations:(0,ge.p_)((0,ge.Ik)(q_)),name:(0,ge.MY)(),package:(0,ge.MY)(),properties:(0,ge.p_)((0,ge.Ik)(J_)),qualifiedProperties:(0,ge.p_)((0,ge.Ik)(J_)),sourceInformation:Y_,stereotypes:(0,ge.p_)((0,ge.Ik)(z_)),taggedValues:(0,ge.p_)((0,ge.Ik)(X_))});class eE{package;name;enumValues=[]}(0,ge.PL)(eE,{name:(0,ge.MY)(),package:(0,ge.MY)(),enumValues:(0,ge.p_)((0,ge.MY)())});class tE{x;y}(0,ge.PL)(tE,{x:(0,ge.MY)(),y:(0,ge.MY)()});class nE{height;width}(0,ge.PL)(nE,{height:(0,ge.MY)(),width:(0,ge.MY)()});class iE{points=[]}(0,ge.PL)(iE,{points:(0,ge.p_)((0,ge.Ik)(tE))});class sE{id;source;target;geometry}(0,ge.PL)(sE,{geometry:(0,ge.Ik)(iE),id:(0,ge.MY)(),source:(0,ge.MY)(),target:(0,ge.MY)()});class oE{name;owningType}(0,ge.PL)(oE,{name:(0,ge.MY)(),owningType:(0,ge.MY)()});class rE{id;source;target;property;geometry}(0,ge.PL)(rE,{geometry:(0,ge.Ik)(iE),id:(0,ge.MY)(),property:(0,ge.Ik)(oE),source:(0,ge.MY)(),target:(0,ge.MY)()});class aE{id;type;position;rectangleGeometry}(0,ge.PL)(aE,{id:(0,ge.MY)(),position:(0,ge.Ik)(tE),rectangleGeometry:(0,ge.Ik)(nE),type:(0,ge.MY)()});class cE{package;name;stereotypes=[];taggedValues=[];generalizationViews=[];propertyViews=[];typeViews=[];sourceInformation}(0,ge.PL)(cE,{name:(0,ge.MY)(),generalizationViews:(0,ge.p_)((0,ge.Ik)(sE)),package:(0,ge.MY)(),propertyViews:(0,ge.p_)((0,ge.Ik)(rE)),sourceInformation:Y_,stereotypes:(0,ge.p_)((0,ge.Ik)(z_)),taggedValues:(0,ge.p_)((0,ge.Ik)(X_)),typeViews:(0,ge.p_)((0,ge.Ik)(aE))});class lE{classes=[];enumerations=[];profiles=[]}(0,ge.PL)(lE,{classes:(0,ge.p_)((0,ge.Ik)(Q_)),enumerations:(0,ge.p_)((0,ge.Ik)(eE)),profiles:(0,ge.p_)((0,ge.Ik)(W_))});class dE{name;diagram;domainInfo}(0,ge.PL)(dE,{diagram:(0,ge.Ik)(cE),name:(0,ge.MY)(),domainInfo:(0,ge.lq)((0,ge.Ik)(lE))});class uE{class;enumerations=[];profiles=[];specializations=[]}(0,ge.PL)(uE,{class:(0,ge.Ik)(Q_),enumerations:(0,ge.p_)((0,ge.Ik)(eE)),profiles:(0,ge.p_)((0,ge.Ik)(W_)),specializations:(0,ge.p_)((0,ge.Ik)(Z_))});const pE=e=>{const t=e.classViews.map((e=>` TypeView ${e.id}(\n type=${e.class.value.path},\n position=(${e.position.x.toFixed(5)}, ${e.position.y.toFixed(5)}),\n width=${e.rectangle.width.toFixed(5)},\n height=${e.rectangle.height.toFixed(5)},\n stereotypesVisible=true,\n attributesVisible=true,\n attributeStereotypesVisible=true,\n attributeTypesVisible=true,\n color=#FFFFCC,\n lineWidth=1.0)`)),n=e.generalizationViews.map(((e,t)=>` GeneralizationView gview_${t}(\n source=${e.from.classView.value.id},\n target=${e.to.classView.value.id},\n points=[${e.buildFullPath().map((e=>`(${e.x.toFixed(5)},${e.y.toFixed(5)})`)).join(",")}],\n label='',\n color=#000000,\n lineWidth=-1.0,\n lineStyle=SIMPLE)`)),i=e.propertyViews.map(((e,t)=>` PropertyView pview_${t}(\n property=${e.property.value._OWNER.path}.${e.property.value.name},\n source=${e.from.classView.value.id},\n target=${e.to.classView.value.id},\n points=[${e.buildFullPath().map((e=>`(${e.x.toFixed(5)},${e.y.toFixed(5)})`)).join(",")}],\n label='',\n propertyPosition=(0.0,0.0),\n multiplicityPosition=(0.0,0.0),\n color=#000000,\n lineWidth=-1.0,\n stereotypesVisible=true,\n nameVisible=true,\n lineStyle=SIMPLE)`));return`Diagram ${e.path}(width=0.0, height=0.0)\n{\n${[...t,...n,...i].join("\n\n")}\n}`},hE=(e,t,n,i)=>{const s=t.getOwnNullableClass(e);if(!s){const[s,o]=fm(e),r=new rr(o);return Em(Tm(t.root,s,!0,new Map),r),t.setOwnType(e,r),n.set(e,{isStubbed:!0,sourceInformation:i}),r}return s},mE=e=>{if("*"===e)return new Wh(0,void 0);{const t=e.split("..");if(1===t.length)return new Wh(parseInt(V(t[0]),10),parseInt(V(t[0]),10));if(2===t.length)return new Wh(parseInt(V(t[0]),10),"*"===t[1]?void 0:parseInt(V(t[1]),10));throw new Error(`Can't parse multiplicity value '${e}'`)}},gE=(e,t,n,i)=>{t.taggedValues.forEach((t=>{var i,s;x(e.taggedValues,new P_(M_.create((i=n.getProfile(t.tag.profile),s=t.tag.value,V(i.p_tags.find((e=>e.value===s)),`Can't find tag '${s}' in profile '${i.path}'`))),t.value))})),t.stereotypes.forEach((t=>{var i,s;x(e.stereotypes,F_.create((i=n.getProfile(t.profile),s=t.value,V(i.p_stereotypes.find((e=>e.value===s)),`Can't find stereotype '${s}' in profile '${i.path}'`))))})),t.generalizations.filter((e=>Boolean(e.rawType))).forEach((t=>{const s=hE(V(t.rawType),n,i,void 0);x(e.generalizations,Kh.create(new Xh(s))),x(s._subclasses,e)})),t.properties.filter((e=>Boolean(e.genericType.rawType))).forEach((t=>{const s=new Yh(t.name,mE(t.multiplicity),Kh.create(new Xh(n.getOwnNullableEnumeration(V(t.genericType.rawType))??hE(V(t.genericType.rawType),n,i,void 0))),e);s.aggregation="Composite"===t.aggregation?B_.COMPOSITE:"Shared"===t.aggregation?B_.SHARED:void 0,x(e.properties,s)})),t.qualifiedProperties.filter((e=>e.genericType.rawType)).forEach((t=>{x(e.derivedProperties,new j_(t.name,mE(t.multiplicity),Kh.create(new Xh(n.getOwnNullableEnumeration(V(t.genericType.rawType))??hE(V(t.genericType.rawType),n,i,void 0))),e))}))},fE=e=>{const t=new Xm(new Wm([]),new zm([]),[]),n=new Map;if(e.domainInfo){const i=e.domainInfo;i.classes.forEach((e=>{const i=new rr(e.name);Em(Tm(t.root,e.package,!0,new Map),i),t.setOwnType(i.path,i),n.set(i.path,{sourceInformation:e.sourceInformation,isStubbed:!1})})),i.profiles.forEach((e=>{const n=new Zh(e.name);Em(Tm(t.root,e.package,!0,new Map),n),t.setOwnProfile(n.path,n),e.tags.forEach((e=>x(n.p_tags,new V_(n,e)))),e.stereotypes.forEach((e=>x(n.p_stereotypes,new H_(n,e))))})),i.enumerations.forEach((e=>{const n=new cr(e.name);Em(Tm(t.root,e.package,!0,new Map),n),t.setOwnType(n.path,n)})),i.classes.forEach((e=>{const i=`${e.package}${""===e.package?"":Po}${e.name}`,s=t.getClass(i);gE(s,e,t,n)}))}const i=e.diagram,s=new Bp(i.name);return Em(Tm(t.root,i.package,!0,new Map),s),i.typeViews.forEach((e=>{const n=new rg(s,e.id,Er.create(t.getClass(e.type)));n.position=new ig(e.position.x,e.position.y),n.rectangle=new sg(e.rectangleGeometry.width,e.rectangleGeometry.height),x(s.classViews,n)})),i.propertyViews.forEach((e=>{const n=new pg(s,U_.create((i=t.getClass(e.property.owningType),o=e.property.name,V(i instanceof rr?Am(i).find((e=>e.name===o)):i.properties.find((e=>e.name===o)),`Can't find property '${o}' of '${i.path}'`))),V(s.classViews.find((t=>t.id===e.source))),V(s.classViews.find((t=>t.id===e.target))));var i,o;n.path=e.geometry.points.map((e=>new ig(e.x,e.y))),Eg(n),x(s.propertyViews,n)})),i.generalizationViews.forEach((e=>{const t=new hg(s,V(s.classViews.find((t=>t.id===e.source))),V(s.classViews.find((t=>t.id===e.target))));t.path=e.geometry.points.map((e=>new ig(e.x,e.y))),Eg(t),x(s.generalizationViews,t)})),[s,t,n]};var _E,EE,NE;!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"}(_E||(_E={})),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"}(EE||(EE={})),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"}(NE||(NE={}));const bE=(e,t)=>e===t?e.toString():0===e&&void 0===t?"*":`${e}..${t??"*"}`;class vE extends ug{association;constructor(e,t,n,i,s){super(e,n,i,s),this.association=t}get hashCode(){return ko([Fp.ASSOCIATION_VIEW,super.hashCode,this.association.valueForSerialization??""])}}const TE=(0,ke.XI)(((e,t)=>{e.value=t})),CE=((0,ke.XI)(((e,t)=>{O(e.properties,t)})),(0,ke.XI)(((e,t)=>{x(e.properties,hp(t))}))),yE=((0,ke.XI)(((e,t,n)=>{w(e.properties,t,n)})),(0,ke.XI)(((e,t)=>{O(e.derivedProperties,t)})),(0,ke.XI)(((e,t)=>{x(e.derivedProperties,mp(t))})),(0,ke.XI)(((e,t,n)=>{w(e.derivedProperties,t,n)})),(0,ke.XI)(((e,t)=>{x(e.constraints,fp(t))})),(0,ke.XI)(((e,t)=>{O(e.constraints,t)})),(0,ke.XI)(((e,t,n)=>{w(e.constraints,t,n)})),(0,ke.XI)(((e,t)=>{x(e.generalizations,np(t))}))),SE=((0,ke.XI)(((e,t)=>{O(e.generalizations,t)})),(0,ke.XI)(((e,t,n)=>{w(e.generalizations,t,n)})),(0,ke.XI)(((e,t)=>{x(e._subclasses,t)})),(0,ke.XI)(((e,t)=>{O(e._subclasses,t)})),(0,ke.XI)(((e,t)=>{np(e),tp(t),e.value=t,e.ownerReference.value=t.rawType}))),AE=((0,ke.XI)(((e,t)=>{e.name=t})),(0,ke.XI)(((e,t)=>{SE(e.genericType,tp(t))})),(0,ke.XI)(((e,t)=>{e.multiplicity=t})),(0,ke.XI)(((e,t)=>{e.aggregation=t})),(0,ke.XI)(((e,t)=>{e.value=op(t),TE(e.ownerReference,t._OWNER)})),(0,ke.XI)(((e,t)=>{x(e.taggedValues,ep(t))})),(0,ke.XI)(((e,t)=>{O(e.taggedValues,t)})),(0,ke.XI)(((e,t)=>{x(e.stereotypes,Zu(t))})),(0,ke.XI)(((e,t)=>{O(e.stereotypes,t)})),(0,ke.XI)(((e,t)=>{e.tag.value=rp(t),e.tag.ownerReference.value=t._OWNER})),(0,ke.XI)(((e,t)=>{e.value=t})),(0,ke.XI)(((e,t)=>{e.value=t})),(0,ke.XI)(((e,t,n)=>{w(e.taggedValues,t,n)})),(0,ke.XI)(((e,t,n)=>{w(e.stereotypes,t,n)})),(0,ke.XI)(((e,t)=>{e.name=t})),(0,ke.XI)(((e,t)=>{e.functionDefinition=Br(t)})),(0,ke.XI)(((e,t)=>{x(e.p_tags,rp(t))})),(0,ke.XI)(((e,t)=>{O(e.p_tags,t)})),(0,ke.XI)(((e,t)=>{x(e.p_stereotypes,op(t))})),(0,ke.XI)(((e,t)=>{O(e.p_stereotypes,t)})),(0,ke.XI)(((e,t,n)=>{w(e.p_tags,t,n)})),(0,ke.XI)(((e,t,n)=>{w(e.p_stereotypes,t,n)})),(0,ke.XI)(((e,t)=>{O(e.parameters,t)})),(0,ke.XI)(((e,t)=>{x(e.parameters,jr(t))})),(0,ke.XI)(((e,t)=>{TE(e.returnType,Ip(t))})),(0,ke.XI)(((e,t)=>{e.returnMultiplicity=t})),(0,ke.XI)(((e,t,n)=>{w(e.parameters,t,n)})),(0,ke.XI)(((e,t)=>{e.content=t})),(0,ke.XI)(((e,t,n)=>{e.data=cd(t,n)})),(0,ke.XI)(((e,t)=>{O(e.testData??[],t)})),(0,ke.XI)(((e,t,n)=>{x(e.tests,Tp(t,n))})),(0,ke.XI)(((e,t)=>{e.value=t})),(0,ke.XI)(((e,t)=>{e.parameters=t.map(Np)})),(0,ke.XI)(((e,t)=>{O(e.parameters??[],t)})),(0,ke.XI)(((e,t)=>{e.parameters?e.parameters.push(Np(t)):e.parameters=[Np(t)]})),(0,ke.XI)(((e,t)=>{e.name=t})),(0,ke.XI)(((e,t)=>{e.name=t})),(0,ke.XI)(((e,t)=>{x(e.values,cp(t))})),(0,ke.XI)(((e,t)=>{O(e.values,t)})),(0,ke.XI)(((e,t,n)=>{w(e.values,t,n)})),(0,ke.XI)(((e,t)=>{e.value=cp(t),TE(e.ownerReference,t._OWNER)})),(0,ke.XI)(((e,t,n)=>{const i=((e,t)=>{const n=e.properties.findIndex((e=>e===t));return z(-1!==n,`Can't find property '${t.name}' in association '${e.path}'`),V(e.properties[(n+1)%2])})(e,t),s=$(t.genericType.ownerReference.value,rr,`Association property '${t.name}' must be of type 'class'`);var o;((o=s).package||o.name)&&z(O(s.propertiesFromAssociations,i),`Can't find property '${i.name}' from association '${e.path}' in associated class '${s.path}'`),x(n.propertiesFromAssociations,i);const r=new Xh(n);t.genericType.value=r,t.genericType.ownerReference.value=r.rawType})),(0,ke.XI)(((e,t)=>{e.canonicalUnit=up(t)})),(0,ke.XI)(((e,t)=>{e.conversionFunction=Br(t)})),(0,ke.XI)(((e,t)=>{e.classViews=t.map(Op)}))),IE=(0,ke.XI)(((e,t)=>{x(e.classViews,Op(t))})),xE=(0,ke.XI)(((e,t)=>{O(e.classViews,t)})),wE=(0,ke.XI)(((e,t)=>{e.associationViews=t.map(Lp)})),OE=(0,ke.XI)(((e,t)=>{O(e.associationViews,t)})),RE=(0,ke.XI)(((e,t)=>{e.generalizationViews=t.map(Pp)})),kE=(0,ke.XI)(((e,t)=>{x(e.generalizationViews,Pp(t))})),PE=(0,ke.XI)(((e,t)=>{O(e.generalizationViews,t)})),LE=(0,ke.XI)(((e,t)=>{e.propertyViews=t.map(Mp)})),ME=(0,ke.XI)(((e,t)=>{x(e.propertyViews,Mp(t))})),DE=(0,ke.XI)(((e,t)=>{O(e.propertyViews,t)})),FE=(0,ke.XI)(((e,t)=>{e.hideProperties=t})),BE=(0,ke.XI)(((e,t)=>{e.hideStereotypes=t})),jE=(0,ke.XI)(((e,t)=>{e.hideTaggedValues=t})),VE=(0,ke.XI)(((e,t)=>{e._offsetX=t})),HE=(0,ke.XI)(((e,t)=>{e._offsetY=t})),GE=(0,ke.XI)(((e,t,n)=>{((e,t,n,i=((e,t)=>e===t))=>{const s=e.findIndex((e=>i(e,t)));-1!==s&&(e[s]=n)})(e.path,t,n)})),UE=(0,ke.XI)(Eg),$E=(0,ke.XI)(((e,t,n,i,s)=>{for(const s of e.path)if(Math.sqrt((t-s.x)*(t-s.x)+(n-s.y)*(n-s.y))<10/i)return s;const o=e.buildFullPath(s),r=[];let a;for(let e=0;e<o.length-1;e++){const s=o[e],c=o[e+1],l=new mg(s.x,s.y).normal(new mg(c.x,c.y)).unit(),d=mg.fromPoints(s,new ig(t,n));if(Math.abs(l.dotProduct(d))<5/i){const e=(s.x<c.x?s.x:c.x)-5/i,o=(s.x<c.x?c.x:s.x)+5/i,l=(s.y<c.y?s.y:c.y)-5/i,d=(s.y<c.y?c.y:s.y)+5/i;e<=t&&t<=o&&l<=n&&n<=d&&(a=new ig(t,n),r.push(a))}e<o.length-2&&r.push(o[e+1])}return a&&s&&_g(e,r),a})),YE=(0,ke.XI)(_g),WE=(0,ke.XI)(((e,t)=>{e.rectangle=t})),zE=(0,ke.XI)(((e,t)=>{e.position=t})),KE=(0,ke.XI)((e=>{e._dummyObservable={}}));var XE,qE,JE;!function(e){e[e.LAYOUT=0]="LAYOUT",e[e.PAN=1]="PAN",e[e.ZOOM_IN=2]="ZOOM_IN",e[e.ZOOM_OUT=3]="ZOOM_OUT",e[e.ADD_RELATIONSHIP=4]="ADD_RELATIONSHIP",e[e.ADD_CLASS=5]="ADD_CLASS"}(XE||(XE={})),function(e){e[e.PROPERTY=0]="PROPERTY",e[e.INHERITANCE=1]="INHERITANCE",e[e.NONE=2]="NONE"}(qE||(qE={})),function(e){e[e.ALIGN_LEFT=0]="ALIGN_LEFT",e[e.ALIGN_CENTER=1]="ALIGN_CENTER",e[e.ALIGN_RIGHT=2]="ALIGN_RIGHT",e[e.ALIGN_TOP=3]="ALIGN_TOP",e[e.ALIGN_MIDDLE=4]="ALIGN_MIDDLE",e[e.ALIGN_BOTTOM=5]="ALIGN_BOTTOM",e[e.SPACE_HORIZONTALLY=6]="SPACE_HORIZONTALLY",e[e.SPACE_VERTICALLY=7]="SPACE_VERTICALLY"}(JE||(JE={}));const ZE=.05,QE=[50,75,90,100,110,125,150,200,250,300,400],eN=e=>(e instanceof j_?"/ ":"")+e.name;class tN{diagram;isReadOnly;enableLayoutAutoAdjustment;div;canvas;ctx;canvasDimension;canvasCenter;virtualScreen;screenOffset;zoom;interactionMode;relationshipMode;triangle;diamond;fontFamily;fontSize;lineHeight;truncateText;maxLineLength;screenPadding;classViewSpaceX;classViewSpaceY;propertySpacing;showScreenGrid;showScreenBoxGuide;screenGridAxisTickLength;screenGridSpacingX;screenGridSpacingY;screenGridLineWidth;screenGridLineColor;screenGridLabelTextColor;screenGuideLineColor;screenGuideLabelTextColor;showCanvasGrid;showCanvasBoxGuide;showScreenOffsetGuide;canvasGridAxisTickLength;canvasGridSpacingX;canvasGridSpacingY;canvasGridLineWidth;canvasGridLineColor;canvasGridLabelTextColor;canvasGuideLineColor;canvasGuideLabelTextColor;screenOffsetGuideLineColor;screenOffsetGuideLabelTextColor;defaultLineWidth;defaultLineColor;canvasColor;backgroundColor;classViewFillColor;classViewHeaderTextColor;classViewPropertyTextColor;classViewPrimitivePropertyTextColor;classViewDerivedPropertyTextColor;relationshipViewTextColor;propertyViewOwnedDiamondColor;propertyViewSharedDiamondColor;generalizationViewInheritanceTriangeFillColor;selectionBoxBorderColor;selection;selectionStart;selectedClassCorner;selectedClassProperty;selectedClasses;selectedPropertyOrAssociation;selectedInheritance;selectedPoint;_selectedClassesInitialPositions;startClassView;handleAddRelationship;mouseOverClassCorner;mouseOverClassName;mouseOverClassView;mouseOverClassProperty;mouseOverPropertyHolderViewLabel;cursorPosition;leftClick;middleClick;rightClick;clickX;clickY;positionBeforeLastMove;onAddClassViewClick=()=>{};onClassViewRightClick=()=>{};onBackgroundDoubleClick;onClassViewDoubleClick;onClassNameDoubleClick;onClassPropertyDoubleClick;handleEditClassView=()=>{};handleEditProperty=()=>{};handleAddSimpleProperty=()=>{};constructor(e,t){(0,ke.Gn)(this,{isReadOnly:ke.sH,enableLayoutAutoAdjustment:ke.sH,interactionMode:ke.sH,relationshipMode:ke.sH,zoom:ke.sH,mouseOverClassView:ke.sH,mouseOverClassName:ke.sH,mouseOverClassCorner:ke.sH,mouseOverClassProperty:ke.sH,mouseOverPropertyHolderViewLabel:ke.sH,selectionStart:ke.sH,selectedClassCorner:ke.sH,selectedClasses:ke.sH,selectedPropertyOrAssociation:ke.sH,selectedInheritance:ke.sH,leftClick:ke.sH,middleClick:ke.sH,rightClick:ke.sH,changeMode:ke.XI,setIsReadOnly:ke.XI,setEnableLayoutAutoAdjustment:ke.XI,setMouseOverClassView:ke.XI,setMouseOverClassName:ke.XI,setMouseOverClassCorner:ke.XI,setMouseOverClassProperty:ke.XI,setMouseOverPropertyHolderViewLabel:ke.XI,setSelectionStart:ke.XI,setSelectedClassCorner:ke.XI,setSelectedClasses:ke.XI,setSelectedPropertyOrAssociation:ke.XI,setSelectedInheritance:ke.XI,setLeftClick:ke.XI,setMiddleClick:ke.XI,setRightClick:ke.XI,setZoomLevel:ke.XI,align:ke.XI}),this.diagram=t,this.div=e,this.div.childNodes.forEach((e=>this.div.removeChild(e))),this.canvas=document.createElement("canvas"),this.canvasDimension=new sg(this.div.offsetWidth,this.div.offsetHeight),this.canvasCenter=new ig(this.canvasDimension.width/2,this.canvasDimension.height/2),this.canvas.width=this.canvasDimension.width,this.canvas.height=this.canvasDimension.height,this.canvas.style.position="absolute",this.canvas.style.left="0",this.canvas.style.top="0",this.div.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.screenOffset=new ig(0,0),this.virtualScreen=new og(new ig(0,0),new sg(0,0)),this.zoom=1,this.triangle=[new ig(0,0),new ig(-15,-10),new ig(-15,10)],this.diamond=[new ig(0,0),new ig(-10,-5),new ig(-20,0),new ig(-10,5)],this.fontFamily="Arial",this.fontSize=12,this.lineHeight=14,this.truncateText=!0,this.maxLineLength=40,this.showScreenGrid=!1,this.showScreenBoxGuide=!0,this.screenGridAxisTickLength=50,this.screenGridSpacingX=100,this.screenGridSpacingY=100,this.screenGridLineWidth=.5,this.showCanvasGrid=!1,this.showCanvasBoxGuide=!0,this.showScreenOffsetGuide=!0,this.canvasGridAxisTickLength=50,this.canvasGridSpacingX=100,this.canvasGridSpacingY=100,this.canvasGridLineWidth=.5,this.defaultLineWidth=1,this.screenGridLineColor="rgba(61,126,154,0.56)",this.screenGridLabelTextColor="rgba(61,126,154,0.56)",this.screenGuideLineColor="red",this.screenGuideLabelTextColor="red",this.canvasGridLineColor="green",this.canvasGridLabelTextColor="green",this.canvasGuideLineColor="orange",this.canvasGuideLabelTextColor="orange",this.screenOffsetGuideLineColor="purple",this.screenOffsetGuideLabelTextColor="purple",this.defaultLineColor="rgb(0,0,0)",this.canvasColor="rgb(220,220,220)",this.backgroundColor="rgb(255,255,255)",this.classViewFillColor="rgb(185,185,185)",this.classViewHeaderTextColor="rgb(0,0,0)",this.classViewPropertyTextColor="rgb(0,0,0)",this.classViewPrimitivePropertyTextColor="rgb(255,255,255)",this.classViewDerivedPropertyTextColor="rgb(100,100,100)",this.relationshipViewTextColor="rgb(0,0,0)",this.propertyViewSharedDiamondColor="rgb(255,255,255)",this.propertyViewOwnedDiamondColor="rgb(0,0,0)",this.generalizationViewInheritanceTriangeFillColor="rgb(255,255,255)",this.selectionBoxBorderColor="rgba(0,0,0, 0.02)",this.interactionMode=XE.LAYOUT,this.relationshipMode=qE.NONE,this.isReadOnly=!1,this.enableLayoutAutoAdjustment=!1,this.screenPadding=20,this.classViewSpaceX=10,this.classViewSpaceY=4,this.propertySpacing=10,this.selectionStart=void 0,this.selection=void 0,this.selectedClasses=[],this._selectedClassesInitialPositions=[],this.cursorPosition=new ig(0,0),this.leftClick=!1,this.middleClick=!1,this.rightClick=!1,this.clickX=0,this.clickY=0,this.positionBeforeLastMove=new ig(0,0),this.div.onwheel=this.mousewheel.bind(this),this.div.onmousedown=this.mousedown.bind(this),this.div.onkeydown=this.keydown.bind(this),this.div.ondblclick=this.mousedblclick.bind(this),this.div.onmouseup=this.mouseup.bind(this),this.div.onmousemove=this.mousemove.bind(this)}setIsReadOnly(e){this.isReadOnly=e}setEnableLayoutAutoAdjustment(e){this.enableLayoutAutoAdjustment=e}setMouseOverClassView(e){this.mouseOverClassView=e}setMouseOverClassName(e){this.mouseOverClassName=e}setMouseOverClassCorner(e){this.mouseOverClassCorner=e}setMouseOverClassProperty(e){this.mouseOverClassProperty=e}setMouseOverPropertyHolderViewLabel(e){this.mouseOverPropertyHolderViewLabel=e}setSelectionStart(e){this.selectionStart=e}setSelectedClassCorner(e){this.selectedClassCorner=e}setSelectedClasses(e){this.selectedClasses=e}setSelectedPropertyOrAssociation(e){this.selectedPropertyOrAssociation=e}setSelectedInheritance(e){this.selectedInheritance=e}setLeftClick(e){this.leftClick=e}setMiddleClick(e){this.middleClick=e}setRightClick(e){this.rightClick=e}setZoomLevel(e){this.zoom=e}render(e){this.diagram.classViews.forEach((e=>this.ensureClassViewMeetMinDimensions(e))),this.refresh(),e?.initial&&(this.autoRecenter(),(this.canvas.width<this.virtualScreen.rectangle.width+2*this.screenPadding+20||this.canvas.height<this.virtualScreen.rectangle.height+2*this.screenPadding+20)&&this.zoomToFit())}refresh(){this.refreshCanvas(),this.drawScreen()}refreshCanvas(){this.canvasDimension=new sg(this.div.offsetWidth,this.div.offsetHeight),this.canvasCenter=new ig(this.canvasDimension.width/2,this.canvasDimension.height/2),this.canvas.width=this.canvasDimension.width,this.canvas.height=this.canvasDimension.height}clearScreen(){this.ctx.fillStyle=this.canvasColor,this.ctx.fillRect(0,0,this.canvasDimension.width,this.canvasDimension.height)}drawScreen(){this.manageVirtualScreen(),this.clearScreen(),this.drawAll()}autoRecenter(){this.center(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2,this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2)}center(e,t){this.screenOffset=new ig(-e+this.canvasCenter.x,-t+this.canvasCenter.y),this.refresh()}changeMode(e,t){switch(e){case XE.LAYOUT:case XE.PAN:case XE.ZOOM_IN:case XE.ZOOM_OUT:case XE.ADD_CLASS:if(t!==qE.NONE)throw new P(`Can't change to '${e}' mode: relationship mode should not be specified in layout mode`);break;case XE.ADD_RELATIONSHIP:if(t===qE.NONE)throw new P("Can't switch to relationship mode: relationship mode is not specified");break;default:throw new L(`Can't switch to mode '${e}': unsupported mode`)}if(this.interactionMode=e,this.relationshipMode=t,e===XE.ADD_RELATIONSHIP)switch(t){case qE.INHERITANCE:this.handleAddRelationship=(e,t)=>{if(e.class.value===t.class.value||Sm(e.class.value).includes(t.class.value)||Sm(t.class.value).includes(e.class.value)||yE(e.class.value,Kh.create(new Xh(t.class.value))),e.class.value.generalizations.find((e=>e.value.rawType===t.class.value))){const n=new hg(this.diagram,e,t);return kE(this.diagram,n),n}};break;case qE.PROPERTY:this.handleAddRelationship=(e,t)=>{const n=new Yh(`property_${e.class.value.properties.length+1}`,Wh.ONE,Kh.create(new Xh(t.class.value)),e.class.value);if(CE(e.class.value,n),e!==t){const i=new pg(this.diagram,U_.create(n),e,t);return ME(this.diagram,i),i}};break;default:throw new L(`Can't switch to relationship mode '${t}': unsupported mode`)}}align(e){if(!(this.selectedClasses.length<2)){switch(e){case JE.ALIGN_LEFT:{const e=this.selectedClasses.reduce(((e,t)=>Math.min(e,t.position.x)),Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>zE(t,new ig(e,t.position.y))));break}case JE.ALIGN_CENTER:{const e=this.selectedClasses.reduce(((e,t)=>e+t.position.x+t.rectangle.width/2),0)/this.selectedClasses.length;this.selectedClasses.forEach((t=>zE(t,new ig(e-t.rectangle.width/2,t.position.y))));break}case JE.ALIGN_RIGHT:{const e=this.selectedClasses.reduce(((e,t)=>Math.max(e,t.position.x+t.rectangle.width)),-Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>zE(t,new ig(e-t.rectangle.width,t.position.y))));break}case JE.ALIGN_TOP:{const e=this.selectedClasses.reduce(((e,t)=>Math.min(e,t.position.y)),Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>zE(t,new ig(t.position.x,e))));break}case JE.ALIGN_MIDDLE:{const e=this.selectedClasses.reduce(((e,t)=>e+t.position.y+t.rectangle.height/2),0)/this.selectedClasses.length;this.selectedClasses.forEach((t=>zE(t,new ig(t.position.x,e-t.rectangle.height/2))));break}case JE.ALIGN_BOTTOM:{const e=this.selectedClasses.reduce(((e,t)=>Math.max(e,t.position.y+t.rectangle.height)),-Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>zE(t,new ig(t.position.x,e-t.rectangle.height))));break}case JE.SPACE_HORIZONTALLY:{const e=this.selectedClasses.slice().sort(((e,t)=>e.position.x-t.position.x));if(2===e.length){const t=e[0],n=e[1];zE(n,new ig(t.position.x+t.rectangle.width,n.position.y))}else{const t=[];for(let n=1;n<e.length;n++){const i=e[n-1],s=e[n];t.push(s.position.x-(i.position.x+i.rectangle.width))}const n=t.reduce(((e,t)=>e+t),0)/t.length;for(let t=1;t<e.length;t++){const i=e[t-1],s=e[t];zE(s,new ig(i.position.x+i.rectangle.width+n,s.position.y))}}break}case JE.SPACE_VERTICALLY:{const e=this.selectedClasses.slice().sort(((e,t)=>e.position.y-t.position.y));if(2===e.length){const t=e[0],n=e[1];zE(n,new ig(n.position.x,t.position.y+t.rectangle.height))}else{const t=[];for(let n=1;n<e.length;n++){const i=e[n-1],s=e[n];t.push(s.position.y-(i.position.y+i.rectangle.height))}const n=t.reduce(((e,t)=>e+t),0)/t.length;for(let t=1;t<e.length;t++){const i=e[t-1],s=e[t];zE(s,new ig(s.position.x,i.position.y+i.rectangle.height+n))}}break}}this.drawScreen()}}truncateTextWithEllipsis(e,t=this.maxLineLength){return e.length>t?`${e.substring(0,t+1-3)}...`:e}canvasCoordinateToModelCoordinate(e){return new ig((e.x-this.canvasCenter.x)/this.zoom-this.screenOffset.x+this.canvasCenter.x,(e.y-this.canvasCenter.y)/this.zoom-this.screenOffset.y+this.canvasCenter.y)}modelCoordinateToCanvasCoordinate(e){return new ig((e.x-this.canvasCenter.x+this.screenOffset.x)*this.zoom+this.canvasCenter.x,(e.y-this.canvasCenter.y+this.screenOffset.y)*this.zoom+this.canvasCenter.y)}resolveMouseEventCoordinate(e){if(e.target instanceof HTMLElement){const t=gg(e.target);return new ig(t.x+e.offsetX,t.y+e.offsetY)}return new ig(e.x,e.y)}eventCoordinateToCanvasCoordinate(e){return new ig(e.x-this.divPosition.x+this.div.scrollLeft,e.y-this.divPosition.y+this.div.scrollTop)}canvasCoordinateToEventCoordinate(e){return new ig(e.x-this.div.scrollLeft+this.divPosition.x,e.y-this.div.scrollTop+this.divPosition.y)}hasPropertyView(e,t){return this.diagram.propertyViews.filter((n=>n.property.value===t&&n.from.classView.value===e)).length>0}get divPosition(){return gg(this.div)}manageVirtualScreen(){if(this.diagram.classViews.length){const e=V(this.diagram.classViews[0]);let t=e.position.x,n=e.position.y,i=e.position.x+e.rectangle.width,s=e.position.y+e.rectangle.height;for(const e of this.diagram.classViews)t=Math.min(t,e.position.x),n=Math.min(n,e.position.y),i=Math.max(i,e.position.x+e.rectangle.width),s=Math.max(s,e.position.y+e.rectangle.height);const o=this.diagram.associationViews.concat(this.diagram.generalizationViews).concat(this.diagram.propertyViews);for(const e of o){const o=dg.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value);if(e instanceof pg){const r=this.drawLinePropertyText(V(o[o.length-2],"Diagram path expected to have at least 2 points"),V(o[o.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,e.property.value,!1);t=Math.min(t,r.position.x),n=Math.min(n,r.position.y),i=Math.max(i,vg(r).x),s=Math.max(s,vg(r).y)}for(const o of e.path)t=Math.min(t,o.x),n=Math.min(n,o.y),i=Math.max(i,o.x),s=Math.max(s,o.y)}this.virtualScreen=new og(new ig(t,n),new sg(i-t,s-n))}else this.setZoomLevel(1),this.screenOffset=new ig(0,0),this.virtualScreen=new og(new ig(this.canvasDimension.width/2,this.canvasDimension.height/2),new sg(0,0))}executeZoom(e,t){e=Math.max(e,ZE);const n=this.zoom;this.setZoomLevel(e),this.screenOffset=new ig(((t.x-this.canvasCenter.x)*(n-e)+this.screenOffset.x*n)/e,((t.y-this.canvasCenter.y)*(n-e)+this.screenOffset.y*n)/e),this.clearScreen(),this.drawAll()}zoomPoint(e,t){this.executeZoom(e,t)}zoomCenter(e){this.setZoomLevel(Math.max(e,ZE)),this.clearScreen(),this.drawAll()}zoomToFit(){this.autoRecenter(),this.zoomCenter(Math.max(Math.min(this.canvas.width/(this.virtualScreen.rectangle.width+2*this.screenPadding+20),this.canvas.height/(this.virtualScreen.rectangle.height+2*this.screenPadding+20)),ZE))}addClassView(e,t){if(!this.isReadOnly){const n=this.diagram.classViews.map((e=>e.id));let i=(0,o.A)();for(;n.includes(i);)i=(0,o.A)();const s=new rg(this.diagram,i,Er.create(e));return zE(s,t??this.canvasCoordinateToModelCoordinate(new ig(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2,this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2))),IE(this.diagram,s),KE(s),this.diagram.classViews.filter((t=>t.class.value!==e)).forEach((t=>{const n=t.class.value;e.generalizations.map((e=>e.value.rawType)).includes(n)&&kE(this.diagram,new hg(this.diagram,s,t)),n.generalizations.map((e=>e.value.rawType)).includes(e)&&kE(this.diagram,new hg(this.diagram,t,s)),Am(e).forEach((e=>{e.genericType.value.rawType===n&&ME(this.diagram,new pg(this.diagram,U_.create(e),s,t))})),Am(n).forEach((n=>{n.genericType.value.rawType===e&&ME(this.diagram,new pg(this.diagram,U_.create(n),t,s))}))})),this.drawClassView(s),this.drawScreen(),s}}drawBoundingBox(){this.ctx.fillStyle=this.backgroundColor,this.ctx.lineWidth=1,this.ctx.fillRect((this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x-this.screenPadding)*this.zoom+this.canvasCenter.x,(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y-this.screenPadding)*this.zoom+this.canvasCenter.y,(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom),this.ctx.strokeRect((this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x-this.screenPadding)*this.zoom+this.canvasCenter.x,(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y-this.screenPadding)*this.zoom+this.canvasCenter.y,(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom)}drawDiagram(){this.diagram.associationViews.forEach((e=>this.drawPropertyOrAssociation(e))),this.diagram.generalizationViews.forEach((e=>this.drawInheritance(e))),this.diagram.propertyViews.forEach((e=>this.drawPropertyOrAssociation(e))),this.diagram.classViews.forEach((e=>this.drawClassView(e))),this.showCanvasGrid&&this.drawCanvasGrid(),this.showScreenGrid&&this.drawScreenGrid()}drawAll(){this.drawBoundingBox(),this.drawDiagram()}drawScreenGrid(){const e=(this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t=(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y,n=(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,i=(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom;this.ctx.beginPath(),this.ctx.fillStyle=this.screenGridLabelTextColor,this.ctx.strokeStyle=this.screenGridLineColor,this.ctx.lineWidth=this.screenGridLineWidth,this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`;let s=0;for(let o=e;o<e+n-2*this.screenPadding;o+=this.screenGridSpacingX*this.zoom)this.ctx.fillText(`${s}`,o+5*this.zoom,t-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.x+s)}]`,o+5*this.zoom,t-(this.screenGridAxisTickLength+this.screenPadding-this.lineHeight)*this.zoom),this.ctx.moveTo(o,t-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom),this.ctx.lineTo(o,t+i-this.screenPadding*this.zoom),this.ctx.stroke(),s+=this.screenGridSpacingX;let o=0;for(let s=t;s<t+i-2*this.screenPadding;s+=this.screenGridSpacingY*this.zoom)this.ctx.fillText(`${o}`,e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,s+5*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.y+o)}]`,e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,s+(5+this.lineHeight)*this.zoom),this.ctx.moveTo(e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,s),this.ctx.lineTo(e+n-this.screenPadding*this.zoom,s),this.ctx.stroke(),o+=this.screenGridSpacingY;this.showScreenBoxGuide&&(this.ctx.beginPath(),this.ctx.fillStyle=this.screenGuideLabelTextColor,this.ctx.strokeStyle=this.screenGuideLineColor,this.ctx.moveTo(e,t),this.ctx.lineTo(e,t+i-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.lineTo(e,t+i-2*this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+i-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+i-2*this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t),this.ctx.stroke(),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t),this.ctx.lineTo(e,t),this.ctx.stroke(),this.ctx.fillText(`${Math.round(this.virtualScreen.rectangle.width/2)}`,e+n/2-(this.screenPadding-5)*this.zoom,t+5*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2)}]`,e+n/2-(this.screenPadding-5)*this.zoom,t+(5+this.lineHeight)*this.zoom),this.ctx.lineTo(e+n/2-this.screenPadding*this.zoom,t),this.ctx.lineTo(e+n/2-this.screenPadding*this.zoom,t+i-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.fillText(`${Math.round(this.virtualScreen.rectangle.height/2)}`,e+5*this.zoom,t+i/2-(this.screenPadding-5)*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2)}]`,e+5*this.zoom,t+i/2-(this.screenPadding-5-this.lineHeight)*this.zoom),this.ctx.lineTo(e,t+i/2-this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+i/2-this.screenPadding*this.zoom),this.ctx.stroke()),this.ctx.strokeStyle=this.defaultLineColor,this.ctx.lineWidth=this.defaultLineWidth}drawCanvasGrid(){const e=-this.canvasCenter.x*this.zoom+this.canvasCenter.x,t=-this.canvasCenter.y*this.zoom+this.canvasCenter.y,n=this.canvasDimension.width,i=this.canvasDimension.height;this.ctx.setLineDash([5,5]),this.ctx.fillStyle=this.canvasGridLabelTextColor,this.ctx.strokeStyle=this.canvasGridLineColor,this.ctx.lineWidth=this.canvasGridLineWidth,this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`,this.ctx.beginPath();let s=0;for(let t=e;t<n;t+=this.canvasGridSpacingX*this.zoom)0!==t&&this.ctx.fillText(`[${Math.round(s)}]`,t+5*this.zoom,5*this.zoom),this.ctx.moveTo(t,0),this.ctx.lineTo(t,i),this.ctx.stroke(),s+=this.canvasGridSpacingX;let o=0;for(let e=t;e<i;e+=this.canvasGridSpacingY*this.zoom)0!==e&&this.ctx.fillText(`[${Math.round(o)}]`,5*this.zoom,e+5*this.zoom),this.ctx.moveTo(0,e),this.ctx.lineTo(n,e),this.ctx.stroke(),o+=this.canvasGridSpacingY;if(this.showCanvasBoxGuide&&(this.ctx.beginPath(),this.ctx.fillStyle=this.canvasGuideLabelTextColor,this.ctx.strokeStyle=this.canvasGuideLineColor,this.ctx.fillText(`[${Math.round(n/2)}]`,n/2+5*this.zoom,5*this.zoom),this.ctx.moveTo(n/2,0),this.ctx.lineTo(n/2,i),this.ctx.stroke(),this.ctx.fillText(`[${Math.round(i/2)}]`,5*this.zoom,i/2+5*this.zoom),this.ctx.moveTo(0,i/2),this.ctx.lineTo(n,i/2),this.ctx.stroke()),this.showScreenOffsetGuide){const n=5,i=35;this.ctx.beginPath(),this.ctx.setLineDash([]),this.ctx.fillStyle=this.screenOffsetGuideLabelTextColor,this.ctx.strokeStyle=this.screenOffsetGuideLineColor,this.ctx.arc(e+this.screenOffset.x*this.zoom,t+this.screenOffset.y*this.zoom,n*this.zoom,0,2*Math.PI),this.ctx.moveTo(e+(this.screenOffset.x-n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.lineTo(e+(this.screenOffset.x+2*n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.moveTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y-n)*this.zoom),this.ctx.lineTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y+2*n)*this.zoom),this.ctx.stroke(),this.ctx.setLineDash([5,5]),this.ctx.moveTo(e,t+this.screenOffset.y*this.zoom),this.ctx.lineTo(e+(this.screenOffset.x-n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.moveTo(e+this.screenOffset.x*this.zoom,t+0),this.ctx.lineTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y-n)*this.zoom),this.ctx.stroke(),this.ctx.beginPath(),this.screenOffset.x>=i&&this.screenOffset.y>=i?(this.ctx.fillText(`[${Math.round(this.screenOffset.x)}]`,e+(this.screenOffset.x+5)*this.zoom,t+5*this.zoom),this.ctx.fillText(`[${Math.round(this.screenOffset.y)}]`,e+5*this.zoom,t+(this.screenOffset.y+5)*this.zoom)):this.screenOffset.x>=0&&this.screenOffset.y>=0?this.ctx.fillText(`Δ [${Math.round(this.screenOffset.x)},${Math.round(this.screenOffset.y)}]`,e+(this.screenOffset.x+n+5)*this.zoom,t+(this.screenOffset.y+n+5)*this.zoom):this.ctx.fillText(`Δ [${Math.round(this.screenOffset.x)},${Math.round(this.screenOffset.y)}]`,e+(n+5)*this.zoom,t+(n+5)*this.zoom)}this.ctx.setLineDash([]),this.ctx.strokeStyle=this.defaultLineColor,this.ctx.lineWidth=this.defaultLineWidth}drawClassViewProperty(e,t,n,i,s){this.ctx.font=this.mouseOverClassView===e&&this.mouseOverClassProperty===t?`bold ${(this.fontSize-1)*(s?1:this.zoom)}px ${this.fontFamily}`:`${s?"bold":""} ${(this.fontSize-1)*(s?1:this.zoom)}px ${this.fontFamily}`;const o=eN(t);let r=this.ctx.measureText(`${o} : `).width;s||(this.ctx.fillText(`${o} : `,n,i),this.ctx.fillText(t.genericType.value.rawType.name,n+r,i),t.genericType.value.rawType instanceof cr&&(this.ctx.beginPath(),this.ctx.moveTo(n+r,i+(this.fontSize-1)*this.zoom),this.ctx.lineTo(n+r+this.ctx.measureText(t.genericType.value.rawType.name).width,i+(this.fontSize-1)*this.zoom),this.ctx.stroke())),r+=this.ctx.measureText(t.genericType.value.rawType.name).width,this.ctx.font=`${(this.fontSize-1)*(s?1:this.zoom)}px ${this.fontFamily}`;const a=bE(t.multiplicity.lowerBound,t.multiplicity.upperBound);return s||this.ctx.fillText(`[${a}]`,n+r,i),r+=this.ctx.measureText(`[${a}]`).width,r}computeClassNameWidth(e){return this.ctx.font=`bold ${this.fontSize}px ${this.fontFamily}`,this.ctx.textBaseline="top",this.ctx.measureText(this.truncateTextWithEllipsis(e.class.value.name)).width}ensureClassViewMeetMinDimensions(e){let t=this.computeClassNameWidth(e),n=this.lineHeight+2*this.classViewSpaceY;if(!e.hideStereotypes){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;for(const i of e.class.value.stereotypes){const e=`<< ${this.truncateTextWithEllipsis(i.value.value,this.maxLineLength-6)} >>`,s=this.ctx.measureText(e).width;t=Math.max(t,s),n+=this.lineHeight}}if(!e.hideTaggedValues){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`,this.ctx.textBaseline="top";for(const i of e.class.value.taggedValues){const e=`{ ${this.truncateTextWithEllipsis(`${i.tag.value.value} = ${i.value}`,this.maxLineLength-4)} }`,s=this.ctx.measureText(e).width;t=Math.max(t,s),n+=this.lineHeight}}if(e.hideProperties||(Am(e.class.value).forEach((i=>{if(!this.hasPropertyView(e,i)){const s=this.drawClassViewProperty(e,i,0,0,!0);t=Math.max(t,s),n+=this.lineHeight}})),n+=2*this.classViewSpaceY),t+=2*this.classViewSpaceX,!this.isReadOnly||this.enableLayoutAutoAdjustment){const i=e.rectangle.width&&e.rectangle.width>t?e.rectangle.width:t,s=e.rectangle.height&&e.rectangle.height>n?e.rectangle.height:n;WE(e,new sg(i,s))}}drawClassView(e){const t=this.computeClassNameWidth(e);this.ensureClassViewMeetMinDimensions(e),this.ctx.fillStyle=this.classViewFillColor;const n=this.modelCoordinateToCanvasCoordinate(e.position);this.ctx.fillRect(n.x,n.y,e.rectangle.width*this.zoom,e.rectangle.height*this.zoom),this.ctx.lineWidth=0!==this.selectedClasses.length&&-1!==this.selectedClasses.indexOf(e)?2:1,this.ctx.strokeRect(n.x,n.y,e.rectangle.width*this.zoom,e.rectangle.height*this.zoom);const i=e.position.x,s=e.position.y;this.ctx.lineWidth=1,this.ctx.fillStyle=this.classViewHeaderTextColor;let o=s;if(this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,!e.hideStereotypes)for(const t of e.class.value.stereotypes){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const n=`<< ${this.truncateTextWithEllipsis(t.value.value,this.maxLineLength-6)} >>`,s=this.ctx.measureText(n).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,this.ctx.fillText(n,(i+this.screenOffset.x+(e.rectangle.width-s)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(o+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),o+=this.lineHeight}this.ctx.font=`bold ${this.fontSize*this.zoom}px ${this.fontFamily}`;const r=this.truncateTextWithEllipsis(e.class.value.name);if(this.ctx.fillText(r,(i+this.screenOffset.x+(e.rectangle.width-t)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(o+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),o+=this.lineHeight,!e.hideTaggedValues)for(const t of e.class.value.taggedValues){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const n=`{ ${this.truncateTextWithEllipsis(`${t.tag.value.value} = ${t.value}`,this.maxLineLength-4)} }`,s=this.ctx.measureText(n).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,this.ctx.fillText(n,(i+this.screenOffset.x+(e.rectangle.width-s)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(o+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),o+=this.lineHeight}if(o+=3*this.classViewSpaceY,!e.hideProperties){this.ctx.beginPath();const t=(s+this.screenOffset.y+this.lineHeight+(e.hideStereotypes?0:e.class.value.stereotypes.length*this.lineHeight)+(e.hideTaggedValues?0:e.class.value.taggedValues.length*this.lineHeight)+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y;this.ctx.moveTo((i+this.screenOffset.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t),this.ctx.lineTo((i+this.screenOffset.x+e.rectangle.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t),this.ctx.stroke();for(const t of Am(e.class.value))if(!this.hasPropertyView(e,t)){this.ctx.fillStyle=t instanceof j_?this.classViewDerivedPropertyTextColor:t.genericType.value.rawType instanceof pm?this.classViewPrimitivePropertyTextColor:this.classViewPropertyTextColor;const n=(i+this.screenOffset.x+this.classViewSpaceX-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,s=(o+this.screenOffset.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y;this.drawClassViewProperty(e,t,n,s,!1),o+=this.lineHeight}}KE(e)}drawLinePropertyNameAndMultiplicity(e,t,n,i,s,o){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const r=eN(e),a=bE(e.multiplicity.lowerBound,e.multiplicity.upperBound),c=this.ctx.measureText(r).width,l=this.ctx.measureText(a).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`;const d=t(c),u=n(c),p=this.modelCoordinateToCanvasCoordinate(new ig(t(c),n(c)));o||this.ctx.fillText(r,p.x,p.y);const h=i(l),m=s(l),g=this.modelCoordinateToCanvasCoordinate(new ig(i(l),s(l)));o||this.ctx.fillText(a,g.x,g.y);const f=new ig(Math.min(d,h),Math.min(u,m));return new og(f,new sg(Math.max(d,h)+Math.max(c,l)-f.x,Math.max(u,m)+this.lineHeight-f.y))}drawLinePropertyText(e,t,n,i,s){this.ctx.textBaseline="top",this.ctx.fillStyle=this.relationshipViewTextColor;const o=e.x,r=e.y,a=t.x,c=t.y,l=n.rectangle;if(r<c){const e=o+(a-o)/(c-r)*(n.position.y-r);if(e>n.position.x&&e<n.position.x+l.width)return this.drawLinePropertyNameAndMultiplicity(i,(t=>e<n.position.x+l.width/2?e+this.propertySpacing:e-t-this.propertySpacing),(e=>n.position.y-this.lineHeight-this.propertySpacing),(t=>e<n.position.x+l.width/2?e-t-this.propertySpacing:e+this.propertySpacing),(e=>n.position.y-this.lineHeight-this.propertySpacing),s)}else{const e=o+(a-o)/(c-r)*(n.position.y+l.height-r);if(e>n.position.x&&e<n.position.x+l.width)return this.drawLinePropertyNameAndMultiplicity(i,(t=>e<n.position.x+l.width/2?e+this.propertySpacing:e-t-this.propertySpacing),(e=>n.position.y+l.height+this.propertySpacing),(t=>e<n.position.x+l.width/2?e-t-this.propertySpacing:e+this.propertySpacing),(e=>n.position.y+l.height+this.propertySpacing),s)}if(o<a){const e=r+(c-r)/(a-o)*(n.position.x-o);if(e>n.position.y&&e<n.position.y+l.height)return this.drawLinePropertyNameAndMultiplicity(i,(e=>n.position.x-e-this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e+this.propertySpacing:e-this.lineHeight-this.propertySpacing),(e=>n.position.x-e-this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e-this.lineHeight-this.propertySpacing:e+this.propertySpacing),s)}else{const e=r+(c-r)/(a-o)*(n.position.x+n.rectangle.width-o);if(e>n.position.y&&e<n.position.y+n.rectangle.height)return this.drawLinePropertyNameAndMultiplicity(i,(e=>n.position.x+n.rectangle.width+this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e+this.propertySpacing:e-this.lineHeight-this.propertySpacing),(e=>n.position.x+n.rectangle.width+this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e-this.lineHeight-this.propertySpacing:e+this.propertySpacing),s)}return new og(new ig(0,0),new sg(0,0))}drawPropertyOrAssociation(e){const t=dg.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value),n=e.property.value;if(this.drawLinePropertyText(V(t[t.length-2],"Diagram path expected to have at least 2 points"),V(t[t.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,n,!1),this.ctx.beginPath(),this.ctx.lineWidth=e===this.selectedPropertyOrAssociation?2:1,t.forEach(((e,t)=>{const n=this.modelCoordinateToCanvasCoordinate(e);0===t?this.ctx.moveTo(n.x,n.y):this.ctx.lineTo(n.x,n.y)})),this.ctx.stroke(),this.ctx.lineWidth=1,n instanceof Yh){const i=t[1],s=t[0],o=i.x,r=i.y,a=s.x,c=s.y,l=e.from;let d=0,u=0;if(c>r){const e=o+(a-o)/(c-r)*(l.classView.value.position.y-r);e>l.classView.value.position.x&&e<l.classView.value.position.x+l.classView.value.rectangle.width&&(d=(e-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(l.classView.value.position.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const e=o+(a-o)/(c-r)*(l.classView.value.position.y+l.classView.value.rectangle.height-r);e>l.classView.value.position.x&&e<l.classView.value.position.x+l.classView.value.rectangle.width&&(d=(e-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(l.classView.value.position.y+l.classView.value.rectangle.height-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(a>o){const e=r+(c-r)/(a-o)*(l.classView.value.position.x-o);e>l.classView.value.position.y&&e<l.classView.value.position.y+l.classView.value.rectangle.height&&(d=(l.classView.value.position.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(e-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const e=r+(c-r)/(a-o)*(l.classView.value.position.x+l.classView.value.rectangle.width-o);e>l.classView.value.position.y&&e<l.classView.value.position.y+l.classView.value.rectangle.height&&(d=(l.classView.value.position.x+l.classView.value.rectangle.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(e-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(n.aggregation===B_.COMPOSITE||n.aggregation===B_.SHARED){let e=Math.atan((c-r)/(a-o));e=a>=o?e:e+Math.PI,this.ctx.beginPath(),this.ctx.moveTo(d+(this.screenOffset.x+Ng(this.diamond[0],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[0],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Ng(this.diamond[1],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[1],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Ng(this.diamond[2],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[2],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Ng(this.diamond[3],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[3],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Ng(this.diamond[0],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[0],e))*this.zoom),n.aggregation===B_.SHARED&&(this.ctx.fillStyle=this.propertyViewSharedDiamondColor),n.aggregation===B_.COMPOSITE&&(this.ctx.fillStyle=this.propertyViewOwnedDiamondColor),this.ctx.fill(),this.ctx.stroke(),this.ctx.lineWidth=1}}}drawInheritance(e){const t=e.to.classView.value.rectangle,n=dg.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value),i=V(n[n.length-2],"Diagram path expected to have at least 2 points").x,s=V(n[n.length-2],"Diagram path expected to have at least 2 points").y,o=V(n[n.length-1],"Diagram path expected to have at least 2 points").x,r=V(n[n.length-1],"Diagram path expected to have at least 2 points").y;let a=0,c=0;if(r>s){const n=i+(o-i)/(r-s)*(e.to.classView.value.position.y-s);n>e.to.classView.value.position.x&&n<e.to.classView.value.position.x+t.width&&(a=(n-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(e.to.classView.value.position.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const n=i+(o-i)/(r-s)*(e.to.classView.value.position.y+t.height-s);n>e.to.classView.value.position.x&&n<e.to.classView.value.position.x+t.width&&(a=(n-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(e.to.classView.value.position.y+t.height-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(o>i){const n=s+(r-s)/(o-i)*(e.to.classView.value.position.x-i);n>e.to.classView.value.position.y&&n<e.to.classView.value.position.y+t.height&&(a=(e.to.classView.value.position.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(n-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const n=s+(r-s)/(o-i)*(e.to.classView.value.position.x+t.width-i);n>e.to.classView.value.position.y&&n<e.to.classView.value.position.y+t.height&&(a=(e.to.classView.value.position.x+t.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(n-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}this.ctx.beginPath(),this.ctx.lineWidth=e===this.selectedInheritance?2:1,n.forEach(((e,t)=>{const n=this.modelCoordinateToCanvasCoordinate(e);0===t?this.ctx.moveTo(n.x,n.y):this.ctx.lineTo(n.x,n.y)})),this.ctx.stroke();let l=Math.atan((r-s)/(o-i));l=o>=i?l:l+Math.PI,this.ctx.beginPath(),this.ctx.moveTo(a+(this.screenOffset.x+Ng(this.triangle[0],l))*this.zoom,c+(this.screenOffset.y+bg(this.triangle[0],l))*this.zoom),this.ctx.lineTo(a+(this.screenOffset.x+Ng(this.triangle[1],l))*this.zoom,c+(this.screenOffset.y+bg(this.triangle[1],l))*this.zoom),this.ctx.lineTo(a+(this.screenOffset.x+Ng(this.triangle[2],l))*this.zoom,c+(this.screenOffset.y+bg(this.triangle[2],l))*this.zoom),this.ctx.lineTo(a+(this.screenOffset.x+Ng(this.triangle[0],l))*this.zoom,c+(this.screenOffset.y+bg(this.triangle[0],l))*this.zoom),this.ctx.fillStyle=this.generalizationViewInheritanceTriangeFillColor,this.ctx.fill(),this.ctx.stroke(),this.ctx.lineWidth=1}reorderDiagramDomain(e,t){const n=t.classViews.filter((t=>t!==e));return n.push(e),n}potentiallyShiftRelationships(e,t,n,i){e.forEach((e=>{-1!==t.indexOf(e.from.classView.value)&&-1!==t.indexOf(e.to.classView.value)&&YE(e,e.path.map((e=>new ig(e.x-n,e.y-i))))}))}recenter(){if(0!==this.selectedClasses.length){const e=S(this.selectedClasses);e&&this.center(e.position.x+e.rectangle.width/2,e.position.y+e.rectangle.height/2)}else this.autoRecenter()}switchToZoomMode(){this.changeMode(this.interactionMode!==XE.ZOOM_IN?XE.ZOOM_IN:XE.ZOOM_OUT,qE.NONE)}switchToViewMode(){this.changeMode(XE.LAYOUT,qE.NONE)}switchToPanMode(){this.changeMode(XE.PAN,qE.NONE)}switchToAddPropertyMode(){this.isReadOnly||this.changeMode(XE.ADD_RELATIONSHIP,qE.PROPERTY)}switchToAddInheritanceMode(){this.isReadOnly||this.changeMode(XE.ADD_RELATIONSHIP,qE.INHERITANCE)}switchToAddClassMode(){this.isReadOnly||this.changeMode(XE.ADD_CLASS,qE.NONE)}ejectProperty(){this.isReadOnly||(this.mouseOverClassProperty?this.mouseOverClassProperty.genericType.value.rawType instanceof rr&&this.addClassView(this.mouseOverClassProperty.genericType.value.rawType,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(new ig(this.cursorPosition.x,this.cursorPosition.y)))):this.selectedClassProperty&&(this.selectedClassProperty.property.genericType.value.rawType instanceof rr&&this.addClassView(this.selectedClassProperty.property.genericType.value.rawType,this.selectedClassProperty.selectionPoint),this.selectedClassProperty=void 0))}getSuperTypeLevels(e,t,n,i){if(e.length){const s=(0,ct.A)(e.flatMap((e=>e.class.value.generalizations.map((e=>new rg(t,(0,o.A)(),Er.create(ym(e.value,rr))))))),(e=>e.class.value));if(s.forEach((e=>this.ensureClassViewMeetMinDimensions(e))),-1===i||n<i){const o=this.getSuperTypeLevels(s,t,n+1,i);return o.push(e),o}return[e]}return[]}layoutTaxonomy(e,t,n,i){return e.reverse(),[e.flatMap(((t,s)=>{let o=0,r=0,a=0,c=0;if(s>0){const t=e[s-1];if(t.length){const e=[...t].sort(((e,t)=>e.position.x-t.position.x));a=e[0].position.x,o=e[e.length-1].position.x+e[e.length-1].rectangle.width-e[0].position.x;const n=[...t].sort(((e,t)=>e.position.y-t.position.y));c=n[0].position.y,r=n[n.length-1].position.y+n[n.length-1].rectangle.height-n[0].position.y}}const l=Math.max(...t.map((e=>e.rectangle.height))),d=a+o/2-t.map((e=>e.rectangle.width)).reduce(((e,t)=>e+t+10))/2,u=i?c-l-30:c+r+30;return(n||s>0)&&(zE(t[0],new ig(d,u)),t.forEach(((e,n)=>{if(n>0){const i=t[n-1];zE(e,new ig(i.position.x+i.rectangle.width+10,u))}}))),t})),(i?e:e.slice().reverse()).slice(0,e.length-1).flatMap(((n,i)=>n.flatMap((n=>e[i+1].flatMap((e=>n.class.value.generalizations.map((e=>e.value.rawType)).includes(e.class.value)?new hg(t,n,e):[]))))))]}keydown(e){if("Delete"===e.code)this.isReadOnly||(this.selectedClasses.forEach((e=>{xE(this.diagram,e),wE(this.diagram,this.diagram.associationViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e)))),RE(this.diagram,this.diagram.generalizationViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e)))),LE(this.diagram,this.diagram.propertyViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e))))})),this.selectedPropertyOrAssociation instanceof vE?OE(this.diagram,this.selectedPropertyOrAssociation):this.selectedPropertyOrAssociation instanceof pg&&DE(this.diagram,this.selectedPropertyOrAssociation),this.selectedInheritance&&this.diagram.generalizationViews.find((e=>e===this.selectedInheritance))&&PE(this.diagram,this.selectedInheritance),this.setSelectedClasses([]),this.drawScreen());else if("KeyE"===e.code)this.selectedClassProperty?(this.handleEditProperty(this.selectedClassProperty.property,this.selectedClassProperty.selectionPoint,void 0),e.preventDefault()):this.selectedPropertyOrAssociation?(this.handleEditProperty(this.selectedPropertyOrAssociation.property.value,this.selectedPoint??(this.selectedPropertyOrAssociation.path.length?this.selectedPropertyOrAssociation.path[0]:this.selectedPropertyOrAssociation.from.classView.value.center()),this.selectedPropertyOrAssociation),e.preventDefault()):1===this.selectedClasses.length&&this.handleEditClassView(this.selectedClasses[0]);else if(e.altKey&&"KeyP"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{FE(e,!e.hideProperties)})),this.drawScreen());else if(e.altKey&&"KeyS"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{BE(e,!e.hideStereotypes)})),this.drawScreen());else if(e.altKey&&"KeyT"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{jE(e,!e.hideTaggedValues)})),this.drawScreen());else if(e.altKey&&"ArrowDown"===e.code)this.isReadOnly||1!==this.selectedClasses.length||this.handleAddSimpleProperty(this.selectedClasses[0]);else if("ArrowUp"===e.code){const e=this.getSuperTypeLevels(this.selectedClasses,this.diagram,0,1),t=this.layoutTaxonomy(e,this.diagram,!1,!0);t[0].forEach((e=>IE(this.diagram,e))),t[1].forEach((e=>kE(this.diagram,e))),this.drawScreen()}else if("ArrowDown"===e.code){const e=(0,ct.A)(this.selectedClasses.flatMap((e=>e.class.value._subclasses.flatMap((e=>new rg(this.diagram,(0,o.A)(),Er.create(e)))))),(e=>e.class.value));if(e.length>0){e.forEach((e=>this.ensureClassViewMeetMinDimensions(e)));const t=this.layoutTaxonomy([e,this.selectedClasses],this.diagram,!1,!1);t[0].forEach((e=>IE(this.diagram,e))),t[1].forEach((e=>kE(this.diagram,e)))}this.drawScreen()}}mouseup(e){const t=this.resolveMouseEventCoordinate(e);switch(this.interactionMode){case XE.ZOOM_IN:{const e=Math.round(100*this.zoom);let n;n=e<=QE[0]-10?10*Math.floor(e/10)+10:e>=QE[QE.length-1]?100*Math.floor(e/100)+100:V(QE.find((t=>t>e))),this.zoomPoint(n/100,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)));break}case XE.ZOOM_OUT:{const e=Math.round(100*this.zoom);let n;n=e<=QE[0]?10*Math.ceil(e/10)-10:e>=QE[QE.length-1]+100?100*Math.ceil(e/100)-100:V((0,hm.A)(QE,(t=>t<e))),this.zoomPoint(n/100,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)));break}}if(!this.isReadOnly)switch(this.interactionMode){case XE.LAYOUT:this.diagram.generalizationViews.forEach((e=>UE(e))),this.diagram.associationViews.forEach((e=>UE(e))),this.diagram.propertyViews.forEach((e=>UE(e)));break;case XE.ADD_CLASS:{const e=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));this.onAddClassViewClick(e),this.changeMode(XE.LAYOUT,qE.NONE);break}case XE.ADD_RELATIONSHIP:if(this.startClassView&&this.selectionStart&&this.handleAddRelationship){const e=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));for(let t=this.diagram.classViews.length-1;t>=0;t--){const n=this.diagram.classViews[t];if(n.contains(e.x,e.y)){const t=this.handleAddRelationship(this.startClassView,n);t&&(VE(t.from,-(this.startClassView.position.x+this.startClassView.rectangle.width/2-this.selectionStart.x)),HE(t.from,-(this.startClassView.position.y+this.startClassView.rectangle.height/2-this.selectionStart.y)),VE(t.to,-(n.position.x+n.rectangle.width/2-e.x)),HE(t.to,-(n.position.y+n.rectangle.height/2-e.y)))}}this.changeMode(XE.LAYOUT,qE.NONE)}}this.setLeftClick(!1),this.setMiddleClick(!1),this.setRightClick(!1),this.setSelectedClassCorner(void 0),this.setSelectionStart(void 0),this.drawScreen()}mousedblclick(e){const t=this.resolveMouseEventCoordinate(e);if([XE.ADD_RELATIONSHIP,XE.ADD_CLASS,XE.ZOOM_IN,XE.ZOOM_OUT].includes(this.interactionMode))return;const n=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));if(this.mouseOverClassProperty&&this.onClassPropertyDoubleClick)return void this.onClassPropertyDoubleClick(this.mouseOverClassProperty,n,void 0);if(this.mouseOverClassName&&this.onClassNameDoubleClick)return void this.onClassNameDoubleClick(this.mouseOverClassName,n);const i=this.diagram.classViews.find((e=>e.contains(n.x,n.y)));i&&this.onClassViewDoubleClick?this.onClassViewDoubleClick(i,n):this.mouseOverPropertyHolderViewLabel&&this.onClassPropertyDoubleClick?this.onClassPropertyDoubleClick(this.mouseOverPropertyHolderViewLabel.property.value,n,this.mouseOverPropertyHolderViewLabel):this.onBackgroundDoubleClick&&this.onBackgroundDoubleClick(n)}mousedown(e){const t=this.resolveMouseEventCoordinate(e);this.setSelectionStart(void 0),this.setSelectedClassCorner(void 0),this.setSelectedPropertyOrAssociation(void 0),this.setSelectedInheritance(void 0),this.selection=void 0,this.selectedClassProperty=void 0,this.selectedPoint=void 0,this.startClassView=void 0;const n=this.eventCoordinateToCanvasCoordinate(t),i=this.canvasCoordinateToModelCoordinate(n);if(0===e.button)switch(this.setLeftClick(!0),this.interactionMode){case XE.PAN:return void(this.positionBeforeLastMove=t);case XE.LAYOUT:for(let e=this.diagram.classViews.length-1;e>=0;e--){const t=this.diagram.classViews[e];if(Tg(t).contains(i.x,i.y)){this.setSelectedClasses([]),this.setSelectedClassCorner(this.diagram.classViews[e]),this.isReadOnly||AE(this.diagram,this.reorderDiagramDomain(V(this.selectedClassCorner),this.diagram));break}}if(!this.selectedClassCorner)if(this.mouseOverClassProperty)this.selectedClassProperty={property:this.mouseOverClassProperty,selectionPoint:i},this.setSelectedClasses([]);else{let e=!1;for(let t=this.diagram.classViews.length-1;t>=0;t--){const s=this.diagram.classViews[t];if(s.contains(i.x,i.y)){0!==this.selectedClasses.length&&-1!==this.selectedClasses.indexOf(s)||this.setSelectedClasses([s]),this.isReadOnly||AE(this.diagram,this.reorderDiagramDomain(this.selectedClasses[0],this.diagram)),this.clickX=n.x/this.zoom-this.screenOffset.x,this.clickY=n.y/this.zoom-this.screenOffset.y,this._selectedClassesInitialPositions=this.selectedClasses.map((e=>({classView:e,oldPos:new ig(e.position.x,e.position.y)}))),e=!0;break}}if(e||this.setSelectedClasses([]),!this.selectedClasses.length){for(const e of this.diagram.generalizationViews){const t=$E(e,i.x,i.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedInheritance(e);break}}if(!this.selectedPoint)for(const e of this.diagram.associationViews){const t=$E(e,i.x,i.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedPropertyOrAssociation(e);break}}if(!this.selectedPoint)for(const e of this.diagram.propertyViews){const t=$E(e,i.x,i.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedPropertyOrAssociation(e);break}}this.selectedPoint||this.setSelectionStart(i)}}break;case XE.ADD_RELATIONSHIP:this.setSelectionStart(i),this.startClassView=void 0;for(let e=this.diagram.classViews.length-1;e>=0;e--){const t=this.diagram.classViews[e];t.contains(i.x,i.y)&&(this.startClassView=t)}this.startClassView||this.changeMode(XE.LAYOUT,qE.NONE)}else{if(1===e.button)return this.setMiddleClick(!0),void(this.positionBeforeLastMove=t);if(2===e.button)return this.setRightClick(!0),this.positionBeforeLastMove=t,void(this.mouseOverClassView&&(this.onClassViewRightClick(this.mouseOverClassView,i),this.setRightClick(!1)))}this.clearScreen(),this.drawAll()}mousewheel(e){const t=this.resolveMouseEventCoordinate(e);if(e.preventDefault(),e.stopImmediatePropagation(),Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;const n=this.zoom-e.deltaY/120*.05;this.executeZoom(n,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)))}mousemove(e){const t=this.resolveMouseEventCoordinate(e);if(this.cursorPosition=t,this.rightClick||this.middleClick||this.leftClick&&this.interactionMode===XE.PAN)this.screenOffset=new ig(this.screenOffset.x+(t.x-this.positionBeforeLastMove.x)/this.zoom,this.screenOffset.y+(t.y-this.positionBeforeLastMove.y)/this.zoom),this.positionBeforeLastMove=t,this.clearScreen(),this.drawAll();else if(this.leftClick){const e=this.eventCoordinateToCanvasCoordinate(t),n=this.canvasCoordinateToModelCoordinate(e);switch(this.interactionMode){case XE.LAYOUT:if(this.selectedClassCorner&&(WE(this.selectedClassCorner,new sg(n.x-this.selectedClassCorner.position.x,n.y-this.selectedClassCorner.position.y)),KE(this.selectedClassCorner),this.drawClassView(this.selectedClassCorner),this.drawScreen()),!this.selectionStart&&this.selectedClasses.length&&!this.isReadOnly){let t=0,n=0;this.selectedClasses.forEach(((i,s)=>{const o=this._selectedClassesInitialPositions.length>s?this._selectedClassesInitialPositions[s]:void 0;if(o){const s=e.x/this.zoom-this.screenOffset.x-(this.clickX-o.oldPos.x),r=e.y/this.zoom-this.screenOffset.y-(this.clickY-o.oldPos.y);t=i.position.x-s,n=i.position.y-r,zE(i,new ig(s,r)),KE(i)}})),this.potentiallyShiftRelationships(this.diagram.associationViews,this.selectedClasses,t,n),this.potentiallyShiftRelationships(this.diagram.propertyViews,this.selectedClasses,t,n),this.potentiallyShiftRelationships(this.diagram.generalizationViews,this.selectedClasses,t,n),this.drawScreen()}if(this.selectedPoint&&(this.selectedPropertyOrAssociation?GE(this.selectedPropertyOrAssociation,this.selectedPoint,n):this.selectedInheritance&&GE(this.selectedInheritance,this.selectedPoint,n),this.selectedPoint=n,this.drawScreen()),this.selectionStart){this.clearScreen(),this.drawAll();const t=this.modelCoordinateToCanvasCoordinate(this.selectionStart);this.ctx.fillStyle=this.selectionBoxBorderColor,this.ctx.fillRect(t.x,t.y,e.x-t.x,e.y-t.y),this.ctx.strokeRect(t.x,t.y,e.x-t.x,e.y-t.y);const n=(e.x-t.x)/this.zoom,i=(e.y-t.y)/this.zoom;this.selection=new og(new ig(n>0?this.selectionStart.x:this.selectionStart.x+n,i>0?this.selectionStart.y:this.selectionStart.y+i),new sg(Math.abs(n),Math.abs(i))),this.setSelectedClasses([]);for(const e of this.diagram.classViews)(Cg(this.selection,e)||Cg(e,this.selection))&&this.setSelectedClasses([...this.selectedClasses,e])}break;case XE.ADD_RELATIONSHIP:if(this.selectionStart&&this.startClassView){this.clearScreen(),this.drawBoundingBox();const t=this.modelCoordinateToCanvasCoordinate(this.selectionStart);this.ctx.moveTo(t.x,t.y),this.ctx.lineTo(e.x,e.y),this.ctx.stroke(),this.drawDiagram()}}}else{this.drawScreen();const e=this.eventCoordinateToCanvasCoordinate(t),n=this.canvasCoordinateToModelCoordinate(e);this.setMouseOverClassView(void 0),this.setMouseOverClassName(void 0),this.setMouseOverClassCorner(void 0),this.setMouseOverClassProperty(void 0),this.setMouseOverPropertyHolderViewLabel(void 0);for(const t of this.diagram.classViews.slice().reverse())if(t.contains(n.x,n.y)){this.setMouseOverClassView(t),Tg(t).contains(n.x,n.y)&&this.setMouseOverClassCorner(t);const i=t.class.value;let s=t.position.y+this.classViewSpaceY;s+=t.hideStereotypes?0:i.stereotypes.length*this.lineHeight;const o=this.computeClassNameWidth(t);new og(this.modelCoordinateToCanvasCoordinate(new ig(t.position.x+(t.rectangle.width-o)/2,s)),new sg(o,this.lineHeight)).contains(e.x,e.y)&&this.setMouseOverClassName(t),s+=this.lineHeight,s+=t.hideTaggedValues?0:i.taggedValues.length*this.lineHeight,s+=2*this.classViewSpaceY;for(const n of Am(i))this.hasPropertyView(t,n)||(this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`,new og(this.modelCoordinateToCanvasCoordinate(new ig(t.position.x+this.classViewSpaceX,s)),new sg(this.drawClassViewProperty(t,n,0,0,!0)*this.zoom,this.lineHeight*this.zoom)).contains(e.x,e.y)&&this.setMouseOverClassProperty(n),s+=this.lineHeight);break}const i=[...this.diagram.propertyViews,...this.diagram.associationViews];for(const e of i){const t=dg.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value);if(this.drawLinePropertyText(V(t[t.length-2],"Diagram path expected to have at least 2 points"),V(t[t.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,e.property.value,!1).contains(n.x,n.y)){this.setMouseOverPropertyHolderViewLabel(e);break}}}}}class nN extends Of{diagramInfo;_renderer;diagram;diagramClasses;graph;diagramPath;filePath;fileLine;fileColumn;constructor(e,t,n,i,s,o){super(e),(0,ke.Gn)(this,{_renderer:ke.sH,diagram:ke.sH,diagramInfo:ke.sH,diagramName:ke.EW,diagramCursorClass:ke.EW,addClassView:ke.L3,rebuild:ke.XI,setRenderer:ke.XI}),this.diagramPath=n,this.filePath=i,this.fileLine=s,this.fileColumn=o,this.diagramInfo=t;const[r,a,c]=fE(t);this.diagram=r,this.graph=a,this.diagramClasses=c}get label(){return bf(this.diagramPath)}get description(){return`Diagram: ${bf(this.diagramPath)}`}get diagramName(){return mm(this.diagramPath)}match(e){return e instanceof nN&&this.diagramPath===e.diagramPath}get renderer(){return V(this._renderer,"Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)")}get isDiagramRendererInitialized(){return Boolean(this._renderer)}get diagramCursorClass(){if(!this.isDiagramRendererInitialized)return"";if(this.renderer.middleClick||this.renderer.rightClick)return"diagram-editor__cursor--grabbing";switch(this.renderer.interactionMode){case XE.PAN:return this.renderer.leftClick?"diagram-editor__cursor--grabbing":"diagram-editor__cursor--grab";case XE.ZOOM_IN:return"diagram-editor__cursor--zoom-in";case XE.ZOOM_OUT:return"diagram-editor__cursor--zoom-out";case XE.LAYOUT:return this.renderer.selectionStart?"diagram-editor__cursor--crosshair":this.renderer.mouseOverClassCorner||this.renderer.selectedClassCorner?"diagram-editor__cursor--resize":this.renderer.mouseOverClassView?"diagram-editor__cursor--pointer":"";default:return""}}rebuild(e){this.diagramInfo=e;const[t,n,i]=fE(e);this.diagram=t,this.graph=n,this.diagramClasses=i,this.fileLine=e.diagram.sourceInformation.line,this.fileColumn=e.diagram.sourceInformation.column}setupRenderer(){this.renderer.onClassViewDoubleClick=e=>{const t=this.diagramClasses.get(e.class.value.path)?.sourceInformation;if(t){const e=new Tf(t.sourceId,t.startLine,t.startColumn);(0,ke.gP)(this.ideStore.executeNavigation(e)).catch(this.ideStore.applicationStore.alertUnhandledError)}}}setRenderer(e){this._renderer=e}*addClassView(e,t){const n=((e,t,n)=>{e.profiles.forEach((e=>{const n=`${e.package}${""===e.package?"":Po}${e.name}`;if(!t.getOwnNullableProfile(n)){const n=new Zh(e.name);Em(Tm(t.root,e.package,!0,new Map),n),t.setOwnProfile(n.path,n),e.tags.forEach((e=>x(n.p_tags,new V_(n,e)))),e.stereotypes.forEach((e=>x(n.p_stereotypes,new H_(n,e))))}})),e.enumerations.forEach((e=>{const n=`${e.package}${""===e.package?"":Po}${e.name}`;if(!t.getOwnNullableEnumeration(n)){const n=new cr(e.name);Em(Tm(t.root,e.package,!0,new Map),n),t.setOwnType(n.path,n)}}));const i=e.class,s=`${i.package}${""===i.package?"":Po}${i.name}`;let o=t.getOwnNullableClass(s);o||(o=new rr(i.name),Em(Tm(t.root,i.package,!0,new Map),o),t.setOwnType(o.path,o));const r=n.get(o.path)?.isStubbed??!0;return n.set(o.path,{sourceInformation:i.sourceInformation,isStubbed:!1}),e.specializations.forEach((e=>{const i=V(o),s=hE(V(`${e.package}${""===e.package?"":Po}${e.name}`),t,n,e.sourceInformation);x(i._subclasses,s),s.generalizations.map((e=>e.value.rawType)).includes(i)||x(s.generalizations,Kh.create(new Xh(i)))})),r&&gE(o,i,t,n),o})((0,ge.iu)(uE,yield this.ideStore.client.getDiagramClassInfo(e)),this.graph,this.diagramClasses),i=this.renderer.addClassView(n,t);i&&(i.id=((e,t)=>{if(!t.match(/^[\w_-]+$/))throw new Error("Token must only contain digits, letters, or special characters _ and -");const n=e.map((e=>{const n=e.match(new RegExp(`^${t}_(?<count>\\d+)$`));return n?.groups?.count?parseInt(n.groups.count,10):0})).reduce(((e,t)=>Math.max(e,t)),0);return`${t}_${n+1}`})(this.diagram.classViews.map((e=>e.id)),"cview"))}registerCommands(){const e=()=>this.ideStore.tabManagerState.currentTab===this&&this.isDiagramRendererInitialized;this.ideStore.applicationStore.commandService.registerCommand({key:Lf.RECENTER,trigger:e,action:()=>this.renderer.recenter()}),this.ideStore.applicationStore.commandService.registerCommand({key:Lf.USE_ZOOM_TOOL,trigger:e,action:()=>this.renderer.switchToZoomMode()}),this.ideStore.applicationStore.commandService.registerCommand({key:Lf.USE_VIEW_TOOL,trigger:e,action:()=>this.renderer.switchToViewMode()}),this.ideStore.applicationStore.commandService.registerCommand({key:Lf.USE_PAN_TOOL,trigger:e,action:()=>this.renderer.switchToPanMode()})}deregisterCommands(){[Lf.RECENTER,Lf.USE_ZOOM_TOOL,Lf.USE_VIEW_TOOL,Lf.USE_PAN_TOOL].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e)))}}class iN{text="";isCaseSensitive=!1;isRegExp=!1;constructor(){(0,ke.Gn)(this,{text:ke.sH,isCaseSensitive:ke.sH,isRegExp:ke.sH,reset:ke.XI,setText:ke.XI,setCaseSensitive:ke.XI,setRegExp:ke.XI})}reset(){this.setText(""),this.setCaseSensitive(!1),this.setRegExp(!1)}setText(e){this.text=e}setCaseSensitive(e){this.isCaseSensitive=e}setRegExp(e){this.isRegExp=e}}class sN extends R{}const oN=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,rN=/^\/?(?:\w+\/)*\w+(?:\.\w+)*$/,aN=/(?:(?<url>https?:[/]{2}[^\s"'!*(){}|\\^<>`]*[^\s"':,.!?{}|\\^~[\]`()<>])|(?<path>resource:(?<path_sourceId>\/?(?:\w+\/)*\w+(?:\.\w+)*) (?:line:(?<path_line>\d+)) (?:column:(?<path_column>\d+))))/;class cN{ideStore;constructor(e){this.ideStore=e}}class lN extends cN{result;constructor(e,t){super(e),this.result=t}}class dN extends cN{result;constructor(e,t){super(e),this.result=t}}class uN{ideStore;usageConcept;searchEntries=[];constructor(e,t,n,i){(0,ke.Gn)(this,{searchEntries:ke.sH,numberOfFiles:ke.EW,numberOfResults:ke.EW}),this.ideStore=e,this.usageConcept=t;const s=new Map;n.forEach(((e,t)=>{let n;s.has(e.source)?n=V(s.get(e.source)):(n=new f_,n.sourceId=e.source,s.set(e.source,n));const o=new g_(e.source,e.startLine,e.startColumn,e.endLine,e.endColumn);o.preview=i.find((t=>t.sourceId===e.source&&t.startLine===e.startLine&&t.startColumn===e.startColumn&&t.endLine===e.endLine&&t.endColumn===e.endColumn))?.preview,n.coordinates.push(o)})),this.searchEntries=Array.from(s.keys()).sort(((e,t)=>e.localeCompare(t))).map((e=>{const t=V(s.get(e));return t.setCoordinates(t.coordinates.sort(((e,t)=>e.startColumn-t.startColumn)).sort(((e,t)=>e.startLine-t.startLine))),t}))}dismissSearchEntry(e){O(this.searchEntries,e),this.searchEntries.length||this.ideStore.setReferenceUsageResult(void 0)}get numberOfFiles(){return this.searchEntries.length}get numberOfResults(){return this.searchEntries.flatMap((e=>e.coordinates)).length}}class pN{searchState;searchEntries=[];constructor(e,t){(0,ke.Gn)(this,{searchEntries:ke.sH,numberOfFiles:ke.EW,numberOfResults:ke.EW}),this.searchState=e,this.searchEntries=t}dismissSearchEntry(e){O(this.searchEntries,e),this.searchEntries.length||this.searchState.setResult(void 0)}get numberOfFiles(){return this.searchEntries.length}get numberOfResults(){return this.searchEntries.flatMap((e=>e.coordinates)).length}}class hN{ideStore;loadState=Pe.create();searchInput;text="";isCaseSensitive=!1;isRegExp=!1;result;constructor(e){(0,ke.Gn)(this,{text:ke.sH,isCaseSensitive:ke.sH,isRegExp:ke.sH,result:ke.sH,setText:ke.XI,setCaseSensitive:ke.XI,setRegExp:ke.XI,setResult:ke.XI,search:ke.L3}),this.ideStore=e}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}select(){this.searchInput?.select()}*search(){if(!this.loadState.isInProgress){this.loadState.inProgress();try{const e=(yield this.ideStore.client.searchText(this.text,this.isCaseSensitive,this.isRegExp)).map((e=>(e=>(0,ge.iu)(f_,e))(e)));this.setResult(new pN(this,e)),this.loadState.pass()}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyError(e),this.loadState.fail()}}}setText(e){this.text=e}setCaseSensitive(e){this.isCaseSensitive=e}setRegExp(e){this.isRegExp=e}setResult(e){this.result=e}}class mN{applicationStore;initState=Pe.create();directoryTreeState;conceptTreeState;client;activePanelMode=Ug.TERMINAL;panelGroupDisplayState=new k_({initial:0,default:300,snap:100});activeActivity=Gg.CONCEPT_EXPLORER;sideBarDisplayState=new k_({initial:300,default:300,snap:150});tabManagerState=new Rf(this);executionState=Pe.create();navigationStack=[];fileSearchCommandLoadState=Pe.create();fileSearchCommandState=new iN;openFileSearchCommand=!1;fileSearchCommandResults=[];codeFixSuggestion;referenceUsageLoadState=Pe.create();referenceUsageResult;textSearchState;testRunState=Pe.create();testRunnerState;constructor(e){var t;(0,ke.Gn)(this,{activePanelMode:ke.sH,activeActivity:ke.sH,navigationStack:ke.sH,openFileSearchCommand:ke.sH,fileSearchCommandResults:ke.sH,fileSearchCommandState:ke.sH,codeFixSuggestion:ke.sH,referenceUsageResult:ke.sH,testRunnerState:ke.sH,setCodeFixSuggestion:ke.XI,setReferenceUsageResult:ke.XI,setOpenFileSearchCommand:ke.XI,setActivePanelMode:ke.XI,setActiveActivity:ke.XI,setTestRunnerState:ke.XI,pullInitializationActivity:ke.XI,pullExecutionStatus:ke.XI,initialize:ke.L3,checkIfSessionWakingUp:ke.L3,loadDiagram:ke.L3,loadFile:ke.L3,execute:ke.L3,executeGo:ke.L3,manageExecuteGoResult:ke.L3,executeTests:ke.L3,executeFullTestSuite:ke.L3,executeNavigation:ke.L3,navigateBack:ke.L3,fullReCompile:ke.L3,command:ke.L3,findUsagesFromCoordinate:ke.L3,findUsages:ke.L3,renameConcept:ke.L3,movePackageableElements:ke.L3,updateFileUsingSuggestionCandidate:ke.L3,updateFile:ke.L3,searchFile:ke.L3,createNewDirectory:ke.L3,createNewFile:ke.L3,renameFile:ke.L3,deleteDirectoryOrFile:ke.L3}),this.applicationStore=e,this.textSearchState=new hN(this),this.directoryTreeState=new Xf(this),this.conceptTreeState=new Jf(this),this.client=new R_(new pe({baseUrl:this.applicationStore.config.useDynamicPureServer?window.location.origin:this.applicationStore.config.pureUrl})),(t=this).applicationStore.terminalService.terminal.setup({webLinkProvider:{handler:(e,n)=>{const i=n.match(aN);i?.groups?.url?t.applicationStore.navigationService.navigator.visitAddress(i.groups.url):i?.groups?.path&&i.groups.path_sourceId&&i.groups.path_column&&i.groups.path_line&&(0,ke.gP)(t.loadFile(i.groups.path_sourceId,new Tf(i.groups.path_sourceId,Number.parseInt(i.groups.path_line,10),Number.parseInt(i.groups.path_column,10)))).catch(t.applicationStore.alertUnhandledError)},regex:aN},commands:[{command:Bf.GO,description:"Run the go() function in welcome file",usage:"go",aliases:["compile","executeGo"],handler:async e=>(0,ke.gP)(t.executeGo()).catch(t.applicationStore.alertUnhandledError)},{command:Bf.TEST,description:"Run the test suite (by path if specified)",usage:"test [/some/path]",handler:async e=>{const n=S(e);!n||n.match(oN)?await(0,ke.gP)(t.executeTests(n??Hg)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid package/concept path")}},{command:Bf.REMOVE,description:"Remove a file or directory",usage:"rm /some/path",handler:async e=>{const n=S(e);n?.match(rN)?await(0,ke.gP)(t.deleteDirectoryOrFile(n,void 0,void 0)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("rm command requires a valid file/directory path")}},{command:Bf.MOVE,description:"Move a file",usage:"mv /old/path /new/path",handler:async e=>{const n=e[0];if(!n?.match(rN))return void t.applicationStore.terminalService.terminal.fail("command requires a valid old file path");const i=e[1];i?.match(rN)?await(0,ke.gP)(t.renameFile(n,i)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid new file path")}},{command:Bf.NEW_DIRECTORY,description:"Create a new directory",usage:"mkdir /some/path",handler:async e=>{const n=e[0];n?.match(rN)?await(0,ke.gP)(t.createNewDirectory(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid directory path")}},{command:Bf.NEW_FILE,description:"Create a new file",usage:"touch /some/path",handler:async e=>{const n=e[0];n?.match(rN)?await(0,ke.gP)(t.createNewDirectory(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid path")}},{command:Bf.WELCOME,description:"Open the welcome file",usage:"welcome",aliases:["start"],handler:async()=>{await(0,ke.gP)(t.loadFile(jg)).catch(t.applicationStore.alertUnhandledError)}},{command:Bf.OPEN_FILE,description:"Open a file",usage:"open /some/file/path",aliases:["edit","code","vi"],handler:async e=>{const n=e[0];n?.match(oN)?await(0,ke.gP)(t.loadFile(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid file path")}},{command:Bf.OPEN_DIRECTORY,description:"Open a directory or a package",usage:"cd /some/directory/path | cd some::package::path",handler:async e=>{const n=e[0];if(n&&(n.match(rN)||n.match(oN)))try{n.match(oN)?await(0,ke.gP)(t.conceptTreeState.revealConcept(n,{forceOpenExplorerPanel:!0,packageOnly:!0})):await(0,ke.gP)(t.directoryTreeState.revealPath(n,{forceOpenExplorerPanel:!0,directoryOnly:!0}))}catch(e){M(e),t.applicationStore.terminalService.terminal.fail(e.message)}else t.applicationStore.terminalService.terminal.fail("command requires a valid directory or concept path")}},{command:Bf.LIST_DIRECTORY,description:"List children of a directory or package",usage:"cd /some/directory/path | cd some::package::path | cd ::",handler:async e=>{const n=e[0];if(n&&(n.match(rN)||n.match(oN)||[Vg,Hg].includes(n)))try{n.match(oN)||n===Hg?t.applicationStore.terminalService.terminal.output((await t.client.getConceptChildren(n)).map((e=>(0,ge.iu)(Nf,e))).map((e=>e.li_attr instanceof ff?`${it.BRIGHT_CYAN}${e.text}${it.RESET}`:e.text)).join("\n")):t.applicationStore.terminalService.terminal.output((await t.client.getDirectoryChildren(n)).map((e=>(0,ge.iu)(Wf,e))).map((e=>e.isFolderNode?`${it.BRIGHT_CYAN}${e.text}${it.RESET}`:e.text)).join("\n"))}catch(e){M(e),t.applicationStore.terminalService.terminal.fail(e.message)}else t.applicationStore.terminalService.terminal.fail("command requires a valid directory or package path")}},{command:Bf.CLEAR,description:"Clear the terminal",usage:"clear",handler:async e=>{t.applicationStore.terminalService.terminal.clear()}},{command:Bf.ECHO,description:"Print text",usage:"echo 'some string'",handler:async(e,n,i)=>{const s=i.substring(i.indexOf(n)+n.length).trim();t.applicationStore.terminalService.terminal.output(s.replaceAll(/\\u001b/g,""))}},{command:Bf.ANSI,description:"Show common ANSI escape sequences used for styling",usage:"ansi",handler:async e=>(t.applicationStore.terminalService.terminal.showCommonANSIEscapeSequences(),Promise.resolve())},{command:Bf.HELP,description:"Show help",usage:"help",handler:async e=>(t.applicationStore.terminalService.terminal.showHelp(),Promise.resolve())}]})}setOpenFileSearchCommand(e){this.openFileSearchCommand=e}setActivePanelMode(e){this.activePanelMode=e}setCodeFixSuggestion(e){this.codeFixSuggestion=e}setReferenceUsageResult(e){this.referenceUsageResult=e}setTestRunnerState(e){this.testRunnerState=e}cleanUp(){this.applicationStore.alertService.setBlockingAlert(void 0),this.applicationStore.alertService.setActionAlertInfo(void 0),this.applicationStore.terminalService.terminal.dispose()}*initialize(e,t,n,i){if(this.initState.isInInitialState){this.client.mode=n,this.client.compilerMode=i,this.initState.inProgress();try{this.applicationStore.alertService.setBlockingAlert({message:"Loading Pure IDE...",prompt:"Please be patient as we are building the initial application state",showLoading:!0});const n=this.client.initialize(!e).catch((e=>{M(e),this.applicationStore.notificationService.notifyError(e),this.initState.fail(),this.applicationStore.alertService.setBlockingAlert({message:"Failed to initialize IDE",prompt:"Before debugging, make sure the server is running then restart the application"})}));yield this.pullInitializationActivity(),this.applicationStore.alertService.setBlockingAlert(void 0);const i=(0,ke.gP)(this.loadFile(jg)),o=this.directoryTreeState.initialize(),r=this.conceptTreeState.initialize(),a=(s=yield n).error?s.source?(0,ge.iu)(e_,s):(0,ge.iu)(Qf,s):(0,ge.iu)(Zf,s);a.text&&(this.applicationStore.terminalService.terminal.output(a.text,{systemCommand:"initialize application"}),this.setActivePanelMode(Ug.TERMINAL),this.panelGroupDisplayState.open()),a instanceof Qf?a.sessionError?this.applicationStore.alertService.setBlockingAlert({message:"Session corrupted",prompt:a.sessionError}):a instanceof e_&&(yield(0,ke.gP)(this.loadFile(a.source,new Cf(a.source,a.line,a.column,new sN((a.text??"").split("\n").filter(Boolean)[0]))))):(t&&(yield t()),yield Promise.all([i,o,r])),this.initState.pass()}catch(e){M(e),this.applicationStore.notificationService.notifyError(e),this.initState.fail(),this.applicationStore.alertService.setActionAlertInfo({message:"Failed to initialize IDE",prompt:"This can either due to an internal server error, which you would need to manually resolve; or a compilation, which you can proceed to debug",type:jt.CAUTION,actions:[{label:"Compile to debug",type:Vt.PROCEED_WITH_CAUTION,default:!0,handler:()=>{(0,ke.gP)(this.executeGo()).catch(this.applicationStore.alertUnhandledError)}}]})}finally{this.applicationStore.terminalService.terminal.clear()}var s}else this.applicationStore.notificationService.notifyIllegalState("Editor store is re-initialized")}*checkIfSessionWakingUp(e){this.applicationStore.alertService.setBlockingAlert({message:e??"Checking IDE session...",showLoading:!0}),yield this.pullInitializationActivity((t=>{t.text&&this.applicationStore.alertService.setBlockingAlert({message:e??"Checking IDE session...",prompt:t.text,showLoading:!0})})),this.applicationStore.alertService.setBlockingAlert(void 0)}async pullInitializationActivity(e){return(await this.client.getInitializationActivity()).initializing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullInitializationActivity())}catch(e){t(e)}}),1e3))):Promise.resolve()}registerCommands(){this.applicationStore.commandService.registerCommand({key:kf.SEARCH_FILE,action:()=>this.setOpenFileSearchCommand(!0)}),this.applicationStore.commandService.registerCommand({key:kf.SEARCH_TEXT,action:()=>{this.setActivePanelMode(Ug.SEARCH),this.panelGroupDisplayState.open(),this.textSearchState.focus(),this.textSearchState.select()}}),this.applicationStore.commandService.registerCommand({key:kf.GO_TO_FILE,action:()=>{this.tabManagerState.currentTab instanceof Hf&&this.directoryTreeState.revealPath(this.tabManagerState.currentTab.filePath,{forceOpenExplorerPanel:!0})}}),this.applicationStore.commandService.registerCommand({key:kf.TOGGLE_TERMINAL_PANEL,action:()=>{this.panelGroupDisplayState.isOpen?this.activePanelMode!==Ug.TERMINAL?(this.setActivePanelMode(Ug.TERMINAL),this.applicationStore.terminalService.terminal.focus()):this.applicationStore.terminalService.terminal.isFocused()?this.panelGroupDisplayState.close():this.applicationStore.terminalService.terminal.focus():(this.setActivePanelMode(Ug.TERMINAL),this.panelGroupDisplayState.open())}}),this.applicationStore.commandService.registerCommand({key:kf.EXECUTE,action:()=>{(0,ke.gP)(this.executeGo()).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:kf.FULL_RECOMPILE,action:()=>{(0,ke.gP)(this.fullReCompile(!1)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:kf.FULL_RECOMPILE_WITH_FULL_INIT,action:()=>{(0,ke.gP)(this.fullReCompile(!0)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:kf.RUN_ALL_TESTS,action:()=>{(0,ke.gP)(this.executeFullTestSuite(!1)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:kf.RUN_RELAVANT_TESTS,action:()=>{(0,ke.gP)(this.executeFullTestSuite(!0)).catch(this.applicationStore.alertUnhandledError)}})}deregisterCommands(){[kf.SEARCH_FILE,kf.SEARCH_TEXT,kf.GO_TO_FILE,kf.TOGGLE_TERMINAL_PANEL,kf.EXECUTE,kf.FULL_RECOMPILE,kf.FULL_RECOMPILE_WITH_FULL_INIT,kf.RUN_ALL_TESTS,kf.RUN_RELAVANT_TESTS].forEach((e=>this.applicationStore.commandService.deregisterCommand(e)))}setActiveActivity(e,t){this.sideBarDisplayState.isOpen?e!==this.activeActivity||t?.keepShowingIfMatchedCurrent||this.sideBarDisplayState.close():this.sideBarDisplayState.open(),this.activeActivity=e}*loadDiagram(e,t,n,i){let s=this.tabManagerState.tabs.find((e=>e instanceof nN&&e.diagramPath===t));s||(yield(0,ke.gP)(this.checkIfSessionWakingUp()),s=new nN(this,(0,ge.iu)(dE,yield this.client.getDiagramInfo(t)),t,e,n,i)),this.tabManagerState.openTab(s)}*loadFile(e,t){try{let n=this.tabManagerState.tabs.find((t=>t instanceof Hf&&t.filePath===e));n||(yield(0,ke.gP)(this.checkIfSessionWakingUp()),n=new Hf(this,(0,ge.iu)(vf,yield this.client.getFile(e)),e)),this.tabManagerState.openTab(n),t&&(n.textEditorState.setForcedCursorPosition({lineNumber:t.line,column:t.column}),t instanceof Cf&&n.showError(t))}catch(t){M(t),this.applicationStore.terminalService.terminal.fail(t.message,{systemCommand:`load file ${e}`})}}async reloadFile(e){const t=[];await Promise.all(this.tabManagerState.tabs.map((async n=>{if(n instanceof Hf&&n.filePath===e)n.setFile((0,ge.iu)(vf,await this.client.getFile(e)));else if(n instanceof nN&&n.filePath===e)try{n.rebuild((0,ge.iu)(dE,await this.client.getDiagramInfo(n.diagramPath)))}catch{t.push(n)}}))),t.forEach((e=>this.tabManagerState.closeTab(e)))}*execute(e,t,n,i,s,o){if(!this.initState.hasCompleted)return void this.applicationStore.notificationService.notifyWarning("Can't execute while initializing application");if(this.executionState.isInProgress)return void this.applicationStore.notificationService.notifyWarning("Another execution is already in progress!");this.setCodeFixSuggestion(void 0),this.executionState.inProgress();const r=this.tabManagerState.tabs.filter(G(Hf)).map((e=>e.filePath));try{const c=this.tabManagerState.tabs.map((e=>e instanceof Hf?{path:e.filePath,code:e.file.content}:e instanceof nN?{diagram:e.diagramPath,code:pE(e.diagram)}:void 0)).filter(B),l=this.client.execute(c,e,t),d=1e3;let u,p=!1;yield Promise.all([l.then((e=>{p=!0,u=e})),new Promise(((e,t)=>setTimeout((()=>{!p&&n&&(this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:"Please do not refresh the application",showLoading:!0}),e(this.pullExecutionStatus().finally((()=>{this.applicationStore.alertService.setBlockingAlert(void 0)})))),e()}),d,!0)))]);const h=(a=V(u)).error?a.candidateName&&a.PureUnmatchedFunctionException?(0,ge.iu)(c_,a):a.candidateName&&a.candidates?(0,ge.iu)(l_,a):(0,ge.iu)(i_,a):a.jumpTo?(0,ge.iu)(o_,a):a.tests?(0,ge.iu)(p_,a):(0,ge.iu)(n_,a);this.applicationStore.alertService.setBlockingAlert(void 0),h instanceof i_?(this.applicationStore.notificationService.notifyError("Execution failed"+(h.text?`: ${h.text}`:"")),this.applicationStore.terminalService.terminal.fail(h.text,{systemCommand:s??"execute"}),h.sessionError?this.applicationStore.alertService.setBlockingAlert({message:"Session corrupted",prompt:h.sessionError}):yield(0,ke.gP)(i(h,r))):(o?.silentTerminalOnSuccess||this.applicationStore.terminalService.terminal.output(h.text??"",{clear:o?.clearTerminal,systemCommand:s??"execute"}),h instanceof n_?(this.applicationStore.notificationService.notifySuccess("Execution succeeded!"),h.reinit?(this.applicationStore.alertService.setBlockingAlert({message:"Reinitializing...",prompt:"Please do not refresh the application",showLoading:!0}),this.initState.reset(),yield(0,ke.gP)(this.initialize(!1,(()=>(0,ke.gP)(this.execute(e,t,n,i,s))),this.client.mode,this.client.compilerMode))):yield(0,ke.gP)(i(h,r))):yield(0,ke.gP)(i(h,r)))}catch(e){M(e),this.applicationStore.notificationService.notifyError(e),this.applicationStore.terminalService.terminal.fail(e.message,{systemCommand:s??"execute"})}finally{this.applicationStore.alertService.setBlockingAlert(void 0),this.executionState.reset()}var a}async pullExecutionStatus(){const e=await this.client.getExecutionActivity();return this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:e.text?e.text:"Please do not refresh the application",showLoading:!0}),e.executing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullExecutionStatus())}catch(e){t(e)}}),500))):(this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:"Please do not refresh the application",showLoading:!0}),Promise.resolve())}*executeGo(){yield(0,ke.gP)(this.execute("executeGo",{},!0,((e,t)=>(0,ke.gP)(this.manageExecuteGoResult(e,t))),Bf.GO,{clearTerminal:!0}))}*manageExecuteGoResult(e,t){const n=this.refreshTrees();if(this.tabManagerState.tabs.filter(G(Hf)).filter((e=>t.includes(e.filePath))).forEach((e=>e.clearError())),e instanceof i_)e.source&&(yield(0,ke.gP)(this.loadFile(e.source,new Cf(e.source,e.line,e.column,new sN(e.text.split("\n").filter(Boolean)[0]))))),e instanceof c_?(this.setCodeFixSuggestion(new lN(this,e)),this.setActivePanelMode(Ug.CODE_FIX_SUGGESTION),this.panelGroupDisplayState.open()):e instanceof l_&&(this.setCodeFixSuggestion(new dN(this,e)),this.setActivePanelMode(Ug.CODE_FIX_SUGGESTION),this.panelGroupDisplayState.open()),this.resetChangeDetection(t);else if(e instanceof n_){if(e.modifiedFiles.length)for(const t of e.modifiedFiles)yield this.reloadFile(t);this.resetChangeDetection(t.concat(e.modifiedFiles)),!this.initState.hasFailed&&this.conceptTreeState.treeData||(yield(0,ke.gP)(this.conceptTreeState.initialize()),this.initState.pass())}yield n}*executeTests(e,t){t?this.applicationStore.notificationService.notifyUnsupportedFeature("Run relevant tests! (reason: VCS required)"):this.testRunState.isInProgress?this.applicationStore.notificationService.notifyWarning("Test runner is working. Please try again later"):(this.testRunState.inProgress(),yield(0,ke.gP)(this.execute("executeTests",{path:e,relevantTestsOnly:t},!1,(async(e,t)=>{const n=this.refreshTrees();if(e instanceof i_)e.source&&await(0,ke.gP)(this.loadFile(e.source,new Cf(e.source,e.line,e.column,new sN(e.text.split("\n").filter(Boolean)[0])))),this.setActivePanelMode(Ug.TERMINAL),this.panelGroupDisplayState.open(),this.testRunState.fail();else if(e instanceof p_){this.setActivePanelMode(Ug.TEST_RUNNER),this.panelGroupDisplayState.open();const t=new x_(this,e);this.setTestRunnerState(t),await(0,ke.gP)(t.buildTestTreeData()),t.refreshTree(),await(0,ke.gP)(t.pollTestRunnerResult()),this.testRunState.pass()}this.resetChangeDetection(t),await n}),`${Bf.TEST} ${e}`)))}*executeFullTestSuite(e){yield(0,ke.gP)(this.executeTests(Hg,e))}*executeNavigation(e){this.navigationStack.push(e),yield(0,ke.gP)(this.execute("getConcept",{file:e.file,line:e.line,column:e.column},!1,(async(e,t)=>{e instanceof o_&&await(0,ke.gP)(this.loadFile(e.jumpTo.source,new Tf(e.jumpTo.source,e.jumpTo.line,e.jumpTo.column))),this.resetChangeDetection(t)}),"navigate",{silentTerminalOnSuccess:!0}))}*navigateBack(){if(0!==this.navigationStack.length){if(this.navigationStack.length>0){const e=this.navigationStack.pop();e&&(yield(0,ke.gP)(this.loadFile(e.file,e)))}}else this.applicationStore.notificationService.notifyWarning("Can't navigate back any further - navigation stack is empty")}*fullReCompile(e){this.applicationStore.alertService.setActionAlertInfo({message:"Are you sure you want to perform a full re-compile?",prompt:"This may take a long time to complete",type:jt.CAUTION,actions:[{label:"Perform full re-compile",type:Vt.PROCEED_WITH_CAUTION,handler:()=>{(0,ke.gP)(this.execute("executeSaveAndReset",{},!0,(async(t,n)=>{this.initState.reset(),await(0,ke.gP)(this.initialize(e,void 0,this.client.mode,this.client.compilerMode)),this.resetChangeDetection(n),this.setActiveActivity(Gg.CONCEPT_EXPLORER,{keepShowingIfMatchedCurrent:!0})}),"recompile")).catch(this.applicationStore.alertUnhandledError)}},{label:"Abort",type:Vt.PROCEED,default:!0}]})}resetChangeDetection(e){this.tabManagerState.tabs.filter(G(Hf)).filter((t=>e.includes(t.filePath))).forEach((e=>e.resetChangeDetection()))}async refreshTrees(){await Promise.all([this.directoryTreeState.refreshTreeData(),this.conceptTreeState.refreshTreeData()])}async revealConceptInTree(e){let t;try{t=await this.client.getConceptInfo(e.file,e.line,e.column)}catch{return void this.applicationStore.notificationService.notifyWarning("Can't find concept info. Please make sure that the code compiles and that you are looking for references of non primitive types!")}if(t.path){this.applicationStore.alertService.setBlockingAlert({message:"Revealing concept in tree...",showLoading:!0});try{this.activeActivity!==Gg.CONCEPT_EXPLORER&&this.setActiveActivity(Gg.CONCEPT_EXPLORER);const e=t.path.split(Po);let n=V(e[0]),i=V(this.conceptTreeState.getTreeData().nodes.get(n));for(let t=1;t<e.length;++t)n=`${n}${Po}${e[t]}`,this.conceptTreeState.getTreeData().nodes.get(n)||await(0,ke.gP)(this.conceptTreeState.expandNode(i)),i=V(this.conceptTreeState.getTreeData().nodes.get(n));this.conceptTreeState.setSelectedNode(i)}catch{this.applicationStore.notificationService.notifyWarning("Error revealing concept. Please make sure that the code compiles and that you are looking for a valid concept")}finally{this.applicationStore.alertService.setBlockingAlert(void 0)}}}*command(e,t){try{const i=(n=yield e()).error?(0,ge.iu)(O_,n):new w_;return!(i instanceof O_&&(i.errorDialog?this.applicationStore.notificationService.notifyWarning(`Can't run command '${t}': ${i.text}`):this.applicationStore.terminalService.terminal.output(i.text,{systemCommand:t}),1))}catch(e){return M(e),this.applicationStore.notificationService.notifyError(e),this.applicationStore.terminalService.terminal.fail(e.message,{systemCommand:t}),!1}var n}async getConceptInfo(e){try{return await this.client.getConceptInfo(e.file,e.line,e.column)}catch{return void this.applicationStore.notificationService.notifyWarning("Can't find concept info. Please make sure that the code compiles and that you are looking for references of non primitive types!")}}async findConceptUsages(e,t){return(await this.client.getUsages(e,t)).map((e=>(0,ge.iu)(Af,e)))}*findUsagesFromCoordinate(e){const t=yield this.getConceptInfo(e);t&&(yield(0,ke.gP)(this.findUsages(t)))}*findUsages(e){try{this.referenceUsageLoadState.inProgress(),this.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",prompt:`Finding references of ${Sf(e)}`,showLoading:!0});const t=yield this.findConceptUsages(e.pureType===mf.ENUM_VALUE?yf.ENUM:e.pureType===mf.PROPERTY||e.pureType===mf.QUALIFIED_PROPERTY?yf.PROPERTY:yf.ELEMENT,(e.owner?[`'${e.owner}'`]:[]).concat(`'${e.path}'`)),n=(yield this.client.getTextSearchPreview(t.map((e=>(0,ge.lK)(g_,new g_(e.source,e.startLine,e.startColumn,e.endLine,e.endColumn)))))).map((e=>(0,ge.iu)(g_,e)));this.setReferenceUsageResult(new uN(this,e,t,n)),this.setActivePanelMode(Ug.REFERENCES),this.panelGroupDisplayState.open()}catch(e){M(e),this.applicationStore.notificationService.notifyError(e)}finally{this.applicationStore.alertService.setBlockingAlert(void 0),this.referenceUsageLoadState.complete()}}*renameConcept(e,t,n,i){try{yield this.client.renameConcept({oldName:e,newName:t,pureType:n,sourceInformations:i.map((e=>({sourceId:e.source,line:e.line,column:e.column})))});const s=i.map((e=>e.source));for(const e of s)yield this.reloadFile(e);yield this.refreshTrees(),this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(t){M(t),this.applicationStore.notificationService.notifyError(`Can't rename concept '${e}'`)}}*movePackageableElements(e){try{yield this.client.movePackageableElements(e.map((e=>({pureName:e.pureName,pureType:e.pureType,sourcePackage:e.sourcePackage,destinationPackage:e.destinationPackage,sourceInformations:e.usages.map((e=>({sourceId:e.source,line:e.line,column:e.column})))}))));const t=(0,Ae.A)(e.flatMap((e=>e.usages.map((e=>e.source)))));for(const e of t)yield this.reloadFile(e);yield this.refreshTrees(),this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(e){M(e),this.applicationStore.notificationService.notifyError(`Can't move packageable elements:\n${e.message}`)}}*updateFileUsingSuggestionCandidate(e){this.setCodeFixSuggestion(void 0),yield(0,ke.gP)(this.updateFile(e.fileToBeModified,e.lineToBeModified,e.columnToBeModified,e.add,e.messageToBeModified)),this.setActivePanelMode(Ug.TERMINAL),this.panelGroupDisplayState.open()}*updateFile(e,t,n,i,s){try{const o=yield this.client.updateSource([{path:e,line:t,column:n,message:s,add:i}]);if(o.modifiedFiles.length)for(const e of o.modifiedFiles)yield this.reloadFile(e);this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(t){M(t),this.applicationStore.notificationService.notifyError(`Can't update file '${e}'`)}}*searchFile(){this.fileSearchCommandLoadState.isInProgress||(this.fileSearchCommandLoadState.inProgress(),this.fileSearchCommandResults=yield this.client.findFiles(this.fileSearchCommandState.text,this.fileSearchCommandState.isRegExp),this.fileSearchCommandLoadState.pass())}*createNewDirectory(e){try{yield(0,ke.gP)(this.command((()=>this.client.createFolder(bf(e))),Bf.NEW_DIRECTORY)),yield(0,ke.gP)(this.directoryTreeState.refreshTreeData())}catch(e){M(e),this.applicationStore.notificationService.notifyError(e)}}*createNewFile(e){try{const t=yield(0,ke.gP)(this.command((()=>this.client.createFile(bf(e))),Bf.NEW_FILE));yield(0,ke.gP)(this.directoryTreeState.refreshTreeData()),t&&(yield(0,ke.gP)(this.loadFile(e)))}catch(e){M(e),this.applicationStore.notificationService.notifyError(e)}}*renameFile(e,t){try{yield(0,ke.gP)(this.command((()=>this.client.renameFile(e,t)),Bf.MOVE)),yield(0,ke.gP)(this.directoryTreeState.refreshTreeData());const n=this.tabManagerState.tabs.find((t=>t instanceof Hf&&t.filePath===e));n&&this.tabManagerState.closeTab(n)}catch(e){M(e),this.applicationStore.notificationService.notifyError(e)}}*deleteDirectoryOrFile(e,t,n){const i=async()=>{await(0,ke.gP)(this.command((()=>this.client.deleteDirectoryOrFile(bf(e))),Bf.REMOVE)),this.tabManagerState.tabs.filter((n=>n instanceof Hf&&(void 0===t||t?n.filePath.startsWith(`${e}/`):n.filePath===e))).forEach((e=>this.tabManagerState.closeTab(e))),await(0,ke.gP)(this.directoryTreeState.refreshTreeData())};void 0===t||void 0===n?i().catch(this.applicationStore.alertUnhandledError):this.applicationStore.alertService.setActionAlertInfo({message:`Are you sure you would like to delete this ${t?"directory":"file"}?`,prompt:n?"Beware! This directory is not empty, this action is not undo-able, you have to manually revert using VCS":"Beware! This action is not undo-able, you have to manually revert using VCS",type:jt.CAUTION,actions:[{label:"Delete anyway",type:Vt.PROCEED_WITH_CAUTION,handler:()=>{i().catch(this.applicationStore.alertUnhandledError)}},{label:"Abort",type:Vt.PROCEED,default:!0}]})}}const gN=(0,Gt.createContext)(void 0),fN=({children:e})=>{const t=$t(),n=(0,It.iz)((()=>new mN(t)));return(0,N.jsx)(gN.Provider,{value:n,children:e})},_N=()=>V((0,Gt.useContext)(gN),"Can't find editor store in context"),EN=(0,It.PA)((()=>{const e=_N(),t=$t().terminalService.terminal,n=(0,Gt.useRef)(null),{ref:i,width:s,height:o}=(0,os.u)();(0,Gt.useEffect)((()=>(n.current&&t.searchConfig.setSearchInput(n.current),()=>t.searchConfig.setSearchInput(void 0))),[t]),(0,Gt.useEffect)((()=>{i.current&&t.mount(i.current)}),[t,i]),(0,Gt.useEffect)((()=>{e.panelGroupDisplayState.isOpen&&e.activePanelMode===Ug.TERMINAL&&t.focus()}),[t,e.panelGroupDisplayState.isOpen,e.activePanelMode]),(0,Gt.useEffect)((()=>{t.autoResize()}),[t,s,o]);const r=()=>{t.clear(),t.focus()},a=()=>t.copyAll();return t.isSetup?(0,N.jsxs)("div",{className:"terminal-panel",children:[(0,N.jsxs)("div",{className:"terminal-panel__header",children:[(0,N.jsxs)("div",{className:"terminal-panel__header__group",children:[(0,N.jsxs)("div",{className:"terminal-panel__header__searcher__input__container",children:[(0,N.jsx)("input",{ref:n,className:"terminal-panel__header__searcher__input input--dark",spellCheck:!1,value:t.searchConfig.searchText,onChange:e=>{const n=e.target.value;t.setSearchText(n),t.search(n)},onKeyDown:e=>{"Enter"===e.code?e.shiftKey?t.findPrevious():t.findNext():"Escape"===e.code&&(t.clearSearch(),t.focus())},placeholder:"Find"}),(0,N.jsxs)("div",{className:"terminal-panel__header__searcher__input__actions",children:[(0,N.jsx)("button",{className:"terminal-panel__header__searcher__input__action",tabIndex:-1,title:"Clear Search",onClick:()=>t.clearSearch(),children:(0,N.jsx)(_n,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.matchCaseSensitive}),tabIndex:-1,title:"Match Case",onClick:()=>t.setSearchCaseSensitive(!t.searchConfig.matchCaseSensitive),children:(0,N.jsx)(Nn,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.matchWholeWord}),tabIndex:-1,title:"Match Whole Word",onClick:()=>t.setSearchWholeWord(!t.searchConfig.matchWholeWord),children:(0,N.jsx)(bn,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.useRegex}),tabIndex:-1,title:"Use Regular Expression",onClick:()=>t.setSearchRegex(!t.searchConfig.useRegex),children:(0,N.jsx)(En,{})})]})]}),(0,N.jsx)("div",{className:"terminal-panel__header__searcher__result",children:t.searchConfig.resultCount?`${void 0!==t.searchConfig.currentResultIndex?t.searchConfig.currentResultIndex+1:0} of ${t.searchConfig.resultCount}`:"No results"}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Previous Match (Shift+Enter)",disabled:!t.searchConfig.resultCount,tabIndex:-1,onClick:()=>{t.findPrevious()},children:(0,N.jsx)(ui,{className:"terminal-panel__header__action__icon"})}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Next Match (Enter)",disabled:!t.searchConfig.resultCount,tabIndex:-1,onClick:()=>{t.findNext()},children:(0,N.jsx)(di,{className:"terminal-panel__header__action__icon"})})]}),(0,N.jsx)("div",{className:"terminal-panel__header__group__separator"}),(0,N.jsxs)("div",{className:"terminal-panel__header__group",children:[(0,N.jsx)("button",{className:(0,Rt.$)("terminal-panel__header__action terminal-panel__header__group__action",{"terminal-panel__header__action--active":t.preserveLog}),title:"Toggle Preserve Console",tabIndex:-1,onClick:()=>t.setPreserveLog(!t.preserveLog),children:(0,N.jsx)(Dn,{className:"terminal-panel__header__action__icon"})}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Copy Text Content",tabIndex:-1,onClick:a,children:(0,N.jsx)(Ei,{className:"terminal-panel__header__action__icon"})}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Clear Console",tabIndex:-1,onClick:r,children:(0,N.jsx)(ii,{className:"terminal-panel__header__action__icon"})}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Show Help",tabIndex:-1,onClick:()=>{t.showHelp(),t.focus()},children:(0,N.jsx)(zn,{className:"terminal-panel__header__action__icon"})})]})]}),(0,N.jsx)(Xi,{className:"terminal-panel__content",content:(0,N.jsxs)(Ji,{children:[(0,N.jsx)(Zi,{onClick:()=>t.copy(),children:"Copy"}),(0,N.jsx)(Zi,{onClick:a,children:"Copy All"}),(0,N.jsx)(Zi,{onClick:r,children:"Clear"})]}),menuProps:{elevation:7},children:(0,N.jsx)("div",{ref:i,className:"terminal-panel__container"})})]}):(0,N.jsx)("div",{className:"terminal-panel",children:(0,N.jsx)(as,{children:"Terminal is not set up yet"})})})),NN=(0,It.PA)((e=>{const{searchResult:t,result:n}=e,i=_N(),s=$t(),o=e=>()=>(0,ke.gP)(i.loadFile(n.sourceId,new Tf(n.sourceId,e.startLine,e.startColumn))).catch(s.alertUnhandledError),r=e=>()=>{n.dismissCoordinate(e),n.coordinates.length||t.dismissSearchEntry(n)};return(0,N.jsxs)("div",{className:"text-search-panel__entry",children:[(0,N.jsxs)("div",{className:"text-search-panel__entry__header",onClick:()=>n.setIsExpanded(!n.isExpanded),children:[(0,N.jsxs)("div",{className:"text-search-panel__entry__header__title",children:[(0,N.jsx)("div",{className:"text-search-panel__entry__header__title__expander",children:n.isExpanded?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{})}),(0,N.jsx)("div",{className:"text-search-panel__entry__header__title__label",children:(0,N.jsx)(Ni,{})}),(0,N.jsx)("div",{className:"text-search-panel__entry__header__title__content",children:bf(n.sourceId)})]}),(0,N.jsxs)("div",{className:"text-search-panel__entry__header__actions",children:[(0,N.jsx)("div",{className:"text-search-panel__entry__header__action text-search-panel__entry__header__action--with-counter",children:(0,N.jsx)("div",{className:"text-search-panel__entry__header__action__counter",children:n.coordinates.length})}),(0,N.jsx)("button",{className:"text-search-panel__entry__header__action text-search-panel__entry__header__action--hidden",tabIndex:-1,title:"Dismiss",onClick:()=>t.dismissSearchEntry(n),children:(0,N.jsx)(jn,{})})]})]}),n.isExpanded&&(0,N.jsx)("div",{className:"text-search-panel__entry__content",children:n.coordinates.map((e=>(0,N.jsxs)("div",{className:"text-search-panel__entry__content__item",children:[(0,N.jsxs)("div",{className:"text-search-panel__entry__content__item__label text-search-panel__entry__content__item__label--full",title:e.preview?`${e.preview.before}${e.preview.found.replaceAll(/\n/g,"↵")}${e.preview.after}`:"Go To Result",onClick:o(e),children:[e.preview&&(0,N.jsxs)("div",{className:"text-search-panel__entry__content__item__label__content",children:[(0,N.jsx)("div",{className:"text-search-panel__entry__content__item__label__coordinates",children:`[${e.startLine}:${e.startColumn}]`}),(0,N.jsxs)("div",{className:"text-search-panel__entry__content__item__label__preview",children:[(0,N.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text",children:e.preview.before}),(0,N.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text text-search-panel__entry__content__item__label__preview__text--found",children:e.preview.found.replaceAll(/\n/g,"↵")}),(0,N.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text",children:e.preview.after})]})]}),!e.preview&&(0,N.jsx)(N.Fragment,{children:`line: ${e.startLine} - column: ${e.startColumn}`})]}),(0,N.jsx)("div",{className:"text-search-panel__entry__content__item__actions",children:(0,N.jsx)("button",{className:"text-search-panel__entry__content__item__action text-search-panel__entry__content__item__action--hidden",tabIndex:-1,title:"Dismiss",onClick:r(e),children:(0,N.jsx)(jn,{})})})]},e.uuid)))})]})})),bN=(0,It.PA)((e=>{const{searchResult:t}=e,n=_N(),i=$t(),s=t.searchEntries.some((e=>!e.isExpanded));return(0,N.jsxs)("div",{className:"text-search-panel__content",children:[(0,N.jsxs)("div",{className:"text-search-panel__content__header",children:[(0,N.jsx)("div",{className:"text-search-panel__content__header__title",children:t.searchEntries.length?`${t.numberOfResults} result(s) in ${t.numberOfFiles} files`:"No result"}),(0,N.jsxs)("div",{className:"text-search-panel__content__header__actions",children:[(0,N.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Refresh",onClick:()=>{(0,ke.gP)(n.textSearchState.search()).catch(i.alertUnhandledError)},children:(0,N.jsx)(un,{})}),(0,N.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Clear",onClick:()=>{n.textSearchState.setText(""),n.textSearchState.setResult(void 0)},children:(0,N.jsx)(_n,{})}),!s&&(0,N.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Collapse All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!1)))},children:(0,N.jsx)(Cn,{})}),s&&(0,N.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Expand All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!0)))},children:(0,N.jsx)(yn,{})})]})]}),(0,N.jsx)("div",{className:"text-search-panel__content__results",children:t.searchEntries.map((e=>(0,N.jsx)(NN,{searchResult:t,result:e},e.uuid)))})]})})),vN=(0,It.PA)((()=>{const e=_N(),t=(0,Gt.useRef)(null),n=e.textSearchState,i=(0,Gt.useMemo)((()=>(0,_s.A)((()=>n.search()),300)),[n]);return(0,Gt.useEffect)((()=>(t.current&&n.setSearchInput(t.current),()=>n.setSearchInput(void 0))),[n]),(0,Gt.useEffect)((()=>{e.panelGroupDisplayState.isOpen&&e.activePanelMode===Ug.SEARCH&&n.focus()}),[n,e.panelGroupDisplayState.isOpen,e.activePanelMode]),(0,N.jsxs)("div",{className:"text-search-panel",children:[(0,N.jsx)(qt,{isLoading:e.textSearchState.loadState.isInProgress}),(0,N.jsx)("div",{className:"text-search-panel__header",children:(0,N.jsxs)("div",{className:"text-search-panel__searcher__input__container",children:[(0,N.jsx)("input",{ref:t,autoFocus:!0,className:"text-search-panel__searcher__input input--dark",onChange:e=>{const t=e.target.value;n.setText(t),i.cancel(),t?i():n.setResult(void 0)},onKeyDown:e=>{"Enter"===e.code?(i.cancel(),n.text&&i()):"Escape"===e.code&&t.current?.select()},value:n.text,placeholder:"Search"}),(0,N.jsxs)("div",{className:"text-search-panel__searcher__input__actions",children:[(0,N.jsx)("button",{className:(0,Rt.$)("text-search-panel__searcher__input__action",{"text-search-panel__searcher__input__action--active":n.isCaseSensitive}),tabIndex:-1,title:"Match Case",onClick:()=>n.setCaseSensitive(!n.isCaseSensitive),children:(0,N.jsx)(Nn,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("text-search-panel__searcher__input__action",{"text-search-panel__searcher__input__action--active":n.isRegExp}),tabIndex:-1,title:"Use Regular Expression",onClick:()=>n.setRegExp(!n.isRegExp),children:(0,N.jsx)(En,{})})]})]})}),e.textSearchState.result&&(0,N.jsx)(bN,{searchResult:e.textSearchState.result})]})})),TN="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/tree/TreeView.tsx",CN=e=>{const{node:t,level:n,stepPaddingInRem:i,classPrefix:s,onNodeSelect:o}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__container",{[`${s}__tree-view__node__container`]:s}),onClick:()=>o?.(t),style:{paddingLeft:(n-1)*(i??1)+"rem",display:"flex"},children:[(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__icon",{[`${s}__tree-view__node__icon`]:s}),children:Boolean(t.childrenIds?.length)&&(t.isOpen?(0,Et.jsxDEV)(xi,{},void 0,!1,{fileName:TN,lineNumber:76,columnNumber:25},void 0):(0,Et.jsxDEV)(Oi,{},void 0,!1,{fileName:TN,lineNumber:76,columnNumber:47},void 0))},void 0,!1,{fileName:TN,lineNumber:70,columnNumber:7},void 0),(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__label",{[`${s}__tree-view__node__label`]:s}),children:t.label},void 0,!1,{fileName:TN,lineNumber:78,columnNumber:7},void 0)]},void 0,!0,{fileName:TN,lineNumber:57,columnNumber:11},void 0)},yN=e=>{const{node:t,level:n,onNodeSelect:i,getChildNodes:s,classPrefix:o,components:r,stepPaddingInRem:a,innerProps:c}=e,l={TreeNodeView:yN,TreeNodeContainer:CN},d=r?{...l,...r}:l;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__block",{[`${o}__tree-view__node__block`]:o}),children:[(0,Et.jsxDEV)(d.TreeNodeContainer,{node:t,level:n+1,stepPaddingInRem:a,classPrefix:o,onNodeSelect:i,innerProps:c},void 0,!1,{fileName:TN,lineNumber:141,columnNumber:7},void 0),t.isOpen&&s(t).map((e=>(0,Et.jsxDEV)(d.TreeNodeView,{node:e,level:n+1,components:r,classPrefix:o,onNodeSelect:i,getChildNodes:s,innerProps:c},e.id,!1,{fileName:TN,lineNumber:150,columnNumber:49},void 0)))]},void 0,!0,{fileName:TN,lineNumber:134,columnNumber:11},void 0)},SN=e=>{const{treeData:t,className:n,classPrefix:i,components:s,onNodeSelect:o,getChildNodes:r,getRootNodes:a,innerProps:c}=e,l=a?.(t)??t.rootIds.map((e=>t.nodes.get(e))).filter(B),d={TreeNodeView:yN,TreeNodeContainer:CN},u=s?{...d,...s}:d;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__root",n??"",{[`${i}__tree-view__node__root`]:i}),children:l.map((e=>(0,Et.jsxDEV)(u.TreeNodeView,{level:0,node:e,getChildNodes:r,components:u,onNodeSelect:o,classPrefix:i,innerProps:c},e.id,!1,{fileName:TN,lineNumber:211,columnNumber:33},void 0)))},void 0,!1,{fileName:TN,lineNumber:205,columnNumber:11},void 0)},AN="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/Panel.tsx",IN=kt("Panel","panel"),xN=(kt("PanelFullContent","panel__content--full"),e=>{const{title:t,keepTitleFormat:n,labelClassName:i,darkMode:s,className:o,children:r}=e,a=Boolean(s),c=Boolean(n);return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__header",o),children:[t&&(0,Et.jsxDEV)("div",{className:"panel__header__title",children:(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__header__title__label",i,{"panel__header__title__label--light":a}),children:c?t:t.toLowerCase()},void 0,!1,{fileName:AN,lineNumber:52,columnNumber:11},void 0)},void 0,!1,{fileName:AN,lineNumber:50,columnNumber:18},void 0),r]},void 0,!0,{fileName:AN,lineNumber:48,columnNumber:11},void 0)}),wN=kt("PanelHeaderActions","panel__header__actions"),ON=e=>{const{className:t,onClick:n,children:i,disabled:s,title:o}=e;return(0,Et.jsxDEV)("button",{className:(0,Rt.$)("panel__header__action",t),disabled:Boolean(s),onClick:n,title:o,tabIndex:-1,children:i},void 0,!1,{fileName:AN,lineNumber:106,columnNumber:11},void 0)},RN=e=>{const{className:t,darkMode:n,children:i}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__content",t,{"panel__content--dark":n}),children:i},void 0,!1,{fileName:AN,lineNumber:155,columnNumber:11},void 0)},kN=(kt("PanelContentLists","panel__content__lists"),kt("PanelList","panel__content__form__list"),kt("PanelListItem","panel__content__form__list__item"),kt("PanelListItemTitle","panel__content__form__list__item__title"),kt("PanelListItemLabel","panel__content__form__list__item__label"),kt("PanelForm","panel__content__form"),kt("PanelDivider","panel__content__form__divider")),PN=(kt("PanelFormDescription","panel__content__form__description"),kt("PanelFormSection","panel__content__form__section"));(0,Gt.forwardRef)((function(e,t){const{name:n,value:i,update:s,prompt:o,errorMessageClassName:r,placeholder:a,validate:c,onValidate:l,onBlur:d,isReadOnly:u,className:p,darkMode:h,fullWidth:m,inputType:g}=e,[f,_]=(0,Gt.useState)(i??""),E=c?.(f)??void 0;return(0,Gt.useEffect)((()=>{E||i===f||s(f),l?.(E)}),[i,f,E,l,s]),(0,Et.jsxDEV)(PN,{children:[n&&(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__label",children:dt(n)},void 0,!1,{fileName:AN,lineNumber:262,columnNumber:17},this),o&&(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__prompt",children:o},void 0,!1,{fileName:AN,lineNumber:267,columnNumber:19},this),(0,Et.jsxDEV)("div",{className:"input-group",children:[(0,Et.jsxDEV)("input",{className:(0,Rt.$)("input input-group__input panel__content__form__section__input",p,{"input--dark":h||!0},{"input--small":!m}),ref:t,type:g||"text",spellCheck:!1,disabled:u,placeholder:a,value:f,onChange:e=>{_(e.target.value)},onBlur:d},void 0,!1,{fileName:AN,lineNumber:273,columnNumber:9},this),E&&(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__content__form__section__input-group__error-message input-group__error-message",{"input--small":!m},r),children:E},void 0,!1,{fileName:AN,lineNumber:289,columnNumber:37},this)]},void 0,!0,{fileName:AN,lineNumber:272,columnNumber:7},this)]},void 0,!0,{fileName:AN,lineNumber:260,columnNumber:11},this)})),(0,Gt.forwardRef)((function(e,t){const{name:n,value:i,update:s,prompt:o,placeholder:r,isReadOnly:a,errorMessage:c,className:l,darkMode:d,fullWidth:u,inputType:p}=e,h=i??"";return(0,Et.jsxDEV)(PN,{children:[(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__label",children:dt(n)},void 0,!1,{fileName:AN,lineNumber:344,columnNumber:7},this),(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__prompt",children:o},void 0,!1,{fileName:AN,lineNumber:347,columnNumber:7},this),(0,Et.jsxDEV)("div",{className:"input-group",children:[(0,Et.jsxDEV)("input",{className:(0,Rt.$)("input input-group__input panel__content__form__section__input",l,{"input--dark":d||!0},{"input--small":!u}),ref:t,type:p||"text",spellCheck:!1,disabled:a,placeholder:r,value:h,onChange:e=>{const t=e.target.value;s(t||void 0)}},void 0,!1,{fileName:AN,lineNumber:351,columnNumber:9},this),c&&(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__content__form__section__input-group__error-message input-group__error-message",{"input--small":!u}),children:c},void 0,!1,{fileName:AN,lineNumber:366,columnNumber:27},this)]},void 0,!0,{fileName:AN,lineNumber:350,columnNumber:7},this),c&&(0,Et.jsxDEV)(kN,{},void 0,!1,{fileName:AN,lineNumber:377,columnNumber:23},this)]},void 0,!0,{fileName:AN,lineNumber:342,columnNumber:11},this)})),(0,It.PA)((e=>{const{value:t,name:n,prompt:i,children:s,isReadOnly:o,update:r}=e;return(0,Et.jsxDEV)(PN,{children:[n&&(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__label",children:dt(n)},void 0,!1,{fileName:AN,lineNumber:404,columnNumber:19},void 0),(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__content__form__section__toggler",{"panel__content__form__section__toggler--disabled":o}),onClick:()=>{o||r(!t)},children:[(0,Et.jsxDEV)("button",{type:"button",className:(0,Rt.$)("panel__content__form__section__toggler__btn",{"panel__content__form__section__toggler__btn--toggled":t}),disabled:o,tabIndex:-1,children:t?(0,Et.jsxDEV)(Yn,{},void 0,!1,{fileName:AN,lineNumber:423,columnNumber:21},void 0):(0,Et.jsxDEV)($n,{},void 0,!1,{fileName:AN,lineNumber:423,columnNumber:43},void 0)},void 0,!1,{fileName:AN,lineNumber:415,columnNumber:11},void 0),(0,Et.jsxDEV)("div",{className:"panel__content__form__section__toggler__prompt",children:[i," ",s]},void 0,!0,{fileName:AN,lineNumber:425,columnNumber:11},void 0)]},void 0,!0,{fileName:AN,lineNumber:409,columnNumber:9},void 0)]},void 0,!0,{fileName:AN,lineNumber:402,columnNumber:13},void 0)})),kt("PanelFormActions","panel__content__form__actions");var LN=n(8850);const MN=LN.u$,DN="resizable-panel--collapsed",FN=(e,t)=>({collapsiblePanel:{className:(0,Rt.$)(...t?.classes??[],{[DN]:e}),onStartResize:e=>{e.domElement.classList.remove(DN),t?.onStartResize?.(e)},onStopResize:e=>{const n=Number(e.domElement.style.flexGrow);n<=.01?e.domElement.style.flexGrow="0":n>=.99&&(e.domElement.style.flexGrow="1"),t?.onStopResize?.(e)},size:!e&&t?.size?t.size:0,flex:e?0:void 0},remainingPanel:{flex:e?1:void 0}}),BN=LN.LT,jN=LN.kT,VN=e=>(0,Et.jsxDEV)("div",{className:"resizable-panel__splitter-line",style:{background:e.color}},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/ResizablePanel.tsx",lineNumber:136,columnNumber:7},void 0);var HN=n(6481);const GN=(0,It.PA)((e=>{const{node:t,level:n,stepPaddingInRem:i,onNodeSelect:s,innerProps:o}=e,{testRunnerState:r,onNodeOpen:a,onNodeExpand:c,onNodeCompress:l,renderNodeLabel:d}=o,u=_N(),p=$t(),h=r.testResultInfo,m=!t.data.type,g=t.id===r.selectedTestId;let f;switch(h?((e,t)=>{const n=e.id;return Boolean(e.data.type)?((e,t)=>t.passedTests.has(e)?N_.PASSED:t.failedTests.has(e)?N_.FAILED:t.testsWithError.has(e)?N_.ERROR:N_.RUNNING)(n,t):t.failedTestIds.some((e=>e.startsWith(`${n}_`)))||t.testWithErrorIds.some((e=>e.startsWith(`${n}_`)))?N_.FAILED:t.notRunTestIds.some((e=>e.startsWith(`${n}_`)))?N_.RUNNING:N_.PASSED})(t,h):void 0){case N_.PASSED:f=(0,N.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--passed",children:(0,N.jsx)(si,{})});break;case N_.FAILED:f=(0,N.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--failed",children:(0,N.jsx)(gi,{})});break;case N_.ERROR:f=(0,N.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--error",children:(0,N.jsx)(Vn,{})});break;case N_.RUNNING:f=(0,N.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--running",children:(0,N.jsx)(ai,{})});break;default:f=(0,N.jsx)(zn,{})}const _=()=>{t.isOpen?l(t):c(t)};return(0,N.jsxs)("div",{className:(0,Rt.$)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected":g}),onClick:e=>{e.stopPropagation(),e.preventDefault(),s?.(t),m?_():a(t)},onDoubleClick:()=>{m?_():(0,ke.gP)(u.loadFile(t.data.li_attr.file,new Tf(t.data.li_attr.file,Number.parseInt(t.data.li_attr.line,10),Number.parseInt(t.data.li_attr.column,10)))).catch(p.alertUnhandledError)},style:{paddingLeft:n*(i??1)+"rem",display:"flex"},children:[(0,N.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:e=>{e.stopPropagation(),_()},children:m?t.isOpen?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{}):(0,N.jsx)("div",{})}),(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__type",children:f})]}),(0,N.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:d?.(t)??t.label})]})})),UN=(0,It.PA)((e=>{const{testRunnerState:t}=e,n=t.getTreeData(),i=e=>t.setSelectedTestId(e.id),s=e=>{let t=e.id.split("__")[0];if(!t)return e.label;const n=t.split("_");return t=n.slice(1,n.length).join(Po),(0,N.jsxs)("div",{className:"test-runner-list__item__label",children:[(0,N.jsx)("div",{className:"test-runner-list__item__label__name",children:e.label}),(0,N.jsx)("div",{className:"test-runner-list__item__label__path",children:t})]})};return(0,N.jsx)("div",{className:"explorer__content",children:Array.from(t.allTests.keys()).map((e=>n.nodes.get(e))).filter(B).map((e=>(0,N.jsx)(GN,{node:e,level:0,onNodeSelect:()=>{},innerProps:{testRunnerState:t,onNodeOpen:i,renderNodeLabel:s,onNodeExpand:()=>{},onNodeCompress:()=>{}}},e.id)))})})),$N=(0,It.PA)((e=>{const{testRunnerState:t}=e,n=t.getTreeData(),i=0===n.nodes.size;return(0,N.jsxs)("div",{className:"explorer__content",children:[i&&(0,N.jsx)(as,{children:"No tests found"}),!i&&(0,N.jsx)(SN,{components:{TreeNodeContainer:GN},treeData:n,onNodeSelect:()=>{},getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>n.nodes.get(e))).filter(B),innerProps:{testRunnerState:t,onNodeOpen:e=>t.setSelectedTestId(e.id),onNodeExpand:e=>{e.isOpen=!0,t.refreshTree()},onNodeCompress:e=>{e.isOpen=!1,t.refreshTree()}}})]})})),YN=/(?<path>resource:(?<path_sourceId>\/?(?:\w+\/)*\w+(?:\.\w+)*) (?:line:(?<path_line>\d+)) (?:column:(?<path_column>\d+)))/g,WN=e=>{const{wrapText:t,result:n}=e,i=_N(),s=$t(),[o,r]=(0,Gt.useState)(),a=(0,Gt.useRef)(void 0),c=(0,Gt.useRef)(null);return(0,Gt.useEffect)((()=>{if(!o&&c.current){const e=c.current,t=Yg.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,extraEditorClassName:"monaco-editor--small-font",readOnly:!0,glyphMargin:!1,folding:!1,lineNumbers:"off",lineDecorationsWidth:10,lineNumbersMinChars:0,minimap:{enabled:!1},guides:{bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveBracketPair:!1,indentation:!1,highlightActiveIndentation:!1},renderLineHighlight:"none",theme:tf.DEFAULT_DARK,language:hf.TEXT});r(t)}}),[s,o]),o&&(a.current?.dispose(),a.current=Yg.languages.registerLinkProvider(hf.TEXT,{provideLinks:e=>{const t=[];for(let n=1;n<=e.getLineCount();++n)Array.from(e.getLineContent(n).matchAll(YN)).forEach((e=>{e.groups?.path&&e.groups.path_sourceId&&e.groups.path_column&&e.groups.path_line&&t.push({range:{startLineNumber:n,startColumn:e.index+1,endLineNumber:n,endColumn:e.index+1+e.groups.path.length},tooltip:"Click to go to location",sourceId:e.groups.path_sourceId,line:e.groups.path_line,column:e.groups.path_column})}));return{links:t}},resolveLink:e=>{const t=e;(0,ke.gP)(i.loadFile(t.sourceId,new Tf(t.sourceId,Number.parseInt(t.line,10),Number.parseInt(t.column,10)))).catch(i.applicationStore.alertUnhandledError)}})),(0,Gt.useEffect)((()=>{if(o){const e=n instanceof v_?"Test passed!":n instanceof C_?n.error.text:"Running...";o.setValue(e),(n instanceof v_||n instanceof C_)&&o.createDecorationsCollection([{range:{startLineNumber:1,startColumn:1,endLineNumber:Number.MAX_SAFE_INTEGER,endColumn:Number.MAX_SAFE_INTEGER},options:{inlineClassName:n instanceof v_?"test-runner-panel__result__content--success":"test-runner-panel__result__content--failure"}}])}}),[o,n]),(0,Gt.useEffect)((()=>{o&&o.updateOptions({wordWrap:t?"on":"off"})}),[o,t]),(0,Gt.useEffect)((()=>()=>{o&&((e=>{e.dispose(),e.getModel()?.dispose()})(o),a.current?.dispose())}),[o]),(0,N.jsx)("div",{className:"code-editor__container",children:(0,N.jsx)("div",{className:"code-editor__body",ref:c})})},zN=(0,It.PA)((e=>{const{testRunnerState:t,selectedTestId:n,testResultInfo:i}=e,s=_N(),o=$t(),[r,a]=(0,Gt.useState)(!1),c=i.results.get(n),l=V(t.allTests.get(n),`Can't find info for test with ID '${n}'`);return(0,N.jsxs)(IN,{children:[(0,N.jsx)(xN,{title:l.text,children:(0,N.jsxs)(wN,{children:[(0,N.jsx)(ON,{className:(0,Rt.$)({"panel__header__action--active":r}),onClick:()=>a(!r),title:"Toggle Text Wrap",children:(0,N.jsx)(gn,{className:"test-runner-panel__result__header__icon--text-wrap"})}),(0,N.jsx)(ON,{title:"Open File",onClick:()=>{(0,ke.gP)(s.loadFile(l.li_attr.file,new Tf(l.li_attr.file,Number.parseInt(l.li_attr.line,10),Number.parseInt(l.li_attr.column,10)))).catch(o.alertUnhandledError)},children:(0,N.jsx)(fn,{})})]})}),(0,N.jsx)(RN,{className:"test-runner-panel__result",children:(0,N.jsx)(WN,{result:c,wrapText:r})})]})})),KN=(0,It.PA)((e=>{const{testRunnerState:t}=e,n=_N(),i=$t(),s=t.testExecutionResult.count,o=t.testResultInfo,r=o?.suiteStatus??E_.NONE,a=o?.runPercentage??0;return(0,N.jsx)("div",{className:"test-runner-panel__content",children:(0,N.jsxs)(MN,{orientation:"vertical",children:[(0,N.jsx)(BN,{minSize:400,children:(0,N.jsxs)("div",{className:"panel test-runner-panel__explorer",children:[(0,N.jsx)(qt,{isLoading:t.treeBuildingState.isInProgress}),(0,N.jsxs)("div",{className:"panel__header",children:[(0,N.jsx)("div",{className:"panel__header__title",children:(0,N.jsxs)("div",{className:"panel__header__title__content test-runner-panel__explorer__report",children:[(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview",children:[(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--total",children:[s," total"]}),(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--passed",children:[o?.passed??0," ",(0,N.jsx)(si,{})]}),(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--failed",children:[o?.failed??0," ",(0,N.jsx)(gi,{})]}),(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--error",children:[o?.error??0," ",(0,N.jsx)(Vn,{})]})]}),o&&(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__time",children:[o.time,"ms"]})]})}),(0,N.jsxs)("div",{className:"panel__header__actions",children:[(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>t.setViewAsList(!t.viewAsList),title:t.viewAsList?"View As Tree":"View As List",children:t.viewAsList?(0,N.jsx)(pn,{className:"test-runner-panel__icon--tree-view"}):(0,N.jsx)(hn,{className:"test-runner-panel__icon--list-view"})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>t.expandTree(),title:"Expand All",children:(0,N.jsx)(ci,{})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>t.collapseTree(),title:"Collapse All",children:(0,N.jsx)(Xn,{})}),(0,N.jsx)("button",{className:"panel__header__action",tabIndex:-1,disabled:!n.testRunState.isInProgress,onClick:()=>{(0,ke.gP)(t.cancelTestRun()).catch(i.alertUnhandledError)},title:"Stop",children:(0,N.jsx)(fi,{})}),(0,N.jsx)("button",{className:"panel__header__action",tabIndex:-1,onClick:()=>{(0,ke.gP)(t.rerunTestSuite()).catch(i.alertUnhandledError)},disabled:n.testRunState.isInProgress,title:"Run Suite",children:(0,N.jsx)(Jn,{})}),(0,N.jsx)("button",{className:"panel__header__action",tabIndex:-1,onClick:()=>{(0,ke.gP)(t.cancelTestRun()).catch(i.alertUnhandledError).finally((()=>{n.setTestRunnerState(void 0)}))},title:"Reset",children:(0,N.jsx)(jn,{})})]})]}),(0,N.jsx)("div",{className:"test-runner-panel__header__status",children:(0,N.jsx)(HN.A,{className:`test-runner-panel__progress-bar test-runner-panel__progress-bar--${r.toLowerCase()}`,classes:{bar:`test-runner-panel__progress-bar__bar test-runner-panel__progress-bar__bar--${r.toLowerCase()}`},variant:"determinate",value:a})}),(0,N.jsx)("div",{className:"panel__content",children:t.treeData&&(0,N.jsxs)(N.Fragment,{children:[!t.viewAsList&&(0,N.jsx)($N,{testRunnerState:t}),t.viewAsList&&(0,N.jsx)(UN,{testRunnerState:t})]})})]})}),(0,N.jsx)(jN,{children:(0,N.jsx)(VN,{color:n.panelGroupDisplayState.isMaximized?"transparent":"var(--color-dark-grey-250)"})}),(0,N.jsxs)(BN,{minSize:400,children:[t.selectedTestId&&!o&&(0,N.jsx)("div",{}),t.selectedTestId&&o&&(0,N.jsx)(zN,{testRunnerState:t,selectedTestId:t.selectedTestId,testResultInfo:o}),!t.selectedTestId&&(0,N.jsxs)("div",{className:"panel",children:[(0,N.jsx)("div",{className:"panel__header"}),(0,N.jsx)("div",{className:"panel__content",children:(0,N.jsx)(as,{children:"No test selected"})})]}),(0,N.jsx)("div",{})]})]})})})),XN=(0,It.PA)((()=>{const e=_N().testRunnerState;return(0,N.jsxs)("div",{className:"test-runner-panel",children:[!e&&(0,N.jsx)(as,{children:(0,N.jsx)("div",{className:"panel-group__splash-screen",children:(0,N.jsxs)("div",{className:"panel-group__splash-screen__content",children:[(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Run full test suite"}),(0,N.jsx)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:(0,N.jsx)("div",{className:"hotkey__key",children:"F10"})})]}),(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Run relevant tests only"}),(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:[(0,N.jsx)("div",{className:"hotkey__key",children:"Shift"}),(0,N.jsx)("div",{className:"hotkey__plus",children:(0,N.jsx)(Hn,{})}),(0,N.jsx)("div",{className:"hotkey__key",children:"F10"})]})]})]})})}),e&&(0,N.jsx)(KN,{testRunnerState:e})]})})),qN=(0,It.PA)((e=>{const{candidate:t}=e,n=_N(),i=$t(),s=()=>{(0,ke.gP)(n.loadFile(t.sourceID,new Tf(t.sourceID,t.line,t.column))).catch(i.alertUnhandledError)};return(0,N.jsxs)("div",{className:"suggestions-panel__entry__content__item",children:[(0,N.jsxs)("div",{className:"suggestions-panel__entry__content__item__label__candidate",title:"Go to Result",onClick:s,children:[(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-name",children:t.foundName}),(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-location",children:`${bf(t.sourceID)} [${t.line}:${t.column}]`})]}),(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__actions",children:(0,N.jsx)("button",{className:"suggestions-panel__entry__content__item__action",tabIndex:-1,title:"Go to Result",onClick:s,children:(0,N.jsx)(Zn,{})})})]})})),JN=(0,It.PA)((e=>{const{candidate:t}=e,n=_N(),i=$t();return(0,N.jsxs)("div",{className:"suggestions-panel__entry__content__item",children:[(0,N.jsxs)("div",{className:"suggestions-panel__entry__content__item__label__candidate",title:"Add Suggested Import",onClick:()=>{(0,ke.gP)(n.updateFileUsingSuggestionCandidate(t)).catch(i.alertUnhandledError)},children:[(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-name",children:t.foundName}),(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-location",children:`${bf(t.sourceID)} [${t.line}:${t.column}]`})]}),(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__actions",children:(0,N.jsx)("button",{className:"suggestions-panel__entry__content__item__action",tabIndex:-1,title:"Go to Result",onClick:()=>{(0,ke.gP)(n.loadFile(t.sourceID,new Tf(t.sourceID,t.line,t.column))).catch(i.alertUnhandledError)},children:(0,N.jsx)(Zn,{})})})]})})),ZN=(0,It.PA)((e=>{const{suggestionState:t}=e,n=t.result;return(0,N.jsxs)("div",{className:"suggestions-panel__content",children:[!n.candidatesWithPackageImported.length&&(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`No functions, in packages already imported, match the function '${n.candidateName}'`}),Boolean(n.candidatesWithPackageImported.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`These functions, in packages already imported, would match the function '${n.candidateName}' if you changed the parameters`}),(0,N.jsx)("div",{className:"suggestions-panel__entry",children:n.candidatesWithPackageImported.map((e=>(0,N.jsx)(qN,{candidate:e},e.uuid)))})]}),!n.candidatesWithPackageNotImported.length&&(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`No functions, in packages not imported, match the function '${n.candidateName}'`}),Boolean(n.candidatesWithPackageNotImported.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`These functions, in packages not imported, match the function '${n.candidateName}'. Click on result to import the necessary package`}),(0,N.jsx)("div",{className:"suggestions-panel__entry",children:n.candidatesWithPackageNotImported.map((e=>(0,N.jsx)(JN,{candidate:e},e.uuid)))})]})]})})),QN=(0,It.PA)((e=>{const{suggestionState:t}=e,n=t.result;return(0,N.jsxs)("div",{className:"suggestions-panel__content",children:[!n.candidates.length&&(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`No possible matches found for '${n.candidateName}'`}),Boolean(n.candidates.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`Found possible matches for '${n.candidateName}'. Click on result to import the necessary package`}),(0,N.jsx)("div",{className:"suggestions-panel__entry",children:n.candidates.map((e=>(0,N.jsx)(JN,{candidate:e},e.uuid)))})]})]})})),eb=(0,It.PA)((()=>{const e=_N();return(0,N.jsxs)("div",{className:"suggestions-panel",children:[e.codeFixSuggestion instanceof lN&&(0,N.jsx)(ZN,{suggestionState:e.codeFixSuggestion}),e.codeFixSuggestion instanceof dN&&(0,N.jsx)(QN,{suggestionState:e.codeFixSuggestion})]})})),tb=(0,It.PA)((e=>{const{referenceUsageResult:t,result:n}=e,i=_N(),s=$t(),o=e=>()=>(0,ke.gP)(i.loadFile(n.sourceId,new Tf(n.sourceId,e.startLine,e.startColumn))).catch(s.alertUnhandledError),r=e=>()=>{n.dismissCoordinate(e),n.coordinates.length||t.dismissSearchEntry(n)};return(0,N.jsxs)("div",{className:"references-panel__entry",children:[(0,N.jsxs)("div",{className:"references-panel__entry__header",onClick:()=>n.setIsExpanded(!n.isExpanded),children:[(0,N.jsxs)("div",{className:"references-panel__entry__header__title",children:[(0,N.jsx)("div",{className:"references-panel__entry__header__title__expander",children:n.isExpanded?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{})}),(0,N.jsx)("div",{className:"references-panel__entry__header__title__label",children:(0,N.jsx)(Ni,{})}),(0,N.jsx)("div",{className:"references-panel__entry__header__title__content",children:bf(n.sourceId)})]}),(0,N.jsxs)("div",{className:"references-panel__entry__header__actions",children:[(0,N.jsx)("div",{className:"references-panel__entry__header__action references-panel__entry__header__action--with-counter",children:(0,N.jsx)("div",{className:"references-panel__entry__header__action__counter",children:n.coordinates.length})}),(0,N.jsx)("button",{className:"references-panel__entry__header__action references-panel__entry__header__action--hidden",tabIndex:-1,title:"Dismiss",onClick:()=>t.dismissSearchEntry(n),children:(0,N.jsx)(jn,{})})]})]}),n.isExpanded&&(0,N.jsx)("div",{className:"references-panel__entry__content",children:n.coordinates.map((e=>(0,N.jsxs)("div",{className:"references-panel__entry__content__item",children:[(0,N.jsxs)("div",{className:"references-panel__entry__content__item__label references-panel__entry__content__item__label--full",title:e.preview?`${e.preview.before}${e.preview.found.replaceAll(/\n/g,"↵")}${e.preview.after}`:"Go To Result",onClick:o(e),children:[e.preview&&(0,N.jsxs)("div",{className:"references-panel__entry__content__item__label__content",children:[(0,N.jsx)("div",{className:"references-panel__entry__content__item__label__coordinates",children:`[${e.startLine}:${e.startColumn}]`}),(0,N.jsxs)("div",{className:"references-panel__entry__content__item__label__preview",children:[(0,N.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text",children:e.preview.before}),(0,N.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text references-panel__entry__content__item__label__preview__text--found",children:e.preview.found.replaceAll(/\n/g,"↵")}),(0,N.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text",children:e.preview.after})]})]}),!e.preview&&(0,N.jsx)(N.Fragment,{children:`line: ${e.startLine} - column: ${e.startColumn}`})]}),(0,N.jsx)("div",{className:"references-panel__entry__content__item__actions",children:(0,N.jsx)("button",{className:"references-panel__entry__content__item__action references-panel__entry__content__item__action--hidden",tabIndex:-1,title:"Dismiss",onClick:r(e),children:(0,N.jsx)(jn,{})})})]},e.uuid)))})]})})),nb=(0,It.PA)((e=>{const{referenceUsageState:t}=e,n=_N(),i=$t(),s=t.searchEntries.some((e=>!e.isExpanded));return(0,N.jsxs)("div",{className:"references-panel__content",children:[(0,N.jsxs)("div",{className:"references-panel__content__header",children:[(0,N.jsx)("div",{className:"references-panel__content__header__title",children:t.searchEntries.length?`${t.numberOfResults} usages(s) in ${t.numberOfFiles} files for ${Sf(t.usageConcept)}`:`No usages found for ${Sf(t.usageConcept)}`}),(0,N.jsxs)("div",{className:"references-panel__content__header__actions",children:[(0,N.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Refresh",onClick:()=>{(0,ke.gP)(n.findUsages(t.usageConcept)).catch(i.alertUnhandledError)},children:(0,N.jsx)(un,{})}),(0,N.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Clear",onClick:()=>n.setReferenceUsageResult(void 0),children:(0,N.jsx)(_n,{})}),!s&&(0,N.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Collapse All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!1)))},children:(0,N.jsx)(Cn,{})}),s&&(0,N.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Expand All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!0)))},children:(0,N.jsx)(yn,{})})]})]}),(0,N.jsx)("div",{className:"references-panel__content__results",children:t.searchEntries.map((e=>(0,N.jsx)(tb,{referenceUsageResult:t,result:e},e.uuid)))})]})})),ib=(0,It.PA)((()=>{const e=_N();return(0,N.jsxs)("div",{className:"references-panel",children:[(0,N.jsx)(qt,{isLoading:e.referenceUsageLoadState.isInProgress}),!e.referenceUsageResult&&(0,N.jsx)(as,{children:(0,N.jsx)("div",{className:"panel-group__splash-screen",children:(0,N.jsx)("div",{className:"panel-group__splash-screen__content",children:(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Find Concept References"}),(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:[(0,N.jsx)("div",{className:"hotkey__key",children:"Alt"}),(0,N.jsx)("div",{className:"hotkey__plus",children:(0,N.jsx)(Hn,{})}),(0,N.jsx)("div",{className:"hotkey__key",children:"F7"})]})]})})})}),e.referenceUsageResult&&(0,N.jsx)(nb,{referenceUsageState:e.referenceUsageResult})]})})),sb=(0,It.PA)((()=>{const e=_N(),t={[Ug.TERMINAL]:{mode:Ug.TERMINAL,name:"TERMINAL",icon:(0,N.jsx)(pi,{className:"panel-group__header__tab__icon--terminal"}),isVisible:!0},[Ug.SEARCH]:{mode:Ug.SEARCH,name:"SEARCH",icon:(0,N.jsx)(ei,{className:"panel-group__header__tab__icon--search"}),isVisible:!0},[Ug.TEST_RUNNER]:{mode:Ug.TEST_RUNNER,name:"TEST",icon:(0,N.jsx)(Mn,{className:"panel-group__header__tab__icon--test"}),isVisible:!0},[Ug.REFERENCES]:{mode:Ug.REFERENCES,name:"REFERENCES",icon:(0,N.jsx)(vn,{className:"panel-group__header__tab__icon--references"}),isVisible:!0},[Ug.CODE_FIX_SUGGESTION]:{mode:Ug.CODE_FIX_SUGGESTION,name:"SUGGESTIONS",icon:(0,N.jsx)(Tn,{className:"panel-group__header__tab__icon--suggestion"}),isVisible:Boolean(e.codeFixSuggestion)}},n=Object.values(Ug).filter((e=>B(t[e])&&t[e].isVisible)),i=t=>e.activePanelMode===t&&n.includes(t);return(0,Gt.useEffect)((()=>{n.includes(e.activePanelMode)||e.setActivePanelMode(Ug.TERMINAL)}),[e,n,e.activePanelMode]),(0,N.jsxs)(IN,{className:"panel-group",children:[(0,N.jsxs)(xN,{children:[(0,N.jsx)("div",{className:"panel-group__header__tabs",children:n.map((e=>t[e])).filter(B).map((t=>{return(0,N.jsxs)("button",{tabIndex:-1,className:(0,Rt.$)("panel-group__header__tab",{"panel-group__header__tab--active":e.activePanelMode===t.mode}),onClick:(n=t.mode,()=>e.setActivePanelMode(n)),children:[(0,N.jsx)("div",{className:"panel-group__header__tab__icon",children:t.icon}),(0,N.jsx)("div",{className:"panel-group__header__tab__title",children:t.name})]},t.mode);var n}))}),(0,N.jsxs)("div",{className:"panel-group__header__actions",children:[(0,N.jsx)("button",{className:"panel-group__header__action",onClick:()=>e.panelGroupDisplayState.toggleMaximize(),tabIndex:-1,title:"Toggle Expand/Collapse",children:e.panelGroupDisplayState.isMaximized?(0,N.jsx)(xi,{}):(0,N.jsx)(wi,{})}),(0,N.jsx)("button",{className:"panel-group__header__action",onClick:()=>e.panelGroupDisplayState.toggle(),tabIndex:-1,title:"Close",children:(0,N.jsx)(Ri,{})})]})]}),(0,N.jsxs)(RN,{children:[i(Ug.TERMINAL)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(EN,{})}),i(Ug.SEARCH)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(vN,{})}),i(Ug.TEST_RUNNER)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(XN,{})}),i(Ug.CODE_FIX_SUGGESTION)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(eb,{})}),i(Ug.REFERENCES)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(ib,{})})]})]})}));var ob=n(255);const rb="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/icon/TypeIcon.tsx",ab=()=>(0,Et.jsxDEV)("div",{className:"icon color--package",children:(0,Et.jsxDEV)(Pi,{},void 0,!1,{fileName:rb,lineNumber:41,columnNumber:5},void 0)},void 0,!1,{fileName:rb,lineNumber:39,columnNumber:50},void 0),cb=()=>(0,Et.jsxDEV)("div",{className:"icon color--class",children:"C"},void 0,!1,{fileName:rb,lineNumber:45,columnNumber:48},void 0),lb=()=>(0,Et.jsxDEV)("div",{className:"icon color--enumeration",children:"E"},void 0,!1,{fileName:rb,lineNumber:57,columnNumber:54},void 0),db=()=>(0,Et.jsxDEV)("div",{className:"icon color--measure",children:"M"},void 0,!1,{fileName:rb,lineNumber:61,columnNumber:50},void 0),ub=()=>(0,Et.jsxDEV)("div",{className:"icon color--unit",children:"u"},void 0,!1,{fileName:rb,lineNumber:65,columnNumber:47},void 0),pb=()=>(0,Et.jsxDEV)("div",{className:"icon color--profile",children:"P"},void 0,!1,{fileName:rb,lineNumber:69,columnNumber:50},void 0),hb=()=>(0,Et.jsxDEV)("div",{className:"icon icon--function color--function",children:(0,Et.jsxDEV)(dn,{},void 0,!1,{fileName:rb,lineNumber:75,columnNumber:5},void 0)},void 0,!1,{fileName:rb,lineNumber:73,columnNumber:51},void 0),mb=()=>(0,Et.jsxDEV)("div",{className:"icon color--mapping",children:(0,Et.jsxDEV)(qn,{},void 0,!1,{fileName:rb,lineNumber:109,columnNumber:5},void 0)},void 0,!1,{fileName:rb,lineNumber:107,columnNumber:50},void 0),gb=()=>(0,Et.jsxDEV)("div",{className:"icon icon--unknown",children:(0,Et.jsxDEV)(Ln,{},void 0,!1,{fileName:rb,lineNumber:161,columnNumber:5},void 0)},void 0,!1,{fileName:rb,lineNumber:159,columnNumber:61},void 0),fb=()=>(0,N.jsx)("div",{className:"icon icon--function color--native-function",children:(0,N.jsx)(dn,{})}),_b=()=>(0,N.jsx)("div",{className:"icon icon--property color--property",children:(0,N.jsx)(ki,{})}),Eb=()=>(0,N.jsx)("div",{className:"icon color--diagram",children:(0,N.jsx)(Qn,{})}),Nb=()=>(0,N.jsx)("div",{className:"icon icon--database",children:(0,N.jsx)(Si,{})}),bb=()=>(0,N.jsx)("div",{className:"icon color--association color--pure-association",children:"A"}),vb=e=>{switch(e){case mf.PACKAGE:return(0,N.jsx)(ab,{});case mf.PROFILE:return(0,N.jsx)(pb,{});case mf.CLASS:return(0,N.jsx)(cb,{});case mf.ASSOCIATION:return(0,N.jsx)(bb,{});case mf.PROPERTY:case mf.QUALIFIED_PROPERTY:return(0,N.jsx)(_b,{});case mf.ENUMERATION:return(0,N.jsx)(lb,{});case mf.MEASURE:return(0,N.jsx)(db,{});case mf.UNIT:return(0,N.jsx)(ub,{});case mf.FUNCTION:return(0,N.jsx)(hb,{});case mf.NATIVE_FUNCTION:return(0,N.jsx)(fb,{});case mf.DIAGRAM:return(0,N.jsx)(Eb,{});case mf.DATABASE:return(0,N.jsx)(Nb,{});case mf.MAPPING:return(0,N.jsx)(mb,{});default:return(0,N.jsx)(gb,{})}},Tb=/^\w[\w$]*$/,Cb=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,yb=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),s=t.data.li_attr.pureName??t.data.li_attr.pureId,o=t.data.li_attr.pureType===mf.PACKAGE,[r,a]=(0,Gt.useState)(o?mm(s):s),c=(0,Gt.useRef)(null),l=Boolean(r.match(o?Cb:Tb)),d=(o?mm(s):s)===r,u=l?void 0:"Invalid path",p=()=>n.conceptTreeState.setNodeForRenameConcept(void 0),h=e=>{e.preventDefault(),d||n.conceptTreeState.renameConcept(t,r).catch(i.alertUnhandledError).finally((()=>p()))};return(0,N.jsx)(Ot.A,{open:!0,onClose:p,TransitionProps:{onEnter:()=>c.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Rename concept"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:h,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:c,className:"input input--dark",onChange:e=>a(e.target.value),value:r,spellCheck:!1}),u&&(0,N.jsx)("div",{className:"input-group__error-message",children:u})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(u),onClick:h,children:"Rename"})]})]})})})),Sb=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,Ab=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),s=gm(t.data.li_attr.pureId)??"",[o,r]=(0,Gt.useState)(s),a=(0,Gt.useRef)(null),c=Boolean(o.match(Sb)),l=s===o,d=c?void 0:"Invalid path",u=()=>n.conceptTreeState.setNodeForMoveElement(void 0),p=e=>{e.preventDefault(),l||n.conceptTreeState.movePackageableElements([$(t.data.li_attr,Ef)],o).catch(i.alertUnhandledError).finally((()=>u()))};return(0,N.jsx)(Ot.A,{open:!0,onClose:u,TransitionProps:{onEnter:()=>a.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Move element"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:a,className:"input input--dark",onChange:e=>r(e.target.value),value:o,spellCheck:!1}),d&&(0,N.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(d),onClick:p,children:"Move"})]})]})})})),Ib=(0,It.PA)((0,Gt.forwardRef)((function(e,t){const{node:n,viewConceptSource:i}=e,s=n.data.li_attr,o=s.pureType,r=_N(),a=$t();return(0,N.jsxs)(Ji,{ref:t,children:[s.pureType!==mf.PROPERTY&&s.pureType!==mf.QUALIFIED_PROPERTY&&(0,N.jsx)(Zi,{onClick:()=>{a.clipboardService.copyTextToClipboard(s.pureId).catch(a.alertUnhandledError)},children:"Copy Path"}),o===mf.PACKAGE&&(0,N.jsx)(Zi,{onClick:()=>{(0,ke.gP)(r.executeTests(n.data.li_attr.pureId)).catch(a.alertUnhandledError)},children:"Run Tests"}),o===mf.FUNCTION&&(0,N.jsx)(Zi,{onClick:()=>{a.navigationService.navigator.visitAddress(`${r.client.baseUrl}/execute?func=${s.pureId}&mode=${r.client.mode}`)},children:"Service (JSON)"}),(s instanceof _f||s instanceof Ef)&&(0,N.jsx)(Zi,{onClick:()=>{(s instanceof Ef||s instanceof _f)&&r.findUsagesFromCoordinate(new Tf(s.file,Number.parseInt(s.line,10),Number.parseInt(s.column,10)))},children:"Find Usages"}),o!==mf.PACKAGE&&(0,N.jsx)(Zi,{onClick:()=>i(n),children:"View Source"}),(0,N.jsx)(Qi,{}),(0,N.jsx)(Zi,{onClick:()=>r.conceptTreeState.setNodeForRenameConcept(n),children:"Rename"}),s instanceof Ef&&(0,N.jsx)(Zi,{onClick:()=>r.conceptTreeState.setNodeForMoveElement(n),children:"Move"})]})})));var xb;!function(e){e.UNSUPPORTED="UNSUPPORTED",e.CLASS="CLASS"}(xb||(xb={}));const wb=e=>{const{node:t,level:n,stepPaddingInRem:i,onNodeSelect:s,innerProps:o}=e,[r,a]=(0,Gt.useState)(!1),{onNodeOpen:c,onNodeExpand:l,onNodeCompress:d,viewConceptSource:u}=o,p=t.parent&&t.data.li_attr instanceof _f&&t.data.li_attr.classPath!==t.parent.id,h=[mf.PACKAGE,mf.CLASS].includes(t.data.li_attr.pureType),m=t.data.li_attr.pureType===mf.QUALIFIED_PROPERTY?(0,N.jsxs)(N.Fragment,{children:[t.label,(0,N.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:"(...)"})]}):p?(0,N.jsxs)(N.Fragment,{children:[t.label,(0,N.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:mm($(t.data.li_attr,_f).classPath)})]}):t.label.includes("(")?(0,N.jsxs)(N.Fragment,{children:[t.label.substring(0,t.label.indexOf("(")),(0,N.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:t.label.substring(t.label.indexOf("("))})]}):t.label,g=()=>{t.isLoading||(t.isOpen?d(t):l(t))},[,f]=(0,ob.i)((()=>({type:"Class"===t.data.li_attr.pureType?xb.CLASS:xb.UNSUPPORTED,item:t.data})),[t]);return(0,N.jsx)(Xi,{content:(0,N.jsx)(Ib,{node:t,viewConceptSource:u}),menuProps:{elevation:7},onOpen:()=>a(!0),onClose:()=>a(!1),children:(0,N.jsxs)("div",{className:(0,Rt.$)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected-from-context-menu":!t.isSelected&&r},{"explorer__package-tree__node__container--selected":t.isSelected}),onClick:e=>{e.stopPropagation(),e.preventDefault(),s?.(t)},ref:f,onDoubleClick:()=>{t.isLoading||(h&&g(),s?.(t),c(t))},style:{paddingLeft:n*(i??1)+"rem",display:"flex"},children:[(0,N.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[t.isLoading&&(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand explorer__package-tree__node__icon__expand--is-loading",children:(0,N.jsx)(ai,{})}),!t.isLoading&&(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:g,children:h?t.isOpen?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{}):(0,N.jsx)("div",{})}),(0,N.jsx)("div",{className:(0,Rt.$)("explorer__package-tree__node__icon__type",{"explorer__package-tree__node__icon__type--property-from-association":p}),children:vb(t.data.li_attr.pureType)})]}),(0,N.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:m})]})})},Ob=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.conceptTreeState,i=e.conceptTreeState.getTreeData();return(0,N.jsxs)("div",{className:"explorer__content",onClick:()=>n.setSelectedNode(void 0),children:[(0,N.jsx)(SN,{components:{TreeNodeContainer:wb},treeData:i,onNodeSelect:e=>n.setSelectedNode(e),getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>i.nodes.get(e))).filter(B),innerProps:{onNodeOpen:e=>{(0,ke.gP)(n.openNode(e)).catch(t.alertUnhandledError)},onNodeExpand:e=>{(0,ke.gP)(n.expandNode(e)).catch(t.alertUnhandledError)},onNodeCompress:e=>{e.isOpen=!1,n.refreshTree()},viewConceptSource:n=>{const i=n.data.li_attr;(i instanceof Ef||i instanceof _f)&&(0,ke.gP)(e.directoryTreeState.revealPath(i.file,{forceOpenExplorerPanel:!0,coordinate:new Tf(i.file,Number.parseInt(i.line,10),Number.parseInt(i.column,10))})).catch(t.alertUnhandledError)}}}),n.nodeForRenameConcept&&(0,N.jsx)(yb,{node:n.nodeForRenameConcept}),n.nodeForMoveElement&&(0,N.jsx)(Ab,{node:n.nodeForMoveElement})]})})),Rb=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.conceptTreeState;return(0,N.jsxs)("div",{className:"panel explorer",children:[(0,N.jsx)("div",{className:"panel__header side-bar__header",children:(0,N.jsx)("div",{className:"panel__header__title",children:(0,N.jsx)("div",{className:"panel__header__title__content side-bar__header__title__content",children:"CONCEPTS"})})}),(0,N.jsx)("div",{className:"panel__content side-bar__content",children:(0,N.jsxs)("div",{className:"panel explorer",children:[(0,N.jsxs)("div",{className:"panel__header explorer__header",children:[(0,N.jsx)("div",{className:"panel__header__title"}),(0,N.jsxs)("div",{className:"panel__header__actions",children:[(0,N.jsx)("button",{className:"panel__header__action explorer__btn__refresh",onClick:()=>{(0,ke.gP)(n.refreshTreeData()).catch(t.alertUnhandledError)},title:"Refresh Tree",children:(0,N.jsx)(un,{})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>{n.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),n.setSelectedNode(void 0),n.refreshTree()},title:"Collapse All",children:(0,N.jsx)(Xn,{})})]})]}),(0,N.jsxs)("div",{className:"panel__content explorer__content__container",children:[(0,N.jsx)(qt,{isLoading:n.loadInitialDataState.isInProgress}),n.loadInitialDataState.hasSucceeded&&(0,N.jsx)(Ob,{}),!n.loadInitialDataState.hasSucceeded&&n.statusText&&(0,N.jsx)("div",{className:"explorer__content__container__message",children:n.statusText}),n.loadInitialDataState.hasFailed&&(0,N.jsx)(as,{children:"Failed to build concept tree. Make sure graph compiles"})]})]})})]})})),kb=/^\w+(?:\.\w+)*$/,Pb=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),[s,o]=(0,Gt.useState)("untitled.pure"),r=(0,Gt.useRef)(null),a=Boolean(s.match(kb)),c=!t.childrenIds?.map((e=>n.directoryTreeState.getTreeData().nodes.get(e))).filter((e=>e?.data.text===s)).length,l=a?c?void 0:"Already existed":"Invalid file name",d=()=>n.directoryTreeState.setNodeForCreateNewFile(void 0),u=e=>{e.preventDefault(),d(),(0,ke.gP)(n.createNewFile(`${t.data.li_attr.path}/${s}`)).catch(i.alertUnhandledError)};return(0,N.jsx)(Ot.A,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Create a new file"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>o(e.target.value),value:s,spellCheck:!1}),l&&(0,N.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Create"})]})]})})})),Lb=/^\w+$/,Mb=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),[s,o]=(0,Gt.useState)("untitled"),r=(0,Gt.useRef)(null),a=Boolean(s.match(Lb)),c=!t.childrenIds?.map((e=>n.directoryTreeState.getTreeData().nodes.get(e))).filter((e=>e?.data.text===s)).length,l=a?c?void 0:"Already existed":"Invalid directory name",d=()=>n.directoryTreeState.setNodeForCreateNewDirectory(void 0),u=e=>{e.preventDefault(),d(),(0,ke.gP)(n.createNewDirectory(`${t.data.li_attr.path}/${s}`)).catch(i.alertUnhandledError)};return(0,N.jsx)(Ot.A,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Create a new directory"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>o(e.target.value),value:s,spellCheck:!1}),l&&(0,N.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Create"})]})]})})})),Db=/^\/?(?:\w+\/)*\w+(?:\.\w+)*$/,Fb=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),[s,o]=(0,Gt.useState)(t.data.li_attr.path),r=(0,Gt.useRef)(null),a=Boolean(s.match(Db)),c=t.data.li_attr.path===s,l=a?void 0:"Invalid path",d=()=>n.directoryTreeState.setNodeForRenameFile(void 0),u=e=>{e.preventDefault(),c||(d(),(0,ke.gP)(n.renameFile(t.data.li_attr.path,s)).catch(i.alertUnhandledError))};return(0,N.jsx)(Ot.A,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Rename file"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>o(e.target.value),value:s,spellCheck:!1}),l&&(0,N.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Rename"})]})]})})})),Bb=(0,It.PA)((0,Gt.forwardRef)((function(e,t){const{node:n}=e,i=$t(),s=_N(),o=n.data.isFolderNode,r=Boolean(n.data.children);return(0,N.jsxs)(Ji,{ref:t,children:[(0,N.jsx)(Zi,{onClick:()=>{i.clipboardService.copyTextToClipboard(n.data.li_attr.path).catch(i.alertUnhandledError)},children:"Copy Path"}),(0,N.jsx)(Qi,{}),o&&(0,N.jsx)(Zi,{onClick:()=>s.directoryTreeState.setNodeForCreateNewFile(n),children:"New File"}),o&&(0,N.jsx)(Zi,{onClick:()=>s.directoryTreeState.setNodeForCreateNewDirectory(n),children:"New Directory"}),!o&&(0,N.jsx)(Zi,{onClick:()=>s.directoryTreeState.setNodeForRenameFile(n),children:"Rename"}),(0,N.jsx)(Zi,{disabled:Boolean(n.data instanceof Wf&&n.data.children),onClick:()=>{(0,ke.gP)(s.deleteDirectoryOrFile(n.data.li_attr.path,o,r)).catch(i.alertUnhandledError)},children:"Delete"})]})}))),jb=e=>{const{node:t,level:n,stepPaddingInRem:i,onNodeSelect:s,innerProps:o}=e,[r,a]=(0,Gt.useState)(!1),{onNodeOpen:c,onNodeExpand:l,onNodeCompress:d}=o,u=t.data instanceof Wf&&t.data.isRepoNode&&"/platform"===t.data.li_attr.path,p=t.data.li_attr.RO,h=t.data.isFolderNode,m=t.data instanceof Wf&&!t.data.children,g=u||t.data.isRepoNode&&t.data.li_attr.path.startsWith("/platform_")?(0,N.jsx)(li,{className:"explorer__icon--readonly"}):h?m?(0,N.jsx)(mi,{className:(0,Rt.$)("explorer__icon--folder",{"explorer__icon--readonly":p})}):t.isOpen?(0,N.jsx)(hi,{className:(0,Rt.$)("explorer__icon--folder",{"explorer__icon--readonly":p})}):(0,N.jsx)(mi,{className:(0,Rt.$)("explorer__icon--folder",{"explorer__icon--readonly":p})}):(0,N.jsx)(Ni,{className:(0,Rt.$)("explorer__icon--file",{"explorer__icon--readonly":p})}),f=()=>{m||t.isLoading||(t.isOpen?d(t):l(t))};return(0,N.jsx)(Xi,{content:(0,N.jsx)(Bb,{node:t}),menuProps:{elevation:7},onOpen:()=>a(!0),onClose:()=>a(!1),children:(0,N.jsxs)("div",{className:(0,Rt.$)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected-from-context-menu":!t.isSelected&&r},{"explorer__package-tree__node__container--selected":t.isSelected}),onClick:e=>{e.stopPropagation(),e.preventDefault(),s?.(t)},onDoubleClick:()=>{t.isLoading||(h?f():c(t))},style:{paddingLeft:n*(i??1)+"rem",display:"flex"},children:[(0,N.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[t.isLoading&&(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand explorer__package-tree__node__icon__expand--is-loading",children:(0,N.jsx)(ai,{})}),!t.isLoading&&(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:f,children:!h||m?(0,N.jsx)("div",{}):t.isOpen?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{})}),(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__type",children:g})]}),(0,N.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:u?"platform":t.label})]})})},Vb=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.directoryTreeState,i=e.directoryTreeState.getTreeData();return(0,N.jsxs)("div",{className:"explorer__content",onClick:()=>n.setSelectedNode(void 0),children:[(0,N.jsx)(SN,{components:{TreeNodeContainer:jb},treeData:i,onNodeSelect:e=>n.setSelectedNode(e),getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>i.nodes.get(e))).filter(B),innerProps:{onNodeOpen:e=>{(0,ke.gP)(n.openNode(e)).catch(t.alertUnhandledError)},onNodeExpand:e=>{(0,ke.gP)(n.expandNode(e)).catch(t.alertUnhandledError)},onNodeCompress:e=>{e.isOpen=!1,n.refreshTree()}}}),n.nodeForCreateNewFile&&(0,N.jsx)(Pb,{node:n.nodeForCreateNewFile}),n.nodeForCreateNewDirectory&&(0,N.jsx)(Mb,{node:n.nodeForCreateNewDirectory}),n.nodeForRenameFile&&(0,N.jsx)(Fb,{node:n.nodeForRenameFile})]})})),Hb=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.directoryTreeState;return(0,N.jsxs)("div",{className:"panel explorer",children:[(0,N.jsx)("div",{className:"panel__header side-bar__header",children:(0,N.jsx)("div",{className:"panel__header__title",children:(0,N.jsx)("div",{className:"panel__header__title__content side-bar__header__title__content",children:"FILES"})})}),(0,N.jsx)("div",{className:"panel__content side-bar__content",children:(0,N.jsxs)("div",{className:"panel explorer",children:[(0,N.jsxs)("div",{className:"panel__header explorer__header",children:[(0,N.jsx)("div",{className:"panel__header__title"}),(0,N.jsxs)("div",{className:"panel__header__actions",children:[(0,N.jsx)("button",{className:"panel__header__action explorer__btn__refresh",onClick:()=>{(0,ke.gP)(n.refreshTreeData()).catch(t.alertUnhandledError)},title:"Refresh Tree",children:(0,N.jsx)(un,{})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>{const i=e.tabManagerState.currentTab;i instanceof Hf&&(0,ke.gP)(n.revealPath(i.filePath)).catch(t.alertUnhandledError)},title:"Focus",children:(0,N.jsx)(Fn,{})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>{n.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),n.setSelectedNode(void 0),n.refreshTree()},title:"Collapse All",children:(0,N.jsx)(Xn,{})})]})]}),(0,N.jsxs)("div",{className:"panel__content explorer__content__container",children:[(0,N.jsx)(qt,{isLoading:n.loadInitialDataState.isInProgress}),n.loadInitialDataState.hasSucceeded&&(0,N.jsx)(Vb,{}),n.loadInitialDataState.hasFailed&&(0,N.jsx)(as,{children:"Failed to build directory tree"})]})]})})]})})),Gb=(0,It.PA)((()=>{const e=_N();return(0,N.jsx)("div",{className:"side-bar",children:(0,N.jsx)("div",{className:(0,Rt.$)("side-bar__view","side-bar__view--active"),children:(()=>{switch(e.activeActivity){case Gg.CONCEPT_EXPLORER:return(0,N.jsx)(Rb,{});case Gg.FILE_EXPLORER:return(0,N.jsx)(Hb,{});default:return null}})()},e.activeActivity)})})),Ub="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/icon/LegendLogo.tsx",$b=e=>{const{className:t}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("logo",t),children:(0,Et.jsxDEV)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",width:"1em",height:"1em",viewBox:"0 0 215 215",xmlns:"https://www.w3.org/2000/svg",children:[(0,Et.jsxDEV)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,Et.jsxDEV)("path",{d:"M141.9,86.5L141.9,68.1C141.9,66.5 140.7,65.2 139.1,65.2L66.5,65.2C64.9,65.2 63.7,66.5 63.7,68.1L63.7,86.5C63.7,88.1 64.9,89.4 66.5,89.4L139.1,89.4C140.7,89.4 141.9,88.1 141.9,86.5Z"},void 0,!1,{fileName:Ub,lineNumber:35,columnNumber:11},void 0)},void 0,!1,{fileName:Ub,lineNumber:34,columnNumber:9},void 0),(0,Et.jsxDEV)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,Et.jsxDEV)("path",{d:"M118.4,116.9L118.4,98.5C118.4,96.9 117.5,95.6 116.4,95.6L65.7,95.6C64.6,95.6 63.7,96.9 63.7,98.5L63.7,116.9C63.7,118.5 64.6,119.8 65.7,119.8L116.5,119.8C117.6,119.8 118.4,118.6 118.4,116.9Z"},void 0,!1,{fileName:Ub,lineNumber:38,columnNumber:11},void 0)},void 0,!1,{fileName:Ub,lineNumber:37,columnNumber:9},void 0),(0,Et.jsxDEV)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,Et.jsxDEV)("path",{d:"M141.9,147.3L141.9,129C141.9,127.4 140.7,126.1 139.1,126.1L66.5,126.1C64.9,126.1 63.7,127.4 63.7,129L63.7,147.4C63.7,149 64.9,150.3 66.5,150.3L139.1,150.3C140.7,150.3 141.9,149 141.9,147.3Z"},void 0,!1,{fileName:Ub,lineNumber:41,columnNumber:11},void 0)},void 0,!1,{fileName:Ub,lineNumber:40,columnNumber:9},void 0),(0,Et.jsxDEV)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,Et.jsxDEV)("path",{d:"M205,170.7L152.7,139.1C150,137.4 147.7,138.7 147.7,141.9L147.7,157.9L55.8,157.9L55.8,59.4L67.2,59.4C70.4,59.4 71.7,57.2 70,54.4L38.4,2.1C36.7,-0.6 34.1,-0.6 32.4,2.1L0.7,54.4C-1,57.1 0.3,59.4 3.5,59.4L15.6,59.4L15.6,185.5C15.6,188.5 18,190.9 21,190.9L147.7,190.9L147.7,205.7C147.7,208.9 149.9,210.1 152.7,208.5L205,176.9C207.7,175.1 207.7,172.4 205,170.7Z"},void 0,!1,{fileName:Ub,lineNumber:44,columnNumber:11},void 0)},void 0,!1,{fileName:Ub,lineNumber:43,columnNumber:9},void 0)]},void 0,!0,{fileName:Ub,lineNumber:25,columnNumber:7},void 0)},void 0,!1,{fileName:Ub,lineNumber:23,columnNumber:11},void 0)},Yb=(0,It.PA)((()=>{const e=_N(),t=t=>()=>e.setActiveActivity(t),n=[{mode:Gg.CONCEPT_EXPLORER,title:"Concept Explorer",icon:(0,N.jsx)(ti,{})},{mode:Gg.FILE_EXPLORER,title:"File Explorer",icon:(0,N.jsx)(Ni,{})}].filter((e=>Boolean(e)));return(0,N.jsxs)("div",{className:"activity-bar",children:[(0,N.jsx)("div",{className:"activity-bar__logo",children:(0,N.jsx)($b,{})}),(0,N.jsx)("div",{className:"activity-bar__items",children:n.map((n=>(0,N.jsx)("button",{className:(0,Rt.$)("activity-bar__item",{"activity-bar__item--active":e.sideBarDisplayState.isOpen&&e.activeActivity===n.mode}),onClick:t(n.mode),tabIndex:-1,title:n.title,children:n.icon},n.mode)))})]})})),Wb=(0,It.PA)((e=>{const{fileEditorState:t}=e,n=t.textEditorState.cursorObserver,i=n?.selection?t.textEditorState.model.getValueInRange(n.selection).length:0;return(0,N.jsx)("div",{className:"file-editor__status-bar",children:n?.position&&(0,N.jsx)("button",{className:"editor__status-bar__action file-editor__status-bar__cursor-info",onClick:()=>t.setShowGoToLinePrompt(!0),tabIndex:-1,title:"Go to Line/Column",children:`Ln ${n.position.lineNumber}, Col ${n.position.column} ${i?` (${i} selected)`:""}`})})})),zb=(0,It.PA)((()=>{const e=_N(),t=$t();return(0,N.jsxs)("div",{className:"editor__status-bar",children:[(0,N.jsx)("div",{className:"editor__status-bar__left",children:(0,N.jsx)("div",{className:"editor__status-bar__workspace"})}),(0,N.jsxs)("div",{className:"editor__status-bar__right",children:[e.tabManagerState.currentTab instanceof Hf&&(0,N.jsx)(Wb,{fileEditorState:e.tabManagerState.currentTab}),(0,N.jsx)("button",{className:(0,Rt.$)("editor__status-bar__action editor__status-bar__compile-btn",{"editor__status-bar__compile-btn--wiggling":e.executionState.isInProgress}),disabled:e.initState.isInInitialState||e.executionState.isInProgress,onClick:()=>{(0,ke.gP)(e.executeGo()).catch(t.alertUnhandledError)},tabIndex:-1,title:"Execute (F9)",children:(0,N.jsx)(Wn,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("editor__status-bar__action editor__status-bar__action__toggler",{"editor__status-bar__action__toggler--active":Boolean(e.panelGroupDisplayState.isOpen)}),onClick:()=>e.panelGroupDisplayState.toggle(),tabIndex:-1,title:"Toggle panel",children:(0,N.jsx)(pi,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("editor__status-bar__action editor__status-bar__action__toggler",{"editor__status-bar__action__toggler--active":!t.assistantService.isHidden}),onClick:()=>t.assistantService.toggleAssistant(),tabIndex:-1,title:"Toggle assistant",children:(0,N.jsx)(mn,{})})]})]})})),Kb=e=>{(0,Gt.useEffect)((()=>(e.registerCommands(),()=>e.deregisterCommands())),[e])},Xb=/[0-9]+(?::[0-9]+)?/,qb=(0,It.PA)((e=>{const{fileEditorState:t}=e,[n,i]=(0,Gt.useState)(""),s=(0,Gt.useRef)(null),o=Boolean(n.match(Xb)),r=t.textEditorState.editor?.getPosition(),[a,c]=(e=>{const t=e.split(":");return t.length<1||t.length>2?[1,void 0]:[D((()=>parseInt(V(S(t)))))??1,D((()=>parseInt(V(A(t)))))]})(n),l=1<=a&&a<=t.textEditorState.model.getLineCount(),d=o?l?void 0:"Invalid line number":"Invalid value (format [line:column] - e.g. 123:45)",u=()=>t.setShowGoToLinePrompt(!1),p=e=>{e.preventDefault(),u(),t.textEditorState.setForcedCursorPosition({lineNumber:a,column:c??1})};return(0,N.jsx)(Ot.A,{open:!0,onClose:u,TransitionProps:{onEnter:()=>s.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Go to..."}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:s,className:"input input--dark",onChange:e=>i(e.target.value),placeholder:r?`Current Line: ${r.lineNumber}, Col: ${r.column}. Type a line between 1 and ${t.textEditorState.model.getLineCount()} to navigate to`:void 0,value:n,spellCheck:!1}),""!==n&&d&&(0,N.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:""===n||Boolean(d),onClick:p,children:"Go"})]})]})})})),Jb=(0,It.PA)((e=>{const{editorState:t}=e,n=_N(),i=$t(),s=(0,Gt.useRef)(null),[o,r]=(0,Gt.useState)();return(0,Gt.useEffect)((()=>{if(!o&&s.current){const e=s.current,n=Yg.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,theme:tf.DEFAULT_DARK,wordWrap:t.textEditorState.wrapText?"on":"off",readOnly:t.file.RO});n.onDidChangeModelContent((()=>{const e=n.getValue();e!==t.file.content&&t.clearError(),t.file.setContent(e)})),n.onDidChangeCursorPosition((()=>{t.textEditorState.notifyCursorObserver()})),n.onDidChangeCursorSelection((()=>{t.textEditorState.notifyCursorObserver()})),n.setModel(t.textEditorState.model),t.textEditorState.viewState&&n.restoreViewState(t.textEditorState.viewState),n.focus(),t.textEditorState.setEditor(n),r(n)}}),[n,i,t,o]),Kb(t),(0,Gt.useEffect)((()=>{o&&t.textEditorState.forcedCursorPosition&&(uf(o,t.textEditorState.forcedCursorPosition),t.textEditorState.setForcedCursorPosition(void 0))}),[o,t,t.textEditorState.forcedCursorPosition]),(0,Gt.useEffect)((()=>()=>{o&&(t.textEditorState.setViewState(o.saveViewState()??void 0),o.dispose())}),[t,o]),(0,N.jsxs)("div",{className:"panel editor-group file-editor",children:[(0,N.jsx)("div",{className:"panel__header file-editor__header",children:(0,N.jsxs)("div",{className:"file-editor__header__actions",children:[(0,N.jsx)("button",{className:(0,Rt.$)("file-editor__header__action",{"file-editor__header__action--active":t.textEditorState.wrapText}),tabIndex:-1,onClick:()=>t.textEditorState.setWrapText(!t.textEditorState.wrapText),title:"Toggle Text Wrap",children:(0,N.jsx)(gn,{className:"file-editor__icon--text-wrap"})}),t.showGoToLinePrompt&&(0,N.jsx)(qb,{fileEditorState:t})]})}),(0,N.jsx)("div",{className:"panel__content file-editor__content",children:(0,N.jsx)("div",{className:"code-editor__container",children:(0,N.jsx)("div",{className:"code-editor__body",ref:s})})})]})})),Zb=(e,t,n=!1)=>{if(n)return t.map((e=>`${e}.pure`)).includes(e);const i=V(S(e.split(".")));return t.includes(i)};class Qb{pureType;pureId;pureName;text;requiredClassProperties=[]}(0,ge.PL)(Qb,{pureType:(0,ge.MY)(),pureId:(0,ge.MY)(),pureName:(0,ge.MY)(),text:(0,ge.MY)(),requiredClassProperties:(0,ge.lq)((0,ge.p_)((0,ge.MY)()))});class ev{pureType;pureName;owner;ownerPureType}(0,ge.PL)(ev,{pureType:(0,ge.MY)(),pureName:(0,ge.MY)(),owner:(0,ge.MY)(),ownerPureType:(0,ge.MY)()});class tv{pureId;pureName;requiredClassProperties=[]}(0,ge.PL)(tv,{pureId:(0,ge.MY)(),pureName:(0,ge.MY)(),requiredClassProperties:(0,ge.lq)((0,ge.p_)((0,ge.MY)()))});class nv{name}(0,ge.PL)(nv,{name:(0,ge.MY)()});const iv="Diagram",sv="Diagram",ov=()=>{const e=[];return e.push({label:{label:"/copyright",description:"(copyright header)"},kind:Yg.languages.CompletionItemKind.Snippet,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`// Copyright \${1:${(new Date).getFullYear()}} Goldman Sachs\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an "AS IS" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n`,range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1e3}}),e},rv=e=>({label:{label:e.pureName,description:e.pureId},kind:Yg.languages.CompletionItemKind.Class,filterText:e.pureName,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`${e.pureName}(${e.requiredClassProperties.map(((e,t)=>`${e}=\${${t+1}:}`)).join(",")})`}),av=(e,t)=>{const n=e.pureType,i=n===mf.FUNCTION||n===mf.NATIVE_FUNCTION?((e,t,n)=>{const i=mm(t),s=D((()=>i.substring(i.indexOf("_"),i.length-1))),o=s?.split("__")??[];return o.pop(),n&&o.shift(),`${e}(${o.map(((e,t)=>`\${${t+1}:}`)).join(",")})`})(e.pureName,e.pureId,Boolean(t?.preferArrowFunctionForm)):e.pureName,s=n===mf.PACKAGE?Yg.languages.CompletionItemKind.Folder:n===mf.CLASS?Yg.languages.CompletionItemKind.Class:n===mf.FUNCTION?Yg.languages.CompletionItemKind.Function:n===mf.ENUMERATION?Yg.languages.CompletionItemKind.Enum:n===mf.PROFILE?Yg.languages.CompletionItemKind.Module:n===mf.ASSOCIATION?Yg.languages.CompletionItemKind.Interface:Yg.languages.CompletionItemKind.Value;return{label:{label:e.pureName,description:e.text},kind:s,filterText:e.pureName,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:i,sortText:n===mf.PACKAGE?`zzzz_${e.text}`:e.text}},cv=/(?<incompletePath>(?:\w[\w$]*::)+$)/,lv=/->\s*(?:\w[\w$]*::)+$/,dv=/\^\s*(?:\w[\w$]*::)+$/,uv=/^\s*import\s+(?:(?<importPath>(?:(?:\w[\w$]*)::)*\w[\w$]*)::*)/,pv=(e,t)=>{const n=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),i=`${Lo}${NE.PURE}\n${n}`.split("\n");return i.slice(i.map((e=>e.startsWith(Lo))).lastIndexOf(!0)).map((e=>e.match(uv)?.groups?.importPath)).filter(B)},hv=/->\s*(?:\w[\w$]*)?$/,mv=/\^\s*(?:\w[\w$]*)?$/,gv=/^(?<owner>(?:(?:\w[\w$]*)::)*\w[\w$]*)\s*.$/,fv=(e,t)=>({label:e.name,kind:Yg.languages.CompletionItemKind.Variable,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:t?e.name:`zzzz_${e.name}`,insertText:e.name}),_v=/^\w[\w$]*$/,Ev=(0,It.PA)((e=>{const{renameConceptState:t}=e,n=$t(),i=t.fileEditorState,s=t.concept.pureName,[o,r]=(0,Gt.useState)(s),a=(0,Gt.useRef)(null),c=Boolean(o.match(_v)),l=s===o,d=c?void 0:"Invalid concept name",u=()=>{(0,ke.gP)(i.setConceptToRenameState(void 0)).catch(n.alertUnhandledError)},p=e=>{e.preventDefault(),l||i.renameConcept(o).catch(n.alertUnhandledError).finally((()=>u()))};return(0,N.jsx)(Ot.A,{open:!0,onClose:u,TransitionProps:{onEnter:()=>a.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Rename concept"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:a,className:"input input--dark",onChange:e=>r(e.target.value),value:o,spellCheck:!1}),d&&(0,N.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(d),onClick:p,children:"Rename"})]})]})})})),Nv=(0,It.PA)((e=>{const{editorState:t}=e,n=(0,Gt.useRef)(void 0),i=(0,Gt.useRef)(void 0),s=(0,Gt.useRef)(void 0),o=(0,Gt.useRef)(null),[r,a]=(0,Gt.useState)(),[c,l]=(0,Gt.useState)(!1),d=_N(),u=$t();return(0,Gt.useEffect)((()=>{if(!r&&o.current){const e=o.current,n=Yg.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,language:hf.PURE,theme:tf.DEFAULT_DARK,wordSeparators:"`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",wordWrap:t.textEditorState.wrapText?"on":"off",readOnly:t.file.RO,contextmenu:!0,useShadowDOM:!1});n._codeEditorService.openCodeEditor=async()=>{const e=n.getPosition();e&&(0,ke.gP)(d.executeNavigation(new Tf(t.filePath,e.lineNumber,e.column))).catch(u.alertUnhandledError)},n.updateOptions({gotoLocation:{multiple:"goto",multipleDefinitions:"goto",alternativeDefinitionCommand:"DUMMY"}}),n.onContextMenu((()=>l(!0))),n.addAction({id:Df.FIND_USAGES,label:"Find Usages",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();if(n){const e=new Tf(t.filePath,n.lineNumber,n.column);t.findConceptUsages(e)}}}),n.addAction({id:Df.REVEAL_CONCEPT_IN_TREE,label:"Reveal Concept",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();n&&d.revealConceptInTree(new Tf(t.filePath,n.lineNumber,n.column)).catch(u.alertUnhandledError)}}),n.addAction({id:Df.RENAME_CONCEPT,label:"Rename",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();if(n){if(!t.textEditorState.model.getWordAtPosition(n))return;const e=new Tf(t.filePath,n.lineNumber,n.column);(0,ke.gP)(t.setConceptToRenameState(e)).catch(d.applicationStore.alertUnhandledError)}}}),n.onDidChangeModelContent((()=>{const e=n.getValue();e!==t.file.content&&t.clearError(),t.file.setContent(e)})),n.onDidChangeCursorPosition((()=>{t.textEditorState.notifyCursorObserver()})),n.onDidChangeCursorSelection((()=>{t.textEditorState.notifyCursorObserver()})),n.setModel(t.textEditorState.model),t.textEditorState.viewState&&n.restoreViewState(t.textEditorState.viewState),n.focus(),t.textEditorState.setEditor(n),a(n)}}),[d,u,t,r]),r&&(n.current?.dispose(),n.current=Yg.languages.registerDefinitionProvider(hf.PURE,{provideDefinition:(e,n)=>{const i=e.getLineContent(n.lineNumber),s=Yg.editor.tokenize(i,hf.PURE)[0];if(!s)return[];let o,r;for(let e=1;e<=s.length;++e){const t=e===s.length?i.length:V(s[e]).offset;if(t+1>n.column){o=V(s[e-1]),r={startLineNumber:n.lineNumber,startColumn:o.offset+1,endLineNumber:n.lineNumber,endColumn:t+1};break}}return o&&r&&Zb(o.type,[$g.TYPE,$g.VARIABLE,$g.PROPERTY,$g.PARAMETER,$g.IDENTIFIER])?[{uri:t.textEditorState.model.uri,range:r}]:[]}}),i.current?.dispose(),i.current=Yg.languages.registerCompletionItemProvider(hf.PURE,{triggerCharacters:["/","#",":",">",".","@","^","$"],provideCompletionItems:async(e,n,i)=>{let s=[];if(i.triggerKind===Yg.languages.CompletionTriggerKind.TriggerCharacter)switch(i.triggerCharacter){case"/":s=s.concat(ov());break;case"#":s=s.concat(((e,t,n)=>{const i=[],s=t.getWordUntilPosition(e),o={startLineNumber:e.lineNumber,startColumn:1,endLineNumber:e.lineNumber,endColumn:s.endColumn};var r;return r=t.getValueInRange(o).trim(),Boolean(r.match(/\s/))||n.forEach((e=>{i.push({label:{label:`${Lo}${e.text}`,description:e.description},kind:Yg.languages.CompletionItemKind.Keyword,insertText:`${Lo}${e.insertText}\n`,range:o,documentation:e.documentation?e.documentation.markdownText?{value:e.documentation.markdownText.value}:e.documentation.text:void 0})})),i})(n,e,[{text:NE.PURE,description:"(core Pure)",insertText:NE.PURE},{text:NE.MAPPING,description:"(dsl)",insertText:NE.MAPPING},{text:NE.CONNECTION,description:"(dsl)",insertText:NE.CONNECTION},{text:NE.RUNTIME,description:"(dsl)",insertText:NE.RUNTIME},{text:NE.RELATIONAL,description:"(external store)",insertText:NE.RELATIONAL},{text:iv,description:"(dsl)",insertText:sv}]));break;case":":s=s.concat(await(async(e,t,n)=>{const i=t.getLineContent(e.lineNumber).substring(0,e.column-1).match(cv);if(i?.groups?.incompletePath){const s=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(lv)),o=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(dv));let r=[];try{r=(await n.client.getSuggestionsForIncompletePath(i.groups.incompletePath.substring(0,i.groups.incompletePath.length-2),o?[mf.CLASS]:s?[mf.FUNCTION,mf.NATIVE_FUNCTION]:[])).map((e=>(0,ge.iu)(Qb,e)))}catch{}return r.map((e=>o?rv(e):av(e,{preferArrowFunctionForm:s})))}return[]})(n,e,d));break;case">":s=s.concat(await(async(e,t,n)=>{const i=pv(e,t);let s=[];try{s=(await n.client.getSuggestionsForIdentifier(i,[mf.FUNCTION,mf.NATIVE_FUNCTION])).map((e=>(0,ge.iu)(Qb,e)))}catch{}return s.map((e=>av(e,{preferArrowFunctionForm:!0})))})(n,e,d));break;case".":s=s.concat(await(async(e,t,n)=>{const i=t.getLineContent(e.lineNumber).substring(0,e.column-1).match(gv),s=pv(e,t);if(i?.groups?.owner){let e=[];try{e=(await n.client.getSuggestionsForAttribute(s,i.groups.owner)).map((e=>(0,ge.iu)(ev,e)))}catch{}return e.map((e=>(e=>{const t=e.pureType,n=t===mf.PROPERTY||t===mf.QUALIFIED_PROPERTY?`${e.pureName}(\${1:})`:e.pureName,i=t===mf.PROPERTY?Yg.languages.CompletionItemKind.Property:t===mf.QUALIFIED_PROPERTY?Yg.languages.CompletionItemKind.Method:t===mf.TAG?Yg.languages.CompletionItemKind.Constant:t===mf.STEREOTYPE?Yg.languages.CompletionItemKind.Value:t===mf.ENUM_VALUE?Yg.languages.CompletionItemKind.Enum:Yg.languages.CompletionItemKind.Value;return{label:{label:e.pureName,description:`${e.owner}.${e.pureName}`},kind:i,filterText:e.pureName,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:n}})(e)))}return[]})(n,e,d));break;case"^":s=s.concat(await(async(e,t,n)=>{const i=pv(e,t);let s=[];try{s=(await n.client.getSuggestionsForClass(i)).map((e=>(0,ge.iu)(tv,e)))}catch{}return s.map((e=>rv(e)))})(n,e,d));break;case"@":s=s.concat(await(async(e,t,n)=>{const i=pv(e,t);let s=[];try{s=(await n.client.getSuggestionsForClass(i)).map((e=>(0,ge.iu)(tv,e)))}catch{}return s.map((e=>(e=>({label:{label:e.pureName,description:e.pureId},kind:Yg.languages.CompletionItemKind.Class,filterText:e.pureName,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:e.pureName}))(e)))})(n,e,d));break;case"$":s=s.concat(await(async(e,t,n,i)=>{let s=[];try{s=(await i.client.getSuggestionsForVariable(n,e.lineNumber,e.column)).map((e=>(0,ge.iu)(nv,e)))}catch{}const o=new Set;let r=!1;for(let n=e.lineNumber-1;n>Math.max(0,e.lineNumber-1-10)&&!r;--n){const i=t.getLineContent(n+1);(i.match(/^\s*function\s+/)||i.match(/^\s*###\w+/))&&(r=!0);const s=V(Yg.editor.tokenize(t.getLineContent(n+1),hf.PURE)[0]);s.forEach(((i,r)=>{(n!==e.lineNumber-1||i.offset<e.column)&&Zb(i.type,[$g.VARIABLE,$g.PARAMETER],!0)&&o.add(t.getValueInRange({startLineNumber:n+1,startColumn:i.offset+1,endLineNumber:n+1,endColumn:r===s.length-1?Number.MAX_SAFE_INTEGER:V(s[r+1]).offset+1}))}))}const a=s.map((e=>e.name));return s.map((e=>fv(e,!0))).concat(Array.from(o).filter((e=>!a.includes(e))).map((e=>{const t=new nv;return t.name=e,t})).map((e=>fv(e,!1))))})(n,e,t.filePath,d))}return{suggestions:s}}}),s.current?.dispose(),s.current=Yg.languages.registerCompletionItemProvider(hf.PURE,{triggerCharacters:[],provideCompletionItems:async(e,t,n)=>{let i=[];return n.triggerKind===Yg.languages.CompletionTriggerKind.Invoke&&(i=i.concat(ov()),i=i.concat(((e,t,n)=>{const i=[],s=t.getWordUntilPosition(e),o=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),r=`${Lo}${NE.PURE}\n${o}`.split("\n").filter((e=>e.startsWith(Lo))),a=(e=>{if(e.startsWith(Lo))return e.substring(3).split(" ")[0]})(r[r.length-1]??"");return a&&n(a).forEach((t=>{i.push({label:{label:t.text,description:t.description},kind:Yg.languages.CompletionItemKind.Snippet,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`${t.insertText}\n`,range:{startLineNumber:e.lineNumber,startColumn:s.startColumn,endLineNumber:e.lineNumber,endColumn:s.endColumn},documentation:t.documentation?t.documentation.markdownText?{value:t.documentation.markdownText.value}:t.documentation.text:void 0})})),i})(t,e,(e=>(e=>{switch(e){case NE.PURE:return[{text:_E.CLASS,description:"(blank)",insertText:"Class ${1:model::NewClass}\n// example of a constraint\n// [\n// SomeConstraint: true\n// ]\n{\n ${2:// example of a standard property\n // prop1: String[1];\n\n // example of a derived property\n // derivation1() {''\\}: String[1];}\n}"},{text:_E.CLASS,description:"with property",insertText:"Class ${1:model::NewClass}\n{\n ${2:prop1}: ${3:String[1]};\n}"},{text:_E.CLASS,description:"with inheritance",insertText:"Class ${1:model::NewClass} extends ${2:model::ParentClass}\n{\n ${3:// class content}\n}"},{text:_E.CLASS,description:"with constraint",insertText:"Class ${1:model::NewClass}\n[\n ${3:SomeConstraint: true}\n]\n{\n ${2:// class content}\n}"},{text:_E.PROFILE,insertText:"Profile ${1:model::NewProfile}\n{\n stereotypes: [${2:}];\n tags: [${3:}];\n}"},{text:_E.ENUMERATION,insertText:"Enum ${1:model::NewEnumeration}\n{\n ${2:VALUE_1,\n VALUE_2}\n}"},{text:_E.ASSOCIATION,insertText:"Association ${1:model::NewAssociation}\n{\n ${2:prop1}: ${3:model::Type1[1]};\n ${4:prop2}: ${5:model::Type2[1]};\n}"},{text:_E.FUNCTION,description:"(blank)",insertText:"function ${1:model::NewEnumeration}(${2:param1: String[1]}): ${3:String[1]}\n{\n ${4:''; // function content}\n}"},{text:_E.FUNCTION,insertText:"function ${1:model::NewEnumeration}(): String[1]\n{\n ''\n}"}];case NE.MAPPING:return[{text:_E.MAPPING,description:"(blank)",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:// mapping content}\n)"},{text:_E.MAPPING,description:"with model-to-model mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetClass}: Pure\n {\n ~src ${3:model::SourceClass}\n // example of property mappings\n // prop1: $src.prop1\n }\n)"},{text:_E.MAPPING,description:"with relational mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetClass}: Relational {\n ~mainTable ${3:[model::SomeDatabase]SomeTable}\n // example of property mappings\n // prop1: [model::SomeDatabase]SomeTable.col1,\n }\n)"},{text:_E.MAPPING,description:"with enumeration mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetEnumeration}: EnumerationMapping ${3:EnumerationMappingID}\n {\n // example of enum-value mapping\n // VAL_1: ['val1'],\n // VAL_2: ['val2', 'val_2']\n }\n)"}];case NE.RELATIONAL:return[{text:_E.DATABASE,description:"(blank)",insertText:"Database ${1:model::NewDatabase}\n(\n // example database schema\n // Schema SOME_SCHEMA\n // (\n // Table TABLE_1\n // (\n // COL_1 VARCHAR(200)\n // )\n // Table TABLE_2\n // (\n // COL_2 VARCHAR(200) PRIMARY_KEY\n // )\n // )\n\n // example database join\n // Join SomeJoin(SOME_SCHEMA.TABLE_1.COL_1 = SCHEMA1.TABLE_2.COL_2)\n\n ${2:// database content}\n)"}];case iv:return[{text:sv,description:"(blank)",insertText:"Diagram ${1:model::NewDiagram}(width=0.0, height=0.0)\n{\n // NOTE: it is recommended to use diagram visual editor\n // to edit diagram: double-click on the diagram in\n // the concept explorer tree to open the editor\n}"}];default:return[]}})(e)))),i=i.concat(((e,t,n=[])=>{const i=t.getWordUntilPosition(e);return[{text:"let",description:"new variable",insertText:"let ${1:} = ${2:};"},{text:"let",description:"new collection",insertText:"let ${1:} = [${2:}];"},{text:"cast",description:"type casting",insertText:"cast(@${1:model::SomeClass})"},{text:"if",description:"(conditional)",insertText:"if(${1:'true'}, | ${2:/* if true do this */}, | ${3:/* if false do this */})"},{text:"case",description:"(conditional)",insertText:"case(${1:}, ${2:'true'}, ${3:'false'})"},{text:"match",description:"(conditional)",insertText:"match([x:${1:String[1]}, ${2:''}])"},{text:"map",description:"(collection)",insertText:"map(x|${1:})"},{text:"filter",description:"(collection)",insertText:"filter(x|${1:})"},{text:"fold",description:"(collection)",insertText:"fold({a, b| ${1:$a + $b}}, ${2:0})"},{text:"filter",description:"(collection)",insertText:"filter(x|${1:})"},{text:"sort",description:"(collection)",insertText:"sort()"},{text:"in",description:"(collection)",insertText:"in()"},{text:"slice",description:"(collection)",insertText:"slice(${1:1},${2:2})"},{text:"removeDuplicates",description:"(collection)",insertText:"removeDuplicates()"},{text:"toOne",description:"(collection)",insertText:"toOne(${1:})"},{text:"toOneMany",description:"(collection)",insertText:"toOneMany(${1:})"},{text:"isEmpty",description:"(collection)",insertText:"isEmpty()"},{text:"endsWith",description:"(string)",insertText:"endsWith()"},{text:"startsWith",description:"(string)",insertText:"startsWith()"},...n].map((t=>({label:{label:t.text,description:t.description},kind:Yg.languages.CompletionItemKind.Snippet,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:t.insertText,range:{startLineNumber:e.lineNumber,startColumn:i.startColumn,endLineNumber:e.lineNumber,endColumn:i.endColumn},documentation:t.documentation?t.documentation.markdownText?{value:t.documentation.markdownText.value}:t.documentation.text:void 0})))})(t,e,[{text:"print",description:"(io)",insertText:"print(${1:})"},{text:"println",description:"(io)",insertText:"println(${1:})"},{text:"NULL",description:"(nullish value)",insertText:"[]"}])),i=i.concat(await(async(e,t,n)=>{const i=pv(e,t),s=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(hv)),o=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(mv));let r=[];try{r=(await n.client.getSuggestionsForIdentifier(i,o?[mf.CLASS]:s?[mf.FUNCTION,mf.NATIVE_FUNCTION]:[])).map((e=>(0,ge.iu)(Qb,e)))}catch{}return r.map((e=>o?rv(e):av(e,{preferArrowFunctionForm:s})))})(t,e,d))),{suggestions:i}}})),Kb(t),(0,Gt.useEffect)((()=>{if(c){if(document.querySelector(".file-editor .monaco-menu")){const e=["Peek"];Array.from(document.querySelectorAll(".file-editor .monaco-menu .action-label")).filter((t=>e.includes(t.innerHTML))).forEach((e=>{const t=e.parentElement?.parentElement;t&&(t.classList.add("disabled"),t.style.opacity="0.3",t.style.pointerEvents="none")}))}l(!1)}}),[c]),(0,Gt.useEffect)((()=>{r&&t.textEditorState.forcedCursorPosition&&(uf(r,t.textEditorState.forcedCursorPosition),t.textEditorState.setForcedCursorPosition(void 0))}),[r,t,t.textEditorState.forcedCursorPosition]),(0,Gt.useEffect)((()=>()=>{r&&(t.textEditorState.setViewState(r.saveViewState()??void 0),r.dispose(),n.current?.dispose(),i.current?.dispose(),s.current?.dispose())}),[t,r]),(0,N.jsxs)("div",{className:"panel editor-group file-editor",children:[(0,N.jsx)("div",{className:"panel__header file-editor__header",children:(0,N.jsxs)("div",{className:"file-editor__header__actions",children:[(0,N.jsx)("button",{className:(0,Rt.$)("file-editor__header__action",{"file-editor__header__action--active":t.textEditorState.wrapText}),tabIndex:-1,onClick:()=>t.textEditorState.setWrapText(!t.textEditorState.wrapText),title:"Toggle Text Wrap",children:(0,N.jsx)(gn,{className:"file-editor__icon--text-wrap"})}),t.renameConceptState&&(0,N.jsx)(Ev,{renameConceptState:t.renameConceptState}),t.showGoToLinePrompt&&(0,N.jsx)(qb,{fileEditorState:t})]})}),(0,N.jsx)("div",{className:"panel__content file-editor__content",children:(0,N.jsx)("div",{className:"code-editor__container",children:(0,N.jsx)("div",{className:"code-editor__body",ref:o})})})]})}));var bv=n(7522);const vv="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/menu/DropdownMenu.tsx",Tv=e=>{const{open:t,className:n,children:i,menuProps:s,content:o,title:r,disabled:a,onClose:c,onOpen:l}=e,d=(0,Gt.useRef)(null),[u,p]=(0,Gt.useState)(null);return(0,Gt.useEffect)((()=>{void 0!==t&&(t&&!u&&d.current?p(d.current):!t&&u&&p(null))}),[u,t]),(0,Et.jsxDEV)("button",{ref:d,className:n,disabled:a,onClick:e=>{e.stopPropagation(),e.preventDefault(),a||(u?(c?.(),p(null)):d.current&&(l?.(),p(d.current)))},tabIndex:-1,title:r,children:[i,(0,Et.jsxDEV)(zi,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:u,open:(void 0===t||Boolean(t))&&Boolean(u),BackdropProps:{invisible:!0},elevation:0,marginThreshold:0,disableRestoreFocus:!0,...s,children:o},void 0,!1,{fileName:vv,lineNumber:85,columnNumber:7},void 0)]},void 0,!0,{fileName:vv,lineNumber:75,columnNumber:11},void 0)},Cv=(0,It.PA)((0,Gt.forwardRef)((function(e,t){const{diagramEditorState:n}=e,i=$t(),s=n.diagram,o=t,{width:r,height:a}=(0,os.u)({refreshMode:"debounce",refreshRate:50,targetRef:o});(0,Gt.useEffect)((()=>{const e=new tN(o.current,s);n.setRenderer(e),n.setupRenderer(),e.render({initial:!0})}),[o,n,s]),(0,Gt.useEffect)((()=>{n.isDiagramRendererInitialized&&n.renderer.render({initial:!0})}),[n,n.isDiagramRendererInitialized]),(0,Gt.useEffect)((()=>{n.isDiagramRendererInitialized&&n.renderer.refresh()}),[n,r,a]);const c=(0,Gt.useCallback)(((e,t)=>{if(e instanceof Nf){const s=t.getClientOffset(),o=s?n.renderer.canvasCoordinateToModelCoordinate(n.renderer.eventCoordinateToCanvasCoordinate(new ig(s.x,s.y))):void 0;(0,ke.gP)(n.addClassView(e.li_attr.pureId,o)).catch(i.alertUnhandledError)}}),[i,n]),[,l]=(0,bv.H)((()=>({accept:xb.CLASS,drop:(e,t)=>c(e,t)})),[c]);return l(o),(0,N.jsx)("div",{ref:o,className:(0,Rt.$)("diagram-canvas diagram-editor__canvas",n.diagramCursorClass),tabIndex:0})}))),yv=(0,It.PA)((e=>{const{diagramEditorState:t}=e,n=_N(),i=$t(),s=e=>()=>{t.renderer.zoomCenter(e/100)},o=t.renderer.selectedClasses.length<2;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align left",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_LEFT),children:(0,N.jsx)(wn,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align center",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_CENTER),children:(0,N.jsx)(On,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align right",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_RIGHT),children:(0,N.jsx)(Rn,{className:"diagram-editor__icon--aligner"})})]}),(0,N.jsx)("div",{className:"diagram-editor__header__group__separator"}),(0,N.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align top",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_TOP),children:(0,N.jsx)(An,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align middle",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_MIDDLE),children:(0,N.jsx)(In,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align bottom",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_BOTTOM),children:(0,N.jsx)(xn,{className:"diagram-editor__icon--aligner"})})]}),(0,N.jsx)("div",{className:"diagram-editor__header__group__separator"}),(0,N.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Space horizontally",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.SPACE_HORIZONTALLY),children:(0,N.jsx)(kn,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Space vertically",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.SPACE_VERTICALLY),children:(0,N.jsx)(Pn,{className:"diagram-editor__icon--aligner"})})]}),(0,N.jsxs)(Tv,{className:"diagram-editor__header__dropdown",title:"Zoom...",content:(0,N.jsxs)(Ji,{children:[(0,N.jsx)(Zi,{className:"diagram-editor__header__zoomer__dropdown__menu__item",onClick:()=>t.renderer.zoomToFit(),children:"Fit"}),(0,N.jsx)(Qi,{}),QE.map((e=>(0,N.jsxs)(Zi,{className:"diagram-editor__header__zoomer__dropdown__menu__item",onClick:s(e),children:[e,"%"]},e)))]}),menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:7},children:[(0,N.jsxs)("div",{className:"diagram-editor__header__dropdown__label diagram-editor__header__zoomer__dropdown__label",children:[Math.round(100*t.renderer.zoom),"%"]}),(0,N.jsx)("div",{className:"diagram-editor__header__dropdown__trigger diagram-editor__header__zoomer__dropdown__trigger",children:(0,N.jsx)(Un,{})})]}),(0,N.jsx)("div",{className:"diagram-editor__header__actions",children:(0,N.jsx)("button",{className:"diagram-editor__header__action",tabIndex:-1,onClick:()=>{(0,ke.gP)(n.loadFile(t.filePath,new Tf(t.filePath,t.fileLine,t.fileColumn))).catch(i.alertUnhandledError)},children:(0,N.jsx)(fn,{className:"diagram-editor__icon--go-to-file"})})})]})})),Sv=(0,It.PA)((e=>{const{diagramEditorState:t}=e,n=t.renderer,i=(e,t)=>()=>n.changeMode(e,t);return(0,N.jsxs)("div",{className:"diagram-editor__tools",children:[(0,N.jsx)("button",{className:(0,Rt.$)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===XE.LAYOUT}),tabIndex:-1,onClick:i(XE.LAYOUT,qE.NONE),title:"View Tool (V)",children:(0,N.jsx)(Li,{className:"diagram-editor__icon--layout"})}),(0,N.jsx)("button",{className:(0,Rt.$)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===XE.PAN}),tabIndex:-1,onClick:i(XE.PAN,qE.NONE),title:"Pan Tool (M)",children:(0,N.jsx)(Mi,{className:"diagram-editor__icon--pan"})}),(0,N.jsx)("button",{className:(0,Rt.$)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===XE.ZOOM_IN}),tabIndex:-1,title:"Zoom In (Z)",onClick:i(XE.ZOOM_IN,qE.NONE),children:(0,N.jsx)(Di,{className:"diagram-editor__icon--zoom-in"})}),(0,N.jsx)("button",{className:(0,Rt.$)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===XE.ZOOM_OUT}),tabIndex:-1,title:"Zoom Out (Z)",onClick:i(XE.ZOOM_OUT,qE.NONE),children:(0,N.jsx)(Fi,{className:"diagram-editor__icon--zoom-out"})})]})})),Av=(0,It.PA)((e=>{const{diagramEditorState:t}=e,n=(0,Gt.useRef)(null);return Kb(t),(0,N.jsxs)("div",{className:"diagram-editor",children:[(0,N.jsx)("div",{className:"diagram-editor__header",children:t.isDiagramRendererInitialized&&(0,N.jsx)(yv,{diagramEditorState:t})}),(0,N.jsx)("div",{className:"diagram-editor__content",children:(0,N.jsxs)("div",{className:"diagram-editor__stage",children:[t.isDiagramRendererInitialized&&(0,N.jsx)(Sv,{diagramEditorState:t}),(0,N.jsx)(Cv,{diagramEditorState:t,ref:n})]})})]})}));var Iv=n(2095),xv=n(4480);const wv="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/PanelDropZone.tsx",Ov=((0,It.PA)((0,Gt.forwardRef)((function(e,t){const{children:n,placeholder:i,showPlaceholder:s,className:o}=e;return(0,Et.jsxDEV)("div",{ref:t,className:(0,Rt.$)("dnd__entry__container",o),children:[s&&(0,Et.jsxDEV)("div",{className:"dnd__entry__placeholder",children:i?(0,Et.jsxDEV)(Et.Fragment,{children:i},void 0,!1,{fileName:wv,lineNumber:78,columnNumber:29},this):(0,Et.jsxDEV)("div",{className:"dnd__entry__placeholder__content"},void 0,!1,{fileName:wv,lineNumber:80,columnNumber:18},this)},void 0,!1,{fileName:wv,lineNumber:76,columnNumber:30},this),(0,Et.jsxDEV)(Et.Fragment,{children:n},void 0,!1,{fileName:wv,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:wv,lineNumber:74,columnNumber:13},this)}))),e=>{const{children:t,label:n,isDragOver:i,isDroppable:s,className:o}=e;return i||s?(0,Et.jsxDEV)("div",{className:(0,Rt.$)(["dnd__entry-dropzone__placeholder",o,{"dnd__entry-dropzone__placeholder--active":i,"dnd__entry-dropzone__placeholder--droppable":s}]),children:(0,Et.jsxDEV)("div",{className:"dnd__entry-dropzone__placeholder__content",children:(0,Et.jsxDEV)("div",{className:"dnd__entry-dropzone__placeholder__label",children:n??""},void 0,!1,{fileName:wv,lineNumber:133,columnNumber:11},void 0)},void 0,!1,{fileName:wv,lineNumber:132,columnNumber:9},void 0)},void 0,!1,{fileName:wv,lineNumber:121,columnNumber:13},void 0):(0,Et.jsxDEV)(Et.Fragment,{children:t},void 0,!1,{fileName:wv,lineNumber:140,columnNumber:9},void 0)});function Rv(e){const{labelGetter:t,types:n}=e,{itemType:i,item:s,isDragging:o,currentPosition:r}=(0,Iv.V)((e=>({itemType:e.getItemType(),item:e.getItem(),isDragging:e.isDragging(),currentPosition:e.getClientOffset()})));return o&&s&&i&&n.includes(i.toString())?(0,Et.jsxDEV)("div",{className:"dnd__drag-preview-layer",children:(0,Et.jsxDEV)("div",{className:"dnd__drag-preview-layer__content",style:r?{transform:`translate(${r.x/10+2}rem, ${r.y/10+1}rem)`}:{display:"none"},children:t(s)},void 0,!1,{fileName:wv,lineNumber:175,columnNumber:7},this)},void 0,!1,{fileName:wv,lineNumber:173,columnNumber:11},this):null}const kv="/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/TabManager.tsx",Pv=e=>{if(Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let t;e.stopPropagation(),t=0===e.deltaY?e.deltaY:e.deltaY<0?-Math.abs(e.deltaY):Math.abs(e.deltaY),e.currentTarget.scrollBy(t,0)},Lv=(0,It.PA)((e=>{const{tabState:t,managerTabState:n}=e;return(0,Et.jsxDEV)(Ji,{children:[(0,Et.jsxDEV)(Zi,{onClick:()=>n.closeTab(t),children:"Close"},void 0,!1,{fileName:kv,lineNumber:71,columnNumber:9},void 0),(0,Et.jsxDEV)(Zi,{disabled:n.tabs.length<2,onClick:()=>n.closeAllOtherTabs(t),children:"Close Others"},void 0,!1,{fileName:kv,lineNumber:72,columnNumber:9},void 0),(0,Et.jsxDEV)(Zi,{onClick:()=>n.closeAllTabs(),children:"Close All"},void 0,!1,{fileName:kv,lineNumber:78,columnNumber:9},void 0)]},void 0,!0,{fileName:kv,lineNumber:69,columnNumber:13},void 0)})),Mv=(0,It.PA)((e=>{const t=(0,Gt.useRef)(null),{tabManagerState:n,tabState:i,tabRenderer:s}=e,o=(0,Gt.useCallback)(((e,s)=>{const o=e.tab,r=i,a=n.tabs.findIndex((e=>e===o)),c=n.tabs.findIndex((e=>e===r)),l=t.current?.getBoundingClientRect(),d=((l?.left??0)-(l?.right??0))/2,u=(s.getClientOffset()?.x??0)-(l?.right??0);a<c&&u<d||a>c&&u>d||n.swapTabs(o,r)}),[n,i]),[{isBeingDraggedEditorPanel:r},a]=(0,bv.H)((()=>({accept:[n.dndType],hover:(e,t)=>o(e,t),collect:e=>({isBeingDraggedEditorPanel:e.getItem()?.tab})})),[o]),c=i===r,[,l,d]=(0,ob.i)((()=>({type:n.dndType,item:()=>({tab:i})})),[i,n]);return l(a(t)),(e=>{(0,Gt.useEffect)((()=>{e((0,xv.n)())}),[e])})(d),(0,Et.jsxDEV)("div",{ref:t,"data-testid":"tab-manager__tab",className:(0,Rt.$)("tab-manager__tab",{"tab-manager__tab--active":i===n.currentTab,"tab-manager__tab--dragged":c}),onMouseUp:(u=i,e=>{1===e.nativeEvent.button&&n.closeTab(u)}),children:(0,Et.jsxDEV)(Ov,{isDragOver:!1,className:"tab-manager__tab__dnd__placeholder",children:(0,Et.jsxDEV)(Xi,{content:(0,Et.jsxDEV)(Lv,{tabState:i,managerTabState:n},void 0,!1,{fileName:kv,lineNumber:181,columnNumber:22},void 0),className:"tab-manager__tab__content",children:[(0,Et.jsxDEV)("button",{className:"tab-manager__tab__label",tabIndex:-1,onClick:()=>n.openTab(i),title:i.description,children:s?.(i)??i.label},void 0,!1,{fileName:kv,lineNumber:189,columnNumber:13},void 0),(0,Et.jsxDEV)("button",{className:"tab-manager__tab__close-btn",onClick:()=>n.closeTab(i),tabIndex:-1,title:"Close",children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:kv,lineNumber:203,columnNumber:15},void 0)},void 0,!1,{fileName:kv,lineNumber:197,columnNumber:13},void 0)]},void 0,!0,{fileName:kv,lineNumber:180,columnNumber:11},void 0)},void 0,!1,{fileName:kv,lineNumber:176,columnNumber:9},void 0)},void 0,!1,{fileName:kv,lineNumber:166,columnNumber:13},void 0);var u})),Dv=(0,It.PA)((e=>{const{managerTabState:t}=e;return(0,Et.jsxDEV)(Tv,{className:"tab-manager__menu__toggler",title:"Show All Tabs",content:(0,Et.jsxDEV)(Ji,{className:"tab-manager__menu",children:t.tabs.map((e=>(0,Et.jsxDEV)(Zi,{className:(0,Rt.$)("tab-manager__menu__item",{"tab-manager__menu__item--active":e===t.currentTab}),onClick:()=>t.openTab(e),children:[(0,Et.jsxDEV)("div",{className:"tab-manager__menu__item__label",children:e.label},void 0,!1,{fileName:kv,lineNumber:229,columnNumber:15},void 0),(0,Et.jsxDEV)("div",{className:"tab-manager__menu__item__close-btn",onClick:n=>{n.stopPropagation(),t.closeTab(e)},tabIndex:-1,title:"Close",children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:kv,lineNumber:242,columnNumber:17},void 0)},void 0,!1,{fileName:kv,lineNumber:232,columnNumber:15},void 0)]},e.uuid,!0,{fileName:kv,lineNumber:220,columnNumber:52},void 0)))},void 0,!1,{fileName:kv,lineNumber:218,columnNumber:16},void 0),menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},children:(0,Et.jsxDEV)(xi,{},void 0,!1,{fileName:kv,lineNumber:253,columnNumber:7},void 0)},void 0,!1,{fileName:kv,lineNumber:214,columnNumber:11},void 0)})),Fv=(0,It.PA)((e=>{const{tabManagerState:t,tabRenderer:n}=e;return(0,Et.jsxDEV)("div",{className:"tab-manager",children:[(0,Et.jsxDEV)("div",{className:"tab-manager__content",onWheel:Pv,children:[t.tabs.map((e=>(0,Et.jsxDEV)(Mv,{tabState:e,tabManagerState:t,tabRenderer:n},e.uuid,!1,{fileName:kv,lineNumber:271,columnNumber:47},void 0))),(0,Et.jsxDEV)(Rv,{labelGetter:e=>e.tab.label,types:[t.dndType]},void 0,!1,{fileName:kv,lineNumber:279,columnNumber:11},void 0)]},void 0,!0,{fileName:kv,lineNumber:267,columnNumber:9},void 0),(0,Et.jsxDEV)(Dv,{managerTabState:t},void 0,!1,{fileName:kv,lineNumber:284,columnNumber:9},void 0)]},void 0,!0,{fileName:kv,lineNumber:265,columnNumber:13},void 0)})),Bv=()=>{const[e,t]=(0,Gt.useState)(!1),{ref:n,width:i,height:s}=(0,os.u)();return(0,Gt.useEffect)((()=>{t((i??0)>300&&(s??0)>150)}),[i,s]),(0,N.jsx)("div",{ref:n,className:"editor-group__splash-screen",children:(0,N.jsxs)("div",{className:(0,Rt.$)("editor-group__splash-screen__content",{"editor-group__splash-screen__content--hidden":!e}),children:[(0,N.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Run the go() function"}),(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:(0,N.jsx)("div",{className:"hotkey__key",children:"F9"})})]}),(0,N.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Run the full test suite"}),(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:(0,N.jsx)("div",{className:"hotkey__key",children:"F10"})})]}),(0,N.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Search for a file"}),(0,N.jsxs)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:[(0,N.jsx)("div",{className:"hotkey__key",children:"Ctrl"}),(0,N.jsx)("div",{className:"hotkey__plus",children:(0,N.jsx)(Hn,{})}),(0,N.jsx)("div",{className:"hotkey__key",children:"P"})]})]})]})})},jv=(0,It.PA)((()=>{const e=_N(),t=e.tabManagerState.currentTab;return t?(0,N.jsxs)("div",{className:"panel editor-group",children:[(0,N.jsxs)("div",{className:"panel__header editor-group__header",children:[(0,N.jsx)("div",{className:"editor-group__header__tabs",children:(0,N.jsx)(Fv,{tabManagerState:e.tabManagerState,tabRenderer:t=>{if(t instanceof Hf){const n=e.tabManagerState.tabs.filter((e=>e instanceof Hf&&e.fileName===t.fileName)).length>1;return(0,N.jsxs)("div",{className:"editor-group__header__tab",children:[(0,N.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,N.jsx)(Ni,{className:"editor-group__header__tab__icon--file"})}),(0,N.jsx)("div",{className:"editor-group__header__tab__label",children:t.fileName}),n&&(0,N.jsx)("div",{className:"editor-group__header__tab__path",children:t.filePath}),t.file.RO&&(0,N.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,N.jsx)(Bn,{className:"editor-group__header__tab__icon--readonly"})})]})}if(t instanceof nN){const n=e.tabManagerState.tabs.filter((e=>e instanceof nN&&e.diagramName===t.diagramName)).length>1;return(0,N.jsxs)("div",{className:"editor-group__header__tab",children:[(0,N.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,N.jsx)(Eb,{})}),(0,N.jsx)("div",{className:"editor-group__header__tab__label",children:t.diagramName}),n&&(0,N.jsx)("div",{className:"editor-group__header__tab__path",children:t.diagramPath})]})}return t.label}})}),(0,N.jsx)("div",{className:"panel__header__actions"})]}),(0,N.jsx)("div",{className:"panel__content editor-group__content",children:t instanceof Hf?t.textEditorState.language===hf.PURE?(0,N.jsx)(Nv,{editorState:t}):(0,N.jsx)(Jb,{editorState:t}):t instanceof nN?(0,N.jsx)(Av,{diagramEditorState:t}):null},t.uuid)]}):(0,N.jsx)(Bv,{})}));var Vv=n(4392),Hv=n(5551);const Gv="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/autocomplete/CustomSelectorInput.tsx",Uv=(Hv.Select.createFilter,e=>{const{options:t,children:n,getValue:i,selectProps:s}=e;let o=s.optionCustomization?.rowHeight??3.5*parseInt(getComputedStyle(document.documentElement).fontSize,10);o=isNaN(o)?35:o;const[r]=i(),a=t.indexOf(r)*o,c=n.length?n.findIndex((e=>e.props.isFocused)):0,l=(0,Gt.useRef)(null);return(0,Gt.useEffect)((()=>{l.current?.scrollToItem(c)}),[c]),n.length?(0,Et.jsxDEV)(Vv.Y1,{className:s.darkMode?"scrollbar--light selector-menu--dark":"",ref:l,width:"100%",height:Math.min(n.length,6)*o,itemCount:n.length,itemSize:o,initialScrollOffset:a,children:({index:e,style:t})=>(0,Et.jsxDEV)("div",{style:t,className:"selector-input__option-wrapper",children:n[e]},void 0,!1,{fileName:Gv,lineNumber:121,columnNumber:78},void 0)},void 0,!1,{fileName:Gv,lineNumber:109,columnNumber:13},void 0):(0,Et.jsxDEV)("div",{className:"selector-menu--no-match "+(s.darkMode?"selector-menu--dark":""),children:s.noMatchMessage??"No match found"},void 0,!1,{fileName:Gv,lineNumber:130,columnNumber:11},void 0)}),$v=e=>{const{children:t,selectProps:n}=e;return(0,Et.jsxDEV)(Hv.SelectComponents.Option,{...e,className:(0,Rt.$)(n.darkMode?{"selector-input--dark__option":!0,"selector-input--dark__option--is-focused":e.isFocused,"selector-input--dark__option--is-selected":e.isSelected}:{"selector-input__option":!0,"selector-input__option--is-focused":e.isFocused,"selector-input__option--is-selected":e.isSelected},{"selector-input__option--custom":Boolean(n.optionCustomization)}),children:t},void 0,!1,{fileName:Gv,lineNumber:152,columnNumber:11},void 0)},Yv="selector-input",Wv="selector-input--dark",zv=()=>(0,Et.jsxDEV)("div",{className:`${Yv}__indicator ${Yv}__loading-indicator ${Wv}__loading-indicator`,children:(0,Et.jsxDEV)(ai,{},void 0,!1,{fileName:Gv,lineNumber:186,columnNumber:5},void 0)},void 0,!1,{fileName:Gv,lineNumber:182,columnNumber:43},void 0),Kv=()=>(0,Et.jsxDEV)("div",{className:`${Yv}__indicator ${Yv}__dropdown-indicator`,children:(0,Et.jsxDEV)(Un,{},void 0,!1,{fileName:Gv,lineNumber:194,columnNumber:5},void 0)},void 0,!1,{fileName:Gv,lineNumber:190,columnNumber:44},void 0),Xv=e=>{const{innerProps:{ref:t,...n}}=e;return(0,Et.jsxDEV)("div",{...n,ref:t,children:(0,Et.jsxDEV)("div",{className:`${Yv}__indicator ${Yv}__clear-indicator`,children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:Gv,lineNumber:211,columnNumber:9},void 0)},void 0,!1,{fileName:Gv,lineNumber:208,columnNumber:7},void 0)},void 0,!1,{fileName:Gv,lineNumber:206,columnNumber:11},void 0)},qv=e=>{const t={onPaste:e.selectProps.onPaste,placeholder:e.selectProps.inputPlaceholder};return(0,Et.jsxDEV)(Hv.Select.components.Input,{...e,...t,isHidden:!1},void 0,!1,{fileName:Gv,lineNumber:232,columnNumber:11},void 0)},Jv=(0,Gt.forwardRef)((function(e,t){const{allowCreating:n,noMatchMessage:i,disabled:s,components:o,className:r,darkMode:a,hasError:c,...l}=e,d=n?Hv.CreatableSelect.default:Hv.Select.default,u=a?Wv:Yv;return(0,Et.jsxDEV)(d,{styles:{menuPortal:e=>({...e,zIndex:9999})},menuPortalTarget:document.body,ref:t,isDisabled:Boolean(s),className:(0,Rt.$)(u,r,{"selector-input--has-error":c,"selector-input--custom":Boolean(e.optionCustomization)}),classNamePrefix:u,components:{Option:$v,ClearIndicator:Xv,DropdownIndicator:Kv,LoadingIndicator:zv,MenuList:Uv,Input:qv,...o},...l,darkMode:a,noMatchMessage:i},void 0,!1,{fileName:Gv,lineNumber:294,columnNumber:11},this)})),Zv=(e,t)=>e.label.localeCompare(t.label),Qv=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.fileSearchCommandLoadState,i=e.fileSearchCommandState,s=(0,Gt.useRef)(null),o=(0,Gt.useMemo)((()=>(0,_s.A)((()=>{(0,ke.gP)(e.searchFile()).catch(t.alertUnhandledError)}),500)),[t,e]),r=()=>e.setOpenFileSearchCommand(!1);return(0,N.jsx)(Ot.A,{open:e.openFileSearchCommand,onClose:r,TransitionProps:{onEnter:()=>{s.current?.focus()}},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Open file"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)(Jv,{ref:s,className:"command-modal__content__input",options:e.fileSearchCommandResults.map((e=>({label:e,value:e}))).sort(Zv),onChange:n=>{n?.value&&(r(),i.reset(),(0,ke.gP)(e.loadFile(n.value)).catch(t.alertUnhandledError))},onInputChange:e=>{i.setText(e),o.cancel(),o()},placeholder:"Enter file name or path",escapeClearsValue:!0,darkMode:!t.layoutService.TEMPORARY__isLightColorThemeEnabled,isLoading:n.isInProgress}),(0,N.jsx)("button",{className:(0,Rt.$)("command-modal__content__config-btn btn--sm",{"command-modal__content__config-btn--toggled":i.isRegExp}),title:`Use Regular Expression (${i.isRegExp?"on":"off"})`,onClick:()=>i.setRegExp(!i.isRegExp),children:(0,N.jsx)(En,{})})]})]})})}));var eT;!function(e){e.MODE="mode",e.FAST_COMPILE="fastCompile"}(eT||(eT={}));const tT=(nT=(0,It.PA)((()=>{const e=_N(),t=$t(),{ref:n,width:i,height:s}=(0,os.u)(),o=FN(0===e.sideBarDisplayState.size,{onStopResize:t=>e.sideBarDisplayState.setSize(t.domElement.getBoundingClientRect().width),size:e.sideBarDisplayState.size}),r=FN(0===e.panelGroupDisplayState.size,{onStopResize:t=>e.panelGroupDisplayState.setSize(t.domElement.getBoundingClientRect().height),size:e.panelGroupDisplayState.size}),a=FN(e.panelGroupDisplayState.isMaximized);return(0,Gt.useEffect)((()=>{n.current&&e.panelGroupDisplayState.setMaxSize(n.current.offsetHeight)}),[e,n,s,i]),(0,Gt.useEffect)((()=>()=>{e.cleanUp()}),[e]),(0,Gt.useEffect)((()=>{(0,ke.gP)(e.initialize(!1,void 0,t.navigationService.navigator.getCurrentLocationParameterValue(eT.MODE),t.navigationService.navigator.getCurrentLocationParameterValue(eT.FAST_COMPILE))).catch(t.alertUnhandledError)}),[e,t]),(0,Gt.useEffect)((()=>(t.navigationService.navigator.blockNavigation([()=>!0],void 0,(()=>t.notificationService.notifyWarning("Navigation from the editor is blocked"))),()=>{t.navigationService.navigator.unblockNavigation()})),[e,t]),Kb(e),(0,N.jsxs)("div",{className:"ide",children:[(0,N.jsxs)("div",{className:"ide__body",children:[(0,N.jsx)(Yb,{}),(0,N.jsx)("div",{className:"ide__content-container",ref:n,children:(0,N.jsx)("div",{className:"ide__content",children:(0,N.jsxs)(MN,{orientation:"vertical",children:[(0,N.jsx)(BN,{...o.collapsiblePanel,direction:1,children:(0,N.jsx)(Gb,{})}),(0,N.jsx)(jN,{}),(0,N.jsx)(BN,{...o.remainingPanel,minSize:300,children:(0,N.jsxs)(MN,{orientation:"horizontal",children:[(0,N.jsx)(BN,{...a.collapsiblePanel,...0===e.panelGroupDisplayState.size?r.remainingPanel:{},children:(0,N.jsx)(jv,{})}),(0,N.jsx)(jN,{children:(0,N.jsx)(VN,{color:e.panelGroupDisplayState.isMaximized?"transparent":"var(--color-dark-grey-250)"})}),(0,N.jsx)(BN,{...r.collapsiblePanel,...e.panelGroupDisplayState.isMaximized?a.remainingPanel:{},direction:-1,children:(0,N.jsx)(sb,{})})]})})]})})})]}),(0,N.jsx)(zb,{}),(0,N.jsx)(Qv,{})]})})),function(){return(0,N.jsx)(fN,{children:(0,N.jsx)(nT,{})})});var nT;const iT="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/ApplicationFrameworkProvider.tsx",sT=(0,It.PA)((e=>{const{children:t}=e,n=V((0,Gt.useContext)(Mg),"Can't find application platform in context"),i=$t();return(0,Gt.useEffect)((()=>{i.initialize(n).catch(i.alertUnhandledError)}),[i,n]),i.initState.hasSucceeded?(0,Et.jsxDEV)(ws,{children:t},void 0,!1,{fileName:iT,lineNumber:41,columnNumber:13},void 0):(0,Et.jsxDEV)(Et.Fragment,{},void 0,!1,{fileName:iT,lineNumber:36,columnNumber:13},void 0)}));class oT{applicationStore;pluginManager;constructor(e){this.applicationStore=e,this.pluginManager=e.pluginManager}}const rT=(0,Gt.createContext)(void 0),aT=({children:e})=>{const t=$t(),n=(0,It.iz)((()=>new oT(t)));return(0,N.jsx)(rT.Provider,{value:n,children:e})},cT=({children:e})=>(0,N.jsx)(sT,{children:(0,N.jsx)(aT,{children:e})}),lT=e=>{const{baseUrl:t}=e;return(0,N.jsx)(Bg,{baseUrl:t,children:(0,N.jsx)(cT,{children:(0,N.jsx)(tT,{})})})},dT=JSON.parse('{"rE":"8.0.181","XO":{"m":"@finos/legend-application-pure-ide-plugin-core"}}');class uT extends go{_$nominalTypeBrand;install(e){e.registerApplicationPlugin(this)}}const pT={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 hT extends uT{static NAME=dT.XO.m;constructor(){super(hT.NAME,dT.rE)}getExtraApplicationSetups(){return[async e=>{var t,n;await(async e=>{const t=`Monospaced font '${tt}' has not been loaded properly, code editor might not display properly`;await Promise.all([400,700].map((e=>document.fonts.load(`${e} 1em ${tt}`)))).then((()=>{document.fonts.check(`1em ${tt}`)?Yg.editor.remeasureFonts():e.logService.error(u.create(me.APPLICATION_SETUP__FAILURE),t)})).catch((()=>e.logService.error(u.create(me.APPLICATION_SETUP__FAILURE),t)));const n="legend.code-editor.override-default-keybinding";Yg.editor.registerCommand(n,((t,...n)=>{e.keyboardShortcutsService.dispatch(n[0])}));const i=[[Yg.KeyCode.F1,"F1"],[Yg.KeyCode.F8,"F8"],[Yg.KeyCode.F9,"F9"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyG,"Control+KeyG"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyB,"Control+KeyB"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyO,"Control+KeyO"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyD,"Control+KeyD"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyP,"Control+KeyP"],[Yg.KeyMod.Shift|Yg.KeyCode.F10,"Shift+F10"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.F2,"Control+F2"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.F12,"Control+F12"]];Yg.editor.addKeybindingRules(i.map((([e,t])=>({keybinding:e,command:n,commandArgs:t})))),Yg.editor.defineTheme(tf.DEFAULT_DARK,nf),Yg.editor.defineTheme(tf.SOLARIZED_DARK,sf),Yg.editor.defineTheme(tf.GITHUB_DARK,of),Yg.editor.defineTheme(tf.GITHUB_DARK_DIMMED,rf),Yg.editor.defineTheme(tf.MATERIAL_DEFAULT,af),Yg.editor.defineTheme(tf.MATERIAL_DARKER,cf),Yg.editor.defineTheme(tf.ONE_DARK_PRO,lf),Yg.editor.defineTheme(tf.ONE_DARK_PRO_DARKER,df)})(e),t={extraKeywords:[sv]},Yg.languages.register({id:hf.PURE}),Yg.languages.setLanguageConfiguration(hf.PURE,pT),Yg.languages.setMonarchTokensProvider(hf.PURE,(n=t?.extraKeywords??[],{defaultToken:"invalid",tokenPostfix:".pure",keywords:[...n,"Schema","Table","Join","View","primaryKey","groupBy","mainTable","let","extends","true","false","projects",_E.CLASS,_E.ASSOCIATION,_E.ENUMERATION,_E.MEASURE,_E.PROFILE,_E.FUNCTION,_E.MAPPING,_E.RUNTIME,_E.CONNECTION,_E.FILE_GENERATION,_E.GENERATION_SPECIFICATION,_E.DATA_ELEMENT,EE.JSON_MODEL_CONNECTION,EE.MODEL_CHAIN_CONNECTION,EE.XML_MODEL_CONNECTION,"include","EnumerationMapping","Pure","AssociationMapping","XStore","AggregationAware",_E.SERVICE,_E.FLAT_DATA,_E.DATABASE,EE.FLAT_DATA_CONNECTION,EE.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]+/,$g.PARSER],[/(@identifier)/,{cases:{"@languageStructs":$g.LANGUAGE_STRUCT,"@keywords":`${$g.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]+\\$)))_":$g.TYPE,"@default":$g.IDENTIFIER}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":$g.OPERATOR,"@default":$g.IDENTIFIER}}],{include:"@number"},[/[;,.]/,$g.DELIMITER],[/'([^'\\]|\\.)*$/,`${$g.STRING}.invalid`],[/'/,$g.STRING,"@string"],{include:"@characters"}],pure:[[/(@package\*)/,[$g.PACKAGE]],[/(@package?)(@identifier)(@generics?)(\s*)(@multiplicity)/,[$g.PACKAGE,$g.TYPE,$g.GENERICS,$g.WHITESPACE,$g.MULTIPLICITY]],[/(@package)(@identifier)(@generics?)/,[$g.PACKAGE,$g.TYPE,$g.GENERICS]],[/([@^])(\s*)(@package?)(@identifier)(@generics?)(@multiplicity?)/,[`${$g.TYPE}.operator`,$g.WHITESPACE,$g.PACKAGE,$g.TYPE,$g.GENERICS,$g.MULTIPLICITY]],[/(\.\s*)(@identifier)/,[$g.DELIMITER,$g.PROPERTY]],[/(@identifier)(\s*=)/,[$g.PROPERTY,$g.OPERATOR]],[/(@identifier)(\.)(@identifier)/,[$g.TYPE,$g.OPERATOR,$g.PROPERTY]],[/(@identifier)(\s*:)/,[$g.PARAMETER,$g.OPERATOR]],[/(let)(\s+)(@identifier)(\s*=)/,[$g.KEYWORD,$g.WHITESPACE,$g.VARIABLE,$g.OPERATOR]],[/(\$@identifier)/,[`${$g.VARIABLE}.reference`]]],date:[[/(%latest)/,[`${$g.DATE}.latest`]],[/(@date)/,[$g.DATE]],[/(@time)/,[`${$g.DATE}.time`]]],color:[[/(#[0-9a-fA-F]{6})/,[$g.COLOR]]],number:[[/(@digits)[eE]([-+]?(@digits))?[fFdD]?/,`${$g.NUMBER}.float`],[/(@digits)\.(@digits)([eE][-+]?(@digits))?[fFdD]?/,`${$g.NUMBER}.float`],[/0[xX](@hexdigits)[Ll]?/,`${$g.NUMBER}.hex`],[/0(@octaldigits)[Ll]?/,`${$g.NUMBER}.octal`],[/0[bB](@binarydigits)[Ll]?/,`${$g.NUMBER}.binary`],[/(@digits)[fFdD]/,`${$g.NUMBER}.float`],[/(@digits)[lL]?/,$g.NUMBER]],whitespace:[[/[ \t\r\n]+/,$g.WHITESPACE],[/\/\*\*(?!\/)/,`${$g.COMMENT}.doc`,"@doc"],[/\/\*/,$g.COMMENT,"@comment"],[/\/\/.*$/,$g.COMMENT]],comment:[[/[^/*]+/,$g.COMMENT],[/\*\//,$g.COMMENT,"@pop"],[/[/*]/,$g.COMMENT]],doc:[[/[^/*]+/,`${$g.COMMENT}.doc`],[/\/\*/,`${$g.COMMENT}.doc.invalid`],[/\*\//,`${$g.COMMENT}.doc`,"@pop"],[/[/*]/,`${$g.COMMENT}.doc`]],string:[[/[^\\']+/,$g.STRING],[/@escapes/,`${$g.STRING}.escape`],[/\\./,`${$g.STRING}.escape.invalid`],[/'/,$g.STRING,"@pop"]],characters:[[/'[^\\']'/,$g.STRING],[/(')(@escapes)(')/,[$g.STRING,`${$g.STRING}.escape`,$g.STRING]],[/'/,`${$g.STRING}.invalid`]]}}))}]}getExtraKeyedCommandConfigEntries(){return[Pf,Ff,Mf].flatMap((e=>{return t=e,Object.entries(t).map((e=>({key:e[0],content:e[1]})));var t}))}}class mT extends po{static create(){const e=new mT(bo.create());return e.withBasePlugins([new fo,new hT]),e.withBasePresets([new xg]),e}async configureApplication(e){return new Eo(e)}async loadApplication(e){(0,b.H)((()=>{let e=document.getElementsByTagName(ho).length?document.getElementsByTagName(ho)[0]:void 0;return e||(e=document.createElement(ho),document.body.appendChild(e)),e.setAttribute("style","height: 100%; width: 100%; display: block"),e})()).render((0,N.jsx)(Yt,{store:e,children:(0,N.jsx)(lT,{baseUrl:this.baseAddress})}))}}class gT{static getPresetCollection(){return[]}static getPluginCollection(){return[new E]}static run(e){mT.create().setup({baseAddress:e}).withPresets(gT.getPresetCollection()).withPlugins(gT.getPluginCollection()).start().catch((e=>{throw e}))}}gT.run("/ide/")},5551:(e,t,n)=>{const i=n(1960),s=n(7002);e.exports={CreatableSelect:i,Select:s,SelectComponents:s.components}}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=i,o.amdO={},e=[],o.O=(t,n,i,s)=>{if(!n){var r=1/0;for(d=0;d<e.length;d++){for(var[n,i,s]=e[d],a=!0,c=0;c<n.length;c++)(!1&s||r>=s)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(a=!1,s<r&&(r=s));if(a){e.splice(d--,1);var l=i();void 0!==l&&(t=l)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[n,i,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,i){if(1&i&&(e=this(e)),8&i)return e;if("object"==typeof e&&e){if(4&i&&e.__esModule)return e;if(16&i&&"function"==typeof e.then)return e}var s=Object.create(null);o.r(s);var r={};t=t||[null,n({}),n([]),n(n)];for(var a=2&i&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>r[t]=()=>e[t]));return r.default=()=>e,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.e=()=>Promise.resolve(),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/ide/",(()=>{var e={57:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var i,s,[r,a,c]=n,l=0;if(r.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(c)var d=c(o)}for(t&&t(n);l<r.length;l++)s=r[l],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return o.O(d)},n=globalThis.webpackChunk_finos_legend_application_pure_ide_deployment=globalThis.webpackChunk_finos_legend_application_pure_ide_deployment||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[121],(()=>o(355)));r=o.O(r)})();
2
- //# sourceMappingURL=index.88b4efc5.js.map
1
+ (()=>{"use strict";var e,t,n,i={355:(e,t,n)=>{const i=JSON.parse('{"rE":"10.0.39","XO":{"Z":"@finos/legend-logger-plugin-web-console"}}');var s,o=n(2964);class r{name;version;signature;uuid}class a{name;version;uuid=(0,o.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 r;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class c{name;version;signature;uuid;plugins=[]}class l{name;version;uuid=(0,o.A)();plugins=[];constructor(e,t,n){this.name=e,this.version=t,this.plugins=n}getName(){return this.name}getVersion(){return this.version}getSignature(){return`${this.getName()}@${this.getVersion()}`}getUUID(){return this.uuid}getPlugins(){return[...this.plugins]}getInfo(){const e=new c;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e.plugins=this.plugins.map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name))),e}configure(e){return this}install(e){this.plugins.forEach((t=>t.install(e)))}}class d{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"}(s||(s={}));class u{channel;name;timestamp=Date.now();static create(e){const t=new u;return t.name=e,t}}class p extends a{level=s.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=s.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=s.INFO&&this._info(e,...t)}warn(e,...t){this.level<=s.WARN&&this._warn(e,...t)}error(e,...t){this.level<=s.ERROR&&this._error(e,...t)}}class h{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:m,info:g,warn:f,error:_}=console;class E extends p{constructor(){super(i.XO.Z,i.rE)}_debug(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){f(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){_(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var N=n(1085),b=n(5873),v=n(4417),T=n(4365);const C=e=>e.constructor,y=()=>()=>{},S=e=>e.length?e[0]:void 0,A=e=>e.length?e[e.length-1]:void 0,I=e=>new Promise(((t,n)=>setTimeout((()=>{try{t(e())}catch(e){n(e)}}),0))),x=(e,t,n=((e,t)=>e===t))=>!e.find((e=>n(e,t)))&&(e.push(t),!0),w=(e,t,n,i=((e,t)=>e===t))=>{const s=e.findIndex((e=>i(e,t))),o=e.findIndex((e=>i(e,n)));return-1!==s&&-1!==o&&(e[s]=n,e[o]=t,!0)},O=(e,t,n=((e,t)=>e===t))=>{const i=e.findIndex((e=>n(e,t)));return-1!==i&&(e.splice(i,1),!0)};class R extends Error{uuid=(0,o.A)();constructor(e){super(),this.message=void 0===e||""===e?"(no error message)":e}get detail(){return this.message}}class k 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 P extends k{constructor(e){super("Illegal State Error [PLEASE NOTIFY DEVELOPER]",e)}}class L extends k{constructor(e,t){super("Unsupported Operation Error",e||t?`${e}${t?`\n${((e,t)=>{const n=(i={printFunctionName:!1,maxDepth:t?.deep?void 0:1},(0,v.A)(i,(e=>void 0!==e)));var i;return(0,T.GP)(e,n).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,(e=>["[Array]","[Function]"].includes(e)?e:"[Object]"))})(t)}`:""}`:void 0)}}function M(e){if(!(e instanceof Error))throw new P("Expected error to be thrown")}const D=e=>{try{return e()}catch{return}};class F extends k{constructor(e,t){super("Assertion Error",e,t)}}const B=e=>null!=e;function j(e,t=""){if(null==e)throw new F(t||"Value is nullable")}const V=(e,t="")=>(j(e,t),e),H=(e,t)=>e instanceof t,G=e=>t=>H(t,e);function U(e,t,n=""){if(!(e instanceof t))throw new F(n||`Value is expected to be of type '${t.name}'`)}const $=(e,t,n="")=>(U(e,t,n),e);function Y(e,t=""){if(""===V(e,t))throw new F(t||"Expected string value to be non-empty")}function W(e,t=""){return Y(e,t),e}function z(e,t=""){if(!e)throw new F(t||"Expected predicate to be truthy")}const K=e=>"string"==typeof e,X=e=>"number"==typeof e&&!isNaN(e),q=e=>"boolean"==typeof e,J=e=>"object"==typeof e&&null!==e;var Z=n(6651),Q=n(6046),ee=n(6451),te=n(8041);const ne=Z.v,ie="charset=utf-8";var se,oe,re;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(se||(se={})),function(e){e.APPLICATION_JSON="application/json",e.APPLICATION_XML="application/xml",e.APPLICATION_ZLIB="application/zlib",e.TEXT_PLAIN="text/plain",e.TEXT_CSV="text/csv",e.ALL="*/*"}(oe||(oe={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(re||(re={}));const ae={mode:"cors",credentials:"include",redirect:"follow"},ce=(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 le 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:i,url:s}=e,o=`Received response with status ${n} (${i}) for ${s}`;this.message=(t?(e=>{if(J(e))return K(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&K(t.message)?t.message:e})(t).substring(0,5e3):"")||o,this.payload=t}}const de=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 le(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===ne.NO_CONTENT)return Promise.resolve(void 0);const i=t.headers.Accept;switch(i){case oe.APPLICATION_JSON:return e.json();case oe.TEXT_PLAIN:return e.text();default:return Promise.reject(new le(e,`Can't process response for request with Content-Type '${i}'`))}},ue=(e,t)=>{const n={};return n.Accept=oe.APPLICATION_JSON,e!==re.GET&&(n[se.CONTENT_TYPE]=`${oe.APPLICATION_JSON};${ie}`),ce(n,t)};class pe{options={};baseUrl;constructor(e){this.baseUrl=e?.baseUrl,this.options={...ae,...e?.options??{}}}async get(e,t={},n,i,s,o){return this.request(re.GET,e,void 0,t,n,i,s,o)}async put(e,t={},n={},i,s,o,r){return this.request(re.PUT,e,t,n,i,s,o,r)}async post(e,t={},n={},i,s,o,r){return this.request(re.POST,e,t,n,i,s,o,r)}async delete(e,t={},n={},i,s,o,r){return this.request(re.DELETE,e,t,n,i,s,o,r)}async request(e,t,n,i,s,o,r,a){const c=((e,t,n)=>{if(!e&&!D((()=>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 i=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(B).forEach((t=>i.searchParams.append(e,t.toString()))):i.searchParams.append(e,t.toString()))})),i.toString()})(this.baseUrl,t,o??{});let l;if((K(n)||J(n))&&r?.enableCompression&&(z(e!==re.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,Q.Kc)(J(e)?JSON.stringify(e):e)]))(n),s=ce(s,{[se.CONTENT_TYPE]:`${oe.APPLICATION_ZLIB};${ie}`})),void 0!==n)if(K(n)||n instanceof Blob)l=n;else{if(!J(n))throw new F("Request body can only be either a 'string' or an 'object'");l=JSON.stringify(n)}const d={...this.options,...i,method:e,body:l,headers:ue(e,s)};return fetch(c,d).then((e=>0===e.status||e.status===ne.UNAUTHORIZED?a?.autoReAuthenticateUrl?(e=>new Promise((t=>{const n="AUTO_AUTHENTICATION_IFRAME",i=document.getElementById(n);i?.remove();const s=document.createElement("iframe");s.id=n,s.src=e,s.style.display="none",s.addEventListener("load",(()=>{s.remove(),t()})),document.body.appendChild(s)})))(a.autoReAuthenticateUrl).then((()=>fetch(c,d))).then((e=>de(e,d,a))):fetch(c,d).then((e=>de(e,d,a))):de(e,d,a))).catch((e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(c,d).then((e=>de(e,d,a))):Promise.reject(e)))}}const he=(e,t,n)=>{const i=new Blob([t],{type:n}),s=URL.createObjectURL(i),o=document.createElement("a");"string"==typeof o.download?(document.body.appendChild(o),o.download=e,o.href=s,o.click(),document.body.removeChild(o)):location.replace(s)};var me;!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.DEVELOPMENT_ISSUE="development.issue",e.APPLICATION_CONTEXT__ACCESS="application.context.access",e.APPLICATION_USAGE__INTERRUPT="application.usage.interrupt",e.APPLICATION_TELEMETRY_EVENT__FAILURE="application.telemetry-event.failure"}(me||(me={}));var ge=n(7542);class fe{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,v.A)(t,(e=>null!==e))):e);var t}}const _e=e=>(0,ge.Ie)((t=>void 0===t?ge._Z:(0,ge.lK)(e,t)),(t=>(0,ge.iu)(e,t))),Ee=e=>(0,ge.Ie)((()=>e),(()=>e)),Ne=(e,t)=>(0,ge.Ie)((t=>t?e(t):ge._Z),(e=>e?t(e):ge._Z)),be=e=>(0,ge.Ie)((t=>t?(0,ge.lK)(e,t):ge._Z),(t=>t?(0,ge.iu)(e,t):ge._Z)),ve=(e,t,n)=>Array.isArray(e)?e.map(t):n?.skipIfEmpty?ge._Z:[],Te=(e,t,n)=>Array.isArray(e)?e.length?e.map((e=>t(e))):n?.skipIfEmpty?ge._Z:[]:ge._Z,Ce=(e,t)=>(0,ge.Ie)((n=>Te(n,(t=>(0,ge.lK)(e,t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:t?.INTERNAL__forceReturnEmptyInTest})),(t=>ve(t,(t=>(0,ge.iu)(e,t)),{skipIfEmpty:!1}))),ye=(e,t,n)=>(0,ge.Ie)((t=>Te(t,(t=>e(t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:n?.INTERNAL__forceReturnEmptyInTest})),(e=>ve(e,(e=>t(e)),{skipIfEmpty:!1}))),Se=e=>ye((e=>e),(e=>e),e);var Ae=n(6696);class Ie{key;markdownText;title;text;url;related;static serialization=new fe((0,ge.PL)(Ie,{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=Ie.serialization.fromJson(e);return n.key=t,n}}const xe=e=>Object.entries(e).map((e=>({key:e[0],content:Ie.create(e[1],e[0])})));class we{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(u.create(me.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,Ae.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(u.create(me.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(u.create(me.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]=Ie.serialization.toJson(t)})),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach(((t,n)=>{e[n]=t.key})),e}}var Oe,Re,ke=n(3794);!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Oe||(Oe={}));class Pe{state;_message;_messageFormatter;constructor(){this.state=Oe.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Oe.INITIAL,this}inProgress(){return this.state=Oe.IN_PROGRESS,this}fail(){return this.state=Oe.FAILED,this}pass(){return this.state=Oe.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===Oe.INITIAL}get isInProgress(){return this.state===Oe.IN_PROGRESS}get hasFailed(){return this.state===Oe.FAILED}get hasSucceeded(){return this.state===Oe.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,ke.Gn)(new Pe,{state:ke.sH,_message:ke.sH,reset:ke.XI,inProgress:ke.XI,pass:ke.XI,fail:ke.XI,complete:ke.XI,setMessage:ke.XI,sync:ke.XI,isInInitialState:ke.EW,isInProgress:ke.EW,hasFailed:ke.EW,hasSucceeded:ke.EW,hasCompleted:ke.EW,message:ke.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"}(Re||(Re={}));class Le{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 Me{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,i){const s=new Le;return e&&s.setup(this.plugins.map((s=>{const o=s.createClientSpan(e);return{clientSpan:o,serverSpan:s.createServerSpan(o,t,n,i),plugin:s}}))),s}}const De=n(7102).A;var Fe,Be;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(Fe||(Fe={}));class je{currentMode=Fe.STANDARD;onSearchModeChange;constructor(e){(0,ke.Gn)(this,{currentMode:ke.sH,isAdvancedSearchActive:ke.EW,setCurrentMode:ke.XI}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==Fe.STANDARD}generateSearchText(e){switch(this.currentMode){case Fe.INCLUDE:return`'"${e}"`;case Fe.EXACT:return`="${e}"`;case Fe.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(Be||(Be={}));class Ve{uuid=(0,o.A)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,ke.Gn)(this,{isOpen:ke.sH,setIsOpen:ke.XI}),this.documentationKey=e.key,this.title=W(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class He{uuid=(0,o.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 Ge=e=>Boolean(e.title&&(e.url??e.text??e.markdownText));class Ue{applicationStore;panelRenderingKey=(0,o.A)();isHidden=!0;isOpen=!1;isPanelMaximized=!1;selectedTab=Be.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=Pe.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,ke.Gn)(this,{isHidden:ke.sH,isOpen:ke.sH,isPanelMaximized:ke.sH,panelRenderingKey:ke.sH,isOverSearchLimit:ke.sH,selectedTab:ke.sH,searchText:ke.sH,searchResults:ke.sH,currentDocumentationEntry:ke.sH,showSearchConfigurationMenu:ke.sH,currentContextualDocumentationEntry:ke.EW,setIsHidden:ke.XI,setIsOpen:ke.XI,setIsPanelMaximized:ke.XI,setSelectedTab:ke.XI,setSearchText:ke.XI,resetSearch:ke.XI,search:ke.XI,openDocumentationEntry:ke.XI,refreshPanelRendering:ke.XI,setShowSearchConfigurationMenu:ke.XI}),this.applicationStore=e,this.searchEngine=new De(this.applicationStore.documentationService.getAllDocEntries().filter(Ge),{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 je((()=>{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 He(e,t,(t.related??[]).map((e=>this.applicationStore.documentationService.getDocEntry(e))).filter(B).filter(Ge).map((e=>new Ve(e)))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new Ve(t),this.currentDocumentationEntry.setIsOpen(!0),this.resetSearch())}openDocumentationEntryLink(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&((e=>Ge(e)&&Boolean(e.text??e.markdownText))(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,o.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 Ve(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 $e{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach((n=>n.notify(e,t)))}}class Ye{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(me.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(me.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(me.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(me.APPLICATION_USAGE__INTERRUPT,{})}}class We{applicationStore;contextStack=[];constructor(e){(0,ke.Gn)(this,{contextStack:ke.sH,currentContext:ke.EW,push:ke.XI,pop:ke.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 P(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[])).includes(e.key)&&Ye.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 ze{applicationStore;commandRegistry=new Map;constructor(e){(0,ke.Gn)(this,{commandRegistry:ke.sH,registerCommand:ke.XI,deregisterCommand:ke.XI}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(u.create(me.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 Ke{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,ke.Gn)(this,{keyMap:ke.sH,commandKeyMap:ke.sH,isHotkeysBlocked:ke.sH,addHotkey:ke.XI,blockGlobalHotkeys:ke.XI,unblockGlobalHotkeys:ke.XI}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedCommandConfigEntries?.()??[])).forEach((e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(B);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 Xe=n(4594),qe=n(2338),Je=n(4462),Ze=n(720),Qe=n(5974),et=n(382);const tt="Roboto Mono",nt="yyyy-MM-dd'T'HH:mm:ss";var it;!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=""}(it||(it={}));const st=(e,t)=>`[${e};${t}H`;class ot{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,ke.Gn)(this,{searchText:ke.sH,useRegex:ke.sH,matchWholeWord:ke.sH,matchCaseSensitive:ke.sH,resultCount:ke.sH,currentResultIndex:ke.sH})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class rt{applicationStore;searchConfig=new ot;constructor(e){(0,ke.Gn)(this,{setSearchText:ke.XI,setSearchRegex:ke.XI,setSearchWholeWord:ke.XI,setSearchCaseSensitive:ke.XI,setSearchResultCount:ke.XI,setSearchCurrentResultIndex:ke.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 at extends rt{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,ke.Gn)(this,{preserveLog:ke.sH,setPreserveLog:ke.XI})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var ct=n(9481),lt=n(4404);n(1880);const dt=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,ut=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],pt=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,(e=>ut.includes(e.toLowerCase())?e.toLowerCase():dt(e))).replace(/^(?:\w+)\b/u,(e=>dt(e))).replace(/\b(?:\w+)$/u,(e=>dt(e))),ht=e=>{try{return((e,t=2)=>{try{return((e,t,n)=>{const i=(0,lt.As)(e,void 0,n);return j(i,"Can't stringify lossless JSON value"),i})((0,lt.qg)(e),0,t)}catch{return e}})(e,0)}catch{return e.replace(/\n\s*/g,"")}};var mt;function gt(e){return e.trim().split(" ").map((e=>{const t=e.split(/\b\+/),n=V(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"}(mt||(mt={}));const ft=(e,t)=>t.key===e.code&&t.modifiers.every((t=>e.getModifierState(t)))&&![mt.SHIFT,mt.META,mt.ALT,mt.CONTROL].find((n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n))),_t=(e,t)=>ft(e,V(gt(t)[0]));var Et=n(2207),Nt=n(7063),bt=n(2285),vt=n(5844);const Tt="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/utils/LegendStyleProvider.tsx",Ct=(0,Nt.A)({transitions:{create:()=>"none"}}),yt=e=>{const{children:t}=e;return(0,Et.jsxDEV)(bt.A,{injectFirst:!0,children:(0,Et.jsxDEV)(vt.A,{theme:Ct,children:t},void 0,!1,{fileName:Tt,lineNumber:42,columnNumber:7},void 0)},void 0,!1,{fileName:Tt,lineNumber:37,columnNumber:11},void 0)};var St=n(6112),At=n(3432),It=n(5150),xt=n(3737),wt=n(692),Ot=n(3416),Rt=n(4357);const kt=(e,t)=>{const n=e=>{const{children:n,className:i}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)(t,i),"data-testid":e["data-testid"],children:n},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/utils/ComponentCreatorUtils.tsx",lineNumber:32,columnNumber:13},void 0)};return n.displayName=e,n},Pt="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/dialog/Modal.tsx",Lt=e=>{const{children:t,darkMode:n,className:i}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("modal",{"modal--dark":n},i),children:t},void 0,!1,{fileName:Pt,lineNumber:27,columnNumber:11},void 0)},Mt=e=>{const{title:t,icon:n,className:i}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("modal__title",i),children:[n&&(0,Et.jsxDEV)("div",{className:"modal__title__icon",children:n},void 0,!1,{fileName:Pt,lineNumber:42,columnNumber:15},void 0),(0,Et.jsxDEV)("div",{className:"modal__title__label",children:pt(t)},void 0,!1,{fileName:Pt,lineNumber:43,columnNumber:7},void 0)]},void 0,!0,{fileName:Pt,lineNumber:40,columnNumber:11},void 0)},Dt=e=>{const{title:t,children:n,className:i}=e;return!n&&t?(0,Et.jsxDEV)("div",{className:(0,Rt.$)("modal__header",i),children:(0,Et.jsxDEV)(Mt,{title:t},void 0,!1,{fileName:Pt,lineNumber:58,columnNumber:9},void 0)},void 0,!1,{fileName:Pt,lineNumber:56,columnNumber:13},void 0):(0,Et.jsxDEV)("div",{className:(0,Rt.$)("modal__header",i),children:n},void 0,!1,{fileName:Pt,lineNumber:62,columnNumber:9},void 0)},Ft=(kt("ModalHeaderActions","modal__header__actions"),kt("ModalBody","modal__body")),Bt=kt("ModalFooter","modal__footer");var jt,Vt;kt("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION"}(jt||(jt={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(Vt||(Vt={}));class Ht{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,ke.Gn)(this,{blockingAlertInfo:ke.sH,actionAlertInfo:ke.sH,setBlockingAlert:ke.XI,setActionAlertInfo:ke.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 Gt=n(4041);const Ut=(0,Gt.createContext)(void 0),$t=()=>V((0,Gt.useContext)(Ut),"Can't find application store in context"),Yt=({children:e,store:t})=>{const n=(0,It.iz)((()=>t));return(0,Et.jsxDEV)(Ut.Provider,{value:n,children:e},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/ApplicationStoreProvider.tsx",lineNumber:52,columnNumber:11},void 0)},Wt="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/ActionAlert.tsx",zt=e=>{switch(e){case Vt.PROCEED_WITH_CAUTION:return"btn--caution";case Vt.PROCEED:case Vt.STANDARD:default:return"btn--dark"}},Kt=(0,It.PA)((e=>{const{info:t}=e,n=$t(),{title:i,message:s,prompt:o,type:r,onClose:a,onEnter:c,actions:l}=t,d=()=>{a?.(),n.alertService.setActionAlertInfo(void 0)};return(0,Et.jsxDEV)(Ot.A,{open:Boolean(n.alertService.actionAlertInfo),onClose:y,TransitionProps:{onEnter:()=>c?.()},children:(0,Et.jsxDEV)("form",{onSubmit:e=>{e.preventDefault(),l.find((e=>e.default))?.handler?.(),d()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(r??jt.STANDARD).toLowerCase()}`,children:[i&&(0,Et.jsxDEV)(Dt,{title:i},void 0,!1,{fileName:Wt,lineNumber:69,columnNumber:18},void 0),(0,Et.jsxDEV)(Ft,{children:[(0,Et.jsxDEV)("div",{className:"blocking-alert__summary-text",children:s},void 0,!1,{fileName:Wt,lineNumber:71,columnNumber:11},void 0),(0,Et.jsxDEV)("div",{className:"blocking-alert__prompt-text",children:o},void 0,!1,{fileName:Wt,lineNumber:72,columnNumber:11},void 0)]},void 0,!0,{fileName:Wt,lineNumber:70,columnNumber:9},void 0),(0,Et.jsxDEV)(Bt,{children:[l.map(((e,t)=>(0,Et.jsxDEV)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${zt(e.type??Vt.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),d()},autoFocus:Boolean(e.default),children:e.label},t,!1,{fileName:Wt,lineNumber:86,columnNumber:21},void 0))),!l.length&&(0,Et.jsxDEV)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:d,children:"Cancel"},void 0,!1,{fileName:Wt,lineNumber:102,columnNumber:32},void 0)]},void 0,!0,{fileName:Wt,lineNumber:74,columnNumber:9},void 0)]},void 0,!0,{fileName:Wt,lineNumber:60,columnNumber:7},void 0)},void 0,!1,{fileName:Wt,lineNumber:52,columnNumber:11},void 0)})),Xt=(0,It.PA)((()=>{const e=$t().alertService.actionAlertInfo;return e?(0,Et.jsxDEV)(Kt,{info:e},void 0,!1,{fileName:Wt,lineNumber:124,columnNumber:9},void 0):null})),qt=e=>{const{isLoading:t,className:n}=e,i=(0,Gt.useRef)(null);return(0,Gt.useEffect)((()=>{i.current&&(t?i.current.parentElement?.classList.add("panel-loading-indicator__container"):i.current.parentElement?.classList.remove("panel-loading-indicator__container"))}),[t]),(0,Et.jsxDEV)("div",{ref:i,className:(0,Rt.$)(n,"panel-loading-indicator"+(t?"":"--disabled"))},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/PanelLoadingIndicator.tsx",lineNumber:41,columnNumber:11},void 0)},Jt="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/BlockingAlert.tsx",Zt=(0,It.PA)((()=>{const e=$t(),t=e.alertService.blockingAlertInfo;return t?(0,Et.jsxDEV)(Ot.A,{open:Boolean(t),onClose:y,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,Et.jsxDEV)(Lt,{darkMode:!e.layoutService.TEMPORARY__isLightColorThemeEnabled,className:"blocking-alert",children:[(0,Et.jsxDEV)(qt,{isLoading:Boolean(t.showLoading)},void 0,!1,{fileName:Jt,lineNumber:54,columnNumber:9},void 0),(0,Et.jsxDEV)(Ft,{children:[(0,Et.jsxDEV)("div",{className:"blocking-alert__message",children:t.message},void 0,!1,{fileName:Jt,lineNumber:56,columnNumber:11},void 0),t.prompt&&(0,Et.jsxDEV)("div",{className:"blocking-alert__message__prompt",children:t.prompt},void 0,!1,{fileName:Jt,lineNumber:57,columnNumber:28},void 0)]},void 0,!0,{fileName:Jt,lineNumber:55,columnNumber:9},void 0)]},void 0,!0,{fileName:Jt,lineNumber:48,columnNumber:7},void 0)},void 0,!1,{fileName:Jt,lineNumber:39,columnNumber:11},void 0):null}));var Qt=n(9787),en=n(5314),tn=n(4269),nn=n(9896),sn=n(431),on=n(6750),rn=n(7997),an=n(6819),cn=n(5250),ln=n(3318);const dn=Qt.nvT,un=en.joZ,pn=en.OAW,hn=en.RCA,mn=en.E1y,gn=tn.LkA,fn=tn.EiC,_n=tn.RQJ,En=tn.MYw,Nn=tn.ZCl,bn=tn.suX,vn=tn.Xv9,Tn=tn.xoW,Cn=tn.z6b,yn=tn.kkD,Sn=nn.QRP,An=nn.WnZ,In=nn.q$s,xn=nn.UHp,wn=nn.$15,On=nn.qt6,Rn=nn.UJh,kn=nn.HLi,Pn=nn.JpF,Ln=nn.r$n,Mn=sn.GaR,Dn=on.OKX,Fn=on.hO$,Bn=on.JhU,jn=on.QCr,Vn=on._Hm,Hn=on.OiG,Gn=on.Pcn,Un=on.z44,$n=on.$qz,Yn=on.Hcz,Wn=on.Kni,zn=on.gZZ,Kn=on.__w,Xn=on.Wsx,qn=on.A4L,Jn=on.gSK,Zn=on.QyA,Qn=on.E4Q,ei=on.KSO,ti=on.svy,ni=on.UnJ,ii=on.qbC,si=on.A7C,oi=on.BS8,ri=on.KRc,ai=on.q7G,ci=on._AH,li=on.Ph,di=on.$TP,ui=on.uCC,pi=on.iuJ,hi=on.g1V,mi=on.M1W,gi=on.TNq,fi=on.Rqy,_i=on.Su4,Ei=on.zU_,Ni=on.t69,bi=on.kxO,vi=on.vq8,Ti=on.GfC,Ci=on.SoL,yi=on.Wx3,Si=on.nBS,Ai=rn.f7n,Ii=rn.Lun,xi=an.oss,wi=an.Br,Oi=an.YZI,Ri=an.D9N,ki=cn.BMQ,Pi=ln.est,Li=ln._cq,Mi=ln.PfQ,Di=ln._wx,Fi=ln.lIm;var Bi=n(5473),ji=n(8960);const Vi=6e3;var Hi;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(Hi||(Hi={}));class Gi{severity;message;actions;autoHideDuration;constructor(e,t,n,i){this.severity=e,this.message=t,this.actions=n,this.autoHideDuration=i}}class Ui{notification;constructor(){(0,ke.Gn)(this,{notification:ke.sH,setNotification:ke.XI,notify:ke.XI,notifySuccess:ke.XI,notifyWarning:ke.XI,notifyIllegalState:ke.XI,notifyError:ke.XI})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new Gi(Hi.INFO,e,t??[],null===n?void 0:n??Vi))}notifySuccess(e,t,n){this.setNotification(new Gi(Hi.SUCCESS,e,t??[],null===n?void 0:n??Vi))}notifyWarning(e,t,n){this.setNotification(new Gi(Hi.WARNING,e instanceof Error?e.message:e,t??[],null===n?void 0:n??Vi))}notifyError(e,t){let n;e instanceof R?n=e.detail:e instanceof Error?n=e.message:(z(K(e),"Can't display error"),n=e),n&&this.setNotification(new Gi(Hi.ERROR,n,t??[],void 0))}notifyIllegalState(e,t,n){this.setNotification(new Gi(Hi.ILEGAL_STATE,K(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t??[],null===n?void 0:n??Vi))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return M(e),this.notifyIllegalState(e.message),t}}}const $i="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/NotificationManager.tsx",Yi=(0,It.PA)((()=>{const e=$t(),t=e.notificationService.notification,n=Boolean(t),i=t?.message??"",s=t?.severity??Hi.INFO,[o,r]=(0,Gt.useState)(!1);let a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,Et.jsxDEV)(Kn,{},void 0,!1,{fileName:$i,lineNumber:48,columnNumber:7},void 0)},void 0,!1,{fileName:$i,lineNumber:46,columnNumber:27},void 0);switch(s){case Hi.ILEGAL_STATE:a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,Et.jsxDEV)(ri,{},void 0,!1,{fileName:$i,lineNumber:55,columnNumber:11},void 0)},void 0,!1,{fileName:$i,lineNumber:53,columnNumber:27},void 0);break;case Hi.ERROR:a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,Et.jsxDEV)(Vn,{},void 0,!1,{fileName:$i,lineNumber:62,columnNumber:11},void 0)},void 0,!1,{fileName:$i,lineNumber:60,columnNumber:27},void 0);break;case Hi.WARNING:a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,Et.jsxDEV)(oi,{},void 0,!1,{fileName:$i,lineNumber:69,columnNumber:11},void 0)},void 0,!1,{fileName:$i,lineNumber:67,columnNumber:27},void 0);break;case Hi.SUCCESS:a=(0,Et.jsxDEV)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,Et.jsxDEV)(si,{},void 0,!1,{fileName:$i,lineNumber:76,columnNumber:11},void 0)},void 0,!1,{fileName:$i,lineNumber:74,columnNumber:27},void 0)}const c=()=>{e.notificationService.setNotification(void 0),r(!1)},l=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(i)));return(0,Et.jsxDEV)(Bi.A,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:Vi,onClose:(e,t)=>{"timeout"===t&&c()},children:(0,Et.jsxDEV)(ji.A,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,Et.jsxDEV)("div",{className:"notification__message__content",children:[a,(0,Et.jsxDEV)("div",{className:(0,Rt.$)("notification__message__content__text",{"notification__message__content__text--expanded":o}),onClick:l,title:"Click to Copy",children:i},void 0,!1,{fileName:$i,lineNumber:140,columnNumber:13},void 0)]},void 0,!0,{fileName:$i,lineNumber:137,columnNumber:18},void 0),action:[(0,Et.jsxDEV)("button",{className:"notification__action",onClick:()=>r(!o),tabIndex:-1,title:o?"Collapse":"Expand",children:o?(0,Et.jsxDEV)(xi,{},void 0,!1,{fileName:$i,lineNumber:159,columnNumber:26},void 0):(0,Et.jsxDEV)(wi,{},void 0,!1,{fileName:$i,lineNumber:159,columnNumber:48},void 0)},"expand",!1,{fileName:$i,lineNumber:151,columnNumber:18},void 0),(0,Et.jsxDEV)("button",{className:"notification__action",onClick:c,tabIndex:-1,title:"Dismiss",children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:$i,lineNumber:168,columnNumber:13},void 0)},"close",!1,{fileName:$i,lineNumber:160,columnNumber:21},void 0)]},void 0,!1,{fileName:$i,lineNumber:131,columnNumber:7},void 0)},"string"==typeof i||"number"==typeof i?i:"",!1,{fileName:$i,lineNumber:104,columnNumber:11},void 0)}));var Wi=n(1218);const zi=e=>{const{children:t,classes:n,...i}=e;return(0,Et.jsxDEV)(Wi.A,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...i,children:e.children},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/menu/BaseMenu.tsx",lineNumber:22,columnNumber:11},void 0)},Ki="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/menu/ContextMenu.tsx",Xi=e=>{const{className:t,children:n,menuProps:i,content:s,disabled:o,onClose:r,onOpen:a}=e,c=(0,Gt.useRef)(null),[l,d]=(0,Gt.useState)(!1),[u,p]=(0,Gt.useState)(),[h,m]=(0,Gt.useState)(0),[g,f]=(0,Gt.useState)(0),_=()=>{p(void 0),d(!1),f(0),m(0)},E=e=>{e.stopPropagation(),e.preventDefault(),_(),r?.()},N=e=>{if(e.stopPropagation(),e.preventDefault(),!o&&(a?.(),c.current)){const t=c.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),i=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:s,clientY:o,target:a}=e,l=a;if(u!==l&&!(document.elementsFromPoint(s,o).some((e=>e===l))&&n<=s&&s<=n+t.width&&i<=o&&o<=i+t.height))return _(),void r?.();p(l),d(!0),f(o),m(s)}};return(0,Et.jsxDEV)("div",{ref:c,className:t,onContextMenu:N,children:[n,(0,Et.jsxDEV)(zi,{open:l,anchorPosition:{left:h,top:g},onClose:E,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:N},disableRestoreFocus:!0,transitionDuration:0,onClick:E,...i,children:l&&s},`${h}, ${g}`,!1,{fileName:Ki,lineNumber:103,columnNumber:7},void 0)]},void 0,!0,{fileName:Ki,lineNumber:96,columnNumber:11},void 0)},qi="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/menu/MenuContent.tsx",Ji=(0,Gt.forwardRef)((function(e,t){const{className:n,children:i,...s}=e;return(0,Et.jsxDEV)("div",{ref:t,className:(0,Rt.$)("menu",n),...s,children:i},void 0,!1,{fileName:qi,lineNumber:26,columnNumber:11},this)})),Zi=e=>{const{className:t,onClick:n,title:i,disabled:s,children:o,...r}=e;return(0,Et.jsxDEV)("button",{className:(0,Rt.$)("menu__item",t),disabled:Boolean(s),title:i,onClick:n,...r,children:o},void 0,!1,{fileName:qi,lineNumber:42,columnNumber:11},void 0)},Qi=kt("MenuContentDivider","menu__divider");kt("MenuContentItemIcon","menu__item__icon"),kt("MenuContentItemLabel","menu__item__label");var es=n(2973),ts=n(3310),ns=n(3927);const is="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/markdown/MarkdownTextViewer.tsx",ss=e=>((0,Gt.useEffect)((()=>{ns.N.initialize({startOnLoad:!0,theme:"dark"}),ns.N.contentLoaded()}),[e.value]),(0,Et.jsxDEV)(es.o,{className:(0,Rt.$)("markdown-content",e.className),remarkPlugins:[ts.A],components:e.components??{code:e=>{const{children:t,className:n,node:i,...s}=e,o=/language-(?<language>\w+)/.exec(n??"");return o?.groups?.language?(0,Et.jsxDEV)("code",{...s,className:(0,Rt.$)(o.groups.language),children:t},void 0,!1,{fileName:is,lineNumber:46,columnNumber:47},void 0):(0,Et.jsxDEV)("code",{...s,className:n,children:t},void 0,!1,{fileName:is,lineNumber:50,columnNumber:18},void 0)}},children:e.value.value},void 0,!1,{fileName:is,lineNumber:35,columnNumber:11},void 0));var os=n(5143);const rs="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/BlankPanelContent.tsx",as=e=>{const{children:t}=e,{ref:n,width:i,height:s}=(0,os.u)({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[o,r]=(0,Gt.useState)(!1),{ref:a,width:c,height:l}=(0,os.u)({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,Gt.useEffect)((()=>{r((c??0)>(i??0)+40&&(l??0)>(s??0)+40)}),[c,l,i,s]),(0,Et.jsxDEV)("div",{ref:a,className:"panel__content__blank",children:(0,Et.jsxDEV)("div",{ref:n,className:(0,Rt.$)("panel__content__blank__content",{"panel__content__blank__content--hide":!o}),children:t},void 0,!1,{fileName:rs,lineNumber:62,columnNumber:7},void 0)},void 0,!1,{fileName:rs,lineNumber:60,columnNumber:11},void 0)};var cs=n(1122),ls=n(7143),ds=n(4904);const us="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/radio-group/BaseRadioGroup.tsx",ps=e=>{const{children:t,options:n,size:i,className:s,...o}=e,r=((e,t)=>{const n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n})(n,i);return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("mui-radio-group",s),children:[r.map(((e,t)=>(0,Et.jsxDEV)("div",{children:(0,Et.jsxDEV)(cs.A,{className:"mui-radio-group__group",...o,children:e.map((e=>(0,Et.jsxDEV)(ls.A,{className:"mui-radio-group__group__column",style:{width:100/i+"%"},value:e,control:(0,Et.jsxDEV)(ds.A,{className:"mui-radio-group__group__item__radio-btn"},void 0,!1,{fileName:us,lineNumber:62,columnNumber:26},void 0),label:(0,Et.jsxDEV)("div",{className:"mui-radio-group__group__item__label",children:e},void 0,!1,{fileName:us,lineNumber:65,columnNumber:24},void 0)},e,!1,{fileName:us,lineNumber:56,columnNumber:31},void 0)))},void 0,!1,{fileName:us,lineNumber:55,columnNumber:11},void 0)},t,!1,{fileName:us,lineNumber:52,columnNumber:55},void 0))),t]},void 0,!0,{fileName:us,lineNumber:50,columnNumber:11},void 0)};var hs=n(7669);const ms=e=>{const{children:t,...n}=e;return(0,Et.jsxDEV)(hs.Ay,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/popover/BasePopover.tsx",lineNumber:25,columnNumber:11},void 0)};var gs,fs=n(9463),_s=n(5318),Es=n(5461);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(gs||(gs={}));const Ns="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/VirtualAssistant.tsx",bs=(0,It.PA)((e=>{const{entry:t}=e,n=$t(),i=()=>{t.isOpen||Ye.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey}),t.setIsOpen(!t.isOpen)},s=n.guardUnhandledError((()=>n.clipboardService.copyTextToClipboard(t.documentationKey)));return(0,Et.jsxDEV)(Xi,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,Et.jsxDEV)(Ji,{children:(0,Et.jsxDEV)(Zi,{onClick:s,children:"Copy Documentation Key"},void 0,!1,{fileName:Ns,lineNumber:111,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:109,columnNumber:18},void 0),children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,Et.jsxDEV)("button",{className:(0,Rt.$)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:i,children:t.isOpen?(0,Et.jsxDEV)(xi,{},void 0,!1,{fileName:Ns,lineNumber:128,columnNumber:30},void 0):(0,Et.jsxDEV)(Oi,{},void 0,!1,{fileName:Ns,lineNumber:128,columnNumber:52},void 0)},void 0,!1,{fileName:Ns,lineNumber:119,columnNumber:13},void 0),t.url?(0,Et.jsxDEV)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{Ye.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey})},title:"Click to see external documentation",children:t.title},void 0,!1,{fileName:Ns,lineNumber:130,columnNumber:27},void 0):(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry__title",onClick:i,children:t.title},void 0,!1,{fileName:Ns,lineNumber:141,columnNumber:18},void 0)]},void 0,!0,{fileName:Ns,lineNumber:118,columnNumber:11},void 0),t.isOpen&&t.content&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry__content",children:K(t.content)?(0,Et.jsxDEV)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content},void 0,!1,{fileName:Ns,lineNumber:152,columnNumber:43},void 0):(0,Et.jsxDEV)(ss,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content},void 0,!1,{fileName:Ns,lineNumber:156,columnNumber:20},void 0)},void 0,!1,{fileName:Ns,lineNumber:150,columnNumber:46},void 0)]},void 0,!0,{fileName:Ns,lineNumber:117,columnNumber:9},void 0)},void 0,!1,{fileName:Ns,lineNumber:100,columnNumber:13},void 0)})),vs=(0,It.PA)((()=>{const e=$t(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(t?.context??""))),i=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??""))),s=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map((e=>e.key)).join(" > "))));return(0,Et.jsxDEV)(Xi,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,Et.jsxDEV)(Ji,{children:[(0,Et.jsxDEV)(Zi,{onClick:n,children:"Copy Context ID"},void 0,!1,{fileName:Ns,lineNumber:205,columnNumber:11},void 0),(0,Et.jsxDEV)(Zi,{onClick:i,children:"Copy Current Context ID"},void 0,!1,{fileName:Ns,lineNumber:208,columnNumber:11},void 0),(0,Et.jsxDEV)(Zi,{onClick:s,children:"Copy Context Stack"},void 0,!1,{fileName:Ns,lineNumber:211,columnNumber:11},void 0)]},void 0,!0,{fileName:Ns,lineNumber:203,columnNumber:16},void 0),children:[t&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__title",children:t.title},void 0,!1,{fileName:Ns,lineNumber:219,columnNumber:38},void 0),t.content&&(0,Et.jsxDEV)(Et.Fragment,{children:K(t.content)?(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__text",children:t.content},void 0,!1,{fileName:Ns,lineNumber:226,columnNumber:53},void 0):(0,Et.jsxDEV)(ss,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content},void 0,!1,{fileName:Ns,lineNumber:230,columnNumber:20},void 0)},void 0,!1,{fileName:Ns,lineNumber:224,columnNumber:40},void 0),t.related.length&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]},void 0,!0,{fileName:Ns,lineNumber:240,columnNumber:15},void 0),t.related.map((e=>(0,Et.jsxDEV)(bs,{entry:e},e.uuid,!1,{fileName:Ns,lineNumber:243,columnNumber:56},void 0)))]},void 0,!0,{fileName:Ns,lineNumber:238,columnNumber:47},void 0)]},void 0,!0,{fileName:Ns,lineNumber:217,columnNumber:28},void 0),!t&&(0,Et.jsxDEV)(as,{children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,Et.jsxDEV)(Ci,{className:"virtual-assistant__panel__placeholder__icon"},void 0,!1,{fileName:Ns,lineNumber:256,columnNumber:13},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"},void 0,!1,{fileName:Ns,lineNumber:257,columnNumber:13},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"},void 0,!1,{fileName:Ns,lineNumber:260,columnNumber:13},void 0)]},void 0,!0,{fileName:Ns,lineNumber:255,columnNumber:11},void 0)},void 0,!1,{fileName:Ns,lineNumber:253,columnNumber:29},void 0)]},void 0,!0,{fileName:Ns,lineNumber:193,columnNumber:11},void 0)})),Ts=(0,It.PA)((()=>{const e=$t(),t=(0,Gt.useRef)(null),n=e.assistantService,i=n.searchText,s=(0,Gt.useMemo)((()=>(0,_s.A)((()=>n.search()),100)),[n]);return(0,Gt.useEffect)((()=>{t.current?.focus()}),[]),(0,Et.jsxDEV)("div",{className:"virtual-assistant__search",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__header",children:[(0,Et.jsxDEV)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,Rt.$)("virtual-assistant__search__input input--dark",{"virtual-assistant__search__input--searching":i}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),s()},value:i,placeholder:"Ask me a question"},void 0,!1,{fileName:Ns,lineNumber:334,columnNumber:9},void 0),i&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")},void 0,!1,{fileName:Ns,lineNumber:375,columnNumber:25},void 0),(0,Et.jsxDEV)("button",{className:(0,Rt.$)("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,Et.jsxDEV)(Gn,{},void 0,!1,{fileName:Ns,lineNumber:396,columnNumber:11},void 0)},void 0,!1,{fileName:Ns,lineNumber:381,columnNumber:9},void 0),i?(0,Et.jsxDEV)("button",{className:"virtual-assistant__search__input__clear-btn",tabIndex:-1,onClick:()=>{n.resetSearch(),n.currentDocumentationEntry=void 0,t.current?.focus()},title:"Clear",children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:Ns,lineNumber:409,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:402,columnNumber:14},void 0):(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,Et.jsxDEV)(ei,{},void 0,!1,{fileName:Ns,lineNumber:400,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:398,columnNumber:25},void 0)]},void 0,!0,{fileName:Ns,lineNumber:333,columnNumber:7},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__content",children:[(0,Et.jsxDEV)(qt,{isLoading:n.searchState.isInProgress},void 0,!1,{fileName:Ns,lineNumber:414,columnNumber:9},void 0),(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(gs.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,Et.jsxDEV)("div",{onClick:()=>n.openDocumentationEntryLink(gs.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,Et.jsxDEV)(zn,{},void 0,!1,{fileName:Ns,lineNumber:438,columnNumber:19},void 0)},void 0,!1,{fileName:Ns,lineNumber:428,columnNumber:21},void 0)]},void 0,!0,{fileName:Ns,lineNumber:424,columnNumber:13},void 0),(0,Et.jsxDEV)("div",{children:(0,Et.jsxDEV)(ps,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[Fe.STANDARD,Fe.INCLUDE,Fe.EXACT,Fe.INVERSE],size:1},void 0,!1,{fileName:Ns,lineNumber:443,columnNumber:15},void 0)},void 0,!1,{fileName:Ns,lineNumber:442,columnNumber:13},void 0)]},void 0,!0,{fileName:Ns,lineNumber:423,columnNumber:11},void 0)},void 0,!1,{fileName:Ns,lineNumber:417,columnNumber:9},void 0),n.currentDocumentationEntry&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__results",children:(0,Et.jsxDEV)(bs,{entry:n.currentDocumentationEntry},n.currentDocumentationEntry.uuid,!1,{fileName:Ns,lineNumber:466,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:464,columnNumber:57},void 0),!n.currentDocumentationEntry&&(0,Et.jsxDEV)(Et.Fragment,{children:[Boolean(n.searchResults.length)&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map((e=>(0,Et.jsxDEV)(bs,{entry:e},e.uuid,!1,{fileName:Ns,lineNumber:476,columnNumber:66},void 0)))},void 0,!1,{fileName:Ns,lineNumber:474,columnNumber:65},void 0),i&&!n.searchResults.length&&(0,Et.jsxDEV)(as,{children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,Et.jsxDEV)(yi,{className:"virtual-assistant__panel__placeholder__icon"},void 0,!1,{fileName:Ns,lineNumber:487,columnNumber:19},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."},void 0,!1,{fileName:Ns,lineNumber:488,columnNumber:19},void 0)]},void 0,!0,{fileName:Ns,lineNumber:486,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:484,columnNumber:71},void 0),!i&&!n.searchResults.length&&(0,Et.jsxDEV)(Xi,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,Et.jsxDEV)(Ji,{children:[(0,Et.jsxDEV)(Zi,{onClick:()=>{he(`documentation-registry_${(0,Es.GP)(new Date(Date.now()),nt)}.json`,JSON.stringify(e.documentationService.publishDocRegistry(),void 0,2),oe.APPLICATION_JSON)},children:"Download documentation registry"},void 0,!1,{fileName:Ns,lineNumber:511,columnNumber:21},void 0),(0,Et.jsxDEV)(Zi,{onClick:()=>{he(`documentation-registry_${(0,Es.GP)(new Date(Date.now()),nt)}.json`,JSON.stringify(e.documentationService.publishContextualDocIndex(),void 0,2),oe.APPLICATION_JSON)},children:"Download contextual documentation mapping"},void 0,!1,{fileName:Ns,lineNumber:514,columnNumber:21},void 0)]},void 0,!0,{fileName:Ns,lineNumber:509,columnNumber:26},void 0),children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__character",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__character__figure",children:[(0,Et.jsxDEV)(Ti,{className:"virtual-assistant__character__hat"},void 0,!1,{fileName:Ns,lineNumber:522,columnNumber:21},void 0),(0,Et.jsxDEV)(Ii,{className:"virtual-assistant__character__glasses"},void 0,!1,{fileName:Ns,lineNumber:523,columnNumber:21},void 0),(0,Et.jsxDEV)(Ai,{className:"virtual-assistant__character__beard"},void 0,!1,{fileName:Ns,lineNumber:524,columnNumber:21},void 0)]},void 0,!0,{fileName:Ns,lineNumber:521,columnNumber:19},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__character__greeting",children:"Bonjour, It's Pierre!"},void 0,!1,{fileName:Ns,lineNumber:526,columnNumber:19},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__character__question",children:"How can I help today?"},void 0,!1,{fileName:Ns,lineNumber:529,columnNumber:19},void 0)]},void 0,!0,{fileName:Ns,lineNumber:520,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:500,columnNumber:72},void 0)]},void 0,!0,{fileName:Ns,lineNumber:472,columnNumber:58},void 0)]},void 0,!0,{fileName:Ns,lineNumber:413,columnNumber:7},void 0)]},void 0,!0,{fileName:Ns,lineNumber:331,columnNumber:11},void 0)})),Cs=(0,It.PA)((e=>{const{triggerElement:t}=e,n=$t(),i=n.assistantService,s=i.currentContextualDocumentationEntry,o=i.selectedTab,r=n.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraVirtualAssistantViewConfigurations?.()??[])),a=r.find((e=>e.key===o));return(0,Et.jsxDEV)(ms,{open:i.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,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__panel",{"virtual-assistant__panel--maximized":i.isPanelMaximized}),tabIndex:0,onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())},children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header",children:[(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tabs",children:[(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":o===Be.SEARCH}),onClick:()=>i.setSelectedTab(Be.SEARCH),title:"Search",children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tab__content",children:(0,Et.jsxDEV)(ei,{},void 0,!1,{fileName:Ns,lineNumber:644,columnNumber:19},void 0)},void 0,!1,{fileName:Ns,lineNumber:643,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:635,columnNumber:15},void 0),(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":o===Be.CONTEXTUAL_SUPPORT}),onClick:()=>i.setSelectedTab(Be.CONTEXTUAL_SUPPORT),title:"Contextual Support",children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tab__content",children:[(0,Et.jsxDEV)(vi,{},void 0,!1,{fileName:Ns,lineNumber:656,columnNumber:19},void 0),s&&(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tab__indicator",title:"Contextual support available"},void 0,!1,{fileName:Ns,lineNumber:657,columnNumber:60},void 0)]},void 0,!0,{fileName:Ns,lineNumber:655,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:647,columnNumber:15},void 0),r.map((e=>(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":o===e.key}),onClick:()=>{i.setSelectedTab(e.key),e.autoExpandOnOpen&&i.setIsPanelMaximized(!0)},title:e.title,children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__tab__content",children:e.icon??(0,Et.jsxDEV)(zn,{},void 0,!1,{fileName:Ns,lineNumber:681,columnNumber:36},void 0)},void 0,!1,{fileName:Ns,lineNumber:680,columnNumber:19},void 0)},e.key,!1,{fileName:Ns,lineNumber:665,columnNumber:57},void 0)))]},void 0,!0,{fileName:Ns,lineNumber:634,columnNumber:13},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__header__actions",children:[(0,Et.jsxDEV)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>i.setIsPanelMaximized(!i.isPanelMaximized),title:i.isPanelMaximized?"Minimize":"Maximize",children:i.isPanelMaximized?(0,Et.jsxDEV)(_i,{},void 0,!1,{fileName:Ns,lineNumber:695,columnNumber:55},void 0):(0,Et.jsxDEV)(bi,{},void 0,!1,{fileName:Ns,lineNumber:697,columnNumber:22},void 0)},void 0,!1,{fileName:Ns,lineNumber:687,columnNumber:15},void 0),(0,Et.jsxDEV)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>i.setIsOpen(!1),title:"Close",children:(0,Et.jsxDEV)(_n,{className:"virtual-assistant__panel__icon__close"},void 0,!1,{fileName:Ns,lineNumber:707,columnNumber:17},void 0)},void 0,!1,{fileName:Ns,lineNumber:701,columnNumber:15},void 0)]},void 0,!0,{fileName:Ns,lineNumber:686,columnNumber:13},void 0)]},void 0,!0,{fileName:Ns,lineNumber:633,columnNumber:11},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__panel__content",children:[o===Be.SEARCH&&(0,Et.jsxDEV)(Ts,{},void 0,!1,{fileName:Ns,lineNumber:712,columnNumber:63},void 0),o===Be.CONTEXTUAL_SUPPORT&&(0,Et.jsxDEV)(vs,{},void 0,!1,{fileName:Ns,lineNumber:715,columnNumber:75},void 0),a?.renderer()]},void 0,!0,{fileName:Ns,lineNumber:711,columnNumber:11},void 0)]},void 0,!0,{fileName:Ns,lineNumber:608,columnNumber:9},void 0)},i.panelRenderingKey,!1,{fileName:Ns,lineNumber:568,columnNumber:13},void 0)})),ys=(0,It.PA)((()=>{const[e,t]=(0,Gt.useState)(!1),[n,i]=(0,Gt.useState)((0,o.A)()),s=$t(),r=(0,Gt.useRef)(null),a=s.assistantService,c=a.currentContextualDocumentationEntry,l=()=>{!a.isOpen&&c&&a.setSelectedTab(Be.CONTEXTUAL_SUPPORT),a.setIsOpen(!a.isOpen)};return(0,Gt.useEffect)((()=>{a.isHidden&&i((0,o.A)())}),[a.isHidden]),(0,Et.jsxDEV)(fs,{bounds:"parent",onStart:()=>t(!0),onStop:()=>t(!1),nodeRef:r,handle:".virtual-assistant__station__drag-handle",children:(0,Et.jsxDEV)("div",{className:"virtual-assistant",ref:r,children:[(0,Et.jsxDEV)("div",{className:(0,Rt.$)("virtual-assistant__station",{"virtual-assistant__station--hidden":a.isHidden,"virtual-assistant__station--active":Boolean(c)}),children:[(0,Et.jsxDEV)("button",{className:"virtual-assistant__station__hide-button",title:"Hide assistant",onClick:()=>{s.assistantService.toggleAssistant()},children:(0,Et.jsxDEV)(ni,{},void 0,!1,{fileName:Ns,lineNumber:802,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:795,columnNumber:11},void 0),(0,Et.jsxDEV)("button",{className:"virtual-assistant__station__trigger",tabIndex:-1,onClick:l,title:a.isOpen?"Click to close assistant panel":(c?"Contextual support available.\n":"")+"Click to open Assistant...",children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__station__character",children:[(0,Et.jsxDEV)(Ti,{className:"virtual-assistant__station__character__hat"},void 0,!1,{fileName:Ns,lineNumber:819,columnNumber:15},void 0),(0,Et.jsxDEV)(Ii,{className:"virtual-assistant__station__character__glasses"},void 0,!1,{fileName:Ns,lineNumber:820,columnNumber:15},void 0),(0,Et.jsxDEV)(Ai,{className:"virtual-assistant__station__character__beard"},void 0,!1,{fileName:Ns,lineNumber:821,columnNumber:15},void 0)]},void 0,!0,{fileName:Ns,lineNumber:818,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:804,columnNumber:11},void 0),(0,Et.jsxDEV)("div",{className:"virtual-assistant__station__label",onClick:l,children:"Assistant"},void 0,!1,{fileName:Ns,lineNumber:824,columnNumber:11},void 0),(0,Et.jsxDEV)(Xi,{className:(0,Rt.$)("virtual-assistant__station__drag-handle",{"virtual-assistant__station__drag-handle--dragging":e}),menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,Et.jsxDEV)(Ji,{children:[(0,Et.jsxDEV)(Zi,{onClick:()=>{a.setIsOpen(!1),i((0,o.A)())},children:"Reset Position"},void 0,!1,{fileName:Ns,lineNumber:842,columnNumber:17},void 0),(0,Et.jsxDEV)(Zi,{onClick:()=>s.assistantService.hideAssistant(),children:"Hide Assistant"},void 0,!1,{fileName:Ns,lineNumber:845,columnNumber:17},void 0)]},void 0,!0,{fileName:Ns,lineNumber:840,columnNumber:22},void 0),children:(0,Et.jsxDEV)("div",{className:"virtual-assistant__station__drag-handle__content",title:e?void 0:"Grab to drag assistant",children:(0,Et.jsxDEV)(Sn,{},void 0,!1,{fileName:Ns,lineNumber:855,columnNumber:15},void 0)},void 0,!1,{fileName:Ns,lineNumber:851,columnNumber:13},void 0)},void 0,!1,{fileName:Ns,lineNumber:830,columnNumber:11},void 0)]},c?.uuid??"",!0,{fileName:Ns,lineNumber:784,columnNumber:9},void 0),!e&&a.isOpen&&!a.isHidden&&r.current&&(0,Et.jsxDEV)(Cs,{triggerElement:r.current},void 0,!1,{fileName:Ns,lineNumber:863,columnNumber:36},void 0)]},void 0,!0,{fileName:Ns,lineNumber:777,columnNumber:7},void 0)},n,!1,{fileName:Ns,lineNumber:762,columnNumber:11},void 0)})),Ss="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/ApplicationComponentFrameworkProvider.tsx";var As;!function(e){e.TOP_LEVEL_CONTAINER="application.top-level-container",e.BACKDROP_CONTAINER="application.backdrop-container"}(As||(As={}));const Is=["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"],xs=e=>(0,Et.jsxDEV)("div",{className:"backdrop__container","data-elementid":e.elementId},void 0,!1,{fileName:Ss,lineNumber:113,columnNumber:79},void 0),ws=(0,It.PA)((e=>{const{children:t}=e,n=$t(),i=((e,t)=>{const n={};return e.forEach(((e,i)=>{e.length&&(n[i]={combinations:e,handler:t})})),n.INTERNAL__PLATFORM_NATIVE_KEYBOARD_COMMAND={combinations:Is,handler:(e,t)=>{t.preventDefault()}},n})(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{Is.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Gt.useEffect)((()=>{const e=function(e){const t=new Map;let n=null;return i=>{i instanceof KeyboardEvent&&((0,ct.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,s=gt(e.combination);if(!s.length)return;const o=t.get(n)??s,r=V(o[0]);ft(i,r)?o.length>1?t.set(n,o.slice(1)):(t.delete(n),e.handler(n,i)):i.getModifierState(i.key)||t.delete(n)})),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}(i);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[i]),(0,Gt.useEffect)((()=>{const e=()=>{document.hidden&&(Ye.logEvent_ApplicationUsageInterrupted(n.telemetryService),n.timeService.recordUsageInterruption())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[n]),(0,Et.jsxDEV)(yt,{children:[(0,Et.jsxDEV)(Zt,{},void 0,!1,{fileName:Ss,lineNumber:174,columnNumber:9},void 0),(0,Et.jsxDEV)(Xt,{},void 0,!1,{fileName:Ss,lineNumber:175,columnNumber:9},void 0),(0,Et.jsxDEV)(Yi,{},void 0,!1,{fileName:Ss,lineNumber:176,columnNumber:9},void 0),(0,Et.jsxDEV)(ys,{},void 0,!1,{fileName:Ss,lineNumber:177,columnNumber:9},void 0),n.layoutService.showBackdrop&&(0,Et.jsxDEV)(St.Z,{container:n.layoutService.getElementByID(n.layoutService.backdropContainerElementID??As.BACKDROP_CONTAINER)??null,children:(0,Et.jsxDEV)(At.A,{className:"backdrop",open:n.layoutService.showBackdrop},void 0,!1,{fileName:Ss,lineNumber:193,columnNumber:13},void 0)},void 0,!1,{fileName:Ss,lineNumber:178,columnNumber:58},void 0),(0,Et.jsxDEV)(xt.Q,{backend:wt.t2,children:(0,Et.jsxDEV)("div",{className:"app__container","data-elementid":As.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,Et.jsxDEV)(xs,{elementId:As.BACKDROP_CONTAINER},void 0,!1,{fileName:Ss,lineNumber:210,columnNumber:13},void 0),t]},void 0,!0,{fileName:Ss,lineNumber:200,columnNumber:11},void 0)},void 0,!1,{fileName:Ss,lineNumber:199,columnNumber:9},void 0)]},void 0,!0,{fileName:Ss,lineNumber:172,columnNumber:13},void 0)})),Os={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"},Rs={matchOverviewRuler:"#d186167e",activeMatchColorOverviewRuler:"#A0A0A0CC",matchBackground:"#62331c",activeMatchBackground:"#515C6A"},ks=`\n${it.BOLD}${it.BRIGHT_BLUE}$purist${it.RESET}\n${it.BOLD}${it.MAGENTA}❯${it.RESET} `,Ps="❯ ";class Ls extends at{instance;resizer;renderer;searcher;webLinkProvider;_TEMPORARY__onKeyListener;_TEMPORARY__onDataListener;command="";commandHistory=[];currentCommandSearchString="";commandHistoryNavigationIdx=void 0;isRunningCommand=!1;setupState=Pe.create();constructor(e){super(e),this.instance=new Xe.Terminal({allowProposedApi:!0,fontSize:12,letterSpacing:2,fontWeight:400,fontWeightBold:700,fontFamily:`"${tt}", Menlo, Consolas, monospace`,tabStopWidth:2,theme:Os,overviewRulerWidth:14,scrollback:1e5,convertEol:!0,scrollOnUserInput:!1}),this.resizer=new Je.FitAddon,this.searcher=new Ze.SearchAddon,this.renderer=new et.WebglAddon}setup(e){if(this.setupState.hasCompleted)throw new P("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 Qe.Unicode11Addon),this.instance.unicode.activeVersion="11",this.instance.attachCustomKeyEventHandler((e=>_t(e,"Control+KeyF")||_t(e,"Meta+KeyF")?(e.preventDefault(),e.stopPropagation(),this.searchConfig.focus(),!1):!(_t(e,"Control+KeyC")&&this.instance.hasSelection()||_t(e,"Control+KeyV")))),this.webLinkProvider=e?.webLinkProvider?new qe.WebLinksAddon(e.webLinkProvider.handler,{urlRegex:e.webLinkProvider.regex}):new qe.WebLinksAddon,this.instance.loadAddon(this.webLinkProvider),(e?.commands??[]).forEach((e=>{[e.command,...e.aliases??[]].forEach((t=>{this.commandRegistry.has(t)?this.applicationStore.logService.warn(u.create(me.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,i;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 i=this.commandRegistry.get(t);if(!i)return void this.fail(`command not found: ${t}`);if(this.isRunningCommand)return;this.isRunningCommand=!0,i.handler(n.map((e=>e.trim())),t,e).catch((()=>{})).finally((()=>{this.isRunningCommand=!1,this.isFlushed||this.abort()}))}}else if(_t(t,"Control+KeyD")||_t(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,i=this.applicationStore,i.layoutService.getElementByID(As.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=`${Ps}${this.command}`,i=`${Ps}${this.command.substring(0,t-2)}${this.command.length<t-2?" ".repeat(t-this.command.length-2):""}`;let s=0,o=0;for(let n=e.baseY+e.cursorY;n>-1;--n){if(V(e.getLine(n)).translateToString()===i){s=n,o+=(n===e.baseY+e.cursorY?e.cursorX:t)-2;break}o+=n===e.baseY+e.cursorY?e.cursorX:t}return{startY:s,startX:2,endY:s+(n.length-n.length%t)/t,endX:n.length%t,cursorIdx:o}}computeCursorJumpMovement(e){const t=this.getCommandRange();let n,i=!1;if(e){for(let e=t.cursorIdx-1;e>-1;--e)if(this.command.charAt(e).match(/\w/))i||(i=!0);else if(i){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/))i||(i=!0);else if(i){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,i=this.instance.cols,s=this.instance.rows,o=this.getCommandRange(),r=t?e<0?o.cursorIdx:this.command.length-o.cursorIdx:e,a=Math.min(Math.abs(e),r);let c=n.cursorX,l=n.cursorY,d=n.baseY+n.cursorY;e<0?(c=(i+(n.cursorX-a)%i)%i,l=n.cursorY-(a>n.cursorX?Math.ceil(a/i):0),d=l+n.baseY,l=Math.max(l,-1)):e>0&&(c=(n.cursorX+a)%i,l=n.cursorY+(n.cursorX+a>=i?Math.floor((n.cursorX+a)/i):0),d=l+n.baseY,l=Math.min(l,s-1));const u=d>n.viewportY+s?d-(n.viewportY+s):d<n.viewportY?d-n.viewportY:0;return{seq:st(l+1,c+1),scroll:u}}writeToCommand(e){const t=this.getCommandRange(),n=this.command.slice(0,t.cursorIdx),i=this.command.slice(t.cursorIdx),s=this.computeCursorMovement(e.length,!1);this.instance.scrollLines(s.scroll),this.instance.write(e+i+s.seq),this.setCommand(n+e+i)}deleteFromCommand(e){const t=this.getCommandRange(),n=e<0?t.cursorIdx:this.command.length-t.cursorIdx,i=Math.min(Math.abs(e),n);let s,o,r;if(0===e)return;e<0?(s=this.command.slice(0,t.cursorIdx-i),o=this.command.slice(t.cursorIdx,this.command.length),r=-i):(s=this.command.slice(0,t.cursorIdx),o=this.command.slice(t.cursorIdx+i,this.command.length),r=0);const a=this.computeCursorMovement(r);this.instance.scrollLines(a.scroll),this.instance.write(st(t.startY+1,t.startX+1)+s+o+" ".repeat(i)+a.seq),this.setCommand(s+o)}get isSetup(){return this.setupState.hasCompleted}isFocused(){return document.activeElement===this.instance.textarea}mount(e){if(!this.setupState.hasCompleted)throw new P("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(st(n.startY+1,n.startX+1)+t.padEnd(this.command.length)),this.command=t,n=this.getCommandRange(),this.instance.write(st(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(ks),this.setCommand("")}newSystemCommand(e){this.isRunningCommand||(this.command&&(this.abort(),this.newCommand()),this.instance.write(`${it.DIM}(system: ${e})\n${it.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 i=V(e.getLine(n)).translateToString();if(i.trim()){t=i!==Ps;break}}return""===this.command&&t}clear(){this.flushScreen(),this.instance.scrollToTop(),this.newCommand()}resetANSIStyling(){this.instance.write(it.RESET)}showHelp(){var e;this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write((e=this.commandRegistry,`\n${it.BRIGHT_BLACK}+-------------------------------------------------------+${it.RESET}\n${it.BRIGHT_BLACK}|${it.RESET} ${it.BRIGHT_GREEN}[@@]${it.RESET} "Hi! Welcome to the HELP menu of Pure IDE" ${it.BRIGHT_BLACK}|${it.RESET}\n${it.BRIGHT_BLACK}|${it.RESET} ${it.BRIGHT_GREEN}/|__|\\${it.RESET} ${it.BRIGHT_BLACK}|${it.RESET}\n${it.BRIGHT_BLACK}+--${it.RESET} ${it.BRIGHT_GREEN}d b${it.RESET} ${it.BRIGHT_BLACK}-----------------------------------------------+${it.RESET}\n\nFollowing is the list of supported commands:\n\n${(0,ct.A)(Array.from(e.values()),(e=>e.command)).map((e=>`${it.BRIGHT_GREEN}${e.command.padEnd(30)}${it.RESET}${e.description}${e.aliases?.length?`\n${"".padEnd(30)}Aliases: ${e.aliases.join(", ")}`:""}\n${"".padEnd(30)}Usage: ${it.DIM}${e.usage}${it.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(it).map((([e,t])=>`${t}${(e=>e?e.trim().match(/^[A-Z_]+$/)?pt(e.trim().replace(/_+/gu," ").toLowerCase()):dt(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)}${it.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${it.RED}${e}${it.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:Rs,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:Rs,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}findNext(){this.searcher.findNext(this.searchConfig.searchText,{decorations:Rs,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 i=V(e.getLine(n));t.push(i.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 Ms{applicationStore;terminal;constructor(e){this.applicationStore=e,this.terminal=new Ls(e)}}const Ds="(unknown)";class Fs{applicationStore;currentUser=Ds;constructor(e){(0,ke.Gn)(this,{currentUser:ke.sH,setCurrentUser:ke.XI}),this.applicationStore=e}get isAnonymous(){return this.currentUser===Ds}setCurrentUser(e){this.currentUser=e}}var Bs,js=n(5992);class Vs{get localStorage(){return V(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 Hs{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?((e,t="")=>(function(e,t=""){if(!X(e))throw new F(t||"Value is expected to be a number")}(e,t),e))(t):void 0}getStringValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!K(e))throw new F(t||"Value is expected to be a string")}(e,t),e))(t):void 0}getBooleanValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!q(e))throw new F(t||"Value is expected to be a boolean")}(e,t),e))(t):void 0}getObjectValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!J(e))throw new F(t||"Value is expected to be a object")}(e,t),e))(t):void 0}hasValue(e){return B(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 Gs{applicationStore;storage;data;constructor(e){this.applicationStore=e,this.storage=new Vs;const t=this.storage.getItem(e.config.applicationStorageKey);this.data=t?D((()=>JSON.parse(t)))??{}:{}}getIndex(e){return this.data[e]}updateIndex(e,t){(0,js.A)(t)?delete this.data[e]:this.data[e]=t,this.storage.setItem(this.applicationStore.config.applicationStorageKey,JSON.stringify(this.data))}}class Us{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 $s{timestamp=Date.now();interruptions=[];recordUsageInterruption(){this.interruptions.push(Date.now())}finalizeTimingsRecord(e,t){const n=e.elapsed,i=e.startTime,s=i+n,o={...t??{},...Object.fromEntries(e.records),total:n};let r=0;for(const e of this.interruptions)if(e>=i&&e<=s)r++;else if(e>s)break;return r>0?{...o,__numberOfInteruptions:r}:o}}!function(e){e.DEFAULT_DARK="default-dark",e.LEGACY_LIGHT="legacy-light",e.HIGH_CONTRAST_LIGHT="hc-light"}(Bs||(Bs={}));const Ys={name:"Default Dark (default)",key:Bs.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"}},Ws={name:"Legacy Light",key:Bs.LEGACY_LIGHT,TEMPORARY__globalCSSClassName:"theme__legacy-light"},zs={name:"High-Contrast Light",key:Bs.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 Ks;!function(e){e.COLOR_THEME="application.layout.colorTheme"}(Ks||(Ks={}));const Xs={[Ks.COLOR_THEME]:{defaultValue:Bs.DEFAULT_DARK}};class qs{applicationStore;backdropContainerElementID;showBackdrop=!1;colorThemeRegistry=new Map;currentColorTheme;constructor(e){(0,ke.Gn)(this,{currentColorTheme:ke.sH.ref,TEMPORARY__isLightColorThemeEnabled:ke.EW,backdropContainerElementID:ke.sH,showBackdrop:ke.sH,setBackdropContainerElementID:ke.XI,setShowBackdrop:ke.XI,setColorTheme:ke.XI}),this.applicationStore=e,this.colorThemeRegistry.set(Bs.DEFAULT_DARK,Ys),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraColorThemes?.()??[])).forEach((e=>{this.colorThemeRegistry.has(e.key)?this.applicationStore.logService.warn(u.create(me.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(Ks.COLOR_THEME)??Bs.DEFAULT_DARK;this.currentColorTheme=V(this.colorThemeRegistry.get(t)),this.TEMPORARY__syncGlobalCSSClassName(this.currentColorTheme,void 0)}getElementByID(e){return document.querySelector(`[data-elementid='${e}']`)??void 0}setBackdropContainerElementID(e){this.backdropContainerElementID=e}setShowBackdrop(e){this.showBackdrop=e}get TEMPORARY__isLightColorThemeEnabled(){return this.currentColorTheme.key!==Bs.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 i=this.currentColorTheme;this.currentColorTheme=n,this.TEMPORARY__syncGlobalCSSClassName(n,i),t?.persist&&this.applicationStore.settingService.persistValue(Ks.COLOR_THEME,e)}getColor(e){return this.currentColorTheme.colors?.[e]??V(this.colorThemeRegistry.get(Bs.DEFAULT_DARK)).colors?.[e]??"transparent"}}class Js{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 Zs{navigator;constructor(e){this.navigator=e}}var Qs=n(2853);class eo{applicationStore;storage;registry=new Map;constructor(e){this.applicationStore=e,this.storage=new Hs(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(u.create(me.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(X(t))return t;this.applicationStore.logService.warn(u.create(me.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(K(t))return t;this.applicationStore.logService.warn(u.create(me.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(q(t))return t;this.applicationStore.logService.warn(u.create(me.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(J(t))return t;this.applicationStore.logService.warn(u.create(me.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,Qs.A)(n,t)?void 0:t)}}class to{goToLocation(e,t){throw new L("Navigator does not support this operation")}reload(e){throw new L("Navigator does not support this operation")}goToAddress(e,t){throw new L("Navigator does not support this operation")}visitAddress(e){throw new L("Navigator does not support this operation")}generateAddress(e){throw new L("Navigator does not support this operation")}updateCurrentLocation(e){throw new L("Navigator does not support this operation")}updateCurrentZone(e){throw new L("Navigator does not support this operation")}resetZone(){throw new L("Navigator does not support this operation")}getCurrentBaseAddress(e){throw new L("Navigator does not support this operation")}getCurrentAddress(){throw new L("Navigator does not support this operation")}getCurrentLocation(){throw new L("Navigator does not support this operation")}getCurrentLocationParameters(){throw new L("Navigator does not support this operation")}getCurrentLocationParameterValue(e){throw new L("Navigator does not support this operation")}getCurrentZone(){throw new L("Navigator does not support this operation")}blockNavigation(e,t,n){throw new L("Navigator does not support this operation")}unblockNavigation(){throw new L("Navigator does not support this operation")}get isNavigationBlocked(){throw new L("Navigator does not support this operation")}INTERNAL__internalizeTransientParameter(e){throw new L("Navigator does not support this operation")}}class no{applicationStore;storage;constructor(e){this.applicationStore=e,this.storage=new Hs(this.applicationStore.storageService,"application-user-data-storage")}getNumericValue(e){const t=this.storage.getValue(e);if(X(t))return t;this.applicationStore.logService.warn(u.create(me.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve numeric value for user data '${e}'`)}getStringValue(e){const t=this.storage.getValue(e);if(K(t))return t;this.applicationStore.logService.warn(u.create(me.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve string value for user data '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e);if(q(t))return t;this.applicationStore.logService.warn(u.create(me.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve boolean value for user data '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e);if(J(t))return t;this.applicationStore.logService.warn(u.create(me.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 so;!function(e){e.BUG_FIX="BUG_FIX",e.ENHANCEMENT="ENHANCEMENT"}(so||(so={}));const oo="application.lastOpenedVersion";class ro{applicationStore;releaseNotes;showCurrentReleaseModal=!0;showReleaseLog=!1;isConfigured=!1;constructor(e){(0,ke.Gn)(this,{showCurrentReleaseModal:ke.sH,showReleaseLog:ke.sH,isConfigured:ke.sH,setShowCurrentRelease:ke.XI,configure:ke.XI,setReleaseLog:ke.XI}),this.applicationStore=e}configure(e){this.isConfigured=!0,this.releaseNotes=(e=>e.map((e=>(W(e.version,"Release notes 'version' is missing"),e.notes?.map((e=>(W(e.type,"Release note 'type' is missing"),W(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(oo)}updateViewedVersion(){this.applicationStore.userDataService.persistValue(oo,this.applicationStore.config.appVersion)}showVersion(e,t){const n=e.version;return!(!io(n)||!io(t)||1!==(i=t,n.localeCompare(i,void 0,{numeric:!0})));var i}showableVersions(){const e=this.getViewedVersion();if(e)return this.releaseNotes?.filter((t=>this.showVersion(t,e)))}}class ao{uuid=(0,o.A)();extensionStates=[];config;pluginManager;initState=Pe.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 $s,this.logService=new h,this.logService.registerPlugins(t.getLoggerPlugins()),this.storageService=new Gs(this),this.settingService=new eo(this),this.userDataService=new no(this),this.alertService=new Ht(this),this.notificationService=new Ui,this.identityService=new Fs(this),this.layoutService=new qs(this),this.clipboardService=new Js(this),this.terminalService=new Ms(this),this.commandService=new ze(this),this.keyboardShortcutsService=new Ke(this),this.navigationService=new Zs(new to),this.navigationContextService=new We(this),this.documentationService=new we(this),this.assistantService=new Ue(this),this.releaseNotesService=new ro(this),this.eventService=new $e,this.eventService.registerEventNotifierPlugins(t.getEventNotifierPlugins()),this.telemetryService=new Us(this),this.telemetryService.registerPlugins(t.getTelemetryServicePlugins()),this.telemetryService.setup(),this.tracerService=new Me,this.tracerService.registerPlugins(t.getTracerServicePlugins()),this.extensionStates=this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationExtensionStateBuilders?.()??[])).map((e=>e(this))).filter(B)}async initialize(e){if(this.initState.isInInitialState){this.initState.inProgress();try{if(this.platform)throw new P("Platform is already configured");this.platform=e,this.navigationService=new Zs(e.getNavigator()),await e.initialize(),this.initState.pass()}catch(e){M(e),this.notificationService.notifyError(e),this.logService.error(u.create(me.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),this.initState.fail()}}else this.notificationService.notifyIllegalState("Application store is re-initialized")}alertUnhandledError=e=>{this.logService.error(u.create(me.ILLEGAL_APPLICATION_STATE_OCCURRED),"Encountered unhandled error in component tree",e),this.notificationService.notifyIllegalState(e.message)};guardUnhandledError=e=>()=>{e().catch(this.alertUnhandledError)}}var co;!function(e){e.TAG_REQUEST="download-request",e.TAG_RESPONSE="download-response",e.STREAM_CLOSED="#stream-closed",e.STREAM_ABORTED="#stream-aborted"}(co||(co={}));class lo{}class uo extends lo{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 po{config;logger;pluginManager;basePresets=[];basePlugins=[];baseAddress;pluginRegister;_isConfigured=!1;downloadHelperServiceWorkerPath;downloadHelper=!1;releaseNotes;constructor(e){this.pluginManager=e,this.logger=new uo}setup(e){return this.baseAddress=W(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 pe;let n,i;try{n=await t.get(`${window.location.origin}${e}config.json`)}catch(e){M(e),this.logger.error(u.create(me.APPLICATION_CONFIGURATION__FAILURE),e)}j(n,"Can't fetch Legend application configuration");try{i=await t.get(`${window.location.origin}${e}version.json`)}catch(e){M(e),this.logger.error(u.create(me.APPLICATION_CONFIGURATION__FAILURE),e)}return j(i,"Can't fetch Legend application version"),[await this.configureApplication({configData:n,versionData:i,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 pe(e.simple?{options:{credentials:"omit"}}:{}),i=await n.get(W(e.url,"Can't load documentation registry: 'url' field is missing or empty"));j(i.entries,"Can't load documentation registry data: 'entries' field is missing");const s=e.includes?.map((e=>new RegExp(`^${e.trim().replace(/[\^$\\.+?()[\]{}|]/g,"\\$&").replace(/\*/g,".*")}$`)));Object.entries(i.entries).forEach((([e,n])=>{s&&!s.some((t=>t.test(e)))||t[e]||(t[e]=n)}))}catch(e){M(e),this.logger.warn(u.create(me.DOCUMENTATION_FETCH__FAILURE),e)}}))),e.keyedDocumentationEntries=[...xe(t),...e.keyedDocumentationEntries]}async start(){j(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 ao(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(u.create(me.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 M(e),this.logger.error(u.create(me.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),e}}}const ho="legend-application-root",mo=JSON.parse('{"rE":"15.1.9","XO":{"c":"@finos/legend-application-plugin-core"}}');class go extends a{}class fo extends go{static NAME=mo.XO.c;constructor(){super(fo.NAME,mo.rE)}install(e){e.registerApplicationPlugin(this)}getExtraApplicationSetups(){return[async e=>{(0,ke.jK)({enforceActions:"observed"})}]}getExtraColorThemes(){return[Ws,zs]}getExtraSettingConfigurationEntries(){return e=Xs,Object.entries(e).map((e=>({key:e[0],...e[1]})));var e}}class _o{appName;baseAddress;env;applicationStorageKey;documentationUrl;documentationLinkEntries=[];documentationRegistryEntries=[];keyedDocumentationEntries=[];contextualDocEntries=[];appVersion;appVersionBuildTime;appVersionCommitId;constructor(e){var t,n;this.baseAddress=e.baseAddress,this.appName=W(e.configData.appName,"Can't configure application: 'appName' field is missing or empty"),this.env=W(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:W(e[0],"Documentation link 'key' is missing"),label:W(e[1].label,"Documentation link 'label' is missing"),url:W(e[1].url,"Documentation link 'url' is missing")})))),this.documentationRegistryEntries=e.configData.documentation?.registry??[],this.keyedDocumentationEntries=xe(e.configData.documentation?.entries??{}),this.contextualDocEntries=(n=e.configData.documentation?.contextualEntries??{},Object.entries(n).map((e=>({context:e[0],documentationKey:e[1]})))),this.appVersion=V(e.versionData.version,"Can't collect application version: 'version' field is missing"),this.appVersionBuildTime=V(e.versionData.buildTime,"Can't collect application version: 'buildTime' field is missing"),this.appVersionCommitId=V(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 Eo extends _o{pureUrl;useDynamicPureServer=!1;constructor(e){super(e),j(e.configData.pure,"Can't configure application: 'pure' field is missing"),this.pureUrl=_o.resolveAbsoluteUrl(W(e.configData.pure.url,"Can't configure application: 'pure.url' field is missing or empty")),void 0!==e.configData.pure.dynamic&&(this.useDynamicPureServer=Boolean(e.configData.pure.dynamic))}getDefaultApplicationStorageKey(){return"legend-pure-ide"}}class No extends d{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 bo extends No{pureProtocolProcessorPlugins=[];pureGraphManagerPlugins=[];pureGraphPlugins=[];constructor(){super()}static create(){return new bo}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]}}const vo=JSON.parse('{"rE":"8.0.182","XO":{"rj":"@finos/legend-graph-manager-preset-dsl-diagram","gM":"@finos/legend-pure-protocol-processor-plugin-dsl-diagram","ns":"@finos/legend-pure-graph-manager-plugin-dsl-diagram","QC":"@finos/legend-pure-graph-plugin-dsl-diagram"}}');class To extends a{_$nominalTypeBrand;install(e){e.registerPureGraphManagerPlugin(this)}}const Co=e=>t=>(0,ke.AT)(t)?t:e(t),yo=e=>(t,n)=>(0,ke.AT)(t)?t:e(t,n),So=e=>{(0,ke.Gn)(e,{_isDeleted:ke.sH,_isDisposed:ke.sH,name:ke.sH,package:ke.sH,isDeleted:ke.EW,path:ke.EW,_elementHashCode:ke.EW,hashCode:ke.EW,setIsDeleted:ke.XI,dispose:ke.XI})},Ao=Co((e=>(So(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))),Io=Co((e=>(So(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))),xo=Co((e=>(0,ke.Gn)(e,{value:ke.sH,valueForSerialization:ke.EW})));var wo=n(9499),Oo=n(1937);const Ro=e=>wo.sha1().update(e).digest("hex"),ko=e=>Ro(e.filter(B).map((e=>"string"==typeof e||"boolean"==typeof e||"number"==typeof e?Ro(e):e.hashCode)).join(",")),Po="::",Lo="###",Mo=["$implicit"];var Do,Fo,Bo,jo,Vo;(Vo=Do||(Do={})).CORE="CORE",Vo.MAIN="ROOT",Vo.MODEL_GENERATION="MODEL_GENERATION_ROOT",Vo.SYSTEM="SYSTEM_ROOT",Vo.PROJECT_DEPENDENCY_ROOT="PROJECT_DEPENDENCY_ROOT",(jo=Fo||(Fo={})).STRING="String",jo.BOOLEAN="Boolean",jo.BINARY="Binary",jo.NUMBER="Number",jo.INTEGER="Integer",jo.FLOAT="Float",jo.DECIMAL="Decimal",jo.DATE="Date",jo.STRICTDATE="StrictDate",jo.DATETIME="DateTime",jo.STRICTTIME="StrictTime",jo.LATESTDATE="LatestDate",jo.BYTE="Byte",function(e){e.Service_Test="serviceTest",e.Mapping_Test="mappingTest",e.Function_Test="functionTest"}(Bo||(Bo={}));const Ho=["meta::pure::metamodel::type","meta::pure::functions::date","meta::pure::profiles"];var Go,Uo,$o,Yo,Wo,zo,Ko,Xo,qo,Jo,Zo;(Uo=Go||(Go={})).ANY="meta::pure::metamodel::type::Any",Uo.NIL="meta::pure::metamodel::type::Nil",Uo.PROFILE_DOC="meta::pure::profiles::doc",Uo.PROFILE_TEMPORAL="meta::pure::profiles::temporal",Uo.PROFILE="meta::pure::metamodel::extension::Profile",Uo.ENUMERATION="meta::pure::metamodel::type::Enumeration",Uo.MEASURE="meta::pure::metamodel::type::Measure",Uo.CLASS="meta::pure::metamodel::type::Class",Uo.ASSOCIATION="meta::pure::metamodel::relationship::Association",Uo.FUNCTION="meta::pure::metamodel::function::ConcreteFunctionDefinition",Uo.FLAT_DATA="meta::flatData::metamodel::FlatData",Uo.DATABASE="meta::relational::metamodel::Database",Uo.MAPPING="meta::pure::mapping::Mapping",Uo.SERVICE="meta::legend::service::metamodel::Service",Uo.CONNECTION="meta::pure::runtime::PackageableConnection",Uo.RUNTIME="meta::pure::runtime::PackageableRuntime",Uo.EXECUTION_ENVIRONMENT="meta::legend::service::metamodel::ExecutionEnvironmentInstance",Uo.FILE_GENERATION="meta::pure::generation::metamodel::GenerationConfiguration",Uo.GENERATION_SPECIFICATION="meta::pure::generation::metamodel::GenerationSpecification",Uo.SECTION_INDEX="meta::pure::metamodel::section::SectionIndex",Uo.DATA_ELEMENT="meta::pure::data::DataElement",Uo.SNOWFLAKE_APP="meta::external::function::activator::snowflakeApp::SnowflakeApp",Uo.HOSTED_SERVICE="meta::external::function::activator::hostedService::HostedService",(zo=$o||($o={})).BUSINESS_TEMPORAL="businesstemporal",zo.PROCESSING_TEMPORAL="processingtemporal",zo.BITEMPORAL="bitemporal",(Wo=Yo||(Yo={})).ALL_VERSIONS="AllVersions",Wo.ALL_VERSIONS_IN_RANGE="AllVersionsInRange",(qo=Ko||(Ko={})).CLASS="CLASS",qo.STORE="STORE",qo.MAPPING="MAPPING",qo.RUNTIME="RUNTIME",qo.FUNCTION="FUNCTION",qo.FILE_GENERATION="FILE_GENERATION",qo.SERVICE="SERVICE",qo.DATA="DATA",function(e){e.LET="meta::pure::functions::lang::letFunction",e.NEW="meta::pure::functions::meta::new",e.FROM="meta::pure::mapping::from"}(Xo||(Xo={})),(Zo=Jo||(Jo={})).INTERNAL__UNKNOWN_ELEMENT="INTERNAL__UNKNOWN_ELEMENT",Zo.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT="INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT",Zo.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR="INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR",Zo.PACKAGE="PACKAGE",Zo.PACKAGEABLE_ELEMENT="PACKAGEABLE_ELEMENT",Zo.PACKAGEABLE_ELEMENT_POINTER="PACKAGEABLE_ELEMENT_POINTER",Zo.PROFILE="PROFILE",Zo.TAG_POINTER="TAG_POINTER",Zo.STEREOTYPE_POINTER="STEREOTYPE_POINTER",Zo.TAGGED_VALUE="TAGGED_VALUE",Zo.ENUMERATION="ENUMERATION",Zo.ENUM_VALUE="ENUM_VALUE",Zo.CLASS="CLASS",Zo.PROPERTY="PROPERTY",Zo.PROPERTY_DEFAULT_VALUE="PROPERTY_DEFAULT_VALUE",Zo.PROPERTY_POINTER="PROPERTY_POINTER",Zo.MULTIPLICITY="MULTIPLICITY",Zo.CONSTRAINT="CONSTRAINT",Zo.DERIVED_PROPERTY="DERIVED_PROPERTY",Zo.ASSOCIATION="ASSOCIATION",Zo.FUNCTION="FUNCTION",Zo.MEASURE="MEASURE",Zo.UNIT="UNIT",Zo.FUNCTION_TEST_SUITE="FUNCTION_TEST_SUITE",Zo.FUNCTION_TEST="FUNCTION_TEST",Zo.FUNCTION_STORE_TEST_DATA="FUNCTION_STORE_TEST_DATA",Zo.FUNCTION_PARAMETER_VALUE="FUNCTION_PARAMETER_VALUE",Zo.ASSERT_FAIL="ASSERT_FAIL",Zo.ASSERT_PASS="ASSERT_PASS",Zo.EQUAL_TO_JSON_ASSERT_FAIL="EQUAL_TO_JSON_ASSERT_FAIL",Zo.EQUAL_TO="EQUAL_TO",Zo.EQUAL_TO_JSON="EQUAL_TO_JSON",Zo.EQUAL_TO_TDS="EQUAL_TO_TDS",Zo.SECTION_INDEX="SECTION_INDEX",Zo.SECTION="SECTION",Zo.IMPORT_AWARE_CODE_SECTION="IMPORT_AWARE_CODE_SECTION",Zo.DEFAULT_CODE_SECTION="DEFAULT_CODE_SECTION",Zo.RAW_LAMBDA="RAW_LAMBDA",Zo.RAW_VARIABLE="RAW_VARIABLE",Zo.RAW_INSTANCE_VALUE="RAW_INSTANCE_VALUE",Zo.BINDING_TRANSFORMER="BINDING_TRANSFORMER",Zo.INTERNAL__UNKNOWN_VALUE_SPECIFICATION="INTERNAL__UNKNOWN_VALUE_SPECIFICATION",Zo.INTERNAL__PROPAGATED_VALUE="INTERNAL__PROPAGATED_VALUE",Zo.VARIABLE_EXPRESSION="VARIABLE_EXPRESSION",Zo.EXPRESSION="EXPRESSION",Zo.FUNCTION_EXPRESSION="FUNCTION_EXPRESSION",Zo.SIMPLE_FUNCTION_EXPRESSION="SIMPLE_FUNCTION_EXPRESSION",Zo.ABSTRACT_PROPERTY_EXPRESSION="ABSTRACT_PROPERTY_EXPRESSION",Zo.INSTANCE_VALUE="INSTANCE_VALUE",Zo.PRIMITIVE_INSTANCE_VALUE="PRIMITIVE_INSTANCE_VALUE",Zo.ENUM_INSTANCE_VALUE="ENUM_INSTANCE_VALUE",Zo.KEY_EXPRESSION_INSTANCE_VALUE="KEY_EXPRESSION_INSTANCE_VALUE",Zo.KEY_EXPRESSION_VALUE="KEY_EXPRESSION_VALUE",Zo.RUNTIME_INSTANCE_VALUE="RUNTIME_INSTANCE_VALUE",Zo.PAIR_INSTANCE_VALUE="PAIR_INSTANCE_VALUE",Zo.MAPPING_INSTANCE_VALUE="MAPPING_INSTANCE_VALUE",Zo.PURE_LIST_INSTANCE_VALUE="PURE_LIST_INSTANCE_VALUE",Zo.COLLECTION_INSTANCE_VALUE="COLLECTION_INSTANCE_VALUE",Zo.LAMBDA_FUNCTION_INSTANCE_VALUE="LAMBDA_FUNCTION_INSTANCE_VALUE",Zo.FUNCTION_TYPE="FUNCTION_TYPE",Zo.LAMBDA_FUNCTION="LAMBDA_FUNCTION",Zo.ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE="ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE",Zo.ALLOY_SERIALIZATION_CONFIG="ALLOY_SERIALIZATION_CONFIG",Zo.ROOT_GRAPH_FETCH_TREE="ROOT_GRAPH_FETCH_TREE",Zo.PROPERTY_GRAPH_FETCH_TREE="PROPERTY_GRAPH_FETCH_TREE",Zo.SUBTYPE_GRAPH_FETCH_TREE="SUBTYPE_GRAPH_FETCH_TREE",Zo.SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE="SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE",Zo.PROPERTY_GRAPH_FETCH_TREE_INSTANCE_VALUE="PROEPRTY_GRAPH_FETCH_TREE_INSTANCE_VALUE",Zo.ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE="ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE",Zo.RELATION_COL_SPEC_ARRAY="RELATION_COL_SPEC_ARRAY",Zo.RELATION_COL_SPEC="RELATION_COL_SPEC",Zo.INTERNAL__UNKNOWN_STORE="INTERNAL__UNKNOWN_STORE",Zo.INTERNAL__UNKNOWN_CONNECTION="INTERNAL__UNKNOWN_CONNECTION",Zo.INTERNAL__UNKNOWN_PROPERTY_MAPPING="INTERNAL__UNKNOWN_PROPERTY_MAPPING",Zo.INTERNAL__UNKNOWN_CLASS_MAPPING="INTERNAL__UNKNOWN_CLASS_MAPPING",Zo.INTERNAL__UNKNOWN_MAPPING_INCLUDE="INTERNAL__UNKNOWN_MAPPING_INCLUDE",Zo.MAPPING="MAPPING",Zo.MAPPING_INCLUDE_MAPPING="MAPPING_INCLUDE_MAPPING",Zo.ASSOCIATION_IMPLEMENTATION="ASSOCIATION_IMPLEMENTATION",Zo.RELATIONAL_ASSOCIATION_IMPLEMENTATION="RELATIONAL_ASSOCIATION_IMPLEMENTATION",Zo.XSTORE_ASSOCIATION_IMPLEMENTATION="XSTORE_ASSOCIATION_IMPLEMENTATION",Zo.ENUMERATION_MAPPING="ENUMERATION_MAPPING",Zo.ENUM_VALUE_MAPPING="ENUM_VALUE_MAPPING",Zo.SET_IMPLEMENTATION="SET_IMPLEMENTATION",Zo.OPERATION_SET_IMPLEMENTATION="OPERATION_SET_IMPLEMENTATION",Zo.PURE_INSTANCE_SET_IMPLEMENTATION="PURE_INSTANCE_SET_IMPLEMENTATION",Zo.PROPERTY_MAPPING="PROPERTY_MAPPING",Zo.LOCAL_MAPPING_PROPERTY="LOCAL_MAPPING_PROPERTY",Zo.PURE_PROPERTY_MAPPING="PURE_PROPERTY_MAPPING",Zo.XSTORE_PROPERTY_MAPPING="XSTORE_PROPERTY_MAPPING",Zo.MAPPING_TEST_LEGACY="MAPPING_TEST_LEGACY",Zo.MAPPING_TEST_SUITE="MAPPING_TEST_SUITE",Zo.MAPPING_TEST="MAPPING_TEST",Zo.STORE_TEST_DATA="STORE_TEST_DATA",Zo.INPUT_DATA="INPUT_DATA",Zo.FLAT_DATA_INPUT_DATA="FLAT_DATA_INPUT_DATA",Zo.RELATIONAL_INPUT_DATA="RELATIONAL_INPUT_DATA",Zo.OBJECT_INPUT_DATA="OBJECT_INPUT_DATA",Zo.MAPPING_TEST_ASSERT="MAPPING_TEST_ASSERT",Zo.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT="EXPECTED_OUTPUT_MAPPING_TEST_ASSERT",Zo.FILTER_MAPPING="FILTER_MAPPING",Zo.COLUMN_MAPPING="COLUMN_MAPPING",Zo.GROUP_BY_MAPPING="GROUP_BY_MAPPING",Zo.RUNTIME="RUNTIME",Zo.PACKAGEABLE_RUNTIME="PACKAGEABLE_RUNTIME",Zo.ENGINE_RUNTIME="ENGINE_RUNTIME",Zo.SINGLE_ENGINE_RUNTIME="SINGLE_ENGINE_RUNTIME",Zo.LEGACY_RUNTIME="LEGACY_RUNTIME",Zo.RUNTIME_POINTER="RUNTIME_POINTER",Zo.STORE_CONNECTIONS="STORE_CONNECTIONS",Zo.IDENTIFIED_CONNECTION="IDENTIFIED_CONNECTION",Zo.PACKAGEABLE_CONNECTION="PACKAGEABLE_CONNECTION",Zo.CONNECTION_POINTER="CONNECTION_POINTER",Zo.XML_MODEL_CONNECTION="XML_MODEL_CONNECTION",Zo.JSON_MODEL_CONNECTION="JSON_MODEL_CONNECTION",Zo.MODEL_CHAIN_CONNECTION="MODEL_CHAIN_CONNECTION",Zo.FLAT_DATA_CONNECTION="FLAT_DATA_CONNECTION",Zo.AGGREGATION_AWARE_MAPPING="AGGREGATION_AWARE_MAPPING",Zo.AGGREGATION_AWARE_SPECIFICATION="AGGREGATION_AWARE_SPECIFICATION",Zo.AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER="AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER",Zo.AGGREGATE_FUNCTION="AGGREGATE_FUNCTION",Zo.GROUP_BY_FUNCTION="GROUP_BY_FUNCTION",Zo.GENERATION_TREE="GENERATION_TREE",Zo.GENERATION_TREE_NODE="GENERATION_TREE_NODE",Zo.FILE_GENERATION="FILE_GENERATION",Zo.CONFIGURATION_PROPERTY="CONFIGURATION_PROPERTY",Zo.INTERNAL__UNKNOWN_EMBEDDED_DATA="INTERNAL__UNKNOWN_EMBEDDED_DATA",Zo.EXTERNAL_FORMAT_DATA="EXTERNAL_FORMAT_DATA",Zo.MODEL_STORE_DATA="MODEL_STORE_DATA",Zo.MODEL_DATA="MODEL_DATA",Zo.MODEL_EMBEDDED_DATA="MODEL_EMBEDDED_DATA",Zo.MODEL_INSTANCE_DATA="MODEL_INSTANCE_DATA",Zo.DATA_ELEMENT_REFERENCE="DATA_ELEMENT_REFERENCE",Zo.DATA_ELEMENT="DATA_ELEMENT",Zo.RELATIONAL_CSV_DATA="RELATIONAL_CSV_DATA",Zo.RELATIONAL_TDS="RELATIONAL_TDS",Zo.RELATIONAL_CSV_DATA_TABLE="RELATIONAL_CSV_DATA_TABLE",Zo.BINDING="BINDING",Zo.SCHEMA_SET="SCHEMA_SET",Zo.SCHEMA="SCHEMA",Zo.MODEL_UNIT="MODEL_UNIT",Zo.URL_STREAM="URL_STREAM",Zo.EXTERNAL_FORMAT_CONNECTION="EXTERNAL_FORMAT_CONNECTION",Zo.SERVICE="SERVICE",Zo.SERVICE_OWNER="SERVICE_OWNER",Zo.SERVICE_PURE_EXECUTION="SERVICE_PURE_EXECUTION",Zo.SERVICE_PURE_SINGLE_EXECUTION="SERVICE_PURE_SINGLE_EXECUTION",Zo.SERVICE_KEYED_EXECUTION_PARAMETER="SERVICE_KEYED_EXECUTION_PARAMETER",Zo.SERVICE_PURE_MULTI_EXECUTION="SERVICE_PURE_MULTI_EXECUTION",Zo.SERVICE_TEST_CONTAINER="SERVICE_TEST_CONTAINER",Zo.SERVICE_LEGACY_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_SINGLE_EXECUTION_TEST",Zo.SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST",Zo.SERVICE_LEGACY_MULTI_EXECUTION_TEST="SERVICE_LEGACY_MULTI_EXECUTION_TEST",Zo.SERVICE_CONNECTION_TEST_DATA="SERVICE_CONNECTION_TEST_DATA",Zo.SERVICE_TEST_DATA="SERVICE_TEST_DATA",Zo.SERVICE_TEST_SUITE="SERVICE_TEST_SUITE",Zo.SERVICE_TEST="SERVICE_TEST",Zo.SERVICE_PARAMETER_VALUE="SERVICE_PARAMETER_VALUE",Zo.SERVICE_POST_VALIDATION="SERVICE_POST_VALIDATION",Zo.SERVICE_POST_VALIDATION_ASSERTION="SERVICE_POST_VALIDATION_ASSERTION",Zo.EXECUTION_ENVIRONMENT_INSTANCE="EXECUTION_ENVIRONMENT_INSTANCE",Zo.SINGLE_EXECUTION_PARAMETER="SINGLE_EXECUTION_PARAMETER",Zo.MULTI_EXECUTION_PARAMETER="MULTI_EXECUTION_PARAMETER",Zo.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION="INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION",Zo.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY="INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY",Zo.INTERNAL__UNKNOWN_POST_PROCESSOR="INTERNAL__UNKNOWN_POST_PROCESSOR",Zo.DATABASE="DATABASE",Zo.DATABASE_SCHEMA="DATABASE_SCHEMA",Zo.DATABASE_JOIN="DATABASE_JOIN",Zo.DATABASE_FILTER="DATABASE_FILTER",Zo.DATBASE_VIEW="DATBASE_VIEW",Zo.DATABASE_SCHEMA_TABLE="DATABASE_SCHEMA_TABLE",Zo.DATABASE_TABLE_COLUMN="DATABASE_TABLE_COLUMN",Zo.RELATIONAL="RELATIONAL",Zo.RELATIONAL_OPERATION_DYNA_FUNC="RELATIONAL_OPERATION_DYNA_FUNC",Zo.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS="RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS",Zo.RELATIONAL_OPERATION_LITERAL="RELATIONAL_OPERATION_LITERAL",Zo.RELATIONAL_OPERATION_LITERAL_LIST="RELATIONAL_OPERATION_LITERAL_LIST",Zo.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN="RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN",Zo.RELATIONAL_OPERATION_TABLE_POINTER="RELATIONAL_OPERATION_TABLE_POINTER",Zo.RELATIONAL_OPERATION_JOIN_POINTER="RELATIONAL_OPERATION_JOIN_POINTER",Zo.RELATIONAL_DATATYPE_VARCHAR="RELATIONAL_DATATYPE_VARCHAR",Zo.RELATIONAL_DATATYPE_CHAR="RELATIONAL_DATATYPE_CHAR",Zo.RELATIONAL_DATATYPE_VARBINARY="RELATIONAL_DATATYPE_VARBINARY",Zo.RELATIONAL_DATATYPE_BINARY="RELATIONAL_DATATYPE_BINARY",Zo.RELATIONAL_DATATYPE_BIT="RELATIONAL_DATATYPE_BIT",Zo.RELATIONAL_DATATYPE_INTEGER="RELATIONAL_DATATYPE_INTEGER",Zo.RELATIONAL_DATATYPE_BIGINT="RELATIONAL_DATATYPE_BIGINT",Zo.RELATIONAL_DATATYPE_SMALLINT="RELATIONAL_DATATYPE_SMALLINT",Zo.RELATIONAL_DATATYPE_TINYINT="RELATIONAL_DATATYPE_TINYINT",Zo.RELATIONAL_DATATYPE_NUMERIC="RELATIONAL_DATATYPE_NUMERIC",Zo.RELATIONAL_DATATYPE_DECIMAL="RELATIONAL_DATATYPE_DECIMAL",Zo.RELATIONAL_DATATYPE_DOUBLE="RELATIONAL_DATATYPE_DOUBLE",Zo.RELATIONAL_DATATYPE_FLOAT="RELATIONAL_DATATYPE_FLOAT",Zo.RELATIONAL_DATATYPE_REAL="RELATIONAL_DATATYPE_REAL",Zo.RELATIONAL_DATATYPE_DATE="RELATIONAL_DATATYPE_DATE",Zo.RELATIONAL_DATATYPE_TIMESTAMP="RELATIONAL_DATATYPE_TIMESTAMP",Zo.RELATIONAL_DATATYPE_OTHER="RELATIONAL_DATATYPE_OTHER",Zo.RELATIONAL_DATATYPE_SEMISTRUCTURED="RELATIONAL_DATATYPE_SEMISTRUCTURED",Zo.RELATIONAL_DATATYPE_JSON="RELATIONAL_DATATYPE_JSON",Zo.ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION="ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Zo.RELATIONAL_INSTANCE_SET_IMPLEMENTATION="RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Zo.REALTIONAL_PROPERTY_MAPPING="REALTIONAL_PROPERTY_MAPPING",Zo.EMBEDDED_REALTIONAL_PROPERTY_MAPPING="EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Zo.INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Zo.OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Zo.BUSINESS_MILESTONING="BUSINESS_MILESTONING",Zo.BUSINESS_SNAPSHOT_MILESTONING="BUSINESS_SNAPSHOT_MILESTONING",Zo.PROCESSING_MILESTONING="PROCESSING_MILESTONING",Zo.RELATIONAL_DATABASE_CONNECTION="RELATIONAL_DATABASE_CONNECTION",Zo.STATIC_DATASOURCE_SPECIFICATION="STATIC_DATASOURCE_SPECIFICATION",Zo.LOCAL_H2_DATASOURCE_SPECIFICATION="LOCAL_H2_DATASOURCE_SPECIFICATION",Zo.EMBEDDED_H2_DATASOURCE_SPECIFICATION="EMBEDDED_H2_DATASOURCE_SPECIFICATION",Zo.SNOWFLAKE_DATASOURCE_SPECIFICATION="SNOWFLAKE_DATASOURCE_SPECIFICATION",Zo.REDSHIFT_DATASOURCE_SPECIFICATION="REDSHIFT_DATASOURCE_SPECIFICATION",Zo.BIGQUERY_DATASOURCE_SPECIFICATION="BIGQUERY_DATASOURCE_SPECIFICATION",Zo.DATABRICKS_DATASOURCE_SPECIFICATION="DATABRICKS_DATASOURCE_SPECIFICATION",Zo.SPANNER_DATASOURCE_SPECIFICATION="SPANNER_DATASOURCE_SPECIFICATION",Zo.TRINO_DATASOURCE_SPECIFICATION="TRINO_DATASOURCE_SPECIFICATION",Zo.TRINO_SSL_SPECIFICATION="TRINO_SSL_SPECIFICATION",Zo.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY="DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY",Zo.DEFAULT_H2_AUTHENTICATION_STRATEGY="DEFAULT_H2_AUTHENTICATION_STRATEGY",Zo.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY="SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY",Zo.API_TOKEN_AUTHENTICATION_STRATEGY="API_TOKEN_AUTHENTICATION_STRATEGY",Zo.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY="GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY",Zo.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Zo.OAUTH_AUTHENTICATION_STRATEGY="OAUTH_AUTHENTICATION_STRATEGY",Zo.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY="GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY",Zo.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Zo.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY="TRINO_KEREBEROS_AUTHENTICATION_STRATEGY",Zo.MAPPER_POST_PROCESSOR="MAPPER_POST_PROCESSOR",Zo.SCHEMA_MAPPER="SCHEMA_MAPPER",Zo.TABLE_MAPPER="TABLE_MAPPER",Zo.FLAT_DATA="FLAT_DATA",Zo.FLAT_DATA_SECTION="FLAT_DATA_SECTION",Zo.FLAT_DATA_PROPERTY="FLAT_DATA_PROPERTY",Zo.FLAT_DATA_ROOT_RECORD_TYPE="FLAT_DATA_ROOT_RECORD_TYPE",Zo.FLAT_DATA_RECORD_TYPE="FLAT_DATA_RECORD_TYPE",Zo.FLAT_DATA_RECORD_FIELD="FLAT_DATA_RECORD_FIELD",Zo.FLAT_DATA_STRING="FLAT_DATA_STRING",Zo.FLAT_DATA_BOOLEAN="FLAT_DATA_BOOLEAN",Zo.FLAT_DATA_NUMBER="FLAT_DATA_NUMBER",Zo.FLAT_DATA_INTEGER="FLAT_DATA_INTEGER",Zo.FLAT_DATA_FLOAT="FLAT_DATA_FLOAT",Zo.FLAT_DATA_DECIMAL="FLAT_DATA_DECIMAL",Zo.FLAT_DATA_DATE="FLAT_DATA_DATE",Zo.FLAT_DATA_DATE_TIME="FLAT_DATA_DATE_TIME",Zo.FLAT_DATA_STRICT_DATE="FLAT_DATA_STRICT_DATE",Zo.FLAT_DATA_INSTANCE_SET_IMPLEMENTATION="FLAT_DATA_INSTANCE_SET_IMPLEMENTATION",Zo.FLAT_DATA_PROPERTY_MAPPING="FLAT_DATA_PROPERTY_MAPPING",Zo.FLAT_DATA_ASSOCIATION_IMPLEMENTATION="FLAT_DATA_ASSOCIATION_IMPLEMENTATION",Zo.FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING="FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING",Zo.EMBEDDED_FLAT_DATA_PROPERTY_MAPPING="EMBEDDED_FLAT_DATA_PROPERTY_MAPPING",Zo.FLAT_DATA_SECTION_POINTER="FLAT_DATA_SECTION_POINTER",Zo.SNOWFLAKE_APP="SNOWFLAKE_APP",Zo.HOSTED_SERVICE="HOSTED_SERVICE",Zo.HOSTED_SERVICE_OWNER="HOSTED_SERVICE_OWNER";const Qo=e=>{return n={excludeKeys:e=>e.toLowerCase().endsWith("sourceInformation".toLowerCase())},z(J(t=e),"Can't hash non-object value"),Oo(t,n);var t,n},er=(e,t)=>ko([e?Qo(e):"",t?Qo(t):""]),tr=(e,t)=>[Jo.PACKAGEABLE_ELEMENT_POINTER,e??"",t].map(Ro).join(",");class nr{stereotypes=[];taggedValues=[]}class ir extends nr{name}class sr extends ir{_UUID=(0,o.A)();_isDeleted=!1;_isDisposed=!1;package;constructor(e){super(),this.name=e}get isDeleted(){return this._isDeleted}setIsDeleted(e){this._isDeleted=e}get path(){if(!this.package)return this.name;const e=this.package.path;return e?`${e}${Po}${this.name}`:this.name}dispose(){this._isDisposed=!0;try{this.hashCode}catch{}}get _elementHashCode(){return ko([Jo.PACKAGEABLE_ELEMENT,this.path])}get hashCode(){if(this._isDisposed)throw new P(`Element '${this.path}' is already disposed`);return this._elementHashCode}}class or extends sr{}class rr extends or{_subclasses=[];_generatedMilestonedProperties=[];properties=[];propertiesFromAssociations=[];derivedProperties=[];generalizations=[];constraints=[];dispose(){super.dispose(),this._subclasses=[],this.generalizations.forEach((e=>{const t=e.value.rawType;t._isDisposed||(t._subclasses=t._subclasses.filter((e=>!e._isDisposed)))}))}get _elementHashCode(){return ko([Jo.CLASS,this.path,ko(this.properties),ko(this.derivedProperties),ko(this.generalizations.map((e=>e.ownerReference.valueForSerialization??""))),ko(this.constraints),ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Class(this)}}class ar extends or{}class cr extends ar{values=[];get _elementHashCode(){return ko([Jo.ENUMERATION,this.path,ko(this.values),ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Enumeration(this)}}class lr extends ar{measure;conversionFunction;constructor(e,t,n){super(e),this.measure=t,this.conversionFunction=n}get hashCode(){return ko([Jo.UNIT,this.measure.path,this.conversionFunction??""])}accept_PackageableElementVisitor(e){throw new L}}class dr extends or{canonicalUnit;nonCanonicalUnits=[];get _elementHashCode(){return ko([Jo.MEASURE,this.path,this.canonicalUnit??"",ko(this.nonCanonicalUnits)])}accept_PackageableElementVisitor(e){return e.visit_Measure(this)}}class ur extends sr{children=[];get path(){return this.package?super.path:""}get hashCode(){return""}accept_PackageableElementVisitor(e){return e.visit_Package(this)}}class pr{_OWNER;parserName;elements=[];constructor(e,t){this.parserName=e,this._OWNER=t}get hashCode(){return ko([Jo.SECTION,this.parserName,ko(this.elements.map((e=>e.valueForSerialization??"")))])}}class hr extends pr{imports=[];get hashCode(){return ko([Jo.IMPORT_AWARE_CODE_SECTION,super.hashCode,ko(this.imports.map((e=>e.valueForSerialization??"")))])}}class mr extends pr{get hashCode(){return ko([Jo.DEFAULT_CODE_SECTION,super.hashCode])}}class gr{_UUID=(0,o.A)()}class fr extends gr{ownerReference;constructor(e){super(),this.ownerReference=e}}class _r extends gr{value;constructor(e){super(),this.value=e}}class Er extends _r{constructor(e){super(e)}static create(e){return new Er(e)}get valueForSerialization(){return this.value.path}}const Nr=Co((e=>(0,ke.Gn)(e,{name:ke.sH,value:ke.sH.ref,hashCode:ke.EW}))),br=Co((e=>(So(e),(0,ke.Gn)(e,{type:ke.sH,generationOutputPath:ke.sH,scopeElements:ke.sH,configurationProperties:ke.sH,_elementHashCode:ke.$Z}),e.scopeElements.forEach((e=>{e instanceof _r&&xo(e)})),e.configurationProperties.forEach(Nr),e))),vr=Co((e=>((0,ke.Gn)(e,{id:ke.sH,hashCode:ke.EW}),xo(e.generationElement),e))),Tr=Co((e=>(So(e),(0,ke.Gn)(e,{generationNodes:ke.sH,fileGenerations:ke.sH,_elementHashCode:ke.$Z}),e.generationNodes.forEach(vr),e.fileGenerations.forEach(xo),e)));class Cr{_OWNER;included;constructor(e,t){this._OWNER=e,this.included=t}}class yr extends Cr{storeSubstitutions=[];get hashCode(){return ko([Jo.MAPPING_INCLUDE_MAPPING,this.included.valueForSerialization??"",S(this.storeSubstitutions)?.original.valueForSerialization??"",S(this.storeSubstitutions)?.substitute.valueForSerialization??""])}}class Sr{}class Ar extends Sr{expectedOutput;constructor(e){super(),this.expectedOutput=ht(e)}get hashCode(){return ko([Jo.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT,this.expectedOutput])}}class Ir{}var xr,wr,Or;(Or=xr||(xr={})).JSON="JSON",Or.XML="XML";class Rr extends Ir{sourceClass;inputType;data;constructor(e,t,n){super(),this.sourceClass=e,this.inputType=t,this.data=t===xr.JSON?ht(n):n}get hashCode(){return ko([Jo.OBJECT_INPUT_DATA,this.sourceClass.valueForSerialization??"",this.inputType,this.data])}}class kr extends Ir{sourceFlatData;data;constructor(e,t){super(),this.sourceFlatData=e,this.data=t}get hashCode(){return ko([Jo.FLAT_DATA_INPUT_DATA,tr(Ko.STORE,this.sourceFlatData.valueForSerialization??""),this.data])}}!function(e){e.SQL="SQL",e.CSV="CSV"}(wr||(wr={}));class Pr extends Ir{database;data;inputType;constructor(e,t,n){super(),this.database=e,this.data=t,this.inputType=n}get hashCode(){return ko([Jo.RELATIONAL_INPUT_DATA,this.database.valueForSerialization??"",this.data,this.inputType])}}class Lr{}class Mr extends Lr{mappings=[];connectionStores=[];connections=[];get hashCode(){return ko([Jo.ENGINE_RUNTIME,ko(this.mappings.map((e=>tr(Ko.MAPPING,e.valueForSerialization??"")))),ko(this.connectionStores),ko(this.connections.filter((e=>e.storeConnections.length)))])}}class Dr extends Lr{packageableRuntime;constructor(e){super(),this.packageableRuntime=e}get hashCode(){return ko([Jo.RUNTIME_POINTER,this.packageableRuntime.valueForSerialization??""])}}const Fr=Co((e=>((0,ke.Gn)(e,{value:ke.sH,hashCode:ke.EW}),xo(e.type),e))),Br=Co((e=>(0,ke.Gn)(e,{body:ke.sH.ref,parameters:ke.sH.ref,hashCode:ke.EW}))),jr=Co((e=>((0,ke.Gn)(e,{name:ke.sH,multiplicity:ke.sH,hashCode:ke.EW}),xo(e.type),e)));class Vr{observerContext;constructor(e){this.observerContext=e}visit_RawLambda(e){Br(e)}visit_RawVariableExpression(e){jr(e)}visit_RawPrimitiveInstanceValue(e){Fr(e)}}yo(((e,t)=>(e.accept_RawValueSpecificationVisitor(new Vr(t)),e)));class Hr{_correspondingPrimitiveType;constructor(e){this._correspondingPrimitiveType=e}}class Gr extends Hr{trueString;falseString;get hashCode(){return ko([Jo.FLAT_DATA_BOOLEAN,this.trueString??"",this.falseString??""])}}class Ur extends Hr{get hashCode(){return ko([Jo.FLAT_DATA_STRING])}}class $r extends Hr{get hashCode(){return ko([Jo.FLAT_DATA_NUMBER])}}class Yr extends Hr{dateFormat;timeZone;get hashCode(){return ko([Jo.FLAT_DATA_DATE,this.dateFormat?ko(this.dateFormat):"",this.timeZone??""])}}class Wr extends Hr{fields=[];get hashCode(){return ko([Jo.FLAT_DATA_RECORD_TYPE,ko(this.fields)])}}const zr=yo(((e,t)=>(Zd(e,t),(0,ke.Gn)(e,{flatData:ke.sH,sectionName:ke.sH,hashCode:ke.EW}),e))),Kr=Co((e=>((0,ke.Gn)(e,{label:ke.sH,flatDataDataType:ke.sH,optional:ke.sH,address:ke.sH,hashCode:ke.EW}),(e=>{e instanceof Gr?(0,ke.Gn)(e,{trueString:ke.sH,falseString:ke.sH,hashCode:ke.EW}):e instanceof Ur||e instanceof $r?(0,ke.Gn)(e,{hashCode:ke.EW}):e instanceof Yr?(0,ke.Gn)(e,{dateFormat:ke.sH,timeZone:ke.sH,hashCode:ke.EW}):e instanceof Wr&&Co(Xr)(e)})(e.flatDataDataType),e)));function Xr(e){return(0,ke.Gn)(e,{fields:ke.sH,hashCode:ke.EW}),e.fields.forEach(Kr),e}Co(Xr);const qr=Co(Xr),Jr=Co((e=>((0,ke.Gn)(e,{name:ke.sH,value:ke.sH,hashCode:ke.EW}),e))),Zr=Co((e=>((0,ke.Gn)(e,{driverId:ke.sH,name:ke.sH,sectionProperties:ke.sH,recordType:ke.sH,hashCode:ke.EW}),e.sectionProperties.forEach(Jr),e.recordType&&qr(e.recordType),e))),Qr=(Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW}),xo(e.ownerReference),e))),Co((e=>(So(e),(0,ke.Gn)(e,{sections:ke.sH,_elementHashCode:ke.$Z}),e.sections.forEach(Zr),e)))),ea=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),ta=yo(((e,t)=>(au(e,t),(0,ke.Gn)(e,{filter:ke.sH,hashCode:ke.EW}),ea(e.sourceRootRecordType),e.filter&&Br(e.filter),e))),na=yo(((e,t)=>(Zd(e,t),au(e,t),(0,ke.Gn)(e,{rootInstanceSetImplementation:ke.sH,hashCode:ke.EW}),e))),ia=yo(((e,t)=>(Zd(e,t),(0,ke.Gn)(e,{transformer:ke.sH,transform:ke.sH,hashCode:ke.EW}),Br(e.transform),e))),sa=Co((e=>((0,ke.Gn)(e,{data:ke.sH,hashCode:ke.EW}),xo(e.sourceFlatData),e))),oa=Co((e=>((0,ke.Gn)(e,{url:ke.sH,hashCode:ke.EW}),e)));class ra{}class aa extends ra{serverPrincipal;get hashCode(){return ko([Jo.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY,this.serverPrincipal?.toString()??""])}}class ca extends ra{get hashCode(){return ko([Jo.DEFAULT_H2_AUTHENTICATION_STRATEGY])}}class la extends ra{apiToken;constructor(e){super(),this.apiToken=e}get hashCode(){return ko([Jo.API_TOKEN_AUTHENTICATION_STRATEGY,this.apiToken])}}class da extends ra{oauthKey;scopeName;constructor(e,t){super(),this.oauthKey=e,this.scopeName=t}get hashCode(){return ko([Jo.OAUTH_AUTHENTICATION_STRATEGY,this.oauthKey,this.scopeName])}}class ua extends ra{privateKeyVaultReference;passPhraseVaultReference;publicUserName;constructor(e,t,n){super(),this.privateKeyVaultReference=e,this.passPhraseVaultReference=t,this.publicUserName=n}get hashCode(){return ko([Jo.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY,this.privateKeyVaultReference,this.passPhraseVaultReference,this.publicUserName])}}class pa extends ra{get hashCode(){return ko([Jo.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY])}}class ha extends ra{serviceAccountEmail;additionalGcpScopes=[];constructor(e,t=[]){super(),this.serviceAccountEmail=e,this.additionalGcpScopes=t}get hashCode(){return ko([Jo.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY,this.serviceAccountEmail,ko(this.additionalGcpScopes)])}}class ma extends ra{baseVaultReference;userNameVaultReference;passwordVaultReference;constructor(e,t){super(),this.userNameVaultReference=e,this.passwordVaultReference=t}get hashCode(){return ko([Jo.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.baseVaultReference?.toString()??"",this.userNameVaultReference,this.passwordVaultReference])}}class ga extends ra{vaultReference;constructor(e){super(),this.vaultReference=e}get hashCode(){return ko([Jo.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.vaultReference])}}class fa extends ra{kerberosRemoteServiceName;kerberosUseCanonicalHostname;constructor(e,t){super(),this.kerberosRemoteServiceName=e,this.kerberosUseCanonicalHostname=t}get hashCode(){return ko([Jo.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY,this.kerberosRemoteServiceName,this.kerberosUseCanonicalHostname.toString()])}}class _a{}class Ea extends _a{host;port;databaseName;constructor(e,t,n){super(),this.host=e,this.port=t,this.databaseName=n}get hashCode(){return ko([Jo.STATIC_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.databaseName])}}class Na extends _a{hostname;port;protocol;httpPath;constructor(e,t,n,i){super(),this.hostname=e,this.port=t,this.protocol=n,this.httpPath=i}get hashCode(){return ko([Jo.DATABRICKS_DATASOURCE_SPECIFICATION,this.hostname,this.port,this.protocol,this.httpPath])}}class ba extends _a{databaseName;directory;autoServerMode;constructor(e,t,n){super(),this.databaseName=e,this.directory=t,this.autoServerMode=n}get hashCode(){return ko([Jo.EMBEDDED_H2_DATASOURCE_SPECIFICATION,this.databaseName,this.directory,this.autoServerMode.toString()])}}class va extends _a{testDataSetupCsv;testDataSetupSqls=[];get hashCode(){return ko([Jo.LOCAL_H2_DATASOURCE_SPECIFICATION,this.testDataSetupCsv??"",ko(this.testDataSetupSqls)])}}class Ta extends _a{accountName;region;warehouseName;databaseName;cloudType;quotedIdentifiersIgnoreCase;proxyHost;proxyPort;nonProxyHosts;organization;accountType;role;enableQueryTags;constructor(e,t,n,i){super(),this.region=t,this.warehouseName=n,this.databaseName=i,this.accountName=e}get hashCode(){return ko([Jo.SNOWFLAKE_DATASOURCE_SPECIFICATION,this.accountName,this.region,this.warehouseName,this.databaseName,this.cloudType??"",this.proxyHost??"",this.proxyPort??"",this.nonProxyHosts??"",this.organization??"",this.accountType??"",this.role??"",this.quotedIdentifiersIgnoreCase?.toString()??"",this.enableQueryTags?.toString()??""])}}class Ca extends _a{clusterID;databaseName;host;port;region;endpointURL;constructor(e,t,n,i,s,o){super(),this.clusterID=s,this.region=o,this.host=i,this.databaseName=e,this.endpointURL=t,this.port=n}get hashCode(){return ko([Jo.REDSHIFT_DATASOURCE_SPECIFICATION,this.databaseName,this.endpointURL,this.port.toString(),this.clusterID,this.host,this.region])}}class ya extends _a{projectId;defaultDataset;proxyHost;proxyPort;constructor(e,t){super(),this.projectId=e,this.defaultDataset=t}get hashCode(){return ko([Jo.BIGQUERY_DATASOURCE_SPECIFICATION,this.projectId,this.defaultDataset,this.proxyHost??"",this.proxyPort??""])}}class Sa extends _a{projectId;instanceId;databaseId;proxyHost;proxyPort;constructor(e,t,n,i,s){super(),this.projectId=e,this.instanceId=t,this.databaseId=n,this.proxyHost=i,this.proxyPort=s}get hashCode(){return ko([Jo.SPANNER_DATASOURCE_SPECIFICATION,this.projectId,this.instanceId,this.databaseId,this.proxyHost??"",this.proxyPort??""])}}class Aa extends _a{host;port;sslSpecification;catalog;schema;clientTags;constructor(e,t,n){super(),this.host=e,this.port=t,this.sslSpecification=n}get hashCode(){return ko([Jo.TRINO_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.sslSpecification,this.catalog??"",this.schema??"",this.clientTags??""])}}class Ia{}class xa extends Ia{_UUID=(0,o.A)();from;to;constructor(e,t){super(),this.from=e,this.to=t}get hashCode(){return ko([this.from,this.to])}}class wa extends xa{get hashCode(){return ko([super.hashCode,Jo.SCHEMA_MAPPER])}}class Oa extends xa{schema;constructor(e,t,n){super(e,t),this.schema=n}get hashCode(){return ko([super.hashCode,Jo.TABLE_MAPPER,this.schema])}}class Ra{_UUID=(0,o.A)()}class ka extends Ra{mappers=[];get hashCode(){return ko([Jo.MAPPER_POST_PROCESSOR,ko(this.mappers)])}}const Pa="{target}",La="default";class Ma{}class Da extends Ma{}class Fa extends Da{}class Ba extends Fa{name;parameters=[];constructor(e){super(),this.name=e}get hashCode(){return ko([Jo.RELATIONAL_OPERATION_DYNA_FUNC,this.name,ko(this.parameters)])}}var ja;!function(e){e.INNER="INNER",e.LEFT_OUTER="LEFT_OUTER",e.RIGHT_OUTER="RIGHT_OUTER",e.OUTER="OUTER"}(ja||(ja={}));const Va=e=>[e].concat(e.children.length?Va(e.children[0]):[]);class Ha extends Ma{relationalOperationElement;joinTreeNode;get hashCode(){return ko([Jo.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS,ko(this.joinTreeNode?Va(this.joinTreeNode):[]),this.relationalOperationElement??""])}}class Ga extends Ma{relation;name;database;isSelfJoinTarget=!1;get hashCode(){throw new L}}class Ua extends Ma{alias;column;columnName;get hashCode(){return ko([Jo.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN,this.alias.isSelfJoinTarget?this.alias.relation.selfJoinPointerHashCode:this.alias.relation.pointerHashCode,this.alias.isSelfJoinTarget?Pa:this.alias.name,this.column.value.name])}}class $a extends Ma{value;constructor(e){super(),this.value=e}get hashCode(){return ko([Jo.RELATIONAL_OPERATION_LITERAL,"number"==typeof this.value?this.value.toString():this.value])}}class Ya extends Ma{values=[];get hashCode(){return ko([Jo.RELATIONAL_OPERATION_LITERAL_LIST,ko(this.values)])}}class Wa extends Ma{owner;name;type;nullable;get hashCode(){return ko([Jo.DATABASE_TABLE_COLUMN,this.name,this.nullable?.toString()??"",this.type])}}class za{}class Ka extends za{infinityDate}class Xa{}class qa extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_BIGINT])}}class Ja extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_SMALLINT])}}class Za extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_TINYINT])}}class Qa extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_INTEGER])}}class ec extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_FLOAT])}}class tc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_DOUBLE])}}class nc extends Xa{size;constructor(e){super(),this.size=e}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_VARCHAR,this.size.toString()])}}class ic extends Xa{size;constructor(e){super(),this.size=e}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_CHAR,this.size.toString()])}}class sc extends Xa{size;constructor(e){super(),this.size=e}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_VARBINARY,this.size.toString()])}}class oc extends Xa{precision;scale;constructor(e,t){super(),this.precision=e,this.scale=t}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_DECIMAL,this.precision.toString(),this.scale.toString()])}}class rc extends Xa{precision;scale;constructor(e,t){super(),this.precision=e,this.scale=t}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_NUMERIC,this.precision.toString(),this.scale.toString()])}}class ac extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_TIMESTAMP])}}class cc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_VARCHAR])}}class lc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_BIT])}}class dc extends Xa{size;constructor(e){super(),this.size=e}get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_BINARY,this.size.toString()])}}class uc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_REAL])}}class pc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_SEMISTRUCTURED])}}class hc extends Xa{get hashCode(){return ko([Jo.RELATIONAL_DATATYPE_JSON])}}class mc extends fr{ownerReference;constructor(e){super(e),this.ownerReference=e}}class gc extends mc{value;constructor(e,t){super(e),this.value=t}get pointerHashCode(){return[Jo.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",this.value.schema.name,this.value.name].map(Ro).join(",")}get selfJoinPointerHashCode(){return[Jo.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",La,Pa].map(Ro).join(",")}}class fc extends mc{value;constructor(e,t){super(e),this.value=t}get pointerHashCode(){return[Jo.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",this.value.schema.name,this.value.name].map(Ro).join(",")}get selfJoinPointerHashCode(){return[Jo.RELATIONAL_OPERATION_TABLE_POINTER,this.ownerReference.valueForSerialization??"",La,Pa].map(Ro).join(",")}}const _c=Co((e=>((0,ke.Gn)(e,{packageableElementIncludes:ke.sH,packageableElementExcludes:ke.sH,hashCode:ke.EW}),e.packageableElementIncludes.forEach(xo),e.packageableElementExcludes.forEach(xo),e))),Ec=(Co((e=>($d(e),(0,ke.Gn)(e,{schemaSet:ke.sH,schemaId:ke.sH,contentType:ke.sH,modelUnit:ke.sH,_elementHashCode:ke.$Z}),e.schemaSet&&xo(e.schemaSet),_c(e.modelUnit),e))),Co((e=>((0,ke.Gn)(e,{binding:ke.sH,hashCode:ke.EW}),xo(e.binding),e)))),Nc=Co((e=>((0,ke.Gn)(e,{url:ke.sH,hashCode:ke.EW}),e))),bc=(Co((e=>(Au(e),(0,ke.Gn)(e,{externalSource:ke.sH,hashCode:ke.EW}),Nc(e.externalSource),e))),Co((e=>(0,ke.Gn)(e,{id:ke.sH,location:ke.sH,content:ke.sH,hashCode:ke.EW}))));Co((e=>(So(e),(0,ke.Gn)(e,{format:ke.sH,schemas:ke.sH,_elementHashCode:ke.$Z}),e.schemas.forEach(bc),e)));class vc extends Ra{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_POST_PROCESSOR,Qo(this.content)])}}class Tc extends _a{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION,Qo(this.content)])}}class Cc extends ra{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY,Qo(this.content)])}}const yc=Co((e=>e instanceof qa||e instanceof Ja||e instanceof Za||e instanceof Qa||e instanceof ec||e instanceof tc||e instanceof ac||e instanceof Date||e instanceof cc||e instanceof lc||e instanceof uc||e instanceof pc||e instanceof hc?(0,ke.Gn)(e,{hashCode:ke.EW}):e instanceof nc||e instanceof ic||e instanceof sc||e instanceof dc?(0,ke.Gn)(e,{size:ke.sH,hashCode:ke.EW}):e instanceof oc||e instanceof rc?(0,ke.Gn)(e,{precision:ke.sH,scale:ke.sH,hashCode:ke.EW}):e)),Sc=Co((e=>((0,ke.Gn)(e,{name:ke.sH,type:ke.sH,nullable:ke.sH,hashCode:ke.EW}),yc(e.type),e))),Ac=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW,selfJoinPointerHashCode:ke.EW}),xo(e.ownerReference),e))),Ic=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW,selfJoinPointerHashCode:ke.EW}),xo(e.ownerReference),e))),xc=Co((e=>((0,ke.Gn)(e,{relation:ke.sH,name:ke.sH,database:ke.sH,isSelfJoinTarget:ke.sH}),(e=>{e instanceof fc?Ic(e):e instanceof gc&&Ac(e)})(e.relation),e))),wc=Co((e=>((0,ke.Gn)(e,{name:ke.sH,parameters:ke.sH,hashCode:ke.EW}),e.parameters.forEach(Fc),e))),Oc=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Rc=Co((e=>((0,ke.Gn)(e,{alias:ke.sH,column:ke.sH,columnName:ke.sH,hashCode:ke.EW}),xc(e.alias),Oc(e.column),e))),kc=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Pc=Co((e=>((0,ke.Gn)(e,{alias:ke.sH,children:ke.sH,joinType:ke.sH,hashCode:ke.EW}),e.alias&&xc(e.alias),e.children.forEach(Pc),kc(e.join),e))),Lc=Co((e=>((0,ke.Gn)(e,{relationalOperationElement:ke.sH,joinTreeNode:ke.sH,hashCode:ke.EW}),e.relationalOperationElement&&Fc(e.relationalOperationElement),e.joinTreeNode&&Pc(e.joinTreeNode),e))),Mc=Co((e=>((0,ke.Gn)(e,{value:ke.sH,hashCode:ke.EW}),e.value instanceof Ma&&Fc(e.value),e))),Dc=Co((e=>((0,ke.Gn)(e,{values:ke.sH,hashCode:ke.EW}),e.values.forEach(Mc),e)));function Fc(e){return e instanceof Ba?wc(e):e instanceof Ga?xc(e):e instanceof Ua?Rc(e):e instanceof Wa?Sc(e):e instanceof $a?Mc(e):e instanceof Ya?Dc(e):e instanceof Ha?Lc(e):e}const Bc=Co((e=>e)),jc=yo(((e,t)=>{if(e instanceof Ka)return Bc(e);const n=t.plugins.flatMap((e=>e.getExtraMilestoningObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e})),Vc=Co((e=>((0,ke.Gn)(e,{columnName:ke.sH,relationalOperationElement:ke.sH,hashCode:ke.EW}),Fc(e.relationalOperationElement),e))),Hc=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Gc=Co((e=>((0,ke.Gn)(e,{joinTreeNode:ke.sH,database:ke.sH,filterName:ke.sH,hashCode:ke.EW}),e.joinTreeNode&&Pc(e.joinTreeNode),Hc(e.filter),e))),Uc=Co((e=>((0,ke.Gn)(e,{columns:ke.sH}),e.columns.forEach(Fc),e))),$c=e=>{(0,ke.Gn)(e,{columns:ke.sH,name:ke.sH})},Yc=yo(((e,t)=>($c(e),(0,ke.Gn)(e,{primaryKey:ke.sH,hashCode:ke.EW}),e.primaryKey.forEach(Sc),e.milestoning.forEach((e=>jc(e,t))),e))),Wc=yo(((e,t)=>($c(e),(0,ke.Gn)(e,{primaryKey:ke.sH,columnMappings:ke.sH,filter:ke.sH,distinct:ke.sH,groupBy:ke.sH,hashCode:ke.EW}),e.primaryKey.forEach(Sc),e.columnMappings.forEach(Vc),e.filter&&Gc(e.filter),e.groupBy&&Uc(e.groupBy),e))),zc=yo(((e,t)=>((0,ke.Gn)(e,{name:ke.sH,tables:ke.sH,views:ke.sH,hashCode:ke.EW}),e.tables.forEach((e=>Yc(e,t))),e.views.forEach((e=>Wc(e,t))),e))),Kc=Co((e=>((0,ke.Gn)(e,{name:ke.sH,operation:ke.sH,hashCode:ke.EW}),Fc(e.operation),e))),Xc=Co((e=>((0,ke.Gn)(e,{name:ke.sH,target:ke.sH,aliases:ke.sH,operation:ke.sH,hashCode:ke.EW}),e.target&&xc(e.target),Fc(e.operation),e))),qc=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{schemas:ke.sH,joins:ke.sH,filters:ke.sH,_elementHashCode:ke.$Z}),e.schemas.forEach((e=>zc(e,t))),e.joins.forEach(Xc),e.filters.forEach(Kc),e))),Jc=yo(((e,t)=>(Zd(e,t),(0,ke.Gn)(e,{transformer:ke.sH,relationalOperation:ke.sH.ref,bindingTransformer:ke.sH,hashCode:ke.EW}),e.bindingTransformer&&Ec(e.bindingTransformer),e))),Zc=(e,t)=>(au(e,t),Zd(e,t),(0,ke.Gn)(e,{id:ke.sH,rootInstanceSetImplementation:ke.sH,primaryKey:ke.sH}),e.primaryKey.forEach(Fc),e),Qc=yo(Zc),el=yo(((e,t)=>(Zc(e,t),(0,ke.Gn)(e,{inlineSetImplementation:ke.sH}),gu(e.inlineSetImplementation,t),e))),tl=yo(((e,t)=>(Zc(e,t),(0,ke.Gn)(e,{otherwisePropertyMapping:ke.sH,hashCode:ke.EW}),nu(e.otherwisePropertyMapping,t),e))),nl=yo(((e,t)=>(au(e,t),(0,ke.Gn)(e,{primaryKey:ke.sH}),e.primaryKey.forEach(Fc),e))),il=yo(((e,t)=>(au(e,t),(0,ke.Gn)(e,{columnMappings:ke.sH,filter:ke.sH,distinct:ke.sH,groupBy:ke.sH,mainTableAlias:ke.sH,superSetImplementationId:ke.sH,hashCode:ke.EW}),e.columnMappings.forEach(Vc),e.filter&&Gc(e.filter),e.groupBy&&Uc(e.groupBy),e.mainTableAlias&&xc(e.mainTableAlias),e))),sl=Co((e=>((0,ke.Gn)(e,{data:ke.sH,inputType:ke.sH,hashCode:ke.EW}),xo(e.database),e))),ol=Co((e=>(0,ke.Gn)(e,{host:ke.sH,port:ke.sH,databaseName:ke.sH,hashCode:ke.EW}))),rl=Co((e=>(0,ke.Gn)(e,{hostname:ke.sH,port:ke.sH,protocol:ke.sH,httpPath:ke.sH,hashCode:ke.EW}))),al=Co((e=>(0,ke.Gn)(e,{databaseName:ke.sH,directory:ke.sH,autoServerMode:ke.sH,hashCode:ke.EW}))),cl=Co((e=>(0,ke.Gn)(e,{testDataSetupCsv:ke.sH,testDataSetupSqls:ke.sH,hashCode:ke.EW}))),ll=Co((e=>(0,ke.Gn)(e,{accountName:ke.sH,region:ke.sH,warehouseName:ke.sH,databaseName:ke.sH,cloudType:ke.sH,quotedIdentifiersIgnoreCase:ke.sH,enableQueryTags:ke.sH,proxyHost:ke.sH,proxyPort:ke.sH,nonProxyHosts:ke.sH,organization:ke.sH,accountType:ke.sH,role:ke.sH,hashCode:ke.EW}))),dl=Co((e=>(0,ke.Gn)(e,{databaseName:ke.sH,endpointURL:ke.sH,port:ke.sH,region:ke.sH,clusterID:ke.sH,host:ke.sH,hashCode:ke.EW}))),ul=Co((e=>(0,ke.Gn)(e,{projectId:ke.sH,defaultDataset:ke.sH,proxyHost:ke.sH,proxyPort:ke.sH,hashCode:ke.EW}))),pl=Co((e=>(0,ke.Gn)(e,{projectId:ke.sH,instanceId:ke.sH,databaseId:ke.sH,proxyHost:ke.sH,proxyPort:ke.sH,hashCode:ke.EW}))),hl=Co((e=>(0,ke.Gn)(e,{ssl:ke.sH,trustStorePathVaultReference:ke.sH,trustStorePasswordVaultReference:ke.sH,hashCode:ke.EW}))),ml=Co((e=>((0,ke.Gn)(e,{host:ke.sH,port:ke.sH,catalog:ke.sH,schema:ke.sH,clientTags:ke.sH,hashCode:ke.EW}),hl(e.sslSpecification),e))),gl=Co((e=>(0,ke.Gn)(e,{content:ke.sH.ref,hashCode:ke.EW}))),fl=Co((e=>(0,ke.Gn)(e,{serverPrincipal:ke.sH,hashCode:ke.EW}))),_l=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW}))),El=Co((e=>(0,ke.Gn)(e,{apiToken:ke.sH,hashCode:ke.EW}))),Nl=Co((e=>(0,ke.Gn)(e,{oauthKey:ke.sH,scopeName:ke.sH,hashCode:ke.EW}))),bl=Co((e=>(0,ke.Gn)(e,{privateKeyVaultReference:ke.sH,passPhraseVaultReference:ke.sH,publicUserName:ke.sH,hashCode:ke.EW}))),vl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW}))),Tl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW,userNameVaultReference:ke.sH,passwordVaultReference:ke.sH,baseVaultReference:ke.sH}))),Cl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW,serviceAccountEmail:ke.sH,additionalGcpScopes:ke.sH}))),yl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW,vaultReference:ke.sH}))),Sl=Co((e=>(0,ke.Gn)(e,{hashCode:ke.EW,kerberosRemoteServiceName:ke.sH,kerberosUseCanonicalHostname:ke.sH}))),Al=Co((e=>(0,ke.Gn)(e,{content:ke.sH.ref,hashCode:ke.EW}))),Il=e=>{(0,ke.Gn)(e,{from:ke.sH,to:ke.sH,hashCode:ke.EW})},xl=Co((e=>(Il(e),e))),wl=Co((e=>(Il(e),(0,ke.Gn)(e,{schema:ke.sH}),xl(e.schema),e))),Ol=e=>{(0,ke.Gn)(e,{hashCode:ke.EW})},Rl=(e,t)=>{if(e instanceof vc)return(e=>(Ol(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))(e);if(e instanceof ka)return(e=>(Ol(e),(0,ke.Gn)(e,{mappers:ke.sH}),e.mappers.forEach((e=>{(e=>{e instanceof wa?xl(e):e instanceof Oa&&wl(e)})(e)})),e))(e);const n=t.plugins.flatMap((e=>e.getExtraPostProcessorObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e},kl=yo(((e,t)=>((e=>{Au(e),(0,ke.Gn)(e,{type:ke.sH,timeZone:ke.sH,quoteIdentifiers:ke.sH})})(e),(0,ke.Gn)(e,{datasourceSpecification:ke.sH,authenticationStrategy:ke.sH,localMode:ke.sH,postProcessors:ke.sH,hashCode:ke.EW}),((e,t)=>{if(e instanceof Tc)return gl(e);if(e instanceof Ea)return ol(e);if(e instanceof Na)return rl(e);if(e instanceof ba)return al(e);if(e instanceof va)return cl(e);if(e instanceof Ta)return ll(e);if(e instanceof Ca)return dl(e);if(e instanceof ya)return ul(e);if(e instanceof Sa)return pl(e);if(e instanceof Aa)return ml(e);const n=t.plugins.flatMap((e=>e.getExtraDatasourceSpecificationObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}})(e.datasourceSpecification,t),((e,t)=>{if(e instanceof Cc)return Al(e);if(e instanceof aa)return fl(e);if(e instanceof ca)return _l(e);if(e instanceof la)return El(e);if(e instanceof da)return Nl(e);if(e instanceof ua)return bl(e);if(e instanceof pa)return vl(e);if(e instanceof ma)return Tl(e);if(e instanceof ha)return Cl(e);if(e instanceof ga)return yl(e);if(e instanceof fa)return Sl(e);const n=t.plugins.flatMap((e=>e.getExtraAuthenticationStrategyObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}})(e.authenticationStrategy,t),e.postProcessors.forEach((e=>{Rl(e,t)})),e)));class Pl{id}class Ll extends Pl{__parent;doc;assertions=[]}class Ml extends Pl{__parent;doc;tests=[];skip}class Dl extends Ll{storeTestData=[];get hashCode(){return ko([Jo.MAPPING_TEST,this.id,this.doc??"",ko(this.storeTestData),ko(this.assertions)])}}class Fl extends Ml{func;get hashCode(){return ko([Jo.MAPPING_TEST_SUITE,this.id,this.doc??"",this.func,ko(this.tests)])}}class Bl extends Ll{serializationFormat;parameters=[];keys=[];get hashCode(){return ko([Jo.SERVICE_TEST,this.id,ko(this.assertions),ko(this.parameters),ko(this.keys),this.serializationFormat??""])}}class jl extends Ml{testData;get hashCode(){return ko([Jo.SERVICE_TEST_SUITE,this.id,ko(this.tests),this.testData??""])}}class Vl{id;parentTest}class Hl extends Vl{expected;get hashCode(){return ko([Jo.EQUAL_TO,this.id,Qo(this.expected)])}accept_TestAssertionVisitor(e){return e.visit_EqualTo(this)}}class Gl extends Vl{expected;get hashCode(){return ko([Jo.EQUAL_TO_JSON,this.id,this.expected])}accept_TestAssertionVisitor(e){return e.visit_EqualToJSON(this)}}class Ul extends Vl{expected;get hashCode(){return ko([Jo.EQUAL_TO_TDS,this.id,this.expected])}accept_TestAssertionVisitor(e){return e.visit_EqualToTDS(this)}}class $l{}class Yl extends $l{dataElement;get hashCode(){return ko([Jo.DATA_ELEMENT_REFERENCE,this.dataElement.valueForSerialization??""])}accept_EmbeddedDataVisitor(e){return e.visit_DataElementReference(this)}}class Wl extends $l{contentType;data;get hashCode(){return ko([Jo.EXTERNAL_FORMAT_DATA,this.contentType,this.data])}accept_EmbeddedDataVisitor(e){return e.visit_ExternalFormatData(this)}}class zl{model}class Kl extends zl{data;get hashCode(){return ko([Jo.MODEL_EMBEDDED_DATA,this.model.valueForSerialization??"",this.data])}}class Xl extends zl{instances;get hashCode(){return ko([Jo.MODEL_INSTANCE_DATA,this.model.valueForSerialization??"",Qo(this.instances)])}}class ql extends $l{modelData;get hashCode(){return ko([Jo.MODEL_STORE_DATA,this.modelData?ko(this.modelData):""])}accept_EmbeddedDataVisitor(e){return e.visit_ModelStoreData(this)}}class Jl extends $l{tables=[];accept_EmbeddedDataVisitor(e){return e.visit_RelationalCSVData(this)}get hashCode(){return ko([Jo.RELATIONAL_CSV_DATA_TABLE,ko(this.tables)])}}class Zl extends $l{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_EMBEDDED_DATA,Qo(this.content)])}accept_EmbeddedDataVisitor(e){return e.visit_INTERNAL__UnknownEmbeddedData(this)}}const Ql=Co((e=>((0,ke.Gn)(e,{contentType:ke.sH,data:ke.sH,hashCode:ke.EW}),e))),ed=Co((e=>((0,ke.Gn)(e,{dataElement:ke.sH,hashCode:ke.EW}),e))),td=yo(((e,t)=>((0,ke.Gn)(e,{model:ke.sH,data:ke.sH,hashCode:ke.EW}),cd(e.data,t),e))),nd=yo(((e,t)=>((0,ke.Gn)(e,{model:ke.sH,instances:ke.sH,hashCode:ke.EW}),e))),id=yo(((e,t)=>(e instanceof Kl?td(e,t):e instanceof Xl&&nd(e,t),e))),sd=yo(((e,t)=>((0,ke.Gn)(e,{modelData:ke.sH,hashCode:ke.EW}),e.modelData?.forEach((e=>{id(e,t)})),e))),od=Co((e=>((0,ke.Gn)(e,{values:ke.sH,table:ke.sH,schema:ke.sH,hashCode:ke.EW}),e))),rd=Co((e=>((0,ke.Gn)(e,{tables:ke.sH,hashCode:ke.EW}),e.tables.forEach(od),e))),ad=Co((e=>((0,ke.Gn)(e,{content:ke.sH.ref}),e)));function cd(e,t){if(e instanceof Zl)return ad(e);if(e instanceof Yl)return ed(e);if(e instanceof Wl)return Ql(e);if(e instanceof ql)return sd(e,t);if(e instanceof Jl)return rd(e);const n=t.plugins.flatMap((e=>e.getExtraEmbeddedDataObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e}const ld=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{stereotypes:ke.sH,taggedValues:ke.sH,data:ke.sH,_elementHashCode:ke.$Z}),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),cd(e.data,t),e)));class dd{}class ud extends dd{_OWNER;func;constructor(e,t){super(),this.func=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_PURE_EXECUTION,this.func])}}class pd extends ud{mapping;runtime;constructor(e,t,n,i){super(e,t),this.mapping=n,this.runtime=i}get hashCode(){return ko([Jo.SERVICE_PURE_SINGLE_EXECUTION,super.hashCode,this.mapping?.valueForSerialization??"",this.runtime??""])}}class hd extends ud{executionKey;executionParameters;constructor(e,t,n){super(t,n),this.executionKey=e}get hashCode(){return ko([Jo.SERVICE_PURE_MULTI_EXECUTION,super.hashCode,this.executionKey,ko(this.executionParameters??[])])}}class md{_OWNER;constructor(e){this._OWNER=e}}class gd extends md{data;asserts=[];constructor(e,t){super(e),this.data=t}get hashCode(){return ko([Jo.SERVICE_LEGACY_SINGLE_EXECUTION_TEST,this.data,ko(this.asserts)])}}class fd extends md{tests=[];get hashCode(){return ko([Jo.SERVICE_LEGACY_MULTI_EXECUTION_TEST,ko(this.tests)])}}class _d{}class Ed extends _d{_OWNER;identifier;constructor(e,t){super(),this.identifier=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_OWNER,this.identifier])}}class Nd extends _d{_OWNER;users=[];constructor(e,t){super(),this.users=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_OWNER,ko(this.users)])}}const bd=yo(((e,t)=>((0,ke.Gn)(e,{connectionId:ke.sH,testData:ke.sH,hashCode:ke.EW}),cd(e.testData,t),e))),vd=Co((e=>((0,ke.Gn)(e,{name:ke.sH,value:ke.sH.ref,hashCode:ke.EW}),e))),Td=Co((e=>((0,ke.Gn)(e,{assertion:ke.sH,hashCode:ke.EW,id:ke.sH}),Br(e.assertion),e))),Cd=Co((e=>((0,ke.Gn)(e,{assertions:ke.sH,description:ke.sH,parameters:ke.sH,hashCode:ke.EW}),e.assertions.forEach(Td),e.parameters.forEach(Br),e))),yd=yo(((e,t)=>((0,ke.Gn)(e,{connectionsTestData:ke.sH,hashCode:ke.EW}),e.connectionsTestData.forEach((e=>bd(e,t))),e))),Sd=Co((e=>((0,ke.Gn)(e,{id:ke.sH,serializationFormat:ke.sH,assertions:ke.sH,parameters:ke.sH,keys:ke.sH,hashCode:ke.EW}),e.parameters.forEach(vd),e.assertions.forEach(Ud),e))),Ad=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,tests:ke.sH,testData:ke.sH,hashCode:ke.EW}),e.tests.forEach((e=>Gd(e,t))),e.testData&&yd(e.testData,t),e))),Id=Co((e=>((0,ke.Gn)(e,{parametersValues:ke.sH,assert:ke.sH,singleExecutionTestParent:ke.sH,hashCode:ke.EW}),Br(e.assert),e))),xd=Co((e=>((0,ke.Gn)(e,{data:ke.sH,asserts:ke.sH,hashCode:ke.EW}),e.asserts.forEach(Id),e))),wd=Co((e=>(xd(e),(0,ke.Gn)(e,{key:ke.sH}),e))),Od=Co((e=>((0,ke.Gn)(e,{tests:ke.sH,hashCode:ke.EW}),e.tests.forEach(wd),e))),Rd=Co((e=>((0,ke.Gn)(e,{identifier:ke.sH,hashCode:ke.EW}),e))),kd=Co((e=>((0,ke.Gn)(e,{users:ke.sH,hashCode:ke.EW}),e))),Pd=e=>{(0,ke.Gn)(e,{func:ke.sH}),Br(e.func)},Ld=yo(((e,t)=>(Pd(e),(0,ke.Gn)(e,{runtime:ke.sH,hashCode:ke.EW}),e.mapping&&xo(e.mapping),e.runtime&&ju(e.runtime,t),e))),Md=yo(((e,t)=>((0,ke.Gn)(e,{key:ke.sH,runtime:ke.sH,hashCode:ke.EW}),xo(e.mapping),ju(e.runtime,t),e))),Dd=yo(((e,t)=>(Pd(e),(0,ke.Gn)(e,{executionKey:ke.sH,executionParameters:ke.sH,hashCode:ke.EW}),e.executionParameters?.forEach((e=>Md(e,t))),e))),Fd=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{pattern:ke.sH,owners:ke.sH,ownership:ke.sH,documentation:ke.sH,autoActivateUpdates:ke.sH,execution:ke.sH,test:ke.sH,tests:ke.sH,postValidations:ke.sH,patternParameters:ke.EW,_elementHashCode:ke.$Z}),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),((e,t)=>{e instanceof pd?Ld(e,t):e instanceof hd&&Dd(e,t)})(e.execution,t),e.test&&(e=>{e instanceof gd?xd(e):e instanceof fd&&Od(e)})(e.test),e.ownership&&(e=>{e instanceof Ed?Rd(e):e instanceof Nd&&kd(e)})(e.ownership),e.tests.forEach((e=>Ad(e,t))),e.postValidations.forEach((e=>Cd(e))),e)));class Bd extends Ll{parameters;get hashCode(){return ko([Jo.FUNCTION_TEST,this.id,this.doc??"",this.parameters?ko(this.parameters):""])}}const jd=Co((e=>((0,ke.Gn)(e,{id:ke.sH,expected:ke.sH,hashCode:ke.EW}),e))),Vd=Co((e=>((0,ke.Gn)(e,{id:ke.sH,expected:ke.sH,hashCode:ke.EW}),Ql(e.expected),e))),Hd=Co((e=>((0,ke.Gn)(e,{id:ke.sH,expected:ke.sH,hashCode:ke.EW}),Ql(e.expected),e)));function Gd(e,t){if(e instanceof Bl)return Sd(e);if(e instanceof Dl)return zd(e,t);if(e instanceof Bd)return bp(e);const n=t.plugins.flatMap((e=>e.getExtraAtomicTestObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e}function Ud(e){return e instanceof Hl?jd(e):e instanceof Gl?Hd(e):e instanceof Ul?Vd(e):e}const $d=e=>{So(e),(0,ke.Gn)(e,{includes:ke.sH}),e.includes.forEach(xo)},Yd=Co((e=>(So(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))),Wd=yo(((e,t)=>((0,ke.Gn)(e,{store:ke.sH,data:ke.sH,hashCode:ke.EW}),cd(e.data,t),e))),zd=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,assertions:ke.sH,doc:ke.sH,storeTestData:ke.sH,hashCode:ke.EW}),e.assertions.forEach(Ud),e.storeTestData.forEach((e=>Wd(e,t))),e))),Kd=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,tests:ke.sH,func:ke.sH,hashCode:ke.EW}),e.tests.forEach((e=>Gd(e,t))),Br(e.func),e))),Xd=Co((e=>((0,ke.Gn)(e,{value:ke.sH,valueForSerialization:ke.EW}),xo(e.ownerReference),e))),qd=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Jd=Co((e=>((0,ke.Gn)(e,{localMappingProperty:ke.sH,localMappingPropertyType:ke.sH,localMappingPropertyMultiplicity:ke.sH,hashCode:ke.EW}),xo(e.localMappingPropertyType),e))),Zd=(e,t)=>{(0,ke.Gn)(e,{sourceSetImplementation:ke.sH,targetSetImplementation:ke.sH}),gp(e.property),qd(e.sourceSetImplementation),e.targetSetImplementation&&qd(e.targetSetImplementation),e.localMappingProperty&&Jd(e.localMappingProperty)},Qd=yo(((e,t)=>(Zd(e,t),(0,ke.Gn)(e,{transformer:ke.sH,transform:ke.sH,explodeProperty:ke.sH,hashCode:ke.EW}),e.transformer&&Xd(e.transformer),Br(e.transform),e))),eu=Co((e=>(0,ke.Gn)(e,{content:ke.sH.ref})));class tu{observerContext;constructor(e){this.observerContext=e}visit_PropertyMapping(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraPropertyMappingObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownPropertyMapping(e){eu(e)}visit_PurePropertyMapping(e){Qd(e,this.observerContext)}visit_FlatDataPropertyMapping(e){ia(e,this.observerContext)}visit_EmbeddedFlatDataPropertyMapping(e){na(e,this.observerContext)}visit_RelationalPropertyMapping(e){Jc(e,this.observerContext)}visit_FlatDataAssociationPropertyMapping(e){zr(e,this.observerContext)}visit_EmbeddedRelationalPropertyMapping(e){Qc(e,this.observerContext)}visit_InlineEmbeddedRelationalPropertyMapping(e){el(e,this.observerContext)}visit_OtherwiseEmbeddedRelationalPropertyMapping(e){tl(e,this.observerContext)}visit_AggregationAwarePropertyMapping(e){}visit_XStorePropertyMapping(e){}}const nu=(e,t)=>(e.accept_PropertyMappingVisitor(new tu(t)),e),iu=Co((e=>(0,ke.Gn)(e,{isDefault:ke.EW,valueForSerialization:ke.EW}))),su=Co((e=>(0,ke.Gn)(e,{valueForSerialization:ke.EW}))),ou=e=>{(0,ke.Gn)(e,{root:ke.sH}),xo(e.class),iu(e.id),su(e.root)},ru=Co((e=>((0,ke.Gn)(e,{setImplementation:ke.sH,class:ke.sH,properties:ke.sH}),e))),au=(e,t)=>{ou(e),(0,ke.Gn)(e,{mappingClass:ke.sH,propertyMappings:ke.sH}),e.mappingClass&&ru(e.mappingClass),e.propertyMappings.forEach((e=>nu(e,t)))},cu=Co((e=>((0,ke.Gn)(e,{}),qd(e.setImplementation),e))),lu=e=>{ou(e),(0,ke.Gn)(e,{parameters:ke.sH,operation:ke.sH,hashCode:ke.EW}),e.parameters.forEach(cu)},du=Co((e=>(lu(e),e))),uu=Co((e=>(lu(e),(0,ke.Gn)(e,{validationFunction:ke.sH}),Br(e.validationFunction),e))),pu=yo(((e,t)=>(au(e,t),(0,ke.Gn)(e,{filter:ke.sH,hashCode:ke.EW}),e.srcClass&&xo(e.srcClass),e.filter&&Br(e.filter),e))),hu=Co((e=>(ou(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e)));class mu{observerContext;constructor(e){this.observerContext=e}visit_SetImplementation(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraSetImplementationObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownSetImplementation(e){hu(e)}visit_MergeOperationSetImplementation(e){uu(e)}visit_OperationSetImplementation(e){du(e)}visit_PureInstanceSetImplementation(e){pu(e,this.observerContext)}visit_FlatDataInstanceSetImplementation(e){ta(e,this.observerContext)}visit_EmbeddedFlatDataSetImplementation(e){}visit_RelationalInstanceSetImplementation(e){nl(e,this.observerContext)}visit_RootRelationalInstanceSetImplementation(e){il(e,this.observerContext)}visit_AggregationAwareSetImplementation(e){}visit_INTERNAL__UnresolvedSetImplementation(e){}}const gu=(e,t)=>(e.accept_SetImplementationVisitor(new mu(t)),e),fu=Co((e=>((0,ke.Gn)(e,{original:ke.sH,substitute:ke.sH}),xo(e.original),xo(e.substitute),e))),_u=Co((e=>e instanceof yr?((0,ke.Gn)(e,{included:ke.sH,storeSubstitutions:ke.sH}),xo(e.included),e.storeSubstitutions.forEach(fu),e):e)),Eu=Co((e=>(0,ke.Gn)(e,{value:ke.sH}))),Nu=Co((e=>((0,ke.Gn)(e,{sourceValues:ke.sH,hashCode:ke.EW}),lp(e.enum),e.sourceValues.forEach(Eu),e))),bu=Co((e=>((0,ke.Gn)(e,{sourceType:ke.sH,enumValueMappings:ke.sH,hashCode:ke.EW}),xo(e.enumeration),iu(e.id),e.sourceType&&xo(e.sourceType),e.enumValueMappings.forEach(Nu),e))),vu=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,stores:ke.sH,propertyMappings:ke.sH,hashCode:ke.EW}),xo(e.association),iu(e.id),e.stores.forEach(xo),e.propertyMappings.forEach((e=>nu(e,t))),e))),Tu=Co((e=>((0,ke.Gn)(e,{inputType:ke.sH,data:ke.sH,hashCode:ke.EW}),xo(e.sourceClass),e))),Cu=Co((e=>(0,ke.Gn)(e,{expectedOutput:ke.sH,hashCode:ke.EW}))),yu=yo(((e,t)=>((0,ke.Gn)(e,{name:ke.sH,query:ke.sH,inputData:ke.sH,assert:ke.sH,hashCode:ke.EW}),Br(e.query),e.inputData.forEach((e=>((e,t)=>{if(e instanceof Rr)return Tu(e);if(e instanceof kr)return sa(e);if(e instanceof Pr)return sl(e);const n=t.plugins.flatMap((e=>e.getExtraMappingTestInputDataObservers?.()??[]));for(const i of n){const n=i(e,t);if(n)return n}return e})(e,t))),((e,t)=>{e instanceof Ar&&Cu(e)})(e.assert),e))),Su=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{includes:ke.sH,classMappings:ke.sH,enumerationMappings:ke.sH,associationMappings:ke.sH,test:ke.sH,tests:ke.sH,_elementHashCode:ke.$Z}),e.includes.forEach(_u),e.classMappings.forEach((e=>gu(e,t))),e.enumerationMappings.forEach(bu),e.associationMappings.forEach((e=>vu(e,t))),e.test.forEach((e=>yu(e,t))),e.tests.forEach((e=>function(e,t){return e instanceof jl?Ad(e,t):e instanceof Fl?Kd(e,t):e}(e,t))),e))),Au=e=>{(0,ke.Gn)(e,{store:ke.sH}),xo(e.store)},Iu=Co((e=>(Au(e),(0,ke.Gn)(e,{hashCode:ke.EW}),e))),xu=Co((e=>(Au(e),(0,ke.Gn)(e,{url:ke.sH,hashCode:ke.EW}),xo(e.class),e))),wu=Co((e=>(Au(e),(0,ke.Gn)(e,{url:ke.sH,hashCode:ke.EW}),xo(e.class),e))),Ou=Co((e=>(Au(e),(0,ke.Gn)(e,{mappings:ke.sH,hashCode:ke.EW}),e.mappings.forEach(xo),e))),Ru=Co((e=>(Au(e),(0,ke.Gn)(e,{content:ke.sH.ref,hashCode:ke.EW}),e)));class ku{observerContext;constructor(e){this.observerContext=e}visit_Connection(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraConnectionObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownConnection(e){Ru(e)}visit_ConnectionPointer(e){Iu(e)}visit_ModelChainConnection(e){Ou(e)}visit_JsonModelConnection(e){xu(e)}visit_XmlModelConnection(e){wu(e)}visit_FlatDataConnection(e){oa(e)}visit_RelationalDatabaseConnection(e){kl(e,this.observerContext)}}const Pu=(e,t)=>(e.accept_ConnectionVisitor(new ku(t)),e),Lu=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{connectionValue:ke.sH,_elementHashCode:ke.$Z}),Pu(e.connectionValue,t),e))),Mu=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,connection:ke.sH,hashCode:ke.EW}),Pu(e.connection,t),e))),Du=yo(((e,t)=>((0,ke.Gn)(e,{storeConnections:ke.sH,hashCode:ke.EW}),xo(e.store),e.storeConnections.forEach((e=>Mu(e,t))),e))),Fu=yo(((e,t)=>((0,ke.Gn)(e,{mappings:ke.sH,connections:ke.sH,hashCode:ke.EW}),e.mappings.forEach(xo),e.connections.forEach((e=>Du(e,t))),e))),Bu=Co((e=>((0,ke.Gn)(e,{hashCode:ke.EW}),xo(e.packageableRuntime),e))),ju=(e,t)=>e instanceof Dr?Bu(e):e instanceof Mr?Fu(e,t):e,Vu=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{runtimeValue:ke.sH,_elementHashCode:ke.$Z}),Fu(e.runtimeValue,t),e))),Hu=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{_elementHashCode:ke.$Z}),e)));class Gu{observerContext;constructor(e){this.observerContext=e}visit_PackageableElement(e){const t=this.observerContext.plugins.flatMap((e=>e.getExtraElementObservers?.()??[]));for(const n of t)if(n(e,this.observerContext))return}visit_INTERNAL__UnknownElement(e){Ao(e)}visit_INTERNAL__UnknownPackageableElement(e){Io(e)}visit_INTERNAL__UnknownFunctionActivator(e){yp(e)}visit_SnowflakeApp(e){Sp(e)}visit_HostedService(e){Ap(e)}visit_INTERNAL__UnknownStore(e){Yd(e)}visit_Package(e){Ju(e,this.observerContext)}visit_SectionIndex(e){sp(e)}visit_PrimitiveType(e){}visit_Profile(e){ap(e)}visit_Enumeration(e){dp(e)}visit_Measure(e){pp(e)}visit_Class(e){_p(e)}visit_Association(e){Ep(e)}visit_ConcreteFunctionDefinition(e){Cp(e,this.observerContext)}visit_FlatData(e){Qr(e)}visit_Database(e){qc(e,this.observerContext)}visit_Mapping(e){Su(e,this.observerContext)}visit_Service(e){Fd(e,this.observerContext)}visit_ExecutionEnvironmentInstance(e){Hu(e,this.observerContext)}visit_PackageableRuntime(e){Vu(e,this.observerContext)}visit_PackageableConnection(e){Lu(e,this.observerContext)}visit_FileGenerationSpecification(e){br(e)}visit_GenerationSpecification(e){Tr(e)}visit_DataElement(e){ld(e,this.observerContext)}}const Uu=yo(((e,t)=>(e.accept_PackageableElementVisitor(new Gu(t)),e)));class $u{}class Yu extends $u{_OWNER;id;constructor(e,t){super(),this.id=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_OWNER,this.id])}}class Wu extends $u{_OWNER;users=[];constructor(e,t){super(),this.users=e,this._OWNER=t}get hashCode(){return ko([Jo.SERVICE_OWNER,ko(this.users)])}}const zu=Co((e=>((0,ke.Gn)(e,{activationConnection:ke.sH}),e.activationConnection&&Iu(e.activationConnection),e))),Ku=Co((e=>((0,ke.Gn)(e,{id:ke.sH,hashCode:ke.EW}),e))),Xu=Co((e=>((0,ke.Gn)(e,{users:ke.sH,hashCode:ke.EW}),e))),qu=Co((e=>(e.host&&e.port&&e.path&&(0,ke.Gn)(e,{host:ke.sH,port:ke.sH,path:ke.sH}),e))),Ju=yo(((e,t)=>((e=>{So(e),(0,ke.Gn)(e,{children:ke.sH,hashCode:ke.$Z})})(e),e.children.forEach((e=>{e instanceof ur?Ju(e,t):Uu(e,t)})),e))),Zu=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW}),xo(e.ownerReference),e))),Qu=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW}),e))),ep=Co((e=>((0,ke.Gn)(e,{value:ke.sH,hashCode:ke.EW}),Qu(e.tag),e))),tp=Co((e=>(0,ke.Gn)(e,{rawType:ke.sH}))),np=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),tp(e.value),xo(e.ownerReference),e))),ip=Co((e=>((0,ke.Gn)(e,{parserName:ke.sH,elements:ke.sH}),e instanceof hr?(0,ke.Gn)(e,{imports:ke.sH,hashCode:ke.EW}):e instanceof mr&&(0,ke.Gn)(e,{hashCode:ke.EW}),e))),sp=Co((e=>(So(e),(0,ke.Gn)(e,{sections:ke.sH,_elementHashCode:ke.$Z}),e.sections.forEach(ip),e))),op=Co((e=>(0,ke.Gn)(e,{value:ke.sH}))),rp=Co((e=>(0,ke.Gn)(e,{value:ke.sH}))),ap=Co((e=>(So(e),(0,ke.Gn)(e,{p_stereotypes:ke.sH,p_tags:ke.sH,_elementHashCode:ke.$Z}),e.p_stereotypes.forEach(op),e.p_tags.forEach(rp),e))),cp=Co((e=>((0,ke.Gn)(e,{name:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,hashCode:ke.EW}),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),lp=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),dp=Co((e=>(So(e),(0,ke.Gn)(e,{values:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,_elementHashCode:ke.$Z}),e.values.forEach(cp),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),up=Co((e=>((0,ke.Gn)(e,{measure:ke.sH,conversionFunction:ke.sH,hashCode:ke.EW}),e.conversionFunction&&Br(e.conversionFunction),e))),pp=Co((e=>(So(e),(0,ke.Gn)(e,{canonicalUnit:ke.sH,nonCanonicalUnits:ke.sH,_elementHashCode:ke.$Z}),e.canonicalUnit&&up(e.canonicalUnit),e.nonCanonicalUnits.forEach(up),e))),hp=Co((e=>((0,ke.Gn)(e,{name:ke.sH,multiplicity:ke.sH,aggregation:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,hashCode:ke.EW}),np(e.genericType),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),mp=Co((e=>((0,ke.Gn)(e,{name:ke.sH,multiplicity:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,body:ke.sH.ref,parameters:ke.sH.ref,hashCode:ke.EW}),np(e.genericType),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),gp=Co((e=>((0,ke.Gn)(e,{value:ke.sH,pointerHashCode:ke.EW}),xo(e.ownerReference),e))),fp=Co((e=>((0,ke.Gn)(e,{name:ke.sH,functionDefinition:ke.sH,externalId:ke.sH,enforcementLevel:ke.sH,messageFunction:ke.sH,hashCode:ke.EW}),Br(e.functionDefinition),e.messageFunction&&Br(e.messageFunction),e))),_p=Co((e=>(So(e),(0,ke.Gn)(e,{_subclasses:ke.sH,properties:ke.sH,propertiesFromAssociations:ke.sH,derivedProperties:ke.sH,generalizations:ke.sH,constraints:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,dispose:ke.$Z,_elementHashCode:ke.$Z}),e.properties.forEach(hp),e.propertiesFromAssociations.forEach(hp),e.derivedProperties.forEach(mp),e.generalizations.forEach(np),e.constraints.forEach(fp),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),Ep=Co((e=>(So(e),(0,ke.Gn)(e,{properties:ke.sH,stereotypes:ke.sH,taggedValues:ke.sH,derivedProperties:ke.sH,dispose:ke.$Z,_elementHashCode:ke.$Z}),e.properties.forEach(hp),e.derivedProperties.forEach(mp),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e))),Np=Co((e=>((0,ke.Gn)(e,{name:ke.sH,value:ke.sH.ref,hashCode:ke.EW}),e))),bp=Co((e=>((0,ke.Gn)(e,{id:ke.sH,doc:ke.sH,assertions:ke.sH,hashCode:ke.EW}),e.parameters?.forEach(Np),e.assertions.forEach(Ud),e))),vp=yo(((e,t)=>((0,ke.Gn)(e,{store:ke.sH,data:ke.sH,hashCode:ke.EW}),cd(e.data,t),e))),Tp=yo(((e,t)=>((0,ke.Gn)(e,{id:ke.sH,tests:ke.sH,testData:ke.sH,hashCode:ke.EW}),e.tests.forEach((e=>Gd(e,t))),e.testData?.forEach((e=>vp(e,t))),e))),Cp=yo(((e,t)=>(So(e),(0,ke.Gn)(e,{functionName:ke.sH,returnMultiplicity:ke.sH,parameters:ke.sH.shallow,expressionSequence:ke.sH.ref,stereotypes:ke.sH,taggedValues:ke.sH,tests:ke.sH,_elementHashCode:ke.$Z}),e.parameters.forEach(jr),xo(e.returnType),e.stereotypes.forEach(Zu),e.taggedValues.forEach(ep),e.tests.forEach((e=>Tp(e,t))),e))),yp=Co((e=>(So(e),(0,ke.Gn)(e,{content:ke.sH.ref}),e))),Sp=Co((e=>(So(e),(0,ke.Gn)(e,{applicationName:ke.sH,description:ke.sH,ownership:ke.sH,activationConfiguration:ke.sH,_elementHashCode:ke.$Z}),zu(e.activationConfiguration),e))),Ap=Co((e=>(So(e),(0,ke.Gn)(e,{documentation:ke.sH,pattern:ke.sH,autoActivateUpdates:ke.sH,storeModel:ke.sH,generateLineage:ke.sH,ownership:ke.sH,activationConfiguration:ke.sH,_elementHashCode:ke.$Z}),(e=>{e instanceof Yu?Ku(e):e instanceof Wu&&Xu(e)})(e.ownership),e.activationConfiguration&&qu(e.activationConfiguration),e))),Ip=Co((e=>e instanceof cr?dp(e):e instanceof lr?up(e):e instanceof rr?_p(e):e instanceof dr?pp(e):e)),xp=(Co((e=>e instanceof cr?dp(e):e instanceof lr?up(e):e)),Co((e=>(0,ke.Gn)(e,{_dummyObservable:ke.sH})))),wp=Co((e=>((0,ke.Gn)(e,{value:ke.sH}),xo(e.ownerReference),e))),Op=Co((e=>(xp(e),(0,ke.Gn)(e,{id:ke.sH,hideProperties:ke.sH,hideTaggedValues:ke.sH,hideStereotypes:ke.sH,hashCode:ke.EW}),xo(e.class),e))),Rp=Co((e=>(wp(e.classView),e))),kp=Co((e=>((0,ke.Gn)(e,{path:ke.sH,pathForSerialization:ke.EW}),Rp(e.from),Rp(e.to),e))),Pp=Co((e=>(kp(e),(0,ke.Gn)(e,{hashCode:ke.EW}),e))),Lp=Co((e=>(kp(e),(0,ke.Gn)(e,{hashCode:ke.EW}),gp(e.property),xo(e.association),e))),Mp=Co((e=>(kp(e),(0,ke.Gn)(e,{hashCode:ke.EW}),gp(e.property),e))),Dp=Co((e=>(So(e),(0,ke.Gn)(e,{classViews:ke.sH,associationViews:ke.sH,generalizationViews:ke.sH,propertyViews:ke.sH,_elementHashCode:ke.$Z}),e.classViews.forEach(Op),e.associationViews.forEach(Lp),e.generalizationViews.forEach(Pp),e.propertyViews.forEach(Mp),e)));var Fp;!function(e){e.DIAGRAM="DIAGRAM",e.CLASS_VIEW="CLASS_VIEW",e.PROPERTY_VIEW="PROPERTY_VIEW",e.ASSOCIATION_VIEW="ASSOCIATION_VIEW",e.PROPERTY_HOLDER_VIEW="PROPERTY_HOLDER_VIEW",e.GENERALIZATION_VIEW="GENERALIZATION_VIEW",e.RELATIONSHIP_VIEW="RELATIONSHIP_VIEW",e.POINT="POINT",e.RECTANGLE="RECTANGLE",e.POSITIONED_RECTANGLE="POSITIONED_RECTANGLE"}(Fp||(Fp={}));class Bp extends sr{classViews=[];associationViews=[];generalizationViews=[];propertyViews=[];get _elementHashCode(){return ko([Fp.DIAGRAM,this.path,ko(this.classViews),ko(this.generalizationViews),ko(this.propertyViews)])}accept_PackageableElementVisitor(e){return e.visit_PackageableElement(this)}}class jp extends To{constructor(){super(vo.XO.ns,vo.rE)}getExtraElementObservers(){return[(e,t)=>{if(e instanceof Bp)return Dp(e)}]}}class Vp{package;name;get path(){return`${this.package}${Po}${this.name}`}get hashCode(){return ko([Jo.PACKAGEABLE_ELEMENT,this.path])}}class Hp extends Vp{classViews=[];propertyViews=[];generalizationViews=[];get hashCode(){return ko([Fp.DIAGRAM,this.path,ko(this.classViews),ko(this.generalizationViews),ko(this.propertyViews)])}accept_PackageableElementVisitor(e){return e.visit_PackageableElement(this)}}class Gp{rectangle;position;get hashCode(){return ko([Fp.POSITIONED_RECTANGLE,this.position,this.rectangle])}}class Up extends Gp{id;class;hideProperties;hideTaggedValues;hideStereotypes;get hashCode(){return ko([Fp.CLASS_VIEW,super.hashCode,this.id,this.class,this.hideProperties?.toString()??"",this.hideTaggedValues?.toString()??"",this.hideStereotypes?.toString()??""])}}class $p{x;y;get hashCode(){return ko([Fp.POINT,this.x.toString(),this.y.toString()])}}class Yp{width;height;get hashCode(){return ko([Fp.RECTANGLE,this.width.toString(),this.height.toString()])}}class Wp{points=[]}class zp{sourceView;targetView;line;get hashCode(){return ko([Fp.RELATIONSHIP_VIEW,this.sourceView,this.targetView,ko(this.line.points)])}}class Kp extends zp{property;get hashCode(){return ko([Fp.PROPERTY_HOLDER_VIEW,super.hashCode,this.property])}}class Xp extends Kp{get hashCode(){return ko([Fp.PROPERTY_VIEW,super.hashCode])}}class qp extends zp{get hashCode(){return ko([Fp.GENERALIZATION_VIEW,super.hashCode])}}class Jp{lowerBound=0;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return ko([Jo.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Jp(0,0);static ZERO_ONE=new Jp(0,1);static ZERO_MANY=new Jp(0,void 0);static ONE=new Jp(1,1);static ONE_MANY=new Jp(1,void 0)}const Zp=new fe((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 Qp{package;name;sourceInformation;static serialization=new fe((0,ge.PL)(Qp,{package:(0,ge.MY)(),name:(0,ge.MY)(),sourceInformation:be(Zp.schema)}))}const eh=(0,ge.PL)(class{type;path;constructor(e,t){this.type=e,this.path=t}get hashCode(){return ko([Jo.PACKAGEABLE_ELEMENT_POINTER,this.type??"",this.path])}},{path:(0,ge.MY)(),type:(0,ge.lq)((0,ge.MY)())}),th=(0,ge.PL)(Jp,{lowerBound:(0,ge.MY)(),upperBound:(0,ge.lq)((0,ge.MY)())});class nh{class;property;get hashCode(){return ko([Jo.PROPERTY_POINTER,this.property,this.class??""])}}class ih{}class sh{queryTimeOutInSeconds=null;enableConstraints=!0}var oh,rh;!function(e){e.BASE_EXECUTION_CONTEXT="BaseExecutionContext"}(oh||(oh={})),function(e){e.LAMBDA="lambda",e.VARIABLE="var",e.CINTEGER="integer",e.CDECIMAL="decimal",e.CSTRING="string",e.CBOOLEAN="boolean",e.CFLOAT="float",e.CDATETIME="dateTime",e.CSTRICTDATE="strictDate",e.CSTRICTTIME="strictTime",e.CLATESTDATE="latestDate"}(rh||(rh={})),(0,ge.PL)(class extends sh{},{_type:Ee(oh.BASE_EXECUTION_CONTEXT),queryTimeOutInSeconds:(0,ge.MY)(),enableConstraints:(0,ge.MY)()});const ah=(0,ge.PL)(class extends ih{body;parameters;get hashCode(){return ko([Jo.RAW_LAMBDA,er(this.parameters,this.body)])}accept_RawValueSpecificationVisitor(e){return e.visit_Lambda(this)}},{_type:Ee(rh.LAMBDA),body:(0,ge.lS)(),parameters:(0,ge.lS)()});(0,ge.PL)(class extends ih{class;name;multiplicity;get hashCode(){return ko([Jo.RAW_VARIABLE,this.class,this.name,this.multiplicity])}accept_RawValueSpecificationVisitor(e){return e.visit_Variable(this)}},{_type:Ee(rh.VARIABLE),class:(0,ge.MY)(),multiplicity:_e(th),name:(0,ge.MY)()}),(0,ge.PL)(class extends ih{multiplicity=Jp.ONE;type;value;get hashCode(){return ko([Jo.RAW_INSTANCE_VALUE,this.type,this.multiplicity,this.value??""])}accept_RawValueSpecificationVisitor(e){return e.visit_PrimitiveInstanceValue(this)}},{type:(0,ge.nK)("_type",(0,ge.Ie)((e=>{switch(e){case Fo.INTEGER:return rh.CINTEGER;case Fo.DECIMAL:return rh.CDECIMAL;case Fo.STRING:return rh.CSTRING;case Fo.BOOLEAN:return rh.CBOOLEAN;case Fo.FLOAT:return rh.CFLOAT;case Fo.DATETIME:return rh.CDATETIME;case Fo.STRICTDATE:return rh.CSTRICTDATE;case Fo.STRICTTIME:return rh.CSTRICTTIME;case Fo.LATESTDATE:return rh.CLATESTDATE;default:throw new L(`Can't serialize raw instance value type '${e}'`)}}),(e=>{switch(e){case rh.CINTEGER:return Fo.INTEGER;case rh.CDECIMAL:return Fo.DECIMAL;case rh.CSTRING:return Fo.STRING;case rh.CBOOLEAN:return Fo.BOOLEAN;case rh.CFLOAT:return Fo.FLOAT;case rh.CDATETIME:return Fo.DATETIME;case rh.CSTRICTDATE:return Fo.STRICTDATE;case rh.CSTRICTTIME:return Fo.STRICTTIME;case rh.CLATESTDATE:return Fo.LATESTDATE;default:throw new L(`Can't deserialize raw value instance value type '${e}'`)}}))),value:(0,ge.lq)((0,ge.MY)())});class ch extends Vp{function;activationConfiguration;ownership;stereotypes=[];taggedValues=[]}class lh{}class dh{store}class uh{}class ph{}var hh;!function(e){e.CONNECTION_POINTER="connectionPointer",e.MODEL_CHAIN_CONNECTION="ModelChainConnection",e.JSON_MODEL_CONNECTION="JsonModelConnection",e.XML_MODEL_CONNECTION="XmlModelConnection",e.FLAT_DATA_CONNECTION="FlatDataConnection",e.RELATIONAL_DATABASE_CONNECTION="RelationalDatabaseConnection"}(hh||(hh={}));const mh=(0,ge.PL)(class extends dh{connection;get hashCode(){return ko([Jo.CONNECTION_POINTER,this.connection])}accept_ConnectionVisitor(e){return e.visit_ConnectionPointer(this)}},{_type:Ee(hh.CONNECTION_POINTER),connection:(0,ge.MY)()});var gh;(0,ge.PL)(class extends dh{mappings=[];get hashCode(){return ko([Jo.MODEL_CHAIN_CONNECTION,ko(this.mappings)])}accept_ConnectionVisitor(e){return e.visit_ModelChainConnection(this)}},{_type:Ee(hh.MODEL_CHAIN_CONNECTION),store:(0,ge.nK)("element",(0,ge.lq)((0,ge.MY)())),mappings:(0,ge.p_)((0,ge.MY)())}),(0,ge.PL)(class extends dh{class;url;get hashCode(){return ko([Jo.JSON_MODEL_CONNECTION,this.class,this.url])}accept_ConnectionVisitor(e){return e.visit_JsonModelConnection(this)}},{_type:Ee(hh.JSON_MODEL_CONNECTION),class:(0,ge.MY)(),store:(0,ge.nK)("element",(0,ge.lq)((0,ge.MY)())),url:(0,ge.MY)()}),(0,ge.PL)(class extends dh{class;url;get hashCode(){return ko([Jo.XML_MODEL_CONNECTION,this.class,this.url])}accept_ConnectionVisitor(e){return e.visit_XmlModelConnection(this)}},{_type:Ee(hh.XML_MODEL_CONNECTION),class:(0,ge.MY)(),store:(0,ge.nK)("element",(0,ge.lq)((0,ge.MY)())),url:(0,ge.MY)()}),(0,ge.PL)(class extends dh{url;get hashCode(){return ko([Jo.FLAT_DATA_CONNECTION,this.store??"",this.url])}accept_ConnectionVisitor(e){return e.visit_FlatDataConnection(this)}},{_type:Ee(hh.FLAT_DATA_CONNECTION),store:(0,ge.nK)("element",(0,ge.MY)()),url:(0,ge.MY)()}),function(e){e.STATIC="static",e.H2_EMBEDDED="h2Embedded",e.H2_LOCAL="h2Local",e.DATABRICKS="databricks",e.SNOWFLAKE="snowflake",e.REDSHIFT="redshift",e.BIGQUERY="bigQuery",e.SPANNER="spanner",e.TRINO="Trino"}(gh||(gh={})),(0,ge.PL)(class extends uh{host;port;databaseName;get hashCode(){return ko([Jo.STATIC_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.databaseName])}},{_type:Ee(gh.STATIC),databaseName:(0,ge.MY)(),host:(0,ge.MY)(),port:(0,ge.MY)()}),(0,ge.PL)(class extends uh{databaseName;directory;autoServerMode;get hashCode(){return ko([Jo.EMBEDDED_H2_DATASOURCE_SPECIFICATION,this.databaseName,this.directory,this.autoServerMode.toString()])}},{_type:Ee(gh.H2_EMBEDDED),autoServerMode:(0,ge.MY)(),databaseName:(0,ge.MY)(),directory:(0,ge.MY)()}),(0,ge.PL)(class extends uh{testDataSetupCsv;testDataSetupSqls=[];get hashCode(){return ko([Jo.LOCAL_H2_DATASOURCE_SPECIFICATION,this.testDataSetupCsv??"",ko(this.testDataSetupSqls)])}},{_type:Ee(gh.H2_LOCAL),testDataSetupCsv:(0,ge.lq)((0,ge.MY)()),testDataSetupSqls:Se()}),(0,ge.PL)(class extends uh{hostname;port;protocol;httpPath;get hashCode(){return ko([Jo.DATABRICKS_DATASOURCE_SPECIFICATION,this.hostname,this.port,this.protocol,this.httpPath])}},{_type:Ee(gh.DATABRICKS),hostname:(0,ge.MY)(),port:(0,ge.MY)(),protocol:(0,ge.MY)(),httpPath:(0,ge.MY)()}),(0,ge.PL)(class extends uh{accountName;region;warehouseName;databaseName;cloudType;quotedIdentifiersIgnoreCase;enableQueryTags;proxyHost;proxyPort;nonProxyHosts;organization;accountType;role;get hashCode(){return ko([Jo.SNOWFLAKE_DATASOURCE_SPECIFICATION,this.accountName,this.region,this.warehouseName,this.databaseName,this.cloudType??"",this.proxyHost??"",this.proxyPort??"",this.nonProxyHosts??"",this.organization??"",this.accountType??"",this.role??"",this.quotedIdentifiersIgnoreCase?.toString()??"",this.enableQueryTags?.toString()??""])}},{_type:Ee(gh.SNOWFLAKE),accountName:(0,ge.MY)(),accountType:(0,ge.lq)((0,ge.MY)()),cloudType:(0,ge.lq)((0,ge.MY)()),databaseName:(0,ge.MY)(),nonProxyHosts:(0,ge.lq)((0,ge.MY)()),organization:(0,ge.lq)((0,ge.MY)()),proxyHost:(0,ge.lq)((0,ge.MY)()),proxyPort:(0,ge.lq)((0,ge.MY)()),quotedIdentifiersIgnoreCase:(0,ge.lq)((0,ge.MY)()),enableQueryTags:(0,ge.lq)((0,ge.MY)()),region:(0,ge.MY)(),role:(0,ge.lq)((0,ge.MY)()),warehouseName:(0,ge.MY)()}),(0,ge.PL)(class extends uh{clusterID;databaseName;host;port;region;endpointURL;get hashCode(){return ko([Jo.REDSHIFT_DATASOURCE_SPECIFICATION,this.databaseName,this.endpointURL,this.port.toString(),this.clusterID,this.host,this.region])}},{_type:Ee(gh.REDSHIFT),clusterID:(0,ge.MY)(),databaseName:(0,ge.MY)(),endpointURL:(0,ge.lq)((0,ge.MY)()),host:(0,ge.MY)(),port:(0,ge.MY)(),region:(0,ge.MY)()}),(0,ge.PL)(class extends uh{projectId;defaultDataset;proxyHost;proxyPort;get hashCode(){return ko([Jo.BIGQUERY_DATASOURCE_SPECIFICATION,this.projectId,this.defaultDataset,this.proxyHost??"",this.proxyPort??""])}},{_type:Ee(gh.BIGQUERY),defaultDataset:(0,ge.MY)(),projectId:(0,ge.MY)(),proxyHost:(0,ge.lq)((0,ge.MY)()),proxyPort:(0,ge.lq)((0,ge.MY)())}),(0,ge.PL)(class extends uh{projectId;instanceId;databaseId;proxyHost;proxyPort;get hashCode(){return ko([Jo.SPANNER_DATASOURCE_SPECIFICATION,this.projectId,this.instanceId,this.databaseId,this.proxyHost??"",this.proxyPort??""])}},{_type:Ee(gh.SPANNER),databaseId:(0,ge.MY)(),instanceId:(0,ge.MY)(),projectId:(0,ge.MY)(),proxyHost:(0,ge.lq)((0,ge.MY)()),proxyPort:(0,ge.lq)((0,ge.MY)())});const fh=(0,ge.PL)(class{ssl;trustStorePathVaultReference;trustStorePasswordVaultReference;get hashCode(){return ko([Jo.TRINO_SSL_SPECIFICATION,this.ssl.toString(),this.trustStorePathVaultReference??"",this.trustStorePasswordVaultReference??""])}},{ssl:(0,ge.MY)(),trustStorePathVaultReference:(0,ge.lq)((0,ge.MY)()),trustStorePasswordVaultReference:(0,ge.lq)((0,ge.MY)())});var _h;(0,ge.PL)(class extends uh{host;port;sslSpecification;catalog;schema;clientTags;get hashCode(){return ko([Jo.TRINO_DATASOURCE_SPECIFICATION,this.host,this.port.toString(),this.sslSpecification,this.catalog??"",this.schema??"",this.clientTags??""])}},{_type:Ee(gh.TRINO),host:(0,ge.MY)(),port:(0,ge.MY)(),catalog:(0,ge.lq)((0,ge.MY)()),schema:(0,ge.lq)((0,ge.MY)()),clientTags:(0,ge.lq)((0,ge.MY)()),sslSpecification:_e(fh)}),function(e){e.DELEGATED_KERBEROS="delegatedKerberos",e.SNOWFLAKE_PUBLIC="snowflakePublic",e.GCP_APPLICATION_DEFAULT_CREDENTIALS="gcpApplicationDefaultCredentials",e.API_TOKEN="apiToken",e.H2_DEFAULT="h2Default",e.OAUTH="oauth",e.USERNAME_PASSWORD="userNamePassword",e.GCP_WORKLOAD_IDENTITY_FEDERATION="gcpWorkloadIdentityFederation",e.MIDDLE_TIER_USERNAME_PASSWORD="middleTierUserNamePassword",e.TRINO_DELEGATED_KERBEROS="TrinoDelegatedKerberosAuth"}(_h||(_h={})),(0,ge.PL)(class extends ph{serverPrincipal;get hashCode(){return ko([Jo.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY,this.serverPrincipal?.toString()??""])}},{_type:Ee(_h.DELEGATED_KERBEROS),serverPrincipal:(0,ge.lq)((0,ge.MY)())}),(0,ge.PL)(class extends ph{get hashCode(){return ko([Jo.DEFAULT_H2_AUTHENTICATION_STRATEGY])}},{_type:Ee(_h.H2_DEFAULT)}),(0,ge.PL)(class extends ph{apiToken;get hashCode(){return ko([Jo.API_TOKEN_AUTHENTICATION_STRATEGY,this.apiToken])}},{_type:Ee(_h.API_TOKEN),apiToken:(0,ge.MY)()}),(0,ge.PL)(class extends ph{privateKeyVaultReference;passPhraseVaultReference;publicUserName;get hashCode(){return ko([Jo.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY,this.privateKeyVaultReference,this.passPhraseVaultReference,this.publicUserName])}},{_type:Ee(_h.SNOWFLAKE_PUBLIC),privateKeyVaultReference:(0,ge.MY)(),passPhraseVaultReference:(0,ge.MY)(),publicUserName:(0,ge.MY)()}),(0,ge.PL)(class extends ph{get hashCode(){return ko([Jo.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY])}},{_type:Ee(_h.GCP_APPLICATION_DEFAULT_CREDENTIALS)}),(0,ge.PL)(class extends ph{vaultReference;get hashCode(){return ko([Jo.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.vaultReference])}},{_type:Ee(_h.MIDDLE_TIER_USERNAME_PASSWORD),vaultReference:(0,ge.MY)()}),(0,ge.PL)(class extends ph{serviceAccountEmail;additionalGcpScopes=[];get hashCode(){return ko([Jo.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY,this.serviceAccountEmail,ko(this.additionalGcpScopes)])}},{_type:Ee(_h.GCP_WORKLOAD_IDENTITY_FEDERATION),additionalGcpScopes:(0,ge.p_)((0,ge.MY)()),serviceAccountEmail:(0,ge.MY)()}),(0,ge.PL)(class extends ph{baseVaultReference;userNameVaultReference;passwordVaultReference;get hashCode(){return ko([Jo.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY,this.baseVaultReference?.toString()??"",this.userNameVaultReference,this.passwordVaultReference])}},{_type:Ee(_h.USERNAME_PASSWORD),baseVaultReference:(0,ge.lq)((0,ge.MY)()),userNameVaultReference:(0,ge.MY)(),passwordVaultReference:(0,ge.MY)()}),(0,ge.PL)(class extends ph{kerberosRemoteServiceName;kerberosUseCanonicalHostname;get hashCode(){return ko([Jo.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY,this.kerberosRemoteServiceName,this.kerberosUseCanonicalHostname.toString()])}},{_type:Ee(_h.TRINO_DELEGATED_KERBEROS),kerberosRemoteServiceName:(0,ge.MY)(),kerberosUseCanonicalHostname:(0,ge.lq)((0,ge.MY)())}),(0,ge.PL)(class extends ph{oauthKey;scopeName;get hashCode(){return ko([Jo.OAUTH_AUTHENTICATION_STRATEGY,this.oauthKey,this.scopeName])}},{_type:Ee(_h.OAUTH),oauthKey:(0,ge.MY)(),scopeName:(0,ge.MY)()}),(0,ge.PL)(class extends dh{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_CONNECTION,Qo(this.content)])}accept_ConnectionVisitor(e){return e.visit_INTERNAL__UnknownConnection(this)}},{store:(0,ge.nK)("element",(0,ge.lq)((0,ge.MY)()))});class Eh{}class Nh extends Eh{id;get hashCode(){return ko([Jo.SERVICE_OWNER,this.id])}}class bh extends Eh{users=[];get hashCode(){return ko([Jo.SERVICE_OWNER,ko(this.users)])}}const vh=(0,ge.PL)(class extends lh{activationConnection;get hashCode(){return ko([this.activationConnection??""])}},{_type:Ee("snowflakeDeploymentConfiguration"),activationConnection:_e(mh)}),Th=(0,ge.PL)(class extends lh{host;port;path;get hashCode(){return ko([this.host??"",this.port??"",this.path??""])}},{_type:Ee("hostedServiceDeploymentConfiguration"),host:(0,ge.MY)(),port:(0,ge.MY)(),path:(0,ge.MY)()});var Ch;!function(e){e.DEPLOYMENT_OWNERSHIP="DeploymentOwner",e.USERLIST_OWNERSHIP="userList"}(Ch||(Ch={}));const yh=(0,ge.PL)(Nh,{_type:Ee(Ch.DEPLOYMENT_OWNERSHIP),id:(0,ge.MY)()}),Sh=(0,ge.PL)(bh,{_type:Ee(Ch.USERLIST_OWNERSHIP),users:(0,ge.p_)((0,ge.MY)())}),Ah=(0,ge.PL)(nh,{class:(0,ge.lq)((0,ge.MY)()),property:(0,ge.MY)()}),Ih=(0,ge.PL)(class{profile;value;get hashCode(){return ko([Jo.STEREOTYPE_POINTER,this.value,this.profile])}},{profile:(0,ge.MY)(),value:(0,ge.MY)()}),xh=(0,ge.PL)(class{profile;value;get hashCode(){return ko([Jo.TAG_POINTER,this.value,this.profile])}},{profile:(0,ge.MY)(),value:(0,ge.MY)()}),wh=(0,ge.PL)(class{tag;value;get hashCode(){return ko([Jo.TAGGED_VALUE,this.tag,this.value])}},{tag:_e(xh),value:(0,ge.MY)()}),Oh=((0,ge.PL)(class extends Vp{stereotypes=[];tags=[];get hashCode(){return ko([Jo.PROFILE,this.path,ko(this.stereotypes),ko(this.tags)])}accept_PackageableElementVisitor(e){return e.visit_Profile(this)}},{_type:Ee("profile"),name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:(0,ge.p_)((0,ge.MY)()),tags:(0,ge.p_)((0,ge.MY)())}),(0,ge.PL)(class{value;stereotypes=[];taggedValues=[];get hashCode(){return ko([Jo.ENUM_VALUE,this.value,ko(this.stereotypes),ko(this.taggedValues)])}},{stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),value:(0,ge.MY)()})),Rh=((0,ge.PL)(class extends Vp{values=[];stereotypes=[];taggedValues=[];get hashCode(){return ko([Jo.ENUMERATION,this.path,ko(this.values),ko(this.stereotypes),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Enumeration(this)}},{_type:Ee("Enumeration"),name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),values:(0,ge.p_)(_e(Oh))}),(0,ge.PL)(class extends Vp{measure;conversionFunction;get hashCode(){return ko([Jo.UNIT,this.measure,this.conversionFunction??""])}accept_PackageableElementVisitor(e){throw new L}},{_type:Ee("unit"),conversionFunction:(0,ge.lq)(_e(ah)),measure:(0,ge.MY)(),name:(0,ge.MY)(),package:(0,ge.MY)()})),kh=((0,ge.PL)(class extends Vp{canonicalUnit;nonCanonicalUnits=[];get hashCode(){return ko([Jo.MEASURE,this.path,this.canonicalUnit??"",ko(this.nonCanonicalUnits)])}accept_PackageableElementVisitor(e){return e.visit_Measure(this)}},{_type:Ee("measure"),canonicalUnit:(0,ge.lq)(_e(Rh)),name:(0,ge.MY)(),nonCanonicalUnits:(0,ge.p_)(_e(Rh)),package:(0,ge.MY)()}),(0,ge.PL)(class extends ch{applicationName;description;accept_PackageableElementVisitor(e){return e.visit_SnowflakeApp(this)}get hashCode(){return ko([Jo.SNOWFLAKE_APP,this.applicationName,this.description??"",this.ownership,this.activationConfiguration])}},{_type:Ee("snowflakeApp"),description:(0,ge.lq)((0,ge.MY)()),applicationName:(0,ge.MY)(),function:_e(eh),name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),activationConfiguration:_e(vh),ownership:Ne((e=>{return t=e,(0,ge.lK)(yh,t);var t}),(e=>{return t=e,(0,ge.iu)(yh,t);var t}))}),(0,ge.PL)(class extends ch{documentation;pattern;autoActivateUpdates;storeModel;generateLineage;accept_PackageableElementVisitor(e){return e.visit_HostedService(this)}get hashCode(){return ko([Jo.HOSTED_SERVICE,this.documentation??"",this.pattern,this.autoActivateUpdates,this.storeModel??"",this.generateLineage??"",this.activationConfiguration,this.ownership])}},{_type:Ee("hostedService"),documentation:(0,ge.lq)((0,ge.MY)()),pattern:(0,ge.MY)(),autoActivateUpdates:(0,ge.MY)(),storeModel:(0,ge.MY)(),generateLineage:(0,ge.MY)(),function:_e(eh),name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),ownership:Ne((e=>(e=>{if(e instanceof Nh)return(0,ge.lK)(yh,e);if(e instanceof bh)return(0,ge.lK)(Sh,e);throw new L("Can't serialize function activator ownership",e)})(e)),(e=>(e=>{switch(e._type){case Ch.DEPLOYMENT_OWNERSHIP:return(0,ge.iu)(yh,e);case Ch.USERLIST_OWNERSHIP:return(0,ge.iu)(Sh,e);default:throw new L(`Can't deserialize rest service ownership of type '${e._type}'`)}})(e))),activationConfiguration:(0,ge.lq)(_e(Th))}),(0,ge.PL)(class{value;get hashCode(){return ko([Jo.PROPERTY_DEFAULT_VALUE,Qo(this.value)])}},{value:(0,ge.lS)()})),Ph=(0,ge.PL)(class{name;type;multiplicity;aggregation;defaultValue;stereotypes=[];taggedValues=[];get hashCode(){return ko([Jo.PROPERTY,this.name,this.multiplicity,this.type,this.aggregation??"",this.defaultValue??"",ko(this.stereotypes),ko(this.taggedValues)])}},{aggregation:(0,ge.lq)((0,ge.MY)()),defaultValue:(0,ge.lq)(_e(kh)),multiplicity:_e(th),name:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0}),type:(0,ge.MY)()}),Lh=(0,ge.PL)(class{name;returnType;returnMultiplicity;stereotypes=[];taggedValues=[];body;parameters;get hashCode(){return ko([Jo.DERIVED_PROPERTY,this.name,this.returnMultiplicity,this.returnType,ko(this.stereotypes),ko(this.taggedValues),er(this.parameters,this.body)])}},{body:(0,ge.lS)(),name:(0,ge.MY)(),parameters:(0,ge.lS)(),returnMultiplicity:_e(th),returnType:(0,ge.MY)(),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0})}),Mh=(0,ge.PL)(class{name;functionDefinition;externalId;enforcementLevel;messageFunction;get hashCode(){return ko([Jo.CONSTRAINT,this.name,this.functionDefinition,this.externalId??"",this.enforcementLevel??"",this.messageFunction??""])}},{enforcementLevel:(0,ge.lq)((0,ge.MY)()),externalId:(0,ge.lq)((0,ge.MY)()),functionDefinition:_e(ah),messageFunction:(0,ge.lq)(_e(ah)),name:(0,ge.MY)()}),Dh=((0,ge.PL)(class extends Vp{superTypes=[];properties=[];derivedProperties=[];stereotypes=[];taggedValues=[];constraints=[];get hashCode(){return ko([Jo.CLASS,this.path,ko(this.properties),ko(this.derivedProperties),ko(this.superTypes),ko(this.constraints),ko(this.stereotypes),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Class(this)}},{_type:Ee("class"),constraints:Ce(Mh,{INTERNAL__forceReturnEmptyInTest:!0}),name:(0,ge.MY)(),originalMilestonedProperties:ye((()=>ge._Z),(()=>ge._Z),{INTERNAL__forceReturnEmptyInTest:!0}),package:(0,ge.MY)(),properties:Ce(Ph,{INTERNAL__forceReturnEmptyInTest:!0}),derivedProperties:(0,ge.nK)("qualifiedProperties",Ce(Lh,{INTERNAL__forceReturnEmptyInTest:!0})),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),superTypes:Se({INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0})}),(0,ge.PL)(class extends Vp{properties=[];derivedProperties=[];stereotypes=[];taggedValues=[];get hashCode(){return ko([Jo.ASSOCIATION,this.path,ko(this.properties),ko(this.derivedProperties),ko(this.stereotypes),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Association(this)}},{_type:Ee("association"),name:(0,ge.MY)(),originalMilestonedProperties:ye((()=>ge._Z),(()=>ge._Z),{INTERNAL__forceReturnEmptyInTest:!0}),package:(0,ge.MY)(),properties:(0,ge.p_)(_e(Ph)),derivedProperties:(0,ge.nK)("qualifiedProperties",Ce(Lh,{INTERNAL__forceReturnEmptyInTest:!0})),stereotypes:Ce(Ih,{INTERNAL__forceReturnEmptyInTest:!0}),taggedValues:Ce(wh,{INTERNAL__forceReturnEmptyInTest:!0})}),(0,ge.PL)(class extends ch{content;get hashCode(){return ko([Jo.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR,this.path,Qo(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownFunctionActivator(this)}},{function:(0,ge.MY)(),name:(0,ge.MY)(),package:(0,ge.MY)()}),"diagram"),Fh=(0,ge.PL)($p,{x:(0,ge.MY)(),y:(0,ge.MY)()}),Bh=(0,ge.PL)(Yp,{height:(0,ge.MY)(),width:(0,ge.MY)()}),jh=(0,ge.PL)(Wp,{points:(0,ge.p_)(_e(Fh))}),Vh=(0,ge.PL)(Up,{class:(0,ge.MY)(),hideProperties:(0,ge.lq)((0,ge.MY)()),hideStereotypes:(0,ge.lq)((0,ge.MY)()),hideTaggedValues:(0,ge.lq)((0,ge.MY)()),id:(0,ge.MY)(),position:_e(Fh),rectangle:_e(Bh)}),Hh=(0,ge.PL)(Xp,{line:_e(jh),property:_e(Ah),sourceView:(0,ge.MY)(),targetView:(0,ge.MY)()}),Gh=(0,ge.PL)(qp,{line:_e(jh),sourceView:(0,ge.MY)(),targetView:(0,ge.MY)()}),Uh=(0,ge.PL)(Hp,{_type:Ee(Dh),classViews:(0,ge.p_)(_e(Vh)),generalizationViews:(0,ge.p_)(_e(Gh)),name:(0,ge.MY)(),package:(0,ge.MY)(),propertyViews:(0,ge.p_)(_e(Hh))});class $h extends a{_$nominalTypeBrand;install(e){e.registerPureProtocolProcessorPlugin(this)}}class Yh{_UUID=(0,o.A)();_OWNER;name;multiplicity;genericType;aggregation;defaultValue;stereotypes=[];taggedValues=[];constructor(e,t,n,i){this.name=e,this.multiplicity=t,this.genericType=n,this._OWNER=i}get hashCode(){return ko([Jo.PROPERTY,this.name,this.multiplicity,this.genericType.ownerReference.valueForSerialization??"",this.aggregation??"",this.defaultValue??"",ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues)])}}class Wh{lowerBound;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return ko([Jo.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Wh(0,0);static ZERO_ONE=new Wh(0,1);static ZERO_MANY=new Wh(0,void 0);static ONE=new Wh(1,1);static ONE_MANY=new Wh(1,void 0)}class zh extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}}class Kh extends zh{ownerReference;constructor(e){const t=Er.create(e.rawType);super(t,e),this.ownerReference=t}static create(e){return new Kh(e)}}class Xh{_UUID=(0,o.A)();rawType;constructor(e){this.rawType=e}}class qh extends sr{_generatedMilestonedProperties=[];properties;derivedProperties=[];constructor(e){super(e);const t=[new Yh("",Wh.ONE,Kh.create(new Xh(new rr(""))),new rr("")),new Yh("",Wh.ONE,Kh.create(new Xh(new rr(""))),new rr(""))];t[0]._OWNER=this,t[1]._OWNER=this,this.properties=t}dispose(){super.dispose();const[e,t]=this.properties;if(e.genericType.value.rawType instanceof rr&&t.genericType.value.rawType instanceof rr){const n=$(e.genericType.value.rawType,rr),i=$(t.genericType.value.rawType,rr);n.propertiesFromAssociations=n.propertiesFromAssociations.filter((e=>e!==t)),i.propertiesFromAssociations=i.propertiesFromAssociations.filter((t=>t!==e))}}get _elementHashCode(){return ko([Jo.ASSOCIATION,this.path,ko(this.properties),ko(this.derivedProperties),ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues)])}accept_PackageableElementVisitor(e){return e.visit_Association(this)}}class Jh extends sr{includes=[];classMappings=[];enumerationMappings=[];associationMappings=[];test=[];tests=[];get _elementHashCode(){return ko([Jo.MAPPING,this.path,ko(this.classMappings),ko(this.enumerationMappings),ko(this.associationMappings),ko(this.test),ko(this.includes),ko(this.tests)])}accept_PackageableElementVisitor(e){return e.visit_Mapping(this)}}class Zh extends sr{p_stereotypes=[];p_tags=[];get _elementHashCode(){return ko([Jo.PROFILE,this.path,ko(this.p_stereotypes.map((e=>e.value))),ko(this.p_tags.map((e=>e.value)))])}accept_PackageableElementVisitor(e){return e.visit_Profile(this)}}class Qh extends sr{pattern="/";owners=[];ownership;documentation="";autoActivateUpdates=!0;execution;test;tests=[];postValidations=[];get patternParameters(){return(0,Ae.A)((this.pattern.match(/\{\w+\}/gu)??[]).map((e=>e.substring(1,e.length-1))))}get _elementHashCode(){return ko([Jo.SERVICE,ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues),this.path,this.pattern,ko(this.owners),this.ownership,this.documentation,this.autoActivateUpdates.toString(),this.execution,this.test??"",ko(this.tests),ko(this.postValidations)])}accept_PackageableElementVisitor(e){return e.visit_Service(this)}}class em extends sr{functionName;constructor(e){super(e),this.functionName=e}}class tm extends em{}class nm extends tm{returnType;returnMultiplicity;parameters=[];expressionSequence=[];tests=[];constructor(e,t,n){super(e),this.returnType=t,this.returnMultiplicity=n}get _elementHashCode(){return ko([Jo.FUNCTION,this.path,ko(this.parameters),this.returnType.valueForSerialization??"",ko(this.taggedValues),ko(this.stereotypes.map((e=>e.pointerHashCode))),er(void 0,this.expressionSequence),this.tests.length?ko(this.tests):""])}accept_PackageableElementVisitor(e){return e.visit_ConcreteFunctionDefinition(this)}}class im extends sr{includes=[]}class sm extends im{sections=[];get _elementHashCode(){return ko([Jo.FLAT_DATA,this.path,ko(this.includes.map((e=>e.valueForSerialization??""))),ko(this.sections)])}accept_PackageableElementVisitor(e){return e.visit_FlatData(this)}}class om extends sr{runtimeValue;get _elementHashCode(){return ko([Jo.PACKAGEABLE_RUNTIME,this.path,this.runtimeValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableRuntime(this)}}class rm extends sr{connectionValue;get _elementHashCode(){return ko([Jo.PACKAGEABLE_CONNECTION,this.path,this.connectionValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableConnection(this)}}class am extends sr{}class cm extends am{type;generationOutputPath;scopeElements=[];configurationProperties=[];get _elementHashCode(){return ko([Jo.FILE_GENERATION,this.path,this.type,this.generationOutputPath??"",ko(this.scopeElements.map((e=>e instanceof _r?e.valueForSerialization??"":e))),ko(this.configurationProperties)])}accept_PackageableElementVisitor(e){return e.visit_FileGenerationSpecification(this)}}class lm extends sr{generationNodes=[];fileGenerations=[];findGenerationElementById(e){return this.generationNodes.find((t=>t.id===e))?.generationElement.value}get _elementHashCode(){return ko([Jo.GENERATION_TREE,this.path,ko(this.generationNodes),ko(this.fileGenerations.map((e=>tr(Ko.FILE_GENERATION,e.valueForSerialization??""))))])}accept_PackageableElementVisitor(e){return e.visit_GenerationSpecification(this)}}class dm extends im{schemas=[];joins=[];filters=[];get _elementHashCode(){return ko([Jo.DATABASE,this.path,ko(this.includes.map((e=>e.valueForSerialization??""))),ko(this.schemas),ko(this.joins),ko(this.filters),ko(this.stereotypes.map((e=>e.pointerHashCode)))])}accept_PackageableElementVisitor(e){return e.visit_Database(this)}}class um{_class;index=new Map;constructor(e){this._class=e}getElementClass(){return this._class}get elements(){return Array.from(this.index.values())}getElement(e){return this.index.get(e)}setElement(e,t){this.index.set(e,t)}deleteElement(e){this.index.delete(e)}renameElement(e,t){const n=this.getElement(e);n&&(this.deleteElement(e),this.setElement(t,n))}}class pm extends ar{accept_PackageableElementVisitor(e){return e.visit_PrimitiveType(this)}static STRING=new pm(Fo.STRING);static BOOLEAN=new pm(Fo.BOOLEAN);static BINARY=new pm(Fo.BINARY);static NUMBER=new pm(Fo.NUMBER);static INTEGER=new pm(Fo.INTEGER);static FLOAT=new pm(Fo.FLOAT);static DECIMAL=new pm(Fo.DECIMAL);static DATE=new pm(Fo.DATE);static STRICTDATE=new pm(Fo.STRICTDATE);static DATETIME=new pm(Fo.DATETIME);static STRICTTIME=new pm(Fo.STRICTTIME);static LATESTDATE=new pm(Fo.LATESTDATE);static BYTE=new pm(Fo.BYTE)}var hm=n(8492);const mm=e=>V((0,hm.A)(e.split(Po))),gm=e=>{const t=e.lastIndexOf(Po);return-1===t?void 0:e.substring(0,t)},fm=(e,t)=>{const n=e.lastIndexOf(Po);return-1===n?[t??"",e]:[e.substring(0,n),e.substring(n+2,e.length)]},_m=(e,t)=>`${e?`${e}${Po}`:""}${t}`,Em=(e,t)=>{e.children.push(t),t.package=e},Nm=(e,t)=>{e.children=e.children.filter((e=>e!==t))},bm=e=>e.package?bm(e.package):$(e,ur),vm=(e,t,n,i)=>{const s=t.indexOf(Po),o=-1===s?t:t.substring(0,s);let r;if(r=e.children.find((e=>e instanceof ur&&e.name===o)),!r){if(!n)throw new F(`Can't find child package '${o}' in package '${e.path}'`);z(!Mo.includes(o),`Can't create package with reserved name '${o}'`),r=new ur(o),r.package=e,e.children.push(r)}return i&&i.set(_m(e.path,o),r),-1!==s?vm(r,t.substring(s+2),n,i):r},Tm=(e,t,n,i)=>{if(i){const s=i.get(_m(e.path,t));if(s)return s;let o=t;for(;""!==o;){const s=_m(e.path,o),r=i.get(s);if(r)return vm(r,t.substring(o.length+2,t.length),n,i);const a=o.lastIndexOf(Po);o=-1!==a?o.substring(0,a):""}}return vm(e,t,n,i)},Cm=(e,t,n)=>(Y(t,"Package path is required"),Tm(e.root,t,!0,n)),ym=(e,t)=>$(e.rawType,t),Sm=e=>{const t=new Set;t.add(e);const n=e=>{e.generalizations.forEach((e=>{const i=ym(e.value,rr);t.has(i)||(t.add(i),n(i))}))};return n(e),t.delete(e),Array.from(t)},Am=e=>e.properties.concat(e.propertiesFromAssociations).concat(e.derivedProperties),Im=(e,t)=>e===t?e.toString():0===e&&void 0===t?"MANY":`$${e}_${t??"MANY"}$`,xm=(e,t)=>{if((e=>{const t=D((()=>bm(e)))?.name;return e instanceof pm||t===Do.SYSTEM||t===Do.CORE})(e))return"system elements";if((e=>D((()=>bm(e)))?.name===Do.MODEL_GENERATION)(e))return"generation elements";if((e=>{const t=D((()=>bm(e)));return t?.name===Do.PROJECT_DEPENDENCY_ROOT||void 0!==t&&Boolean(Hm(t.name))})(e)){const n=t.dependencyManager.getElementOrigin(e);if(n)return`project dependency ${n}`}return""};class wm extends sr{data;get hashCode(){return ko([Jo.DATA_ELEMENT,this.path,ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues),this.data])}accept_PackageableElementVisitor(e){return e.visit_DataElement(this)}}class Om extends sr{executionParameters=[];get _elementHashCode(){return ko([Jo.EXECUTION_ENVIRONMENT_INSTANCE,this.path,ko(this.executionParameters)])}accept_PackageableElementVisitor(e){return e.visit_ExecutionEnvironmentInstance(this)}}class Rm extends sr{content;get _elementHashCode(){return ko([Jo.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT,this.path,Qo(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownPackageableElement(this)}}class km extends sr{function;activationConfiguration;ownership}class Pm extends km{content;get _elementHashCode(){return ko([Jo.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR,this.path,Qo(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownFunctionActivator(this)}}class Lm extends im{content;get _elementHashCode(){return ko([Jo.INTERNAL__UNKNOWN_STORE,this.path,Qo(this.content)])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownStore(this)}}class Mm extends sr{content;classifierPath;get _elementHashCode(){return ko([Jo.INTERNAL__UNKNOWN_ELEMENT,this.path,Qo(this.content),this.classifierPath])}accept_PackageableElementVisitor(e){return e.visit_INTERNAL__UnknownElement(this)}}const Dm=new Set([sr,or,ar,pm,rr,qh,cr,nm,Zh,dr,lr,wm,im,Jh,rm,om,lm,cm,Qh,Om,class extends sr{sections=[];get _elementHashCode(){return ko([Jo.SECTION_INDEX,this.path,ko(this.sections)])}accept_PackageableElementVisitor(e){return e.visit_SectionIndex(this)}},Rm,Lm]);class Fm{root;_origin;extensions=[];graphPlugins=[];elementSectionIndex=new Map;sectionIndicesIndex=new Map;profilesIndex=new Map;typesIndex=new Map;associationsIndex=new Map;functionsIndex=new Map;functionActivatorsIndex=new Map;storesIndex=new Map;mappingsIndex=new Map;connectionsIndex=new Map;runtimesIndex=new Map;servicesIndex=new Map;generationSpecificationsIndex=new Map;fileGenerationsIndex=new Map;dataElementsIndex=new Map;executionEnvironmentsIndex=new Map;INTERNAL__unknownElementsIndex=new Map;INTERNAL__unknownIndex=new Map;constructor(e,t,n){this.root=new ur(e);const i=t.flatMap((e=>e.getExtraPureGraphExtensionClasses?.()??[]));this.extensions=this.createGraphExtensions(i),this._origin=n}createGraphExtensions(e){return e.map((e=>{if(Dm.has(e))throw new P("Pure graph extension not allowed for the specified class. Consider removing this extension from plugins.");return new um(e)}))}get ownSectionIndices(){return Array.from(this.sectionIndicesIndex.values())}get ownProfiles(){return Array.from(this.profilesIndex.values())}get ownEnumerations(){return Array.from(this.typesIndex.values()).filter(G(cr))}get ownMeasures(){return Array.from(this.typesIndex.values()).filter(G(dr))}get ownClasses(){return Array.from(this.typesIndex.values()).filter(G(rr))}get ownTypes(){return Array.from(this.typesIndex.values())}get ownAssociations(){return Array.from(this.associationsIndex.values())}get ownFunctions(){return Array.from(this.functionsIndex.values())}get ownFunctionActivators(){return Array.from(this.functionActivatorsIndex.values())}get ownStores(){return Array.from(this.storesIndex.values())}get ownFlatDatas(){return Array.from(this.storesIndex.values()).filter(G(sm))}get ownDatabases(){return Array.from(this.storesIndex.values()).filter(G(dm))}get ownMappings(){return Array.from(this.mappingsIndex.values())}get ownServices(){return Array.from(this.servicesIndex.values())}get ownRuntimes(){return Array.from(this.runtimesIndex.values())}get ownConnections(){return Array.from(this.connectionsIndex.values())}get ownFileGenerations(){return Array.from(this.fileGenerationsIndex.values())}get ownDataElements(){return Array.from(this.dataElementsIndex.values())}get ownExecutionEnvironments(){return Array.from(this.executionEnvironmentsIndex.values())}get ownGenerationSpecifications(){return Array.from(this.generationSpecificationsIndex.values())}get ownTestables(){const e=[...this.ownServices,...this.ownMappings],t=this.graphPlugins.flatMap((e=>e.getExtraTestablesCollectors?.()??[]));return[...e,...this.allOwnElements.map((e=>t.find((t=>Boolean(t(e))))?.(e))).filter(B)]}get origin(){return this._origin}setOrigin(e){if(this._origin)throw new P("Graph origin has already been set");this._origin=e}getExtensionElements(e){return this.getExtensionForElementClass(e).elements}getExtensionForElementClass(e){const t=this.extensions.filter((t=>t.getElementClass()===e));if(0===t.length)throw new L("Can't find graph extension for the specified element class: no compatible graph extensions available from plugins");if(t.length>1)throw new P("Found multiple extensions for the specified element class");return t[0]}getOwnNullableSection=e=>this.elementSectionIndex.get(e);getOwnNullableSectionIndex=e=>this.sectionIndicesIndex.get(e);getOwnNullableProfile=e=>this.profilesIndex.get(e);getOwnNullableType=e=>this.typesIndex.get(e);getOwnNullableClass=e=>{const t=this.getOwnNullableType(e);return t instanceof rr?t:void 0};getOwnNullableEnumeration=e=>{const t=this.getOwnNullableType(e);return t instanceof cr?t:void 0};getOwnNullableMeasure=e=>{const t=this.getOwnNullableType(e);return t instanceof dr?t:void 0};getOwnNullableAssociation=e=>this.associationsIndex.get(e);getOwnNullableFunction=e=>this.functionsIndex.get(e);getOwnNullableFunctionActivator=e=>this.functionActivatorsIndex.get(e);getOwnNullableStore=e=>this.storesIndex.get(e);getOwnNullableMapping=e=>this.mappingsIndex.get(e);getOwnNullableConnection=e=>this.connectionsIndex.get(e);getOwnNullableRuntime=e=>this.runtimesIndex.get(e);getOwnNullableService=e=>this.servicesIndex.get(e);getOwnNullableGenerationSpecification=e=>this.generationSpecificationsIndex.get(e);getOwnNullableFileGeneration=e=>this.fileGenerationsIndex.get(e);getOwnNullableDataElement=e=>this.dataElementsIndex.get(e);getOwnNullableExecutionEnviornment=e=>this.executionEnvironmentsIndex.get(e);getOwnSectionIndex=e=>V(this.getOwnNullableSectionIndex(e),`Can't find section index '${e}'`);getOwnProfile=e=>V(this.getOwnNullableProfile(e),`Can't find profile '${e}'`);getOwnType=e=>V(this.getOwnNullableType(e),`Can't find type '${e}'`);getOwnClass=e=>V(this.getOwnNullableClass(e),`Can't find class '${e}'`);getOwnEnumeration=e=>V(this.getOwnNullableEnumeration(e),`Can't find enumeration '${e}'`);getOwnMeasure=e=>V(this.getOwnNullableMeasure(e),`Can't find measure '${e}'`);getOwnAssociation=e=>V(this.getOwnNullableAssociation(e),`Can't find association '${e}'`);getOwnFunction=e=>V(this.getOwnNullableFunction(e),`Can't find function '${e}'`);getOwnFunctionActivator=e=>V(this.getOwnNullableFunctionActivator(e),`Can't find function activator '${e}'`);getOwnStore=e=>V(this.getOwnNullableStore(e),`Can't find store '${e}'`);getOwnDatabase=e=>$(this.getOwnNullableStore(e),dm,`Can't find database '${e}'`);getOwnFlatDataStore=e=>$(this.getOwnNullableStore(e),sm,`Can't find flat-data store '${e}'`);getOwnMapping=e=>V(this.getOwnNullableMapping(e),`Can't find mapping '${e}'`);getOwnConnection=e=>V(this.getOwnNullableConnection(e),`Can't find connection '${e}'`);getOwnRuntime=e=>V(this.getOwnNullableRuntime(e),`Can't find runtime '${e}'`);getOwnService=e=>V(this.getOwnNullableService(e),`Can't find service '${e}'`);getOwnGenerationSpecification=e=>V(this.getOwnNullableGenerationSpecification(e),`Can't find generation specification '${e}'`);getOwnFileGeneration=e=>V(this.getOwnNullableFileGeneration(e),`Can't find file generation '${e}'`);getOwnDataElement=e=>V(this.getOwnNullableDataElement(e),`Can't find data element '${e}'`);getOwnExecutionEnvironment=e=>V(this.getOwnNullableExecutionEnviornment(e),`Can't find execution environment element '${e}'`);getOwnNullableExtensionElement(e,t){return this.getExtensionForElementClass(t).getElement(e)}setOwnSection(e,t){this.elementSectionIndex.set(e,t)}setOwnSectionIndex(e,t){this.sectionIndicesIndex.set(e,t)}setOwnProfile(e,t){this.profilesIndex.set(e,t)}setOwnType(e,t){this.typesIndex.set(e,t)}setOwnAssociation(e,t){this.associationsIndex.set(e,t)}setOwnFunction(e,t){this.functionsIndex.set(e,t)}setOwnFunctionActivator(e,t){this.functionActivatorsIndex.set(e,t)}setOwnStore(e,t){this.storesIndex.set(e,t)}setOwnMapping(e,t){this.mappingsIndex.set(e,t)}setOwnConnection(e,t){this.connectionsIndex.set(e,t)}setOwnRuntime(e,t){this.runtimesIndex.set(e,t)}setOwnService(e,t){this.servicesIndex.set(e,t)}setOwnGenerationSpecification(e,t){this.generationSpecificationsIndex.set(e,t)}setOwnFileGeneration(e,t){this.fileGenerationsIndex.set(e,t)}setOwnDataElement(e,t){this.dataElementsIndex.set(e,t)}setOwnExecutionEnvironment(e,t){this.executionEnvironmentsIndex.set(e,t)}INTERNAL__setOwnUnknown(e,t){this.INTERNAL__unknownIndex.set(e,t)}INTERNAL__setOwnUnknownElement(e,t){this.INTERNAL__unknownElementsIndex.set(e,t)}setOwnElementInExtension(e,t,n){this.getExtensionForElementClass(n).setElement(e,t)}get allOwnElements(){return[...this.ownProfiles,...this.ownEnumerations,...this.ownMeasures,...this.ownClasses,...this.ownAssociations,...this.ownFunctions,...this.ownFunctionActivators,...this.ownStores,...this.ownMappings,...this.ownServices,...this.ownRuntimes,...this.ownConnections,...this.ownGenerationSpecifications,...this.ownFileGenerations,...this.ownDataElements,...this.ownExecutionEnvironments,...Array.from(this.INTERNAL__unknownElementsIndex.values()),...Array.from(this.INTERNAL__unknownIndex.values()),...this.extensions.flatMap((e=>e.elements))]}get knownAllOwnElements(){return this.allOwnElements.filter((e=>!H(e,Mm)))}async dispose(){this.allOwnElements.length&&await Promise.all(this.allOwnElements.map((e=>I((()=>{e.dispose()})))))}getNullablePackage=e=>e?D((()=>Tm(this.root,e,!1,void 0))):this.root;getOwnNullableElement(e,t){let n=this.sectionIndicesIndex.get(e)??this.INTERNAL__unknownIndex.get(e)??this.INTERNAL__unknownElementsIndex.get(e)??this.typesIndex.get(e)??this.profilesIndex.get(e)??this.associationsIndex.get(e)??this.functionsIndex.get(e)??this.functionActivatorsIndex.get(e)??this.storesIndex.get(e)??this.mappingsIndex.get(e)??this.servicesIndex.get(e)??this.runtimesIndex.get(e)??this.connectionsIndex.get(e)??this.fileGenerationsIndex.get(e)??this.dataElementsIndex.get(e)??this.executionEnvironmentsIndex.get(e)??this.generationSpecificationsIndex.get(e);if(!n)for(const t of this.extensions){const i=t.getElement(e);if(i){n=i;break}}return t&&!n?this.getNullablePackage(e):n}addOwnElement(e,t){Em(t?Cm(this,t,void 0):this.root,e),e instanceof Jh?this.setOwnMapping(e.path,e):e instanceof im?this.setOwnStore(e.path,e):e instanceof or?this.setOwnType(e.path,e):e instanceof qh?this.setOwnAssociation(e.path,e):e instanceof Zh?this.setOwnProfile(e.path,e):e instanceof nm?this.setOwnFunction(e.path,e):e instanceof km?this.setOwnFunctionActivator(e.path,e):e instanceof Qh?this.setOwnService(e.path,e):e instanceof rm?this.setOwnConnection(e.path,e):e instanceof om?this.setOwnRuntime(e.path,e):e instanceof cm?this.setOwnFileGeneration(e.path,e):e instanceof lm?this.setOwnGenerationSpecification(e.path,e):e instanceof wm?this.setOwnDataElement(e.path,e):e instanceof Om?this.setOwnExecutionEnvironment(e.path,e):e instanceof ur||this.getExtensionForElementClass(C(e)).setElement(e.path,e)}deleteOwnElement(e){e.package&&Nm(e.package,e),e instanceof Mm?this.INTERNAL__unknownIndex.delete(e.path):e instanceof Rm?this.INTERNAL__unknownElementsIndex.delete(e.path):e instanceof Jh?this.mappingsIndex.delete(e.path):e instanceof im?this.storesIndex.delete(e.path):e instanceof or?(this.typesIndex.delete(e.path),e instanceof dr&&(e.canonicalUnit&&this.typesIndex.delete(e.canonicalUnit.path),e.nonCanonicalUnits.forEach((e=>this.typesIndex.delete(e.path))))):e instanceof qh?this.associationsIndex.delete(e.path):e instanceof Zh?this.profilesIndex.delete(e.path):e instanceof nm?this.functionsIndex.delete(e.path):e instanceof km?this.functionActivatorsIndex.delete(e.path):e instanceof Qh?this.servicesIndex.delete(e.path):e instanceof om?this.runtimesIndex.delete(e.path):e instanceof rm?this.connectionsIndex.delete(e.path):e instanceof cm?this.fileGenerationsIndex.delete(e.path):e instanceof lm?this.generationSpecificationsIndex.delete(e.path):e instanceof wm?this.dataElementsIndex.delete(e.path):e instanceof Om?this.executionEnvironmentsIndex.delete(e.path):e instanceof ur?e.children.forEach((e=>this.deleteOwnElement(e))):this.getExtensionForElementClass(C(e)).deleteElement(e.path)}renameOwnElement(e,t,n){if(t===n)return;if(!n)throw new L(`Can't rename element '${t} to '${n}': path is empty'`);if(e instanceof ur&&!Boolean(n.match(/^(?:\w[\w$_-]*)(?:::\w[\w$_-]*)*$/))||!(e instanceof ur)&&!Boolean(n.match(/^(?:\w[\w$_-]*)(?:::\w[\w$_-]*)+$/)))throw new L(`Can't rename element '${t} to '${n}': invalid path'`);if(this.getOwnNullableElement(n,!0))throw new L(`Can't rename element '${t} to '${n}': another element with the same path already existed'`);const[i,s]=fm(n);if(!(e instanceof ur)){const t=this.getNullablePackage(i)??(""!==i?Cm(this,i,void 0):this.root);e.name=s,e instanceof nm&&(e.functionName=(o=e,(r=e.name).substring(0,r.indexOf((e=>`_${e.parameters.map((e=>`${e.type.value.name}_${Im(e.multiplicity.lowerBound,e.multiplicity.upperBound)}_`)).join("_")}_${e.returnType.value.name}_${Im(e.returnMultiplicity.lowerBound,e.returnMultiplicity.upperBound)}_`)(o))))),e.package!==t&&(e.package&&Nm(e.package,e),Em(t,e))}var o,r;if(e instanceof Mm)this.INTERNAL__unknownIndex.delete(t),this.INTERNAL__unknownIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Rm)this.INTERNAL__unknownElementsIndex.delete(t),this.INTERNAL__unknownElementsIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Pm)this.functionActivatorsIndex.delete(t),this.functionActivatorsIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Lm)this.storesIndex.delete(t),this.storesIndex.set(n,e),e.content={...e.content,name:e.name,package:e.package?.path};else if(e instanceof Jh)this.mappingsIndex.delete(t),this.mappingsIndex.set(n,e);else if(e instanceof im)this.storesIndex.delete(t),this.storesIndex.set(n,e);else if(e instanceof or)this.typesIndex.delete(t),this.typesIndex.set(n,e),e instanceof dr&&(e.canonicalUnit&&(this.typesIndex.delete(e.canonicalUnit.path),this.typesIndex.set(e.canonicalUnit.path.replace(t,n),e.canonicalUnit)),e.nonCanonicalUnits.forEach((e=>{this.typesIndex.delete(e.path),this.typesIndex.set(e.path.replace(t,n),e)})));else if(e instanceof qh)this.associationsIndex.delete(t),this.associationsIndex.set(n,e);else if(e instanceof Zh)this.profilesIndex.delete(t),this.profilesIndex.set(n,e);else if(e instanceof nm)this.functionsIndex.delete(t),this.functionsIndex.set(n,e);else if(e instanceof km)this.functionActivatorsIndex.delete(t),this.functionActivatorsIndex.set(n,e);else if(e instanceof Qh)this.servicesIndex.delete(t),this.servicesIndex.set(n,e);else if(e instanceof om)this.runtimesIndex.delete(t),this.runtimesIndex.set(n,e);else if(e instanceof rm)this.connectionsIndex.delete(t),this.connectionsIndex.set(n,e);else if(e instanceof cm)this.fileGenerationsIndex.delete(t),this.fileGenerationsIndex.set(n,e);else if(e instanceof wm)this.dataElementsIndex.delete(t),this.dataElementsIndex.set(n,e);else if(e instanceof Om)this.executionEnvironmentsIndex.delete(t),this.executionEnvironmentsIndex.set(n,e);else if(e instanceof lm)this.generationSpecificationsIndex.delete(t),this.generationSpecificationsIndex.set(n,e);else if(e instanceof ur){const o=new Map;if(e.children.forEach((e=>{o.set(e.path,e)})),e.name=s,!e.package)throw new P("Can't rename root package");const r=e.package;if(r!==this.getNullablePackage(i)){Nm(r,e);const t=""!==i?Cm(this,i,void 0):this.root;Em(t,e)}o.forEach(((e,i)=>{this.renameOwnElement(e,i,i.replace(t,n))}))}else this.getExtensionForElementClass(C(e)).renameElement(t,n)}TEMPORARY__deleteOwnSectionIndex(){this.sectionIndicesIndex.forEach((e=>{e.setIsDeleted(!0),this.sectionIndicesIndex.delete(e.path)})),this.sectionIndicesIndex=new Map,this.elementSectionIndex=new Map}}class Bm{}class jm extends Bm{groupId;artifactId;versionId;constructor(e,t,n){super(),this.groupId=e,this.artifactId=t,this.versionId=n}}const Vm="@dependency__",Hm=e=>{if(0===e.indexOf(Vm))return e.substring(13)};class Gm extends Fm{constructor(e,t,n){super(t.name,e,n),this.root=t}}const Um=(e,t)=>n=>{for(const i of e.dependencyGraphs){const e=t(i,n);if(e)return e}};class $m{graphPlugins;_origin;roots=[];projectDependencyModelsIndex=new Map;constructor(e){this.graphPlugins=e}initialize(e){Array.from(e.entries()).forEach((([e,t])=>{const n=new ur((e=>`${Vm}${e}`)(e));this.roots.push(n),this.projectDependencyModelsIndex.set(e,new Gm(this.graphPlugins,n,new jm(t.groupId,t.artifactId,t.versionId)))}))}get numberOfDependencies(){return this.projectDependencyModelsIndex.size}get hasDependencies(){return Boolean(this.projectDependencyModelsIndex.size)}get dependencyGraphs(){return Array.from(this.projectDependencyModelsIndex.values())}get allOwnElements(){return this.dependencyGraphs.flatMap((e=>e.allOwnElements))}get origin(){return this._origin}setOrigin(e){if(this._origin)throw new P("Graph origin has already been set");this._origin=e}getOwnNullableSectionIndex=Um(this,((e,t)=>e.getOwnNullableSectionIndex(t)));getOwnNullableProfile=Um(this,((e,t)=>e.getOwnNullableProfile(t)));getOwnNullableType=Um(this,((e,t)=>e.getOwnNullableType(t)));getOwnNullableClass=Um(this,((e,t)=>e.getOwnNullableClass(t)));getOwnNullableEnumeration=Um(this,((e,t)=>e.getOwnNullableEnumeration(t)));getOwnNullableMeasure=Um(this,((e,t)=>e.getOwnNullableMeasure(t)));getOwnNullableAssociation=Um(this,((e,t)=>e.getOwnNullableAssociation(t)));getOwnNullableFunction=Um(this,((e,t)=>e.getOwnNullableFunction(t)));getOwnNullableFunctionActivator=Um(this,((e,t)=>e.getOwnNullableFunctionActivator(t)));getOwnNullableStore=Um(this,((e,t)=>e.getOwnNullableStore(t)));getOwnNullableMapping=Um(this,((e,t)=>e.getOwnNullableMapping(t)));getOwnNullableConnection=Um(this,((e,t)=>e.getOwnNullableConnection(t)));getOwnNullableRuntime=Um(this,((e,t)=>e.getOwnNullableRuntime(t)));getOwnNullableService=Um(this,((e,t)=>e.getOwnNullableService(t)));getOwnNullableGenerationSpecification=Um(this,((e,t)=>e.getOwnNullableGenerationSpecification(t)));getOwnNullableFileGeneration=Um(this,((e,t)=>e.getOwnNullableFileGeneration(t)));getOwnNullableDataElement=Um(this,((e,t)=>e.getOwnNullableDataElement(t)));getOwnExecutionEnvironment=Um(this,((e,t)=>e.getOwnNullableExecutionEnviornment(t)));getOwnNullableExtensionElement(e,t){for(const n of this.dependencyGraphs){const i=n.getExtensionForElementClass(t).getElement(e);if(i)return i}}get sectionIndices(){return this.dependencyGraphs.flatMap((e=>e.ownSectionIndices))}get profiles(){return this.dependencyGraphs.flatMap((e=>e.ownProfiles))}get enumerations(){return this.dependencyGraphs.flatMap((e=>e.ownEnumerations))}get measures(){return this.dependencyGraphs.flatMap((e=>e.ownMeasures))}get classes(){return this.dependencyGraphs.flatMap((e=>e.ownClasses))}get types(){return this.dependencyGraphs.flatMap((e=>e.ownTypes))}get associations(){return this.dependencyGraphs.flatMap((e=>e.ownAssociations))}get functions(){return this.dependencyGraphs.flatMap((e=>e.ownFunctions))}get functionActivators(){return this.dependencyGraphs.flatMap((e=>e.ownFunctionActivators))}get stores(){return this.dependencyGraphs.flatMap((e=>e.ownStores))}get databases(){return this.dependencyGraphs.flatMap((e=>e.ownDatabases))}get mappings(){return this.dependencyGraphs.flatMap((e=>e.ownMappings))}get services(){return this.dependencyGraphs.flatMap((e=>e.ownServices))}get runtimes(){return this.dependencyGraphs.flatMap((e=>e.ownRuntimes))}get connections(){return this.dependencyGraphs.flatMap((e=>e.ownConnections))}get dataElements(){return this.dependencyGraphs.flatMap((e=>e.ownDataElements))}get generationSpecifications(){return this.dependencyGraphs.flatMap((e=>e.ownGenerationSpecifications))}get fileGenerations(){return this.dependencyGraphs.flatMap((e=>e.ownFileGenerations))}get testables(){return this.dependencyGraphs.flatMap((e=>e.ownTestables))}get executionEnvironments(){return this.dependencyGraphs.flatMap((e=>e.ownExecutionEnvironments))}getExtensionElements(e){return this.dependencyGraphs.flatMap((t=>t.getExtensionElements(e)))}getModel(e){return V(this.projectDependencyModelsIndex.get(e),`Can't find dependency model with project ID '${e}'`)}getNullableElement(e,t){const n=this.dependencyGraphs.find((n=>Boolean(n.getOwnNullableElement(e,t))));return n?.getOwnNullableElement(e,t)}getElementOrigin(e){const t=this.dependencyGraphs.find((t=>Boolean(t.getOwnNullableElement(e.path))));return t?.origin instanceof jm?`${t.origin.groupId}:${t.origin.artifactId}`:void 0}}class Ym extends im{static NAME="ModelStore";static INSTANCE=new Ym;constructor(){super(Ym.NAME)}accept_PackageableElementVisitor(e){throw new L}}class Wm extends Fm{primitiveTypesIndex=new Map;get primitiveTypes(){return Array.from(this.primitiveTypesIndex.values())}constructor(e){super(Do.CORE,e),this.initializePrimitiveTypes(),this.setOwnStore(Ym.NAME,Ym.INSTANCE)}get allOwnElements(){return[...super.allOwnElements,...this.primitiveTypes]}initializePrimitiveTypes(){[pm.STRING,pm.BOOLEAN,pm.BINARY,pm.NUMBER,pm.INTEGER,pm.FLOAT,pm.DECIMAL,pm.DATE,pm.STRICTDATE,pm.DATETIME,pm.STRICTTIME,pm.LATESTDATE,pm.BYTE].forEach((e=>{this.primitiveTypesIndex.set(e.path,e),this.setOwnType(e.path,e)}))}}class zm extends Fm{autoImports=[];constructor(e){super(Do.SYSTEM,e)}initializeAutoImports(){this.autoImports=Ho.map((e=>$(this.getOwnNullableElement(e,!0),ur,`Can't find auto-import package '${e}'`)))}}class Km extends Fm{constructor(e){super(Do.MODEL_GENERATION,e)}}class Xm extends Fm{coreModel;systemModel;generationModel;dependencyManager;constructor(e,t,n){super(Do.MAIN,n),this.coreModel=e,this.systemModel=t,this.generationModel=new Km(n),this.dependencyManager=new $m(n)}get autoImports(){return this.systemModel.autoImports}get primitiveTypes(){return this.coreModel.primitiveTypes}get sectionIndices(){return[...this.coreModel.ownSectionIndices,...this.systemModel.ownSectionIndices,...this.dependencyManager.sectionIndices,...this.ownSectionIndices,...this.generationModel.ownSectionIndices]}get profiles(){return[...this.coreModel.ownProfiles,...this.systemModel.ownProfiles,...this.dependencyManager.profiles,...this.ownProfiles,...this.generationModel.ownProfiles]}get enumerations(){return[...this.coreModel.ownEnumerations,...this.systemModel.ownEnumerations,...this.dependencyManager.enumerations,...this.ownEnumerations,...this.generationModel.ownEnumerations]}get measures(){return[...this.coreModel.ownMeasures,...this.systemModel.ownMeasures,...this.dependencyManager.measures,...this.ownMeasures,...this.generationModel.ownMeasures]}get classes(){return[...this.coreModel.ownClasses,...this.systemModel.ownClasses,...this.dependencyManager.classes,...this.ownClasses,...this.generationModel.ownClasses]}get types(){return[...this.coreModel.ownTypes,...this.systemModel.ownTypes,...this.dependencyManager.types,...this.ownTypes,...this.generationModel.ownTypes]}get associations(){return[...this.coreModel.ownAssociations,...this.systemModel.ownAssociations,...this.dependencyManager.associations,...this.ownAssociations,...this.generationModel.ownAssociations]}get functions(){return[...this.coreModel.ownFunctions,...this.systemModel.ownFunctions,...this.dependencyManager.functions,...this.ownFunctions,...this.generationModel.ownFunctions]}get functionActivators(){return[...this.coreModel.ownFunctionActivators,...this.systemModel.ownFunctionActivators,...this.dependencyManager.functionActivators,...this.ownFunctionActivators,...this.generationModel.ownFunctionActivators]}get stores(){return[...this.coreModel.ownStores,...this.systemModel.ownStores,...this.dependencyManager.stores,...this.ownStores,...this.generationModel.ownStores]}get databases(){return[...this.coreModel.ownDatabases,...this.systemModel.ownDatabases,...this.dependencyManager.databases,...this.ownDatabases,...this.generationModel.ownDatabases]}get mappings(){return[...this.coreModel.ownMappings,...this.systemModel.ownMappings,...this.dependencyManager.mappings,...this.ownMappings,...this.generationModel.ownMappings]}get services(){return[...this.coreModel.ownServices,...this.systemModel.ownServices,...this.dependencyManager.services,...this.ownServices,...this.generationModel.ownServices]}get runtimes(){return[...this.coreModel.ownRuntimes,...this.systemModel.ownRuntimes,...this.dependencyManager.runtimes,...this.ownRuntimes,...this.generationModel.ownRuntimes]}get connections(){return[...this.coreModel.ownConnections,...this.systemModel.ownConnections,...this.dependencyManager.connections,...this.ownConnections,...this.generationModel.ownConnections]}get dataElements(){return[...this.coreModel.ownDataElements,...this.systemModel.ownDataElements,...this.dependencyManager.dataElements,...this.ownDataElements,...this.generationModel.ownDataElements]}get executionEnvironments(){return[...this.coreModel.ownExecutionEnvironments,...this.systemModel.ownExecutionEnvironments,...this.dependencyManager.executionEnvironments,...this.ownExecutionEnvironments,...this.generationModel.ownExecutionEnvironments]}get generationSpecifications(){return[...this.coreModel.ownGenerationSpecifications,...this.systemModel.ownGenerationSpecifications,...this.dependencyManager.generationSpecifications,...this.ownGenerationSpecifications,...this.generationModel.ownGenerationSpecifications]}get fileGenerations(){return[...this.coreModel.ownFileGenerations,...this.systemModel.ownFileGenerations,...this.dependencyManager.fileGenerations,...this.ownFileGenerations,...this.generationModel.ownFileGenerations]}get allElements(){return[...this.coreModel.allOwnElements,...this.systemModel.allOwnElements,...this.dependencyManager.allOwnElements,...this.allOwnElements,...this.generationModel.allOwnElements]}get testables(){return[...this.coreModel.ownTestables,...this.systemModel.ownTestables,...this.dependencyManager.testables,...this.ownTestables,...this.generationModel.ownTestables]}getPrimitiveType=e=>V(this.coreModel.primitiveTypesIndex.get(e),`Can't find primitive type '${e}'`);getType=e=>V(this.getOwnNullableType(e)??this.generationModel.getOwnNullableType(e)??this.dependencyManager.getOwnNullableType(e)??this.systemModel.getOwnNullableType(e)??this.coreModel.getOwnNullableType(e),`Can't find type '${e}'`);getProfile=e=>V(this.getOwnNullableProfile(e)??this.generationModel.getOwnNullableProfile(e)??this.dependencyManager.getOwnNullableProfile(e)??this.systemModel.getOwnNullableProfile(e),`Can't find profile '${e}'`);getEnumeration=e=>$(this.getType(e),cr,`Can't find enumeration '${e}'`);getMeasure=e=>$(this.getType(e),dr,`Can't find measure '${e}'`);getUnit=e=>$(this.getType(e),lr,`Can't find unit '${e}'`);getClass=e=>$(this.getType(e),rr,`Can't find class '${e}'`);getAssociation=e=>V(this.getOwnNullableAssociation(e)??this.generationModel.getOwnNullableAssociation(e)??this.dependencyManager.getOwnNullableAssociation(e)??this.systemModel.getOwnNullableAssociation(e),`Can't find association '${e}'`);getPropertyOwner=e=>V(this.getOwnNullableAssociation(e)??this.generationModel.getOwnNullableAssociation(e)??this.dependencyManager.getOwnNullableAssociation(e)??this.systemModel.getOwnNullableAssociation(e)??$(this.getType(e),rr),`Can't find property owner '${e}'`);getFunction=e=>$(this.getOwnNullableFunction(e)??this.generationModel.getOwnNullableFunction(e)??this.dependencyManager.getOwnNullableFunction(e)??this.systemModel.getOwnNullableFunction(e),nm,`Can't find function '${e}'`);getFunctionActivator=e=>$(this.getOwnNullableFunctionActivator(e)??this.generationModel.getOwnNullableFunctionActivator(e)??this.dependencyManager.getOwnNullableFunctionActivator(e)??this.systemModel.getOwnNullableFunctionActivator(e),km,`Can't find function activator '${e}'`);getStore=e=>V(this.getOwnNullableStore(e)??this.generationModel.getOwnNullableStore(e)??this.dependencyManager.getOwnNullableStore(e)??this.systemModel.getOwnNullableStore(e)??this.coreModel.getOwnNullableStore(e),`Can't find store '${e}'`);getFlatDataStore=e=>$(this.getStore(e),sm,`Can't find flat-data store '${e}'`);getDatabase=e=>$(this.getStore(e),dm,`Can't find database store '${e}'`);getMapping=e=>V(this.getOwnNullableMapping(e)??this.generationModel.getOwnNullableMapping(e)??this.dependencyManager.getOwnNullableMapping(e)??this.systemModel.getOwnNullableMapping(e),`Can't find mapping '${e}'`);getService=e=>V(this.getOwnNullableService(e)??this.generationModel.getOwnNullableService(e)??this.dependencyManager.getOwnNullableService(e)??this.systemModel.getOwnNullableService(e),`Can't find service '${e}'`);getConnection=e=>V(this.getOwnNullableConnection(e)??this.generationModel.getOwnNullableConnection(e)??this.dependencyManager.getOwnNullableConnection(e)??this.systemModel.getOwnNullableConnection(e),`Can't find connection '${e}'`);getRuntime=e=>V(this.getOwnNullableRuntime(e)??this.generationModel.getOwnNullableRuntime(e)??this.dependencyManager.getOwnNullableRuntime(e)??this.systemModel.getOwnNullableRuntime(e),`Can't find runtime '${e}'`);getGenerationSpecification=e=>V(this.getOwnNullableGenerationSpecification(e)??this.generationModel.getOwnNullableGenerationSpecification(e)??this.dependencyManager.getOwnNullableGenerationSpecification(e)??this.systemModel.getOwnNullableGenerationSpecification(e),`Can't find generation specification '${e}'`);getFileGeneration=e=>V(this.getOwnNullableFileGeneration(e)??this.generationModel.getOwnNullableFileGeneration(e)??this.dependencyManager.getOwnNullableFileGeneration(e)??this.systemModel.getOwnNullableFileGeneration(e),`Can't find file generation '${e}'`);getDataElement=e=>V(this.getOwnNullableDataElement(e)??this.generationModel.getOwnNullableDataElement(e)??this.dependencyManager.getOwnNullableDataElement(e)??this.systemModel.getOwnNullableDataElement(e),`Can't find data element '${e}'`);getExtensionElement(e,t,n){return V(this.getOwnNullableExtensionElement(e,t)??this.generationModel.getOwnNullableExtensionElement(e,t)??this.dependencyManager.getOwnNullableExtensionElement(e,t)??this.systemModel.getOwnNullableExtensionElement(e,t),n??`Can't find element '${e}'`)}getElement=(e,t)=>V(this.getNullableElement(e,t),`Can't find element '${e}'`);getNullableClass=e=>D((()=>this.getClass(e)));getNullableMapping=e=>D((()=>this.getMapping(e)));getNullableService=e=>D((()=>this.getService(e)));getNullableRuntime=e=>D((()=>this.getRuntime(e)));getNullableFileGeneration=e=>D((()=>this.getFileGeneration(e)));getNullableElement(e,t){const n=super.getOwnNullableElement(e)??this.dependencyManager.getNullableElement(e)??this.generationModel.getOwnNullableElement(e)??this.systemModel.getOwnNullableElement(e)??this.coreModel.getOwnNullableElement(e);return t&&!n?this.getNullablePackage(e)??this.dependencyManager.getNullableElement(e,!0)??this.generationModel.getNullablePackage(e)??this.systemModel.getNullablePackage(e):n}getMultiplicity(e,t){let n;return 1===e&&1===t?n=Wh.ONE:0===e&&1===t?n=Wh.ZERO_ONE:0===e&&void 0===t?n=Wh.ZERO_MANY:1===e&&void 0===t?n=Wh.ONE_MANY:0===e&&0===t&&(n=Wh.ZERO),n??new Wh(e,t)}addElement(e,t){const n=_m(t??"",e.name);if(this.getNullableElement(n,!1))throw new P(`Can't create element '${n}': another element with the same path already existed`);super.addOwnElement(e,t)}deleteElement(e){super.deleteOwnElement(e);const t=this.graphPlugins.flatMap((e=>e.getExtraDeadReferencesCleaners?.()??[]));for(const e of t)e(this)}renameElement(e,t){if(this.getNullableElement(t,!1))throw new P(`Can't rename element '${e.path}' to '${t}': another element with the same path already existed`);super.renameOwnElement(e,e.path,t)}}const qm=(e,t)=>`${V(e,"Package path is required")}${Po}${V(t,"Name is required")}`,Jm=e=>e instanceof zm?"System elements":e instanceof Km?"Generation elements":e instanceof Gm&&e.origin instanceof jm?`Project dependency ${e.origin.groupId}:${e.origin.artifactId} `:"";class Zm{elementClassName;_class;prerequisites=[];firstPass;secondPass;thirdPass;fourthPass;fifthPass;constructor(e){this.elementClassName=e.elementClassName,this._class=e._class,this.prerequisites=e.prerequisites??[],this.firstPass=e.firstPass,this.secondPass=e.secondPass,this.thirdPass=e.thirdPass,this.fourthPass=e.fourthPass,this.fifthPass=e.fifthPass}getElementProtocolClass(){return this._class}getPrerequisiteElementProtocolClasses(){return this.prerequisites}runFirstPass(e,t,n,i){Y(e.package,"Element 'package' field is missing or empty"),Y(e.name,"Element 'name' field is missing or empty"),((e,t,n)=>{if(n){if(n.has(e)){const n=t.graph.getNullableElement(e),i=xm(V(n),t.graph);throw new F(`${Jm(t.currentSubGraph)}Element '${e}' already exists${i?` in ${i}`:""}`)}n.add(e)}else{const n=t.graph.getNullableElement(e);if(n){const i=xm(n,t.graph);throw new F(`${Jm(t.currentSubGraph)}Element '${e}' already exists${i?` in ${i}`:""}`)}}})(qm(e.package,e.name),t,i);const s=this.firstPass(e,t);return Em(Cm(t.currentSubGraph,e.package,n),s),s}runSecondPass(e,t){this.secondPass?.(e,t)}runThirdPass(e,t){this.thirdPass?.(e,t)}runFourthPass(e,t){this.fourthPass?.(e,t)}runFifthPass(e,t){this.fifthPass?.(e,t)}}const Qm=e=>e.classView.value.id,eg=e=>{const t=new Xp,n=new Wp;return n.points=e.pathForSerialization,t.line=n,t.property=((e,t)=>{const n=new nh;return n.class=t?.isTransformingEmbeddedPropertyMapping||t?.isTransformingLocalPropertyMapping?void 0:e.ownerReference.valueForSerialization??"",n.property=e.value.name,n})(e.property),t.sourceView=Qm(e.from),t.targetView=Qm(e.to),t},tg=e=>{const t=new qp,n=new Wp;return n.points=e.pathForSerialization,t.line=n,t.sourceView=Qm(e.from),t.targetView=Qm(e.to),t},ng=e=>{const t=new Up;return t.class=e.class.valueForSerialization??"",t.hideProperties=e.hideProperties,t.hideStereotypes=e.hideStereotypes,t.hideTaggedValues=e.hideTaggedValues,t.id=e.id,t.position=((e,t)=>{const n=new $p;return n.x=e,n.y=t,n})(e.position.x,e.position.y),t.rectangle=((e,t)=>{const n=new Yp;return n.height=e,n.width=t,n})(e.rectangle.height,e.rectangle.width),t};class ig{x;y;constructor(e,t){this.x=e,this.y=t}get hashCode(){return ko([Fp.POINT,this.x.toString(),this.y.toString()])}}class sg{width;height;constructor(e,t){this.width=e,this.height=t}get hashCode(){return ko([Fp.RECTANGLE,this.width.toString(),this.height.toString()])}}class og{_dummyObservable={};position;rectangle;constructor(e,t){this.position=e,this.rectangle=t}center=()=>new ig(this.position.x+this.rectangle.width/2,this.position.y+this.rectangle.height/2);contains(e,t){const n=this.normalizeBox(this);return e>n.position.x&&e<n.position.x+n.rectangle.width&&t>n.position.y&&t<n.position.y+n.rectangle.height}normalizeBox(e){let t=e;return e.rectangle.width<0&&(t=new og(new ig(e.position.x+e.rectangle.width,e.position.y),new sg(-e.rectangle.width,e.rectangle.height))),e.rectangle.height<0&&(t=new og(new ig(e.position.x,e.position.y+e.rectangle.height),new sg(e.rectangle.width,-e.rectangle.height))),t}get hashCode(){return this._dummyObservable,ko([Fp.POSITIONED_RECTANGLE,this.position,this.rectangle])}}class rg extends og{_OWNER;class;id;hideProperties;hideTaggedValues;hideStereotypes;constructor(e,t,n){super(new ig(0,0),new sg(0,0)),this._OWNER=e,this.id=t,this.class=n}get hashCode(){return ko([Fp.CLASS_VIEW,super.hashCode,this.id,this.class.valueForSerialization??"",this.hideProperties?.toString()??"",this.hideTaggedValues?.toString()??"",this.hideStereotypes?.toString()??""])}}class ag{_offsetX;_offsetY;classView;constructor(e){this.classView=e}}class cg extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}}class lg extends cg{ownerReference;constructor(e){const t=Er.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new lg(e)}}class dg{_OWNER;from;to;path=[];constructor(e,t,n){this._OWNER=e,this.from=new ag(lg.create(t)),this.to=new ag(lg.create(n))}computeEdgeEndpoint(e,t=!0){const n=e.classView.value,i=e.classView.value.center(),s=i.x+(e._offsetX??0),o=i.y+(e._offsetY??0);return n.contains(s,o)?new ig(s,o):(t&&(e._offsetX=0,e._offsetY=0),new ig(i.x,i.y))}buildFullPath(e=!0){return[this.computeEdgeEndpoint(this.from,e),...this.path,this.computeEdgeEndpoint(this.to,e)]}static pruneUnnecessaryInsidePoints=(e,t,n)=>{z(Boolean(e.length),"Path requires at least 1 point");let i=0,s=e[i];for(;i<e.length-1&&t.contains(s.x,s.y);)i++,s=e[i];let o=e.length-1,r=e[o];for(;o>0&&n.contains(r.x,r.y);)o--,r=e[o];const a=e.slice(i-1,o+2);return a.length<2?[s,r]:a};get pathForSerialization(){return dg.pruneUnnecessaryInsidePoints(this.buildFullPath(),this.from.classView.value,this.to.classView.value)}get hashCode(){return ko([Fp.RELATIONSHIP_VIEW,this.from.classView.value.id,this.to.classView.value.id,ko(this.pathForSerialization)])}}class ug extends dg{property;constructor(e,t,n,i){super(e,n,i),this.property=t}get hashCode(){return ko([Fp.PROPERTY_HOLDER_VIEW,super.hashCode,this.property.pointerHashCode])}}class pg extends ug{get hashCode(){return ko([Fp.PROPERTY_VIEW,super.hashCode])}}class hg extends dg{get hashCode(){return ko([Fp.GENERALIZATION_VIEW,super.hashCode])}}class mg{x;y;constructor(e,t){this.x=e,this.y=t}static fromPoints(e,t){return new mg(t.x-e.x,t.y-e.y)}unit(){const e=Math.sqrt(this.x*this.x+this.y*this.y);return new mg(this.x/e,this.y/e)}normal(e){return new mg(e.y-this.y,-(e.x-this.x))}dotProduct(e){return this.x*e.x+this.y*e.y}}const gg=e=>{let t=0,n=0;for(;e.offsetParent;)t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent;return new ig(t,n)},fg=(e,t)=>e.classViews.find((e=>e.id===t)),_g=(e,t)=>{e.path=t},Eg=e=>{const t=e.buildFullPath(),n=dg.pruneUnnecessaryInsidePoints(t,e.from.classView.value,e.to.classView.value);if(n[0]!==t[0]){const t=e.from.classView.value.center();e.from._offsetX=V(n[0],"Diagram path expected to have at least 2 points").x-t.x,e.from._offsetY=V(n[0],"Diagram path expected to have at least 2 points").y-t.y}if(n[n.length-1]!==t[t.length-1]){const t=e.to.classView.value.center();e.to._offsetX=n[n.length-1].x-t.x,e.to._offsetY=n[n.length-1].y-t.y}const i=[];for(let e=0;e<n.length-2;e++){const t=mg.fromPoints(n[e+1],n[e]).unit(),s=mg.fromPoints(n[e+1],n[e+2]).unit(),o=t.dotProduct(s),r=180*Math.acos(o)/Math.PI;Math.abs(r-180)>5&&i.push(n[e+1])}_g(e,i)},Ng=(e,t)=>e.x*Math.cos(t)-e.y*Math.sin(t),bg=(e,t)=>e.x*Math.sin(t)+e.y*Math.cos(t),vg=e=>new ig(e.position.x+e.rectangle.width,e.position.y+e.rectangle.height),Tg=e=>{const t=vg(e);return new og(new ig(t.x-5,t.y-5),new sg(10,10))},Cg=(e,t)=>(t=e.normalizeBox(t),e.contains(t.position.x,t.position.y)||e.contains(t.position.x+t.rectangle.width,t.position.y)||e.contains(t.position.x,t.position.y+t.rectangle.height)||e.contains(t.position.x+t.rectangle.width,t.position.y+t.rectangle.height)),yg=e=>{const t=V(e.x,"Point 'x' coordinate is missing"),n=V(e.y,"Point 'y' coordinate is missing");return new ig(t,n)};class Sg extends $h{constructor(){super(vo.XO.gM,vo.rE)}V1_getExtraElementBuilders(){return[new Zm({elementClassName:"Diagram",_class:Hp,firstPass:(e,t)=>{U(e,Hp);const n=new Bp(e.name),i=qm(e.package,e.name);return t.currentSubGraph.setOwnElementInExtension(i,n,Bp),n},secondPass:(e,t)=>{U(e,Hp);const n=(i=qm(e.package,e.name),s=t.currentSubGraph,V(s.getOwnNullableExtensionElement(i,Bp),`Can't find diagram '${i}'`));var i,s;n.classViews=e.classViews.map((e=>((e,t,n)=>{Y(e.class,"Class view 'class' field is missing or empty"),Y(e.id,"Class view 'id' field is missing or empty"),j(e.rectangle,"Class view 'rectangle' field is missing"),j(e.position,"Class view 'position' field is missing");const i=new rg(n,e.id,t.resolveClass(e.class));return i.hideProperties=e.hideProperties,i.hideTaggedValues=e.hideTaggedValues,i.hideStereotypes=e.hideStereotypes,i.rectangle=(e=>{const t=V(e.width,"Rectangle 'width' is missing"),n=V(e.height,"Rectangle 'height' is missing");return new sg(t,n)})(e.rectangle),i.position=yg(e.position),i})(e,t,n))),n.propertyViews=e.propertyViews.map((e=>((e,t,n)=>{j(e.property,"Property view 'property' field is missing"),j(e.line,"Property view 'line' field is missing");const i=V(fg(n,V(e.sourceView)),"Property view 'sourceView' field is missing"),s=V(fg(n,V(e.targetView)),"Property view 'targetView' field is missing"),o=t.resolveOwnProperty(e.property),r=new pg(n,o,i,s);r.path=e.line.points.map((e=>yg(e)));try{Eg(r)}catch(e){M(e),t.logService.warn(u.create(e.message))}return r})(e,t,n))),n.generalizationViews=e.generalizationViews.map((e=>((e,t,n)=>{j(e.line,"Generalization view 'line' field is missing");const i=V(fg(t,V(e.sourceView)),"Generalization view 'sourceView' field is missing"),s=V(fg(t,V(e.targetView)),"Generalization view 'targetView' field is missing"),o=new hg(t,i,s);o.path=e.line.points.map((e=>yg(e)));try{Eg(o)}catch(e){M(e),n.logService.warn(u.create(e.message))}return o})(e,n,t)))}})]}V1_getExtraElementClassifierPathGetters(){return[e=>{if(e instanceof Hp)return"meta::pure::metamodel::diagram::Diagram"}]}V1_getExtraElementProtocolSerializers(){return[(e,t)=>{if(e instanceof Hp)return(0,ge.lK)(Uh,e)}]}V1_getExtraElementProtocolDeserializers(){return[(e,t)=>{if(e._type===Dh)return(0,ge.iu)(Uh,e)}]}V1_getExtraElementTransformers(){return[(e,t)=>{if(e instanceof Bp)return(e=>{const t=new Hp;return((e,t)=>{e.name=t.name,e.package=t.package?.path??""})(t,e),t.classViews=e.classViews.map(ng),t.generalizationViews=e.generalizationViews.map(tg),t.propertyViews=e.propertyViews.map(eg),t})(e)}]}}class Ag extends a{_$nominalTypeBrand;install(e){e.registerPureGraphPlugin(this)}}class Ig extends Ag{constructor(){super(vo.XO.QC,vo.rE)}getExtraPureGraphExtensionClasses(){return[Bp]}getExtraDeadReferencesCleaners(){return[e=>{e.getExtensionForElementClass(Bp).elements.forEach((t=>((e,t)=>{e.propertyViews.filter((e=>!(e.property.ownerReference.value instanceof rr?Am(e.property.ownerReference.value):e.property.ownerReference.value.properties).map((e=>e.name)).includes(e.property.value.name))).forEach((t=>O(e.propertyViews,t))),e.classViews.filter((e=>!t.getNullableClass(e.class.value.path))).forEach((t=>O(e.classViews,t))),e.generalizationViews.filter((e=>{const n=e.from.classView.value.class.value,i=e.to.classView.value.class.value;return!t.getNullableClass(n.path)||!t.getNullableClass(i.path)||0===n.generalizations.filter((e=>e.value.rawType===i)).length})).forEach((t=>O(e.generalizationViews,t)))})(t,e)))}]}}class xg extends l{constructor(){super(vo.XO.rj,vo.rE,[new Ig,new jp,new Sg])}}var wg,Og=n(6839),Rg=n(8684);class kg{historyAPI;_isNavigationBlocked=!1;_forceBypassNavigationBlocking=!1;_blockCheckers=[];_beforeUnloadListener=e=>{this._forceBypassNavigationBlocking||this._blockCheckers.some((e=>e()))&&(e.returnValue="")};onBlock;onNativePlatformNavigationBlock;constructor(e){(0,ke.Gn)(this,{_isNavigationBlocked:ke.sH,isNavigationBlocked:ke.EW,blockNavigation:ke.XI,unblockNavigation:ke.XI}),this.historyAPI=e}get window(){return V(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=((e,t=!1)=>t?ee.A.parseUrl(e).query:ee.A.parse(e))((n=this.getCurrentAddress(),(0,te.J)(n)),!0);var n;return Object.keys(t).forEach((n=>{e[n]=((e,t)=>{const n=t[e];return n?decodeURIComponent(n):void 0})(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 i,s;delete n[e],this.updateCurrentLocation((i=this.getCurrentLocation(),s=(e=>{const t={};return Object.entries(e).forEach((([e,n])=>{n&&(t[e]=n.toString())})),ee.A.stringify(t)})(n),s?`${i}?${s}`:i)),this.updateCurrentZone(t)}}class Pg{applicationStore;constructor(e){this.applicationStore=e}async initialize(){}}!function(e){e.INITIAL_COLOR_THEME="initialColorTheme"}(wg||(wg={}));class Lg extends Pg{navigator;constructor(e,t){super(e),this.navigator=new kg(t.historyAPI)}getNavigator(){return this.navigator}async initialize(){const e=this.applicationStore.navigationService.navigator.getCurrentLocationParameterValue(wg.INITIAL_COLOR_THEME);e&&(this.applicationStore.layoutService.setColorTheme(e),this.applicationStore.navigationService.navigator.INTERNAL__internalizeTransientParameter(wg.INITIAL_COLOR_THEME))}}const Mg=(0,Gt.createContext)(void 0),Dg="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/BrowserEnvironmentProvider.tsx",Fg=({children:e})=>{const t=$t(),n=(0,Og.W6)(),i=(0,It.iz)((()=>new Lg(t,{historyAPI:n})));return(0,Et.jsxDEV)(Mg.Provider,{value:i,children:e},void 0,!1,{fileName:Dg,lineNumber:34,columnNumber:11},void 0)},Bg=({children:e,baseUrl:t})=>(0,Et.jsxDEV)(Rg.Kd,{basename:t,children:(0,Et.jsxDEV)(Fg,{children:e},void 0,!1,{fileName:Dg,lineNumber:46,columnNumber:5},void 0)},void 0,!1,{fileName:Dg,lineNumber:44,columnNumber:34},void 0),jg="/welcome.pure",Vg="/",Hg="::";var Gg,Ug;!function(e){e.CONCEPT_EXPLORER="CONCEPT_EXPLORER",e.FILE_EXPLORER="FILE_EXPLORER"}(Gg||(Gg={})),function(e){e.TERMINAL="TERMINAL",e.SEARCH="SEARCH",e.REFERENCES="REFERNECES",e.TEST_RUNNER="TEST_RUNNER",e.CODE_FIX_SUGGESTION="CODE_FIX_SUGGESTION"}(Ug||(Ug={}));var $g,Yg=n(7504);!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"}($g||($g={}));const Wg=(e,t,n,i)=>{const s=(e=>{const t=[];e.tokenColors.forEach((e=>{if(!e.settings)return;let n=[];n=K(e.scope)?e.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(",").map((e=>e.trim())):Array.isArray(e.scope)?e.scope:[""];const i={};e.settings.foreground&&K(e.settings.foreground)&&(i.foreground=e.settings.foreground),e.settings.background&&K(e.settings.background)&&(i.background=e.settings.background),e.settings.fontStyle&&K(e.settings.fontStyle)&&(i.fontStyle=e.settings.fontStyle),n.forEach((e=>{if(B(e)||!Object.keys(i).length)return;const n={...i,token:e};t.push(n)}))}));const n={};return Object.entries(e.colors).forEach((([e,t])=>{var i;Array.isArray(t)?t.length&&(n[e]=(z(0<(i=t).length,"Index out of bound: 0"),V(i[0],void 0))):n[e]=t})),{base:"vs-dark",inherit:!0,rules:t,colors:n}})(e);return{...s,base:t,colors:{...s.colors,...n},rules:[...s.rules,...i]}},zg=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}'),Kg=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"}}]}'),Xg=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"}}]}'),qg=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"}}'),Jg=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"}}'),Zg=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"}}'),Qg=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"}}'),ef=[{token:$g.IDENTIFIER,foreground:"dcdcaa"},{token:$g.NUMBER,foreground:"b5cea8"},{token:$g.DATE,foreground:"b5cea8"},{token:$g.COLOR,foreground:"b5cea8"},{token:$g.PACKAGE,foreground:"808080"},{token:$g.PARSER,foreground:"c586c0"},{token:$g.LANGUAGE_STRUCT,foreground:"c586c0"},{token:$g.MULTIPLICITY,foreground:"2d796b"},{token:$g.GENERICS,foreground:"2d796b"},{token:$g.PROPERTY,foreground:"9cdcfe"},{token:$g.PARAMETER,foreground:"9cdcfe"},{token:$g.VARIABLE,foreground:"4fc1ff"},{token:$g.TYPE,foreground:"3dc9b0"},{token:`${$g.STRING}.escape`,foreground:"d7ba7d"}];var tf;!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"}(tf||(tf={}));const nf={base:"vs-dark",inherit:!0,colors:{},rules:[...ef,{token:"string.sql",foreground:"ce9178"},{token:"white.sql",foreground:"d4d4d4"},{token:"identifier.sql",foreground:"d4d4d4"},{token:"operator.sql",foreground:"d4d4d4"}]},sf=Wg(zg,tf.BUILT_IN__VSCODE_DARK,{},[]),of=Wg(Kg,tf.BUILT_IN__VSCODE_DARK,{},[]),rf=Wg(Xg,tf.BUILT_IN__VSCODE_DARK,{},[]),af=Wg(qg,tf.BUILT_IN__VSCODE_DARK,{},[]),cf=Wg(Jg,tf.BUILT_IN__VSCODE_DARK,{},[]),lf=Wg(Zg,tf.BUILT_IN__VSCODE_DARK,{},[]),df=Wg(Qg,tf.BUILT_IN__VSCODE_DARK,{},[]),uf=(e,t)=>{e.hasTextFocus()||e.focus(),e.revealPositionInCenter(t,0),e.setPosition(t)},pf="dummy_problem_marker_owner";var hf,mf;!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"}(hf||(hf={})),function(e){e.PACKAGE="Package",e.PROFILE="Profile",e.TAG="Tag",e.STEREOTYPE="Stereotype",e.CLASS="Class",e.ASSOCIATION="Association",e.PROPERTY="Property",e.QUALIFIED_PROPERTY="QualifiedProperty",e.ENUMERATION="Enumeration",e.ENUM_VALUE="Enum",e.MEASURE="Measure",e.UNIT="Unit",e.FUNCTION="ConcreteFunctionDefinition",e.NATIVE_FUNCTION="NativeFunction",e.DIAGRAM="Diagram",e.DATABASE="Database",e.MAPPING="Mapping"}(mf||(mf={}));class gf{pureId;pureType;pureName;get id(){return this.pureId}}class ff extends gf{deprecated}(0,ge.PL)(ff,{pureId:(0,ge.MY)(),pureType:(0,ge.MY)(),deprecated:(0,ge.MY)()});class _f extends gf{RO;classPath;file;line;column;get id(){return`${this.classPath}.${this.pureId}`}}(0,ge.PL)(_f,{pureId:(0,ge.MY)(),pureName:(0,ge.MY)(),pureType:(0,ge.MY)(),RO:(0,ge.MY)(),classPath:(0,ge.MY)(),file:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)()});class Ef extends gf{RO;notpublic;user;file;line;column}(0,ge.PL)(Ef,{pureId:(0,ge.MY)(),pureName:(0,ge.lq)((0,ge.MY)()),pureType:(0,ge.MY)(),RO:(0,ge.MY)(),notpublic:(0,ge.MY)(),user:(0,ge.MY)(),file:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)()});class Nf{li_attr;id;text;icon;children;state;getNodeAttribute(e){return $(this.li_attr,e,`Expected concept node attribute to be of type '${e.name}'`)}}(0,ge.PL)(Nf,{li_attr:(0,ge.Ie)((()=>ge._Z),(e=>e.classPath?(0,ge.iu)(_f,e):e.file?(0,ge.iu)(Ef,e):(0,ge.iu)(ff,e))),id:(0,ge.MY)(),text:(0,ge.MY)(),icon:(0,ge.MY)(),children:(0,ge.MY)(),state:(0,ge.MY)()});const bf=e=>e.startsWith("/")?e.substring(1,e.length):e;class vf{content;RO;constructor(){(0,ke.Gn)(this,{content:ke.sH,hashCode:ke.EW,setContent:ke.XI})}setContent(e){this.content=e}get hashCode(){return Ro(this.content)}}(0,ge.PL)(vf,{content:(0,ge.MY)(),RO:(0,ge.MY)()});class Tf{file;line;column;constructor(e,t,n){this.file=e,this.line=t,this.column=n}}class Cf extends Tf{error;constructor(e,t,n,i){super(e,t??1,n??1),this.error=i}}var yf;!function(e){e.ENUM="meta::pure::ide::findusages::findUsagesForEnum_String_1__String_1__SourceInformation_MANY_",e.PROPERTY="meta::pure::ide::findusages::findUsagesForProperty_String_1__String_1__SourceInformation_MANY_",e.ELEMENT="meta::pure::ide::findusages::findUsagesForPath_String_1__SourceInformation_MANY_",e.MULTIPLE_PATHS="meta::pure::ide::findusages::findUsagesForMultiplePaths_String_1__Pair_MANY_"}(yf||(yf={}));const Sf=e=>`'${e.path}'${e.owner?` of '${e.owner}'`:""}`;class Af{source;line;column;startLine;startColumn;endLine;endColumn}(0,ge.PL)(Af,{source:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),startLine:(0,ge.MY)(),startColumn:(0,ge.MY)(),endLine:(0,ge.MY)(),endColumn:(0,ge.MY)()});class If{first;second}(0,ge.PL)(If,{first:(0,ge.MY)(),second:(0,ge.p_)((0,ge.Ik)(Af))});class xf{uuid=(0,o.A)();get description(){}match(e){return this===e}onOpen(){}onClose(){}}class wf{currentTab;tabs=[];constructor(){(0,ke.Gn)(this,{currentTab:ke.sH,tabs:ke.sH,setCurrentTab:ke.XI,closeTab:ke.XI,closeAllTabs:ke.XI,closeAllOtherTabs:ke.XI,openTab:ke.XI,swapTabs:ke.XI})}setCurrentTab(e){this.currentTab=e}closeAllOtherTabs(e){j(this.tabs.find((t=>t===e)),"Specified tab should be currently opened"),this.setCurrentTab(e),this.tabs=[e]}closeAllTabs(){this.setCurrentTab(void 0),this.tabs=[]}swapTabs(e,t){w(this.tabs,e,t)}openTab(e){if(!this.tabs.find((t=>t.match(e))))if(this.currentTab){const t=this.tabs.findIndex((e=>e===this.currentTab));this.tabs.splice(t+1,0,e)}else this.tabs.push(e);this.setCurrentTab(e),e.onOpen()}closeTab(e){const t=this.tabs.findIndex((t=>t.match(e)));if(z(-1!==t,"Can't close a tab which is not opened"),this.tabs.splice(t,1),this.currentTab===e)if(this.tabs.length){const e=t-1;this.setCurrentTab(e>=0?this.tabs[e]:this.tabs[0])}else this.setCurrentTab(void 0);e.onClose()}}class Of extends xf{ideStore;constructor(e){super(),this.ideStore=e}}class Rf extends wf{ideStore;constructor(e){super(),this.ideStore=e}get dndType(){return"editor.tab-manager.tab"}closeTab(e){e instanceof Hf&&e.hasChanged?this.ideStore.applicationStore.alertService.setActionAlertInfo({message:"Unsaved changes will be lost if you continue. Do you still want to proceed?",prompt:"To save changes, abort and compile",type:jt.CAUTION,actions:[{label:"Proceed",type:Vt.PROCEED_WITH_CAUTION,handler:()=>super.closeTab(e)},{label:"Save changes",type:Vt.PROCEED_WITH_CAUTION,handler:()=>{(0,ke.gP)(this.ideStore.executeGo()).then((()=>{super.closeTab(e)})).catch(this.ideStore.applicationStore.alertUnhandledError)}},{label:"Abort",type:Vt.PROCEED,default:!0}]}):super.closeTab(e)}}var kf;!function(e){e.SEARCH_FILE="editor.search.file",e.SEARCH_TEXT="editor.search.text",e.GO_TO_FILE="editor.go-to-file",e.TOGGLE_TERMINAL_PANEL="editor.toggle-terminal-panel",e.EXECUTE="editor.execute",e.FULL_RECOMPILE="editor.full-compile",e.FULL_RECOMPILE_WITH_FULL_INIT="editor.full-compile.with-init",e.RUN_ALL_TESTS="editor.run-all-tests",e.RUN_RELAVANT_TESTS="editor.run-relavant-tests"}(kf||(kf={}));const Pf={[kf.SEARCH_FILE]:{title:"Search for file",defaultKeyboardShortcut:"Control+Shift+KeyN",additionalKeyboardShortcuts:["Control+KeyP","Meta+KeyP"]},[kf.SEARCH_TEXT]:{title:"Search text",defaultKeyboardShortcut:"Control+Shift+KeyF",additionalKeyboardShortcuts:["Meta+Shift+KeyF"]},[kf.GO_TO_FILE]:{title:"Go to file",defaultKeyboardShortcut:"Control+F1"},[kf.TOGGLE_TERMINAL_PANEL]:{title:"Toggle terminal",defaultKeyboardShortcut:"Control+Backquote"},[kf.EXECUTE]:{title:"Execute",defaultKeyboardShortcut:"F9"},[kf.FULL_RECOMPILE]:{title:"Run full re-compilation",defaultKeyboardShortcut:"F11"},[kf.FULL_RECOMPILE_WITH_FULL_INIT]:{title:"Run full re-compilation",defaultKeyboardShortcut:"Shift+F11"},[kf.RUN_ALL_TESTS]:{title:"Run all tests",defaultKeyboardShortcut:"F10"},[kf.RUN_RELAVANT_TESTS]:{title:"Run relavant tests",defaultKeyboardShortcut:"Shift+F10"}};var Lf;!function(e){e.RECENTER="editor.diagram-editor.recenter",e.USE_ZOOM_TOOL="editor.diagram-editor.use-zoom-tool",e.USE_VIEW_TOOL="editor.diagram-editor.use-view-tool",e.USE_PAN_TOOL="editor.diagram-editor.use-pan-tool"}(Lf||(Lf={}));const Mf={[Lf.RECENTER]:{title:"Diagram Editor: Recenter",defaultKeyboardShortcut:"KeyR"},[Lf.USE_ZOOM_TOOL]:{title:"Diagram Editor: Use zoom tool",defaultKeyboardShortcut:"KeyZ"},[Lf.USE_VIEW_TOOL]:{title:"Diagram Editor: Use view tool",defaultKeyboardShortcut:"KeyV"},[Lf.USE_PAN_TOOL]:{title:"Diagram Editor: Use pan tool",defaultKeyboardShortcut:"KeyM"}};var Df;!function(e){e.TOGGLE_TEXT_WRAP="editor.file-editor.toggle-text-wrap",e.REVEAL_CONCEPT_IN_TREE="editor.file-editor.reveal-concept-in-tree",e.GO_TO_DEFINITION="editor.file-editor.go-to-definition",e.GO_BACK="editor.file-editor.go-back",e.FIND_USAGES="editor.file-editor.find-usage",e.RENAME_CONCEPT="editor.file-editor.rename-concept",e.GO_TO_LINE="editor.file-editor.go-to-line",e.DELETE_LINE="editor.file-editor.delete-line"}(Df||(Df={}));const Ff={[Df.TOGGLE_TEXT_WRAP]:{title:"Toggle Text-wrap (File)",defaultKeyboardShortcut:"Alt+KeyZ"},[Df.REVEAL_CONCEPT_IN_TREE]:{title:"Reveal Concept in Tree (File)",defaultKeyboardShortcut:"Control+Shift+KeyB"},[Df.GO_TO_DEFINITION]:{title:"Go to Definition (File)",defaultKeyboardShortcut:"Control+KeyB"},[Df.GO_BACK]:{title:"Go Back (File)",defaultKeyboardShortcut:"Control+Alt+KeyB"},[Df.FIND_USAGES]:{title:"Find Usages (File)",defaultKeyboardShortcut:"Alt+F7"},[Df.RENAME_CONCEPT]:{title:"Rename Concept (File)",defaultKeyboardShortcut:"F2"},[Df.GO_TO_LINE]:{title:"Go to Line (File)",defaultKeyboardShortcut:"Control+KeyG"},[Df.DELETE_LINE]:{title:"Delete Line (File)",defaultKeyboardShortcut:"Control+KeyD"}};var Bf;!function(e){e.GO="go",e.TEST="test",e.REMOVE="rm",e.MOVE="mv",e.NEW_DIRECTORY="mkdir",e.NEW_FILE="touch",e.OPEN_FILE="open",e.OPEN_DIRECTORY="cd",e.LIST_DIRECTORY="ls",e.WELCOME="welcome",e.ECHO="echo",e.CLEAR="clear",e.ANSI="ansi",e.HELP="help"}(Bf||(Bf={}));class jf{model;editor;_dummyCursorObservable={};language;viewState;forcedCursorPosition;wrapText=!1;constructor(e){(0,ke.Gn)(this,{viewState:ke.sH.ref,editor:ke.sH.ref,_dummyCursorObservable:ke.sH.ref,forcedCursorPosition:ke.sH.ref,wrapText:ke.sH,cursorObserver:ke.EW,notifyCursorObserver:ke.XI,setViewState:ke.XI,setEditor:ke.XI,setForcedCursorPosition:ke.XI,setWrapText:ke.XI}),this.language=(e=>{switch(A(e.split("."))){case"pure":return hf.PURE;case"java":return hf.JAVA;case"md":return hf.MARKDOWN;case"sql":return hf.SQL;case"json":return hf.JSON;case"xml":return hf.XML;case"yml":case"yaml":return hf.YAML;case"graphql":return hf.GRAPHQL;default:return hf.TEXT}})(e.filePath),this.model=Yg.editor.createModel(e.uuid,this.language),this.model.setValue(e.file.content)}notifyCursorObserver(){this._dummyCursorObservable={}}get cursorObserver(){return this._dummyCursorObservable,this.editor?{position:this.editor.getPosition()??void 0,selection:this.editor.getSelection()??void 0}:void 0}setViewState(e){this.viewState=e}setEditor(e){this.editor=e}setForcedCursorPosition(e){this.forcedCursorPosition=e}setWrapText(e){const t=this.wrapText;this.wrapText=e,t!==e&&this.editor&&(this.editor.updateOptions({wordWrap:e?"on":"off"}),this.editor.focus())}}class Vf{fileEditorState;concept;coordinate;constructor(e,t,n){this.fileEditorState=e,this.concept=t,this.coordinate=n}}class Hf extends Of{filePath;textEditorState;_currentHashCode;file;renameConceptState;showGoToLinePrompt=!1;constructor(e,t,n){super(e),(0,ke.Gn)(this,{_currentHashCode:ke.sH,file:ke.sH,renameConceptState:ke.sH,showGoToLinePrompt:ke.sH,hasChanged:ke.EW,resetChangeDetection:ke.XI,setFile:ke.XI,setShowGoToLinePrompt:ke.XI,setConceptToRenameState:ke.L3}),this.file=t,this._currentHashCode=t.hashCode,this.filePath=n,this.textEditorState=new jf(this)}get label(){return bf(this.filePath)}get description(){return`File: ${bf(this.filePath)}${this.file.RO?" (readonly)":""}`}get fileName(){return V(A(this.filePath.split("/")))}match(e){return e instanceof Hf&&this.filePath===e.filePath}onClose(){this.textEditorState.model.dispose()}get hasChanged(){return this._currentHashCode!==this.file.hashCode}resetChangeDetection(){this._currentHashCode=this.file.hashCode}setFile(e){this.file=e,this.textEditorState.model.setValue(e.content),this.resetChangeDetection()}setShowGoToLinePrompt(e){this.showGoToLinePrompt=e}*setConceptToRenameState(e){if(!e)return void(this.renameConceptState=void 0);if(this.hasChanged)return void this.ideStore.applicationStore.notificationService.notifyWarning("Can't rename concept: source is not compiled");const t=yield this.ideStore.getConceptInfo(e);this.renameConceptState=t?new Vf(this,t,e):void 0}showError(e){var t,n,i;t=this.textEditorState.model,n=[{message:e.error.message,startLineNumber:e.line,startColumn:e.column,endLineNumber:e.line,endColumn:e.column}],i=this.uuid,Yg.editor.setModelMarkers(t,i??pf,n.map((e=>({startLineNumber:e.startLineNumber,startColumn:e.startColumn,endLineNumber:e.endLineNumber,endColumn:e.endColumn+1,message:""===e.message?"(no error message)":e.message,severity:Yg.MarkerSeverity.Error}))))}clearError(){var e;e=this.uuid,Yg.editor.removeAllMarkers(e??pf)}registerCommands(){this.textEditorState.language===hf.PURE&&(this.ideStore.applicationStore.commandService.registerCommand({key:Df.GO_TO_DEFINITION,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&(0,ke.gP)(this.ideStore.executeNavigation(new Tf(this.filePath,e.lineNumber,e.column))).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.GO_BACK,action:()=>{(0,ke.gP)(this.ideStore.navigateBack()).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.REVEAL_CONCEPT_IN_TREE,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&this.ideStore.revealConceptInTree(new Tf(this.filePath,e.lineNumber,e.column)).catch(this.ideStore.applicationStore.alertUnhandledError)}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.FIND_USAGES,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();if(e){const t=new Tf(this.filePath,e.lineNumber,e.column);this.findConceptUsages(t)}}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.RENAME_CONCEPT,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();if(e){if(!this.textEditorState.model.getWordAtPosition(e))return;const t=new Tf(this.filePath,e.lineNumber,e.column);(0,ke.gP)(this.setConceptToRenameState(t)).catch(this.ideStore.applicationStore.alertUnhandledError)}}})),this.ideStore.applicationStore.commandService.registerCommand({key:Df.DELETE_LINE,trigger:()=>this.ideStore.tabManagerState.currentTab===this&&Boolean(this.textEditorState.editor?.hasTextFocus()),action:()=>{const e=this.textEditorState.editor?.getPosition();e&&this.textEditorState.model.pushEditOperations([],[{range:{startLineNumber:e.lineNumber,startColumn:1,endLineNumber:e.lineNumber+1,endColumn:1},text:"",forceMoveMarkers:!0}],(()=>null))}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.GO_TO_LINE,trigger:()=>this.ideStore.tabManagerState.currentTab===this,action:()=>{this.setShowGoToLinePrompt(!0)}}),this.ideStore.applicationStore.commandService.registerCommand({key:Df.TOGGLE_TEXT_WRAP,trigger:()=>this.ideStore.tabManagerState.currentTab===this,action:()=>{this.textEditorState.setWrapText(!this.textEditorState.wrapText)}})}findConceptUsages(e){const t=()=>{(0,ke.gP)(this.ideStore.findUsagesFromCoordinate(e)).catch(this.ideStore.applicationStore.alertUnhandledError)};this.hasChanged?this.ideStore.applicationStore.alertService.setActionAlertInfo({message:"Source is not compiled, finding concept usages might be inaccurate. Do you want compile to proceed?",type:jt.CAUTION,actions:[{label:"Compile and Proceed",type:Vt.PROCEED_WITH_CAUTION,handler:()=>{(0,ke.gP)(this.ideStore.executeGo()).then(t).catch(this.ideStore.applicationStore.alertUnhandledError)}},{label:"Abort",type:Vt.PROCEED,default:!0}]}):t()}async renameConcept(e){if(!this.renameConceptState)return;const t=this.renameConceptState.concept;try{this.ideStore.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",showLoading:!0});const n=await this.ideStore.findConceptUsages(t.pureType===mf.ENUM_VALUE?yf.ENUM:t.pureType===mf.PROPERTY||t.pureType===mf.QUALIFIED_PROPERTY?yf.PROPERTY:yf.ELEMENT,(t.owner?[`'${t.owner}'`]:[]).concat(`'${t.path}'`));await(0,ke.gP)(this.ideStore.renameConcept(t.pureName,e,t.pureType,n)),this.textEditorState.setForcedCursorPosition({lineNumber:this.renameConceptState.coordinate.line,column:this.renameConceptState.coordinate.column})}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyError(e)}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}}deregisterCommands(){this.textEditorState.language===hf.PURE&&[Df.GO_TO_DEFINITION,Df.GO_BACK,Df.REVEAL_CONCEPT_IN_TREE,Df.FIND_USAGES,Df.RENAME_CONCEPT].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e))),[Df.GO_TO_LINE,Df.TOGGLE_TEXT_WRAP].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e)))}}class Gf{ideStore;treeData;selectedNode;loadInitialDataState=Pe.create();refreshDataState=Pe.create();constructor(e){(0,ke.Gn)(this,{treeData:ke.sH.ref,loadInitialDataState:ke.sH,refreshDataState:ke.sH,initialize:ke.L3,expandNode:ke.L3,openNode:ke.L3,refreshTreeData:ke.L3,setTreeData:ke.XI,setSelectedNode:ke.XI}),this.ideStore=e}getTreeData(){return V(this.treeData,"Tree data has not been initialized")}*initialize(){if(this.loadInitialDataState.isInProgress)this.ideStore.applicationStore.notificationService.notifyWarning("Tree state initialization is in progress");else{this.loadInitialDataState.inProgress();try{this.treeData=this.buildTreeData(yield this.getRootNodes()),this.loadInitialDataState.pass()}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyError(e),this.loadInitialDataState.fail()}}}setSelectedNode(e){e!==this.selectedNode&&(this.selectedNode&&(this.selectedNode.isSelected=!1),e&&(e.isSelected=!0),this.selectedNode=e,this.refreshTree())}setTreeData(e){this.treeData=e}refreshTree(){this.setTreeData({...V(this.treeData)})}*expandNode(e){if(!e.isLoading)if(this.getTreeData().nodes.has(e.id)&&e.childrenIds)e.isLoading=!1,e.isOpen=!0,this.refreshTree();else{e.isLoading=!0;try{const t=yield this.getChildNodes(e);this.processChildNodes(e,t),e.isOpen=!0,this.refreshTree()}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyError(e)}finally{e.isLoading=!1}}}*refreshTreeData(){if(!this.treeData)return;const e=new Set(Array.from(this.getTreeData().nodes.values()).filter((e=>e.isOpen)).map((e=>e.id))),t=this.selectedNode?.id;this.refreshDataState.inProgress();try{this.treeData=this.buildTreeData(yield this.getRootNodes())}catch(e){return M(e),this.ideStore.applicationStore.notificationService.notifyError(e),void this.refreshDataState.fail()}const n=this.getTreeData().rootIds.map((e=>V(this.getTreeData().nodes.get(e)))).filter((t=>e.has(t.id)));yield this.refreshOpenNodes(n,e),t&&this.getTreeData().nodes.has(t)&&this.setSelectedNode(V(this.getTreeData().nodes.get(t)))}async refreshOpenNodes(e,t){return await Promise.all(e.map((e=>(t.delete(e.id),(0,ke.gP)(this.expandNode(e)).catch((()=>{})))))),(e=e.flatMap((e=>e.childrenIds??[])).map((e=>V(this.getTreeData().nodes.get(e)))).filter((e=>t.has(e.id)))).length?this.refreshOpenNodes(e,t):Promise.resolve()}}class Uf{id;path;RO}class $f extends Uf{file;statusType}(0,ge.PL)($f,{id:(0,ge.MY)(),path:(0,ge.MY)(),file:(0,ge.MY)(),statusType:(0,ge.MY)(),RO:(0,ge.MY)()});class Yf extends Uf{repo}(0,ge.PL)(Yf,{id:(0,ge.MY)(),path:(0,ge.MY)(),repo:(0,ge.MY)(),RO:(0,ge.MY)()});class Wf{li_attr;text;icon;children;state;get isFolderNode(){return this.li_attr instanceof Yf}get isFileNode(){return this.li_attr instanceof $f}get isRepoNode(){return this.li_attr instanceof Yf&&Boolean(this.li_attr.repo)}getNodeAttribute(e){return $(this.li_attr,e,`Expected directory node attribute to be of type '${e.name}'`)}}(0,ge.PL)(Wf,{li_attr:(0,ge.Ie)((()=>ge._Z),(e=>e.file?(0,ge.iu)($f,e):(0,ge.iu)(Yf,e))),text:(0,ge.MY)(),icon:(0,ge.MY)(),children:(0,ge.MY)(),state:(0,ge.MY)()});const zf=e=>{const t=e.trim(),n=t.lastIndexOf("/");if(!(n<=0))return t.substring(0,n)},Kf=e=>`file_${e}`;class Xf extends Gf{nodeForCreateNewFile;nodeForCreateNewDirectory;nodeForRenameFile;constructor(e){super(e),(0,ke.Gn)(this,{nodeForCreateNewFile:ke.sH,nodeForCreateNewDirectory:ke.sH,nodeForRenameFile:ke.sH,setNodeForCreateNewFile:ke.XI,setNodeForCreateNewDirectory:ke.XI,setNodeForRenameFile:ke.XI,revealPath:ke.L3})}setNodeForCreateNewFile=e=>{z(!e||e.data.isFolderNode,"Node selected for creating a new file from must be a directory"),this.nodeForCreateNewFile=e};setNodeForCreateNewDirectory=e=>{z(!e||e.data.isFolderNode,"Node selected for creating a new directory from must be a directory"),this.nodeForCreateNewDirectory=e};setNodeForRenameFile=e=>{z(!e||e.data.isFileNode,"Node selected for renaming must be a file"),this.nodeForRenameFile=e};async getRootNodes(){return(await this.ideStore.client.getDirectoryChildren()).map((e=>(0,ge.iu)(Wf,e)))}buildTreeData(e){const t=[],n=new Map;return e.forEach((e=>{const i=e.li_attr.id;t.push(i),n.set(i,{data:e,id:i,label:e.text,isLoading:!1})})),{rootIds:t,nodes:n}}async getChildNodes(e){return(await this.ideStore.client.getDirectoryChildren(e.data.li_attr.path)).map((e=>(0,ge.iu)(Wf,e)))}processChildNodes(e,t){const n=this.getTreeData(),i=[];t.forEach((e=>{const t=e.li_attr.id;i.push(t),n.nodes.set(t,{data:e,id:t,label:e.text,isLoading:!1})})),e.childrenIds=i}*openNode(e){e.data.isFileNode&&(yield(0,ke.gP)(this.ideStore.loadFile(e.data.li_attr.path)))}*revealPath(e,t){t?.forceOpenExplorerPanel&&this.ideStore.setActiveActivity(Gg.FILE_EXPLORER,{keepShowingIfMatchedCurrent:!0});const n=[];let i=e;for(;i;)n.unshift(i),i=zf(i);for(const e of n){const n=V(this.getTreeData().nodes.get(Kf(e)),`Can't find node with path '${e}'`);if(n.data.isFolderNode)yield(0,ke.gP)(this.expandNode(n));else{if(t?.directoryOnly)throw new Error("Can't reveal non-directory path");yield(0,ke.gP)(this.ideStore.loadFile(e,t?.coordinate))}}this.setSelectedNode(V(this.getTreeData().nodes.get(Kf(e)),`Can't find node with path '${e}'`))}}const qf=e=>{const t=e.trim(),n=t.lastIndexOf(Po);if(!(n<=0))return t.substring(0,n)};class Jf extends Gf{loadConceptActivity=Pe.create();statusText;nodeForRenameConcept;nodeForMoveElement;constructor(e){super(e),(0,ke.Gn)(this,{statusText:ke.sH,nodeForRenameConcept:ke.sH,nodeForMoveElement:ke.sH,setStatusText:ke.XI,setNodeForRenameConcept:ke.XI,setNodeForMoveElement:ke.XI,pullConceptsActivity:ke.XI,pollConceptsActivity:ke.L3,revealConcept:ke.L3})}setStatusText(e){this.statusText=e}setNodeForRenameConcept(e){this.nodeForRenameConcept=e}setNodeForMoveElement(e){this.nodeForMoveElement=e}async getRootNodes(){return await(0,ke.gP)(this.pollConceptsActivity()),(await this.ideStore.client.getConceptChildren()).map((e=>(0,ge.iu)(Nf,e)))}buildTreeData(e){const t=[],n=new Map;return e.forEach((e=>{const i=e.li_attr.id;t.push(i),n.set(i,{data:e,id:i,label:e.text,isLoading:!1})})),{rootIds:t,nodes:n}}async getChildNodes(e){return(await this.ideStore.client.getConceptChildren(e.data.li_attr.pureId)).map((e=>(0,ge.iu)(Nf,e)))}processChildNodes(e,t){const n=this.getTreeData(),i=[];t.forEach((t=>{const s=t.li_attr.id;i.push(s),n.nodes.set(s,{data:t,id:s,label:t.text,isLoading:!1,parent:e})})),e.childrenIds=i}*openNode(e){(e.data.li_attr instanceof _f||e.data.li_attr instanceof Ef)&&("Diagram"===e.data.li_attr.pureType?yield(0,ke.gP)(this.ideStore.loadDiagram(e.data.li_attr.file,e.data.li_attr.pureId,Number.parseInt(e.data.li_attr.line,10),Number.parseInt(e.data.li_attr.column,10))):yield(0,ke.gP)(this.ideStore.loadFile(e.data.li_attr.file,new Tf(e.data.li_attr.file,Number.parseInt(e.data.li_attr.line,10),Number.parseInt(e.data.li_attr.column,10)))))}*pollConceptsActivity(){if(this.loadConceptActivity.isInInitialState){this.loadConceptActivity.inProgress(),this.setStatusText("Loading concepts activity...");try{yield this.pullConceptsActivity()}finally{this.setStatusText(void 0),this.loadConceptActivity.reset()}}}async pullConceptsActivity(){const e=await this.ideStore.client.getConceptActivity();return e.text&&this.setStatusText(`Preparing - ${e.text}`),e.initializing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullConceptsActivity())}catch(e){t(e)}}),1e3))):Promise.resolve()}*revealConcept(e,t){t?.forceOpenExplorerPanel&&this.ideStore.setActiveActivity(Gg.CONCEPT_EXPLORER,{keepShowingIfMatchedCurrent:!0});const n=[];let i=e;for(;i;)n.unshift(i),i=qf(i);for(const e of n){const n=V(this.getTreeData().nodes.get(e),`Can't find node with path '${e}'`);if(n.data.li_attr instanceof ff)yield(0,ke.gP)(this.expandNode(n));else if(t?.packageOnly)throw new Error("Can't reveal non-package path")}this.setSelectedNode(V(this.getTreeData().nodes.get(e),`Can't find node with path '${e}'`))}async movePackageableElements(e,t){let n=[];try{n=(await this.ideStore.client.getPackageableElementsUsage(e.map((e=>e.pureId)))).map((e=>(0,ge.iu)(If,e)))}catch{return void this.ideStore.applicationStore.notificationService.notifyError("Can't find usage for child packageable elements")}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}const i=[];z(n.length===e.length,"Can't find matching usages for packageable elements");for(let s=0;s<n.length;++s){const o=V(e[s]);i.push({pureName:o.pureName,pureType:o.pureType,sourcePackage:V(gm(o.pureId)),destinationPackage:t,usages:V(n[s]).second})}await(0,ke.gP)(this.ideStore.movePackageableElements(i))}async renameConcept(e,t){const n=e.data.li_attr,i=n.pureName??n.pureId;let s=[];try{switch(this.ideStore.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",showLoading:!0}),n.pureType){case mf.PROPERTY:case mf.QUALIFIED_PROPERTY:U(n,_f),s=await this.ideStore.findConceptUsages(yf.PROPERTY,[`'${n.classPath}'`,`'${n.pureId}'`]);break;case mf.PACKAGE:{let e=[],n=[];try{n=await this.ideStore.client.getChildPackageableElements(i),e=(await this.ideStore.client.getPackageableElementsUsage(n.map((e=>e.pureId)))).map((e=>(0,ge.iu)(If,e)))}catch{return void this.ideStore.applicationStore.notificationService.notifyError("Can't find usage for child packageable elements")}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}const s=[];z(e.length===n.length,"Can't find matching usages for child packageable elements");const o=gm(i)?.concat(Po).concat(t)??t;for(let t=0;t<e.length;++t){const r=V(n[t]),a=V(gm(r.pureId)),c=o.concat(a.substring(a.indexOf(i)+i.length));s.push({pureName:r.pureName,pureType:r.pureType,sourcePackage:a,destinationPackage:c,usages:V(e[t]).second})}return void await(0,ke.gP)(this.ideStore.movePackageableElements(s))}default:s=await this.ideStore.findConceptUsages(yf.ELEMENT,[`'${n.pureId}'`])}}catch(e){return M(e),void this.ideStore.applicationStore.notificationService.notifyError(e)}finally{this.ideStore.applicationStore.alertService.setBlockingAlert(void 0)}await(0,ke.gP)(this.ideStore.renameConcept(i,t,n.pureType,s))}}class Zf{cached;datamarts;text}(0,ge.PL)(Zf,{cached:(0,ge.MY)(),datamarts:(0,ge.p_)((0,ge.MY)()),text:(0,ge.MY)()});class Qf extends Zf{error;sessionError}(0,ge.PL)(Qf,{cached:(0,ge.MY)(),datamarts:(0,ge.p_)((0,ge.MY)()),text:(0,ge.MY)(),error:(0,ge.MY)(),sessionError:(0,ge.MY)()});class e_ extends Qf{RO;line;column;source}(0,ge.PL)(e_,{cached:(0,ge.MY)(),datamarts:(0,ge.p_)((0,ge.MY)()),text:(0,ge.MY)(),RO:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),source:(0,ge.MY)(),error:(0,ge.MY)(),sessionError:(0,ge.MY)()});class t_{text;reinit}class n_ extends t_{cache;modifiedFiles=[]}(0,ge.PL)(n_,{text:(0,ge.MY)(),cache:(0,ge.MY)(),modifiedFiles:(0,ge.p_)((0,ge.MY)()),reinit:(0,ge.MY)()});class i_ extends t_{RO;line;column;source;error;sessionError}(0,ge.PL)(i_,{text:(0,ge.MY)(),RO:(0,ge.MY)(),line:(0,ge.lq)((0,ge.MY)()),column:(0,ge.lq)((0,ge.MY)()),source:(0,ge.lq)((0,ge.MY)()),error:(0,ge.MY)(),sessionError:(0,ge.MY)()});class s_{RO;line;column;source}(0,ge.PL)(s_,{RO:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),source:(0,ge.MY)()});class o_ extends t_{jumpTo}(0,ge.PL)(o_,{text:(0,ge.MY)(),jumpTo:(0,ge.Ik)(s_)});class r_{uuid=(0,o.A)();sourceID;line;column;foundName}(0,ge.PL)(r_,{sourceID:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),foundName:(0,ge.MY)()});class a_{uuid=(0,o.A)();sourceID;line;column;foundName;add;messageToBeModified;fileToBeModified;lineToBeModified;columnToBeModified}(0,ge.PL)(a_,{sourceID:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),foundName:(0,ge.MY)(),add:(0,ge.MY)(),messageToBeModified:(0,ge.MY)(),fileToBeModified:(0,ge.MY)(),lineToBeModified:(0,ge.MY)(),columnToBeModified:(0,ge.MY)()});class c_ extends i_{candidateName;candidatesWithPackageImported=[];candidatesWithPackageNotImported=[]}(0,ge.PL)(c_,{candidateName:(0,ge.MY)(),candidatesWithPackageImported:(0,ge.p_)((0,ge.Ik)(r_)),candidatesWithPackageNotImported:(0,ge.p_)((0,ge.Ik)(a_))});class l_ extends i_{candidateName;candidates=[]}(0,ge.PL)(l_,{candidateName:(0,ge.MY)(),candidates:(0,ge.p_)((0,ge.Ik)(a_))});class d_{id;parentId;file;line;column}(0,ge.PL)(d_,{id:(0,ge.MY)(),parentId:(0,ge.MY)(),file:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)()});class u_{children=[];li_attr;text;type}(0,ge.PL)(u_,{children:(0,ge.p_)((0,ge.Ik)(u_)),li_attr:(0,ge.Ik)(d_),text:(0,ge.MY)(),type:(0,ge.MY)()});class p_ extends t_{count;filterPaths=[];path;relevantTestsOnly;runnerId;tests=[]}(0,ge.PL)(p_,{count:(0,ge.MY)(),filterPaths:(0,ge.p_)((0,ge.MY)()),path:(0,ge.MY)(),relevantTestsOnly:(0,ge.MY)(),runnerId:(0,ge.MY)(),tests:(0,ge.p_)((0,ge.Ik)(u_))});class h_{uuid=(0,o.A)()}class m_{before;found;after}(0,ge.PL)(m_,{after:(0,ge.MY)(),before:(0,ge.MY)(),found:(0,ge.MY)()});class g_{uuid=(0,o.A)();sourceId;startLine;startColumn;endLine;endColumn;preview;constructor(e,t,n,i,s){this.sourceId=e,this.startLine=t,this.startColumn=n,this.endLine=i,this.endColumn=s}}(0,ge.PL)(g_,{sourceId:(0,ge.MY)(),startLine:(0,ge.MY)(),startColumn:(0,ge.MY)(),endLine:(0,ge.MY)(),endColumn:(0,ge.MY)(),preview:(0,ge.lq)((0,ge.Ik)(m_))});class f_ extends h_{sourceId;coordinates=[];isExpanded=!0;constructor(){super(),(0,ke.Gn)(this,{coordinates:ke.sH,isExpanded:ke.sH,setIsExpanded:ke.XI,dismissCoordinate:ke.XI})}setCoordinates(e){this.coordinates=e}setIsExpanded(e){this.isExpanded=e}dismissCoordinate(e){O(this.coordinates,e)}}var __,E_,N_;(0,ge.PL)(f_,{sourceId:(0,ge.MY)(),coordinates:(0,ge.p_)((0,ge.Ik)(g_))}),function(e){e.PASSED="Success",e.FAILED="AssertFail",e.ERROR="Error",e.NOT_RUN="notRan"}(__||(__={}));class b_{status;test}class v_ extends b_{test=[]}(0,ge.PL)(v_,{status:(0,ge.MY)(),test:(0,ge.p_)((0,ge.MY)())});class T_{text;RO;line;column;source;error}(0,ge.PL)(T_,{text:(0,ge.MY)(),RO:(0,ge.MY)(),line:(0,ge.MY)(),column:(0,ge.MY)(),source:(0,ge.MY)(),error:(0,ge.MY)()});class C_ extends b_{test=[];error}(0,ge.PL)(C_,{status:(0,ge.MY)(),test:(0,ge.p_)((0,ge.MY)()),error:(0,ge.Ik)(T_)});class y_{}class S_ extends y_{finished;tests=[]}(0,ge.PL)(S_,{finished:(0,ge.MY)(),tests:(0,ge.p_)((0,ge.Ie)((()=>ge._Z),(e=>e.error?(0,ge.iu)(C_,e):(0,ge.iu)(v_,e))))});class A_ extends y_{error;text}(0,ge.PL)(A_,{error:(0,ge.MY)(),text:(0,ge.MY)()}),function(e){e.PASSED="PASSED",e.FAILED="FAILED",e.NONE="NONE"}(E_||(E_={})),function(e){e.PASSED="PASSED",e.FAILED="FAILED",e.ERROR="ERROR",e.RUNNING="RUNNING"}(N_||(N_={}));class I_{_START_TIME;total;time=0;passedTests=new Set;failedTests=new Map;testsWithError=new Map;notRunTests;results=new Map;constructor(e){(0,ke.Gn)(this,{total:ke.sH,time:ke.sH,passedTests:ke.sH,failedTests:ke.sH,testsWithError:ke.sH,notRunTests:ke.sH,results:ke.sH,passed:ke.EW,error:ke.EW,failed:ke.EW,passedTestIds:ke.EW,failedTestIds:ke.EW,testWithErrorIds:ke.EW,notRunTestIds:ke.EW,numberOfTestsRun:ke.EW,runPercentage:ke.EW,suiteStatus:ke.EW,setTime:ke.XI,addResult:ke.XI}),this._START_TIME=Date.now(),this.total=e.size,this.notRunTests=new Set(e)}get passed(){return this.passedTests.size}get error(){return this.testsWithError.size}get failed(){return this.failedTests.size}get passedTestIds(){return Array.from(this.passedTests.values())}get failedTestIds(){return Array.from(this.failedTests.keys())}get testWithErrorIds(){return Array.from(this.testsWithError.keys())}get notRunTestIds(){return Array.from(this.notRunTests.values())}get numberOfTestsRun(){return this.passed+this.error+this.failed}get runPercentage(){return Math.floor(100*this.numberOfTestsRun/this.total)}get suiteStatus(){return this.failed+this.error?E_.FAILED:this.passed?E_.PASSED:E_.NONE}setTime(e){this.time=e}addResult(e,t){switch(this.results.set(t,e),this.notRunTests.delete(t),e.status){case __.PASSED:this.passedTests.add(t);break;case __.FAILED:this.failedTests.set(t,$(e,C_));break;case __.ERROR:this.testsWithError.set(t,$(e,C_));break;default:throw new L(`Unsupported test result status '${e.status}'`)}this.time=Date.now()-this._START_TIME}}class x_{ideStore;testExecutionResult;checkTestRunnerState=Pe.create();testResultInfo;allTests=new Map;selectedTestId;treeBuildingState=Pe.create();treeData;viewAsList=!1;constructor(e,t){(0,ke.Gn)(this,{testResultInfo:ke.sH.ref,allTests:ke.sH,selectedTestId:ke.sH,treeData:ke.sH.ref,viewAsList:ke.sH,setViewAsList:ke.XI,setSelectedTestId:ke.XI,setTestResultInfo:ke.XI,setTreeData:ke.XI,refreshTree:ke.XI,collapseTree:ke.XI,expandTree:ke.XI,buildTreeDataByLayer:ke.XI,pullTestRunnerResult:ke.XI,buildTestTreeData:ke.L3,pollTestRunnerResult:ke.L3,rerunTestSuite:ke.L3,cancelTestRun:ke.L3}),this.ideStore=e,this.testExecutionResult=t}getTreeData(){return V(this.treeData,"Test tree data has not been initialized")}setViewAsList(e){this.viewAsList=e}setSelectedTestId(e){this.selectedTestId=e}setTestResultInfo(e){this.testResultInfo=e}setTreeData(e){this.treeData=e}refreshTree(){this.setTreeData({...V(this.treeData)})}*buildTestTreeData(){if(this.treeBuildingState.isInProgress)return;this.treeBuildingState.inProgress();const e=this.testExecutionResult.tests.map((e=>{const t=e.li_attr.id;return e.type&&this.allTests.set(t,e),t})),t=new Map;this.treeData={rootIds:e,nodes:t},yield this.buildTreeDataByLayer(this.testExecutionResult.tests),this.treeBuildingState.reset()}collapseTree(){this.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),this.refreshTree()}expandTree(){this.getTreeData().nodes.forEach((e=>{e.isOpen=!0})),this.refreshTree()}async buildTreeDataByLayer(e){const t=this.getTreeData(),n=[];return await Promise.all(e.map((e=>new Promise(((i,s)=>setTimeout((()=>{const o=e.li_attr.id,r={id:o,label:e.text,data:e,childrenIds:e.type?void 0:[],isLoading:!1};if(e.type&&this.allTests.set(o,e),t.nodes.set(o,r),"Root"!==e.li_attr.parentId)try{const n=V(t.nodes.get((a=e,`test${this.testExecutionResult.runnerId}_${a.li_attr.parentId}`)),`Can't find parent test node with ID '${e.li_attr.parentId}'`);n.childrenIds?x(n.childrenIds,o):n.childrenIds=[o]}catch(e){return void s(e)}var a;n.push(...e.children),i()}),0)))))),n.length?this.buildTreeDataByLayer(n):Promise.resolve()}*pollTestRunnerResult(){if(this.checkTestRunnerState.isInInitialState){this.checkTestRunnerState.inProgress();try{z(this.allTests.size===this.testExecutionResult.count,`Number of tests scanned in tree (${this.allTests.size}) does not match the number of total reported tests (${this.testExecutionResult.count})`);const e=new I_(new Set(this.allTests.keys()));this.testResultInfo=e,yield this.pullTestRunnerResult(e)}finally{this.checkTestRunnerState.reset()}}}async pullTestRunnerResult(e){const t=(n=await this.ideStore.client.checkTestRunner(this.testExecutionResult.runnerId)).error?(0,ge.iu)(A_,n):(0,ge.iu)(S_,n);var n;return t instanceof S_?(await Promise.all(t.tests.map((t=>I((()=>{return e.addResult(t,(n=t,`test${this.testExecutionResult.runnerId}_${n.test.join("_")}`));var n}))))),t.finished?Promise.resolve():new Promise(((t,n)=>setTimeout((()=>{try{t(this.pullTestRunnerResult(e))}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyWarning("Failed to run test"+(e.message?`: ${e.message}`:"")),n(e)}}),1e3)))):(this.setTestResultInfo(void 0),Promise.resolve())}*rerunTestSuite(){this.ideStore.testRunState.isInProgress||(yield(0,ke.gP)(this.ideStore.executeTests(this.testExecutionResult.path,this.testExecutionResult.relevantTestsOnly)))}*cancelTestRun(){this.ideStore.testRunState.isInProgress&&(yield this.ideStore.client.cancelTestRunner(this.testExecutionResult.runnerId),this.ideStore.applicationStore.notificationService.notifyWarning(`Stopped running test (id: ${this.testExecutionResult.runnerId}) successfully!`))}}class w_{}class O_ extends w_{error;errorDialog;text}(0,ge.PL)(O_,{error:(0,ge.MY)(),errorDialog:(0,ge.MY)(),text:(0,ge.MY)()});class R_{networkClient;userId="localuser";sessionId=`${this.userId}@${Date.now()}@abcd`;compilerMode;mode;constructor(e){this.networkClient=e}get baseUrl(){return V(this.networkClient.baseUrl,"Pure server client has not been configured properly")}initialize=e=>this.networkClient.get(`${this.baseUrl}/initialize`,void 0,void 0,{requestCache:e,sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getInitializationActivity=()=>this.networkClient.get(`${this.baseUrl}/initializationActivity`,void 0,void 0,{sessionId:this.sessionId});getConceptActivity=()=>this.networkClient.get(`${this.baseUrl}/conceptsActivity`,void 0,void 0,{sessionId:this.sessionId});execute=(e,t,n)=>this.networkClient.post(`${this.baseUrl}/${t}`,{extraParams:n,openFiles:e},void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getExecutionActivity=()=>this.networkClient.get(`${this.baseUrl}/executionActivity`,void 0,void 0,{sessionId:this.sessionId});findFiles=(e,t)=>this.networkClient.get(`${this.baseUrl}/findPureFiles`,void 0,void 0,{file:e,regex:t});searchText=(e,t,n,i=2e3)=>this.networkClient.get(`${this.baseUrl}/findInSources`,void 0,void 0,{string:e,caseSensitive:t,regex:n,limit:i});getTextSearchPreview=e=>this.networkClient.post(`${this.baseUrl}/getTextSearchPreview`,e);checkTestRunner=e=>this.networkClient.get(`${this.baseUrl}/testRunnerCheck`,void 0,void 0,{sessionId:this.sessionId,testRunnerId:e});cancelTestRunner=e=>this.networkClient.get(`${this.baseUrl}/testRunnerCancel`,void 0,void 0,{sessionId:this.sessionId,testRunnerId:e});getConceptChildren=e=>this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::display_ide(String[1]):String[1]",param:e?`'${e}'`:`'${Hg}'`,format:"raw",mode:this.mode,sessionId:this.sessionId});getConceptInfo=async(e,t,n)=>{const i=await this.networkClient.get(`${this.baseUrl}/getConceptInfo`,void 0,void 0,{file:e,line:t,column:n});if(i.error)throw new Error(i.text);return i};getUsages=async(e,t)=>{const n=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:e,param:t});return Array.isArray(n)?n:[n]};renameConcept=e=>this.networkClient.put(`${this.baseUrl}/renameConcept`,e);movePackageableElements=e=>this.networkClient.put(`${this.baseUrl}/movePackageableElements`,e);getPackageableElementsUsage=async e=>{const t=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:yf.MULTIPLE_PATHS,param:[`'${e.join(",")}'`]});return Array.isArray(t)?t:[t]};getChildPackageableElements=async e=>{const t=await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::getChildPackageableElements_String_1__String_MANY_",param:[`'${e}'`]});return(Array.isArray(t)?t:[t]).map((e=>JSON.parse(e)))};getFile=e=>this.networkClient.get(`${this.baseUrl}/fileAsJson/${e}`,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});getDirectoryChildren=e=>this.networkClient.get(`${this.baseUrl}/dir`,void 0,void 0,{parameters:e??"/",mode:this.mode,sessionId:this.sessionId});updateSource=e=>this.networkClient.put(`${this.baseUrl}/updateSource`,e);createFile=e=>this.networkClient.post(`${this.baseUrl}/newFile/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});createFolder=e=>this.networkClient.post(`${this.baseUrl}/newFolder/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId,mode:this.mode,fastCompile:this.compilerMode});renameFile=(e,t)=>this.networkClient.put(`${this.baseUrl}/renameFile`,{oldPath:e,newPath:t},void 0);deleteDirectoryOrFile=e=>this.networkClient.delete(`${this.baseUrl}/deleteFile/${e}`,void 0,void 0,void 0,{sessionId:this.sessionId});getDiagramInfo=async e=>JSON.parse(await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::diagram::getDiagramInfo_String_1__String_1_",param:[`'${e}'`]}));getDiagramClassInfo=async e=>JSON.parse(await this.networkClient.get(`${this.baseUrl}/execute`,void 0,void 0,{func:"meta::pure::ide::diagram::getDiagramClassInfo_String_1__String_1_",param:[`'${e}'`]}));getSuggestionsForIncompletePath=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/incompletePath`,{path:e,types:t});getSuggestionsForIdentifier=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/identifier`,{importPaths:e,types:t});getSuggestionsForAttribute=(e,t)=>this.networkClient.post(`${this.baseUrl}/suggestion/attribute`,{importPaths:e,path:t});getSuggestionsForClass=e=>this.networkClient.post(`${this.baseUrl}/suggestion/class`,{importPaths:e});getSuggestionsForVariable=(e,t,n)=>this.networkClient.post(`${this.baseUrl}/suggestion/variable`,{sourceId:e,line:t,column:n})}class k_{_initialDefaultSize;_tempSize;size;defaultSize;snapSize;maxSize;constructor(e){this.size=e.initial,this._tempSize=e.default,this.defaultSize=e.default,this._initialDefaultSize=e.default,this.snapSize=e.snap,(0,ke.Gn)(this,{_tempSize:ke.sH,size:ke.sH,defaultSize:ke.sH,snapSize:ke.sH,maxSize:ke.sH,isOpen:ke.EW,isMaximizable:ke.EW,isMaximized:ke.EW,setSize:ke.XI,open:ke.XI,close:ke.XI,toggle:ke.XI,setMaxSize:ke.XI,maximize:ke.XI,minimize:ke.XI,toggleMaximize:ke.XI})}get isOpen(){return 0!==this.size}get isMaximizable(){return void 0!==this.maxSize}get isMaximized(){return void 0!==this.maxSize&&this.size===this.maxSize}setSize(e){e=Math.max(e,0),this.maxSize&&(e=Math.min(e,this.maxSize)),this.size!==e&&(void 0!==this.snapSize?e>this.size?this.maxSize&&e>this.maxSize-this.snapSize?this.size=this.maxSize:this.size=e<this.snapSize?this.defaultSize:e:this.size=e<this.snapSize?0:e:this.size=e)}open(){0===this.size&&(this.size=this._tempSize)}close(){0!==this.size&&(this._tempSize=this.size||this.defaultSize,this.size=0)}toggle(){0===this.size?this.open():this.close()}setMaxSize(e){this._tempSize=Math.min(this._tempSize,e),this.size=Math.min(this.size,e),this.defaultSize=Math.min(this._initialDefaultSize,e),this.maxSize=e}maximize(){void 0!==this.maxSize&&this.size!==this.maxSize&&(this._tempSize=this.size,this.size=this.maxSize)}minimize(){void 0!==this.maxSize&&this.size===this.maxSize&&(this.size=this._tempSize===this.maxSize?this.defaultSize:this._tempSize)}toggleMaximize(){void 0!==this.maxSize&&(this.size===this.maxSize?this.minimize():this.maximize())}}class P_{_UUID=(0,o.A)();tag;value;constructor(e,t){this.tag=e,this.value=t}get hashCode(){return ko([Jo.TAGGED_VALUE,this.tag.pointerHashCode,this.value])}}class L_ extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Jo.TAG_POINTER,this.value.value,this.ownerReference.valueForSerialization??""].map(Ro).join(",")}}class M_ extends L_{ownerReference;constructor(e){const t=Er.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new M_(e)}}class D_ extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Jo.STEREOTYPE_POINTER,this.value.value,this.ownerReference.valueForSerialization??""].map(Ro).join(",")}}class F_ extends D_{ownerReference;constructor(e){const t=Er.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new F_(e)}}var B_;!function(e){e.NONE="NONE",e.SHARED="SHARED",e.COMPOSITE="COMPOSITE"}(B_||(B_={}));class j_{_UUID=(0,o.A)();_OWNER;name;genericType;multiplicity;stereotypes=[];taggedValues=[];body;parameters;defaultValue=void 0;constructor(e,t,n,i){this.name=e,this.multiplicity=t,this.genericType=n,this._OWNER=i}get hashCode(){return ko([Jo.DERIVED_PROPERTY,this.name,this.multiplicity,this.genericType.ownerReference.valueForSerialization??"",ko(this.stereotypes.map((e=>e.pointerHashCode))),ko(this.taggedValues),er(this.parameters,this.body)])}}class V_{_UUID=(0,o.A)();_OWNER;value;constructor(e,t){this._OWNER=e,this.value=t}}class H_{_UUID=(0,o.A)();_OWNER;value;constructor(e,t){this._OWNER=e,this.value=t}}class G_ extends fr{ownerReference;value;constructor(e,t){super(e),this.ownerReference=e,this.value=t}get pointerHashCode(){return[Jo.PROPERTY_POINTER,this.value.name,this.ownerReference.valueForSerialization??""].map(Ro).join(",")}}class U_ extends G_{ownerReference;constructor(e){const t=Er.create(e._OWNER);super(t,e),this.ownerReference=t}static create(e){return new U_(e)}}class $_{sourceId;line;column;startLine;startColumn;endLine;endColumn}(0,ge.PL)($_,{column:(0,ge.MY)(),endLine:(0,ge.MY)(),endColumn:(0,ge.MY)(),line:(0,ge.MY)(),sourceId:(0,ge.MY)(),startLine:(0,ge.MY)(),startColumn:(0,ge.MY)()});const Y_=(0,ge.Ie)((()=>ge._Z),(e=>(e.sourceId=e.source,(0,ge.iu)($_,e))));class W_{package;name;tags=[];stereotypes=[]}(0,ge.PL)(W_,{name:(0,ge.MY)(),package:(0,ge.MY)(),stereotypes:(0,ge.p_)((0,ge.MY)()),tags:(0,ge.p_)((0,ge.MY)())});class z_{profile;value}(0,ge.PL)(z_,{profile:(0,ge.MY)(),value:(0,ge.MY)()});class K_{profile;value}(0,ge.PL)(K_,{profile:(0,ge.MY)(),value:(0,ge.MY)()});class X_{tag;value}(0,ge.PL)(X_,{tag:(0,ge.Ik)(K_),value:(0,ge.MY)()});class q_{rawType;typeParameter}(0,ge.PL)(q_,{rawType:(0,ge.lq)((0,ge.MY)()),typeParameter:(0,ge.lq)((0,ge.MY)())});class J_{name;stereotypes=[];taggedValues=[];aggregation;multiplicity;genericType}(0,ge.PL)(J_,{aggregation:(0,ge.MY)(),genericType:(0,ge.Ik)(q_),multiplicity:(0,ge.MY)(),name:(0,ge.MY)(),stereotypes:(0,ge.p_)((0,ge.Ik)(z_)),taggedValues:(0,ge.p_)((0,ge.Ik)(X_))});class Z_{package;name;sourceInformation}(0,ge.PL)(Z_,{name:(0,ge.MY)(),package:(0,ge.MY)(),sourceInformation:Y_});class Q_{package;name;sourceInformation;stereotypes=[];taggedValues=[];generalizations=[];properties=[];qualifiedProperties=[]}(0,ge.PL)(Q_,{generalizations:(0,ge.p_)((0,ge.Ik)(q_)),name:(0,ge.MY)(),package:(0,ge.MY)(),properties:(0,ge.p_)((0,ge.Ik)(J_)),qualifiedProperties:(0,ge.p_)((0,ge.Ik)(J_)),sourceInformation:Y_,stereotypes:(0,ge.p_)((0,ge.Ik)(z_)),taggedValues:(0,ge.p_)((0,ge.Ik)(X_))});class eE{package;name;enumValues=[]}(0,ge.PL)(eE,{name:(0,ge.MY)(),package:(0,ge.MY)(),enumValues:(0,ge.p_)((0,ge.MY)())});class tE{x;y}(0,ge.PL)(tE,{x:(0,ge.MY)(),y:(0,ge.MY)()});class nE{height;width}(0,ge.PL)(nE,{height:(0,ge.MY)(),width:(0,ge.MY)()});class iE{points=[]}(0,ge.PL)(iE,{points:(0,ge.p_)((0,ge.Ik)(tE))});class sE{id;source;target;geometry}(0,ge.PL)(sE,{geometry:(0,ge.Ik)(iE),id:(0,ge.MY)(),source:(0,ge.MY)(),target:(0,ge.MY)()});class oE{name;owningType}(0,ge.PL)(oE,{name:(0,ge.MY)(),owningType:(0,ge.MY)()});class rE{id;source;target;property;geometry}(0,ge.PL)(rE,{geometry:(0,ge.Ik)(iE),id:(0,ge.MY)(),property:(0,ge.Ik)(oE),source:(0,ge.MY)(),target:(0,ge.MY)()});class aE{id;type;position;rectangleGeometry}(0,ge.PL)(aE,{id:(0,ge.MY)(),position:(0,ge.Ik)(tE),rectangleGeometry:(0,ge.Ik)(nE),type:(0,ge.MY)()});class cE{package;name;stereotypes=[];taggedValues=[];generalizationViews=[];propertyViews=[];typeViews=[];sourceInformation}(0,ge.PL)(cE,{name:(0,ge.MY)(),generalizationViews:(0,ge.p_)((0,ge.Ik)(sE)),package:(0,ge.MY)(),propertyViews:(0,ge.p_)((0,ge.Ik)(rE)),sourceInformation:Y_,stereotypes:(0,ge.p_)((0,ge.Ik)(z_)),taggedValues:(0,ge.p_)((0,ge.Ik)(X_)),typeViews:(0,ge.p_)((0,ge.Ik)(aE))});class lE{classes=[];enumerations=[];profiles=[]}(0,ge.PL)(lE,{classes:(0,ge.p_)((0,ge.Ik)(Q_)),enumerations:(0,ge.p_)((0,ge.Ik)(eE)),profiles:(0,ge.p_)((0,ge.Ik)(W_))});class dE{name;diagram;domainInfo}(0,ge.PL)(dE,{diagram:(0,ge.Ik)(cE),name:(0,ge.MY)(),domainInfo:(0,ge.lq)((0,ge.Ik)(lE))});class uE{class;enumerations=[];profiles=[];specializations=[]}(0,ge.PL)(uE,{class:(0,ge.Ik)(Q_),enumerations:(0,ge.p_)((0,ge.Ik)(eE)),profiles:(0,ge.p_)((0,ge.Ik)(W_)),specializations:(0,ge.p_)((0,ge.Ik)(Z_))});const pE=e=>{const t=e.classViews.map((e=>` TypeView ${e.id}(\n type=${e.class.value.path},\n position=(${e.position.x.toFixed(5)}, ${e.position.y.toFixed(5)}),\n width=${e.rectangle.width.toFixed(5)},\n height=${e.rectangle.height.toFixed(5)},\n stereotypesVisible=true,\n attributesVisible=true,\n attributeStereotypesVisible=true,\n attributeTypesVisible=true,\n color=#FFFFCC,\n lineWidth=1.0)`)),n=e.generalizationViews.map(((e,t)=>` GeneralizationView gview_${t}(\n source=${e.from.classView.value.id},\n target=${e.to.classView.value.id},\n points=[${e.buildFullPath().map((e=>`(${e.x.toFixed(5)},${e.y.toFixed(5)})`)).join(",")}],\n label='',\n color=#000000,\n lineWidth=-1.0,\n lineStyle=SIMPLE)`)),i=e.propertyViews.map(((e,t)=>` PropertyView pview_${t}(\n property=${e.property.value._OWNER.path}.${e.property.value.name},\n source=${e.from.classView.value.id},\n target=${e.to.classView.value.id},\n points=[${e.buildFullPath().map((e=>`(${e.x.toFixed(5)},${e.y.toFixed(5)})`)).join(",")}],\n label='',\n propertyPosition=(0.0,0.0),\n multiplicityPosition=(0.0,0.0),\n color=#000000,\n lineWidth=-1.0,\n stereotypesVisible=true,\n nameVisible=true,\n lineStyle=SIMPLE)`));return`Diagram ${e.path}(width=0.0, height=0.0)\n{\n${[...t,...n,...i].join("\n\n")}\n}`},hE=(e,t,n,i)=>{const s=t.getOwnNullableClass(e);if(!s){const[s,o]=fm(e),r=new rr(o);return Em(Tm(t.root,s,!0,new Map),r),t.setOwnType(e,r),n.set(e,{isStubbed:!0,sourceInformation:i}),r}return s},mE=e=>{if("*"===e)return new Wh(0,void 0);{const t=e.split("..");if(1===t.length)return new Wh(parseInt(V(t[0]),10),parseInt(V(t[0]),10));if(2===t.length)return new Wh(parseInt(V(t[0]),10),"*"===t[1]?void 0:parseInt(V(t[1]),10));throw new Error(`Can't parse multiplicity value '${e}'`)}},gE=(e,t,n,i)=>{t.taggedValues.forEach((t=>{var i,s;x(e.taggedValues,new P_(M_.create((i=n.getProfile(t.tag.profile),s=t.tag.value,V(i.p_tags.find((e=>e.value===s)),`Can't find tag '${s}' in profile '${i.path}'`))),t.value))})),t.stereotypes.forEach((t=>{var i,s;x(e.stereotypes,F_.create((i=n.getProfile(t.profile),s=t.value,V(i.p_stereotypes.find((e=>e.value===s)),`Can't find stereotype '${s}' in profile '${i.path}'`))))})),t.generalizations.filter((e=>Boolean(e.rawType))).forEach((t=>{const s=hE(V(t.rawType),n,i,void 0);x(e.generalizations,Kh.create(new Xh(s))),x(s._subclasses,e)})),t.properties.filter((e=>Boolean(e.genericType.rawType))).forEach((t=>{const s=new Yh(t.name,mE(t.multiplicity),Kh.create(new Xh(n.getOwnNullableEnumeration(V(t.genericType.rawType))??hE(V(t.genericType.rawType),n,i,void 0))),e);s.aggregation="Composite"===t.aggregation?B_.COMPOSITE:"Shared"===t.aggregation?B_.SHARED:void 0,x(e.properties,s)})),t.qualifiedProperties.filter((e=>e.genericType.rawType)).forEach((t=>{x(e.derivedProperties,new j_(t.name,mE(t.multiplicity),Kh.create(new Xh(n.getOwnNullableEnumeration(V(t.genericType.rawType))??hE(V(t.genericType.rawType),n,i,void 0))),e))}))},fE=e=>{const t=new Xm(new Wm([]),new zm([]),[]),n=new Map;if(e.domainInfo){const i=e.domainInfo;i.classes.forEach((e=>{const i=new rr(e.name);Em(Tm(t.root,e.package,!0,new Map),i),t.setOwnType(i.path,i),n.set(i.path,{sourceInformation:e.sourceInformation,isStubbed:!1})})),i.profiles.forEach((e=>{const n=new Zh(e.name);Em(Tm(t.root,e.package,!0,new Map),n),t.setOwnProfile(n.path,n),e.tags.forEach((e=>x(n.p_tags,new V_(n,e)))),e.stereotypes.forEach((e=>x(n.p_stereotypes,new H_(n,e))))})),i.enumerations.forEach((e=>{const n=new cr(e.name);Em(Tm(t.root,e.package,!0,new Map),n),t.setOwnType(n.path,n)})),i.classes.forEach((e=>{const i=`${e.package}${""===e.package?"":Po}${e.name}`,s=t.getClass(i);gE(s,e,t,n)}))}const i=e.diagram,s=new Bp(i.name);return Em(Tm(t.root,i.package,!0,new Map),s),i.typeViews.forEach((e=>{const n=new rg(s,e.id,Er.create(t.getClass(e.type)));n.position=new ig(e.position.x,e.position.y),n.rectangle=new sg(e.rectangleGeometry.width,e.rectangleGeometry.height),x(s.classViews,n)})),i.propertyViews.forEach((e=>{const n=new pg(s,U_.create((i=t.getClass(e.property.owningType),o=e.property.name,V(i instanceof rr?Am(i).find((e=>e.name===o)):i.properties.find((e=>e.name===o)),`Can't find property '${o}' of '${i.path}'`))),V(s.classViews.find((t=>t.id===e.source))),V(s.classViews.find((t=>t.id===e.target))));var i,o;n.path=e.geometry.points.map((e=>new ig(e.x,e.y))),Eg(n),x(s.propertyViews,n)})),i.generalizationViews.forEach((e=>{const t=new hg(s,V(s.classViews.find((t=>t.id===e.source))),V(s.classViews.find((t=>t.id===e.target))));t.path=e.geometry.points.map((e=>new ig(e.x,e.y))),Eg(t),x(s.generalizationViews,t)})),[s,t,n]};var _E,EE,NE;!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"}(_E||(_E={})),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"}(EE||(EE={})),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"}(NE||(NE={}));const bE=(e,t)=>e===t?e.toString():0===e&&void 0===t?"*":`${e}..${t??"*"}`;class vE extends ug{association;constructor(e,t,n,i,s){super(e,n,i,s),this.association=t}get hashCode(){return ko([Fp.ASSOCIATION_VIEW,super.hashCode,this.association.valueForSerialization??""])}}const TE=(0,ke.XI)(((e,t)=>{e.value=t})),CE=((0,ke.XI)(((e,t)=>{O(e.properties,t)})),(0,ke.XI)(((e,t)=>{x(e.properties,hp(t))}))),yE=((0,ke.XI)(((e,t,n)=>{w(e.properties,t,n)})),(0,ke.XI)(((e,t)=>{O(e.derivedProperties,t)})),(0,ke.XI)(((e,t)=>{x(e.derivedProperties,mp(t))})),(0,ke.XI)(((e,t,n)=>{w(e.derivedProperties,t,n)})),(0,ke.XI)(((e,t)=>{x(e.constraints,fp(t))})),(0,ke.XI)(((e,t)=>{O(e.constraints,t)})),(0,ke.XI)(((e,t,n)=>{w(e.constraints,t,n)})),(0,ke.XI)(((e,t)=>{x(e.generalizations,np(t))}))),SE=((0,ke.XI)(((e,t)=>{O(e.generalizations,t)})),(0,ke.XI)(((e,t,n)=>{w(e.generalizations,t,n)})),(0,ke.XI)(((e,t)=>{x(e._subclasses,t)})),(0,ke.XI)(((e,t)=>{O(e._subclasses,t)})),(0,ke.XI)(((e,t)=>{np(e),tp(t),e.value=t,e.ownerReference.value=t.rawType}))),AE=((0,ke.XI)(((e,t)=>{e.name=t})),(0,ke.XI)(((e,t)=>{SE(e.genericType,tp(t))})),(0,ke.XI)(((e,t)=>{e.multiplicity=t})),(0,ke.XI)(((e,t)=>{e.aggregation=t})),(0,ke.XI)(((e,t)=>{e.value=op(t),TE(e.ownerReference,t._OWNER)})),(0,ke.XI)(((e,t)=>{x(e.taggedValues,ep(t))})),(0,ke.XI)(((e,t)=>{O(e.taggedValues,t)})),(0,ke.XI)(((e,t)=>{x(e.stereotypes,Zu(t))})),(0,ke.XI)(((e,t)=>{O(e.stereotypes,t)})),(0,ke.XI)(((e,t)=>{e.tag.value=rp(t),e.tag.ownerReference.value=t._OWNER})),(0,ke.XI)(((e,t)=>{e.value=t})),(0,ke.XI)(((e,t)=>{e.value=t})),(0,ke.XI)(((e,t,n)=>{w(e.taggedValues,t,n)})),(0,ke.XI)(((e,t,n)=>{w(e.stereotypes,t,n)})),(0,ke.XI)(((e,t)=>{e.name=t})),(0,ke.XI)(((e,t)=>{e.functionDefinition=Br(t)})),(0,ke.XI)(((e,t)=>{x(e.p_tags,rp(t))})),(0,ke.XI)(((e,t)=>{O(e.p_tags,t)})),(0,ke.XI)(((e,t)=>{x(e.p_stereotypes,op(t))})),(0,ke.XI)(((e,t)=>{O(e.p_stereotypes,t)})),(0,ke.XI)(((e,t,n)=>{w(e.p_tags,t,n)})),(0,ke.XI)(((e,t,n)=>{w(e.p_stereotypes,t,n)})),(0,ke.XI)(((e,t)=>{O(e.parameters,t)})),(0,ke.XI)(((e,t)=>{x(e.parameters,jr(t))})),(0,ke.XI)(((e,t)=>{TE(e.returnType,Ip(t))})),(0,ke.XI)(((e,t)=>{e.returnMultiplicity=t})),(0,ke.XI)(((e,t,n)=>{w(e.parameters,t,n)})),(0,ke.XI)(((e,t)=>{e.content=t})),(0,ke.XI)(((e,t,n)=>{e.data=cd(t,n)})),(0,ke.XI)(((e,t)=>{O(e.testData??[],t)})),(0,ke.XI)(((e,t,n)=>{x(e.tests,Tp(t,n))})),(0,ke.XI)(((e,t)=>{e.value=t})),(0,ke.XI)(((e,t)=>{e.parameters=t.map(Np)})),(0,ke.XI)(((e,t)=>{O(e.parameters??[],t)})),(0,ke.XI)(((e,t)=>{e.parameters?e.parameters.push(Np(t)):e.parameters=[Np(t)]})),(0,ke.XI)(((e,t)=>{e.name=t})),(0,ke.XI)(((e,t)=>{e.name=t})),(0,ke.XI)(((e,t)=>{x(e.values,cp(t))})),(0,ke.XI)(((e,t)=>{O(e.values,t)})),(0,ke.XI)(((e,t,n)=>{w(e.values,t,n)})),(0,ke.XI)(((e,t)=>{e.value=cp(t),TE(e.ownerReference,t._OWNER)})),(0,ke.XI)(((e,t,n)=>{const i=((e,t)=>{const n=e.properties.findIndex((e=>e===t));return z(-1!==n,`Can't find property '${t.name}' in association '${e.path}'`),V(e.properties[(n+1)%2])})(e,t),s=$(t.genericType.ownerReference.value,rr,`Association property '${t.name}' must be of type 'class'`);var o;((o=s).package||o.name)&&z(O(s.propertiesFromAssociations,i),`Can't find property '${i.name}' from association '${e.path}' in associated class '${s.path}'`),x(n.propertiesFromAssociations,i);const r=new Xh(n);t.genericType.value=r,t.genericType.ownerReference.value=r.rawType})),(0,ke.XI)(((e,t)=>{e.canonicalUnit=up(t)})),(0,ke.XI)(((e,t)=>{e.conversionFunction=Br(t)})),(0,ke.XI)(((e,t)=>{e.classViews=t.map(Op)}))),IE=(0,ke.XI)(((e,t)=>{x(e.classViews,Op(t))})),xE=(0,ke.XI)(((e,t)=>{O(e.classViews,t)})),wE=(0,ke.XI)(((e,t)=>{e.associationViews=t.map(Lp)})),OE=(0,ke.XI)(((e,t)=>{O(e.associationViews,t)})),RE=(0,ke.XI)(((e,t)=>{e.generalizationViews=t.map(Pp)})),kE=(0,ke.XI)(((e,t)=>{x(e.generalizationViews,Pp(t))})),PE=(0,ke.XI)(((e,t)=>{O(e.generalizationViews,t)})),LE=(0,ke.XI)(((e,t)=>{e.propertyViews=t.map(Mp)})),ME=(0,ke.XI)(((e,t)=>{x(e.propertyViews,Mp(t))})),DE=(0,ke.XI)(((e,t)=>{O(e.propertyViews,t)})),FE=(0,ke.XI)(((e,t)=>{e.hideProperties=t})),BE=(0,ke.XI)(((e,t)=>{e.hideStereotypes=t})),jE=(0,ke.XI)(((e,t)=>{e.hideTaggedValues=t})),VE=(0,ke.XI)(((e,t)=>{e._offsetX=t})),HE=(0,ke.XI)(((e,t)=>{e._offsetY=t})),GE=(0,ke.XI)(((e,t,n)=>{((e,t,n,i=((e,t)=>e===t))=>{const s=e.findIndex((e=>i(e,t)));-1!==s&&(e[s]=n)})(e.path,t,n)})),UE=(0,ke.XI)(Eg),$E=(0,ke.XI)(((e,t,n,i,s)=>{for(const s of e.path)if(Math.sqrt((t-s.x)*(t-s.x)+(n-s.y)*(n-s.y))<10/i)return s;const o=e.buildFullPath(s),r=[];let a;for(let e=0;e<o.length-1;e++){const s=o[e],c=o[e+1],l=new mg(s.x,s.y).normal(new mg(c.x,c.y)).unit(),d=mg.fromPoints(s,new ig(t,n));if(Math.abs(l.dotProduct(d))<5/i){const e=(s.x<c.x?s.x:c.x)-5/i,o=(s.x<c.x?c.x:s.x)+5/i,l=(s.y<c.y?s.y:c.y)-5/i,d=(s.y<c.y?c.y:s.y)+5/i;e<=t&&t<=o&&l<=n&&n<=d&&(a=new ig(t,n),r.push(a))}e<o.length-2&&r.push(o[e+1])}return a&&s&&_g(e,r),a})),YE=(0,ke.XI)(_g),WE=(0,ke.XI)(((e,t)=>{e.rectangle=t})),zE=(0,ke.XI)(((e,t)=>{e.position=t})),KE=(0,ke.XI)((e=>{e._dummyObservable={}}));var XE,qE,JE;!function(e){e[e.LAYOUT=0]="LAYOUT",e[e.PAN=1]="PAN",e[e.ZOOM_IN=2]="ZOOM_IN",e[e.ZOOM_OUT=3]="ZOOM_OUT",e[e.ADD_RELATIONSHIP=4]="ADD_RELATIONSHIP",e[e.ADD_CLASS=5]="ADD_CLASS"}(XE||(XE={})),function(e){e[e.PROPERTY=0]="PROPERTY",e[e.INHERITANCE=1]="INHERITANCE",e[e.NONE=2]="NONE"}(qE||(qE={})),function(e){e[e.ALIGN_LEFT=0]="ALIGN_LEFT",e[e.ALIGN_CENTER=1]="ALIGN_CENTER",e[e.ALIGN_RIGHT=2]="ALIGN_RIGHT",e[e.ALIGN_TOP=3]="ALIGN_TOP",e[e.ALIGN_MIDDLE=4]="ALIGN_MIDDLE",e[e.ALIGN_BOTTOM=5]="ALIGN_BOTTOM",e[e.SPACE_HORIZONTALLY=6]="SPACE_HORIZONTALLY",e[e.SPACE_VERTICALLY=7]="SPACE_VERTICALLY"}(JE||(JE={}));const ZE=.05,QE=[50,75,90,100,110,125,150,200,250,300,400],eN=e=>(e instanceof j_?"/ ":"")+e.name;class tN{diagram;isReadOnly;enableLayoutAutoAdjustment;div;canvas;ctx;canvasDimension;canvasCenter;virtualScreen;screenOffset;zoom;interactionMode;relationshipMode;triangle;diamond;fontFamily;fontSize;lineHeight;truncateText;maxLineLength;screenPadding;classViewSpaceX;classViewSpaceY;propertySpacing;showScreenGrid;showScreenBoxGuide;screenGridAxisTickLength;screenGridSpacingX;screenGridSpacingY;screenGridLineWidth;screenGridLineColor;screenGridLabelTextColor;screenGuideLineColor;screenGuideLabelTextColor;showCanvasGrid;showCanvasBoxGuide;showScreenOffsetGuide;canvasGridAxisTickLength;canvasGridSpacingX;canvasGridSpacingY;canvasGridLineWidth;canvasGridLineColor;canvasGridLabelTextColor;canvasGuideLineColor;canvasGuideLabelTextColor;screenOffsetGuideLineColor;screenOffsetGuideLabelTextColor;defaultLineWidth;defaultLineColor;canvasColor;backgroundColor;classViewFillColor;classViewHeaderTextColor;classViewPropertyTextColor;classViewPrimitivePropertyTextColor;classViewDerivedPropertyTextColor;relationshipViewTextColor;propertyViewOwnedDiamondColor;propertyViewSharedDiamondColor;generalizationViewInheritanceTriangeFillColor;selectionBoxBorderColor;selection;selectionStart;selectedClassCorner;selectedClassProperty;selectedClasses;selectedPropertyOrAssociation;selectedInheritance;selectedPoint;_selectedClassesInitialPositions;startClassView;handleAddRelationship;mouseOverClassCorner;mouseOverClassName;mouseOverClassView;mouseOverClassProperty;mouseOverPropertyHolderViewLabel;cursorPosition;leftClick;middleClick;rightClick;clickX;clickY;positionBeforeLastMove;onAddClassViewClick=()=>{};onClassViewRightClick=()=>{};onBackgroundDoubleClick;onClassViewDoubleClick;onClassNameDoubleClick;onClassPropertyDoubleClick;handleEditClassView=()=>{};handleEditProperty=()=>{};handleAddSimpleProperty=()=>{};constructor(e,t){(0,ke.Gn)(this,{isReadOnly:ke.sH,enableLayoutAutoAdjustment:ke.sH,interactionMode:ke.sH,relationshipMode:ke.sH,zoom:ke.sH,mouseOverClassView:ke.sH,mouseOverClassName:ke.sH,mouseOverClassCorner:ke.sH,mouseOverClassProperty:ke.sH,mouseOverPropertyHolderViewLabel:ke.sH,selectionStart:ke.sH,selectedClassCorner:ke.sH,selectedClasses:ke.sH,selectedPropertyOrAssociation:ke.sH,selectedInheritance:ke.sH,leftClick:ke.sH,middleClick:ke.sH,rightClick:ke.sH,changeMode:ke.XI,setIsReadOnly:ke.XI,setEnableLayoutAutoAdjustment:ke.XI,setMouseOverClassView:ke.XI,setMouseOverClassName:ke.XI,setMouseOverClassCorner:ke.XI,setMouseOverClassProperty:ke.XI,setMouseOverPropertyHolderViewLabel:ke.XI,setSelectionStart:ke.XI,setSelectedClassCorner:ke.XI,setSelectedClasses:ke.XI,setSelectedPropertyOrAssociation:ke.XI,setSelectedInheritance:ke.XI,setLeftClick:ke.XI,setMiddleClick:ke.XI,setRightClick:ke.XI,setZoomLevel:ke.XI,align:ke.XI}),this.diagram=t,this.div=e,this.div.childNodes.forEach((e=>this.div.removeChild(e))),this.canvas=document.createElement("canvas"),this.canvasDimension=new sg(this.div.offsetWidth,this.div.offsetHeight),this.canvasCenter=new ig(this.canvasDimension.width/2,this.canvasDimension.height/2),this.canvas.width=this.canvasDimension.width,this.canvas.height=this.canvasDimension.height,this.canvas.style.position="absolute",this.canvas.style.left="0",this.canvas.style.top="0",this.div.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.screenOffset=new ig(0,0),this.virtualScreen=new og(new ig(0,0),new sg(0,0)),this.zoom=1,this.triangle=[new ig(0,0),new ig(-15,-10),new ig(-15,10)],this.diamond=[new ig(0,0),new ig(-10,-5),new ig(-20,0),new ig(-10,5)],this.fontFamily="Arial",this.fontSize=12,this.lineHeight=14,this.truncateText=!0,this.maxLineLength=40,this.showScreenGrid=!1,this.showScreenBoxGuide=!0,this.screenGridAxisTickLength=50,this.screenGridSpacingX=100,this.screenGridSpacingY=100,this.screenGridLineWidth=.5,this.showCanvasGrid=!1,this.showCanvasBoxGuide=!0,this.showScreenOffsetGuide=!0,this.canvasGridAxisTickLength=50,this.canvasGridSpacingX=100,this.canvasGridSpacingY=100,this.canvasGridLineWidth=.5,this.defaultLineWidth=1,this.screenGridLineColor="rgba(61,126,154,0.56)",this.screenGridLabelTextColor="rgba(61,126,154,0.56)",this.screenGuideLineColor="red",this.screenGuideLabelTextColor="red",this.canvasGridLineColor="green",this.canvasGridLabelTextColor="green",this.canvasGuideLineColor="orange",this.canvasGuideLabelTextColor="orange",this.screenOffsetGuideLineColor="purple",this.screenOffsetGuideLabelTextColor="purple",this.defaultLineColor="rgb(0,0,0)",this.canvasColor="rgb(220,220,220)",this.backgroundColor="rgb(255,255,255)",this.classViewFillColor="rgb(185,185,185)",this.classViewHeaderTextColor="rgb(0,0,0)",this.classViewPropertyTextColor="rgb(0,0,0)",this.classViewPrimitivePropertyTextColor="rgb(255,255,255)",this.classViewDerivedPropertyTextColor="rgb(100,100,100)",this.relationshipViewTextColor="rgb(0,0,0)",this.propertyViewSharedDiamondColor="rgb(255,255,255)",this.propertyViewOwnedDiamondColor="rgb(0,0,0)",this.generalizationViewInheritanceTriangeFillColor="rgb(255,255,255)",this.selectionBoxBorderColor="rgba(0,0,0, 0.02)",this.interactionMode=XE.LAYOUT,this.relationshipMode=qE.NONE,this.isReadOnly=!1,this.enableLayoutAutoAdjustment=!1,this.screenPadding=20,this.classViewSpaceX=10,this.classViewSpaceY=4,this.propertySpacing=10,this.selectionStart=void 0,this.selection=void 0,this.selectedClasses=[],this._selectedClassesInitialPositions=[],this.cursorPosition=new ig(0,0),this.leftClick=!1,this.middleClick=!1,this.rightClick=!1,this.clickX=0,this.clickY=0,this.positionBeforeLastMove=new ig(0,0),this.div.onwheel=this.mousewheel.bind(this),this.div.onmousedown=this.mousedown.bind(this),this.div.onkeydown=this.keydown.bind(this),this.div.ondblclick=this.mousedblclick.bind(this),this.div.onmouseup=this.mouseup.bind(this),this.div.onmousemove=this.mousemove.bind(this)}setIsReadOnly(e){this.isReadOnly=e}setEnableLayoutAutoAdjustment(e){this.enableLayoutAutoAdjustment=e}setMouseOverClassView(e){this.mouseOverClassView=e}setMouseOverClassName(e){this.mouseOverClassName=e}setMouseOverClassCorner(e){this.mouseOverClassCorner=e}setMouseOverClassProperty(e){this.mouseOverClassProperty=e}setMouseOverPropertyHolderViewLabel(e){this.mouseOverPropertyHolderViewLabel=e}setSelectionStart(e){this.selectionStart=e}setSelectedClassCorner(e){this.selectedClassCorner=e}setSelectedClasses(e){this.selectedClasses=e}setSelectedPropertyOrAssociation(e){this.selectedPropertyOrAssociation=e}setSelectedInheritance(e){this.selectedInheritance=e}setLeftClick(e){this.leftClick=e}setMiddleClick(e){this.middleClick=e}setRightClick(e){this.rightClick=e}setZoomLevel(e){this.zoom=e}render(e){this.diagram.classViews.forEach((e=>this.ensureClassViewMeetMinDimensions(e))),this.refresh(),e?.initial&&(this.autoRecenter(),(this.canvas.width<this.virtualScreen.rectangle.width+2*this.screenPadding+20||this.canvas.height<this.virtualScreen.rectangle.height+2*this.screenPadding+20)&&this.zoomToFit())}refresh(){this.refreshCanvas(),this.drawScreen()}refreshCanvas(){this.canvasDimension=new sg(this.div.offsetWidth,this.div.offsetHeight),this.canvasCenter=new ig(this.canvasDimension.width/2,this.canvasDimension.height/2),this.canvas.width=this.canvasDimension.width,this.canvas.height=this.canvasDimension.height}clearScreen(){this.ctx.fillStyle=this.canvasColor,this.ctx.fillRect(0,0,this.canvasDimension.width,this.canvasDimension.height)}drawScreen(){this.manageVirtualScreen(),this.clearScreen(),this.drawAll()}autoRecenter(){this.center(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2,this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2)}center(e,t){this.screenOffset=new ig(-e+this.canvasCenter.x,-t+this.canvasCenter.y),this.refresh()}changeMode(e,t){switch(e){case XE.LAYOUT:case XE.PAN:case XE.ZOOM_IN:case XE.ZOOM_OUT:case XE.ADD_CLASS:if(t!==qE.NONE)throw new P(`Can't change to '${e}' mode: relationship mode should not be specified in layout mode`);break;case XE.ADD_RELATIONSHIP:if(t===qE.NONE)throw new P("Can't switch to relationship mode: relationship mode is not specified");break;default:throw new L(`Can't switch to mode '${e}': unsupported mode`)}if(this.interactionMode=e,this.relationshipMode=t,e===XE.ADD_RELATIONSHIP)switch(t){case qE.INHERITANCE:this.handleAddRelationship=(e,t)=>{if(e.class.value===t.class.value||Sm(e.class.value).includes(t.class.value)||Sm(t.class.value).includes(e.class.value)||yE(e.class.value,Kh.create(new Xh(t.class.value))),e.class.value.generalizations.find((e=>e.value.rawType===t.class.value))){const n=new hg(this.diagram,e,t);return kE(this.diagram,n),n}};break;case qE.PROPERTY:this.handleAddRelationship=(e,t)=>{const n=new Yh(`property_${e.class.value.properties.length+1}`,Wh.ONE,Kh.create(new Xh(t.class.value)),e.class.value);if(CE(e.class.value,n),e!==t){const i=new pg(this.diagram,U_.create(n),e,t);return ME(this.diagram,i),i}};break;default:throw new L(`Can't switch to relationship mode '${t}': unsupported mode`)}}align(e){if(!(this.selectedClasses.length<2)){switch(e){case JE.ALIGN_LEFT:{const e=this.selectedClasses.reduce(((e,t)=>Math.min(e,t.position.x)),Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>zE(t,new ig(e,t.position.y))));break}case JE.ALIGN_CENTER:{const e=this.selectedClasses.reduce(((e,t)=>e+t.position.x+t.rectangle.width/2),0)/this.selectedClasses.length;this.selectedClasses.forEach((t=>zE(t,new ig(e-t.rectangle.width/2,t.position.y))));break}case JE.ALIGN_RIGHT:{const e=this.selectedClasses.reduce(((e,t)=>Math.max(e,t.position.x+t.rectangle.width)),-Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>zE(t,new ig(e-t.rectangle.width,t.position.y))));break}case JE.ALIGN_TOP:{const e=this.selectedClasses.reduce(((e,t)=>Math.min(e,t.position.y)),Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>zE(t,new ig(t.position.x,e))));break}case JE.ALIGN_MIDDLE:{const e=this.selectedClasses.reduce(((e,t)=>e+t.position.y+t.rectangle.height/2),0)/this.selectedClasses.length;this.selectedClasses.forEach((t=>zE(t,new ig(t.position.x,e-t.rectangle.height/2))));break}case JE.ALIGN_BOTTOM:{const e=this.selectedClasses.reduce(((e,t)=>Math.max(e,t.position.y+t.rectangle.height)),-Number.MAX_SAFE_INTEGER);this.selectedClasses.forEach((t=>zE(t,new ig(t.position.x,e-t.rectangle.height))));break}case JE.SPACE_HORIZONTALLY:{const e=this.selectedClasses.slice().sort(((e,t)=>e.position.x-t.position.x));if(2===e.length){const t=e[0],n=e[1];zE(n,new ig(t.position.x+t.rectangle.width,n.position.y))}else{const t=[];for(let n=1;n<e.length;n++){const i=e[n-1],s=e[n];t.push(s.position.x-(i.position.x+i.rectangle.width))}const n=t.reduce(((e,t)=>e+t),0)/t.length;for(let t=1;t<e.length;t++){const i=e[t-1],s=e[t];zE(s,new ig(i.position.x+i.rectangle.width+n,s.position.y))}}break}case JE.SPACE_VERTICALLY:{const e=this.selectedClasses.slice().sort(((e,t)=>e.position.y-t.position.y));if(2===e.length){const t=e[0],n=e[1];zE(n,new ig(n.position.x,t.position.y+t.rectangle.height))}else{const t=[];for(let n=1;n<e.length;n++){const i=e[n-1],s=e[n];t.push(s.position.y-(i.position.y+i.rectangle.height))}const n=t.reduce(((e,t)=>e+t),0)/t.length;for(let t=1;t<e.length;t++){const i=e[t-1],s=e[t];zE(s,new ig(s.position.x,i.position.y+i.rectangle.height+n))}}break}}this.drawScreen()}}truncateTextWithEllipsis(e,t=this.maxLineLength){return e.length>t?`${e.substring(0,t+1-3)}...`:e}canvasCoordinateToModelCoordinate(e){return new ig((e.x-this.canvasCenter.x)/this.zoom-this.screenOffset.x+this.canvasCenter.x,(e.y-this.canvasCenter.y)/this.zoom-this.screenOffset.y+this.canvasCenter.y)}modelCoordinateToCanvasCoordinate(e){return new ig((e.x-this.canvasCenter.x+this.screenOffset.x)*this.zoom+this.canvasCenter.x,(e.y-this.canvasCenter.y+this.screenOffset.y)*this.zoom+this.canvasCenter.y)}resolveMouseEventCoordinate(e){if(e.target instanceof HTMLElement){const t=gg(e.target);return new ig(t.x+e.offsetX,t.y+e.offsetY)}return new ig(e.x,e.y)}eventCoordinateToCanvasCoordinate(e){return new ig(e.x-this.divPosition.x+this.div.scrollLeft,e.y-this.divPosition.y+this.div.scrollTop)}canvasCoordinateToEventCoordinate(e){return new ig(e.x-this.div.scrollLeft+this.divPosition.x,e.y-this.div.scrollTop+this.divPosition.y)}hasPropertyView(e,t){return this.diagram.propertyViews.filter((n=>n.property.value===t&&n.from.classView.value===e)).length>0}get divPosition(){return gg(this.div)}manageVirtualScreen(){if(this.diagram.classViews.length){const e=V(this.diagram.classViews[0]);let t=e.position.x,n=e.position.y,i=e.position.x+e.rectangle.width,s=e.position.y+e.rectangle.height;for(const e of this.diagram.classViews)t=Math.min(t,e.position.x),n=Math.min(n,e.position.y),i=Math.max(i,e.position.x+e.rectangle.width),s=Math.max(s,e.position.y+e.rectangle.height);const o=this.diagram.associationViews.concat(this.diagram.generalizationViews).concat(this.diagram.propertyViews);for(const e of o){const o=dg.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value);if(e instanceof pg){const r=this.drawLinePropertyText(V(o[o.length-2],"Diagram path expected to have at least 2 points"),V(o[o.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,e.property.value,!1);t=Math.min(t,r.position.x),n=Math.min(n,r.position.y),i=Math.max(i,vg(r).x),s=Math.max(s,vg(r).y)}for(const o of e.path)t=Math.min(t,o.x),n=Math.min(n,o.y),i=Math.max(i,o.x),s=Math.max(s,o.y)}this.virtualScreen=new og(new ig(t,n),new sg(i-t,s-n))}else this.setZoomLevel(1),this.screenOffset=new ig(0,0),this.virtualScreen=new og(new ig(this.canvasDimension.width/2,this.canvasDimension.height/2),new sg(0,0))}executeZoom(e,t){e=Math.max(e,ZE);const n=this.zoom;this.setZoomLevel(e),this.screenOffset=new ig(((t.x-this.canvasCenter.x)*(n-e)+this.screenOffset.x*n)/e,((t.y-this.canvasCenter.y)*(n-e)+this.screenOffset.y*n)/e),this.clearScreen(),this.drawAll()}zoomPoint(e,t){this.executeZoom(e,t)}zoomCenter(e){this.setZoomLevel(Math.max(e,ZE)),this.clearScreen(),this.drawAll()}zoomToFit(){this.autoRecenter(),this.zoomCenter(Math.max(Math.min(this.canvas.width/(this.virtualScreen.rectangle.width+2*this.screenPadding+20),this.canvas.height/(this.virtualScreen.rectangle.height+2*this.screenPadding+20)),ZE))}addClassView(e,t){if(!this.isReadOnly){const n=this.diagram.classViews.map((e=>e.id));let i=(0,o.A)();for(;n.includes(i);)i=(0,o.A)();const s=new rg(this.diagram,i,Er.create(e));return zE(s,t??this.canvasCoordinateToModelCoordinate(new ig(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2,this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2))),IE(this.diagram,s),KE(s),this.diagram.classViews.filter((t=>t.class.value!==e)).forEach((t=>{const n=t.class.value;e.generalizations.map((e=>e.value.rawType)).includes(n)&&kE(this.diagram,new hg(this.diagram,s,t)),n.generalizations.map((e=>e.value.rawType)).includes(e)&&kE(this.diagram,new hg(this.diagram,t,s)),Am(e).forEach((e=>{e.genericType.value.rawType===n&&ME(this.diagram,new pg(this.diagram,U_.create(e),s,t))})),Am(n).forEach((n=>{n.genericType.value.rawType===e&&ME(this.diagram,new pg(this.diagram,U_.create(n),t,s))}))})),this.drawClassView(s),this.drawScreen(),s}}drawBoundingBox(){this.ctx.fillStyle=this.backgroundColor,this.ctx.lineWidth=1,this.ctx.fillRect((this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x-this.screenPadding)*this.zoom+this.canvasCenter.x,(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y-this.screenPadding)*this.zoom+this.canvasCenter.y,(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom),this.ctx.strokeRect((this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x-this.screenPadding)*this.zoom+this.canvasCenter.x,(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y-this.screenPadding)*this.zoom+this.canvasCenter.y,(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom)}drawDiagram(){this.diagram.associationViews.forEach((e=>this.drawPropertyOrAssociation(e))),this.diagram.generalizationViews.forEach((e=>this.drawInheritance(e))),this.diagram.propertyViews.forEach((e=>this.drawPropertyOrAssociation(e))),this.diagram.classViews.forEach((e=>this.drawClassView(e))),this.showCanvasGrid&&this.drawCanvasGrid(),this.showScreenGrid&&this.drawScreenGrid()}drawAll(){this.drawBoundingBox(),this.drawDiagram()}drawScreenGrid(){const e=(this.virtualScreen.position.x+this.screenOffset.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t=(this.virtualScreen.position.y+this.screenOffset.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y,n=(this.virtualScreen.rectangle.width+2*this.screenPadding)*this.zoom,i=(this.virtualScreen.rectangle.height+2*this.screenPadding)*this.zoom;this.ctx.beginPath(),this.ctx.fillStyle=this.screenGridLabelTextColor,this.ctx.strokeStyle=this.screenGridLineColor,this.ctx.lineWidth=this.screenGridLineWidth,this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`;let s=0;for(let o=e;o<e+n-2*this.screenPadding;o+=this.screenGridSpacingX*this.zoom)this.ctx.fillText(`${s}`,o+5*this.zoom,t-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.x+s)}]`,o+5*this.zoom,t-(this.screenGridAxisTickLength+this.screenPadding-this.lineHeight)*this.zoom),this.ctx.moveTo(o,t-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom),this.ctx.lineTo(o,t+i-this.screenPadding*this.zoom),this.ctx.stroke(),s+=this.screenGridSpacingX;let o=0;for(let s=t;s<t+i-2*this.screenPadding;s+=this.screenGridSpacingY*this.zoom)this.ctx.fillText(`${o}`,e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,s+5*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.y+o)}]`,e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,s+(5+this.lineHeight)*this.zoom),this.ctx.moveTo(e-(this.screenGridAxisTickLength+this.screenPadding)*this.zoom,s),this.ctx.lineTo(e+n-this.screenPadding*this.zoom,s),this.ctx.stroke(),o+=this.screenGridSpacingY;this.showScreenBoxGuide&&(this.ctx.beginPath(),this.ctx.fillStyle=this.screenGuideLabelTextColor,this.ctx.strokeStyle=this.screenGuideLineColor,this.ctx.moveTo(e,t),this.ctx.lineTo(e,t+i-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.lineTo(e,t+i-2*this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+i-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+i-2*this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t),this.ctx.stroke(),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t),this.ctx.lineTo(e,t),this.ctx.stroke(),this.ctx.fillText(`${Math.round(this.virtualScreen.rectangle.width/2)}`,e+n/2-(this.screenPadding-5)*this.zoom,t+5*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.x+this.virtualScreen.rectangle.width/2)}]`,e+n/2-(this.screenPadding-5)*this.zoom,t+(5+this.lineHeight)*this.zoom),this.ctx.lineTo(e+n/2-this.screenPadding*this.zoom,t),this.ctx.lineTo(e+n/2-this.screenPadding*this.zoom,t+i-2*this.screenPadding*this.zoom),this.ctx.stroke(),this.ctx.fillText(`${Math.round(this.virtualScreen.rectangle.height/2)}`,e+5*this.zoom,t+i/2-(this.screenPadding-5)*this.zoom),this.ctx.fillText(`[${Math.round(this.virtualScreen.position.y+this.virtualScreen.rectangle.height/2)}]`,e+5*this.zoom,t+i/2-(this.screenPadding-5-this.lineHeight)*this.zoom),this.ctx.lineTo(e,t+i/2-this.screenPadding*this.zoom),this.ctx.lineTo(e+n-2*this.screenPadding*this.zoom,t+i/2-this.screenPadding*this.zoom),this.ctx.stroke()),this.ctx.strokeStyle=this.defaultLineColor,this.ctx.lineWidth=this.defaultLineWidth}drawCanvasGrid(){const e=-this.canvasCenter.x*this.zoom+this.canvasCenter.x,t=-this.canvasCenter.y*this.zoom+this.canvasCenter.y,n=this.canvasDimension.width,i=this.canvasDimension.height;this.ctx.setLineDash([5,5]),this.ctx.fillStyle=this.canvasGridLabelTextColor,this.ctx.strokeStyle=this.canvasGridLineColor,this.ctx.lineWidth=this.canvasGridLineWidth,this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`,this.ctx.beginPath();let s=0;for(let t=e;t<n;t+=this.canvasGridSpacingX*this.zoom)0!==t&&this.ctx.fillText(`[${Math.round(s)}]`,t+5*this.zoom,5*this.zoom),this.ctx.moveTo(t,0),this.ctx.lineTo(t,i),this.ctx.stroke(),s+=this.canvasGridSpacingX;let o=0;for(let e=t;e<i;e+=this.canvasGridSpacingY*this.zoom)0!==e&&this.ctx.fillText(`[${Math.round(o)}]`,5*this.zoom,e+5*this.zoom),this.ctx.moveTo(0,e),this.ctx.lineTo(n,e),this.ctx.stroke(),o+=this.canvasGridSpacingY;if(this.showCanvasBoxGuide&&(this.ctx.beginPath(),this.ctx.fillStyle=this.canvasGuideLabelTextColor,this.ctx.strokeStyle=this.canvasGuideLineColor,this.ctx.fillText(`[${Math.round(n/2)}]`,n/2+5*this.zoom,5*this.zoom),this.ctx.moveTo(n/2,0),this.ctx.lineTo(n/2,i),this.ctx.stroke(),this.ctx.fillText(`[${Math.round(i/2)}]`,5*this.zoom,i/2+5*this.zoom),this.ctx.moveTo(0,i/2),this.ctx.lineTo(n,i/2),this.ctx.stroke()),this.showScreenOffsetGuide){const n=5,i=35;this.ctx.beginPath(),this.ctx.setLineDash([]),this.ctx.fillStyle=this.screenOffsetGuideLabelTextColor,this.ctx.strokeStyle=this.screenOffsetGuideLineColor,this.ctx.arc(e+this.screenOffset.x*this.zoom,t+this.screenOffset.y*this.zoom,n*this.zoom,0,2*Math.PI),this.ctx.moveTo(e+(this.screenOffset.x-n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.lineTo(e+(this.screenOffset.x+2*n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.moveTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y-n)*this.zoom),this.ctx.lineTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y+2*n)*this.zoom),this.ctx.stroke(),this.ctx.setLineDash([5,5]),this.ctx.moveTo(e,t+this.screenOffset.y*this.zoom),this.ctx.lineTo(e+(this.screenOffset.x-n)*this.zoom,t+this.screenOffset.y*this.zoom),this.ctx.moveTo(e+this.screenOffset.x*this.zoom,t+0),this.ctx.lineTo(e+this.screenOffset.x*this.zoom,t+(this.screenOffset.y-n)*this.zoom),this.ctx.stroke(),this.ctx.beginPath(),this.screenOffset.x>=i&&this.screenOffset.y>=i?(this.ctx.fillText(`[${Math.round(this.screenOffset.x)}]`,e+(this.screenOffset.x+5)*this.zoom,t+5*this.zoom),this.ctx.fillText(`[${Math.round(this.screenOffset.y)}]`,e+5*this.zoom,t+(this.screenOffset.y+5)*this.zoom)):this.screenOffset.x>=0&&this.screenOffset.y>=0?this.ctx.fillText(`Δ [${Math.round(this.screenOffset.x)},${Math.round(this.screenOffset.y)}]`,e+(this.screenOffset.x+n+5)*this.zoom,t+(this.screenOffset.y+n+5)*this.zoom):this.ctx.fillText(`Δ [${Math.round(this.screenOffset.x)},${Math.round(this.screenOffset.y)}]`,e+(n+5)*this.zoom,t+(n+5)*this.zoom)}this.ctx.setLineDash([]),this.ctx.strokeStyle=this.defaultLineColor,this.ctx.lineWidth=this.defaultLineWidth}drawClassViewProperty(e,t,n,i,s){this.ctx.font=this.mouseOverClassView===e&&this.mouseOverClassProperty===t?`bold ${(this.fontSize-1)*(s?1:this.zoom)}px ${this.fontFamily}`:`${s?"bold":""} ${(this.fontSize-1)*(s?1:this.zoom)}px ${this.fontFamily}`;const o=eN(t);let r=this.ctx.measureText(`${o} : `).width;s||(this.ctx.fillText(`${o} : `,n,i),this.ctx.fillText(t.genericType.value.rawType.name,n+r,i),t.genericType.value.rawType instanceof cr&&(this.ctx.beginPath(),this.ctx.moveTo(n+r,i+(this.fontSize-1)*this.zoom),this.ctx.lineTo(n+r+this.ctx.measureText(t.genericType.value.rawType.name).width,i+(this.fontSize-1)*this.zoom),this.ctx.stroke())),r+=this.ctx.measureText(t.genericType.value.rawType.name).width,this.ctx.font=`${(this.fontSize-1)*(s?1:this.zoom)}px ${this.fontFamily}`;const a=bE(t.multiplicity.lowerBound,t.multiplicity.upperBound);return s||this.ctx.fillText(`[${a}]`,n+r,i),r+=this.ctx.measureText(`[${a}]`).width,r}computeClassNameWidth(e){return this.ctx.font=`bold ${this.fontSize}px ${this.fontFamily}`,this.ctx.textBaseline="top",this.ctx.measureText(this.truncateTextWithEllipsis(e.class.value.name)).width}ensureClassViewMeetMinDimensions(e){let t=this.computeClassNameWidth(e),n=this.lineHeight+2*this.classViewSpaceY;if(!e.hideStereotypes){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;for(const i of e.class.value.stereotypes){const e=`<< ${this.truncateTextWithEllipsis(i.value.value,this.maxLineLength-6)} >>`,s=this.ctx.measureText(e).width;t=Math.max(t,s),n+=this.lineHeight}}if(!e.hideTaggedValues){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`,this.ctx.textBaseline="top";for(const i of e.class.value.taggedValues){const e=`{ ${this.truncateTextWithEllipsis(`${i.tag.value.value} = ${i.value}`,this.maxLineLength-4)} }`,s=this.ctx.measureText(e).width;t=Math.max(t,s),n+=this.lineHeight}}if(e.hideProperties||(Am(e.class.value).forEach((i=>{if(!this.hasPropertyView(e,i)){const s=this.drawClassViewProperty(e,i,0,0,!0);t=Math.max(t,s),n+=this.lineHeight}})),n+=2*this.classViewSpaceY),t+=2*this.classViewSpaceX,!this.isReadOnly||this.enableLayoutAutoAdjustment){const i=e.rectangle.width&&e.rectangle.width>t?e.rectangle.width:t,s=e.rectangle.height&&e.rectangle.height>n?e.rectangle.height:n;WE(e,new sg(i,s))}}drawClassView(e){const t=this.computeClassNameWidth(e);this.ensureClassViewMeetMinDimensions(e),this.ctx.fillStyle=this.classViewFillColor;const n=this.modelCoordinateToCanvasCoordinate(e.position);this.ctx.fillRect(n.x,n.y,e.rectangle.width*this.zoom,e.rectangle.height*this.zoom),this.ctx.lineWidth=0!==this.selectedClasses.length&&-1!==this.selectedClasses.indexOf(e)?2:1,this.ctx.strokeRect(n.x,n.y,e.rectangle.width*this.zoom,e.rectangle.height*this.zoom);const i=e.position.x,s=e.position.y;this.ctx.lineWidth=1,this.ctx.fillStyle=this.classViewHeaderTextColor;let o=s;if(this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,!e.hideStereotypes)for(const t of e.class.value.stereotypes){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const n=`<< ${this.truncateTextWithEllipsis(t.value.value,this.maxLineLength-6)} >>`,s=this.ctx.measureText(n).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,this.ctx.fillText(n,(i+this.screenOffset.x+(e.rectangle.width-s)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(o+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),o+=this.lineHeight}this.ctx.font=`bold ${this.fontSize*this.zoom}px ${this.fontFamily}`;const r=this.truncateTextWithEllipsis(e.class.value.name);if(this.ctx.fillText(r,(i+this.screenOffset.x+(e.rectangle.width-t)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(o+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),o+=this.lineHeight,!e.hideTaggedValues)for(const t of e.class.value.taggedValues){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const n=`{ ${this.truncateTextWithEllipsis(`${t.tag.value.value} = ${t.value}`,this.maxLineLength-4)} }`,s=this.ctx.measureText(n).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`,this.ctx.fillText(n,(i+this.screenOffset.x+(e.rectangle.width-s)/2-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,(o+this.screenOffset.y+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y),o+=this.lineHeight}if(o+=3*this.classViewSpaceY,!e.hideProperties){this.ctx.beginPath();const t=(s+this.screenOffset.y+this.lineHeight+(e.hideStereotypes?0:e.class.value.stereotypes.length*this.lineHeight)+(e.hideTaggedValues?0:e.class.value.taggedValues.length*this.lineHeight)+this.classViewSpaceY-this.canvasCenter.y)*this.zoom+this.canvasCenter.y;this.ctx.moveTo((i+this.screenOffset.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t),this.ctx.lineTo((i+this.screenOffset.x+e.rectangle.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,t),this.ctx.stroke();for(const t of Am(e.class.value))if(!this.hasPropertyView(e,t)){this.ctx.fillStyle=t instanceof j_?this.classViewDerivedPropertyTextColor:t.genericType.value.rawType instanceof pm?this.classViewPrimitivePropertyTextColor:this.classViewPropertyTextColor;const n=(i+this.screenOffset.x+this.classViewSpaceX-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,s=(o+this.screenOffset.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y;this.drawClassViewProperty(e,t,n,s,!1),o+=this.lineHeight}}KE(e)}drawLinePropertyNameAndMultiplicity(e,t,n,i,s,o){this.ctx.font=`${this.fontSize}px ${this.fontFamily}`;const r=eN(e),a=bE(e.multiplicity.lowerBound,e.multiplicity.upperBound),c=this.ctx.measureText(r).width,l=this.ctx.measureText(a).width;this.ctx.font=`${this.fontSize*this.zoom}px ${this.fontFamily}`;const d=t(c),u=n(c),p=this.modelCoordinateToCanvasCoordinate(new ig(t(c),n(c)));o||this.ctx.fillText(r,p.x,p.y);const h=i(l),m=s(l),g=this.modelCoordinateToCanvasCoordinate(new ig(i(l),s(l)));o||this.ctx.fillText(a,g.x,g.y);const f=new ig(Math.min(d,h),Math.min(u,m));return new og(f,new sg(Math.max(d,h)+Math.max(c,l)-f.x,Math.max(u,m)+this.lineHeight-f.y))}drawLinePropertyText(e,t,n,i,s){this.ctx.textBaseline="top",this.ctx.fillStyle=this.relationshipViewTextColor;const o=e.x,r=e.y,a=t.x,c=t.y,l=n.rectangle;if(r<c){const e=o+(a-o)/(c-r)*(n.position.y-r);if(e>n.position.x&&e<n.position.x+l.width)return this.drawLinePropertyNameAndMultiplicity(i,(t=>e<n.position.x+l.width/2?e+this.propertySpacing:e-t-this.propertySpacing),(e=>n.position.y-this.lineHeight-this.propertySpacing),(t=>e<n.position.x+l.width/2?e-t-this.propertySpacing:e+this.propertySpacing),(e=>n.position.y-this.lineHeight-this.propertySpacing),s)}else{const e=o+(a-o)/(c-r)*(n.position.y+l.height-r);if(e>n.position.x&&e<n.position.x+l.width)return this.drawLinePropertyNameAndMultiplicity(i,(t=>e<n.position.x+l.width/2?e+this.propertySpacing:e-t-this.propertySpacing),(e=>n.position.y+l.height+this.propertySpacing),(t=>e<n.position.x+l.width/2?e-t-this.propertySpacing:e+this.propertySpacing),(e=>n.position.y+l.height+this.propertySpacing),s)}if(o<a){const e=r+(c-r)/(a-o)*(n.position.x-o);if(e>n.position.y&&e<n.position.y+l.height)return this.drawLinePropertyNameAndMultiplicity(i,(e=>n.position.x-e-this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e+this.propertySpacing:e-this.lineHeight-this.propertySpacing),(e=>n.position.x-e-this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e-this.lineHeight-this.propertySpacing:e+this.propertySpacing),s)}else{const e=r+(c-r)/(a-o)*(n.position.x+n.rectangle.width-o);if(e>n.position.y&&e<n.position.y+n.rectangle.height)return this.drawLinePropertyNameAndMultiplicity(i,(e=>n.position.x+n.rectangle.width+this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e+this.propertySpacing:e-this.lineHeight-this.propertySpacing),(e=>n.position.x+n.rectangle.width+this.propertySpacing),(t=>e<n.position.y+n.rectangle.height/2?e-this.lineHeight-this.propertySpacing:e+this.propertySpacing),s)}return new og(new ig(0,0),new sg(0,0))}drawPropertyOrAssociation(e){const t=dg.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value),n=e.property.value;if(this.drawLinePropertyText(V(t[t.length-2],"Diagram path expected to have at least 2 points"),V(t[t.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,n,!1),this.ctx.beginPath(),this.ctx.lineWidth=e===this.selectedPropertyOrAssociation?2:1,t.forEach(((e,t)=>{const n=this.modelCoordinateToCanvasCoordinate(e);0===t?this.ctx.moveTo(n.x,n.y):this.ctx.lineTo(n.x,n.y)})),this.ctx.stroke(),this.ctx.lineWidth=1,n instanceof Yh){const i=t[1],s=t[0],o=i.x,r=i.y,a=s.x,c=s.y,l=e.from;let d=0,u=0;if(c>r){const e=o+(a-o)/(c-r)*(l.classView.value.position.y-r);e>l.classView.value.position.x&&e<l.classView.value.position.x+l.classView.value.rectangle.width&&(d=(e-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(l.classView.value.position.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const e=o+(a-o)/(c-r)*(l.classView.value.position.y+l.classView.value.rectangle.height-r);e>l.classView.value.position.x&&e<l.classView.value.position.x+l.classView.value.rectangle.width&&(d=(e-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(l.classView.value.position.y+l.classView.value.rectangle.height-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(a>o){const e=r+(c-r)/(a-o)*(l.classView.value.position.x-o);e>l.classView.value.position.y&&e<l.classView.value.position.y+l.classView.value.rectangle.height&&(d=(l.classView.value.position.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(e-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const e=r+(c-r)/(a-o)*(l.classView.value.position.x+l.classView.value.rectangle.width-o);e>l.classView.value.position.y&&e<l.classView.value.position.y+l.classView.value.rectangle.height&&(d=(l.classView.value.position.x+l.classView.value.rectangle.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,u=(e-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(n.aggregation===B_.COMPOSITE||n.aggregation===B_.SHARED){let e=Math.atan((c-r)/(a-o));e=a>=o?e:e+Math.PI,this.ctx.beginPath(),this.ctx.moveTo(d+(this.screenOffset.x+Ng(this.diamond[0],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[0],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Ng(this.diamond[1],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[1],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Ng(this.diamond[2],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[2],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Ng(this.diamond[3],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[3],e))*this.zoom),this.ctx.lineTo(d+(this.screenOffset.x+Ng(this.diamond[0],e))*this.zoom,u+(this.screenOffset.y+bg(this.diamond[0],e))*this.zoom),n.aggregation===B_.SHARED&&(this.ctx.fillStyle=this.propertyViewSharedDiamondColor),n.aggregation===B_.COMPOSITE&&(this.ctx.fillStyle=this.propertyViewOwnedDiamondColor),this.ctx.fill(),this.ctx.stroke(),this.ctx.lineWidth=1}}}drawInheritance(e){const t=e.to.classView.value.rectangle,n=dg.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value),i=V(n[n.length-2],"Diagram path expected to have at least 2 points").x,s=V(n[n.length-2],"Diagram path expected to have at least 2 points").y,o=V(n[n.length-1],"Diagram path expected to have at least 2 points").x,r=V(n[n.length-1],"Diagram path expected to have at least 2 points").y;let a=0,c=0;if(r>s){const n=i+(o-i)/(r-s)*(e.to.classView.value.position.y-s);n>e.to.classView.value.position.x&&n<e.to.classView.value.position.x+t.width&&(a=(n-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(e.to.classView.value.position.y-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const n=i+(o-i)/(r-s)*(e.to.classView.value.position.y+t.height-s);n>e.to.classView.value.position.x&&n<e.to.classView.value.position.x+t.width&&(a=(n-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(e.to.classView.value.position.y+t.height-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}if(o>i){const n=s+(r-s)/(o-i)*(e.to.classView.value.position.x-i);n>e.to.classView.value.position.y&&n<e.to.classView.value.position.y+t.height&&(a=(e.to.classView.value.position.x-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(n-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}else{const n=s+(r-s)/(o-i)*(e.to.classView.value.position.x+t.width-i);n>e.to.classView.value.position.y&&n<e.to.classView.value.position.y+t.height&&(a=(e.to.classView.value.position.x+t.width-this.canvasCenter.x)*this.zoom+this.canvasCenter.x,c=(n-this.canvasCenter.y)*this.zoom+this.canvasCenter.y)}this.ctx.beginPath(),this.ctx.lineWidth=e===this.selectedInheritance?2:1,n.forEach(((e,t)=>{const n=this.modelCoordinateToCanvasCoordinate(e);0===t?this.ctx.moveTo(n.x,n.y):this.ctx.lineTo(n.x,n.y)})),this.ctx.stroke();let l=Math.atan((r-s)/(o-i));l=o>=i?l:l+Math.PI,this.ctx.beginPath(),this.ctx.moveTo(a+(this.screenOffset.x+Ng(this.triangle[0],l))*this.zoom,c+(this.screenOffset.y+bg(this.triangle[0],l))*this.zoom),this.ctx.lineTo(a+(this.screenOffset.x+Ng(this.triangle[1],l))*this.zoom,c+(this.screenOffset.y+bg(this.triangle[1],l))*this.zoom),this.ctx.lineTo(a+(this.screenOffset.x+Ng(this.triangle[2],l))*this.zoom,c+(this.screenOffset.y+bg(this.triangle[2],l))*this.zoom),this.ctx.lineTo(a+(this.screenOffset.x+Ng(this.triangle[0],l))*this.zoom,c+(this.screenOffset.y+bg(this.triangle[0],l))*this.zoom),this.ctx.fillStyle=this.generalizationViewInheritanceTriangeFillColor,this.ctx.fill(),this.ctx.stroke(),this.ctx.lineWidth=1}reorderDiagramDomain(e,t){const n=t.classViews.filter((t=>t!==e));return n.push(e),n}potentiallyShiftRelationships(e,t,n,i){e.forEach((e=>{-1!==t.indexOf(e.from.classView.value)&&-1!==t.indexOf(e.to.classView.value)&&YE(e,e.path.map((e=>new ig(e.x-n,e.y-i))))}))}recenter(){if(0!==this.selectedClasses.length){const e=S(this.selectedClasses);e&&this.center(e.position.x+e.rectangle.width/2,e.position.y+e.rectangle.height/2)}else this.autoRecenter()}switchToZoomMode(){this.changeMode(this.interactionMode!==XE.ZOOM_IN?XE.ZOOM_IN:XE.ZOOM_OUT,qE.NONE)}switchToViewMode(){this.changeMode(XE.LAYOUT,qE.NONE)}switchToPanMode(){this.changeMode(XE.PAN,qE.NONE)}switchToAddPropertyMode(){this.isReadOnly||this.changeMode(XE.ADD_RELATIONSHIP,qE.PROPERTY)}switchToAddInheritanceMode(){this.isReadOnly||this.changeMode(XE.ADD_RELATIONSHIP,qE.INHERITANCE)}switchToAddClassMode(){this.isReadOnly||this.changeMode(XE.ADD_CLASS,qE.NONE)}ejectProperty(){this.isReadOnly||(this.mouseOverClassProperty?this.mouseOverClassProperty.genericType.value.rawType instanceof rr&&this.addClassView(this.mouseOverClassProperty.genericType.value.rawType,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(new ig(this.cursorPosition.x,this.cursorPosition.y)))):this.selectedClassProperty&&(this.selectedClassProperty.property.genericType.value.rawType instanceof rr&&this.addClassView(this.selectedClassProperty.property.genericType.value.rawType,this.selectedClassProperty.selectionPoint),this.selectedClassProperty=void 0))}getSuperTypeLevels(e,t,n,i){if(e.length){const s=(0,ct.A)(e.flatMap((e=>e.class.value.generalizations.map((e=>new rg(t,(0,o.A)(),Er.create(ym(e.value,rr))))))),(e=>e.class.value));if(s.forEach((e=>this.ensureClassViewMeetMinDimensions(e))),-1===i||n<i){const o=this.getSuperTypeLevels(s,t,n+1,i);return o.push(e),o}return[e]}return[]}layoutTaxonomy(e,t,n,i){return e.reverse(),[e.flatMap(((t,s)=>{let o=0,r=0,a=0,c=0;if(s>0){const t=e[s-1];if(t.length){const e=[...t].sort(((e,t)=>e.position.x-t.position.x));a=e[0].position.x,o=e[e.length-1].position.x+e[e.length-1].rectangle.width-e[0].position.x;const n=[...t].sort(((e,t)=>e.position.y-t.position.y));c=n[0].position.y,r=n[n.length-1].position.y+n[n.length-1].rectangle.height-n[0].position.y}}const l=Math.max(...t.map((e=>e.rectangle.height))),d=a+o/2-t.map((e=>e.rectangle.width)).reduce(((e,t)=>e+t+10))/2,u=i?c-l-30:c+r+30;return(n||s>0)&&(zE(t[0],new ig(d,u)),t.forEach(((e,n)=>{if(n>0){const i=t[n-1];zE(e,new ig(i.position.x+i.rectangle.width+10,u))}}))),t})),(i?e:e.slice().reverse()).slice(0,e.length-1).flatMap(((n,i)=>n.flatMap((n=>e[i+1].flatMap((e=>n.class.value.generalizations.map((e=>e.value.rawType)).includes(e.class.value)?new hg(t,n,e):[]))))))]}keydown(e){if("Delete"===e.code)this.isReadOnly||(this.selectedClasses.forEach((e=>{xE(this.diagram,e),wE(this.diagram,this.diagram.associationViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e)))),RE(this.diagram,this.diagram.generalizationViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e)))),LE(this.diagram,this.diagram.propertyViews.filter((t=>!(t.from.classView.value===e||t.to.classView.value===e))))})),this.selectedPropertyOrAssociation instanceof vE?OE(this.diagram,this.selectedPropertyOrAssociation):this.selectedPropertyOrAssociation instanceof pg&&DE(this.diagram,this.selectedPropertyOrAssociation),this.selectedInheritance&&this.diagram.generalizationViews.find((e=>e===this.selectedInheritance))&&PE(this.diagram,this.selectedInheritance),this.setSelectedClasses([]),this.drawScreen());else if("KeyE"===e.code)this.selectedClassProperty?(this.handleEditProperty(this.selectedClassProperty.property,this.selectedClassProperty.selectionPoint,void 0),e.preventDefault()):this.selectedPropertyOrAssociation?(this.handleEditProperty(this.selectedPropertyOrAssociation.property.value,this.selectedPoint??(this.selectedPropertyOrAssociation.path.length?this.selectedPropertyOrAssociation.path[0]:this.selectedPropertyOrAssociation.from.classView.value.center()),this.selectedPropertyOrAssociation),e.preventDefault()):1===this.selectedClasses.length&&this.handleEditClassView(this.selectedClasses[0]);else if(e.altKey&&"KeyP"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{FE(e,!e.hideProperties)})),this.drawScreen());else if(e.altKey&&"KeyS"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{BE(e,!e.hideStereotypes)})),this.drawScreen());else if(e.altKey&&"KeyT"===e.code)this.isReadOnly||0!==this.selectedClasses.length&&(this.selectedClasses.forEach((e=>{jE(e,!e.hideTaggedValues)})),this.drawScreen());else if(e.altKey&&"ArrowDown"===e.code)this.isReadOnly||1!==this.selectedClasses.length||this.handleAddSimpleProperty(this.selectedClasses[0]);else if("ArrowUp"===e.code){const e=this.getSuperTypeLevels(this.selectedClasses,this.diagram,0,1),t=this.layoutTaxonomy(e,this.diagram,!1,!0);t[0].forEach((e=>IE(this.diagram,e))),t[1].forEach((e=>kE(this.diagram,e))),this.drawScreen()}else if("ArrowDown"===e.code){const e=(0,ct.A)(this.selectedClasses.flatMap((e=>e.class.value._subclasses.flatMap((e=>new rg(this.diagram,(0,o.A)(),Er.create(e)))))),(e=>e.class.value));if(e.length>0){e.forEach((e=>this.ensureClassViewMeetMinDimensions(e)));const t=this.layoutTaxonomy([e,this.selectedClasses],this.diagram,!1,!1);t[0].forEach((e=>IE(this.diagram,e))),t[1].forEach((e=>kE(this.diagram,e)))}this.drawScreen()}}mouseup(e){const t=this.resolveMouseEventCoordinate(e);switch(this.interactionMode){case XE.ZOOM_IN:{const e=Math.round(100*this.zoom);let n;n=e<=QE[0]-10?10*Math.floor(e/10)+10:e>=QE[QE.length-1]?100*Math.floor(e/100)+100:V(QE.find((t=>t>e))),this.zoomPoint(n/100,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)));break}case XE.ZOOM_OUT:{const e=Math.round(100*this.zoom);let n;n=e<=QE[0]?10*Math.ceil(e/10)-10:e>=QE[QE.length-1]+100?100*Math.ceil(e/100)-100:V((0,hm.A)(QE,(t=>t<e))),this.zoomPoint(n/100,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)));break}}if(!this.isReadOnly)switch(this.interactionMode){case XE.LAYOUT:this.diagram.generalizationViews.forEach((e=>UE(e))),this.diagram.associationViews.forEach((e=>UE(e))),this.diagram.propertyViews.forEach((e=>UE(e)));break;case XE.ADD_CLASS:{const e=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));this.onAddClassViewClick(e),this.changeMode(XE.LAYOUT,qE.NONE);break}case XE.ADD_RELATIONSHIP:if(this.startClassView&&this.selectionStart&&this.handleAddRelationship){const e=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));for(let t=this.diagram.classViews.length-1;t>=0;t--){const n=this.diagram.classViews[t];if(n.contains(e.x,e.y)){const t=this.handleAddRelationship(this.startClassView,n);t&&(VE(t.from,-(this.startClassView.position.x+this.startClassView.rectangle.width/2-this.selectionStart.x)),HE(t.from,-(this.startClassView.position.y+this.startClassView.rectangle.height/2-this.selectionStart.y)),VE(t.to,-(n.position.x+n.rectangle.width/2-e.x)),HE(t.to,-(n.position.y+n.rectangle.height/2-e.y)))}}this.changeMode(XE.LAYOUT,qE.NONE)}}this.setLeftClick(!1),this.setMiddleClick(!1),this.setRightClick(!1),this.setSelectedClassCorner(void 0),this.setSelectionStart(void 0),this.drawScreen()}mousedblclick(e){const t=this.resolveMouseEventCoordinate(e);if([XE.ADD_RELATIONSHIP,XE.ADD_CLASS,XE.ZOOM_IN,XE.ZOOM_OUT].includes(this.interactionMode))return;const n=this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t));if(this.mouseOverClassProperty&&this.onClassPropertyDoubleClick)return void this.onClassPropertyDoubleClick(this.mouseOverClassProperty,n,void 0);if(this.mouseOverClassName&&this.onClassNameDoubleClick)return void this.onClassNameDoubleClick(this.mouseOverClassName,n);const i=this.diagram.classViews.find((e=>e.contains(n.x,n.y)));i&&this.onClassViewDoubleClick?this.onClassViewDoubleClick(i,n):this.mouseOverPropertyHolderViewLabel&&this.onClassPropertyDoubleClick?this.onClassPropertyDoubleClick(this.mouseOverPropertyHolderViewLabel.property.value,n,this.mouseOverPropertyHolderViewLabel):this.onBackgroundDoubleClick&&this.onBackgroundDoubleClick(n)}mousedown(e){const t=this.resolveMouseEventCoordinate(e);this.setSelectionStart(void 0),this.setSelectedClassCorner(void 0),this.setSelectedPropertyOrAssociation(void 0),this.setSelectedInheritance(void 0),this.selection=void 0,this.selectedClassProperty=void 0,this.selectedPoint=void 0,this.startClassView=void 0;const n=this.eventCoordinateToCanvasCoordinate(t),i=this.canvasCoordinateToModelCoordinate(n);if(0===e.button)switch(this.setLeftClick(!0),this.interactionMode){case XE.PAN:return void(this.positionBeforeLastMove=t);case XE.LAYOUT:for(let e=this.diagram.classViews.length-1;e>=0;e--){const t=this.diagram.classViews[e];if(Tg(t).contains(i.x,i.y)){this.setSelectedClasses([]),this.setSelectedClassCorner(this.diagram.classViews[e]),this.isReadOnly||AE(this.diagram,this.reorderDiagramDomain(V(this.selectedClassCorner),this.diagram));break}}if(!this.selectedClassCorner)if(this.mouseOverClassProperty)this.selectedClassProperty={property:this.mouseOverClassProperty,selectionPoint:i},this.setSelectedClasses([]);else{let e=!1;for(let t=this.diagram.classViews.length-1;t>=0;t--){const s=this.diagram.classViews[t];if(s.contains(i.x,i.y)){0!==this.selectedClasses.length&&-1!==this.selectedClasses.indexOf(s)||this.setSelectedClasses([s]),this.isReadOnly||AE(this.diagram,this.reorderDiagramDomain(this.selectedClasses[0],this.diagram)),this.clickX=n.x/this.zoom-this.screenOffset.x,this.clickY=n.y/this.zoom-this.screenOffset.y,this._selectedClassesInitialPositions=this.selectedClasses.map((e=>({classView:e,oldPos:new ig(e.position.x,e.position.y)}))),e=!0;break}}if(e||this.setSelectedClasses([]),!this.selectedClasses.length){for(const e of this.diagram.generalizationViews){const t=$E(e,i.x,i.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedInheritance(e);break}}if(!this.selectedPoint)for(const e of this.diagram.associationViews){const t=$E(e,i.x,i.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedPropertyOrAssociation(e);break}}if(!this.selectedPoint)for(const e of this.diagram.propertyViews){const t=$E(e,i.x,i.y,this.zoom,!this.isReadOnly);if(t){this.selectedPoint=t,this.setSelectedPropertyOrAssociation(e);break}}this.selectedPoint||this.setSelectionStart(i)}}break;case XE.ADD_RELATIONSHIP:this.setSelectionStart(i),this.startClassView=void 0;for(let e=this.diagram.classViews.length-1;e>=0;e--){const t=this.diagram.classViews[e];t.contains(i.x,i.y)&&(this.startClassView=t)}this.startClassView||this.changeMode(XE.LAYOUT,qE.NONE)}else{if(1===e.button)return this.setMiddleClick(!0),void(this.positionBeforeLastMove=t);if(2===e.button)return this.setRightClick(!0),this.positionBeforeLastMove=t,void(this.mouseOverClassView&&(this.onClassViewRightClick(this.mouseOverClassView,i),this.setRightClick(!1)))}this.clearScreen(),this.drawAll()}mousewheel(e){const t=this.resolveMouseEventCoordinate(e);if(e.preventDefault(),e.stopImmediatePropagation(),Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;const n=this.zoom-e.deltaY/120*.05;this.executeZoom(n,this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(t)))}mousemove(e){const t=this.resolveMouseEventCoordinate(e);if(this.cursorPosition=t,this.rightClick||this.middleClick||this.leftClick&&this.interactionMode===XE.PAN)this.screenOffset=new ig(this.screenOffset.x+(t.x-this.positionBeforeLastMove.x)/this.zoom,this.screenOffset.y+(t.y-this.positionBeforeLastMove.y)/this.zoom),this.positionBeforeLastMove=t,this.clearScreen(),this.drawAll();else if(this.leftClick){const e=this.eventCoordinateToCanvasCoordinate(t),n=this.canvasCoordinateToModelCoordinate(e);switch(this.interactionMode){case XE.LAYOUT:if(this.selectedClassCorner&&(WE(this.selectedClassCorner,new sg(n.x-this.selectedClassCorner.position.x,n.y-this.selectedClassCorner.position.y)),KE(this.selectedClassCorner),this.drawClassView(this.selectedClassCorner),this.drawScreen()),!this.selectionStart&&this.selectedClasses.length&&!this.isReadOnly){let t=0,n=0;this.selectedClasses.forEach(((i,s)=>{const o=this._selectedClassesInitialPositions.length>s?this._selectedClassesInitialPositions[s]:void 0;if(o){const s=e.x/this.zoom-this.screenOffset.x-(this.clickX-o.oldPos.x),r=e.y/this.zoom-this.screenOffset.y-(this.clickY-o.oldPos.y);t=i.position.x-s,n=i.position.y-r,zE(i,new ig(s,r)),KE(i)}})),this.potentiallyShiftRelationships(this.diagram.associationViews,this.selectedClasses,t,n),this.potentiallyShiftRelationships(this.diagram.propertyViews,this.selectedClasses,t,n),this.potentiallyShiftRelationships(this.diagram.generalizationViews,this.selectedClasses,t,n),this.drawScreen()}if(this.selectedPoint&&(this.selectedPropertyOrAssociation?GE(this.selectedPropertyOrAssociation,this.selectedPoint,n):this.selectedInheritance&&GE(this.selectedInheritance,this.selectedPoint,n),this.selectedPoint=n,this.drawScreen()),this.selectionStart){this.clearScreen(),this.drawAll();const t=this.modelCoordinateToCanvasCoordinate(this.selectionStart);this.ctx.fillStyle=this.selectionBoxBorderColor,this.ctx.fillRect(t.x,t.y,e.x-t.x,e.y-t.y),this.ctx.strokeRect(t.x,t.y,e.x-t.x,e.y-t.y);const n=(e.x-t.x)/this.zoom,i=(e.y-t.y)/this.zoom;this.selection=new og(new ig(n>0?this.selectionStart.x:this.selectionStart.x+n,i>0?this.selectionStart.y:this.selectionStart.y+i),new sg(Math.abs(n),Math.abs(i))),this.setSelectedClasses([]);for(const e of this.diagram.classViews)(Cg(this.selection,e)||Cg(e,this.selection))&&this.setSelectedClasses([...this.selectedClasses,e])}break;case XE.ADD_RELATIONSHIP:if(this.selectionStart&&this.startClassView){this.clearScreen(),this.drawBoundingBox();const t=this.modelCoordinateToCanvasCoordinate(this.selectionStart);this.ctx.moveTo(t.x,t.y),this.ctx.lineTo(e.x,e.y),this.ctx.stroke(),this.drawDiagram()}}}else{this.drawScreen();const e=this.eventCoordinateToCanvasCoordinate(t),n=this.canvasCoordinateToModelCoordinate(e);this.setMouseOverClassView(void 0),this.setMouseOverClassName(void 0),this.setMouseOverClassCorner(void 0),this.setMouseOverClassProperty(void 0),this.setMouseOverPropertyHolderViewLabel(void 0);for(const t of this.diagram.classViews.slice().reverse())if(t.contains(n.x,n.y)){this.setMouseOverClassView(t),Tg(t).contains(n.x,n.y)&&this.setMouseOverClassCorner(t);const i=t.class.value;let s=t.position.y+this.classViewSpaceY;s+=t.hideStereotypes?0:i.stereotypes.length*this.lineHeight;const o=this.computeClassNameWidth(t);new og(this.modelCoordinateToCanvasCoordinate(new ig(t.position.x+(t.rectangle.width-o)/2,s)),new sg(o,this.lineHeight)).contains(e.x,e.y)&&this.setMouseOverClassName(t),s+=this.lineHeight,s+=t.hideTaggedValues?0:i.taggedValues.length*this.lineHeight,s+=2*this.classViewSpaceY;for(const n of Am(i))this.hasPropertyView(t,n)||(this.ctx.font=`${(this.fontSize-1)*this.zoom}px ${this.fontFamily}`,new og(this.modelCoordinateToCanvasCoordinate(new ig(t.position.x+this.classViewSpaceX,s)),new sg(this.drawClassViewProperty(t,n,0,0,!0)*this.zoom,this.lineHeight*this.zoom)).contains(e.x,e.y)&&this.setMouseOverClassProperty(n),s+=this.lineHeight);break}const i=[...this.diagram.propertyViews,...this.diagram.associationViews];for(const e of i){const t=dg.pruneUnnecessaryInsidePoints(e.buildFullPath(),e.from.classView.value,e.to.classView.value);if(this.drawLinePropertyText(V(t[t.length-2],"Diagram path expected to have at least 2 points"),V(t[t.length-1],"Diagram path expected to have at least 2 points"),e.to.classView.value,e.property.value,!1).contains(n.x,n.y)){this.setMouseOverPropertyHolderViewLabel(e);break}}}}}class nN extends Of{diagramInfo;_renderer;diagram;diagramClasses;graph;diagramPath;filePath;fileLine;fileColumn;constructor(e,t,n,i,s,o){super(e),(0,ke.Gn)(this,{_renderer:ke.sH,diagram:ke.sH,diagramInfo:ke.sH,diagramName:ke.EW,diagramCursorClass:ke.EW,addClassView:ke.L3,rebuild:ke.XI,setRenderer:ke.XI}),this.diagramPath=n,this.filePath=i,this.fileLine=s,this.fileColumn=o,this.diagramInfo=t;const[r,a,c]=fE(t);this.diagram=r,this.graph=a,this.diagramClasses=c}get label(){return bf(this.diagramPath)}get description(){return`Diagram: ${bf(this.diagramPath)}`}get diagramName(){return mm(this.diagramPath)}match(e){return e instanceof nN&&this.diagramPath===e.diagramPath}get renderer(){return V(this._renderer,"Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)")}get isDiagramRendererInitialized(){return Boolean(this._renderer)}get diagramCursorClass(){if(!this.isDiagramRendererInitialized)return"";if(this.renderer.middleClick||this.renderer.rightClick)return"diagram-editor__cursor--grabbing";switch(this.renderer.interactionMode){case XE.PAN:return this.renderer.leftClick?"diagram-editor__cursor--grabbing":"diagram-editor__cursor--grab";case XE.ZOOM_IN:return"diagram-editor__cursor--zoom-in";case XE.ZOOM_OUT:return"diagram-editor__cursor--zoom-out";case XE.LAYOUT:return this.renderer.selectionStart?"diagram-editor__cursor--crosshair":this.renderer.mouseOverClassCorner||this.renderer.selectedClassCorner?"diagram-editor__cursor--resize":this.renderer.mouseOverClassView?"diagram-editor__cursor--pointer":"";default:return""}}rebuild(e){this.diagramInfo=e;const[t,n,i]=fE(e);this.diagram=t,this.graph=n,this.diagramClasses=i,this.fileLine=e.diagram.sourceInformation.line,this.fileColumn=e.diagram.sourceInformation.column}setupRenderer(){this.renderer.onClassViewDoubleClick=e=>{const t=this.diagramClasses.get(e.class.value.path)?.sourceInformation;if(t){const e=new Tf(t.sourceId,t.startLine,t.startColumn);(0,ke.gP)(this.ideStore.executeNavigation(e)).catch(this.ideStore.applicationStore.alertUnhandledError)}}}setRenderer(e){this._renderer=e}*addClassView(e,t){const n=((e,t,n)=>{e.profiles.forEach((e=>{const n=`${e.package}${""===e.package?"":Po}${e.name}`;if(!t.getOwnNullableProfile(n)){const n=new Zh(e.name);Em(Tm(t.root,e.package,!0,new Map),n),t.setOwnProfile(n.path,n),e.tags.forEach((e=>x(n.p_tags,new V_(n,e)))),e.stereotypes.forEach((e=>x(n.p_stereotypes,new H_(n,e))))}})),e.enumerations.forEach((e=>{const n=`${e.package}${""===e.package?"":Po}${e.name}`;if(!t.getOwnNullableEnumeration(n)){const n=new cr(e.name);Em(Tm(t.root,e.package,!0,new Map),n),t.setOwnType(n.path,n)}}));const i=e.class,s=`${i.package}${""===i.package?"":Po}${i.name}`;let o=t.getOwnNullableClass(s);o||(o=new rr(i.name),Em(Tm(t.root,i.package,!0,new Map),o),t.setOwnType(o.path,o));const r=n.get(o.path)?.isStubbed??!0;return n.set(o.path,{sourceInformation:i.sourceInformation,isStubbed:!1}),e.specializations.forEach((e=>{const i=V(o),s=hE(V(`${e.package}${""===e.package?"":Po}${e.name}`),t,n,e.sourceInformation);x(i._subclasses,s),s.generalizations.map((e=>e.value.rawType)).includes(i)||x(s.generalizations,Kh.create(new Xh(i)))})),r&&gE(o,i,t,n),o})((0,ge.iu)(uE,yield this.ideStore.client.getDiagramClassInfo(e)),this.graph,this.diagramClasses),i=this.renderer.addClassView(n,t);i&&(i.id=((e,t)=>{if(!t.match(/^[\w_-]+$/))throw new Error("Token must only contain digits, letters, or special characters _ and -");const n=e.map((e=>{const n=e.match(new RegExp(`^${t}_(?<count>\\d+)$`));return n?.groups?.count?parseInt(n.groups.count,10):0})).reduce(((e,t)=>Math.max(e,t)),0);return`${t}_${n+1}`})(this.diagram.classViews.map((e=>e.id)),"cview"))}registerCommands(){const e=()=>this.ideStore.tabManagerState.currentTab===this&&this.isDiagramRendererInitialized;this.ideStore.applicationStore.commandService.registerCommand({key:Lf.RECENTER,trigger:e,action:()=>this.renderer.recenter()}),this.ideStore.applicationStore.commandService.registerCommand({key:Lf.USE_ZOOM_TOOL,trigger:e,action:()=>this.renderer.switchToZoomMode()}),this.ideStore.applicationStore.commandService.registerCommand({key:Lf.USE_VIEW_TOOL,trigger:e,action:()=>this.renderer.switchToViewMode()}),this.ideStore.applicationStore.commandService.registerCommand({key:Lf.USE_PAN_TOOL,trigger:e,action:()=>this.renderer.switchToPanMode()})}deregisterCommands(){[Lf.RECENTER,Lf.USE_ZOOM_TOOL,Lf.USE_VIEW_TOOL,Lf.USE_PAN_TOOL].forEach((e=>this.ideStore.applicationStore.commandService.deregisterCommand(e)))}}class iN{text="";isCaseSensitive=!1;isRegExp=!1;constructor(){(0,ke.Gn)(this,{text:ke.sH,isCaseSensitive:ke.sH,isRegExp:ke.sH,reset:ke.XI,setText:ke.XI,setCaseSensitive:ke.XI,setRegExp:ke.XI})}reset(){this.setText(""),this.setCaseSensitive(!1),this.setRegExp(!1)}setText(e){this.text=e}setCaseSensitive(e){this.isCaseSensitive=e}setRegExp(e){this.isRegExp=e}}class sN extends R{}const oN=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,rN=/^\/?(?:\w+\/)*\w+(?:\.\w+)*$/,aN=/(?:(?<url>https?:[/]{2}[^\s"'!*(){}|\\^<>`]*[^\s"':,.!?{}|\\^~[\]`()<>])|(?<path>resource:(?<path_sourceId>\/?(?:\w+\/)*\w+(?:\.\w+)*) (?:line:(?<path_line>\d+)) (?:column:(?<path_column>\d+))))/;class cN{ideStore;constructor(e){this.ideStore=e}}class lN extends cN{result;constructor(e,t){super(e),this.result=t}}class dN extends cN{result;constructor(e,t){super(e),this.result=t}}class uN{ideStore;usageConcept;searchEntries=[];constructor(e,t,n,i){(0,ke.Gn)(this,{searchEntries:ke.sH,numberOfFiles:ke.EW,numberOfResults:ke.EW}),this.ideStore=e,this.usageConcept=t;const s=new Map;n.forEach(((e,t)=>{let n;s.has(e.source)?n=V(s.get(e.source)):(n=new f_,n.sourceId=e.source,s.set(e.source,n));const o=new g_(e.source,e.startLine,e.startColumn,e.endLine,e.endColumn);o.preview=i.find((t=>t.sourceId===e.source&&t.startLine===e.startLine&&t.startColumn===e.startColumn&&t.endLine===e.endLine&&t.endColumn===e.endColumn))?.preview,n.coordinates.push(o)})),this.searchEntries=Array.from(s.keys()).sort(((e,t)=>e.localeCompare(t))).map((e=>{const t=V(s.get(e));return t.setCoordinates(t.coordinates.sort(((e,t)=>e.startColumn-t.startColumn)).sort(((e,t)=>e.startLine-t.startLine))),t}))}dismissSearchEntry(e){O(this.searchEntries,e),this.searchEntries.length||this.ideStore.setReferenceUsageResult(void 0)}get numberOfFiles(){return this.searchEntries.length}get numberOfResults(){return this.searchEntries.flatMap((e=>e.coordinates)).length}}class pN{searchState;searchEntries=[];constructor(e,t){(0,ke.Gn)(this,{searchEntries:ke.sH,numberOfFiles:ke.EW,numberOfResults:ke.EW}),this.searchState=e,this.searchEntries=t}dismissSearchEntry(e){O(this.searchEntries,e),this.searchEntries.length||this.searchState.setResult(void 0)}get numberOfFiles(){return this.searchEntries.length}get numberOfResults(){return this.searchEntries.flatMap((e=>e.coordinates)).length}}class hN{ideStore;loadState=Pe.create();searchInput;text="";isCaseSensitive=!1;isRegExp=!1;result;constructor(e){(0,ke.Gn)(this,{text:ke.sH,isCaseSensitive:ke.sH,isRegExp:ke.sH,result:ke.sH,setText:ke.XI,setCaseSensitive:ke.XI,setRegExp:ke.XI,setResult:ke.XI,search:ke.L3}),this.ideStore=e}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}select(){this.searchInput?.select()}*search(){if(!this.loadState.isInProgress){this.loadState.inProgress();try{const e=(yield this.ideStore.client.searchText(this.text,this.isCaseSensitive,this.isRegExp)).map((e=>(e=>(0,ge.iu)(f_,e))(e)));this.setResult(new pN(this,e)),this.loadState.pass()}catch(e){M(e),this.ideStore.applicationStore.notificationService.notifyError(e),this.loadState.fail()}}}setText(e){this.text=e}setCaseSensitive(e){this.isCaseSensitive=e}setRegExp(e){this.isRegExp=e}setResult(e){this.result=e}}class mN{applicationStore;initState=Pe.create();directoryTreeState;conceptTreeState;client;activePanelMode=Ug.TERMINAL;panelGroupDisplayState=new k_({initial:0,default:300,snap:100});activeActivity=Gg.CONCEPT_EXPLORER;sideBarDisplayState=new k_({initial:300,default:300,snap:150});tabManagerState=new Rf(this);executionState=Pe.create();navigationStack=[];fileSearchCommandLoadState=Pe.create();fileSearchCommandState=new iN;openFileSearchCommand=!1;fileSearchCommandResults=[];codeFixSuggestion;referenceUsageLoadState=Pe.create();referenceUsageResult;textSearchState;testRunState=Pe.create();testRunnerState;constructor(e){var t;(0,ke.Gn)(this,{activePanelMode:ke.sH,activeActivity:ke.sH,navigationStack:ke.sH,openFileSearchCommand:ke.sH,fileSearchCommandResults:ke.sH,fileSearchCommandState:ke.sH,codeFixSuggestion:ke.sH,referenceUsageResult:ke.sH,testRunnerState:ke.sH,setCodeFixSuggestion:ke.XI,setReferenceUsageResult:ke.XI,setOpenFileSearchCommand:ke.XI,setActivePanelMode:ke.XI,setActiveActivity:ke.XI,setTestRunnerState:ke.XI,pullInitializationActivity:ke.XI,pullExecutionStatus:ke.XI,initialize:ke.L3,checkIfSessionWakingUp:ke.L3,loadDiagram:ke.L3,loadFile:ke.L3,execute:ke.L3,executeGo:ke.L3,manageExecuteGoResult:ke.L3,executeTests:ke.L3,executeFullTestSuite:ke.L3,executeNavigation:ke.L3,navigateBack:ke.L3,fullReCompile:ke.L3,command:ke.L3,findUsagesFromCoordinate:ke.L3,findUsages:ke.L3,renameConcept:ke.L3,movePackageableElements:ke.L3,updateFileUsingSuggestionCandidate:ke.L3,updateFile:ke.L3,searchFile:ke.L3,createNewDirectory:ke.L3,createNewFile:ke.L3,renameFile:ke.L3,deleteDirectoryOrFile:ke.L3}),this.applicationStore=e,this.textSearchState=new hN(this),this.directoryTreeState=new Xf(this),this.conceptTreeState=new Jf(this),this.client=new R_(new pe({baseUrl:this.applicationStore.config.useDynamicPureServer?window.location.origin:this.applicationStore.config.pureUrl})),(t=this).applicationStore.terminalService.terminal.setup({webLinkProvider:{handler:(e,n)=>{const i=n.match(aN);i?.groups?.url?t.applicationStore.navigationService.navigator.visitAddress(i.groups.url):i?.groups?.path&&i.groups.path_sourceId&&i.groups.path_column&&i.groups.path_line&&(0,ke.gP)(t.loadFile(i.groups.path_sourceId,new Tf(i.groups.path_sourceId,Number.parseInt(i.groups.path_line,10),Number.parseInt(i.groups.path_column,10)))).catch(t.applicationStore.alertUnhandledError)},regex:aN},commands:[{command:Bf.GO,description:"Run the go() function in welcome file",usage:"go",aliases:["compile","executeGo"],handler:async e=>(0,ke.gP)(t.executeGo()).catch(t.applicationStore.alertUnhandledError)},{command:Bf.TEST,description:"Run the test suite (by path if specified)",usage:"test [/some/path]",handler:async e=>{const n=S(e);!n||n.match(oN)?await(0,ke.gP)(t.executeTests(n??Hg)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid package/concept path")}},{command:Bf.REMOVE,description:"Remove a file or directory",usage:"rm /some/path",handler:async e=>{const n=S(e);n?.match(rN)?await(0,ke.gP)(t.deleteDirectoryOrFile(n,void 0,void 0)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("rm command requires a valid file/directory path")}},{command:Bf.MOVE,description:"Move a file",usage:"mv /old/path /new/path",handler:async e=>{const n=e[0];if(!n?.match(rN))return void t.applicationStore.terminalService.terminal.fail("command requires a valid old file path");const i=e[1];i?.match(rN)?await(0,ke.gP)(t.renameFile(n,i)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid new file path")}},{command:Bf.NEW_DIRECTORY,description:"Create a new directory",usage:"mkdir /some/path",handler:async e=>{const n=e[0];n?.match(rN)?await(0,ke.gP)(t.createNewDirectory(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid directory path")}},{command:Bf.NEW_FILE,description:"Create a new file",usage:"touch /some/path",handler:async e=>{const n=e[0];n?.match(rN)?await(0,ke.gP)(t.createNewDirectory(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid path")}},{command:Bf.WELCOME,description:"Open the welcome file",usage:"welcome",aliases:["start"],handler:async()=>{await(0,ke.gP)(t.loadFile(jg)).catch(t.applicationStore.alertUnhandledError)}},{command:Bf.OPEN_FILE,description:"Open a file",usage:"open /some/file/path",aliases:["edit","code","vi"],handler:async e=>{const n=e[0];n?.match(oN)?await(0,ke.gP)(t.loadFile(n)).catch(t.applicationStore.alertUnhandledError):t.applicationStore.terminalService.terminal.fail("command requires a valid file path")}},{command:Bf.OPEN_DIRECTORY,description:"Open a directory or a package",usage:"cd /some/directory/path | cd some::package::path",handler:async e=>{const n=e[0];if(n&&(n.match(rN)||n.match(oN)))try{n.match(oN)?await(0,ke.gP)(t.conceptTreeState.revealConcept(n,{forceOpenExplorerPanel:!0,packageOnly:!0})):await(0,ke.gP)(t.directoryTreeState.revealPath(n,{forceOpenExplorerPanel:!0,directoryOnly:!0}))}catch(e){M(e),t.applicationStore.terminalService.terminal.fail(e.message)}else t.applicationStore.terminalService.terminal.fail("command requires a valid directory or concept path")}},{command:Bf.LIST_DIRECTORY,description:"List children of a directory or package",usage:"cd /some/directory/path | cd some::package::path | cd ::",handler:async e=>{const n=e[0];if(n&&(n.match(rN)||n.match(oN)||[Vg,Hg].includes(n)))try{n.match(oN)||n===Hg?t.applicationStore.terminalService.terminal.output((await t.client.getConceptChildren(n)).map((e=>(0,ge.iu)(Nf,e))).map((e=>e.li_attr instanceof ff?`${it.BRIGHT_CYAN}${e.text}${it.RESET}`:e.text)).join("\n")):t.applicationStore.terminalService.terminal.output((await t.client.getDirectoryChildren(n)).map((e=>(0,ge.iu)(Wf,e))).map((e=>e.isFolderNode?`${it.BRIGHT_CYAN}${e.text}${it.RESET}`:e.text)).join("\n"))}catch(e){M(e),t.applicationStore.terminalService.terminal.fail(e.message)}else t.applicationStore.terminalService.terminal.fail("command requires a valid directory or package path")}},{command:Bf.CLEAR,description:"Clear the terminal",usage:"clear",handler:async e=>{t.applicationStore.terminalService.terminal.clear()}},{command:Bf.ECHO,description:"Print text",usage:"echo 'some string'",handler:async(e,n,i)=>{const s=i.substring(i.indexOf(n)+n.length).trim();t.applicationStore.terminalService.terminal.output(s.replaceAll(/\\u001b/g,""))}},{command:Bf.ANSI,description:"Show common ANSI escape sequences used for styling",usage:"ansi",handler:async e=>(t.applicationStore.terminalService.terminal.showCommonANSIEscapeSequences(),Promise.resolve())},{command:Bf.HELP,description:"Show help",usage:"help",handler:async e=>(t.applicationStore.terminalService.terminal.showHelp(),Promise.resolve())}]})}setOpenFileSearchCommand(e){this.openFileSearchCommand=e}setActivePanelMode(e){this.activePanelMode=e}setCodeFixSuggestion(e){this.codeFixSuggestion=e}setReferenceUsageResult(e){this.referenceUsageResult=e}setTestRunnerState(e){this.testRunnerState=e}cleanUp(){this.applicationStore.alertService.setBlockingAlert(void 0),this.applicationStore.alertService.setActionAlertInfo(void 0),this.applicationStore.terminalService.terminal.dispose()}*initialize(e,t,n,i){if(this.initState.isInInitialState){this.client.mode=n,this.client.compilerMode=i,this.initState.inProgress();try{this.applicationStore.alertService.setBlockingAlert({message:"Loading Pure IDE...",prompt:"Please be patient as we are building the initial application state",showLoading:!0});const n=this.client.initialize(!e).catch((e=>{M(e),this.applicationStore.notificationService.notifyError(e),this.initState.fail(),this.applicationStore.alertService.setBlockingAlert({message:"Failed to initialize IDE",prompt:"Before debugging, make sure the server is running then restart the application"})}));yield this.pullInitializationActivity(),this.applicationStore.alertService.setBlockingAlert(void 0);const i=(0,ke.gP)(this.loadFile(jg)),o=this.directoryTreeState.initialize(),r=this.conceptTreeState.initialize(),a=(s=yield n).error?s.source?(0,ge.iu)(e_,s):(0,ge.iu)(Qf,s):(0,ge.iu)(Zf,s);a.text&&(this.applicationStore.terminalService.terminal.output(a.text,{systemCommand:"initialize application"}),this.setActivePanelMode(Ug.TERMINAL),this.panelGroupDisplayState.open()),a instanceof Qf?a.sessionError?this.applicationStore.alertService.setBlockingAlert({message:"Session corrupted",prompt:a.sessionError}):a instanceof e_&&(yield(0,ke.gP)(this.loadFile(a.source,new Cf(a.source,a.line,a.column,new sN((a.text??"").split("\n").filter(Boolean)[0]))))):(t&&(yield t()),yield Promise.all([i,o,r])),this.initState.pass()}catch(e){M(e),this.applicationStore.notificationService.notifyError(e),this.initState.fail(),this.applicationStore.alertService.setActionAlertInfo({message:"Failed to initialize IDE",prompt:"This can either due to an internal server error, which you would need to manually resolve; or a compilation, which you can proceed to debug",type:jt.CAUTION,actions:[{label:"Compile to debug",type:Vt.PROCEED_WITH_CAUTION,default:!0,handler:()=>{(0,ke.gP)(this.executeGo()).catch(this.applicationStore.alertUnhandledError)}}]})}finally{this.applicationStore.terminalService.terminal.clear()}var s}else this.applicationStore.notificationService.notifyIllegalState("Editor store is re-initialized")}*checkIfSessionWakingUp(e){this.applicationStore.alertService.setBlockingAlert({message:e??"Checking IDE session...",showLoading:!0}),yield this.pullInitializationActivity((t=>{t.text&&this.applicationStore.alertService.setBlockingAlert({message:e??"Checking IDE session...",prompt:t.text,showLoading:!0})})),this.applicationStore.alertService.setBlockingAlert(void 0)}async pullInitializationActivity(e){return(await this.client.getInitializationActivity()).initializing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullInitializationActivity())}catch(e){t(e)}}),1e3))):Promise.resolve()}registerCommands(){this.applicationStore.commandService.registerCommand({key:kf.SEARCH_FILE,action:()=>this.setOpenFileSearchCommand(!0)}),this.applicationStore.commandService.registerCommand({key:kf.SEARCH_TEXT,action:()=>{this.setActivePanelMode(Ug.SEARCH),this.panelGroupDisplayState.open(),this.textSearchState.focus(),this.textSearchState.select()}}),this.applicationStore.commandService.registerCommand({key:kf.GO_TO_FILE,action:()=>{this.tabManagerState.currentTab instanceof Hf&&this.directoryTreeState.revealPath(this.tabManagerState.currentTab.filePath,{forceOpenExplorerPanel:!0})}}),this.applicationStore.commandService.registerCommand({key:kf.TOGGLE_TERMINAL_PANEL,action:()=>{this.panelGroupDisplayState.isOpen?this.activePanelMode!==Ug.TERMINAL?(this.setActivePanelMode(Ug.TERMINAL),this.applicationStore.terminalService.terminal.focus()):this.applicationStore.terminalService.terminal.isFocused()?this.panelGroupDisplayState.close():this.applicationStore.terminalService.terminal.focus():(this.setActivePanelMode(Ug.TERMINAL),this.panelGroupDisplayState.open())}}),this.applicationStore.commandService.registerCommand({key:kf.EXECUTE,action:()=>{(0,ke.gP)(this.executeGo()).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:kf.FULL_RECOMPILE,action:()=>{(0,ke.gP)(this.fullReCompile(!1)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:kf.FULL_RECOMPILE_WITH_FULL_INIT,action:()=>{(0,ke.gP)(this.fullReCompile(!0)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:kf.RUN_ALL_TESTS,action:()=>{(0,ke.gP)(this.executeFullTestSuite(!1)).catch(this.applicationStore.alertUnhandledError)}}),this.applicationStore.commandService.registerCommand({key:kf.RUN_RELAVANT_TESTS,action:()=>{(0,ke.gP)(this.executeFullTestSuite(!0)).catch(this.applicationStore.alertUnhandledError)}})}deregisterCommands(){[kf.SEARCH_FILE,kf.SEARCH_TEXT,kf.GO_TO_FILE,kf.TOGGLE_TERMINAL_PANEL,kf.EXECUTE,kf.FULL_RECOMPILE,kf.FULL_RECOMPILE_WITH_FULL_INIT,kf.RUN_ALL_TESTS,kf.RUN_RELAVANT_TESTS].forEach((e=>this.applicationStore.commandService.deregisterCommand(e)))}setActiveActivity(e,t){this.sideBarDisplayState.isOpen?e!==this.activeActivity||t?.keepShowingIfMatchedCurrent||this.sideBarDisplayState.close():this.sideBarDisplayState.open(),this.activeActivity=e}*loadDiagram(e,t,n,i){let s=this.tabManagerState.tabs.find((e=>e instanceof nN&&e.diagramPath===t));s||(yield(0,ke.gP)(this.checkIfSessionWakingUp()),s=new nN(this,(0,ge.iu)(dE,yield this.client.getDiagramInfo(t)),t,e,n,i)),this.tabManagerState.openTab(s)}*loadFile(e,t){try{let n=this.tabManagerState.tabs.find((t=>t instanceof Hf&&t.filePath===e));n||(yield(0,ke.gP)(this.checkIfSessionWakingUp()),n=new Hf(this,(0,ge.iu)(vf,yield this.client.getFile(e)),e)),this.tabManagerState.openTab(n),t&&(n.textEditorState.setForcedCursorPosition({lineNumber:t.line,column:t.column}),t instanceof Cf&&n.showError(t))}catch(t){M(t),this.applicationStore.terminalService.terminal.fail(t.message,{systemCommand:`load file ${e}`})}}async reloadFile(e){const t=[];await Promise.all(this.tabManagerState.tabs.map((async n=>{if(n instanceof Hf&&n.filePath===e)n.setFile((0,ge.iu)(vf,await this.client.getFile(e)));else if(n instanceof nN&&n.filePath===e)try{n.rebuild((0,ge.iu)(dE,await this.client.getDiagramInfo(n.diagramPath)))}catch{t.push(n)}}))),t.forEach((e=>this.tabManagerState.closeTab(e)))}*execute(e,t,n,i,s,o){if(!this.initState.hasCompleted)return void this.applicationStore.notificationService.notifyWarning("Can't execute while initializing application");if(this.executionState.isInProgress)return void this.applicationStore.notificationService.notifyWarning("Another execution is already in progress!");this.setCodeFixSuggestion(void 0),this.executionState.inProgress();const r=this.tabManagerState.tabs.filter(G(Hf)).map((e=>e.filePath));try{const c=this.tabManagerState.tabs.map((e=>e instanceof Hf?{path:e.filePath,code:e.file.content}:e instanceof nN?{diagram:e.diagramPath,code:pE(e.diagram)}:void 0)).filter(B),l=this.client.execute(c,e,t),d=1e3;let u,p=!1;yield Promise.all([l.then((e=>{p=!0,u=e})),new Promise(((e,t)=>setTimeout((()=>{!p&&n&&(this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:"Please do not refresh the application",showLoading:!0}),e(this.pullExecutionStatus().finally((()=>{this.applicationStore.alertService.setBlockingAlert(void 0)})))),e()}),d,!0)))]);const h=(a=V(u)).error?a.candidateName&&a.PureUnmatchedFunctionException?(0,ge.iu)(c_,a):a.candidateName&&a.candidates?(0,ge.iu)(l_,a):(0,ge.iu)(i_,a):a.jumpTo?(0,ge.iu)(o_,a):a.tests?(0,ge.iu)(p_,a):(0,ge.iu)(n_,a);this.applicationStore.alertService.setBlockingAlert(void 0),h instanceof i_?(this.applicationStore.notificationService.notifyError("Execution failed"+(h.text?`: ${h.text}`:"")),this.applicationStore.terminalService.terminal.fail(h.text,{systemCommand:s??"execute"}),h.sessionError?this.applicationStore.alertService.setBlockingAlert({message:"Session corrupted",prompt:h.sessionError}):yield(0,ke.gP)(i(h,r))):(o?.silentTerminalOnSuccess||this.applicationStore.terminalService.terminal.output(h.text??"",{clear:o?.clearTerminal,systemCommand:s??"execute"}),h instanceof n_?(this.applicationStore.notificationService.notifySuccess("Execution succeeded!"),h.reinit?(this.applicationStore.alertService.setBlockingAlert({message:"Reinitializing...",prompt:"Please do not refresh the application",showLoading:!0}),this.initState.reset(),yield(0,ke.gP)(this.initialize(!1,(()=>(0,ke.gP)(this.execute(e,t,n,i,s))),this.client.mode,this.client.compilerMode))):yield(0,ke.gP)(i(h,r))):yield(0,ke.gP)(i(h,r)))}catch(e){M(e),this.applicationStore.notificationService.notifyError(e),this.applicationStore.terminalService.terminal.fail(e.message,{systemCommand:s??"execute"})}finally{this.applicationStore.alertService.setBlockingAlert(void 0),this.executionState.reset()}var a}async pullExecutionStatus(){const e=await this.client.getExecutionActivity();return this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:e.text?e.text:"Please do not refresh the application",showLoading:!0}),e.executing?new Promise(((e,t)=>setTimeout((()=>{try{e(this.pullExecutionStatus())}catch(e){t(e)}}),500))):(this.applicationStore.alertService.setBlockingAlert({message:"Executing...",prompt:"Please do not refresh the application",showLoading:!0}),Promise.resolve())}*executeGo(){yield(0,ke.gP)(this.execute("executeGo",{},!0,((e,t)=>(0,ke.gP)(this.manageExecuteGoResult(e,t))),Bf.GO,{clearTerminal:!0}))}*manageExecuteGoResult(e,t){const n=this.refreshTrees();if(this.tabManagerState.tabs.filter(G(Hf)).filter((e=>t.includes(e.filePath))).forEach((e=>e.clearError())),e instanceof i_)e.source&&(yield(0,ke.gP)(this.loadFile(e.source,new Cf(e.source,e.line,e.column,new sN(e.text.split("\n").filter(Boolean)[0]))))),e instanceof c_?(this.setCodeFixSuggestion(new lN(this,e)),this.setActivePanelMode(Ug.CODE_FIX_SUGGESTION),this.panelGroupDisplayState.open()):e instanceof l_&&(this.setCodeFixSuggestion(new dN(this,e)),this.setActivePanelMode(Ug.CODE_FIX_SUGGESTION),this.panelGroupDisplayState.open()),this.resetChangeDetection(t);else if(e instanceof n_){if(e.modifiedFiles.length)for(const t of e.modifiedFiles)yield this.reloadFile(t);this.resetChangeDetection(t.concat(e.modifiedFiles)),!this.initState.hasFailed&&this.conceptTreeState.treeData||(yield(0,ke.gP)(this.conceptTreeState.initialize()),this.initState.pass())}yield n}*executeTests(e,t){t?this.applicationStore.notificationService.notifyUnsupportedFeature("Run relevant tests! (reason: VCS required)"):this.testRunState.isInProgress?this.applicationStore.notificationService.notifyWarning("Test runner is working. Please try again later"):(this.testRunState.inProgress(),yield(0,ke.gP)(this.execute("executeTests",{path:e,relevantTestsOnly:t},!1,(async(e,t)=>{const n=this.refreshTrees();if(e instanceof i_)e.source&&await(0,ke.gP)(this.loadFile(e.source,new Cf(e.source,e.line,e.column,new sN(e.text.split("\n").filter(Boolean)[0])))),this.setActivePanelMode(Ug.TERMINAL),this.panelGroupDisplayState.open(),this.testRunState.fail();else if(e instanceof p_){this.setActivePanelMode(Ug.TEST_RUNNER),this.panelGroupDisplayState.open();const t=new x_(this,e);this.setTestRunnerState(t),await(0,ke.gP)(t.buildTestTreeData()),t.refreshTree(),await(0,ke.gP)(t.pollTestRunnerResult()),this.testRunState.pass()}this.resetChangeDetection(t),await n}),`${Bf.TEST} ${e}`)))}*executeFullTestSuite(e){yield(0,ke.gP)(this.executeTests(Hg,e))}*executeNavigation(e){this.navigationStack.push(e),yield(0,ke.gP)(this.execute("getConcept",{file:e.file,line:e.line,column:e.column},!1,(async(e,t)=>{e instanceof o_&&await(0,ke.gP)(this.loadFile(e.jumpTo.source,new Tf(e.jumpTo.source,e.jumpTo.line,e.jumpTo.column))),this.resetChangeDetection(t)}),"navigate",{silentTerminalOnSuccess:!0}))}*navigateBack(){if(0!==this.navigationStack.length){if(this.navigationStack.length>0){const e=this.navigationStack.pop();e&&(yield(0,ke.gP)(this.loadFile(e.file,e)))}}else this.applicationStore.notificationService.notifyWarning("Can't navigate back any further - navigation stack is empty")}*fullReCompile(e){this.applicationStore.alertService.setActionAlertInfo({message:"Are you sure you want to perform a full re-compile?",prompt:"This may take a long time to complete",type:jt.CAUTION,actions:[{label:"Perform full re-compile",type:Vt.PROCEED_WITH_CAUTION,handler:()=>{(0,ke.gP)(this.execute("executeSaveAndReset",{},!0,(async(t,n)=>{this.initState.reset(),await(0,ke.gP)(this.initialize(e,void 0,this.client.mode,this.client.compilerMode)),this.resetChangeDetection(n),this.setActiveActivity(Gg.CONCEPT_EXPLORER,{keepShowingIfMatchedCurrent:!0})}),"recompile")).catch(this.applicationStore.alertUnhandledError)}},{label:"Abort",type:Vt.PROCEED,default:!0}]})}resetChangeDetection(e){this.tabManagerState.tabs.filter(G(Hf)).filter((t=>e.includes(t.filePath))).forEach((e=>e.resetChangeDetection()))}async refreshTrees(){await Promise.all([this.directoryTreeState.refreshTreeData(),this.conceptTreeState.refreshTreeData()])}async revealConceptInTree(e){let t;try{t=await this.client.getConceptInfo(e.file,e.line,e.column)}catch{return void this.applicationStore.notificationService.notifyWarning("Can't find concept info. Please make sure that the code compiles and that you are looking for references of non primitive types!")}if(t.path){this.applicationStore.alertService.setBlockingAlert({message:"Revealing concept in tree...",showLoading:!0});try{this.activeActivity!==Gg.CONCEPT_EXPLORER&&this.setActiveActivity(Gg.CONCEPT_EXPLORER);const e=t.path.split(Po);let n=V(e[0]),i=V(this.conceptTreeState.getTreeData().nodes.get(n));for(let t=1;t<e.length;++t)n=`${n}${Po}${e[t]}`,this.conceptTreeState.getTreeData().nodes.get(n)||await(0,ke.gP)(this.conceptTreeState.expandNode(i)),i=V(this.conceptTreeState.getTreeData().nodes.get(n));this.conceptTreeState.setSelectedNode(i)}catch{this.applicationStore.notificationService.notifyWarning("Error revealing concept. Please make sure that the code compiles and that you are looking for a valid concept")}finally{this.applicationStore.alertService.setBlockingAlert(void 0)}}}*command(e,t){try{const i=(n=yield e()).error?(0,ge.iu)(O_,n):new w_;return!(i instanceof O_&&(i.errorDialog?this.applicationStore.notificationService.notifyWarning(`Can't run command '${t}': ${i.text}`):this.applicationStore.terminalService.terminal.output(i.text,{systemCommand:t}),1))}catch(e){return M(e),this.applicationStore.notificationService.notifyError(e),this.applicationStore.terminalService.terminal.fail(e.message,{systemCommand:t}),!1}var n}async getConceptInfo(e){try{return await this.client.getConceptInfo(e.file,e.line,e.column)}catch{return void this.applicationStore.notificationService.notifyWarning("Can't find concept info. Please make sure that the code compiles and that you are looking for references of non primitive types!")}}async findConceptUsages(e,t){return(await this.client.getUsages(e,t)).map((e=>(0,ge.iu)(Af,e)))}*findUsagesFromCoordinate(e){const t=yield this.getConceptInfo(e);t&&(yield(0,ke.gP)(this.findUsages(t)))}*findUsages(e){try{this.referenceUsageLoadState.inProgress(),this.applicationStore.alertService.setBlockingAlert({message:"Finding concept usages...",prompt:`Finding references of ${Sf(e)}`,showLoading:!0});const t=yield this.findConceptUsages(e.pureType===mf.ENUM_VALUE?yf.ENUM:e.pureType===mf.PROPERTY||e.pureType===mf.QUALIFIED_PROPERTY?yf.PROPERTY:yf.ELEMENT,(e.owner?[`'${e.owner}'`]:[]).concat(`'${e.path}'`)),n=(yield this.client.getTextSearchPreview(t.map((e=>(0,ge.lK)(g_,new g_(e.source,e.startLine,e.startColumn,e.endLine,e.endColumn)))))).map((e=>(0,ge.iu)(g_,e)));this.setReferenceUsageResult(new uN(this,e,t,n)),this.setActivePanelMode(Ug.REFERENCES),this.panelGroupDisplayState.open()}catch(e){M(e),this.applicationStore.notificationService.notifyError(e)}finally{this.applicationStore.alertService.setBlockingAlert(void 0),this.referenceUsageLoadState.complete()}}*renameConcept(e,t,n,i){try{yield this.client.renameConcept({oldName:e,newName:t,pureType:n,sourceInformations:i.map((e=>({sourceId:e.source,line:e.line,column:e.column})))});const s=i.map((e=>e.source));for(const e of s)yield this.reloadFile(e);yield this.refreshTrees(),this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(t){M(t),this.applicationStore.notificationService.notifyError(`Can't rename concept '${e}'`)}}*movePackageableElements(e){try{yield this.client.movePackageableElements(e.map((e=>({pureName:e.pureName,pureType:e.pureType,sourcePackage:e.sourcePackage,destinationPackage:e.destinationPackage,sourceInformations:e.usages.map((e=>({sourceId:e.source,line:e.line,column:e.column})))}))));const t=(0,Ae.A)(e.flatMap((e=>e.usages.map((e=>e.source)))));for(const e of t)yield this.reloadFile(e);yield this.refreshTrees(),this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(e){M(e),this.applicationStore.notificationService.notifyError(`Can't move packageable elements:\n${e.message}`)}}*updateFileUsingSuggestionCandidate(e){this.setCodeFixSuggestion(void 0),yield(0,ke.gP)(this.updateFile(e.fileToBeModified,e.lineToBeModified,e.columnToBeModified,e.add,e.messageToBeModified)),this.setActivePanelMode(Ug.TERMINAL),this.panelGroupDisplayState.open()}*updateFile(e,t,n,i,s){try{const o=yield this.client.updateSource([{path:e,line:t,column:n,message:s,add:i}]);if(o.modifiedFiles.length)for(const e of o.modifiedFiles)yield this.reloadFile(e);this.applicationStore.notificationService.notifyWarning("Please re-compile the code after refacting")}catch(t){M(t),this.applicationStore.notificationService.notifyError(`Can't update file '${e}'`)}}*searchFile(){this.fileSearchCommandLoadState.isInProgress||(this.fileSearchCommandLoadState.inProgress(),this.fileSearchCommandResults=yield this.client.findFiles(this.fileSearchCommandState.text,this.fileSearchCommandState.isRegExp),this.fileSearchCommandLoadState.pass())}*createNewDirectory(e){try{yield(0,ke.gP)(this.command((()=>this.client.createFolder(bf(e))),Bf.NEW_DIRECTORY)),yield(0,ke.gP)(this.directoryTreeState.refreshTreeData())}catch(e){M(e),this.applicationStore.notificationService.notifyError(e)}}*createNewFile(e){try{const t=yield(0,ke.gP)(this.command((()=>this.client.createFile(bf(e))),Bf.NEW_FILE));yield(0,ke.gP)(this.directoryTreeState.refreshTreeData()),t&&(yield(0,ke.gP)(this.loadFile(e)))}catch(e){M(e),this.applicationStore.notificationService.notifyError(e)}}*renameFile(e,t){try{yield(0,ke.gP)(this.command((()=>this.client.renameFile(e,t)),Bf.MOVE)),yield(0,ke.gP)(this.directoryTreeState.refreshTreeData());const n=this.tabManagerState.tabs.find((t=>t instanceof Hf&&t.filePath===e));n&&this.tabManagerState.closeTab(n)}catch(e){M(e),this.applicationStore.notificationService.notifyError(e)}}*deleteDirectoryOrFile(e,t,n){const i=async()=>{await(0,ke.gP)(this.command((()=>this.client.deleteDirectoryOrFile(bf(e))),Bf.REMOVE)),this.tabManagerState.tabs.filter((n=>n instanceof Hf&&(void 0===t||t?n.filePath.startsWith(`${e}/`):n.filePath===e))).forEach((e=>this.tabManagerState.closeTab(e))),await(0,ke.gP)(this.directoryTreeState.refreshTreeData())};void 0===t||void 0===n?i().catch(this.applicationStore.alertUnhandledError):this.applicationStore.alertService.setActionAlertInfo({message:`Are you sure you would like to delete this ${t?"directory":"file"}?`,prompt:n?"Beware! This directory is not empty, this action is not undo-able, you have to manually revert using VCS":"Beware! This action is not undo-able, you have to manually revert using VCS",type:jt.CAUTION,actions:[{label:"Delete anyway",type:Vt.PROCEED_WITH_CAUTION,handler:()=>{i().catch(this.applicationStore.alertUnhandledError)}},{label:"Abort",type:Vt.PROCEED,default:!0}]})}}const gN=(0,Gt.createContext)(void 0),fN=({children:e})=>{const t=$t(),n=(0,It.iz)((()=>new mN(t)));return(0,N.jsx)(gN.Provider,{value:n,children:e})},_N=()=>V((0,Gt.useContext)(gN),"Can't find editor store in context"),EN=(0,It.PA)((()=>{const e=_N(),t=$t().terminalService.terminal,n=(0,Gt.useRef)(null),{ref:i,width:s,height:o}=(0,os.u)();(0,Gt.useEffect)((()=>(n.current&&t.searchConfig.setSearchInput(n.current),()=>t.searchConfig.setSearchInput(void 0))),[t]),(0,Gt.useEffect)((()=>{i.current&&t.mount(i.current)}),[t,i]),(0,Gt.useEffect)((()=>{e.panelGroupDisplayState.isOpen&&e.activePanelMode===Ug.TERMINAL&&t.focus()}),[t,e.panelGroupDisplayState.isOpen,e.activePanelMode]),(0,Gt.useEffect)((()=>{t.autoResize()}),[t,s,o]);const r=()=>{t.clear(),t.focus()},a=()=>t.copyAll();return t.isSetup?(0,N.jsxs)("div",{className:"terminal-panel",children:[(0,N.jsxs)("div",{className:"terminal-panel__header",children:[(0,N.jsxs)("div",{className:"terminal-panel__header__group",children:[(0,N.jsxs)("div",{className:"terminal-panel__header__searcher__input__container",children:[(0,N.jsx)("input",{ref:n,className:"terminal-panel__header__searcher__input input--dark",spellCheck:!1,value:t.searchConfig.searchText,onChange:e=>{const n=e.target.value;t.setSearchText(n),t.search(n)},onKeyDown:e=>{"Enter"===e.code?e.shiftKey?t.findPrevious():t.findNext():"Escape"===e.code&&(t.clearSearch(),t.focus())},placeholder:"Find"}),(0,N.jsxs)("div",{className:"terminal-panel__header__searcher__input__actions",children:[(0,N.jsx)("button",{className:"terminal-panel__header__searcher__input__action",tabIndex:-1,title:"Clear Search",onClick:()=>t.clearSearch(),children:(0,N.jsx)(_n,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.matchCaseSensitive}),tabIndex:-1,title:"Match Case",onClick:()=>t.setSearchCaseSensitive(!t.searchConfig.matchCaseSensitive),children:(0,N.jsx)(Nn,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.matchWholeWord}),tabIndex:-1,title:"Match Whole Word",onClick:()=>t.setSearchWholeWord(!t.searchConfig.matchWholeWord),children:(0,N.jsx)(bn,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("terminal-panel__header__searcher__input__action",{"terminal-panel__header__searcher__input__action--active":t.searchConfig.useRegex}),tabIndex:-1,title:"Use Regular Expression",onClick:()=>t.setSearchRegex(!t.searchConfig.useRegex),children:(0,N.jsx)(En,{})})]})]}),(0,N.jsx)("div",{className:"terminal-panel__header__searcher__result",children:t.searchConfig.resultCount?`${void 0!==t.searchConfig.currentResultIndex?t.searchConfig.currentResultIndex+1:0} of ${t.searchConfig.resultCount}`:"No results"}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Previous Match (Shift+Enter)",disabled:!t.searchConfig.resultCount,tabIndex:-1,onClick:()=>{t.findPrevious()},children:(0,N.jsx)(ui,{className:"terminal-panel__header__action__icon"})}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Next Match (Enter)",disabled:!t.searchConfig.resultCount,tabIndex:-1,onClick:()=>{t.findNext()},children:(0,N.jsx)(di,{className:"terminal-panel__header__action__icon"})})]}),(0,N.jsx)("div",{className:"terminal-panel__header__group__separator"}),(0,N.jsxs)("div",{className:"terminal-panel__header__group",children:[(0,N.jsx)("button",{className:(0,Rt.$)("terminal-panel__header__action terminal-panel__header__group__action",{"terminal-panel__header__action--active":t.preserveLog}),title:"Toggle Preserve Console",tabIndex:-1,onClick:()=>t.setPreserveLog(!t.preserveLog),children:(0,N.jsx)(Dn,{className:"terminal-panel__header__action__icon"})}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Copy Text Content",tabIndex:-1,onClick:a,children:(0,N.jsx)(Ei,{className:"terminal-panel__header__action__icon"})}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Clear Console",tabIndex:-1,onClick:r,children:(0,N.jsx)(ii,{className:"terminal-panel__header__action__icon"})}),(0,N.jsx)("button",{className:"terminal-panel__header__action terminal-panel__header__group__action",title:"Show Help",tabIndex:-1,onClick:()=>{t.showHelp(),t.focus()},children:(0,N.jsx)(zn,{className:"terminal-panel__header__action__icon"})})]})]}),(0,N.jsx)(Xi,{className:"terminal-panel__content",content:(0,N.jsxs)(Ji,{children:[(0,N.jsx)(Zi,{onClick:()=>t.copy(),children:"Copy"}),(0,N.jsx)(Zi,{onClick:a,children:"Copy All"}),(0,N.jsx)(Zi,{onClick:r,children:"Clear"})]}),menuProps:{elevation:7},children:(0,N.jsx)("div",{ref:i,className:"terminal-panel__container"})})]}):(0,N.jsx)("div",{className:"terminal-panel",children:(0,N.jsx)(as,{children:"Terminal is not set up yet"})})})),NN=(0,It.PA)((e=>{const{searchResult:t,result:n}=e,i=_N(),s=$t(),o=e=>()=>(0,ke.gP)(i.loadFile(n.sourceId,new Tf(n.sourceId,e.startLine,e.startColumn))).catch(s.alertUnhandledError),r=e=>()=>{n.dismissCoordinate(e),n.coordinates.length||t.dismissSearchEntry(n)};return(0,N.jsxs)("div",{className:"text-search-panel__entry",children:[(0,N.jsxs)("div",{className:"text-search-panel__entry__header",onClick:()=>n.setIsExpanded(!n.isExpanded),children:[(0,N.jsxs)("div",{className:"text-search-panel__entry__header__title",children:[(0,N.jsx)("div",{className:"text-search-panel__entry__header__title__expander",children:n.isExpanded?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{})}),(0,N.jsx)("div",{className:"text-search-panel__entry__header__title__label",children:(0,N.jsx)(Ni,{})}),(0,N.jsx)("div",{className:"text-search-panel__entry__header__title__content",children:bf(n.sourceId)})]}),(0,N.jsxs)("div",{className:"text-search-panel__entry__header__actions",children:[(0,N.jsx)("div",{className:"text-search-panel__entry__header__action text-search-panel__entry__header__action--with-counter",children:(0,N.jsx)("div",{className:"text-search-panel__entry__header__action__counter",children:n.coordinates.length})}),(0,N.jsx)("button",{className:"text-search-panel__entry__header__action text-search-panel__entry__header__action--hidden",tabIndex:-1,title:"Dismiss",onClick:()=>t.dismissSearchEntry(n),children:(0,N.jsx)(jn,{})})]})]}),n.isExpanded&&(0,N.jsx)("div",{className:"text-search-panel__entry__content",children:n.coordinates.map((e=>(0,N.jsxs)("div",{className:"text-search-panel__entry__content__item",children:[(0,N.jsxs)("div",{className:"text-search-panel__entry__content__item__label text-search-panel__entry__content__item__label--full",title:e.preview?`${e.preview.before}${e.preview.found.replaceAll(/\n/g,"↵")}${e.preview.after}`:"Go To Result",onClick:o(e),children:[e.preview&&(0,N.jsxs)("div",{className:"text-search-panel__entry__content__item__label__content",children:[(0,N.jsx)("div",{className:"text-search-panel__entry__content__item__label__coordinates",children:`[${e.startLine}:${e.startColumn}]`}),(0,N.jsxs)("div",{className:"text-search-panel__entry__content__item__label__preview",children:[(0,N.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text",children:e.preview.before}),(0,N.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text text-search-panel__entry__content__item__label__preview__text--found",children:e.preview.found.replaceAll(/\n/g,"↵")}),(0,N.jsx)("span",{className:"text-search-panel__entry__content__item__label__preview__text",children:e.preview.after})]})]}),!e.preview&&(0,N.jsx)(N.Fragment,{children:`line: ${e.startLine} - column: ${e.startColumn}`})]}),(0,N.jsx)("div",{className:"text-search-panel__entry__content__item__actions",children:(0,N.jsx)("button",{className:"text-search-panel__entry__content__item__action text-search-panel__entry__content__item__action--hidden",tabIndex:-1,title:"Dismiss",onClick:r(e),children:(0,N.jsx)(jn,{})})})]},e.uuid)))})]})})),bN=(0,It.PA)((e=>{const{searchResult:t}=e,n=_N(),i=$t(),s=t.searchEntries.some((e=>!e.isExpanded));return(0,N.jsxs)("div",{className:"text-search-panel__content",children:[(0,N.jsxs)("div",{className:"text-search-panel__content__header",children:[(0,N.jsx)("div",{className:"text-search-panel__content__header__title",children:t.searchEntries.length?`${t.numberOfResults} result(s) in ${t.numberOfFiles} files`:"No result"}),(0,N.jsxs)("div",{className:"text-search-panel__content__header__actions",children:[(0,N.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Refresh",onClick:()=>{(0,ke.gP)(n.textSearchState.search()).catch(i.alertUnhandledError)},children:(0,N.jsx)(un,{})}),(0,N.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Clear",onClick:()=>{n.textSearchState.setText(""),n.textSearchState.setResult(void 0)},children:(0,N.jsx)(_n,{})}),!s&&(0,N.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Collapse All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!1)))},children:(0,N.jsx)(Cn,{})}),s&&(0,N.jsx)("button",{className:"text-search-panel__content__header__action",tabIndex:-1,title:"Expand All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!0)))},children:(0,N.jsx)(yn,{})})]})]}),(0,N.jsx)("div",{className:"text-search-panel__content__results",children:t.searchEntries.map((e=>(0,N.jsx)(NN,{searchResult:t,result:e},e.uuid)))})]})})),vN=(0,It.PA)((()=>{const e=_N(),t=(0,Gt.useRef)(null),n=e.textSearchState,i=(0,Gt.useMemo)((()=>(0,_s.A)((()=>n.search()),300)),[n]);return(0,Gt.useEffect)((()=>(t.current&&n.setSearchInput(t.current),()=>n.setSearchInput(void 0))),[n]),(0,Gt.useEffect)((()=>{e.panelGroupDisplayState.isOpen&&e.activePanelMode===Ug.SEARCH&&n.focus()}),[n,e.panelGroupDisplayState.isOpen,e.activePanelMode]),(0,N.jsxs)("div",{className:"text-search-panel",children:[(0,N.jsx)(qt,{isLoading:e.textSearchState.loadState.isInProgress}),(0,N.jsx)("div",{className:"text-search-panel__header",children:(0,N.jsxs)("div",{className:"text-search-panel__searcher__input__container",children:[(0,N.jsx)("input",{ref:t,autoFocus:!0,className:"text-search-panel__searcher__input input--dark",onChange:e=>{const t=e.target.value;n.setText(t),i.cancel(),t?i():n.setResult(void 0)},onKeyDown:e=>{"Enter"===e.code?(i.cancel(),n.text&&i()):"Escape"===e.code&&t.current?.select()},value:n.text,placeholder:"Search"}),(0,N.jsxs)("div",{className:"text-search-panel__searcher__input__actions",children:[(0,N.jsx)("button",{className:(0,Rt.$)("text-search-panel__searcher__input__action",{"text-search-panel__searcher__input__action--active":n.isCaseSensitive}),tabIndex:-1,title:"Match Case",onClick:()=>n.setCaseSensitive(!n.isCaseSensitive),children:(0,N.jsx)(Nn,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("text-search-panel__searcher__input__action",{"text-search-panel__searcher__input__action--active":n.isRegExp}),tabIndex:-1,title:"Use Regular Expression",onClick:()=>n.setRegExp(!n.isRegExp),children:(0,N.jsx)(En,{})})]})]})}),e.textSearchState.result&&(0,N.jsx)(bN,{searchResult:e.textSearchState.result})]})})),TN="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/tree/TreeView.tsx",CN=e=>{const{node:t,level:n,stepPaddingInRem:i,classPrefix:s,onNodeSelect:o}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__container",{[`${s}__tree-view__node__container`]:s}),onClick:()=>o?.(t),style:{paddingLeft:(n-1)*(i??1)+"rem",display:"flex"},children:[(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__icon",{[`${s}__tree-view__node__icon`]:s}),children:Boolean(t.childrenIds?.length)&&(t.isOpen?(0,Et.jsxDEV)(xi,{},void 0,!1,{fileName:TN,lineNumber:76,columnNumber:25},void 0):(0,Et.jsxDEV)(Oi,{},void 0,!1,{fileName:TN,lineNumber:76,columnNumber:47},void 0))},void 0,!1,{fileName:TN,lineNumber:70,columnNumber:7},void 0),(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__label",{[`${s}__tree-view__node__label`]:s}),children:t.label},void 0,!1,{fileName:TN,lineNumber:78,columnNumber:7},void 0)]},void 0,!0,{fileName:TN,lineNumber:57,columnNumber:11},void 0)},yN=e=>{const{node:t,level:n,onNodeSelect:i,getChildNodes:s,classPrefix:o,components:r,stepPaddingInRem:a,innerProps:c}=e,l={TreeNodeView:yN,TreeNodeContainer:CN},d=r?{...l,...r}:l;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__block",{[`${o}__tree-view__node__block`]:o}),children:[(0,Et.jsxDEV)(d.TreeNodeContainer,{node:t,level:n+1,stepPaddingInRem:a,classPrefix:o,onNodeSelect:i,innerProps:c},void 0,!1,{fileName:TN,lineNumber:141,columnNumber:7},void 0),t.isOpen&&s(t).map((e=>(0,Et.jsxDEV)(d.TreeNodeView,{node:e,level:n+1,components:r,classPrefix:o,onNodeSelect:i,getChildNodes:s,innerProps:c},e.id,!1,{fileName:TN,lineNumber:150,columnNumber:49},void 0)))]},void 0,!0,{fileName:TN,lineNumber:134,columnNumber:11},void 0)},SN=e=>{const{treeData:t,className:n,classPrefix:i,components:s,onNodeSelect:o,getChildNodes:r,getRootNodes:a,innerProps:c}=e,l=a?.(t)??t.rootIds.map((e=>t.nodes.get(e))).filter(B),d={TreeNodeView:yN,TreeNodeContainer:CN},u=s?{...d,...s}:d;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("tree-view__node__root",n??"",{[`${i}__tree-view__node__root`]:i}),children:l.map((e=>(0,Et.jsxDEV)(u.TreeNodeView,{level:0,node:e,getChildNodes:r,components:u,onNodeSelect:o,classPrefix:i,innerProps:c},e.id,!1,{fileName:TN,lineNumber:211,columnNumber:33},void 0)))},void 0,!1,{fileName:TN,lineNumber:205,columnNumber:11},void 0)},AN="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/Panel.tsx",IN=kt("Panel","panel"),xN=(kt("PanelFullContent","panel__content--full"),e=>{const{title:t,keepTitleFormat:n,labelClassName:i,darkMode:s,className:o,children:r}=e,a=Boolean(s),c=Boolean(n);return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__header",o),children:[t&&(0,Et.jsxDEV)("div",{className:"panel__header__title",children:(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__header__title__label",i,{"panel__header__title__label--light":a}),children:c?t:t.toLowerCase()},void 0,!1,{fileName:AN,lineNumber:52,columnNumber:11},void 0)},void 0,!1,{fileName:AN,lineNumber:50,columnNumber:18},void 0),r]},void 0,!0,{fileName:AN,lineNumber:48,columnNumber:11},void 0)}),wN=kt("PanelHeaderActions","panel__header__actions"),ON=e=>{const{className:t,onClick:n,children:i,disabled:s,title:o}=e;return(0,Et.jsxDEV)("button",{className:(0,Rt.$)("panel__header__action",t),disabled:Boolean(s),onClick:n,title:o,tabIndex:-1,children:i},void 0,!1,{fileName:AN,lineNumber:106,columnNumber:11},void 0)},RN=e=>{const{className:t,darkMode:n,children:i}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__content",t,{"panel__content--dark":n}),children:i},void 0,!1,{fileName:AN,lineNumber:155,columnNumber:11},void 0)},kN=(kt("PanelContentLists","panel__content__lists"),kt("PanelList","panel__content__form__list"),kt("PanelListItem","panel__content__form__list__item"),kt("PanelListItemTitle","panel__content__form__list__item__title"),kt("PanelListItemLabel","panel__content__form__list__item__label"),kt("PanelForm","panel__content__form"),kt("PanelDivider","panel__content__form__divider")),PN=(kt("PanelFormDescription","panel__content__form__description"),kt("PanelFormSection","panel__content__form__section"));(0,Gt.forwardRef)((function(e,t){const{name:n,value:i,update:s,prompt:o,errorMessageClassName:r,placeholder:a,validate:c,onValidate:l,onBlur:d,isReadOnly:u,className:p,darkMode:h,fullWidth:m,inputType:g}=e,[f,_]=(0,Gt.useState)(i??""),E=c?.(f)??void 0;return(0,Gt.useEffect)((()=>{E||i===f||s(f),l?.(E)}),[i,f,E,l,s]),(0,Et.jsxDEV)(PN,{children:[n&&(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__label",children:dt(n)},void 0,!1,{fileName:AN,lineNumber:262,columnNumber:17},this),o&&(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__prompt",children:o},void 0,!1,{fileName:AN,lineNumber:267,columnNumber:19},this),(0,Et.jsxDEV)("div",{className:"input-group",children:[(0,Et.jsxDEV)("input",{className:(0,Rt.$)("input input-group__input panel__content__form__section__input",p,{"input--dark":h||!0},{"input--small":!m}),ref:t,type:g||"text",spellCheck:!1,disabled:u,placeholder:a,value:f,onChange:e=>{_(e.target.value)},onBlur:d},void 0,!1,{fileName:AN,lineNumber:273,columnNumber:9},this),E&&(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__content__form__section__input-group__error-message input-group__error-message",{"input--small":!m},r),children:E},void 0,!1,{fileName:AN,lineNumber:289,columnNumber:37},this)]},void 0,!0,{fileName:AN,lineNumber:272,columnNumber:7},this)]},void 0,!0,{fileName:AN,lineNumber:260,columnNumber:11},this)})),(0,Gt.forwardRef)((function(e,t){const{name:n,value:i,update:s,prompt:o,placeholder:r,isReadOnly:a,errorMessage:c,className:l,darkMode:d,fullWidth:u,inputType:p}=e,h=i??"";return(0,Et.jsxDEV)(PN,{children:[(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__label",children:dt(n)},void 0,!1,{fileName:AN,lineNumber:344,columnNumber:7},this),(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__prompt",children:o},void 0,!1,{fileName:AN,lineNumber:347,columnNumber:7},this),(0,Et.jsxDEV)("div",{className:"input-group",children:[(0,Et.jsxDEV)("input",{className:(0,Rt.$)("input input-group__input panel__content__form__section__input",l,{"input--dark":d||!0},{"input--small":!u}),ref:t,type:p||"text",spellCheck:!1,disabled:a,placeholder:r,value:h,onChange:e=>{const t=e.target.value;s(t||void 0)}},void 0,!1,{fileName:AN,lineNumber:351,columnNumber:9},this),c&&(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__content__form__section__input-group__error-message input-group__error-message",{"input--small":!u}),children:c},void 0,!1,{fileName:AN,lineNumber:366,columnNumber:27},this)]},void 0,!0,{fileName:AN,lineNumber:350,columnNumber:7},this),c&&(0,Et.jsxDEV)(kN,{},void 0,!1,{fileName:AN,lineNumber:377,columnNumber:23},this)]},void 0,!0,{fileName:AN,lineNumber:342,columnNumber:11},this)})),(0,It.PA)((e=>{const{value:t,name:n,prompt:i,children:s,isReadOnly:o,update:r}=e;return(0,Et.jsxDEV)(PN,{children:[n&&(0,Et.jsxDEV)("div",{className:"panel__content__form__section__header__label",children:dt(n)},void 0,!1,{fileName:AN,lineNumber:404,columnNumber:19},void 0),(0,Et.jsxDEV)("div",{className:(0,Rt.$)("panel__content__form__section__toggler",{"panel__content__form__section__toggler--disabled":o}),onClick:()=>{o||r(!t)},children:[(0,Et.jsxDEV)("button",{type:"button",className:(0,Rt.$)("panel__content__form__section__toggler__btn",{"panel__content__form__section__toggler__btn--toggled":t}),disabled:o,tabIndex:-1,children:t?(0,Et.jsxDEV)(Yn,{},void 0,!1,{fileName:AN,lineNumber:423,columnNumber:21},void 0):(0,Et.jsxDEV)($n,{},void 0,!1,{fileName:AN,lineNumber:423,columnNumber:43},void 0)},void 0,!1,{fileName:AN,lineNumber:415,columnNumber:11},void 0),(0,Et.jsxDEV)("div",{className:"panel__content__form__section__toggler__prompt",children:[i," ",s]},void 0,!0,{fileName:AN,lineNumber:425,columnNumber:11},void 0)]},void 0,!0,{fileName:AN,lineNumber:409,columnNumber:9},void 0)]},void 0,!0,{fileName:AN,lineNumber:402,columnNumber:13},void 0)})),kt("PanelFormActions","panel__content__form__actions");var LN=n(8850);const MN=LN.u$,DN="resizable-panel--collapsed",FN=(e,t)=>({collapsiblePanel:{className:(0,Rt.$)(...t?.classes??[],{[DN]:e}),onStartResize:e=>{e.domElement.classList.remove(DN),t?.onStartResize?.(e)},onStopResize:e=>{const n=Number(e.domElement.style.flexGrow);n<=.01?e.domElement.style.flexGrow="0":n>=.99&&(e.domElement.style.flexGrow="1"),t?.onStopResize?.(e)},size:!e&&t?.size?t.size:0,flex:e?0:void 0},remainingPanel:{flex:e?1:void 0}}),BN=LN.LT,jN=LN.kT,VN=e=>(0,Et.jsxDEV)("div",{className:"resizable-panel__splitter-line",style:{background:e.color}},void 0,!1,{fileName:"/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/ResizablePanel.tsx",lineNumber:136,columnNumber:7},void 0);var HN=n(6481);const GN=(0,It.PA)((e=>{const{node:t,level:n,stepPaddingInRem:i,onNodeSelect:s,innerProps:o}=e,{testRunnerState:r,onNodeOpen:a,onNodeExpand:c,onNodeCompress:l,renderNodeLabel:d}=o,u=_N(),p=$t(),h=r.testResultInfo,m=!t.data.type,g=t.id===r.selectedTestId;let f;switch(h?((e,t)=>{const n=e.id;return Boolean(e.data.type)?((e,t)=>t.passedTests.has(e)?N_.PASSED:t.failedTests.has(e)?N_.FAILED:t.testsWithError.has(e)?N_.ERROR:N_.RUNNING)(n,t):t.failedTestIds.some((e=>e.startsWith(`${n}_`)))||t.testWithErrorIds.some((e=>e.startsWith(`${n}_`)))?N_.FAILED:t.notRunTestIds.some((e=>e.startsWith(`${n}_`)))?N_.RUNNING:N_.PASSED})(t,h):void 0){case N_.PASSED:f=(0,N.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--passed",children:(0,N.jsx)(si,{})});break;case N_.FAILED:f=(0,N.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--failed",children:(0,N.jsx)(gi,{})});break;case N_.ERROR:f=(0,N.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--error",children:(0,N.jsx)(Vn,{})});break;case N_.RUNNING:f=(0,N.jsx)("div",{className:"test-runner-panel__explorer__package-tree__status test-runner-panel__explorer__package-tree__status--running",children:(0,N.jsx)(ai,{})});break;default:f=(0,N.jsx)(zn,{})}const _=()=>{t.isOpen?l(t):c(t)};return(0,N.jsxs)("div",{className:(0,Rt.$)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected":g}),onClick:e=>{e.stopPropagation(),e.preventDefault(),s?.(t),m?_():a(t)},onDoubleClick:()=>{m?_():(0,ke.gP)(u.loadFile(t.data.li_attr.file,new Tf(t.data.li_attr.file,Number.parseInt(t.data.li_attr.line,10),Number.parseInt(t.data.li_attr.column,10)))).catch(p.alertUnhandledError)},style:{paddingLeft:n*(i??1)+"rem",display:"flex"},children:[(0,N.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:e=>{e.stopPropagation(),_()},children:m?t.isOpen?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{}):(0,N.jsx)("div",{})}),(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__type",children:f})]}),(0,N.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:d?.(t)??t.label})]})})),UN=(0,It.PA)((e=>{const{testRunnerState:t}=e,n=t.getTreeData(),i=e=>t.setSelectedTestId(e.id),s=e=>{let t=e.id.split("__")[0];if(!t)return e.label;const n=t.split("_");return t=n.slice(1,n.length).join(Po),(0,N.jsxs)("div",{className:"test-runner-list__item__label",children:[(0,N.jsx)("div",{className:"test-runner-list__item__label__name",children:e.label}),(0,N.jsx)("div",{className:"test-runner-list__item__label__path",children:t})]})};return(0,N.jsx)("div",{className:"explorer__content",children:Array.from(t.allTests.keys()).map((e=>n.nodes.get(e))).filter(B).map((e=>(0,N.jsx)(GN,{node:e,level:0,onNodeSelect:()=>{},innerProps:{testRunnerState:t,onNodeOpen:i,renderNodeLabel:s,onNodeExpand:()=>{},onNodeCompress:()=>{}}},e.id)))})})),$N=(0,It.PA)((e=>{const{testRunnerState:t}=e,n=t.getTreeData(),i=0===n.nodes.size;return(0,N.jsxs)("div",{className:"explorer__content",children:[i&&(0,N.jsx)(as,{children:"No tests found"}),!i&&(0,N.jsx)(SN,{components:{TreeNodeContainer:GN},treeData:n,onNodeSelect:()=>{},getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>n.nodes.get(e))).filter(B),innerProps:{testRunnerState:t,onNodeOpen:e=>t.setSelectedTestId(e.id),onNodeExpand:e=>{e.isOpen=!0,t.refreshTree()},onNodeCompress:e=>{e.isOpen=!1,t.refreshTree()}}})]})})),YN=/(?<path>resource:(?<path_sourceId>\/?(?:\w+\/)*\w+(?:\.\w+)*) (?:line:(?<path_line>\d+)) (?:column:(?<path_column>\d+)))/g,WN=e=>{const{wrapText:t,result:n}=e,i=_N(),s=$t(),[o,r]=(0,Gt.useState)(),a=(0,Gt.useRef)(void 0),c=(0,Gt.useRef)(null);return(0,Gt.useEffect)((()=>{if(!o&&c.current){const e=c.current,t=Yg.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,extraEditorClassName:"monaco-editor--small-font",readOnly:!0,glyphMargin:!1,folding:!1,lineNumbers:"off",lineDecorationsWidth:10,lineNumbersMinChars:0,minimap:{enabled:!1},guides:{bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveBracketPair:!1,indentation:!1,highlightActiveIndentation:!1},renderLineHighlight:"none",theme:tf.DEFAULT_DARK,language:hf.TEXT});r(t)}}),[s,o]),o&&(a.current?.dispose(),a.current=Yg.languages.registerLinkProvider(hf.TEXT,{provideLinks:e=>{const t=[];for(let n=1;n<=e.getLineCount();++n)Array.from(e.getLineContent(n).matchAll(YN)).forEach((e=>{e.groups?.path&&e.groups.path_sourceId&&e.groups.path_column&&e.groups.path_line&&t.push({range:{startLineNumber:n,startColumn:e.index+1,endLineNumber:n,endColumn:e.index+1+e.groups.path.length},tooltip:"Click to go to location",sourceId:e.groups.path_sourceId,line:e.groups.path_line,column:e.groups.path_column})}));return{links:t}},resolveLink:e=>{const t=e;(0,ke.gP)(i.loadFile(t.sourceId,new Tf(t.sourceId,Number.parseInt(t.line,10),Number.parseInt(t.column,10)))).catch(i.applicationStore.alertUnhandledError)}})),(0,Gt.useEffect)((()=>{if(o){const e=n instanceof v_?"Test passed!":n instanceof C_?n.error.text:"Running...";o.setValue(e),(n instanceof v_||n instanceof C_)&&o.createDecorationsCollection([{range:{startLineNumber:1,startColumn:1,endLineNumber:Number.MAX_SAFE_INTEGER,endColumn:Number.MAX_SAFE_INTEGER},options:{inlineClassName:n instanceof v_?"test-runner-panel__result__content--success":"test-runner-panel__result__content--failure"}}])}}),[o,n]),(0,Gt.useEffect)((()=>{o&&o.updateOptions({wordWrap:t?"on":"off"})}),[o,t]),(0,Gt.useEffect)((()=>()=>{o&&((e=>{e.dispose(),e.getModel()?.dispose()})(o),a.current?.dispose())}),[o]),(0,N.jsx)("div",{className:"code-editor__container",children:(0,N.jsx)("div",{className:"code-editor__body",ref:c})})},zN=(0,It.PA)((e=>{const{testRunnerState:t,selectedTestId:n,testResultInfo:i}=e,s=_N(),o=$t(),[r,a]=(0,Gt.useState)(!1),c=i.results.get(n),l=V(t.allTests.get(n),`Can't find info for test with ID '${n}'`);return(0,N.jsxs)(IN,{children:[(0,N.jsx)(xN,{title:l.text,children:(0,N.jsxs)(wN,{children:[(0,N.jsx)(ON,{className:(0,Rt.$)({"panel__header__action--active":r}),onClick:()=>a(!r),title:"Toggle Text Wrap",children:(0,N.jsx)(gn,{className:"test-runner-panel__result__header__icon--text-wrap"})}),(0,N.jsx)(ON,{title:"Open File",onClick:()=>{(0,ke.gP)(s.loadFile(l.li_attr.file,new Tf(l.li_attr.file,Number.parseInt(l.li_attr.line,10),Number.parseInt(l.li_attr.column,10)))).catch(o.alertUnhandledError)},children:(0,N.jsx)(fn,{})})]})}),(0,N.jsx)(RN,{className:"test-runner-panel__result",children:(0,N.jsx)(WN,{result:c,wrapText:r})})]})})),KN=(0,It.PA)((e=>{const{testRunnerState:t}=e,n=_N(),i=$t(),s=t.testExecutionResult.count,o=t.testResultInfo,r=o?.suiteStatus??E_.NONE,a=o?.runPercentage??0;return(0,N.jsx)("div",{className:"test-runner-panel__content",children:(0,N.jsxs)(MN,{orientation:"vertical",children:[(0,N.jsx)(BN,{minSize:400,children:(0,N.jsxs)("div",{className:"panel test-runner-panel__explorer",children:[(0,N.jsx)(qt,{isLoading:t.treeBuildingState.isInProgress}),(0,N.jsxs)("div",{className:"panel__header",children:[(0,N.jsx)("div",{className:"panel__header__title",children:(0,N.jsxs)("div",{className:"panel__header__title__content test-runner-panel__explorer__report",children:[(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview",children:[(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--total",children:[s," total"]}),(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--passed",children:[o?.passed??0," ",(0,N.jsx)(si,{})]}),(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--failed",children:[o?.failed??0," ",(0,N.jsx)(gi,{})]}),(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__overview__stat test-runner-panel__explorer__report__overview__stat--error",children:[o?.error??0," ",(0,N.jsx)(Vn,{})]})]}),o&&(0,N.jsxs)("div",{className:"test-runner-panel__explorer__report__time",children:[o.time,"ms"]})]})}),(0,N.jsxs)("div",{className:"panel__header__actions",children:[(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>t.setViewAsList(!t.viewAsList),title:t.viewAsList?"View As Tree":"View As List",children:t.viewAsList?(0,N.jsx)(pn,{className:"test-runner-panel__icon--tree-view"}):(0,N.jsx)(hn,{className:"test-runner-panel__icon--list-view"})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>t.expandTree(),title:"Expand All",children:(0,N.jsx)(ci,{})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>t.collapseTree(),title:"Collapse All",children:(0,N.jsx)(Xn,{})}),(0,N.jsx)("button",{className:"panel__header__action",tabIndex:-1,disabled:!n.testRunState.isInProgress,onClick:()=>{(0,ke.gP)(t.cancelTestRun()).catch(i.alertUnhandledError)},title:"Stop",children:(0,N.jsx)(fi,{})}),(0,N.jsx)("button",{className:"panel__header__action",tabIndex:-1,onClick:()=>{(0,ke.gP)(t.rerunTestSuite()).catch(i.alertUnhandledError)},disabled:n.testRunState.isInProgress,title:"Run Suite",children:(0,N.jsx)(Jn,{})}),(0,N.jsx)("button",{className:"panel__header__action",tabIndex:-1,onClick:()=>{(0,ke.gP)(t.cancelTestRun()).catch(i.alertUnhandledError).finally((()=>{n.setTestRunnerState(void 0)}))},title:"Reset",children:(0,N.jsx)(jn,{})})]})]}),(0,N.jsx)("div",{className:"test-runner-panel__header__status",children:(0,N.jsx)(HN.A,{className:`test-runner-panel__progress-bar test-runner-panel__progress-bar--${r.toLowerCase()}`,classes:{bar:`test-runner-panel__progress-bar__bar test-runner-panel__progress-bar__bar--${r.toLowerCase()}`},variant:"determinate",value:a})}),(0,N.jsx)("div",{className:"panel__content",children:t.treeData&&(0,N.jsxs)(N.Fragment,{children:[!t.viewAsList&&(0,N.jsx)($N,{testRunnerState:t}),t.viewAsList&&(0,N.jsx)(UN,{testRunnerState:t})]})})]})}),(0,N.jsx)(jN,{children:(0,N.jsx)(VN,{color:n.panelGroupDisplayState.isMaximized?"transparent":"var(--color-dark-grey-250)"})}),(0,N.jsxs)(BN,{minSize:400,children:[t.selectedTestId&&!o&&(0,N.jsx)("div",{}),t.selectedTestId&&o&&(0,N.jsx)(zN,{testRunnerState:t,selectedTestId:t.selectedTestId,testResultInfo:o}),!t.selectedTestId&&(0,N.jsxs)("div",{className:"panel",children:[(0,N.jsx)("div",{className:"panel__header"}),(0,N.jsx)("div",{className:"panel__content",children:(0,N.jsx)(as,{children:"No test selected"})})]}),(0,N.jsx)("div",{})]})]})})})),XN=(0,It.PA)((()=>{const e=_N().testRunnerState;return(0,N.jsxs)("div",{className:"test-runner-panel",children:[!e&&(0,N.jsx)(as,{children:(0,N.jsx)("div",{className:"panel-group__splash-screen",children:(0,N.jsxs)("div",{className:"panel-group__splash-screen__content",children:[(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Run full test suite"}),(0,N.jsx)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:(0,N.jsx)("div",{className:"hotkey__key",children:"F10"})})]}),(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Run relevant tests only"}),(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:[(0,N.jsx)("div",{className:"hotkey__key",children:"Shift"}),(0,N.jsx)("div",{className:"hotkey__plus",children:(0,N.jsx)(Hn,{})}),(0,N.jsx)("div",{className:"hotkey__key",children:"F10"})]})]})]})})}),e&&(0,N.jsx)(KN,{testRunnerState:e})]})})),qN=(0,It.PA)((e=>{const{candidate:t}=e,n=_N(),i=$t(),s=()=>{(0,ke.gP)(n.loadFile(t.sourceID,new Tf(t.sourceID,t.line,t.column))).catch(i.alertUnhandledError)};return(0,N.jsxs)("div",{className:"suggestions-panel__entry__content__item",children:[(0,N.jsxs)("div",{className:"suggestions-panel__entry__content__item__label__candidate",title:"Go to Result",onClick:s,children:[(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-name",children:t.foundName}),(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-location",children:`${bf(t.sourceID)} [${t.line}:${t.column}]`})]}),(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__actions",children:(0,N.jsx)("button",{className:"suggestions-panel__entry__content__item__action",tabIndex:-1,title:"Go to Result",onClick:s,children:(0,N.jsx)(Zn,{})})})]})})),JN=(0,It.PA)((e=>{const{candidate:t}=e,n=_N(),i=$t();return(0,N.jsxs)("div",{className:"suggestions-panel__entry__content__item",children:[(0,N.jsxs)("div",{className:"suggestions-panel__entry__content__item__label__candidate",title:"Add Suggested Import",onClick:()=>{(0,ke.gP)(n.updateFileUsingSuggestionCandidate(t)).catch(i.alertUnhandledError)},children:[(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-name",children:t.foundName}),(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__label__candidate-location",children:`${bf(t.sourceID)} [${t.line}:${t.column}]`})]}),(0,N.jsx)("div",{className:"suggestions-panel__entry__content__item__actions",children:(0,N.jsx)("button",{className:"suggestions-panel__entry__content__item__action",tabIndex:-1,title:"Go to Result",onClick:()=>{(0,ke.gP)(n.loadFile(t.sourceID,new Tf(t.sourceID,t.line,t.column))).catch(i.alertUnhandledError)},children:(0,N.jsx)(Zn,{})})})]})})),ZN=(0,It.PA)((e=>{const{suggestionState:t}=e,n=t.result;return(0,N.jsxs)("div",{className:"suggestions-panel__content",children:[!n.candidatesWithPackageImported.length&&(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`No functions, in packages already imported, match the function '${n.candidateName}'`}),Boolean(n.candidatesWithPackageImported.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`These functions, in packages already imported, would match the function '${n.candidateName}' if you changed the parameters`}),(0,N.jsx)("div",{className:"suggestions-panel__entry",children:n.candidatesWithPackageImported.map((e=>(0,N.jsx)(qN,{candidate:e},e.uuid)))})]}),!n.candidatesWithPackageNotImported.length&&(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`No functions, in packages not imported, match the function '${n.candidateName}'`}),Boolean(n.candidatesWithPackageNotImported.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`These functions, in packages not imported, match the function '${n.candidateName}'. Click on result to import the necessary package`}),(0,N.jsx)("div",{className:"suggestions-panel__entry",children:n.candidatesWithPackageNotImported.map((e=>(0,N.jsx)(JN,{candidate:e},e.uuid)))})]})]})})),QN=(0,It.PA)((e=>{const{suggestionState:t}=e,n=t.result;return(0,N.jsxs)("div",{className:"suggestions-panel__content",children:[!n.candidates.length&&(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`No possible matches found for '${n.candidateName}'`}),Boolean(n.candidates.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"suggestions-panel__content__header",children:`Found possible matches for '${n.candidateName}'. Click on result to import the necessary package`}),(0,N.jsx)("div",{className:"suggestions-panel__entry",children:n.candidates.map((e=>(0,N.jsx)(JN,{candidate:e},e.uuid)))})]})]})})),eb=(0,It.PA)((()=>{const e=_N();return(0,N.jsxs)("div",{className:"suggestions-panel",children:[e.codeFixSuggestion instanceof lN&&(0,N.jsx)(ZN,{suggestionState:e.codeFixSuggestion}),e.codeFixSuggestion instanceof dN&&(0,N.jsx)(QN,{suggestionState:e.codeFixSuggestion})]})})),tb=(0,It.PA)((e=>{const{referenceUsageResult:t,result:n}=e,i=_N(),s=$t(),o=e=>()=>(0,ke.gP)(i.loadFile(n.sourceId,new Tf(n.sourceId,e.startLine,e.startColumn))).catch(s.alertUnhandledError),r=e=>()=>{n.dismissCoordinate(e),n.coordinates.length||t.dismissSearchEntry(n)};return(0,N.jsxs)("div",{className:"references-panel__entry",children:[(0,N.jsxs)("div",{className:"references-panel__entry__header",onClick:()=>n.setIsExpanded(!n.isExpanded),children:[(0,N.jsxs)("div",{className:"references-panel__entry__header__title",children:[(0,N.jsx)("div",{className:"references-panel__entry__header__title__expander",children:n.isExpanded?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{})}),(0,N.jsx)("div",{className:"references-panel__entry__header__title__label",children:(0,N.jsx)(Ni,{})}),(0,N.jsx)("div",{className:"references-panel__entry__header__title__content",children:bf(n.sourceId)})]}),(0,N.jsxs)("div",{className:"references-panel__entry__header__actions",children:[(0,N.jsx)("div",{className:"references-panel__entry__header__action references-panel__entry__header__action--with-counter",children:(0,N.jsx)("div",{className:"references-panel__entry__header__action__counter",children:n.coordinates.length})}),(0,N.jsx)("button",{className:"references-panel__entry__header__action references-panel__entry__header__action--hidden",tabIndex:-1,title:"Dismiss",onClick:()=>t.dismissSearchEntry(n),children:(0,N.jsx)(jn,{})})]})]}),n.isExpanded&&(0,N.jsx)("div",{className:"references-panel__entry__content",children:n.coordinates.map((e=>(0,N.jsxs)("div",{className:"references-panel__entry__content__item",children:[(0,N.jsxs)("div",{className:"references-panel__entry__content__item__label references-panel__entry__content__item__label--full",title:e.preview?`${e.preview.before}${e.preview.found.replaceAll(/\n/g,"↵")}${e.preview.after}`:"Go To Result",onClick:o(e),children:[e.preview&&(0,N.jsxs)("div",{className:"references-panel__entry__content__item__label__content",children:[(0,N.jsx)("div",{className:"references-panel__entry__content__item__label__coordinates",children:`[${e.startLine}:${e.startColumn}]`}),(0,N.jsxs)("div",{className:"references-panel__entry__content__item__label__preview",children:[(0,N.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text",children:e.preview.before}),(0,N.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text references-panel__entry__content__item__label__preview__text--found",children:e.preview.found.replaceAll(/\n/g,"↵")}),(0,N.jsx)("span",{className:"references-panel__entry__content__item__label__preview__text",children:e.preview.after})]})]}),!e.preview&&(0,N.jsx)(N.Fragment,{children:`line: ${e.startLine} - column: ${e.startColumn}`})]}),(0,N.jsx)("div",{className:"references-panel__entry__content__item__actions",children:(0,N.jsx)("button",{className:"references-panel__entry__content__item__action references-panel__entry__content__item__action--hidden",tabIndex:-1,title:"Dismiss",onClick:r(e),children:(0,N.jsx)(jn,{})})})]},e.uuid)))})]})})),nb=(0,It.PA)((e=>{const{referenceUsageState:t}=e,n=_N(),i=$t(),s=t.searchEntries.some((e=>!e.isExpanded));return(0,N.jsxs)("div",{className:"references-panel__content",children:[(0,N.jsxs)("div",{className:"references-panel__content__header",children:[(0,N.jsx)("div",{className:"references-panel__content__header__title",children:t.searchEntries.length?`${t.numberOfResults} usages(s) in ${t.numberOfFiles} files for ${Sf(t.usageConcept)}`:`No usages found for ${Sf(t.usageConcept)}`}),(0,N.jsxs)("div",{className:"references-panel__content__header__actions",children:[(0,N.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Refresh",onClick:()=>{(0,ke.gP)(n.findUsages(t.usageConcept)).catch(i.alertUnhandledError)},children:(0,N.jsx)(un,{})}),(0,N.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Clear",onClick:()=>n.setReferenceUsageResult(void 0),children:(0,N.jsx)(_n,{})}),!s&&(0,N.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Collapse All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!1)))},children:(0,N.jsx)(Cn,{})}),s&&(0,N.jsx)("button",{className:"references-panel__content__header__action",tabIndex:-1,title:"Expand All",onClick:()=>{t.searchEntries.forEach((e=>e.setIsExpanded(!0)))},children:(0,N.jsx)(yn,{})})]})]}),(0,N.jsx)("div",{className:"references-panel__content__results",children:t.searchEntries.map((e=>(0,N.jsx)(tb,{referenceUsageResult:t,result:e},e.uuid)))})]})})),ib=(0,It.PA)((()=>{const e=_N();return(0,N.jsxs)("div",{className:"references-panel",children:[(0,N.jsx)(qt,{isLoading:e.referenceUsageLoadState.isInProgress}),!e.referenceUsageResult&&(0,N.jsx)(as,{children:(0,N.jsx)("div",{className:"panel-group__splash-screen",children:(0,N.jsx)("div",{className:"panel-group__splash-screen__content",children:(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"panel-group__splash-screen__content__item__label",children:"Find Concept References"}),(0,N.jsxs)("div",{className:"panel-group__splash-screen__content__item__hot-keys",children:[(0,N.jsx)("div",{className:"hotkey__key",children:"Alt"}),(0,N.jsx)("div",{className:"hotkey__plus",children:(0,N.jsx)(Hn,{})}),(0,N.jsx)("div",{className:"hotkey__key",children:"F7"})]})]})})})}),e.referenceUsageResult&&(0,N.jsx)(nb,{referenceUsageState:e.referenceUsageResult})]})})),sb=(0,It.PA)((()=>{const e=_N(),t={[Ug.TERMINAL]:{mode:Ug.TERMINAL,name:"TERMINAL",icon:(0,N.jsx)(pi,{className:"panel-group__header__tab__icon--terminal"}),isVisible:!0},[Ug.SEARCH]:{mode:Ug.SEARCH,name:"SEARCH",icon:(0,N.jsx)(ei,{className:"panel-group__header__tab__icon--search"}),isVisible:!0},[Ug.TEST_RUNNER]:{mode:Ug.TEST_RUNNER,name:"TEST",icon:(0,N.jsx)(Mn,{className:"panel-group__header__tab__icon--test"}),isVisible:!0},[Ug.REFERENCES]:{mode:Ug.REFERENCES,name:"REFERENCES",icon:(0,N.jsx)(vn,{className:"panel-group__header__tab__icon--references"}),isVisible:!0},[Ug.CODE_FIX_SUGGESTION]:{mode:Ug.CODE_FIX_SUGGESTION,name:"SUGGESTIONS",icon:(0,N.jsx)(Tn,{className:"panel-group__header__tab__icon--suggestion"}),isVisible:Boolean(e.codeFixSuggestion)}},n=Object.values(Ug).filter((e=>B(t[e])&&t[e].isVisible)),i=t=>e.activePanelMode===t&&n.includes(t);return(0,Gt.useEffect)((()=>{n.includes(e.activePanelMode)||e.setActivePanelMode(Ug.TERMINAL)}),[e,n,e.activePanelMode]),(0,N.jsxs)(IN,{className:"panel-group",children:[(0,N.jsxs)(xN,{children:[(0,N.jsx)("div",{className:"panel-group__header__tabs",children:n.map((e=>t[e])).filter(B).map((t=>{return(0,N.jsxs)("button",{tabIndex:-1,className:(0,Rt.$)("panel-group__header__tab",{"panel-group__header__tab--active":e.activePanelMode===t.mode}),onClick:(n=t.mode,()=>e.setActivePanelMode(n)),children:[(0,N.jsx)("div",{className:"panel-group__header__tab__icon",children:t.icon}),(0,N.jsx)("div",{className:"panel-group__header__tab__title",children:t.name})]},t.mode);var n}))}),(0,N.jsxs)("div",{className:"panel-group__header__actions",children:[(0,N.jsx)("button",{className:"panel-group__header__action",onClick:()=>e.panelGroupDisplayState.toggleMaximize(),tabIndex:-1,title:"Toggle Expand/Collapse",children:e.panelGroupDisplayState.isMaximized?(0,N.jsx)(xi,{}):(0,N.jsx)(wi,{})}),(0,N.jsx)("button",{className:"panel-group__header__action",onClick:()=>e.panelGroupDisplayState.toggle(),tabIndex:-1,title:"Close",children:(0,N.jsx)(Ri,{})})]})]}),(0,N.jsxs)(RN,{children:[i(Ug.TERMINAL)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(EN,{})}),i(Ug.SEARCH)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(vN,{})}),i(Ug.TEST_RUNNER)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(XN,{})}),i(Ug.CODE_FIX_SUGGESTION)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(eb,{})}),i(Ug.REFERENCES)&&(0,N.jsx)("div",{className:"panel-group__content__tab",children:(0,N.jsx)(ib,{})})]})]})}));var ob=n(255);const rb="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/icon/TypeIcon.tsx",ab=()=>(0,Et.jsxDEV)("div",{className:"icon color--package",children:(0,Et.jsxDEV)(Pi,{},void 0,!1,{fileName:rb,lineNumber:41,columnNumber:5},void 0)},void 0,!1,{fileName:rb,lineNumber:39,columnNumber:50},void 0),cb=()=>(0,Et.jsxDEV)("div",{className:"icon color--class",children:"C"},void 0,!1,{fileName:rb,lineNumber:45,columnNumber:48},void 0),lb=()=>(0,Et.jsxDEV)("div",{className:"icon color--enumeration",children:"E"},void 0,!1,{fileName:rb,lineNumber:57,columnNumber:54},void 0),db=()=>(0,Et.jsxDEV)("div",{className:"icon color--measure",children:"M"},void 0,!1,{fileName:rb,lineNumber:61,columnNumber:50},void 0),ub=()=>(0,Et.jsxDEV)("div",{className:"icon color--unit",children:"u"},void 0,!1,{fileName:rb,lineNumber:65,columnNumber:47},void 0),pb=()=>(0,Et.jsxDEV)("div",{className:"icon color--profile",children:"P"},void 0,!1,{fileName:rb,lineNumber:69,columnNumber:50},void 0),hb=()=>(0,Et.jsxDEV)("div",{className:"icon icon--function color--function",children:(0,Et.jsxDEV)(dn,{},void 0,!1,{fileName:rb,lineNumber:75,columnNumber:5},void 0)},void 0,!1,{fileName:rb,lineNumber:73,columnNumber:51},void 0),mb=()=>(0,Et.jsxDEV)("div",{className:"icon color--mapping",children:(0,Et.jsxDEV)(qn,{},void 0,!1,{fileName:rb,lineNumber:109,columnNumber:5},void 0)},void 0,!1,{fileName:rb,lineNumber:107,columnNumber:50},void 0),gb=()=>(0,Et.jsxDEV)("div",{className:"icon icon--unknown",children:(0,Et.jsxDEV)(Ln,{},void 0,!1,{fileName:rb,lineNumber:161,columnNumber:5},void 0)},void 0,!1,{fileName:rb,lineNumber:159,columnNumber:61},void 0),fb=()=>(0,N.jsx)("div",{className:"icon icon--function color--native-function",children:(0,N.jsx)(dn,{})}),_b=()=>(0,N.jsx)("div",{className:"icon icon--property color--property",children:(0,N.jsx)(ki,{})}),Eb=()=>(0,N.jsx)("div",{className:"icon color--diagram",children:(0,N.jsx)(Qn,{})}),Nb=()=>(0,N.jsx)("div",{className:"icon icon--database",children:(0,N.jsx)(Si,{})}),bb=()=>(0,N.jsx)("div",{className:"icon color--association color--pure-association",children:"A"}),vb=e=>{switch(e){case mf.PACKAGE:return(0,N.jsx)(ab,{});case mf.PROFILE:return(0,N.jsx)(pb,{});case mf.CLASS:return(0,N.jsx)(cb,{});case mf.ASSOCIATION:return(0,N.jsx)(bb,{});case mf.PROPERTY:case mf.QUALIFIED_PROPERTY:return(0,N.jsx)(_b,{});case mf.ENUMERATION:return(0,N.jsx)(lb,{});case mf.MEASURE:return(0,N.jsx)(db,{});case mf.UNIT:return(0,N.jsx)(ub,{});case mf.FUNCTION:return(0,N.jsx)(hb,{});case mf.NATIVE_FUNCTION:return(0,N.jsx)(fb,{});case mf.DIAGRAM:return(0,N.jsx)(Eb,{});case mf.DATABASE:return(0,N.jsx)(Nb,{});case mf.MAPPING:return(0,N.jsx)(mb,{});default:return(0,N.jsx)(gb,{})}},Tb=/^\w[\w$]*$/,Cb=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,yb=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),s=t.data.li_attr.pureName??t.data.li_attr.pureId,o=t.data.li_attr.pureType===mf.PACKAGE,[r,a]=(0,Gt.useState)(o?mm(s):s),c=(0,Gt.useRef)(null),l=Boolean(r.match(o?Cb:Tb)),d=(o?mm(s):s)===r,u=l?void 0:"Invalid path",p=()=>n.conceptTreeState.setNodeForRenameConcept(void 0),h=e=>{e.preventDefault(),d||n.conceptTreeState.renameConcept(t,r).catch(i.alertUnhandledError).finally((()=>p()))};return(0,N.jsx)(Ot.A,{open:!0,onClose:p,TransitionProps:{onEnter:()=>c.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Rename concept"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:h,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:c,className:"input input--dark",onChange:e=>a(e.target.value),value:r,spellCheck:!1}),u&&(0,N.jsx)("div",{className:"input-group__error-message",children:u})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(u),onClick:h,children:"Rename"})]})]})})})),Sb=/^(?:(?:\w[\w$]*)::)*\w[\w$]*$/,Ab=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),s=gm(t.data.li_attr.pureId)??"",[o,r]=(0,Gt.useState)(s),a=(0,Gt.useRef)(null),c=Boolean(o.match(Sb)),l=s===o,d=c?void 0:"Invalid path",u=()=>n.conceptTreeState.setNodeForMoveElement(void 0),p=e=>{e.preventDefault(),l||n.conceptTreeState.movePackageableElements([$(t.data.li_attr,Ef)],o).catch(i.alertUnhandledError).finally((()=>u()))};return(0,N.jsx)(Ot.A,{open:!0,onClose:u,TransitionProps:{onEnter:()=>a.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Move element"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:a,className:"input input--dark",onChange:e=>r(e.target.value),value:o,spellCheck:!1}),d&&(0,N.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(d),onClick:p,children:"Move"})]})]})})})),Ib=(0,It.PA)((0,Gt.forwardRef)((function(e,t){const{node:n,viewConceptSource:i}=e,s=n.data.li_attr,o=s.pureType,r=_N(),a=$t();return(0,N.jsxs)(Ji,{ref:t,children:[s.pureType!==mf.PROPERTY&&s.pureType!==mf.QUALIFIED_PROPERTY&&(0,N.jsx)(Zi,{onClick:()=>{a.clipboardService.copyTextToClipboard(s.pureId).catch(a.alertUnhandledError)},children:"Copy Path"}),o===mf.PACKAGE&&(0,N.jsx)(Zi,{onClick:()=>{(0,ke.gP)(r.executeTests(n.data.li_attr.pureId)).catch(a.alertUnhandledError)},children:"Run Tests"}),o===mf.FUNCTION&&(0,N.jsx)(Zi,{onClick:()=>{a.navigationService.navigator.visitAddress(`${r.client.baseUrl}/execute?func=${s.pureId}&mode=${r.client.mode}`)},children:"Service (JSON)"}),(s instanceof _f||s instanceof Ef)&&(0,N.jsx)(Zi,{onClick:()=>{(s instanceof Ef||s instanceof _f)&&r.findUsagesFromCoordinate(new Tf(s.file,Number.parseInt(s.line,10),Number.parseInt(s.column,10)))},children:"Find Usages"}),o!==mf.PACKAGE&&(0,N.jsx)(Zi,{onClick:()=>i(n),children:"View Source"}),(0,N.jsx)(Qi,{}),(0,N.jsx)(Zi,{onClick:()=>r.conceptTreeState.setNodeForRenameConcept(n),children:"Rename"}),s instanceof Ef&&(0,N.jsx)(Zi,{onClick:()=>r.conceptTreeState.setNodeForMoveElement(n),children:"Move"})]})})));var xb;!function(e){e.UNSUPPORTED="UNSUPPORTED",e.CLASS="CLASS"}(xb||(xb={}));const wb=e=>{const{node:t,level:n,stepPaddingInRem:i,onNodeSelect:s,innerProps:o}=e,[r,a]=(0,Gt.useState)(!1),{onNodeOpen:c,onNodeExpand:l,onNodeCompress:d,viewConceptSource:u}=o,p=t.parent&&t.data.li_attr instanceof _f&&t.data.li_attr.classPath!==t.parent.id,h=[mf.PACKAGE,mf.CLASS].includes(t.data.li_attr.pureType),m=t.data.li_attr.pureType===mf.QUALIFIED_PROPERTY?(0,N.jsxs)(N.Fragment,{children:[t.label,(0,N.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:"(...)"})]}):p?(0,N.jsxs)(N.Fragment,{children:[t.label,(0,N.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:mm($(t.data.li_attr,_f).classPath)})]}):t.label.includes("(")?(0,N.jsxs)(N.Fragment,{children:[t.label.substring(0,t.label.indexOf("(")),(0,N.jsx)("span",{className:"explorer__package-tree__node__label__tag",children:t.label.substring(t.label.indexOf("("))})]}):t.label,g=()=>{t.isLoading||(t.isOpen?d(t):l(t))},[,f]=(0,ob.i)((()=>({type:"Class"===t.data.li_attr.pureType?xb.CLASS:xb.UNSUPPORTED,item:t.data})),[t]);return(0,N.jsx)(Xi,{content:(0,N.jsx)(Ib,{node:t,viewConceptSource:u}),menuProps:{elevation:7},onOpen:()=>a(!0),onClose:()=>a(!1),children:(0,N.jsxs)("div",{className:(0,Rt.$)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected-from-context-menu":!t.isSelected&&r},{"explorer__package-tree__node__container--selected":t.isSelected}),onClick:e=>{e.stopPropagation(),e.preventDefault(),s?.(t)},ref:f,onDoubleClick:()=>{t.isLoading||(h&&g(),s?.(t),c(t))},style:{paddingLeft:n*(i??1)+"rem",display:"flex"},children:[(0,N.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[t.isLoading&&(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand explorer__package-tree__node__icon__expand--is-loading",children:(0,N.jsx)(ai,{})}),!t.isLoading&&(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:g,children:h?t.isOpen?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{}):(0,N.jsx)("div",{})}),(0,N.jsx)("div",{className:(0,Rt.$)("explorer__package-tree__node__icon__type",{"explorer__package-tree__node__icon__type--property-from-association":p}),children:vb(t.data.li_attr.pureType)})]}),(0,N.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:m})]})})},Ob=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.conceptTreeState,i=e.conceptTreeState.getTreeData();return(0,N.jsxs)("div",{className:"explorer__content",onClick:()=>n.setSelectedNode(void 0),children:[(0,N.jsx)(SN,{components:{TreeNodeContainer:wb},treeData:i,onNodeSelect:e=>n.setSelectedNode(e),getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>i.nodes.get(e))).filter(B),innerProps:{onNodeOpen:e=>{(0,ke.gP)(n.openNode(e)).catch(t.alertUnhandledError)},onNodeExpand:e=>{(0,ke.gP)(n.expandNode(e)).catch(t.alertUnhandledError)},onNodeCompress:e=>{e.isOpen=!1,n.refreshTree()},viewConceptSource:n=>{const i=n.data.li_attr;(i instanceof Ef||i instanceof _f)&&(0,ke.gP)(e.directoryTreeState.revealPath(i.file,{forceOpenExplorerPanel:!0,coordinate:new Tf(i.file,Number.parseInt(i.line,10),Number.parseInt(i.column,10))})).catch(t.alertUnhandledError)}}}),n.nodeForRenameConcept&&(0,N.jsx)(yb,{node:n.nodeForRenameConcept}),n.nodeForMoveElement&&(0,N.jsx)(Ab,{node:n.nodeForMoveElement})]})})),Rb=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.conceptTreeState;return(0,N.jsxs)("div",{className:"panel explorer",children:[(0,N.jsx)("div",{className:"panel__header side-bar__header",children:(0,N.jsx)("div",{className:"panel__header__title",children:(0,N.jsx)("div",{className:"panel__header__title__content side-bar__header__title__content",children:"CONCEPTS"})})}),(0,N.jsx)("div",{className:"panel__content side-bar__content",children:(0,N.jsxs)("div",{className:"panel explorer",children:[(0,N.jsxs)("div",{className:"panel__header explorer__header",children:[(0,N.jsx)("div",{className:"panel__header__title"}),(0,N.jsxs)("div",{className:"panel__header__actions",children:[(0,N.jsx)("button",{className:"panel__header__action explorer__btn__refresh",onClick:()=>{(0,ke.gP)(n.refreshTreeData()).catch(t.alertUnhandledError)},title:"Refresh Tree",children:(0,N.jsx)(un,{})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>{n.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),n.setSelectedNode(void 0),n.refreshTree()},title:"Collapse All",children:(0,N.jsx)(Xn,{})})]})]}),(0,N.jsxs)("div",{className:"panel__content explorer__content__container",children:[(0,N.jsx)(qt,{isLoading:n.loadInitialDataState.isInProgress}),n.loadInitialDataState.hasSucceeded&&(0,N.jsx)(Ob,{}),!n.loadInitialDataState.hasSucceeded&&n.statusText&&(0,N.jsx)("div",{className:"explorer__content__container__message",children:n.statusText}),n.loadInitialDataState.hasFailed&&(0,N.jsx)(as,{children:"Failed to build concept tree. Make sure graph compiles"})]})]})})]})})),kb=/^\w+(?:\.\w+)*$/,Pb=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),[s,o]=(0,Gt.useState)("untitled.pure"),r=(0,Gt.useRef)(null),a=Boolean(s.match(kb)),c=!t.childrenIds?.map((e=>n.directoryTreeState.getTreeData().nodes.get(e))).filter((e=>e?.data.text===s)).length,l=a?c?void 0:"Already existed":"Invalid file name",d=()=>n.directoryTreeState.setNodeForCreateNewFile(void 0),u=e=>{e.preventDefault(),d(),(0,ke.gP)(n.createNewFile(`${t.data.li_attr.path}/${s}`)).catch(i.alertUnhandledError)};return(0,N.jsx)(Ot.A,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Create a new file"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>o(e.target.value),value:s,spellCheck:!1}),l&&(0,N.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Create"})]})]})})})),Lb=/^\w+$/,Mb=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),[s,o]=(0,Gt.useState)("untitled"),r=(0,Gt.useRef)(null),a=Boolean(s.match(Lb)),c=!t.childrenIds?.map((e=>n.directoryTreeState.getTreeData().nodes.get(e))).filter((e=>e?.data.text===s)).length,l=a?c?void 0:"Already existed":"Invalid directory name",d=()=>n.directoryTreeState.setNodeForCreateNewDirectory(void 0),u=e=>{e.preventDefault(),d(),(0,ke.gP)(n.createNewDirectory(`${t.data.li_attr.path}/${s}`)).catch(i.alertUnhandledError)};return(0,N.jsx)(Ot.A,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Create a new directory"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>o(e.target.value),value:s,spellCheck:!1}),l&&(0,N.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Create"})]})]})})})),Db=/^\/?(?:\w+\/)*\w+(?:\.\w+)*$/,Fb=(0,It.PA)((e=>{const{node:t}=e,n=_N(),i=$t(),[s,o]=(0,Gt.useState)(t.data.li_attr.path),r=(0,Gt.useRef)(null),a=Boolean(s.match(Db)),c=t.data.li_attr.path===s,l=a?void 0:"Invalid path",d=()=>n.directoryTreeState.setNodeForRenameFile(void 0),u=e=>{e.preventDefault(),c||(d(),(0,ke.gP)(n.renameFile(t.data.li_attr.path,s)).catch(i.alertUnhandledError))};return(0,N.jsx)(Ot.A,{open:!0,onClose:d,TransitionProps:{onEnter:()=>r.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Rename file"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:u,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:r,className:"input input--dark",onChange:e=>o(e.target.value),value:s,spellCheck:!1}),l&&(0,N.jsx)("div",{className:"input-group__error-message",children:l})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(l),onClick:u,children:"Rename"})]})]})})})),Bb=(0,It.PA)((0,Gt.forwardRef)((function(e,t){const{node:n}=e,i=$t(),s=_N(),o=n.data.isFolderNode,r=Boolean(n.data.children);return(0,N.jsxs)(Ji,{ref:t,children:[(0,N.jsx)(Zi,{onClick:()=>{i.clipboardService.copyTextToClipboard(n.data.li_attr.path).catch(i.alertUnhandledError)},children:"Copy Path"}),(0,N.jsx)(Qi,{}),o&&(0,N.jsx)(Zi,{onClick:()=>s.directoryTreeState.setNodeForCreateNewFile(n),children:"New File"}),o&&(0,N.jsx)(Zi,{onClick:()=>s.directoryTreeState.setNodeForCreateNewDirectory(n),children:"New Directory"}),!o&&(0,N.jsx)(Zi,{onClick:()=>s.directoryTreeState.setNodeForRenameFile(n),children:"Rename"}),(0,N.jsx)(Zi,{disabled:Boolean(n.data instanceof Wf&&n.data.children),onClick:()=>{(0,ke.gP)(s.deleteDirectoryOrFile(n.data.li_attr.path,o,r)).catch(i.alertUnhandledError)},children:"Delete"})]})}))),jb=e=>{const{node:t,level:n,stepPaddingInRem:i,onNodeSelect:s,innerProps:o}=e,[r,a]=(0,Gt.useState)(!1),{onNodeOpen:c,onNodeExpand:l,onNodeCompress:d}=o,u=t.data instanceof Wf&&t.data.isRepoNode&&"/platform"===t.data.li_attr.path,p=t.data.li_attr.RO,h=t.data.isFolderNode,m=t.data instanceof Wf&&!t.data.children,g=u||t.data.isRepoNode&&t.data.li_attr.path.startsWith("/platform_")?(0,N.jsx)(li,{className:"explorer__icon--readonly"}):h?m?(0,N.jsx)(mi,{className:(0,Rt.$)("explorer__icon--folder",{"explorer__icon--readonly":p})}):t.isOpen?(0,N.jsx)(hi,{className:(0,Rt.$)("explorer__icon--folder",{"explorer__icon--readonly":p})}):(0,N.jsx)(mi,{className:(0,Rt.$)("explorer__icon--folder",{"explorer__icon--readonly":p})}):(0,N.jsx)(Ni,{className:(0,Rt.$)("explorer__icon--file",{"explorer__icon--readonly":p})}),f=()=>{m||t.isLoading||(t.isOpen?d(t):l(t))};return(0,N.jsx)(Xi,{content:(0,N.jsx)(Bb,{node:t}),menuProps:{elevation:7},onOpen:()=>a(!0),onClose:()=>a(!1),children:(0,N.jsxs)("div",{className:(0,Rt.$)("tree-view__node__container explorer__package-tree__node__container",{"explorer__package-tree__node__container--selected-from-context-menu":!t.isSelected&&r},{"explorer__package-tree__node__container--selected":t.isSelected}),onClick:e=>{e.stopPropagation(),e.preventDefault(),s?.(t)},onDoubleClick:()=>{t.isLoading||(h?f():c(t))},style:{paddingLeft:n*(i??1)+"rem",display:"flex"},children:[(0,N.jsxs)("div",{className:"tree-view__node__icon explorer__package-tree__node__icon",children:[t.isLoading&&(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand explorer__package-tree__node__icon__expand--is-loading",children:(0,N.jsx)(ai,{})}),!t.isLoading&&(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__expand",onClick:f,children:!h||m?(0,N.jsx)("div",{}):t.isOpen?(0,N.jsx)(xi,{}):(0,N.jsx)(Oi,{})}),(0,N.jsx)("div",{className:"explorer__package-tree__node__icon__type",children:g})]}),(0,N.jsx)("button",{className:"tree-view__node__label explorer__package-tree__node__label",tabIndex:-1,children:u?"platform":t.label})]})})},Vb=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.directoryTreeState,i=e.directoryTreeState.getTreeData();return(0,N.jsxs)("div",{className:"explorer__content",onClick:()=>n.setSelectedNode(void 0),children:[(0,N.jsx)(SN,{components:{TreeNodeContainer:jb},treeData:i,onNodeSelect:e=>n.setSelectedNode(e),getChildNodes:e=>e.isLoading||!e.childrenIds?[]:e.childrenIds.map((e=>i.nodes.get(e))).filter(B),innerProps:{onNodeOpen:e=>{(0,ke.gP)(n.openNode(e)).catch(t.alertUnhandledError)},onNodeExpand:e=>{(0,ke.gP)(n.expandNode(e)).catch(t.alertUnhandledError)},onNodeCompress:e=>{e.isOpen=!1,n.refreshTree()}}}),n.nodeForCreateNewFile&&(0,N.jsx)(Pb,{node:n.nodeForCreateNewFile}),n.nodeForCreateNewDirectory&&(0,N.jsx)(Mb,{node:n.nodeForCreateNewDirectory}),n.nodeForRenameFile&&(0,N.jsx)(Fb,{node:n.nodeForRenameFile})]})})),Hb=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.directoryTreeState;return(0,N.jsxs)("div",{className:"panel explorer",children:[(0,N.jsx)("div",{className:"panel__header side-bar__header",children:(0,N.jsx)("div",{className:"panel__header__title",children:(0,N.jsx)("div",{className:"panel__header__title__content side-bar__header__title__content",children:"FILES"})})}),(0,N.jsx)("div",{className:"panel__content side-bar__content",children:(0,N.jsxs)("div",{className:"panel explorer",children:[(0,N.jsxs)("div",{className:"panel__header explorer__header",children:[(0,N.jsx)("div",{className:"panel__header__title"}),(0,N.jsxs)("div",{className:"panel__header__actions",children:[(0,N.jsx)("button",{className:"panel__header__action explorer__btn__refresh",onClick:()=>{(0,ke.gP)(n.refreshTreeData()).catch(t.alertUnhandledError)},title:"Refresh Tree",children:(0,N.jsx)(un,{})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>{const i=e.tabManagerState.currentTab;i instanceof Hf&&(0,ke.gP)(n.revealPath(i.filePath)).catch(t.alertUnhandledError)},title:"Focus",children:(0,N.jsx)(Fn,{})}),(0,N.jsx)("button",{className:"panel__header__action",onClick:()=>{n.getTreeData().nodes.forEach((e=>{e.isOpen=!1})),n.setSelectedNode(void 0),n.refreshTree()},title:"Collapse All",children:(0,N.jsx)(Xn,{})})]})]}),(0,N.jsxs)("div",{className:"panel__content explorer__content__container",children:[(0,N.jsx)(qt,{isLoading:n.loadInitialDataState.isInProgress}),n.loadInitialDataState.hasSucceeded&&(0,N.jsx)(Vb,{}),n.loadInitialDataState.hasFailed&&(0,N.jsx)(as,{children:"Failed to build directory tree"})]})]})})]})})),Gb=(0,It.PA)((()=>{const e=_N();return(0,N.jsx)("div",{className:"side-bar",children:(0,N.jsx)("div",{className:(0,Rt.$)("side-bar__view","side-bar__view--active"),children:(()=>{switch(e.activeActivity){case Gg.CONCEPT_EXPLORER:return(0,N.jsx)(Rb,{});case Gg.FILE_EXPLORER:return(0,N.jsx)(Hb,{});default:return null}})()},e.activeActivity)})})),Ub="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/icon/LegendLogo.tsx",$b=e=>{const{className:t}=e;return(0,Et.jsxDEV)("div",{className:(0,Rt.$)("logo",t),children:(0,Et.jsxDEV)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",width:"1em",height:"1em",viewBox:"0 0 215 215",xmlns:"https://www.w3.org/2000/svg",children:[(0,Et.jsxDEV)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,Et.jsxDEV)("path",{d:"M141.9,86.5L141.9,68.1C141.9,66.5 140.7,65.2 139.1,65.2L66.5,65.2C64.9,65.2 63.7,66.5 63.7,68.1L63.7,86.5C63.7,88.1 64.9,89.4 66.5,89.4L139.1,89.4C140.7,89.4 141.9,88.1 141.9,86.5Z"},void 0,!1,{fileName:Ub,lineNumber:35,columnNumber:11},void 0)},void 0,!1,{fileName:Ub,lineNumber:34,columnNumber:9},void 0),(0,Et.jsxDEV)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,Et.jsxDEV)("path",{d:"M118.4,116.9L118.4,98.5C118.4,96.9 117.5,95.6 116.4,95.6L65.7,95.6C64.6,95.6 63.7,96.9 63.7,98.5L63.7,116.9C63.7,118.5 64.6,119.8 65.7,119.8L116.5,119.8C117.6,119.8 118.4,118.6 118.4,116.9Z"},void 0,!1,{fileName:Ub,lineNumber:38,columnNumber:11},void 0)},void 0,!1,{fileName:Ub,lineNumber:37,columnNumber:9},void 0),(0,Et.jsxDEV)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,Et.jsxDEV)("path",{d:"M141.9,147.3L141.9,129C141.9,127.4 140.7,126.1 139.1,126.1L66.5,126.1C64.9,126.1 63.7,127.4 63.7,129L63.7,147.4C63.7,149 64.9,150.3 66.5,150.3L139.1,150.3C140.7,150.3 141.9,149 141.9,147.3Z"},void 0,!1,{fileName:Ub,lineNumber:41,columnNumber:11},void 0)},void 0,!1,{fileName:Ub,lineNumber:40,columnNumber:9},void 0),(0,Et.jsxDEV)("g",{transform:"matrix(1.0246,0,0,0.999998,1.03751,2.43115)",children:(0,Et.jsxDEV)("path",{d:"M205,170.7L152.7,139.1C150,137.4 147.7,138.7 147.7,141.9L147.7,157.9L55.8,157.9L55.8,59.4L67.2,59.4C70.4,59.4 71.7,57.2 70,54.4L38.4,2.1C36.7,-0.6 34.1,-0.6 32.4,2.1L0.7,54.4C-1,57.1 0.3,59.4 3.5,59.4L15.6,59.4L15.6,185.5C15.6,188.5 18,190.9 21,190.9L147.7,190.9L147.7,205.7C147.7,208.9 149.9,210.1 152.7,208.5L205,176.9C207.7,175.1 207.7,172.4 205,170.7Z"},void 0,!1,{fileName:Ub,lineNumber:44,columnNumber:11},void 0)},void 0,!1,{fileName:Ub,lineNumber:43,columnNumber:9},void 0)]},void 0,!0,{fileName:Ub,lineNumber:25,columnNumber:7},void 0)},void 0,!1,{fileName:Ub,lineNumber:23,columnNumber:11},void 0)},Yb=(0,It.PA)((()=>{const e=_N(),t=t=>()=>e.setActiveActivity(t),n=[{mode:Gg.CONCEPT_EXPLORER,title:"Concept Explorer",icon:(0,N.jsx)(ti,{})},{mode:Gg.FILE_EXPLORER,title:"File Explorer",icon:(0,N.jsx)(Ni,{})}].filter((e=>Boolean(e)));return(0,N.jsxs)("div",{className:"activity-bar",children:[(0,N.jsx)("div",{className:"activity-bar__logo",children:(0,N.jsx)($b,{})}),(0,N.jsx)("div",{className:"activity-bar__items",children:n.map((n=>(0,N.jsx)("button",{className:(0,Rt.$)("activity-bar__item",{"activity-bar__item--active":e.sideBarDisplayState.isOpen&&e.activeActivity===n.mode}),onClick:t(n.mode),tabIndex:-1,title:n.title,children:n.icon},n.mode)))})]})})),Wb=(0,It.PA)((e=>{const{fileEditorState:t}=e,n=t.textEditorState.cursorObserver,i=n?.selection?t.textEditorState.model.getValueInRange(n.selection).length:0;return(0,N.jsx)("div",{className:"file-editor__status-bar",children:n?.position&&(0,N.jsx)("button",{className:"editor__status-bar__action file-editor__status-bar__cursor-info",onClick:()=>t.setShowGoToLinePrompt(!0),tabIndex:-1,title:"Go to Line/Column",children:`Ln ${n.position.lineNumber}, Col ${n.position.column} ${i?` (${i} selected)`:""}`})})})),zb=(0,It.PA)((()=>{const e=_N(),t=$t();return(0,N.jsxs)("div",{className:"editor__status-bar",children:[(0,N.jsx)("div",{className:"editor__status-bar__left",children:(0,N.jsx)("div",{className:"editor__status-bar__workspace"})}),(0,N.jsxs)("div",{className:"editor__status-bar__right",children:[e.tabManagerState.currentTab instanceof Hf&&(0,N.jsx)(Wb,{fileEditorState:e.tabManagerState.currentTab}),(0,N.jsx)("button",{className:(0,Rt.$)("editor__status-bar__action editor__status-bar__compile-btn",{"editor__status-bar__compile-btn--wiggling":e.executionState.isInProgress}),disabled:e.initState.isInInitialState||e.executionState.isInProgress,onClick:()=>{(0,ke.gP)(e.executeGo()).catch(t.alertUnhandledError)},tabIndex:-1,title:"Execute (F9)",children:(0,N.jsx)(Wn,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("editor__status-bar__action editor__status-bar__action__toggler",{"editor__status-bar__action__toggler--active":Boolean(e.panelGroupDisplayState.isOpen)}),onClick:()=>e.panelGroupDisplayState.toggle(),tabIndex:-1,title:"Toggle panel",children:(0,N.jsx)(pi,{})}),(0,N.jsx)("button",{className:(0,Rt.$)("editor__status-bar__action editor__status-bar__action__toggler",{"editor__status-bar__action__toggler--active":!t.assistantService.isHidden}),onClick:()=>t.assistantService.toggleAssistant(),tabIndex:-1,title:"Toggle assistant",children:(0,N.jsx)(mn,{})})]})]})})),Kb=e=>{(0,Gt.useEffect)((()=>(e.registerCommands(),()=>e.deregisterCommands())),[e])},Xb=/[0-9]+(?::[0-9]+)?/,qb=(0,It.PA)((e=>{const{fileEditorState:t}=e,[n,i]=(0,Gt.useState)(""),s=(0,Gt.useRef)(null),o=Boolean(n.match(Xb)),r=t.textEditorState.editor?.getPosition(),[a,c]=(e=>{const t=e.split(":");return t.length<1||t.length>2?[1,void 0]:[D((()=>parseInt(V(S(t)))))??1,D((()=>parseInt(V(A(t)))))]})(n),l=1<=a&&a<=t.textEditorState.model.getLineCount(),d=o?l?void 0:"Invalid line number":"Invalid value (format [line:column] - e.g. 123:45)",u=()=>t.setShowGoToLinePrompt(!1),p=e=>{e.preventDefault(),u(),t.textEditorState.setForcedCursorPosition({lineNumber:a,column:c??1})};return(0,N.jsx)(Ot.A,{open:!0,onClose:u,TransitionProps:{onEnter:()=>s.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Go to..."}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:s,className:"input input--dark",onChange:e=>i(e.target.value),placeholder:r?`Current Line: ${r.lineNumber}, Col: ${r.column}. Type a line between 1 and ${t.textEditorState.model.getLineCount()} to navigate to`:void 0,value:n,spellCheck:!1}),""!==n&&d&&(0,N.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:""===n||Boolean(d),onClick:p,children:"Go"})]})]})})})),Jb=(0,It.PA)((e=>{const{editorState:t}=e,n=_N(),i=$t(),s=(0,Gt.useRef)(null),[o,r]=(0,Gt.useState)();return(0,Gt.useEffect)((()=>{if(!o&&s.current){const e=s.current,n=Yg.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,theme:tf.DEFAULT_DARK,wordWrap:t.textEditorState.wrapText?"on":"off",readOnly:t.file.RO});n.onDidChangeModelContent((()=>{const e=n.getValue();e!==t.file.content&&t.clearError(),t.file.setContent(e)})),n.onDidChangeCursorPosition((()=>{t.textEditorState.notifyCursorObserver()})),n.onDidChangeCursorSelection((()=>{t.textEditorState.notifyCursorObserver()})),n.setModel(t.textEditorState.model),t.textEditorState.viewState&&n.restoreViewState(t.textEditorState.viewState),n.focus(),t.textEditorState.setEditor(n),r(n)}}),[n,i,t,o]),Kb(t),(0,Gt.useEffect)((()=>{o&&t.textEditorState.forcedCursorPosition&&(uf(o,t.textEditorState.forcedCursorPosition),t.textEditorState.setForcedCursorPosition(void 0))}),[o,t,t.textEditorState.forcedCursorPosition]),(0,Gt.useEffect)((()=>()=>{o&&(t.textEditorState.setViewState(o.saveViewState()??void 0),o.dispose())}),[t,o]),(0,N.jsxs)("div",{className:"panel editor-group file-editor",children:[(0,N.jsx)("div",{className:"panel__header file-editor__header",children:(0,N.jsxs)("div",{className:"file-editor__header__actions",children:[(0,N.jsx)("button",{className:(0,Rt.$)("file-editor__header__action",{"file-editor__header__action--active":t.textEditorState.wrapText}),tabIndex:-1,onClick:()=>t.textEditorState.setWrapText(!t.textEditorState.wrapText),title:"Toggle Text Wrap",children:(0,N.jsx)(gn,{className:"file-editor__icon--text-wrap"})}),t.showGoToLinePrompt&&(0,N.jsx)(qb,{fileEditorState:t})]})}),(0,N.jsx)("div",{className:"panel__content file-editor__content",children:(0,N.jsx)("div",{className:"code-editor__container",children:(0,N.jsx)("div",{className:"code-editor__body",ref:s})})})]})})),Zb=(e,t,n=!1)=>{if(n)return t.map((e=>`${e}.pure`)).includes(e);const i=V(S(e.split(".")));return t.includes(i)};class Qb{pureType;pureId;pureName;text;requiredClassProperties=[]}(0,ge.PL)(Qb,{pureType:(0,ge.MY)(),pureId:(0,ge.MY)(),pureName:(0,ge.MY)(),text:(0,ge.MY)(),requiredClassProperties:(0,ge.lq)((0,ge.p_)((0,ge.MY)()))});class ev{pureType;pureName;owner;ownerPureType}(0,ge.PL)(ev,{pureType:(0,ge.MY)(),pureName:(0,ge.MY)(),owner:(0,ge.MY)(),ownerPureType:(0,ge.MY)()});class tv{pureId;pureName;requiredClassProperties=[]}(0,ge.PL)(tv,{pureId:(0,ge.MY)(),pureName:(0,ge.MY)(),requiredClassProperties:(0,ge.lq)((0,ge.p_)((0,ge.MY)()))});class nv{name}(0,ge.PL)(nv,{name:(0,ge.MY)()});const iv="Diagram",sv="Diagram",ov=()=>{const e=[];return e.push({label:{label:"/copyright",description:"(copyright header)"},kind:Yg.languages.CompletionItemKind.Snippet,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`// Copyright \${1:${(new Date).getFullYear()}} Goldman Sachs\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an "AS IS" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n`,range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1e3}}),e},rv=e=>({label:{label:e.pureName,description:e.pureId},kind:Yg.languages.CompletionItemKind.Class,filterText:e.pureName,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`${e.pureName}(${e.requiredClassProperties.map(((e,t)=>`${e}=\${${t+1}:}`)).join(",")})`}),av=(e,t)=>{const n=e.pureType,i=n===mf.FUNCTION||n===mf.NATIVE_FUNCTION?((e,t,n)=>{const i=mm(t),s=D((()=>i.substring(i.indexOf("_"),i.length-1))),o=s?.split("__")??[];return o.pop(),n&&o.shift(),`${e}(${o.map(((e,t)=>`\${${t+1}:}`)).join(",")})`})(e.pureName,e.pureId,Boolean(t?.preferArrowFunctionForm)):e.pureName,s=n===mf.PACKAGE?Yg.languages.CompletionItemKind.Folder:n===mf.CLASS?Yg.languages.CompletionItemKind.Class:n===mf.FUNCTION?Yg.languages.CompletionItemKind.Function:n===mf.ENUMERATION?Yg.languages.CompletionItemKind.Enum:n===mf.PROFILE?Yg.languages.CompletionItemKind.Module:n===mf.ASSOCIATION?Yg.languages.CompletionItemKind.Interface:Yg.languages.CompletionItemKind.Value;return{label:{label:e.pureName,description:e.text},kind:s,filterText:e.pureName,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:i,sortText:n===mf.PACKAGE?`zzzz_${e.text}`:e.text}},cv=/(?<incompletePath>(?:\w[\w$]*::)+$)/,lv=/->\s*(?:\w[\w$]*::)+$/,dv=/\^\s*(?:\w[\w$]*::)+$/,uv=/^\s*import\s+(?:(?<importPath>(?:(?:\w[\w$]*)::)*\w[\w$]*)::*)/,pv=(e,t)=>{const n=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),i=`${Lo}${NE.PURE}\n${n}`.split("\n");return i.slice(i.map((e=>e.startsWith(Lo))).lastIndexOf(!0)).map((e=>e.match(uv)?.groups?.importPath)).filter(B)},hv=/->\s*(?:\w[\w$]*)?$/,mv=/\^\s*(?:\w[\w$]*)?$/,gv=/^(?<owner>(?:(?:\w[\w$]*)::)*\w[\w$]*)\s*.$/,fv=(e,t)=>({label:e.name,kind:Yg.languages.CompletionItemKind.Variable,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:t?e.name:`zzzz_${e.name}`,insertText:e.name}),_v=/^\w[\w$]*$/,Ev=(0,It.PA)((e=>{const{renameConceptState:t}=e,n=$t(),i=t.fileEditorState,s=t.concept.pureName,[o,r]=(0,Gt.useState)(s),a=(0,Gt.useRef)(null),c=Boolean(o.match(_v)),l=s===o,d=c?void 0:"Invalid concept name",u=()=>{(0,ke.gP)(i.setConceptToRenameState(void 0)).catch(n.alertUnhandledError)},p=e=>{e.preventDefault(),l||i.renameConcept(o).catch(n.alertUnhandledError).finally((()=>u()))};return(0,N.jsx)(Ot.A,{open:!0,onClose:u,TransitionProps:{onEnter:()=>a.current?.focus()},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Rename concept"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)("form",{className:"command-modal__content__form",onSubmit:p,children:(0,N.jsxs)("div",{className:"input-group command-modal__content__input",children:[(0,N.jsx)("input",{ref:a,className:"input input--dark",onChange:e=>r(e.target.value),value:o,spellCheck:!1}),d&&(0,N.jsx)("div",{className:"input-group__error-message",children:d})]})}),(0,N.jsx)("button",{className:"command-modal__content__submit-btn btn--dark",disabled:Boolean(d),onClick:p,children:"Rename"})]})]})})})),Nv=(0,It.PA)((e=>{const{editorState:t}=e,n=(0,Gt.useRef)(void 0),i=(0,Gt.useRef)(void 0),s=(0,Gt.useRef)(void 0),o=(0,Gt.useRef)(null),[r,a]=(0,Gt.useState)(),[c,l]=(0,Gt.useState)(!1),d=_N(),u=$t();return(0,Gt.useEffect)((()=>{if(!r&&o.current){const e=o.current,n=Yg.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,language:hf.PURE,theme:tf.DEFAULT_DARK,wordSeparators:"`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",wordWrap:t.textEditorState.wrapText?"on":"off",readOnly:t.file.RO,contextmenu:!0,useShadowDOM:!1});n._codeEditorService.openCodeEditor=async()=>{const e=n.getPosition();e&&(0,ke.gP)(d.executeNavigation(new Tf(t.filePath,e.lineNumber,e.column))).catch(u.alertUnhandledError)},n.updateOptions({gotoLocation:{multiple:"goto",multipleDefinitions:"goto",alternativeDefinitionCommand:"DUMMY"}}),n.onContextMenu((()=>l(!0))),n.addAction({id:Df.FIND_USAGES,label:"Find Usages",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();if(n){const e=new Tf(t.filePath,n.lineNumber,n.column);t.findConceptUsages(e)}}}),n.addAction({id:Df.REVEAL_CONCEPT_IN_TREE,label:"Reveal Concept",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();n&&d.revealConceptInTree(new Tf(t.filePath,n.lineNumber,n.column)).catch(u.alertUnhandledError)}}),n.addAction({id:Df.RENAME_CONCEPT,label:"Rename",contextMenuGroupId:"navigation",contextMenuOrder:1e3,run:function(e){const n=e.getPosition();if(n){if(!t.textEditorState.model.getWordAtPosition(n))return;const e=new Tf(t.filePath,n.lineNumber,n.column);(0,ke.gP)(t.setConceptToRenameState(e)).catch(d.applicationStore.alertUnhandledError)}}}),n.onDidChangeModelContent((()=>{const e=n.getValue();e!==t.file.content&&t.clearError(),t.file.setContent(e)})),n.onDidChangeCursorPosition((()=>{t.textEditorState.notifyCursorObserver()})),n.onDidChangeCursorSelection((()=>{t.textEditorState.notifyCursorObserver()})),n.setModel(t.textEditorState.model),t.textEditorState.viewState&&n.restoreViewState(t.textEditorState.viewState),n.focus(),t.textEditorState.setEditor(n),a(n)}}),[d,u,t,r]),r&&(n.current?.dispose(),n.current=Yg.languages.registerDefinitionProvider(hf.PURE,{provideDefinition:(e,n)=>{const i=e.getLineContent(n.lineNumber),s=Yg.editor.tokenize(i,hf.PURE)[0];if(!s)return[];let o,r;for(let e=1;e<=s.length;++e){const t=e===s.length?i.length:V(s[e]).offset;if(t+1>n.column){o=V(s[e-1]),r={startLineNumber:n.lineNumber,startColumn:o.offset+1,endLineNumber:n.lineNumber,endColumn:t+1};break}}return o&&r&&Zb(o.type,[$g.TYPE,$g.VARIABLE,$g.PROPERTY,$g.PARAMETER,$g.IDENTIFIER])?[{uri:t.textEditorState.model.uri,range:r}]:[]}}),i.current?.dispose(),i.current=Yg.languages.registerCompletionItemProvider(hf.PURE,{triggerCharacters:["/","#",":",">",".","@","^","$"],provideCompletionItems:async(e,n,i)=>{let s=[];if(i.triggerKind===Yg.languages.CompletionTriggerKind.TriggerCharacter)switch(i.triggerCharacter){case"/":s=s.concat(ov());break;case"#":s=s.concat(((e,t,n)=>{const i=[],s=t.getWordUntilPosition(e),o={startLineNumber:e.lineNumber,startColumn:1,endLineNumber:e.lineNumber,endColumn:s.endColumn};var r;return r=t.getValueInRange(o).trim(),Boolean(r.match(/\s/))||n.forEach((e=>{i.push({label:{label:`${Lo}${e.text}`,description:e.description},kind:Yg.languages.CompletionItemKind.Keyword,insertText:`${Lo}${e.insertText}\n`,range:o,documentation:e.documentation?e.documentation.markdownText?{value:e.documentation.markdownText.value}:e.documentation.text:void 0})})),i})(n,e,[{text:NE.PURE,description:"(core Pure)",insertText:NE.PURE},{text:NE.MAPPING,description:"(dsl)",insertText:NE.MAPPING},{text:NE.CONNECTION,description:"(dsl)",insertText:NE.CONNECTION},{text:NE.RUNTIME,description:"(dsl)",insertText:NE.RUNTIME},{text:NE.RELATIONAL,description:"(external store)",insertText:NE.RELATIONAL},{text:iv,description:"(dsl)",insertText:sv}]));break;case":":s=s.concat(await(async(e,t,n)=>{const i=t.getLineContent(e.lineNumber).substring(0,e.column-1).match(cv);if(i?.groups?.incompletePath){const s=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(lv)),o=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(dv));let r=[];try{r=(await n.client.getSuggestionsForIncompletePath(i.groups.incompletePath.substring(0,i.groups.incompletePath.length-2),o?[mf.CLASS]:s?[mf.FUNCTION,mf.NATIVE_FUNCTION]:[])).map((e=>(0,ge.iu)(Qb,e)))}catch{}return r.map((e=>o?rv(e):av(e,{preferArrowFunctionForm:s})))}return[]})(n,e,d));break;case">":s=s.concat(await(async(e,t,n)=>{const i=pv(e,t);let s=[];try{s=(await n.client.getSuggestionsForIdentifier(i,[mf.FUNCTION,mf.NATIVE_FUNCTION])).map((e=>(0,ge.iu)(Qb,e)))}catch{}return s.map((e=>av(e,{preferArrowFunctionForm:!0})))})(n,e,d));break;case".":s=s.concat(await(async(e,t,n)=>{const i=t.getLineContent(e.lineNumber).substring(0,e.column-1).match(gv),s=pv(e,t);if(i?.groups?.owner){let e=[];try{e=(await n.client.getSuggestionsForAttribute(s,i.groups.owner)).map((e=>(0,ge.iu)(ev,e)))}catch{}return e.map((e=>(e=>{const t=e.pureType,n=t===mf.PROPERTY||t===mf.QUALIFIED_PROPERTY?`${e.pureName}(\${1:})`:e.pureName,i=t===mf.PROPERTY?Yg.languages.CompletionItemKind.Property:t===mf.QUALIFIED_PROPERTY?Yg.languages.CompletionItemKind.Method:t===mf.TAG?Yg.languages.CompletionItemKind.Constant:t===mf.STEREOTYPE?Yg.languages.CompletionItemKind.Value:t===mf.ENUM_VALUE?Yg.languages.CompletionItemKind.Enum:Yg.languages.CompletionItemKind.Value;return{label:{label:e.pureName,description:`${e.owner}.${e.pureName}`},kind:i,filterText:e.pureName,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:n}})(e)))}return[]})(n,e,d));break;case"^":s=s.concat(await(async(e,t,n)=>{const i=pv(e,t);let s=[];try{s=(await n.client.getSuggestionsForClass(i)).map((e=>(0,ge.iu)(tv,e)))}catch{}return s.map((e=>rv(e)))})(n,e,d));break;case"@":s=s.concat(await(async(e,t,n)=>{const i=pv(e,t);let s=[];try{s=(await n.client.getSuggestionsForClass(i)).map((e=>(0,ge.iu)(tv,e)))}catch{}return s.map((e=>(e=>({label:{label:e.pureName,description:e.pureId},kind:Yg.languages.CompletionItemKind.Class,filterText:e.pureName,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:e.pureName}))(e)))})(n,e,d));break;case"$":s=s.concat(await(async(e,t,n,i)=>{let s=[];try{s=(await i.client.getSuggestionsForVariable(n,e.lineNumber,e.column)).map((e=>(0,ge.iu)(nv,e)))}catch{}const o=new Set;let r=!1;for(let n=e.lineNumber-1;n>Math.max(0,e.lineNumber-1-10)&&!r;--n){const i=t.getLineContent(n+1);(i.match(/^\s*function\s+/)||i.match(/^\s*###\w+/))&&(r=!0);const s=V(Yg.editor.tokenize(t.getLineContent(n+1),hf.PURE)[0]);s.forEach(((i,r)=>{(n!==e.lineNumber-1||i.offset<e.column)&&Zb(i.type,[$g.VARIABLE,$g.PARAMETER],!0)&&o.add(t.getValueInRange({startLineNumber:n+1,startColumn:i.offset+1,endLineNumber:n+1,endColumn:r===s.length-1?Number.MAX_SAFE_INTEGER:V(s[r+1]).offset+1}))}))}const a=s.map((e=>e.name));return s.map((e=>fv(e,!0))).concat(Array.from(o).filter((e=>!a.includes(e))).map((e=>{const t=new nv;return t.name=e,t})).map((e=>fv(e,!1))))})(n,e,t.filePath,d))}return{suggestions:s}}}),s.current?.dispose(),s.current=Yg.languages.registerCompletionItemProvider(hf.PURE,{triggerCharacters:[],provideCompletionItems:async(e,t,n)=>{let i=[];return n.triggerKind===Yg.languages.CompletionTriggerKind.Invoke&&(i=i.concat(ov()),i=i.concat(((e,t,n)=>{const i=[],s=t.getWordUntilPosition(e),o=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),r=`${Lo}${NE.PURE}\n${o}`.split("\n").filter((e=>e.startsWith(Lo))),a=(e=>{if(e.startsWith(Lo))return e.substring(3).split(" ")[0]})(r[r.length-1]??"");return a&&n(a).forEach((t=>{i.push({label:{label:t.text,description:t.description},kind:Yg.languages.CompletionItemKind.Snippet,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:`${t.insertText}\n`,range:{startLineNumber:e.lineNumber,startColumn:s.startColumn,endLineNumber:e.lineNumber,endColumn:s.endColumn},documentation:t.documentation?t.documentation.markdownText?{value:t.documentation.markdownText.value}:t.documentation.text:void 0})})),i})(t,e,(e=>(e=>{switch(e){case NE.PURE:return[{text:_E.CLASS,description:"(blank)",insertText:"Class ${1:model::NewClass}\n// example of a constraint\n// [\n// SomeConstraint: true\n// ]\n{\n ${2:// example of a standard property\n // prop1: String[1];\n\n // example of a derived property\n // derivation1() {''\\}: String[1];}\n}"},{text:_E.CLASS,description:"with property",insertText:"Class ${1:model::NewClass}\n{\n ${2:prop1}: ${3:String[1]};\n}"},{text:_E.CLASS,description:"with inheritance",insertText:"Class ${1:model::NewClass} extends ${2:model::ParentClass}\n{\n ${3:// class content}\n}"},{text:_E.CLASS,description:"with constraint",insertText:"Class ${1:model::NewClass}\n[\n ${3:SomeConstraint: true}\n]\n{\n ${2:// class content}\n}"},{text:_E.PROFILE,insertText:"Profile ${1:model::NewProfile}\n{\n stereotypes: [${2:}];\n tags: [${3:}];\n}"},{text:_E.ENUMERATION,insertText:"Enum ${1:model::NewEnumeration}\n{\n ${2:VALUE_1,\n VALUE_2}\n}"},{text:_E.ASSOCIATION,insertText:"Association ${1:model::NewAssociation}\n{\n ${2:prop1}: ${3:model::Type1[1]};\n ${4:prop2}: ${5:model::Type2[1]};\n}"},{text:_E.FUNCTION,description:"(blank)",insertText:"function ${1:model::NewEnumeration}(${2:param1: String[1]}): ${3:String[1]}\n{\n ${4:''; // function content}\n}"},{text:_E.FUNCTION,insertText:"function ${1:model::NewEnumeration}(): String[1]\n{\n ''\n}"}];case NE.MAPPING:return[{text:_E.MAPPING,description:"(blank)",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:// mapping content}\n)"},{text:_E.MAPPING,description:"with model-to-model mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetClass}: Pure\n {\n ~src ${3:model::SourceClass}\n // example of property mappings\n // prop1: $src.prop1\n }\n)"},{text:_E.MAPPING,description:"with relational mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetClass}: Relational {\n ~mainTable ${3:[model::SomeDatabase]SomeTable}\n // example of property mappings\n // prop1: [model::SomeDatabase]SomeTable.col1,\n }\n)"},{text:_E.MAPPING,description:"with enumeration mapping",insertText:"Mapping ${1:model::NewMapping}\n(\n ${2:model::TargetEnumeration}: EnumerationMapping ${3:EnumerationMappingID}\n {\n // example of enum-value mapping\n // VAL_1: ['val1'],\n // VAL_2: ['val2', 'val_2']\n }\n)"}];case NE.RELATIONAL:return[{text:_E.DATABASE,description:"(blank)",insertText:"Database ${1:model::NewDatabase}\n(\n // example database schema\n // Schema SOME_SCHEMA\n // (\n // Table TABLE_1\n // (\n // COL_1 VARCHAR(200)\n // )\n // Table TABLE_2\n // (\n // COL_2 VARCHAR(200) PRIMARY_KEY\n // )\n // )\n\n // example database join\n // Join SomeJoin(SOME_SCHEMA.TABLE_1.COL_1 = SCHEMA1.TABLE_2.COL_2)\n\n ${2:// database content}\n)"}];case iv:return[{text:sv,description:"(blank)",insertText:"Diagram ${1:model::NewDiagram}(width=0.0, height=0.0)\n{\n // NOTE: it is recommended to use diagram visual editor\n // to edit diagram: double-click on the diagram in\n // the concept explorer tree to open the editor\n}"}];default:return[]}})(e)))),i=i.concat(((e,t,n=[])=>{const i=t.getWordUntilPosition(e);return[{text:"let",description:"new variable",insertText:"let ${1:} = ${2:};"},{text:"let",description:"new collection",insertText:"let ${1:} = [${2:}];"},{text:"cast",description:"type casting",insertText:"cast(@${1:model::SomeClass})"},{text:"if",description:"(conditional)",insertText:"if(${1:'true'}, | ${2:/* if true do this */}, | ${3:/* if false do this */})"},{text:"case",description:"(conditional)",insertText:"case(${1:}, ${2:'true'}, ${3:'false'})"},{text:"match",description:"(conditional)",insertText:"match([x:${1:String[1]}, ${2:''}])"},{text:"map",description:"(collection)",insertText:"map(x|${1:})"},{text:"filter",description:"(collection)",insertText:"filter(x|${1:})"},{text:"fold",description:"(collection)",insertText:"fold({a, b| ${1:$a + $b}}, ${2:0})"},{text:"filter",description:"(collection)",insertText:"filter(x|${1:})"},{text:"sort",description:"(collection)",insertText:"sort()"},{text:"in",description:"(collection)",insertText:"in()"},{text:"slice",description:"(collection)",insertText:"slice(${1:1},${2:2})"},{text:"removeDuplicates",description:"(collection)",insertText:"removeDuplicates()"},{text:"toOne",description:"(collection)",insertText:"toOne(${1:})"},{text:"toOneMany",description:"(collection)",insertText:"toOneMany(${1:})"},{text:"isEmpty",description:"(collection)",insertText:"isEmpty()"},{text:"endsWith",description:"(string)",insertText:"endsWith()"},{text:"startsWith",description:"(string)",insertText:"startsWith()"},...n].map((t=>({label:{label:t.text,description:t.description},kind:Yg.languages.CompletionItemKind.Snippet,insertTextRules:Yg.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:t.insertText,range:{startLineNumber:e.lineNumber,startColumn:i.startColumn,endLineNumber:e.lineNumber,endColumn:i.endColumn},documentation:t.documentation?t.documentation.markdownText?{value:t.documentation.markdownText.value}:t.documentation.text:void 0})))})(t,e,[{text:"print",description:"(io)",insertText:"print(${1:})"},{text:"println",description:"(io)",insertText:"println(${1:})"},{text:"NULL",description:"(nullish value)",insertText:"[]"}])),i=i.concat(await(async(e,t,n)=>{const i=pv(e,t),s=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(hv)),o=Boolean(t.getLineContent(e.lineNumber).substring(0,e.column-1).match(mv));let r=[];try{r=(await n.client.getSuggestionsForIdentifier(i,o?[mf.CLASS]:s?[mf.FUNCTION,mf.NATIVE_FUNCTION]:[])).map((e=>(0,ge.iu)(Qb,e)))}catch{}return r.map((e=>o?rv(e):av(e,{preferArrowFunctionForm:s})))})(t,e,d))),{suggestions:i}}})),Kb(t),(0,Gt.useEffect)((()=>{if(c){if(document.querySelector(".file-editor .monaco-menu")){const e=["Peek"];Array.from(document.querySelectorAll(".file-editor .monaco-menu .action-label")).filter((t=>e.includes(t.innerHTML))).forEach((e=>{const t=e.parentElement?.parentElement;t&&(t.classList.add("disabled"),t.style.opacity="0.3",t.style.pointerEvents="none")}))}l(!1)}}),[c]),(0,Gt.useEffect)((()=>{r&&t.textEditorState.forcedCursorPosition&&(uf(r,t.textEditorState.forcedCursorPosition),t.textEditorState.setForcedCursorPosition(void 0))}),[r,t,t.textEditorState.forcedCursorPosition]),(0,Gt.useEffect)((()=>()=>{r&&(t.textEditorState.setViewState(r.saveViewState()??void 0),r.dispose(),n.current?.dispose(),i.current?.dispose(),s.current?.dispose())}),[t,r]),(0,N.jsxs)("div",{className:"panel editor-group file-editor",children:[(0,N.jsx)("div",{className:"panel__header file-editor__header",children:(0,N.jsxs)("div",{className:"file-editor__header__actions",children:[(0,N.jsx)("button",{className:(0,Rt.$)("file-editor__header__action",{"file-editor__header__action--active":t.textEditorState.wrapText}),tabIndex:-1,onClick:()=>t.textEditorState.setWrapText(!t.textEditorState.wrapText),title:"Toggle Text Wrap",children:(0,N.jsx)(gn,{className:"file-editor__icon--text-wrap"})}),t.renameConceptState&&(0,N.jsx)(Ev,{renameConceptState:t.renameConceptState}),t.showGoToLinePrompt&&(0,N.jsx)(qb,{fileEditorState:t})]})}),(0,N.jsx)("div",{className:"panel__content file-editor__content",children:(0,N.jsx)("div",{className:"code-editor__container",children:(0,N.jsx)("div",{className:"code-editor__body",ref:o})})})]})}));var bv=n(7522);const vv="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/menu/DropdownMenu.tsx",Tv=e=>{const{open:t,className:n,children:i,menuProps:s,content:o,title:r,disabled:a,onClose:c,onOpen:l}=e,d=(0,Gt.useRef)(null),[u,p]=(0,Gt.useState)(null);return(0,Gt.useEffect)((()=>{void 0!==t&&(t&&!u&&d.current?p(d.current):!t&&u&&p(null))}),[u,t]),(0,Et.jsxDEV)("button",{ref:d,className:n,disabled:a,onClick:e=>{e.stopPropagation(),e.preventDefault(),a||(u?(c?.(),p(null)):d.current&&(l?.(),p(d.current)))},tabIndex:-1,title:r,children:[i,(0,Et.jsxDEV)(zi,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:u,open:(void 0===t||Boolean(t))&&Boolean(u),BackdropProps:{invisible:!0},elevation:0,marginThreshold:0,disableRestoreFocus:!0,...s,children:o},void 0,!1,{fileName:vv,lineNumber:85,columnNumber:7},void 0)]},void 0,!0,{fileName:vv,lineNumber:75,columnNumber:11},void 0)},Cv=(0,It.PA)((0,Gt.forwardRef)((function(e,t){const{diagramEditorState:n}=e,i=$t(),s=n.diagram,o=t,{width:r,height:a}=(0,os.u)({refreshMode:"debounce",refreshRate:50,targetRef:o});(0,Gt.useEffect)((()=>{const e=new tN(o.current,s);n.setRenderer(e),n.setupRenderer(),e.render({initial:!0})}),[o,n,s]),(0,Gt.useEffect)((()=>{n.isDiagramRendererInitialized&&n.renderer.render({initial:!0})}),[n,n.isDiagramRendererInitialized]),(0,Gt.useEffect)((()=>{n.isDiagramRendererInitialized&&n.renderer.refresh()}),[n,r,a]);const c=(0,Gt.useCallback)(((e,t)=>{if(e instanceof Nf){const s=t.getClientOffset(),o=s?n.renderer.canvasCoordinateToModelCoordinate(n.renderer.eventCoordinateToCanvasCoordinate(new ig(s.x,s.y))):void 0;(0,ke.gP)(n.addClassView(e.li_attr.pureId,o)).catch(i.alertUnhandledError)}}),[i,n]),[,l]=(0,bv.H)((()=>({accept:xb.CLASS,drop:(e,t)=>c(e,t)})),[c]);return l(o),(0,N.jsx)("div",{ref:o,className:(0,Rt.$)("diagram-canvas diagram-editor__canvas",n.diagramCursorClass),tabIndex:0})}))),yv=(0,It.PA)((e=>{const{diagramEditorState:t}=e,n=_N(),i=$t(),s=e=>()=>{t.renderer.zoomCenter(e/100)},o=t.renderer.selectedClasses.length<2;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align left",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_LEFT),children:(0,N.jsx)(wn,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align center",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_CENTER),children:(0,N.jsx)(On,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align right",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_RIGHT),children:(0,N.jsx)(Rn,{className:"diagram-editor__icon--aligner"})})]}),(0,N.jsx)("div",{className:"diagram-editor__header__group__separator"}),(0,N.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align top",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_TOP),children:(0,N.jsx)(An,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align middle",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_MIDDLE),children:(0,N.jsx)(In,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Align bottom",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.ALIGN_BOTTOM),children:(0,N.jsx)(xn,{className:"diagram-editor__icon--aligner"})})]}),(0,N.jsx)("div",{className:"diagram-editor__header__group__separator"}),(0,N.jsxs)("div",{className:"diagram-editor__header__group",children:[(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Space horizontally",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.SPACE_HORIZONTALLY),children:(0,N.jsx)(kn,{className:"diagram-editor__icon--aligner"})}),(0,N.jsx)("button",{className:"diagram-editor__header__action diagram-editor__header__group__action",title:"Space vertically",disabled:o,tabIndex:-1,onClick:()=>t.renderer.align(JE.SPACE_VERTICALLY),children:(0,N.jsx)(Pn,{className:"diagram-editor__icon--aligner"})})]}),(0,N.jsxs)(Tv,{className:"diagram-editor__header__dropdown",title:"Zoom...",content:(0,N.jsxs)(Ji,{children:[(0,N.jsx)(Zi,{className:"diagram-editor__header__zoomer__dropdown__menu__item",onClick:()=>t.renderer.zoomToFit(),children:"Fit"}),(0,N.jsx)(Qi,{}),QE.map((e=>(0,N.jsxs)(Zi,{className:"diagram-editor__header__zoomer__dropdown__menu__item",onClick:s(e),children:[e,"%"]},e)))]}),menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:7},children:[(0,N.jsxs)("div",{className:"diagram-editor__header__dropdown__label diagram-editor__header__zoomer__dropdown__label",children:[Math.round(100*t.renderer.zoom),"%"]}),(0,N.jsx)("div",{className:"diagram-editor__header__dropdown__trigger diagram-editor__header__zoomer__dropdown__trigger",children:(0,N.jsx)(Un,{})})]}),(0,N.jsx)("div",{className:"diagram-editor__header__actions",children:(0,N.jsx)("button",{className:"diagram-editor__header__action",tabIndex:-1,onClick:()=>{(0,ke.gP)(n.loadFile(t.filePath,new Tf(t.filePath,t.fileLine,t.fileColumn))).catch(i.alertUnhandledError)},children:(0,N.jsx)(fn,{className:"diagram-editor__icon--go-to-file"})})})]})})),Sv=(0,It.PA)((e=>{const{diagramEditorState:t}=e,n=t.renderer,i=(e,t)=>()=>n.changeMode(e,t);return(0,N.jsxs)("div",{className:"diagram-editor__tools",children:[(0,N.jsx)("button",{className:(0,Rt.$)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===XE.LAYOUT}),tabIndex:-1,onClick:i(XE.LAYOUT,qE.NONE),title:"View Tool (V)",children:(0,N.jsx)(Li,{className:"diagram-editor__icon--layout"})}),(0,N.jsx)("button",{className:(0,Rt.$)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===XE.PAN}),tabIndex:-1,onClick:i(XE.PAN,qE.NONE),title:"Pan Tool (M)",children:(0,N.jsx)(Mi,{className:"diagram-editor__icon--pan"})}),(0,N.jsx)("button",{className:(0,Rt.$)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===XE.ZOOM_IN}),tabIndex:-1,title:"Zoom In (Z)",onClick:i(XE.ZOOM_IN,qE.NONE),children:(0,N.jsx)(Di,{className:"diagram-editor__icon--zoom-in"})}),(0,N.jsx)("button",{className:(0,Rt.$)("diagram-editor__tool",{"diagram-editor__tool--active":n.interactionMode===XE.ZOOM_OUT}),tabIndex:-1,title:"Zoom Out (Z)",onClick:i(XE.ZOOM_OUT,qE.NONE),children:(0,N.jsx)(Fi,{className:"diagram-editor__icon--zoom-out"})})]})})),Av=(0,It.PA)((e=>{const{diagramEditorState:t}=e,n=(0,Gt.useRef)(null);return Kb(t),(0,N.jsxs)("div",{className:"diagram-editor",children:[(0,N.jsx)("div",{className:"diagram-editor__header",children:t.isDiagramRendererInitialized&&(0,N.jsx)(yv,{diagramEditorState:t})}),(0,N.jsx)("div",{className:"diagram-editor__content",children:(0,N.jsxs)("div",{className:"diagram-editor__stage",children:[t.isDiagramRendererInitialized&&(0,N.jsx)(Sv,{diagramEditorState:t}),(0,N.jsx)(Cv,{diagramEditorState:t,ref:n})]})})]})}));var Iv=n(2095),xv=n(4480);const wv="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/panel/PanelDropZone.tsx",Ov=((0,It.PA)((0,Gt.forwardRef)((function(e,t){const{children:n,placeholder:i,showPlaceholder:s,className:o}=e;return(0,Et.jsxDEV)("div",{ref:t,className:(0,Rt.$)("dnd__entry__container",o),children:[s&&(0,Et.jsxDEV)("div",{className:"dnd__entry__placeholder",children:i?(0,Et.jsxDEV)(Et.Fragment,{children:i},void 0,!1,{fileName:wv,lineNumber:78,columnNumber:29},this):(0,Et.jsxDEV)("div",{className:"dnd__entry__placeholder__content"},void 0,!1,{fileName:wv,lineNumber:80,columnNumber:18},this)},void 0,!1,{fileName:wv,lineNumber:76,columnNumber:30},this),(0,Et.jsxDEV)(Et.Fragment,{children:n},void 0,!1,{fileName:wv,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:wv,lineNumber:74,columnNumber:13},this)}))),e=>{const{children:t,label:n,isDragOver:i,isDroppable:s,className:o,alwaysShowChildren:r}=e;return i||s?(0,Et.jsxDEV)("div",{className:(0,Rt.$)(["dnd__entry-dropzone__placeholder",o,{"dnd__entry-dropzone__placeholder--active":i,"dnd__entry-dropzone__placeholder--droppable":s}]),children:(0,Et.jsxDEV)("div",{className:(0,Rt.$)("dnd__entry-dropzone__placeholder__content",{"dnd__entry-dropzone__placeholder__content--children":r}),children:r?(0,Et.jsxDEV)(Et.Fragment,{children:t},void 0,!1,{fileName:wv,lineNumber:146,columnNumber:34},void 0):(0,Et.jsxDEV)("div",{className:"dnd__entry-dropzone__placeholder__label",children:n??""},void 0,!1,{fileName:wv,lineNumber:148,columnNumber:16},void 0)},void 0,!1,{fileName:wv,lineNumber:140,columnNumber:9},void 0)},void 0,!1,{fileName:wv,lineNumber:129,columnNumber:13},void 0):(0,Et.jsxDEV)(Et.Fragment,{children:t},void 0,!1,{fileName:wv,lineNumber:157,columnNumber:9},void 0)});function Rv(e){const{labelGetter:t,types:n}=e,{itemType:i,item:s,isDragging:o,currentPosition:r}=(0,Iv.V)((e=>({itemType:e.getItemType(),item:e.getItem(),isDragging:e.isDragging(),currentPosition:e.getClientOffset()})));return o&&s&&i&&n.includes(i.toString())?(0,Et.jsxDEV)("div",{className:"dnd__drag-preview-layer",children:(0,Et.jsxDEV)("div",{className:"dnd__drag-preview-layer__content",style:r?{transform:`translate(${r.x/10+2}rem, ${r.y/10+1}rem)`}:{display:"none"},children:t(s)},void 0,!1,{fileName:wv,lineNumber:192,columnNumber:7},this)},void 0,!1,{fileName:wv,lineNumber:190,columnNumber:11},this):null}const kv="/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/TabManager.tsx",Pv=e=>{if(Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let t;e.stopPropagation(),t=0===e.deltaY?e.deltaY:e.deltaY<0?-Math.abs(e.deltaY):Math.abs(e.deltaY),e.currentTarget.scrollBy(t,0)},Lv=(0,It.PA)((e=>{const{tabState:t,managerTabState:n}=e;return(0,Et.jsxDEV)(Ji,{children:[(0,Et.jsxDEV)(Zi,{onClick:()=>n.closeTab(t),children:"Close"},void 0,!1,{fileName:kv,lineNumber:71,columnNumber:9},void 0),(0,Et.jsxDEV)(Zi,{disabled:n.tabs.length<2,onClick:()=>n.closeAllOtherTabs(t),children:"Close Others"},void 0,!1,{fileName:kv,lineNumber:72,columnNumber:9},void 0),(0,Et.jsxDEV)(Zi,{onClick:()=>n.closeAllTabs(),children:"Close All"},void 0,!1,{fileName:kv,lineNumber:78,columnNumber:9},void 0)]},void 0,!0,{fileName:kv,lineNumber:69,columnNumber:13},void 0)})),Mv=(0,It.PA)((e=>{const t=(0,Gt.useRef)(null),{tabManagerState:n,tabState:i,tabRenderer:s}=e,o=(0,Gt.useCallback)(((e,s)=>{const o=e.tab,r=i,a=n.tabs.findIndex((e=>e===o)),c=n.tabs.findIndex((e=>e===r)),l=t.current?.getBoundingClientRect(),d=((l?.left??0)-(l?.right??0))/2,u=(s.getClientOffset()?.x??0)-(l?.right??0);a<c&&u<d||a>c&&u>d||n.swapTabs(o,r)}),[n,i]),[{isBeingDraggedEditorPanel:r},a]=(0,bv.H)((()=>({accept:[n.dndType],hover:(e,t)=>o(e,t),collect:e=>({isBeingDraggedEditorPanel:e.getItem()?.tab})})),[o]),c=i===r,[,l,d]=(0,ob.i)((()=>({type:n.dndType,item:()=>({tab:i})})),[i,n]);return l(a(t)),(e=>{(0,Gt.useEffect)((()=>{e((0,xv.n)())}),[e])})(d),(0,Et.jsxDEV)("div",{ref:t,"data-testid":"tab-manager__tab",className:(0,Rt.$)("tab-manager__tab",{"tab-manager__tab--active":i===n.currentTab,"tab-manager__tab--dragged":c}),onMouseUp:(u=i,e=>{1===e.nativeEvent.button&&n.closeTab(u)}),children:(0,Et.jsxDEV)(Ov,{isDragOver:!1,className:"tab-manager__tab__dnd__placeholder",children:(0,Et.jsxDEV)(Xi,{content:(0,Et.jsxDEV)(Lv,{tabState:i,managerTabState:n},void 0,!1,{fileName:kv,lineNumber:181,columnNumber:22},void 0),className:"tab-manager__tab__content",children:[(0,Et.jsxDEV)("button",{className:"tab-manager__tab__label",tabIndex:-1,onClick:()=>n.openTab(i),title:i.description,children:s?.(i)??i.label},void 0,!1,{fileName:kv,lineNumber:189,columnNumber:13},void 0),(0,Et.jsxDEV)("button",{className:"tab-manager__tab__close-btn",onClick:()=>n.closeTab(i),tabIndex:-1,title:"Close",children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:kv,lineNumber:203,columnNumber:15},void 0)},void 0,!1,{fileName:kv,lineNumber:197,columnNumber:13},void 0)]},void 0,!0,{fileName:kv,lineNumber:180,columnNumber:11},void 0)},void 0,!1,{fileName:kv,lineNumber:176,columnNumber:9},void 0)},void 0,!1,{fileName:kv,lineNumber:166,columnNumber:13},void 0);var u})),Dv=(0,It.PA)((e=>{const{managerTabState:t}=e;return(0,Et.jsxDEV)(Tv,{className:"tab-manager__menu__toggler",title:"Show All Tabs",content:(0,Et.jsxDEV)(Ji,{className:"tab-manager__menu",children:t.tabs.map((e=>(0,Et.jsxDEV)(Zi,{className:(0,Rt.$)("tab-manager__menu__item",{"tab-manager__menu__item--active":e===t.currentTab}),onClick:()=>t.openTab(e),children:[(0,Et.jsxDEV)("div",{className:"tab-manager__menu__item__label",children:e.label},void 0,!1,{fileName:kv,lineNumber:229,columnNumber:15},void 0),(0,Et.jsxDEV)("div",{className:"tab-manager__menu__item__close-btn",onClick:n=>{n.stopPropagation(),t.closeTab(e)},tabIndex:-1,title:"Close",children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:kv,lineNumber:242,columnNumber:17},void 0)},void 0,!1,{fileName:kv,lineNumber:232,columnNumber:15},void 0)]},e.uuid,!0,{fileName:kv,lineNumber:220,columnNumber:52},void 0)))},void 0,!1,{fileName:kv,lineNumber:218,columnNumber:16},void 0),menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},children:(0,Et.jsxDEV)(xi,{},void 0,!1,{fileName:kv,lineNumber:253,columnNumber:7},void 0)},void 0,!1,{fileName:kv,lineNumber:214,columnNumber:11},void 0)})),Fv=(0,It.PA)((e=>{const{tabManagerState:t,tabRenderer:n}=e;return(0,Et.jsxDEV)("div",{className:"tab-manager",children:[(0,Et.jsxDEV)("div",{className:"tab-manager__content",onWheel:Pv,children:[t.tabs.map((e=>(0,Et.jsxDEV)(Mv,{tabState:e,tabManagerState:t,tabRenderer:n},e.uuid,!1,{fileName:kv,lineNumber:271,columnNumber:47},void 0))),(0,Et.jsxDEV)(Rv,{labelGetter:e=>e.tab.label,types:[t.dndType]},void 0,!1,{fileName:kv,lineNumber:279,columnNumber:11},void 0)]},void 0,!0,{fileName:kv,lineNumber:267,columnNumber:9},void 0),(0,Et.jsxDEV)(Dv,{managerTabState:t},void 0,!1,{fileName:kv,lineNumber:284,columnNumber:9},void 0)]},void 0,!0,{fileName:kv,lineNumber:265,columnNumber:13},void 0)})),Bv=()=>{const[e,t]=(0,Gt.useState)(!1),{ref:n,width:i,height:s}=(0,os.u)();return(0,Gt.useEffect)((()=>{t((i??0)>300&&(s??0)>150)}),[i,s]),(0,N.jsx)("div",{ref:n,className:"editor-group__splash-screen",children:(0,N.jsxs)("div",{className:(0,Rt.$)("editor-group__splash-screen__content",{"editor-group__splash-screen__content--hidden":!e}),children:[(0,N.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Run the go() function"}),(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:(0,N.jsx)("div",{className:"hotkey__key",children:"F9"})})]}),(0,N.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Run the full test suite"}),(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:(0,N.jsx)("div",{className:"hotkey__key",children:"F10"})})]}),(0,N.jsxs)("div",{className:"editor-group__splash-screen__content__item",children:[(0,N.jsx)("div",{className:"editor-group__splash-screen__content__item__label",children:"Search for a file"}),(0,N.jsxs)("div",{className:"editor-group__splash-screen__content__item__hot-keys",children:[(0,N.jsx)("div",{className:"hotkey__key",children:"Ctrl"}),(0,N.jsx)("div",{className:"hotkey__plus",children:(0,N.jsx)(Hn,{})}),(0,N.jsx)("div",{className:"hotkey__key",children:"P"})]})]})]})})},jv=(0,It.PA)((()=>{const e=_N(),t=e.tabManagerState.currentTab;return t?(0,N.jsxs)("div",{className:"panel editor-group",children:[(0,N.jsxs)("div",{className:"panel__header editor-group__header",children:[(0,N.jsx)("div",{className:"editor-group__header__tabs",children:(0,N.jsx)(Fv,{tabManagerState:e.tabManagerState,tabRenderer:t=>{if(t instanceof Hf){const n=e.tabManagerState.tabs.filter((e=>e instanceof Hf&&e.fileName===t.fileName)).length>1;return(0,N.jsxs)("div",{className:"editor-group__header__tab",children:[(0,N.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,N.jsx)(Ni,{className:"editor-group__header__tab__icon--file"})}),(0,N.jsx)("div",{className:"editor-group__header__tab__label",children:t.fileName}),n&&(0,N.jsx)("div",{className:"editor-group__header__tab__path",children:t.filePath}),t.file.RO&&(0,N.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,N.jsx)(Bn,{className:"editor-group__header__tab__icon--readonly"})})]})}if(t instanceof nN){const n=e.tabManagerState.tabs.filter((e=>e instanceof nN&&e.diagramName===t.diagramName)).length>1;return(0,N.jsxs)("div",{className:"editor-group__header__tab",children:[(0,N.jsx)("div",{className:"editor-group__header__tab__icon",children:(0,N.jsx)(Eb,{})}),(0,N.jsx)("div",{className:"editor-group__header__tab__label",children:t.diagramName}),n&&(0,N.jsx)("div",{className:"editor-group__header__tab__path",children:t.diagramPath})]})}return t.label}})}),(0,N.jsx)("div",{className:"panel__header__actions"})]}),(0,N.jsx)("div",{className:"panel__content editor-group__content",children:t instanceof Hf?t.textEditorState.language===hf.PURE?(0,N.jsx)(Nv,{editorState:t}):(0,N.jsx)(Jb,{editorState:t}):t instanceof nN?(0,N.jsx)(Av,{diagramEditorState:t}):null},t.uuid)]}):(0,N.jsx)(Bv,{})}));var Vv=n(4392),Hv=n(5551);const Gv="/home/runner/work/legend-studio/legend-studio/packages/legend-art/src/autocomplete/CustomSelectorInput.tsx",Uv=(Hv.Select.createFilter,e=>{const{options:t,children:n,getValue:i,selectProps:s}=e;let o=s.optionCustomization?.rowHeight??3.5*parseInt(getComputedStyle(document.documentElement).fontSize,10);o=isNaN(o)?35:o;const[r]=i(),a=t.indexOf(r)*o,c=n.length?n.findIndex((e=>e.props.isFocused)):0,l=(0,Gt.useRef)(null);return(0,Gt.useEffect)((()=>{l.current?.scrollToItem(c)}),[c]),n.length?(0,Et.jsxDEV)(Vv.Y1,{className:s.darkMode?"scrollbar--light selector-menu--dark":"",ref:l,width:"100%",height:Math.min(n.length,6)*o,itemCount:n.length,itemSize:o,initialScrollOffset:a,children:({index:e,style:t})=>(0,Et.jsxDEV)("div",{style:t,className:"selector-input__option-wrapper",children:n[e]},void 0,!1,{fileName:Gv,lineNumber:121,columnNumber:78},void 0)},void 0,!1,{fileName:Gv,lineNumber:109,columnNumber:13},void 0):(0,Et.jsxDEV)("div",{className:"selector-menu--no-match "+(s.darkMode?"selector-menu--dark":""),children:s.noMatchMessage??"No match found"},void 0,!1,{fileName:Gv,lineNumber:130,columnNumber:11},void 0)}),$v=e=>{const{children:t,selectProps:n}=e;return(0,Et.jsxDEV)(Hv.SelectComponents.Option,{...e,className:(0,Rt.$)(n.darkMode?{"selector-input--dark__option":!0,"selector-input--dark__option--is-focused":e.isFocused,"selector-input--dark__option--is-selected":e.isSelected}:{"selector-input__option":!0,"selector-input__option--is-focused":e.isFocused,"selector-input__option--is-selected":e.isSelected},{"selector-input__option--custom":Boolean(n.optionCustomization)}),children:t},void 0,!1,{fileName:Gv,lineNumber:152,columnNumber:11},void 0)},Yv="selector-input",Wv="selector-input--dark",zv=()=>(0,Et.jsxDEV)("div",{className:`${Yv}__indicator ${Yv}__loading-indicator ${Wv}__loading-indicator`,children:(0,Et.jsxDEV)(ai,{},void 0,!1,{fileName:Gv,lineNumber:186,columnNumber:5},void 0)},void 0,!1,{fileName:Gv,lineNumber:182,columnNumber:43},void 0),Kv=()=>(0,Et.jsxDEV)("div",{className:`${Yv}__indicator ${Yv}__dropdown-indicator`,children:(0,Et.jsxDEV)(Un,{},void 0,!1,{fileName:Gv,lineNumber:194,columnNumber:5},void 0)},void 0,!1,{fileName:Gv,lineNumber:190,columnNumber:44},void 0),Xv=e=>{const{innerProps:{ref:t,...n}}=e;return(0,Et.jsxDEV)("div",{...n,ref:t,children:(0,Et.jsxDEV)("div",{className:`${Yv}__indicator ${Yv}__clear-indicator`,children:(0,Et.jsxDEV)(jn,{},void 0,!1,{fileName:Gv,lineNumber:211,columnNumber:9},void 0)},void 0,!1,{fileName:Gv,lineNumber:208,columnNumber:7},void 0)},void 0,!1,{fileName:Gv,lineNumber:206,columnNumber:11},void 0)},qv=e=>{const t={onPaste:e.selectProps.onPaste,placeholder:e.selectProps.inputPlaceholder};return(0,Et.jsxDEV)(Hv.Select.components.Input,{...e,...t,isHidden:!1},void 0,!1,{fileName:Gv,lineNumber:232,columnNumber:11},void 0)},Jv=(0,Gt.forwardRef)((function(e,t){const{allowCreating:n,noMatchMessage:i,disabled:s,components:o,className:r,darkMode:a,hasError:c,...l}=e,d=n?Hv.CreatableSelect.default:Hv.Select.default,u=a?Wv:Yv;return(0,Et.jsxDEV)(d,{styles:{menuPortal:e=>({...e,zIndex:9999})},menuPortalTarget:document.body,ref:t,isDisabled:Boolean(s),className:(0,Rt.$)(u,r,{"selector-input--has-error":c,"selector-input--custom":Boolean(e.optionCustomization)}),classNamePrefix:u,components:{Option:$v,ClearIndicator:Xv,DropdownIndicator:Kv,LoadingIndicator:zv,MenuList:Uv,Input:qv,...o},...l,darkMode:a,noMatchMessage:i},void 0,!1,{fileName:Gv,lineNumber:294,columnNumber:11},this)})),Zv=(e,t)=>e.label.localeCompare(t.label),Qv=(0,It.PA)((()=>{const e=_N(),t=$t(),n=e.fileSearchCommandLoadState,i=e.fileSearchCommandState,s=(0,Gt.useRef)(null),o=(0,Gt.useMemo)((()=>(0,_s.A)((()=>{(0,ke.gP)(e.searchFile()).catch(t.alertUnhandledError)}),500)),[t,e]),r=()=>e.setOpenFileSearchCommand(!1);return(0,N.jsx)(Ot.A,{open:e.openFileSearchCommand,onClose:r,TransitionProps:{onEnter:()=>{s.current?.focus()}},classes:{container:"command-modal__container"},PaperProps:{classes:{root:"command-modal__inner-container"}},children:(0,N.jsxs)("div",{className:"modal modal--dark command-modal",children:[(0,N.jsx)("div",{className:"modal__title",children:"Open file"}),(0,N.jsxs)("div",{className:"command-modal__content",children:[(0,N.jsx)(Jv,{ref:s,className:"command-modal__content__input",options:e.fileSearchCommandResults.map((e=>({label:e,value:e}))).sort(Zv),onChange:n=>{n?.value&&(r(),i.reset(),(0,ke.gP)(e.loadFile(n.value)).catch(t.alertUnhandledError))},onInputChange:e=>{i.setText(e),o.cancel(),o()},placeholder:"Enter file name or path",escapeClearsValue:!0,darkMode:!t.layoutService.TEMPORARY__isLightColorThemeEnabled,isLoading:n.isInProgress}),(0,N.jsx)("button",{className:(0,Rt.$)("command-modal__content__config-btn btn--sm",{"command-modal__content__config-btn--toggled":i.isRegExp}),title:`Use Regular Expression (${i.isRegExp?"on":"off"})`,onClick:()=>i.setRegExp(!i.isRegExp),children:(0,N.jsx)(En,{})})]})]})})}));var eT;!function(e){e.MODE="mode",e.FAST_COMPILE="fastCompile"}(eT||(eT={}));const tT=(nT=(0,It.PA)((()=>{const e=_N(),t=$t(),{ref:n,width:i,height:s}=(0,os.u)(),o=FN(0===e.sideBarDisplayState.size,{onStopResize:t=>e.sideBarDisplayState.setSize(t.domElement.getBoundingClientRect().width),size:e.sideBarDisplayState.size}),r=FN(0===e.panelGroupDisplayState.size,{onStopResize:t=>e.panelGroupDisplayState.setSize(t.domElement.getBoundingClientRect().height),size:e.panelGroupDisplayState.size}),a=FN(e.panelGroupDisplayState.isMaximized);return(0,Gt.useEffect)((()=>{n.current&&e.panelGroupDisplayState.setMaxSize(n.current.offsetHeight)}),[e,n,s,i]),(0,Gt.useEffect)((()=>()=>{e.cleanUp()}),[e]),(0,Gt.useEffect)((()=>{(0,ke.gP)(e.initialize(!1,void 0,t.navigationService.navigator.getCurrentLocationParameterValue(eT.MODE),t.navigationService.navigator.getCurrentLocationParameterValue(eT.FAST_COMPILE))).catch(t.alertUnhandledError)}),[e,t]),(0,Gt.useEffect)((()=>(t.navigationService.navigator.blockNavigation([()=>!0],void 0,(()=>t.notificationService.notifyWarning("Navigation from the editor is blocked"))),()=>{t.navigationService.navigator.unblockNavigation()})),[e,t]),Kb(e),(0,N.jsxs)("div",{className:"ide",children:[(0,N.jsxs)("div",{className:"ide__body",children:[(0,N.jsx)(Yb,{}),(0,N.jsx)("div",{className:"ide__content-container",ref:n,children:(0,N.jsx)("div",{className:"ide__content",children:(0,N.jsxs)(MN,{orientation:"vertical",children:[(0,N.jsx)(BN,{...o.collapsiblePanel,direction:1,children:(0,N.jsx)(Gb,{})}),(0,N.jsx)(jN,{}),(0,N.jsx)(BN,{...o.remainingPanel,minSize:300,children:(0,N.jsxs)(MN,{orientation:"horizontal",children:[(0,N.jsx)(BN,{...a.collapsiblePanel,...0===e.panelGroupDisplayState.size?r.remainingPanel:{},children:(0,N.jsx)(jv,{})}),(0,N.jsx)(jN,{children:(0,N.jsx)(VN,{color:e.panelGroupDisplayState.isMaximized?"transparent":"var(--color-dark-grey-250)"})}),(0,N.jsx)(BN,{...r.collapsiblePanel,...e.panelGroupDisplayState.isMaximized?a.remainingPanel:{},direction:-1,children:(0,N.jsx)(sb,{})})]})})]})})})]}),(0,N.jsx)(zb,{}),(0,N.jsx)(Qv,{})]})})),function(){return(0,N.jsx)(fN,{children:(0,N.jsx)(nT,{})})});var nT;const iT="/home/runner/work/legend-studio/legend-studio/packages/legend-application/src/components/ApplicationFrameworkProvider.tsx",sT=(0,It.PA)((e=>{const{children:t}=e,n=V((0,Gt.useContext)(Mg),"Can't find application platform in context"),i=$t();return(0,Gt.useEffect)((()=>{i.initialize(n).catch(i.alertUnhandledError)}),[i,n]),i.initState.hasSucceeded?(0,Et.jsxDEV)(ws,{children:t},void 0,!1,{fileName:iT,lineNumber:41,columnNumber:13},void 0):(0,Et.jsxDEV)(Et.Fragment,{},void 0,!1,{fileName:iT,lineNumber:36,columnNumber:13},void 0)}));class oT{applicationStore;pluginManager;constructor(e){this.applicationStore=e,this.pluginManager=e.pluginManager}}const rT=(0,Gt.createContext)(void 0),aT=({children:e})=>{const t=$t(),n=(0,It.iz)((()=>new oT(t)));return(0,N.jsx)(rT.Provider,{value:n,children:e})},cT=({children:e})=>(0,N.jsx)(sT,{children:(0,N.jsx)(aT,{children:e})}),lT=e=>{const{baseUrl:t}=e;return(0,N.jsx)(Bg,{baseUrl:t,children:(0,N.jsx)(cT,{children:(0,N.jsx)(tT,{})})})},dT=JSON.parse('{"rE":"8.0.182","XO":{"m":"@finos/legend-application-pure-ide-plugin-core"}}');class uT extends go{_$nominalTypeBrand;install(e){e.registerApplicationPlugin(this)}}const pT={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 hT extends uT{static NAME=dT.XO.m;constructor(){super(hT.NAME,dT.rE)}getExtraApplicationSetups(){return[async e=>{var t,n;await(async e=>{const t=`Monospaced font '${tt}' has not been loaded properly, code editor might not display properly`;await Promise.all([400,700].map((e=>document.fonts.load(`${e} 1em ${tt}`)))).then((()=>{document.fonts.check(`1em ${tt}`)?Yg.editor.remeasureFonts():e.logService.error(u.create(me.APPLICATION_SETUP__FAILURE),t)})).catch((()=>e.logService.error(u.create(me.APPLICATION_SETUP__FAILURE),t)));const n="legend.code-editor.override-default-keybinding";Yg.editor.registerCommand(n,((t,...n)=>{e.keyboardShortcutsService.dispatch(n[0])}));const i=[[Yg.KeyCode.F1,"F1"],[Yg.KeyCode.F8,"F8"],[Yg.KeyCode.F9,"F9"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyG,"Control+KeyG"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyB,"Control+KeyB"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyO,"Control+KeyO"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyD,"Control+KeyD"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.KeyP,"Control+KeyP"],[Yg.KeyMod.Shift|Yg.KeyCode.F10,"Shift+F10"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.F2,"Control+F2"],[Yg.KeyMod.WinCtrl|Yg.KeyCode.F12,"Control+F12"]];Yg.editor.addKeybindingRules(i.map((([e,t])=>({keybinding:e,command:n,commandArgs:t})))),Yg.editor.defineTheme(tf.DEFAULT_DARK,nf),Yg.editor.defineTheme(tf.SOLARIZED_DARK,sf),Yg.editor.defineTheme(tf.GITHUB_DARK,of),Yg.editor.defineTheme(tf.GITHUB_DARK_DIMMED,rf),Yg.editor.defineTheme(tf.MATERIAL_DEFAULT,af),Yg.editor.defineTheme(tf.MATERIAL_DARKER,cf),Yg.editor.defineTheme(tf.ONE_DARK_PRO,lf),Yg.editor.defineTheme(tf.ONE_DARK_PRO_DARKER,df)})(e),t={extraKeywords:[sv]},Yg.languages.register({id:hf.PURE}),Yg.languages.setLanguageConfiguration(hf.PURE,pT),Yg.languages.setMonarchTokensProvider(hf.PURE,(n=t?.extraKeywords??[],{defaultToken:"invalid",tokenPostfix:".pure",keywords:[...n,"Schema","Table","Join","View","primaryKey","groupBy","mainTable","let","extends","true","false","projects",_E.CLASS,_E.ASSOCIATION,_E.ENUMERATION,_E.MEASURE,_E.PROFILE,_E.FUNCTION,_E.MAPPING,_E.RUNTIME,_E.CONNECTION,_E.FILE_GENERATION,_E.GENERATION_SPECIFICATION,_E.DATA_ELEMENT,EE.JSON_MODEL_CONNECTION,EE.MODEL_CHAIN_CONNECTION,EE.XML_MODEL_CONNECTION,"include","EnumerationMapping","Pure","AssociationMapping","XStore","AggregationAware",_E.SERVICE,_E.FLAT_DATA,_E.DATABASE,EE.FLAT_DATA_CONNECTION,EE.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]+/,$g.PARSER],[/(@identifier)/,{cases:{"@languageStructs":$g.LANGUAGE_STRUCT,"@keywords":`${$g.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]+\\$)))_":$g.TYPE,"@default":$g.IDENTIFIER}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":$g.OPERATOR,"@default":$g.IDENTIFIER}}],{include:"@number"},[/[;,.]/,$g.DELIMITER],[/'([^'\\]|\\.)*$/,`${$g.STRING}.invalid`],[/'/,$g.STRING,"@string"],{include:"@characters"}],pure:[[/(@package\*)/,[$g.PACKAGE]],[/(@package?)(@identifier)(@generics?)(\s*)(@multiplicity)/,[$g.PACKAGE,$g.TYPE,$g.GENERICS,$g.WHITESPACE,$g.MULTIPLICITY]],[/(@package)(@identifier)(@generics?)/,[$g.PACKAGE,$g.TYPE,$g.GENERICS]],[/([@^])(\s*)(@package?)(@identifier)(@generics?)(@multiplicity?)/,[`${$g.TYPE}.operator`,$g.WHITESPACE,$g.PACKAGE,$g.TYPE,$g.GENERICS,$g.MULTIPLICITY]],[/(\.\s*)(@identifier)/,[$g.DELIMITER,$g.PROPERTY]],[/(@identifier)(\s*=)/,[$g.PROPERTY,$g.OPERATOR]],[/(@identifier)(\.)(@identifier)/,[$g.TYPE,$g.OPERATOR,$g.PROPERTY]],[/(@identifier)(\s*:)/,[$g.PARAMETER,$g.OPERATOR]],[/(let)(\s+)(@identifier)(\s*=)/,[$g.KEYWORD,$g.WHITESPACE,$g.VARIABLE,$g.OPERATOR]],[/(\$@identifier)/,[`${$g.VARIABLE}.reference`]]],date:[[/(%latest)/,[`${$g.DATE}.latest`]],[/(@date)/,[$g.DATE]],[/(@time)/,[`${$g.DATE}.time`]]],color:[[/(#[0-9a-fA-F]{6})/,[$g.COLOR]]],number:[[/(@digits)[eE]([-+]?(@digits))?[fFdD]?/,`${$g.NUMBER}.float`],[/(@digits)\.(@digits)([eE][-+]?(@digits))?[fFdD]?/,`${$g.NUMBER}.float`],[/0[xX](@hexdigits)[Ll]?/,`${$g.NUMBER}.hex`],[/0(@octaldigits)[Ll]?/,`${$g.NUMBER}.octal`],[/0[bB](@binarydigits)[Ll]?/,`${$g.NUMBER}.binary`],[/(@digits)[fFdD]/,`${$g.NUMBER}.float`],[/(@digits)[lL]?/,$g.NUMBER]],whitespace:[[/[ \t\r\n]+/,$g.WHITESPACE],[/\/\*\*(?!\/)/,`${$g.COMMENT}.doc`,"@doc"],[/\/\*/,$g.COMMENT,"@comment"],[/\/\/.*$/,$g.COMMENT]],comment:[[/[^/*]+/,$g.COMMENT],[/\*\//,$g.COMMENT,"@pop"],[/[/*]/,$g.COMMENT]],doc:[[/[^/*]+/,`${$g.COMMENT}.doc`],[/\/\*/,`${$g.COMMENT}.doc.invalid`],[/\*\//,`${$g.COMMENT}.doc`,"@pop"],[/[/*]/,`${$g.COMMENT}.doc`]],string:[[/[^\\']+/,$g.STRING],[/@escapes/,`${$g.STRING}.escape`],[/\\./,`${$g.STRING}.escape.invalid`],[/'/,$g.STRING,"@pop"]],characters:[[/'[^\\']'/,$g.STRING],[/(')(@escapes)(')/,[$g.STRING,`${$g.STRING}.escape`,$g.STRING]],[/'/,`${$g.STRING}.invalid`]]}}))}]}getExtraKeyedCommandConfigEntries(){return[Pf,Ff,Mf].flatMap((e=>{return t=e,Object.entries(t).map((e=>({key:e[0],content:e[1]})));var t}))}}class mT extends po{static create(){const e=new mT(bo.create());return e.withBasePlugins([new fo,new hT]),e.withBasePresets([new xg]),e}async configureApplication(e){return new Eo(e)}async loadApplication(e){(0,b.H)((()=>{let e=document.getElementsByTagName(ho).length?document.getElementsByTagName(ho)[0]:void 0;return e||(e=document.createElement(ho),document.body.appendChild(e)),e.setAttribute("style","height: 100%; width: 100%; display: block"),e})()).render((0,N.jsx)(Yt,{store:e,children:(0,N.jsx)(lT,{baseUrl:this.baseAddress})}))}}class gT{static getPresetCollection(){return[]}static getPluginCollection(){return[new E]}static run(e){mT.create().setup({baseAddress:e}).withPresets(gT.getPresetCollection()).withPlugins(gT.getPluginCollection()).start().catch((e=>{throw e}))}}gT.run("/ide/")},5551:(e,t,n)=>{const i=n(1960),s=n(7002);e.exports={CreatableSelect:i,Select:s,SelectComponents:s.components}}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=i,o.amdO={},e=[],o.O=(t,n,i,s)=>{if(!n){var r=1/0;for(d=0;d<e.length;d++){for(var[n,i,s]=e[d],a=!0,c=0;c<n.length;c++)(!1&s||r>=s)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(a=!1,s<r&&(r=s));if(a){e.splice(d--,1);var l=i();void 0!==l&&(t=l)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[n,i,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,i){if(1&i&&(e=this(e)),8&i)return e;if("object"==typeof e&&e){if(4&i&&e.__esModule)return e;if(16&i&&"function"==typeof e.then)return e}var s=Object.create(null);o.r(s);var r={};t=t||[null,n({}),n([]),n(n)];for(var a=2&i&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>r[t]=()=>e[t]));return r.default=()=>e,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.e=()=>Promise.resolve(),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/ide/",(()=>{var e={57:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var i,s,[r,a,c]=n,l=0;if(r.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(c)var d=c(o)}for(t&&t(n);l<r.length;l++)s=r[l],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return o.O(d)},n=globalThis.webpackChunk_finos_legend_application_pure_ide_deployment=globalThis.webpackChunk_finos_legend_application_pure_ide_deployment||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[121],(()=>o(355)));r=o.O(r)})();
2
+ //# sourceMappingURL=index.677d1879.js.map