"use strict";(self.webpackChunksc_note_comment=self.webpackChunksc_note_comment||[]).push([[4382],{4382(B,c,l){l.d(c,{tiddlyWiki:()=>E});var f={},k={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},h=/[\w_\-]/i,d=/^\-\-\-\-+$/,a=/^\/\*\*\*$/,p=/^\*\*\*\/$/,w=/^<<<$/,b=/^\/\/\{\{\{$/,_=/^\/\/\}\}\}$/,v=/^<!--\{\{\{-->$/,y=/^<!--\}\}\}-->$/,S=/^\{\{\{$/,m=/^\}\}\}$/,C=/.*?\}\}\}/;function u(e,t,r){return t.tokenize=r,r(e,t)}function i(e,t){var r=e.sol(),n=e.peek();if(t.block=!1,r&&/[<\/\*{}\-]/.test(n)){if(e.match(S))return t.block=!0,u(e,t,o);if(e.match(w))return"quote";if(e.match(a)||e.match(p)||e.match(b)||e.match(_)||e.match(v)||e.match(y))return"comment";if(e.match(d))return"contentSeparator"}if(e.next(),r&&/[\/\*!#;:>|]/.test(n)){if("!"==n)return e.skipToEnd(),"header";if("*"==n)return e.eatWhile("*"),"comment";if("#"==n)return e.eatWhile("#"),"comment";if(";"==n)return e.eatWhile(";"),"comment";if(":"==n)return e.eatWhile(":"),"comment";if(">"==n)return e.eatWhile(">"),"quote";if("|"==n)return"header"}if("{"==n&&e.match("{{"))return u(e,t,o);if(/[hf]/i.test(n)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==n)return"string";if("~"==n||/[\[\]]/.test(n)&&e.match(n))return"brace";if("@"==n)return e.eatWhile(h),"link";if(/\d/.test(n))return e.eatWhile(/\d/),"number";if("/"==n){if(e.eat("%"))return u(e,t,$);if(e.eat("/"))return u(e,t,z)}if("_"==n&&e.eat("_"))return u(e,t,g);if("-"==n&&e.eat("-")){if(" "!=e.peek())return u(e,t,x);if(" "==e.peek())return"brace"}return"'"==n&&e.eat("'")?u(e,t,W):"<"==n&&e.eat("<")?u(e,t,T):(e.eatWhile(/[\w\$_]/),f.propertyIsEnumerable(e.current())?"keyword":null)}function $(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=i;break}r="%"==n}return"comment"}function W(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=i;break}r="'"==n}return"strong"}function o(e,t){var r=t.block;return r&&e.current()?"comment":!r&&e.match(C)||r&&e.sol()&&e.match(m)?(t.tokenize=i,"comment"):(e.next(),"comment")}function z(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=i;break}r="/"==n}return"emphasis"}function g(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=i;break}r="_"==n}return"link"}function x(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=i;break}r="-"==n}return"deleted"}function T(e,t){if("<<"==e.current())return"meta";var r=e.next();return r?">"==r&&">"==e.peek()?(e.next(),t.tokenize=i,"meta"):(e.eatWhile(/[\w\$_]/),k.propertyIsEnumerable(e.current())?"keyword":null):(t.tokenize=i,null)}const E={name:"tiddlywiki",startState:function(){return{tokenize:i}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}}]);