import { m as editor_api_exports } from "./editor.api-erJ7GEVs.js";
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (e, o, s, c) => {
	if (o && typeof o == "object" || typeof o == "function") for (let l of __getOwnPropNames(o)) !__hasOwnProp.call(e, l) && l !== s && __defProp(e, l, {
		get: () => o[l],
		enumerable: !(c = __getOwnPropDesc(o, l)) || c.enumerable
	});
	return e;
}, __reExport = (e, i, a) => (__copyProps(e, i, "default"), a && __copyProps(a, i, "default")), monaco_editor_core_exports = {};
__reExport(monaco_editor_core_exports, editor_api_exports);
var conf = {
	comments: { blockComment: ["<!--", "-->"] },
	brackets: [["<", ">"]],
	autoClosingPairs: [
		{
			open: "<",
			close: ">"
		},
		{
			open: "'",
			close: "'"
		},
		{
			open: "\"",
			close: "\""
		}
	],
	surroundingPairs: [
		{
			open: "<",
			close: ">"
		},
		{
			open: "'",
			close: "'"
		},
		{
			open: "\"",
			close: "\""
		}
	],
	onEnterRules: [{
		beforeText: RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
		afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
		action: { indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent }
	}, {
		beforeText: RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
		action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
	}]
}, language = {
	defaultToken: "",
	tokenPostfix: ".xml",
	ignoreCase: !0,
	qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
	tokenizer: {
		root: [
			[/[^<&]+/, ""],
			{ include: "@whitespace" },
			[/(<)(@qualifiedName)/, [{ token: "delimiter" }, {
				token: "tag",
				next: "@tag"
			}]],
			[/(<\/)(@qualifiedName)(\s*)(>)/, [
				{ token: "delimiter" },
				{ token: "tag" },
				"",
				{ token: "delimiter" }
			]],
			[/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, {
				token: "metatag",
				next: "@tag"
			}]],
			[/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, {
				token: "metatag",
				next: "@tag"
			}]],
			[/<\!\[CDATA\[/, {
				token: "delimiter.cdata",
				next: "@cdata"
			}],
			[/&\w+;/, "string.escape"]
		],
		cdata: [
			[/[^\]]+/, ""],
			[/\]\]>/, {
				token: "delimiter.cdata",
				next: "@pop"
			}],
			[/\]/, ""]
		],
		tag: [
			[/[ \t\r\n]+/, ""],
			[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, [
				"attribute.name",
				"",
				"attribute.value"
			]],
			[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/, [
				"attribute.name",
				"",
				"attribute.value"
			]],
			[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, [
				"attribute.name",
				"",
				"attribute.value"
			]],
			[/@qualifiedName/, "attribute.name"],
			[/\?>/, {
				token: "delimiter",
				next: "@pop"
			}],
			[/(\/)(>)/, [{ token: "tag" }, {
				token: "delimiter",
				next: "@pop"
			}]],
			[/>/, {
				token: "delimiter",
				next: "@pop"
			}]
		],
		whitespace: [[/[ \t\r\n]+/, ""], [/<!--/, {
			token: "comment",
			next: "@comment"
		}]],
		comment: [
			[/[^<\-]+/, "comment.content"],
			[/-->/, {
				token: "comment",
				next: "@pop"
			}],
			[/<!--/, "comment.content.invalid"],
			[/[<\-]/, "comment.content"]
		]
	}
};
export { conf, language };
