"use strict";var e=require("../../../@codemirror/view/dist/index.js"),t=require("../../../@codemirror/state/dist/index.js"),i=require("../../../@codemirror/commands/dist/index.js"),r=require("../../../@codemirror/search/dist/index.js"),a=require("../../../@codemirror/autocomplete/dist/index.js"),o=require("../../../@codemirror/language/dist/index.js"),s=require("../../../@codemirror/lint/dist/index.js");exports.basicSetup=function(c){void 0===c&&(c={});var{crosshairCursor:h=!1}=c,n=[];!1!==c.closeBracketsKeymap&&(n=n.concat(a.closeBracketsKeymap)),!1!==c.defaultKeymap&&(n=n.concat(i.defaultKeymap)),!1!==c.searchKeymap&&(n=n.concat(r.searchKeymap)),!1!==c.historyKeymap&&(n=n.concat(i.historyKeymap)),!1!==c.foldKeymap&&(n=n.concat(o.foldKeymap)),!1!==c.completionKeymap&&(n=n.concat(a.completionKeymap)),!1!==c.lintKeymap&&(n=n.concat(s.lintKeymap));var l=[];return!1!==c.lineNumbers&&l.push(e.lineNumbers()),!1!==c.highlightActiveLineGutter&&l.push(e.highlightActiveLineGutter()),!1!==c.highlightSpecialChars&&l.push(e.highlightSpecialChars()),!1!==c.history&&l.push(i.history()),!1!==c.foldGutter&&l.push(o.foldGutter()),!1!==c.drawSelection&&l.push(e.drawSelection()),!1!==c.dropCursor&&l.push(e.dropCursor()),!1!==c.allowMultipleSelections&&l.push(t.EditorState.allowMultipleSelections.of(!0)),!1!==c.indentOnInput&&l.push(o.indentOnInput()),!1!==c.syntaxHighlighting&&l.push(o.syntaxHighlighting(o.defaultHighlightStyle,{fallback:!0})),!1!==c.bracketMatching&&l.push(o.bracketMatching()),!1!==c.closeBrackets&&l.push(a.closeBrackets()),!1!==c.autocompletion&&l.push(a.autocompletion()),!1!==c.rectangularSelection&&l.push(e.rectangularSelection()),!1!==h&&l.push(e.crosshairCursor()),!1!==c.highlightActiveLine&&l.push(e.highlightActiveLine()),!1!==c.highlightSelectionMatches&&l.push(r.highlightSelectionMatches()),c.tabSize&&"number"==typeof c.tabSize&&l.push(o.indentUnit.of(" ".repeat(c.tabSize))),l.concat([e.keymap.of(n.flat())]).filter(Boolean)};
//# sourceMappingURL=index.js.map
