import{A as O}from"./index.f4d41e67.entry.js";function j(f,d){return d.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(c){if(c!=="default"&&!(c in f)){var l=Object.getOwnPropertyDescriptor(i,c);Object.defineProperty(f,c,l.get?l:{enumerable:!0,get:function(){return i[c]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(f,d){(function(i){i(O.exports)})(function(i){i.defineMode("tiddlywiki",function(){var c={},l={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},a=/[\w_\-]/i,p=/^\-\-\-\-+$/,w=/^\/\*\*\*$/,b=/^\*\*\*\/$/,y=/^<<<$/,v=/^\/\/\{\{\{$/,g=/^\/\/\}\}\}$/,x=/^<!--\{\{\{-->$/,m=/^<!--\}\}\}-->$/,S=/^\{\{\{$/,$=/^\}\}\}$/,_=/.*?\}\}\}/;function u(e,r,n){return r.tokenize=n,n(e,r)}function o(e,r){var n=e.sol(),t=e.peek();if(r.block=!1,n&&/[<\/\*{}\-]/.test(t)){if(e.match(S))return r.block=!0,u(e,r,k);if(e.match(y))return"quote";if(e.match(w)||e.match(b)||e.match(v)||e.match(g)||e.match(x)||e.match(m))return"comment";if(e.match(p))return"hr"}if(e.next(),n&&/[\/\*!#;:>|]/.test(t)){if(t=="!")return e.skipToEnd(),"header";if(t=="*")return e.eatWhile("*"),"comment";if(t=="#")return e.eatWhile("#"),"comment";if(t==";")return e.eatWhile(";"),"comment";if(t==":")return e.eatWhile(":"),"comment";if(t==">")return e.eatWhile(">"),"quote";if(t=="|")return"header"}if(t=="{"&&e.match("{{"))return u(e,r,k);if(/[hf]/i.test(t)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if(t=='"')return"string";if(t=="~"||/[\[\]]/.test(t)&&e.match(t))return"brace";if(t=="@")return e.eatWhile(a),"link";if(/\d/.test(t))return e.eatWhile(/\d/),"number";if(t=="/"){if(e.eat("%"))return u(e,r,z);if(e.eat("/"))return u(e,r,C)}if(t=="_"&&e.eat("_"))return u(e,r,T);if(t=="-"&&e.eat("-")){if(e.peek()!=" ")return u(e,r,W);if(e.peek()==" ")return"brace"}return t=="'"&&e.eat("'")?u(e,r,E):t=="<"&&e.eat("<")?u(e,r,A):(e.eatWhile(/[\w\$_]/),c.propertyIsEnumerable(e.current())?"keyword":null)}function z(e,r){for(var n=!1,t;t=e.next();){if(t=="/"&&n){r.tokenize=o;break}n=t=="%"}return"comment"}function E(e,r){for(var n=!1,t;t=e.next();){if(t=="'"&&n){r.tokenize=o;break}n=t=="'"}return"strong"}function k(e,r){var n=r.block;return n&&e.current()?"comment":!n&&e.match(_)||n&&e.sol()&&e.match($)?(r.tokenize=o,"comment"):(e.next(),"comment")}function C(e,r){for(var n=!1,t;t=e.next();){if(t=="/"&&n){r.tokenize=o;break}n=t=="/"}return"em"}function T(e,r){for(var n=!1,t;t=e.next();){if(t=="_"&&n){r.tokenize=o;break}n=t=="_"}return"underlined"}function W(e,r){for(var n=!1,t;t=e.next();){if(t=="-"&&n){r.tokenize=o;break}n=t=="-"}return"strikethrough"}function A(e,r){if(e.current()=="<<")return"macro";var n=e.next();return n?n==">"&&e.peek()==">"?(e.next(),r.tokenize=o,"macro"):(e.eatWhile(/[\w\$_]/),l.propertyIsEnumerable(e.current())?"keyword":null):(r.tokenize=o,null)}return{startState:function(){return{tokenize:o}},token:function(e,r){if(e.eatSpace())return null;var n=r.tokenize(e,r);return n}}}),i.defineMIME("text/x-tiddlywiki","tiddlywiki")})})();var B=h.exports,I=j({__proto__:null,default:B},[h.exports]);export{I as t};
