@journeyapps-labs/reactor-mod-editor 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/@types/EditorModule.d.ts +7 -0
- package/dist/@types/MonacoCommandPalletSearchEngine.d.ts +21 -0
- package/dist/@types/actions/ChangeEditorThemeAction.d.ts +9 -0
- package/dist/@types/index.d.ts +16 -0
- package/dist/@types/languages/languages.d.ts +39 -0
- package/dist/@types/languages/logs.d.ts +3 -0
- package/dist/@types/providers/EditorThemeProvider.d.ts +14 -0
- package/dist/@types/settings/StoredThemesSettings.d.ts +13 -0
- package/dist/@types/settings/VimSupportSetting.d.ts +7 -0
- package/dist/@types/shortcuts/MonacoShortcut.d.ts +9 -0
- package/dist/@types/shortcuts/MonacoShortcutHandler.d.ts +17 -0
- package/dist/@types/shortcuts/MonacoShortcutMap.d.ts +83 -0
- package/dist/@types/stores/MonacoStore.d.ts +38 -0
- package/dist/@types/stores/MonacoThemeStore.d.ts +34 -0
- package/dist/@types/stores/keybindings/KeybindingsRegistry.d.ts +46 -0
- package/dist/@types/stores/keybindings/MonacoKeybindingStore.d.ts +27 -0
- package/dist/@types/stores/keybindings/definitions.d.ts +21 -0
- package/dist/@types/stores/keybindings/utils.d.ts +2 -0
- package/dist/@types/theme/EditorThemePreferencesWidget.d.ts +26 -0
- package/dist/@types/theme/SmartEditorThemePreferencesWidget.d.ts +8 -0
- package/dist/@types/theme/UploadVSIXThemeBtnWidget.d.ts +12 -0
- package/dist/@types/theme/patchThemeService.d.ts +9 -0
- package/dist/@types/theme/theme-utils.d.ts +61 -0
- package/dist/@types/theme-reactor/editor-theme-fragment.d.ts +41 -0
- package/dist/@types/utils/paths.d.ts +23 -0
- package/dist/@types/utils/useEditorStickyHeader.d.ts +8 -0
- package/dist/@types/widgets/DualEditorWidget.d.ts +7 -0
- package/dist/@types/widgets/EditorWidget.d.ts +15 -0
- package/dist/@types/widgets/MonacoEditorWidget.d.ts +10 -0
- package/dist/@types/widgets/SimpleEditorWidget.d.ts +8 -0
- package/dist/EditorModule.js +73 -0
- package/dist/EditorModule.js.map +1 -0
- package/dist/MonacoCommandPalletSearchEngine.js +52 -0
- package/dist/MonacoCommandPalletSearchEngine.js.map +1 -0
- package/dist/actions/ChangeEditorThemeAction.js +43 -0
- package/dist/actions/ChangeEditorThemeAction.js.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/languages/languages.js +155 -0
- package/dist/languages/languages.js.map +1 -0
- package/dist/languages/logs.js +110 -0
- package/dist/languages/logs.js.map +1 -0
- package/dist/providers/EditorThemeProvider.js +26 -0
- package/dist/providers/EditorThemeProvider.js.map +1 -0
- package/dist/settings/StoredThemesSettings.js +45 -0
- package/dist/settings/StoredThemesSettings.js.map +1 -0
- package/dist/settings/VimSupportSetting.js +19 -0
- package/dist/settings/VimSupportSetting.js.map +1 -0
- package/dist/shortcuts/MonacoShortcut.js +27 -0
- package/dist/shortcuts/MonacoShortcut.js.map +1 -0
- package/dist/shortcuts/MonacoShortcutHandler.js +119 -0
- package/dist/shortcuts/MonacoShortcutHandler.js.map +1 -0
- package/dist/shortcuts/MonacoShortcutMap.js +84 -0
- package/dist/shortcuts/MonacoShortcutMap.js.map +1 -0
- package/dist/stores/MonacoStore.js +119 -0
- package/dist/stores/MonacoStore.js.map +1 -0
- package/dist/stores/MonacoThemeStore.js +143 -0
- package/dist/stores/MonacoThemeStore.js.map +1 -0
- package/dist/stores/keybindings/KeybindingsRegistry.js +131 -0
- package/dist/stores/keybindings/KeybindingsRegistry.js.map +1 -0
- package/dist/stores/keybindings/MonacoKeybindingStore.js +105 -0
- package/dist/stores/keybindings/MonacoKeybindingStore.js.map +1 -0
- package/dist/stores/keybindings/definitions.js +5 -0
- package/dist/stores/keybindings/definitions.js.map +1 -0
- package/dist/stores/keybindings/utils.js +12 -0
- package/dist/stores/keybindings/utils.js.map +1 -0
- package/dist/theme/EditorThemePreferencesWidget.js +160 -0
- package/dist/theme/EditorThemePreferencesWidget.js.map +1 -0
- package/dist/theme/SmartEditorThemePreferencesWidget.js +62 -0
- package/dist/theme/SmartEditorThemePreferencesWidget.js.map +1 -0
- package/dist/theme/UploadVSIXThemeBtnWidget.js +93 -0
- package/dist/theme/UploadVSIXThemeBtnWidget.js.map +1 -0
- package/dist/theme/patchThemeService.js +146 -0
- package/dist/theme/patchThemeService.js.map +1 -0
- package/dist/theme/theme-utils.js +65 -0
- package/dist/theme/theme-utils.js.map +1 -0
- package/dist/theme-reactor/editor-theme-fragment.js +70 -0
- package/dist/theme-reactor/editor-theme-fragment.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/paths.js +110 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/useEditorStickyHeader.js +45 -0
- package/dist/utils/useEditorStickyHeader.js.map +1 -0
- package/dist/widgets/DualEditorWidget.js +79 -0
- package/dist/widgets/DualEditorWidget.js.map +1 -0
- package/dist/widgets/EditorWidget.js +85 -0
- package/dist/widgets/EditorWidget.js.map +1 -0
- package/dist/widgets/MonacoEditorWidget.js +29 -0
- package/dist/widgets/MonacoEditorWidget.js.map +1 -0
- package/dist/widgets/SimpleEditorWidget.js +71 -0
- package/dist/widgets/SimpleEditorWidget.js.map +1 -0
- package/dist-module/00a5102416a37050fa62.tmLanguage +1282 -0
- package/dist-module/092ac75109eb363dd826.tmLanguage +424 -0
- package/dist-module/100.bundle.js +1 -0
- package/dist-module/116.bundle.js +1 -0
- package/dist-module/173.bundle.js +1 -0
- package/dist-module/179.bundle.js +1 -0
- package/dist-module/18358219dee0ad14cc0c.tmLanguage +765 -0
- package/dist-module/195.bundle.js +1 -0
- package/dist-module/277.bundle.js +1 -0
- package/dist-module/299.bundle.js +1 -0
- package/dist-module/306.bundle.js +1 -0
- package/dist-module/344.bundle.js +1 -0
- package/dist-module/399345f371a7cb9eb1ba.tmLanguage +629 -0
- package/dist-module/404.bundle.js +4 -0
- package/dist-module/404.bundle.js.LICENSE.txt +6 -0
- package/dist-module/404.bundle.js.map +1 -0
- package/dist-module/43.bundle.js +1 -0
- package/dist-module/438.bundle.js +3 -0
- package/dist-module/438.bundle.js.map +1 -0
- package/dist-module/479.bundle.js +1 -0
- package/dist-module/491.bundle.js +1 -0
- package/dist-module/513.bundle.js +1 -0
- package/dist-module/549.bundle.js +1 -0
- package/dist-module/5e221c90a0dcbd4af855.tmLanguage +237 -0
- package/dist-module/6486a2df9ca5896c2cb6.tmLanguage +5739 -0
- package/dist-module/65.bundle.js +1 -0
- package/dist-module/66.bundle.js +1 -0
- package/dist-module/685.bundle.js +1 -0
- package/dist-module/6e3d5ec6699a8d147d29.wasm +0 -0
- package/dist-module/7.bundle.js +1 -0
- package/dist-module/703774d50b4d4526a465.tmLanguage +386 -0
- package/dist-module/717.bundle.js +2 -0
- package/dist-module/728.bundle.js +1 -0
- package/dist-module/77a7afbe329083ed0f59.tmLanguage +1183 -0
- package/dist-module/78.bundle.js +1 -0
- package/dist-module/829.bundle.js +1 -0
- package/dist-module/831968f77a9412d07cc2.tmLanguage +506 -0
- package/dist-module/862.bundle.js +1 -0
- package/dist-module/87.bundle.js +1 -0
- package/dist-module/923.bundle.js +1 -0
- package/dist-module/931.bundle.js +1 -0
- package/dist-module/933.bundle.js +3 -0
- package/dist-module/933.bundle.js.map +1 -0
- package/dist-module/970.bundle.js +1 -0
- package/dist-module/984.bundle.js +1 -0
- package/dist-module/992.bundle.js +1 -0
- package/dist-module/996.bundle.js +1 -0
- package/dist-module/9c8494157d226e95da5e.tmLanguage +1377 -0
- package/dist-module/a3e215de85a86294de8a.tmLanguage +385 -0
- package/dist-module/ba5650c2a0269a236153.tmLanguage +9349 -0
- package/dist-module/bundle.js +97 -0
- package/dist-module/bundle.js.LICENSE.txt +27 -0
- package/dist-module/bundle.js.map +1 -0
- package/dist-module/editor.worker.bundle.js +1 -0
- package/dist-module/f6283f7ccaed1249d9eb.ttf +0 -0
- package/dist-module/json.worker.bundle.js +2 -0
- package/dist-module/json.worker.bundle.js.LICENSE.txt +6 -0
- package/dist-module/yaml.worker.bundle.js +1 -0
- package/media/css.tmLanguage +1183 -0
- package/media/handlebars.tmLanguage +1282 -0
- package/media/html.tmLanguage +506 -0
- package/media/javascript.tmLanguage +5739 -0
- package/media/json.tmLanguage +386 -0
- package/media/jxml.tmLanguage +424 -0
- package/media/markdown.tmLanguage +1377 -0
- package/media/regularExpressions.tmLanguage +237 -0
- package/media/sql.tmLanguage +765 -0
- package/media/themes/ayu-light.json5 +847 -0
- package/media/themes/ayu-mirage.json5 +846 -0
- package/media/themes/journey.json5 +1061 -0
- package/media/themes/oxide.json5 +579 -0
- package/media/themes/reactor.json5 +775 -0
- package/media/themes/scarlet.json5 +836 -0
- package/media/typescript.tmLanguage +9349 -0
- package/media/xml.tmLanguage +385 -0
- package/media/yaml.tmLanguage +629 -0
- package/package.json +45 -0
- package/reactor.config.json +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_journeyapps_labs_reactor_mod_editor=self.webpackChunk_journeyapps_labs_reactor_mod_editor||[]).push([[65],{193:(e,t,r)=>{r.d(t,{F:()=>a});var i=r(1069),n=r(1184);const a={JSONContribution:"base.contributions.json"},o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var r;this.schemasById[(r=e,r.length>0&&"#"===r.charAt(r.length-1)?r.substring(0,r.length-1):r)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.O.add(a.JSONContribution,o)},1184:(e,t,r)=>{r.d(t,{O:()=>a});var i=r(5835),n=r(8860);const a=new class{constructor(){this.data=new Map}add(e,t){i.ok(n.Kg(e)),i.ok(n.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},3721:(e,t,r)=>{r.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},4509:(e,t,r)=>{r.d(t,{Fd:()=>c});var i=r(7840),n=r(1069),a=r(8860),o=r(5459),s=r(8602),u=r(193),g=r(1184);const c={Configuration:"base.contributions.configuration"},h={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},l={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},v={properties:{},patternProperties:{}},C="vscode://schemas/settings/resourceLanguage",m=g.O.as(u.F.JSONContribution),y="\\[([^\\]]+)\\]",P=new RegExp(y,"g"),D=`^(${y})+$`,b=new RegExp(D);function S(e){const t=[];if(b.test(e)){let r=P.exec(e);for(;r?.length;){const i=r[1].trim();i&&t.push(i),r=P.exec(e)}}return(0,i.dM)(t)}const A=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.vl,this._onDidUpdateConfiguration=new n.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},m.registerSchema(C,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const r=new Set;this.doRegisterConfigurations(e,t,r),m.registerSchema(C,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:r})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const r=[];for(const{overrides:i,source:n}of e)for(const e in i){t.add(e);const a=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(a.configurationDefaultOverrides.push({value:o,source:n}),b.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,n,a.configurationDefaultOverrideValue);if(!t)continue;a.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,n),r.push(...S(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,n,a.configurationDefaultOverrideValue);if(!t)continue;a.configurationDefaultOverrideValue=t;const r=this.configurationProperties[e];r&&(this.updatePropertyDefaultValue(e,r),this.updateSchema(e,r))}}this.doRegisterOverrideIdentifiers(r)}updateDefaultOverrideProperty(e,t,r){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,s.Mo)(e)),$ref:C,defaultDefaultValue:t.value,source:r,defaultValueSource:r};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,r,i){const n=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(a.Gv(i)&&(a.b0(n[e])||a.Gv(n[e]))){if(n[e]={...n[e]??{},...i},r)for(const t in i)o.set(`${e}.${t}`,r)}else n[e]=i,r?o.set(e,r):o.delete(e)}return{value:n,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,r,i){const n=this.configurationProperties[e],o=i?.value??n?.defaultDefaultValue;let s=r;if(a.Gv(t)&&(void 0!==n&&"object"===n.type||void 0===n&&(a.b0(o)||a.Gv(o)))){if(s=i?.source??new Map,!(s instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)r&&s.set(`${e}.${i}`,r);t={...a.Gv(o)?o:{},...t}}return{value:t,source:s}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,r){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,r),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,r,i,n=3,o){n=a.z(e.scope)?n:e.scope;const s=e.properties;if(s)for(const e in s){const u=s[e];t&&O(e,u)?delete s[e]:(u.source=r,u.defaultDefaultValue=s[e].default,this.updatePropertyDefaultValue(e,u),b.test(e)?u.scope=void 0:(u.scope=a.z(u.scope)?n:u.scope,u.restricted=a.z(u.restricted)?!!i?.includes(e):u.restricted),!s[e].hasOwnProperty("included")||s[e].included?(this.configurationProperties[e]=s[e],s[e].policy?.name&&this.policyConfigurations.set(s[e].policy.name,e),!s[e].deprecationMessage&&s[e].markdownDeprecationMessage&&(s[e].deprecationMessage=s[e].markdownDeprecationMessage),o.add(e)):(this.excludedConfigurationProperties[e]=s[e],delete s[e]))}const u=e.allOf;if(u)for(const e of u)this.validateAndRegisterProperties(e,t,r,i,n,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const r=e.properties;if(r)for(const e in r)this.updateSchema(e,r[e]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(h.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:p.properties[e]=t;break;case 6:l.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:v.properties[e]=t;break;case 5:v.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,r={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:C};this.updatePropertyDefaultValue(t,r),h.properties[t]=r,d.properties[t]=r,p.properties[t]=r,l.properties[t]=r,f.properties[t]=r,v.properties[t]=r}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:C};h.patternProperties[D]=e,d.patternProperties[D]=e,p.patternProperties[D]=e,l.patternProperties[D]=e,f.patternProperties[D]=e,v.patternProperties[D]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const r=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,n;!r||t.disallowConfigurationDefault&&r.source||(i=r.value,n=r.source),a.b0(i)&&(i=t.defaultDefaultValue,n=void 0),a.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=n}};function O(e,t){return e.trim()?b.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==A.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==A.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,A.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}g.O.add(c.Configuration,A)},5908:(e,t,r)=>{r.d(t,{B6:()=>f,P8:()=>d});var i=r(6633),n=r(6339),a=r(2194),o=r(7622),s=r(5259),u=r(8095);function g(e){return(0,u.I)(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,r=!1){return e===t?0:(0,s.UD)(this.getComparisonKey(e,r),this.getComparisonKey(t,r))}isEqual(e,t,r=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,r)===this.getComparisonKey(t,r)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,r=!1){if(e.scheme===t.scheme){if(e.scheme===n.ny.file)return i._1(g(e),g(t),this._ignorePathCasing(e))&&e.query===t.query&&(r||e.fragment===t.fragment);if(p(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(r||e.fragment===t.fragment)}return!1}joinPath(e,...t){return u.r.joinPath(e,...t)}basenameOrAuthority(e){return d(e)||e.authority}basename(e){return a.SA.basename(e.path)}extname(e){return a.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===n.ny.file?t=u.r.file(a.pD(g(e))).path:(t=a.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===n.ny.file?u.r.file(a.S8(g(e))).path:a.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!p(e.authority,t.authority))return;if(e.scheme===n.ny.file){const r=a.V8(g(e),g(t));return o.uF?i.TH(r):r}let r=e.path||"/";const s=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(r.length,s.length);e<t&&(r.charCodeAt(e)===s.charCodeAt(e)||r.charAt(e).toLowerCase()===s.charAt(e).toLowerCase());e++);r=s.substr(0,e)+r.substr(e)}return a.SA.relative(r,s)}resolvePath(e,t){if(e.scheme===n.ny.file){const r=u.r.file(a.hd(g(e),t));return e.with({authority:r.authority,path:r.path})}return t=i.kb(t),e.with({path:a.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,s.Q_)(e,t)}hasTrailingPathSeparator(e,t=a.Vn){if(e.scheme===n.ny.file){const r=g(e);return r.length>i.Zn(r).length&&r[r.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=a.Vn){return l(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=a.Vn){let r=!1;if(e.scheme===n.ny.file){const n=g(e);r=void 0!==n&&n.length===i.Zn(n).length&&n[n.length-1]===t}else{t="/";const i=e.path;r=1===i.length&&47===i.charCodeAt(i.length-1)}return r||l(e,t)?e:e.with({path:e.path+"/"})}}const h=new c((()=>!1)),d=(new c((e=>e.scheme!==n.ny.file||!o.j9)),new c((e=>!0)),h.isEqual.bind(h),h.isEqualOrParent.bind(h),h.getComparisonKey.bind(h),h.basenameOrAuthority.bind(h),h.basename.bind(h)),p=(h.extname.bind(h),h.dirname.bind(h),h.joinPath.bind(h),h.normalizePath.bind(h),h.relativePath.bind(h),h.resolvePath.bind(h),h.isAbsolutePath.bind(h),h.isEqualAuthority.bind(h)),l=h.hasTrailingPathSeparator.bind(h);var f;h.removeTrailingPathSeparator.bind(h),h.addTrailingPathSeparator.bind(h),function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const r=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&r.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&r.set(e.META_DATA_MIME,i),r}}(f||(f={}))},6633:(e,t,r)=>{r.d(t,{TH:()=>o,Zn:()=>u,_1:()=>g,kb:()=>s});var i=r(2194),n=(r(7622),r(5259));function a(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function s(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function u(e,t=i.SA.sep){if(!e)return"";const r=e.length,n=e.charCodeAt(0);if(a(n)){if(a(e.charCodeAt(1))&&!a(e.charCodeAt(2))){let i=3;const n=i;for(;i<r&&!a(e.charCodeAt(i));i++);if(n!==i&&!a(e.charCodeAt(i+1)))for(i+=1;i<r;i++)if(a(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(((o=n)>=65&&o<=90||o>=97&&o<=122)&&58===e.charCodeAt(1))return a(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);var o;let s=e.indexOf("://");if(-1!==s)for(s+=3;s<r;s++)if(a(e.charCodeAt(s)))return e.slice(0,s+1);return""}function g(e,t,r,a=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(r){if(!(0,n.ns)(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===a&&r--,e.charAt(r)===a}return t.charAt(t.length-1)!==a&&(t+=a),0===e.indexOf(t)}},6640:(e,t,r)=>{var i;r.d(t,{_Y:()=>n,u1:()=>a}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const n=a("instantiationService");function a(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,r,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:r}],t[i.DI_TARGET]=t)}(t,e,n)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},8602:(e,t,r)=>{r.d(t,{Mo:()=>n,pG:()=>i});const i=(0,r(6640).u1)("configurationService");function n(e){return e.replace(/[\[\]]/g,"")}},9166:(e,t,r)=>{r.d(t,{W6:()=>u,vH:()=>g});var i=r(5459),n=r(1069),a=r(1184),o=r(3721),s=r(4509);const u=new class{constructor(){this._onDidChangeLanguages=new n.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,r=this._languages.length;t<r;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};a.O.add("editor.modesRegistry",u);const g="plaintext";u.registerLanguage({id:g,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),a.O.as(s.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_journeyapps_labs_reactor_mod_editor=self.webpackChunk_journeyapps_labs_reactor_mod_editor||[]).push([[66],{4685:(e,n,t)=>{t.r(n),t.d(n,{clearPlatformLanguageAssociations:()=>d,getLanguageIds:()=>w,registerPlatformLanguageAssociation:()=>p});var i=t(9491),o=t(3721),r=t(6339),a=t(2194),s=t(5908),f=t(5259),l=t(9166);let m=[],u=[],c=[];function p(e,n=!1){!function(e,n,t){const o=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:false,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(a.SA.sep)>=0}}(e);m.push(o),o.userConfigured?c.push(o):u.push(o),t&&!o.userConfigured&&m.forEach((e=>{e.mime===o.mime||e.userConfigured||(o.extension&&e.extension===o.extension&&console.warn(`Overwriting extension <<${o.extension}>> to now point to mime <<${o.mime}>>`),o.filename&&e.filename===o.filename&&console.warn(`Overwriting filename <<${o.filename}>> to now point to mime <<${o.mime}>>`),o.filepattern&&e.filepattern===o.filepattern&&console.warn(`Overwriting filepattern <<${o.filepattern}>> to now point to mime <<${o.mime}>>`),o.firstline&&e.firstline===o.firstline&&console.warn(`Overwriting firstline <<${o.firstline}>> to now point to mime <<${o.mime}>>`))}))}(e,0,n)}function d(){m=m.filter((e=>e.userConfigured)),u=[]}function w(e,n){return function(e,n){let t;if(e)switch(e.scheme){case r.ny.file:t=e.fsPath;break;case r.ny.data:t=s.B6.parseMetaData(e).get(s.B6.META_DATA_LABEL);break;case r.ny.vscodeNotebookCell:t=void 0;break;default:t=e.path}if(!t)return[{id:"unknown",mime:o.K.unknown}];t=t.toLowerCase();const i=(0,a.P8)(t),p=g(t,i,c);if(p)return[p,{id:l.vH,mime:o.K.text}];const d=g(t,i,u);if(d)return[d,{id:l.vH,mime:o.K.text}];if(n){const e=function(e){if((0,f.LU)(e)&&(e=e.substr(1)),e.length>0)for(let n=m.length-1;n>=0;n--){const t=m[n];if(!t.firstline)continue;const i=e.match(t.firstline);if(i&&i.length>0)return t}}(n);if(e)return[e,{id:l.vH,mime:o.K.text}]}return[{id:"unknown",mime:o.K.unknown}]}(e,n).map((e=>e.id))}function g(e,n,t){let i,o,r;for(let a=t.length-1;a>=0;a--){const s=t[a];if(n===s.filenameLowercase){i=s;break}if(s.filepattern&&(!o||s.filepattern.length>o.filepattern.length)){const t=s.filepatternOnPath?e:n;s.filepatternLowercase?.(t)&&(o=s)}s.extension&&(!r||s.extension.length>r.extension.length)&&n.endsWith(s.extensionLowercase)&&(r=s)}return i||o||r||void 0}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_journeyapps_labs_reactor_mod_editor=self.webpackChunk_journeyapps_labs_reactor_mod_editor||[]).push([[685],{1685:(t,e,n)=>{n.r(e),n.d(e,{encodeSemanticTokensDto:()=>a});var r=n(2055),f=n(7622);function a(t){const e=new Uint32Array(function(t){let e=0;if(e+=2,"full"===t.type)e+=1+t.data.length;else{e+=1,e+=3*t.deltas.length;for(const n of t.deltas)n.data&&(e+=n.data.length)}return e}(t));let n=0;if(e[n++]=t.id,"full"===t.type)e[n++]=1,e[n++]=t.data.length,e.set(t.data,n),n+=t.data.length;else{e[n++]=2,e[n++]=t.deltas.length;for(const r of t.deltas)e[n++]=r.start,e[n++]=r.deleteCount,r.data?(e[n++]=r.data.length,e.set(r.data,n),n+=r.data.length):e[n++]=0}return function(t){const e=new Uint8Array(t.buffer,t.byteOffset,4*t.length);return f.cm()||function(t){for(let e=0,n=t.length;e<n;e+=4){const n=t[e+0],r=t[e+1],f=t[e+2],a=t[e+3];t[e+0]=a,t[e+1]=f,t[e+2]=r,t[e+3]=n}}(e),r.MB.wrap(e)}(e)}},2055:(t,e,n)=>{n.d(e,{$l:()=>u,Gs:()=>d,MB:()=>o,Sw:()=>c,bb:()=>l,gN:()=>s,pJ:()=>i});var r=n(315);const f="undefined"!=typeof Buffer;let a;new r.d((()=>new Uint8Array(256)));class o{static wrap(t){return f&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new o(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}toString(){return f?this.buffer.toString():(a||(a=new TextDecoder),a.decode(this.buffer))}}function u(t,e){return(0|t[e+0])>>>0|t[e+1]<<8>>>0}function s(t,e,n){t[n+0]=255&e,e>>>=8,t[n+1]=255&e}function l(t,e){return t[e]*2**24+65536*t[e+1]+256*t[e+2]+t[e+3]}function c(t,e,n){t[n+3]=e,e>>>=8,t[n+2]=e,e>>>=8,t[n+1]=e,e>>>=8,t[n]=e}function i(t,e){return t[e]}function d(t,e,n){t[n]=e}}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_journeyapps_labs_reactor_mod_editor=self.webpackChunk_journeyapps_labs_reactor_mod_editor||[]).push([[7,549],{3007:(t,e,n)=>{n.r(e),n.d(e,{SemanticTokensProviderStyling:()=>d,toMultilineTokens2:()=>g}),n(7511);var s=n(9996),r=n(5195),i=n(3434),o=n(520),a=n(9517);class h{static create(t,e){return new h(t,new u(e))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(t,e){this._startLineNumber=t,this._tokens=e,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(t){return this._startLineNumber<=t&&t<=this._endLineNumber?this._tokens.getLineTokens(t-this._startLineNumber):null}getRange(){const t=this._tokens.getRange();return t?new o.Q(this._startLineNumber+t.startLineNumber,t.startColumn,this._startLineNumber+t.endLineNumber,t.endColumn):t}removeTokens(t){const e=t.startLineNumber-this._startLineNumber,n=t.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(e,t.startColumn-1,n,t.endColumn-1),this._updateEndLineNumber()}split(t){const e=t.startLineNumber-this._startLineNumber,n=t.endLineNumber-this._startLineNumber,[s,r,i]=this._tokens.split(e,t.startColumn-1,n,t.endColumn-1);return[new h(this._startLineNumber,s),new h(this._startLineNumber+i,r)]}applyEdit(t,e){const[n,s,r]=(0,a.W)(e);this.acceptEdit(t,n,s,r,e.length>0?e.charCodeAt(0):0)}acceptEdit(t,e,n,s,r){this._acceptDeleteRange(t),this._acceptInsertText(new i.y(t.startLineNumber,t.startColumn),e,n,s,r),this._updateEndLineNumber()}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn)return;const e=t.startLineNumber-this._startLineNumber,n=t.endLineNumber-this._startLineNumber;if(n<0){const t=n-e;return void(this._startLineNumber-=t)}const s=this._tokens.getMaxDeltaLine();if(!(e>=s+1)){if(e<0&&n>=s+1)return this._startLineNumber=0,void this._tokens.clear();if(e<0){const s=-e;this._startLineNumber-=s,this._tokens.acceptDeleteRange(t.startColumn-1,0,0,n,t.endColumn-1)}else this._tokens.acceptDeleteRange(0,e,t.startColumn-1,n,t.endColumn-1)}}_acceptInsertText(t,e,n,s,r){if(0===e&&0===n)return;const i=t.lineNumber-this._startLineNumber;i<0?this._startLineNumber+=e:i>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(i,t.column-1,e,n,s,r)}}class u{constructor(t){this._tokens=t,this._tokenCount=t.length/4}toString(t){const e=[];for(let n=0;n<this._tokenCount;n++)e.push(`(${this._getDeltaLine(n)+t},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${e.join(",")}]`}getMaxDeltaLine(){const t=this._getTokenCount();return 0===t?-1:this._getDeltaLine(t-1)}getRange(){const t=this._getTokenCount();if(0===t)return null;const e=this._getStartCharacter(0),n=this._getDeltaLine(t-1),s=this._getEndCharacter(t-1);return new o.Q(0,e+1,n,s+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(t){return this._tokens[4*t]}_getStartCharacter(t){return this._tokens[4*t+1]}_getEndCharacter(t){return this._tokens[4*t+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(t){let e=0,n=this._getTokenCount()-1;for(;e<n;){const s=e+Math.floor((n-e)/2),r=this._getDeltaLine(s);if(r<t)e=s+1;else{if(!(r>t)){let r=s;for(;r>e&&this._getDeltaLine(r-1)===t;)r--;let i=s;for(;i<n&&this._getDeltaLine(i+1)===t;)i++;return new l(this._tokens.subarray(4*r,4*i+4))}n=s-1}}return this._getDeltaLine(e)===t?new l(this._tokens.subarray(4*e,4*e+4)):null}clear(){this._tokenCount=0}removeTokens(t,e,n,s){const r=this._tokens,i=this._tokenCount;let o=0,a=!1,h=0;for(let u=0;u<i;u++){const i=4*u,l=r[i],c=r[i+1],_=r[i+2],d=r[i+3];if((l>t||l===t&&_>=e)&&(l<n||l===n&&c<=s))a=!0;else{if(0===o&&(h=l),a){const t=4*o;r[t]=l-h,r[t+1]=c,r[t+2]=_,r[t+3]=d}o++}}return this._tokenCount=o,h}split(t,e,n,s){const r=this._tokens,i=this._tokenCount,o=[],a=[];let h=o,l=0,c=0;for(let o=0;o<i;o++){const i=4*o,u=r[i],_=r[i+1],d=r[i+2],g=r[i+3];if(u>t||u===t&&d>=e){if(u<n||u===n&&_<=s)continue;h!==a&&(h=a,l=0,c=u)}h[l++]=u-c,h[l++]=_,h[l++]=d,h[l++]=g}return[new u(new Uint32Array(o)),new u(new Uint32Array(a)),c]}acceptDeleteRange(t,e,n,s,r){const i=this._tokens,o=this._tokenCount,a=s-e;let h=0,u=!1;for(let l=0;l<o;l++){const c=4*l;let _=i[c],d=i[c+1],g=i[c+2];const m=i[c+3];if(_<e||_===e&&g<=n){h++;continue}if(_===e&&d<n)_===s&&g>r?g-=r-n:g=n;else if(_===e&&d===n){if(!(_===s&&g>r)){u=!0;continue}g-=r-n}else if(_<s||_===s&&d<r){if(!(_===s&&g>r)){u=!0;continue}_=e,d=n,g=d+(g-r)}else if(_>s){if(0===a&&!u){h=o;break}_-=a}else{if(!(_===s&&d>=r))throw new Error("Not possible!");t&&0===_&&(d+=t,g+=t),_-=a,d-=r-n,g-=r-n}const k=4*h;i[k]=_,i[k+1]=d,i[k+2]=g,i[k+3]=m,h++}this._tokenCount=h}acceptInsertText(t,e,n,s,r,i){const o=0===n&&1===s&&(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122),a=this._tokens,h=this._tokenCount;for(let i=0;i<h;i++){const h=4*i;let u=a[h],l=a[h+1],c=a[h+2];if(!(u<t||u===t&&c<e)){if(u===t&&c===e){if(!o)continue;c+=1}else if(u===t&&l<e&&e<c)0===n?c+=s:c=e;else{if(u===t&&l===e&&o)continue;if(u===t)if(u+=n,0===n)l+=s,c+=s;else{const t=c-l;l=r+(l-e),c=l+t}else u+=n}a[h]=u,a[h+1]=l,a[h+2]=c}}}}class l{constructor(t){this._tokens=t}getCount(){return this._tokens.length/4}getStartCharacter(t){return this._tokens[4*t+1]}getEndCharacter(t){return this._tokens[4*t+2]}getMetadata(t){return this._tokens[4*t+3]}}var c=n(3087),_=function(t,e){return function(n,s){e(n,s,t)}};let d=class{constructor(t,e,n,s){this._legend=t,this._themeService=e,this._languageService=n,this._logService=s,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new k}getMetadata(t,e,n){const s=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(t,e,s);let i;if(r)i=r.metadata;else{let r=this._legend.tokenTypes[t];const o=[];if(r){let t=e;for(let e=0;t>0&&e<this._legend.tokenModifiers.length;e++)1&t&&o.push(this._legend.tokenModifiers[e]),t>>=1;const s=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);void 0===s?i=2147483647:(i=0,void 0!==s.italic&&(i|=1|(s.italic?1:0)<<11),void 0!==s.bold&&(i|=2|(s.bold?2:0)<<11),void 0!==s.underline&&(i|=4|(s.underline?4:0)<<11),void 0!==s.strikethrough&&(i|=8|(s.strikethrough?8:0)<<11),s.foreground&&(i|=16|s.foreground<<15),0===i&&(i=2147483647))}else i=2147483647,r="not-in-legend";this._hashTable.add(t,e,s,i)}return i}warnOverlappingSemanticTokens(t,e){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${t}, column ${e}`))}warnInvalidLengthSemanticTokens(t,e){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${t}, column ${e}`))}warnInvalidEditStart(t,e,n,s,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${t}, resultId: ${e}) at edit #${n}: The provided start offset ${s} is outside the previous data (length ${r}).`))}};function g(t,e,n){const s=t.data,r=t.data.length/5|0,i=Math.max(Math.ceil(r/1024),400),o=[];let a=0,u=1,l=0;for(;a<r;){const t=a;let c=Math.min(t+i,r);if(c<r){let e=c;for(;e-1>t&&0===s[5*e];)e--;if(e-1===t){let t=c;for(;t+1<r&&0===s[5*t];)t++;c=t}else c=e}let _=new Uint32Array(4*(c-t)),d=0,g=0,m=0,k=0;for(;a<c;){const t=5*a,r=s[t],i=s[t+1],o=u+r|0,h=0===r?l+i|0:i,c=h+s[t+2]|0,f=s[t+3],L=s[t+4];if(c<=h)e.warnInvalidLengthSemanticTokens(o,h+1);else if(m===o&&k>h)e.warnOverlappingSemanticTokens(o,h+1);else{const t=e.getMetadata(f,L,n);2147483647!==t&&(0===g&&(g=o),_[d]=o-g,_[d+1]=h,_[d+2]=c,_[d+3]=t,d+=4,m=o,k=c)}u=o,l=h,a++}d!==_.length&&(_=_.subarray(0,d));const f=h.create(g,_);o.push(f)}return o}d=function(t,e,n,s){var r,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i<3?r(o):i>3?r(e,n,o):r(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}([_(1,s.Gy),_(2,c.L),_(3,r.rr)],d);class m{constructor(t,e,n,s){this.tokenTypeIndex=t,this.tokenModifierSet=e,this.languageId=n,this.metadata=s,this.next=null}}class k{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=k._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<k._SIZES.length?2/3*this._currentLength:0),this._elements=[],k._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(t,e){for(let n=0;n<e;n++)t[n]=null}_hash2(t,e){return(t<<5)-t+e|0}_hashFunc(t,e,n){return this._hash2(this._hash2(t,e),n)%this._currentLength}get(t,e,n){const s=this._hashFunc(t,e,n);let r=this._elements[s];for(;r;){if(r.tokenTypeIndex===t&&r.tokenModifierSet===e&&r.languageId===n)return r;r=r.next}return null}add(t,e,n,s){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const t=this._elements;this._currentLengthIndex++,this._currentLength=k._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<k._SIZES.length?2/3*this._currentLength:0),this._elements=[],k._nullOutEntries(this._elements,this._currentLength);for(const e of t){let t=e;for(;t;){const e=t.next;t.next=null,this._add(t),t=e}}}this._add(new m(t,e,n,s))}_add(t){const e=this._hashFunc(t.tokenTypeIndex,t.tokenModifierSet,t.languageId);t.next=this._elements[e],this._elements[e]=t}}},3087:(t,e,n)=>{n.d(e,{L:()=>s});const s=(0,n(6640).u1)("languageService")},7511:(t,e,n)=>{n.d(e,{x:()=>s});class s{static getLanguageId(t){return(255&t)>>>0}static getTokenType(t){return(768&t)>>>8}static containsBalancedBrackets(t){return!!(1024&t)}static getFontStyle(t){return(30720&t)>>>11}static getForeground(t){return(16744448&t)>>>15}static getBackground(t){return(4278190080&t)>>>24}static getClassNameFromMetadata(t){let e="mtk"+this.getForeground(t);const n=this.getFontStyle(t);return 1&n&&(e+=" mtki"),2&n&&(e+=" mtkb"),4&n&&(e+=" mtku"),8&n&&(e+=" mtks"),e}static getInlineStyleFromMetadata(t,e){const n=this.getForeground(t),s=this.getFontStyle(t);let r=`color: ${e[n]};`;1&s&&(r+="font-style: italic;"),2&s&&(r+="font-weight: bold;");let i="";return 4&s&&(i+=" underline"),8&s&&(i+=" line-through"),i&&(r+=`text-decoration:${i};`),r}static getPresentationFromMetadata(t){const e=this.getForeground(t),n=this.getFontStyle(t);return{foreground:e,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},9517:(t,e,n)=>{function s(t){let e=0,n=0,s=0,r=0;for(let i=0,o=t.length;i<o;i++){const a=t.charCodeAt(i);13===a?(0===e&&(n=i),e++,i+1<o&&10===t.charCodeAt(i+1)?(r|=2,i++):r|=3,s=i+1):10===a&&(r|=1,0===e&&(n=i),e++,s=i+1)}return 0===e&&(n=t.length),[e,n,t.length-s,r]}n.d(e,{W:()=>s})}}]);
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>fileTypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<string>json</string>
|
|
8
|
+
<string>sublime-settings</string>
|
|
9
|
+
<string>sublime-menu</string>
|
|
10
|
+
<string>sublime-keymap</string>
|
|
11
|
+
<string>sublime-mousemap</string>
|
|
12
|
+
<string>sublime-theme</string>
|
|
13
|
+
<string>sublime-build</string>
|
|
14
|
+
<string>sublime-project</string>
|
|
15
|
+
<string>sublime-completions</string>
|
|
16
|
+
</array>
|
|
17
|
+
<key>foldingStartMarker</key>
|
|
18
|
+
<string>(?x) # turn on extended mode
|
|
19
|
+
^ # a line beginning with
|
|
20
|
+
\s* # some optional space
|
|
21
|
+
[{\[] # the start of an object or array
|
|
22
|
+
(?! # but not followed by
|
|
23
|
+
.* # whatever
|
|
24
|
+
[}\]] # and the close of an object or array
|
|
25
|
+
,? # an optional comma
|
|
26
|
+
\s* # some optional space
|
|
27
|
+
$ # at the end of the line
|
|
28
|
+
)
|
|
29
|
+
| # ...or...
|
|
30
|
+
[{\[] # the start of an object or array
|
|
31
|
+
\s* # some optional space
|
|
32
|
+
$ # at the end of the line</string>
|
|
33
|
+
<key>foldingStopMarker</key>
|
|
34
|
+
<string>(?x) # turn on extended mode
|
|
35
|
+
^ # a line beginning with
|
|
36
|
+
\s* # some optional space
|
|
37
|
+
[}\]] # and the close of an object or array</string>
|
|
38
|
+
<key>keyEquivalent</key>
|
|
39
|
+
<string>^~J</string>
|
|
40
|
+
<key>name</key>
|
|
41
|
+
<string>JSON (Javascript Next)</string>
|
|
42
|
+
<key>patterns</key>
|
|
43
|
+
<array>
|
|
44
|
+
<dict>
|
|
45
|
+
<key>include</key>
|
|
46
|
+
<string>#value</string>
|
|
47
|
+
</dict>
|
|
48
|
+
</array>
|
|
49
|
+
<key>repository</key>
|
|
50
|
+
<dict>
|
|
51
|
+
<key>array</key>
|
|
52
|
+
<dict>
|
|
53
|
+
<key>begin</key>
|
|
54
|
+
<string>\[</string>
|
|
55
|
+
<key>beginCaptures</key>
|
|
56
|
+
<dict>
|
|
57
|
+
<key>0</key>
|
|
58
|
+
<dict>
|
|
59
|
+
<key>name</key>
|
|
60
|
+
<string>punctuation.definition.array.begin.json</string>
|
|
61
|
+
</dict>
|
|
62
|
+
</dict>
|
|
63
|
+
<key>end</key>
|
|
64
|
+
<string>\]</string>
|
|
65
|
+
<key>endCaptures</key>
|
|
66
|
+
<dict>
|
|
67
|
+
<key>0</key>
|
|
68
|
+
<dict>
|
|
69
|
+
<key>name</key>
|
|
70
|
+
<string>punctuation.definition.array.end.json</string>
|
|
71
|
+
</dict>
|
|
72
|
+
</dict>
|
|
73
|
+
<key>name</key>
|
|
74
|
+
<string>meta.structure.array.json</string>
|
|
75
|
+
<key>patterns</key>
|
|
76
|
+
<array>
|
|
77
|
+
<dict>
|
|
78
|
+
<key>include</key>
|
|
79
|
+
<string>#value</string>
|
|
80
|
+
</dict>
|
|
81
|
+
<dict>
|
|
82
|
+
<key>match</key>
|
|
83
|
+
<string>,</string>
|
|
84
|
+
<key>name</key>
|
|
85
|
+
<string>punctuation.separator.array.json</string>
|
|
86
|
+
</dict>
|
|
87
|
+
<dict>
|
|
88
|
+
<key>match</key>
|
|
89
|
+
<string>[^\s\]]</string>
|
|
90
|
+
<key>name</key>
|
|
91
|
+
<string>invalid.illegal.expected-array-separator.json</string>
|
|
92
|
+
</dict>
|
|
93
|
+
</array>
|
|
94
|
+
</dict>
|
|
95
|
+
<key>comments</key>
|
|
96
|
+
<dict>
|
|
97
|
+
<key>patterns</key>
|
|
98
|
+
<array>
|
|
99
|
+
<dict>
|
|
100
|
+
<key>begin</key>
|
|
101
|
+
<string>/\*\*</string>
|
|
102
|
+
<key>captures</key>
|
|
103
|
+
<dict>
|
|
104
|
+
<key>0</key>
|
|
105
|
+
<dict>
|
|
106
|
+
<key>name</key>
|
|
107
|
+
<string>punctuation.definition.comment.json</string>
|
|
108
|
+
</dict>
|
|
109
|
+
</dict>
|
|
110
|
+
<key>end</key>
|
|
111
|
+
<string>\*/</string>
|
|
112
|
+
<key>name</key>
|
|
113
|
+
<string>comment.block.documentation.json</string>
|
|
114
|
+
</dict>
|
|
115
|
+
<dict>
|
|
116
|
+
<key>begin</key>
|
|
117
|
+
<string>/\*</string>
|
|
118
|
+
<key>captures</key>
|
|
119
|
+
<dict>
|
|
120
|
+
<key>0</key>
|
|
121
|
+
<dict>
|
|
122
|
+
<key>name</key>
|
|
123
|
+
<string>punctuation.definition.comment.json</string>
|
|
124
|
+
</dict>
|
|
125
|
+
</dict>
|
|
126
|
+
<key>end</key>
|
|
127
|
+
<string>\*/</string>
|
|
128
|
+
<key>name</key>
|
|
129
|
+
<string>comment.block.json</string>
|
|
130
|
+
</dict>
|
|
131
|
+
<dict>
|
|
132
|
+
<key>captures</key>
|
|
133
|
+
<dict>
|
|
134
|
+
<key>1</key>
|
|
135
|
+
<dict>
|
|
136
|
+
<key>name</key>
|
|
137
|
+
<string>punctuation.definition.comment.json</string>
|
|
138
|
+
</dict>
|
|
139
|
+
</dict>
|
|
140
|
+
<key>match</key>
|
|
141
|
+
<string>(//).*$\n?</string>
|
|
142
|
+
<key>name</key>
|
|
143
|
+
<string>comment.line.double-slash.js</string>
|
|
144
|
+
</dict>
|
|
145
|
+
</array>
|
|
146
|
+
</dict>
|
|
147
|
+
<key>constant</key>
|
|
148
|
+
<dict>
|
|
149
|
+
<key>match</key>
|
|
150
|
+
<string>\b(?:true|false|null)\b</string>
|
|
151
|
+
<key>name</key>
|
|
152
|
+
<string>constant.language.json</string>
|
|
153
|
+
</dict>
|
|
154
|
+
<key>number</key>
|
|
155
|
+
<dict>
|
|
156
|
+
<key>match</key>
|
|
157
|
+
<string>(?x) # turn on extended mode
|
|
158
|
+
-? # an optional minus
|
|
159
|
+
(?:
|
|
160
|
+
0 # a zero
|
|
161
|
+
| # ...or...
|
|
162
|
+
[1-9] # a 1-9 character
|
|
163
|
+
\d* # followed by zero or more digits
|
|
164
|
+
)
|
|
165
|
+
(?:
|
|
166
|
+
(?:
|
|
167
|
+
\. # a period
|
|
168
|
+
\d+ # followed by one or more digits
|
|
169
|
+
)?
|
|
170
|
+
(?:
|
|
171
|
+
[eE] # an e character
|
|
172
|
+
[+-]? # followed by an option +/-
|
|
173
|
+
\d+ # followed by one or more digits
|
|
174
|
+
)? # make exponent optional
|
|
175
|
+
)? # make decimal portion optional</string>
|
|
176
|
+
<key>name</key>
|
|
177
|
+
<string>constant.numeric.json</string>
|
|
178
|
+
</dict>
|
|
179
|
+
<key>object</key>
|
|
180
|
+
<dict>
|
|
181
|
+
<key>begin</key>
|
|
182
|
+
<string>\{</string>
|
|
183
|
+
<key>beginCaptures</key>
|
|
184
|
+
<dict>
|
|
185
|
+
<key>0</key>
|
|
186
|
+
<dict>
|
|
187
|
+
<key>name</key>
|
|
188
|
+
<string>punctuation.definition.dictionary.begin.json</string>
|
|
189
|
+
</dict>
|
|
190
|
+
</dict>
|
|
191
|
+
<key>end</key>
|
|
192
|
+
<string>\}</string>
|
|
193
|
+
<key>endCaptures</key>
|
|
194
|
+
<dict>
|
|
195
|
+
<key>0</key>
|
|
196
|
+
<dict>
|
|
197
|
+
<key>name</key>
|
|
198
|
+
<string>punctuation.definition.dictionary.end.json</string>
|
|
199
|
+
</dict>
|
|
200
|
+
</dict>
|
|
201
|
+
<key>name</key>
|
|
202
|
+
<string>meta.structure.dictionary.json</string>
|
|
203
|
+
<key>patterns</key>
|
|
204
|
+
<array>
|
|
205
|
+
<dict>
|
|
206
|
+
<key>comment</key>
|
|
207
|
+
<string>the JSON object key</string>
|
|
208
|
+
<key>include</key>
|
|
209
|
+
<string>#objectkey</string>
|
|
210
|
+
</dict>
|
|
211
|
+
<dict>
|
|
212
|
+
<key>include</key>
|
|
213
|
+
<string>#comments</string>
|
|
214
|
+
</dict>
|
|
215
|
+
<dict>
|
|
216
|
+
<key>begin</key>
|
|
217
|
+
<string>:</string>
|
|
218
|
+
<key>beginCaptures</key>
|
|
219
|
+
<dict>
|
|
220
|
+
<key>0</key>
|
|
221
|
+
<dict>
|
|
222
|
+
<key>name</key>
|
|
223
|
+
<string>punctuation.separator.dictionary.key-value.json</string>
|
|
224
|
+
</dict>
|
|
225
|
+
</dict>
|
|
226
|
+
<key>end</key>
|
|
227
|
+
<string>(,)|(?=\})</string>
|
|
228
|
+
<key>endCaptures</key>
|
|
229
|
+
<dict>
|
|
230
|
+
<key>1</key>
|
|
231
|
+
<dict>
|
|
232
|
+
<key>name</key>
|
|
233
|
+
<string>punctuation.separator.dictionary.pair.json</string>
|
|
234
|
+
</dict>
|
|
235
|
+
</dict>
|
|
236
|
+
<key>name</key>
|
|
237
|
+
<string>meta.structure.dictionary.value.json</string>
|
|
238
|
+
<key>patterns</key>
|
|
239
|
+
<array>
|
|
240
|
+
<dict>
|
|
241
|
+
<key>comment</key>
|
|
242
|
+
<string>the JSON object value</string>
|
|
243
|
+
<key>include</key>
|
|
244
|
+
<string>#value</string>
|
|
245
|
+
</dict>
|
|
246
|
+
<dict>
|
|
247
|
+
<key>match</key>
|
|
248
|
+
<string>[^\s,]</string>
|
|
249
|
+
<key>name</key>
|
|
250
|
+
<string>invalid.illegal.expected-dictionary-separator.json</string>
|
|
251
|
+
</dict>
|
|
252
|
+
</array>
|
|
253
|
+
</dict>
|
|
254
|
+
<dict>
|
|
255
|
+
<key>match</key>
|
|
256
|
+
<string>[^\s\}]</string>
|
|
257
|
+
<key>name</key>
|
|
258
|
+
<string>invalid.illegal.expected-dictionary-separator.json</string>
|
|
259
|
+
</dict>
|
|
260
|
+
</array>
|
|
261
|
+
</dict>
|
|
262
|
+
<key>string</key>
|
|
263
|
+
<dict>
|
|
264
|
+
<key>begin</key>
|
|
265
|
+
<string>"</string>
|
|
266
|
+
<key>beginCaptures</key>
|
|
267
|
+
<dict>
|
|
268
|
+
<key>0</key>
|
|
269
|
+
<dict>
|
|
270
|
+
<key>name</key>
|
|
271
|
+
<string>punctuation.definition.string.begin.json</string>
|
|
272
|
+
</dict>
|
|
273
|
+
</dict>
|
|
274
|
+
<key>end</key>
|
|
275
|
+
<string>"</string>
|
|
276
|
+
<key>endCaptures</key>
|
|
277
|
+
<dict>
|
|
278
|
+
<key>0</key>
|
|
279
|
+
<dict>
|
|
280
|
+
<key>name</key>
|
|
281
|
+
<string>punctuation.definition.string.end.json</string>
|
|
282
|
+
</dict>
|
|
283
|
+
</dict>
|
|
284
|
+
<key>name</key>
|
|
285
|
+
<string>string.quoted.double.json</string>
|
|
286
|
+
<key>patterns</key>
|
|
287
|
+
<array>
|
|
288
|
+
<dict>
|
|
289
|
+
<key>include</key>
|
|
290
|
+
<string>#stringcontent</string>
|
|
291
|
+
</dict>
|
|
292
|
+
</array>
|
|
293
|
+
</dict>
|
|
294
|
+
<key>objectkey</key>
|
|
295
|
+
<dict>
|
|
296
|
+
<key>begin</key>
|
|
297
|
+
<string>"</string>
|
|
298
|
+
<key>beginCaptures</key>
|
|
299
|
+
<dict>
|
|
300
|
+
<key>0</key>
|
|
301
|
+
<dict>
|
|
302
|
+
<key>name</key>
|
|
303
|
+
<string>punctuation.support.type.property-name.begin.json</string>
|
|
304
|
+
</dict>
|
|
305
|
+
</dict>
|
|
306
|
+
<key>end</key>
|
|
307
|
+
<string>"</string>
|
|
308
|
+
<key>endCaptures</key>
|
|
309
|
+
<dict>
|
|
310
|
+
<key>0</key>
|
|
311
|
+
<dict>
|
|
312
|
+
<key>name</key>
|
|
313
|
+
<string>punctuation.support.type.property-name.end.json</string>
|
|
314
|
+
</dict>
|
|
315
|
+
</dict>
|
|
316
|
+
<key>name</key>
|
|
317
|
+
<string>support.type.property-name.json</string>
|
|
318
|
+
<key>patterns</key>
|
|
319
|
+
<array>
|
|
320
|
+
<dict>
|
|
321
|
+
<key>include</key>
|
|
322
|
+
<string>#stringcontent</string>
|
|
323
|
+
</dict>
|
|
324
|
+
</array>
|
|
325
|
+
</dict>
|
|
326
|
+
<key>stringcontent</key>
|
|
327
|
+
<dict>
|
|
328
|
+
<key>patterns</key>
|
|
329
|
+
<array>
|
|
330
|
+
<dict>
|
|
331
|
+
<key>match</key>
|
|
332
|
+
<string>(?x) # turn on extended mode
|
|
333
|
+
\\ # a literal backslash
|
|
334
|
+
(?: # ...followed by...
|
|
335
|
+
["\\/bfnrt] # one of these characters
|
|
336
|
+
| # ...or...
|
|
337
|
+
u # a u
|
|
338
|
+
[0-9a-fA-F]{4}) # and four hex digits</string>
|
|
339
|
+
<key>name</key>
|
|
340
|
+
<string>constant.character.escape.json</string>
|
|
341
|
+
</dict>
|
|
342
|
+
<dict>
|
|
343
|
+
<key>match</key>
|
|
344
|
+
<string>\\.</string>
|
|
345
|
+
<key>name</key>
|
|
346
|
+
<string>invalid.illegal.unrecognized-string-escape.json</string>
|
|
347
|
+
</dict>
|
|
348
|
+
</array>
|
|
349
|
+
</dict>
|
|
350
|
+
<key>value</key>
|
|
351
|
+
<dict>
|
|
352
|
+
<key>patterns</key>
|
|
353
|
+
<array>
|
|
354
|
+
<dict>
|
|
355
|
+
<key>include</key>
|
|
356
|
+
<string>#constant</string>
|
|
357
|
+
</dict>
|
|
358
|
+
<dict>
|
|
359
|
+
<key>include</key>
|
|
360
|
+
<string>#number</string>
|
|
361
|
+
</dict>
|
|
362
|
+
<dict>
|
|
363
|
+
<key>include</key>
|
|
364
|
+
<string>#string</string>
|
|
365
|
+
</dict>
|
|
366
|
+
<dict>
|
|
367
|
+
<key>include</key>
|
|
368
|
+
<string>#array</string>
|
|
369
|
+
</dict>
|
|
370
|
+
<dict>
|
|
371
|
+
<key>include</key>
|
|
372
|
+
<string>#object</string>
|
|
373
|
+
</dict>
|
|
374
|
+
<dict>
|
|
375
|
+
<key>include</key>
|
|
376
|
+
<string>#comments</string>
|
|
377
|
+
</dict>
|
|
378
|
+
</array>
|
|
379
|
+
</dict>
|
|
380
|
+
</dict>
|
|
381
|
+
<key>scopeName</key>
|
|
382
|
+
<string>source.json</string>
|
|
383
|
+
<key>uuid</key>
|
|
384
|
+
<string>8f97457b-516e-48ce-83c7-08ae12fb327a</string>
|
|
385
|
+
</dict>
|
|
386
|
+
</plist>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_journeyapps_labs_reactor_mod_editor=self.webpackChunk_journeyapps_labs_reactor_mod_editor||[]).push([[87,728],{193:(e,r,n)=>{n.d(r,{F:()=>i});var t=n(1069),o=n(1184);const i={JSONContribution:"base.contributions.json"},s=new class{constructor(){this._onDidChangeSchema=new t.vl,this.schemasById={}}registerSchema(e,r){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=r,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};o.O.add(i.JSONContribution,s)},1184:(e,r,n)=>{n.d(r,{O:()=>i});var t=n(5835),o=n(8860);const i=new class{constructor(){this.data=new Map}add(e,r){t.ok(o.Kg(e)),t.ok(o.Gv(r)),t.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,r)}as(e){return this.data.get(e)||null}}},3892:(e,r,n)=>{n.r(r),n.d(r,{MarkerDecorationsService:()=>E});var t,o=n(5259);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(t||(t={})),function(e){const r="error",n="warning",t="info";e.fromValue=function(i){return i?o.Q_(r,i)?e.Error:o.Q_(n,i)||o.Q_("warn",i)?e.Warning:o.Q_(t,i)?e.Info:e.Ignore:e.Ignore},e.toString=function(o){switch(o){case e.Error:return r;case e.Warning:return n;case e.Info:return t;default:return"ignore"}}}(t||(t={}));const i=t;var s,a,c=n(5459),u=n(6640);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(s||(s={})),function(e){e.compare=function(e,r){return r-e};const r=Object.create(null);r[e.Error]=(0,c.kg)("sev.error","Error"),r[e.Warning]=(0,c.kg)("sev.warning","Warning"),r[e.Info]=(0,c.kg)("sev.info","Info"),e.toString=function(e){return r[e]||""},e.fromSeverity=function(r){switch(r){case i.Error:return e.Error;case i.Warning:return e.Warning;case i.Info:return e.Info;case i.Ignore:return e.Hint}},e.toSeverity=function(r){switch(r){case e.Error:return i.Error;case e.Warning:return i.Warning;case e.Info:return i.Info;case e.Hint:return i.Ignore}}}(s||(s={})),function(e){const r="";function n(e,n){const t=[r];return e.source?t.push(e.source.replace("¦","\\¦")):t.push(r),e.code?"string"==typeof e.code?t.push(e.code.replace("¦","\\¦")):t.push(e.code.value.replace("¦","\\¦")):t.push(r),void 0!==e.severity&&null!==e.severity?t.push(s.toString(e.severity)):t.push(r),e.message&&n?t.push(e.message.replace("¦","\\¦")):t.push(r),void 0!==e.startLineNumber&&null!==e.startLineNumber?t.push(e.startLineNumber.toString()):t.push(r),void 0!==e.startColumn&&null!==e.startColumn?t.push(e.startColumn.toString()):t.push(r),void 0!==e.endLineNumber&&null!==e.endLineNumber?t.push(e.endLineNumber.toString()):t.push(r),void 0!==e.endColumn&&null!==e.endColumn?t.push(e.endColumn.toString()):t.push(r),t.push(r),t.join("¦")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const d=(0,u.u1)("markerService");var h=n(714),l=n(1284),g=n(9996),m=n(862),f=n(7087),p=n(520),_=n(6339),v=n(1069),k=n(9772),I=n(9223),D=function(e,r){return function(n,t){r(n,t,e)}};let E=class extends h.jG{constructor(e,r){super(),this._markerService=r,this._onDidChangeMarker=this._register(new v.vl),this._markerDecorations=new I.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,r){const n=this._markerDecorations.get(e);return n&&n.getMarker(r)||null}_handleMarkerChange(e){e.forEach((e=>{const r=this._markerDecorations.get(e);r&&this._updateDecorations(r)}))}_onModelAdded(e){const r=new y(e);this._markerDecorations.set(e.uri,r),this._updateDecorations(r)}_onModelRemoved(e){const r=this._markerDecorations.get(e.uri);r&&(r.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==_.ny.inMemory&&e.uri.scheme!==_.ny.internal&&e.uri.scheme!==_.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((r=>this._markerService.remove(r,[e.uri])))}_updateDecorations(e){const r=this._markerService.read({resource:e.model.uri,take:500});e.update(r)&&this._onDidChangeMarker.fire(e.model)}};E=function(e,r,n,t){var o,i=arguments.length,s=i<3?r:null===t?t=Object.getOwnPropertyDescriptor(r,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,r,n,t);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(r,n,s):o(r,n))||s);return i>3&&s&&Object.defineProperty(r,n,s),s}([D(0,f.IModelService),D(1,d)],E);class y extends h.jG{constructor(e){super(),this.model=e,this._map=new I.cO,this._register((0,h.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:r,removed:n}=function(e,r){const n=[],t=[];for(const t of e)r.has(t)||n.push(t);for(const n of r)e.has(n)||t.push(n);return{removed:n,added:t}}(new Set(this._map.keys()),new Set(e));if(0===r.length&&0===n.length)return!1;const t=n.map((e=>this._map.get(e))),o=r.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),i=this.model.deltaDecorations(t,o);for(const e of n)this._map.delete(e);for(let e=0;e<i.length;e++)this._map.set(r[e],i[e]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,r){let n=p.Q.lift(r);if(r.severity!==s.Hint||this._hasMarkerTag(r,1)||this._hasMarkerTag(r,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const r=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===r||n.endColumn>=r)return n;const t=e.getWordAtPosition(n.getStartPosition());t&&(n=new p.Q(n.startLineNumber,t.startColumn,n.endLineNumber,t.endColumn))}else if(r.endColumn===Number.MAX_VALUE&&1===r.startColumn&&n.startLineNumber===n.endLineNumber){const t=e.getLineFirstNonWhitespaceColumn(r.startLineNumber);t<n.endColumn&&(n=new p.Q(n.startLineNumber,t,n.endLineNumber,n.endColumn),r.startColumn=t)}return n}_createDecorationOption(e){let r,n,t,o,i;switch(e.severity){case s.Hint:r=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",t=0;break;case s.Info:r="squiggly-info",n=(0,g.Yf)(m.AQ),t=10,i={color:(0,g.Yf)(k.KoI),position:1};break;case s.Warning:r="squiggly-warning",n=(0,g.Yf)(m.aZ),t=20,i={color:(0,g.Yf)(k.uMG),position:1};break;case s.Error:default:r="squiggly-error",n=(0,g.Yf)(m.yI),t=30,i={color:(0,g.Yf)(k.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:r,showIfCollapsed:!0,overviewRuler:{color:n,position:l.A5.Right},minimap:i,zIndex:t,inlineClassName:o}}_hasMarkerTag(e,r){return!!e.tags&&e.tags.indexOf(r)>=0}}},6640:(e,r,n)=>{var t;n.d(r,{_Y:()=>o,u1:()=>i}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(r){return r[e.DI_DEPENDENCIES]||[]}}(t||(t={}));const o=i("instantiationService");function i(e){if(t.serviceIds.has(e))return t.serviceIds.get(e);const r=function(e,n,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,r,n){r[t.DI_TARGET]===r?r[t.DI_DEPENDENCIES].push({id:e,index:n}):(r[t.DI_DEPENDENCIES]=[{id:e,index:n}],r[t.DI_TARGET]=r)}(r,e,o)};return r.toString=()=>e,t.serviceIds.set(e,r),r}},7087:(e,r,n)=>{n.r(r),n.d(r,{IModelService:()=>t});const t=(0,n(6640).u1)("modelService")}}]);
|