import{S as e}from"./TextViewer-a959e5a3.js";import"./useSetting-bf1f702c.js";import"./index-25eb6331.js";import"./file-5139c625.js";import"./request-14d7fed5.js";import"./index-3bef6acb.js";import"./path-8ad564a3.js";import"./base-00eb0fe9.js";/* empty css                */import"./dialog-66decf59.js";import"./index-db57f3ab.js";import"./vnode-761469ca.js";import"./scroll-044a6ede.js";import"./button-c2afb424.js";import"./overlay-25bb32bf.js";import"./refs-e3c707bd.js";/* empty css                     *//* empty css               *//* empty css                  */import"./dropdown-item-13559a59.js";import"./index-51e1cffc.js";import"./index-b7ba0c9a.js";import"./dropdown-8894c5a8.js";import"./index-0746525e.js";import"./_initCloneObject-55db8b76.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./directive-77ef4fb1.js";import"./index-98eb1092.js";import"./validator-551b2058.js";import"./index-02f3ff91.js";import"./index-1c392315.js";import"./index-73ac7f16.js";import"./strings-59e484a0.js";import"./debounce-8de7dc13.js";import"./index-272fcf3f.js";import"./useFileUpload-914f2d00.js";import"./common-9cc21621.js";var p=["true","false","on","off","yes","no"],l=new RegExp("\\b(("+p.join(")|(")+"))$","i");const t={name:"yaml",token:function(r,i){var n=r.peek(),o=i.escaped;if(i.escaped=!1,n=="#"&&(r.pos==0||/\s/.test(r.string.charAt(r.pos-1))))return r.skipToEnd(),"comment";if(r.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&r.indentation()>i.keyCol)return r.skipToEnd(),"string";if(i.literal&&(i.literal=!1),r.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,r.match("---")||r.match("..."))return"def";if(r.match(/^\s*-\s+/))return"meta"}if(r.match(/^(\{|\}|\[|\])/))return n=="{"?i.inlinePairs++:n=="}"?i.inlinePairs--:n=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!o&&n==",")return r.next(),"meta";if(i.inlinePairs>0&&!o&&n==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,r.next(),"meta";if(i.pairStart){if(r.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(r.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(i.inlinePairs==0&&r.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&r.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(r.match(l))return"keyword"}return!i.pair&&r.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=r.indentation(),"atom"):i.pair&&r.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=n=="\\",r.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}},N=()=>e.define(t);export{N as default};
