├── .github └── workflows │ └── notify.yml ├── .gitignore ├── LICENSE ├── README.md ├── app.js ├── favicon.ico ├── icon.png ├── index.html ├── style.css ├── touch-icon.png └── vendor ├── balloon.css ├── eff-short-passphrase.js ├── highlight.min.css ├── highlight.min.js ├── jwt-decode.js ├── marked.min.js ├── mousetrap.min.js ├── prettier-parser-html.js ├── prettier.js └── write-good.dist.js /.github/workflows/notify.yml: -------------------------------------------------------------------------------- 1 | name: Trigger rebuild of parent repo 2 | on: 3 | push: 4 | branches: [ main ] 5 | 6 | workflow_dispatch: 7 | 8 | jobs: 9 | notify: 10 | runs-on: ubuntu-20.04 11 | container: alpine/httpie 12 | steps: 13 | - name: Notify parent repo 14 | run: http post https://api.github.com/repos/sesh/brntn.me/dispatches "Authorization:token ${{ secrets.NOTIFY_TOKEN }}" event_type=build --ignore-stdin 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2017 Brenton Cleeland 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 4 | 5 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [`scratchpad`](https://sesh.github.io/scratchpad/) is a place for temporary notes and quick text modifications. 2 | The notes are saved in your browser using local storage so they should be there when you come back. 3 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | let removeError = () => { 2 | let el = document.querySelector('#errors'); 3 | el.parentNode.removeChild(el); 4 | } 5 | 6 | let displayError = (message) => { 7 | let el = document.createElement('div'); 8 | el.id = "errors"; 9 | el.innerText = message; 10 | el.onclick = removeError; 11 | document.querySelector('body').appendChild(el); 12 | }; 13 | 14 | let getLineNumber = (textarea) => { 15 | return textarea.value.substr(0, textarea.selectionStart).split("\n").length - 1; 16 | }; 17 | 18 | let replaceSelection = (textarea, value) => { 19 | var pos = textarea.selectionStart; 20 | textarea.value = textarea.value.slice(0, pos) + value + textarea.value.slice(textarea.selectionEnd); 21 | textarea.focus(); 22 | textarea.setSelectionRange(pos + value.length, pos + value.length); 23 | } 24 | 25 | let loadFromLocalStorage = (scratchpad) => { 26 | // ensure we keep the same night / day mode 27 | if (localStorage.getItem("mode") == "night") { 28 | document.getElementsByTagName('body')[0].classList = 'night'; 29 | } 30 | 31 | // load the scratchpad content if it's there 32 | if (localStorage.getItem("scratchpad")) { 33 | scratchpad.value = localStorage.getItem("scratchpad"); 34 | } 35 | } 36 | 37 | let saveToLocalStorage = (scratchpad) => { 38 | localStorage.setItem("scratchpad", scratchpad.value); 39 | 40 | if (scratchpad.onsave) { 41 | scratchpad.onsave(scratchpad); 42 | } 43 | } 44 | 45 | let indentNewline = (scratchpad) => { 46 | let lines = scratchpad.value.split("\n"); 47 | let current_line_number = getLineNumber(scratchpad) 48 | let prev_line = lines[current_line_number - 1]; 49 | 50 | if (prev_line.trim().length > 0) { 51 | let indent = prev_line.length - prev_line.trimLeft().length; 52 | let pos = scratchpad.selectionStart; 53 | scratchpad.value = scratchpad.value.slice(0, pos) + " ".repeat(indent) + scratchpad.value.slice(pos); 54 | scratchpad.setSelectionRange(pos + indent, pos + indent); 55 | } 56 | } 57 | 58 | let continueListOnNewline = (scratchpad) => { 59 | let lines = scratchpad.value.split("\n"); 60 | let current_line_number = getLineNumber(scratchpad) 61 | 62 | let prev_line = lines[current_line_number - 1]; 63 | prev_line = prev_line.trimLeft(); 64 | 65 | if (["-", "*"].indexOf(prev_line[0]) >= 0) { 66 | let pos = scratchpad.selectionStart; 67 | scratchpad.value = scratchpad.value.slice(0, pos) + prev_line[0] + " " + scratchpad.value.slice(pos); 68 | scratchpad.setSelectionRange(pos + 2, pos + 2); 69 | } 70 | } 71 | 72 | function shuffle(array) { 73 | var currentIndex = array.length, temporaryValue, randomIndex; 74 | 75 | // While there remain elements to shuffle... 76 | while (0 !== currentIndex) { 77 | 78 | // Pick a remaining element... 79 | randomIndex = Math.floor(Math.random() * currentIndex); 80 | currentIndex -= 1; 81 | 82 | // And swap it with the current element. 83 | temporaryValue = array[currentIndex]; 84 | array[currentIndex] = array[randomIndex]; 85 | array[randomIndex] = temporaryValue; 86 | } 87 | 88 | return array; 89 | } 90 | 91 | let sortLines = (scratchpad) => { 92 | let lines = scratchpad.value.split("\n"); 93 | lines.sort() 94 | scratchpad.value = lines.join("\n"); 95 | } 96 | 97 | let shuffleLines = (scratchpad) => { 98 | let lines = scratchpad.value.split("\n"); 99 | lines = shuffle(lines); 100 | scratchpad.value = lines.join("\n"); 101 | } 102 | 103 | let base64encode = (textarea) => { 104 | textarea.value = btoa(textarea.value); 105 | }; 106 | 107 | let base64decode = (textarea) => { 108 | textarea.value = atob(textarea.value); 109 | } 110 | 111 | let jq = (scratchpad) => { 112 | try { 113 | var formatted = JSON.stringify(JSON.parse(scratchpad.value), null, 2); 114 | scratchpad.value = formatted; 115 | } catch (e) { 116 | displayError(e.message); 117 | } 118 | } 119 | 120 | let htmlFormat = (scratchpad) => { 121 | var formatted = prettier.format(scratchpad.value, {parser: 'html', plugins: prettierPlugins}); 122 | scratchpad.value = formatted; 123 | } 124 | 125 | let jwt = (scratchpad) => { 126 | try { 127 | var token = jwt_decode(scratchpad.value); 128 | var decodedHeader = jwt_decode(scratchpad.value, { header: true }); 129 | scratchpad.value = JSON.stringify(decodedHeader, null, 2) + "\n" + JSON.stringify(token, null, 2); 130 | } catch (e) { 131 | displayError(e.message); 132 | } 133 | } 134 | 135 | let uuid = (scratchpad) => { 136 | var uuid = ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => 137 | (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) 138 | ); 139 | 140 | replaceSelection(scratchpad, uuid); 141 | } 142 | 143 | let dt = (scratchpad) => { 144 | replaceSelection(scratchpad, new Date().toISOString()); 145 | } 146 | 147 | let passphrase = (scratchpad) => { 148 | replaceSelection(scratchpad, generatePassphrase()); 149 | } 150 | 151 | let pw = (scratchpad) => { 152 | var passwordCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890%+-./:=@_" 153 | var result = ""; 154 | while (result.length < 12) { 155 | result += passwordCharacters[Math.floor(Math.random() * passwordCharacters.length)]; 156 | } 157 | replaceSelection(scratchpad, result); 158 | } 159 | 160 | let download = (scratchpad) => { 161 | var link = "data:application/octet-stream;charset=utf-16le;base64," + btoa(scratchpad.value); 162 | var el = document.createElement('a'); 163 | el.setAttribute("href", link); 164 | el.setAttribute("download", new Date().toISOString().replaceAll(":", "") + "-scratchpad.txt"); 165 | el.innerText = "dl"; 166 | el.style.display = "none"; 167 | document.body.appendChild(el); 168 | el.click(); 169 | document.body.removeChild(el); 170 | } 171 | 172 | let darkMode = () => { 173 | let body = document.querySelector('body'); 174 | 175 | if (body.classList.contains('night')) { 176 | body.classList = 'day'; 177 | localStorage.setItem("mode", "day"); 178 | } else { 179 | body.classList = 'night'; 180 | localStorage.setItem("mode", "night"); 181 | } 182 | } 183 | 184 | let indentCurrentLine = (scratchpad) => { 185 | let pos = scratchpad.selectionStart; 186 | let lines = scratchpad.value.split("\n"); 187 | let current_line_number = getLineNumber(scratchpad); 188 | 189 | let line = lines[current_line_number]; 190 | line = " " + line; 191 | lines[current_line_number] = line; 192 | 193 | scratchpad.value = lines.join('\n'); 194 | scratchpad.setSelectionRange(pos + 2, pos + 2); 195 | } 196 | 197 | let unindentCurrentLine = (scratchpad) => { 198 | let pos = scratchpad.selectionStart; 199 | let lines = scratchpad.value.split("\n"); 200 | let current_line_number = getLineNumber(scratchpad); 201 | 202 | let line = lines[current_line_number]; 203 | let line_length = line.length; 204 | 205 | // remove up to two spaces from the current line 206 | line = line[0] === " " ? line.substring(1) : line; 207 | line = line[0] === " " ? line.substring(1) : line 208 | let length_change = line_length - line.length; 209 | lines[current_line_number] = line; 210 | 211 | scratchpad.value = lines.join('\n'); 212 | scratchpad.setSelectionRange(pos - length_change, pos - length_change); 213 | } 214 | 215 | let handleTab = (e, scratchpad) => { 216 | let pos = scratchpad.selectionStart; 217 | 218 | if (!e.shiftKey) { 219 | scratchpad.value = scratchpad.value.slice(0, pos) + " " + scratchpad.value.slice(pos); 220 | scratchpad.setSelectionRange(pos + 2, pos + 2); 221 | } else { 222 | unindentCurrentLine(scratchpad); 223 | } 224 | } 225 | 226 | let handleKeyUp = (e, scratchpad) => { 227 | if (e.key === "Enter") { 228 | indentNewline(scratchpad); 229 | !e.shiftKey && continueListOnNewline(scratchpad); 230 | } 231 | saveToLocalStorage(scratchpad); 232 | } 233 | 234 | let handleKeyDown = (e, scratchpad) => { 235 | if (e.key === "Tab") { 236 | e.preventDefault(); 237 | handleTab(e, scratchpad); 238 | } 239 | } 240 | 241 | let updateMarkdown = (scratchpad) => { 242 | let el = document.querySelector('#markdownOutput'); 243 | let content = scratchpad.value; 244 | el.innerHTML = marked(content, { 245 | highlight: (code) => { 246 | return hljs.highlightAuto(code).value; 247 | } 248 | }); 249 | } 250 | 251 | let copyFormatted = (scratchpad) => { 252 | function listener(e) { 253 | let el = document.createElement('div'); 254 | el.classList = 'formatted-md'; 255 | 256 | let content = scratchpad.value; 257 | el.innerHTML = marked(content, { 258 | highlight: (code) => { 259 | return hljs.highlightAuto(code).value; 260 | } 261 | }); 262 | e.clipboardData.setData("text/html", el.innerHTML); 263 | e.clipboardData.setData("text/plain", el.innerHTML); 264 | e.preventDefault(); 265 | } 266 | 267 | document.addEventListener("copy", listener); 268 | document.execCommand("copy"); 269 | document.removeEventListener("copy", listener); 270 | } 271 | 272 | let toggleMarkdown = (scratchpad) => { 273 | let el = document.querySelector('#markdownOutput'); 274 | 275 | if (!el) { 276 | openDismissablePanel('markdownOutput'); 277 | updateMarkdown(scratchpad); 278 | scratchpad.onsave = updateMarkdown; 279 | } else { 280 | dismissDismissablePanels(); 281 | scratchpad.onsave = null; 282 | } 283 | } 284 | 285 | let updateWriteGood = (scratchpad) => { 286 | let tempEl = document.createElement('div'); 287 | tempEl.innerText = scratchpad.value; 288 | 289 | let html = tempEl.innerHTML; 290 | let results = writeGood(html); 291 | 292 | for (let r of results.reverse()) { 293 | console.log(r); 294 | html = html.substring(0, r.index) + 295 | "" + 296 | html.substring(r.index, r.index + r.offset) + 297 | "" + html.substring(r.index + r.offset); 298 | } 299 | 300 | let el = document.querySelector('#writeGoodOutput'); 301 | el.innerHTML = html; 302 | } 303 | 304 | let toggleWriteGood = (scratchpad) => { 305 | let el = document.querySelector('#writeGoodOutput'); 306 | 307 | if (!el) { 308 | openDismissablePanel('writeGoodOutput') 309 | updateWriteGood(scratchpad); 310 | scratchpad.onsave = updateWriteGood; 311 | } else { 312 | dismissDismissablePanels(); 313 | scratchpad.onsave = null; 314 | } 315 | } 316 | 317 | let toggleSidebar = (scratchpad) => { 318 | let sidebarEl = document.querySelector("#sidebar"); 319 | sidebarEl.style.display = sidebarEl.style.display == 'block' ? 'none' : 'block'; 320 | } 321 | 322 | let dismissDismissablePanels = () => { 323 | let els = document.getElementsByClassName('dismissable'); 324 | 325 | for (let el of els) { 326 | el.parentNode.removeChild(el); 327 | } 328 | }; 329 | 330 | let openDismissablePanel = (id) => { 331 | dismissDismissablePanels(); 332 | 333 | let el = document.createElement('div'); 334 | el.classList = 'dismissable'; 335 | 336 | let closeEl = document.createElement('span'); 337 | closeEl.innerHTML = 'x'; 338 | closeEl.classList = 'close'; 339 | closeEl.onclick = dismissDismissablePanels; 340 | el.appendChild(closeEl); 341 | 342 | let contentEl = document.createElement('div'); 343 | contentEl.id = id; 344 | el.appendChild(contentEl); 345 | 346 | document.querySelector('main').appendChild(el); 347 | }; 348 | 349 | (function() { 350 | let scratchpad = document.querySelector('#scratchpad'); 351 | loadFromLocalStorage(scratchpad); 352 | 353 | scratchpad.onkeydown = (e) => handleKeyDown(e, scratchpad); 354 | scratchpad.onkeyup = (e) => handleKeyUp(e, scratchpad); 355 | 356 | // setup actions 357 | // other ideas: 358 | // - kroki.io chart (with preview) 359 | // - regex matches 360 | 361 | const tools = [ 362 | { 363 | "name": "base64-decode", 364 | "action": base64decode, 365 | }, 366 | { 367 | "name": "base64-encode", 368 | "action": base64encode, 369 | }, 370 | { 371 | "name": "copy-formatted", 372 | "action": copyFormatted, 373 | }, 374 | { 375 | "name": "dark", 376 | "action": darkMode, 377 | "footer": true, 378 | }, 379 | { 380 | "name": "dl", 381 | "action": download, 382 | "footer": true, 383 | }, 384 | { 385 | "name": "dt", 386 | "action": dt, 387 | "footer": true, 388 | }, 389 | { 390 | "name": "html-format", 391 | "action": htmlFormat, 392 | "footer": true, 393 | }, 394 | { 395 | "name": "jq", 396 | "action": jq, 397 | "description": "Format the current scratchpad value as JSON", 398 | "footer": true, 399 | }, 400 | { 401 | "name": "jwt", 402 | "action": jwt, 403 | "footer": true, 404 | }, 405 | { 406 | "name": "md", 407 | "action": toggleMarkdown, 408 | "footer": true, 409 | }, 410 | { 411 | "name": "passphrase", 412 | "action": passphrase, 413 | "description": "Generate a passphrase using the EFF short word list" 414 | }, 415 | { 416 | "name": "pw", 417 | "action": pw, 418 | "description": "Generate a random 12 character password", 419 | "footer": true, 420 | }, 421 | { 422 | "name": "shuffle", 423 | "action": shuffleLines, 424 | "description": "Sort all lines in the scratchpad alphabetically" 425 | }, 426 | { 427 | "name": "sidebar", 428 | "action": toggleSidebar, 429 | "footer": true, 430 | }, 431 | { 432 | "name": "sort", 433 | "action": sortLines, 434 | "description": "Sort all lines in the scratchpad alphabetically" 435 | }, 436 | { 437 | "name": "uuid", 438 | "action": uuid, 439 | "footer": true, 440 | }, 441 | { 442 | "name": "write-good", 443 | "action": toggleWriteGood, 444 | }, 445 | ]; 446 | 447 | let toolsEl = document.querySelector("#tools"); 448 | let sidebarEl = document.querySelector("#sidebar"); 449 | tools.forEach(tool => { 450 | if (tool.footer) { 451 | let a = document.createElement('a'); 452 | a.innerText = "~" + tool.name + " "; 453 | a.onclick = (e) => { 454 | e.preventDefault(); 455 | tool.action(scratchpad); 456 | saveToLocalStorage(scratchpad); 457 | }; 458 | a.href = "#"; 459 | toolsEl.appendChild(a); 460 | } 461 | 462 | let a = document.createElement('a'); 463 | a.innerText = "~" + tool.name; 464 | a.onclick = (e) => { 465 | e.preventDefault(); 466 | tool.action(scratchpad); 467 | saveToLocalStorage(scratchpad); 468 | }; 469 | a.href = "#"; 470 | sidebarEl.appendChild(a); 471 | }); 472 | 473 | toolsEl.appendChild(document.createElement("br")); 474 | toolsEl.appendChild(document.createTextNode("(sidebar: cmd+shift+k)")); 475 | 476 | scratchpad.focus(); 477 | 478 | Mousetrap.bind('mod+shift+k', function(e) { 479 | toggleSidebar(); 480 | }); 481 | 482 | Mousetrap.bind('mod+]', function (e) { 483 | indentCurrentLine(scratchpad); 484 | }); 485 | 486 | Mousetrap.bind('mod+[', function (e) { 487 | unindentCurrentLine(scratchpad); 488 | }); 489 | })() 490 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sesh/scratchpad/1f9ff03c13d674a98172eadc9bf67bee3d9d25f2/favicon.ico -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sesh/scratchpad/1f9ff03c13d674a98172eadc9bf67bee3d9d25f2/icon.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Scratchpad 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 |
27 | 28 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | body, 2 | html { 3 | margin: 0; 4 | padding: 0; 5 | font-family: Consolas, 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace; 6 | font-size: 1em; 7 | line-height: 1.4em; 8 | } 9 | 10 | body.night { 11 | background-color: #002b36; 12 | color: #eee8d5; 13 | } 14 | 15 | body.day { 16 | background-color: #eee8d5; 17 | color: #002b36; 18 | } 19 | 20 | #errors { 21 | position: fixed; 22 | top: 10px; 23 | right: 10px; 24 | width: 40%; 25 | min-width: 33em; 26 | padding: 6px; 27 | background-color: #cb4b16; 28 | color: white; 29 | } 30 | 31 | a, 32 | a:visited { 33 | color: #268bd2; 34 | text-decoration: none; 35 | } 36 | 37 | a:hover { 38 | font-weight: bold; 39 | transition-duration: 0.1s; 40 | } 41 | 42 | main, 43 | footer { 44 | display: flex; 45 | justify-content: center; 46 | width: 96%; 47 | max-width: 74em; 48 | margin: 0 auto; 49 | } 50 | 51 | main>* { 52 | flex: 1 1 0; 53 | height: 90vh; 54 | overflow: auto; 55 | box-sizing: border-box; 56 | } 57 | 58 | footer { 59 | height: 6vh; 60 | justify-content: space-between; 61 | } 62 | 63 | textarea { 64 | font-family: inherit; 65 | font-size: inherit; 66 | line-height: inherit; 67 | border: 0; 68 | padding: 2em; 69 | outline: none; 70 | background-color: inherit; 71 | color: inherit; 72 | } 73 | 74 | textarea.placeholder { 75 | opacity: 0.7; 76 | } 77 | 78 | .dismissable { 79 | position: relative; 80 | padding: 2em; 81 | } 82 | 83 | .dismissable .close { 84 | position: absolute; 85 | top: 5px; 86 | right: 5px; 87 | cursor: pointer; 88 | } 89 | 90 | .highlight { 91 | background-color: #d33682; 92 | padding: 2px; 93 | } 94 | 95 | body.night .highlight { 96 | background-color: #657b83; 97 | } 98 | 99 | p { 100 | margin-top: 0; 101 | margin-bottom: 1.4em; 102 | } 103 | 104 | #tools { 105 | text-align: right; 106 | color: #868e96; 107 | } 108 | 109 | #sidebar { 110 | display: none; 111 | position: absolute; 112 | top: 0; 113 | right: 0; 114 | padding: 2em; 115 | } 116 | 117 | #sidebar a { 118 | display: block; 119 | } 120 | 121 | #markdownOutput { 122 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 123 | } 124 | 125 | #markdownOutput code, 126 | #markdownOutput pre { 127 | font-family: monospace; 128 | } 129 | 130 | .hljs { 131 | display: block; 132 | overflow-x: auto; 133 | padding: 0.5em; 134 | background: #fdf6e3; 135 | color: #657b83; 136 | } 137 | 138 | .hljs-comment, 139 | .hljs-quote { 140 | color: #93a1a1; 141 | } 142 | 143 | .outlook-md { 144 | font-family: 'Calibri', sans-serif; 145 | background-color: white; 146 | color: black; 147 | } 148 | 149 | .outlook-md blockquote { 150 | border-left: 3px solid #ccc; 151 | padding-left: 1em; 152 | margin-left: 1em; 153 | } 154 | 155 | /* Solarized Green */ 156 | 157 | .hljs-keyword, 158 | .hljs-selector-tag, 159 | .hljs-addition { 160 | color: #859900; 161 | } 162 | 163 | 164 | /* Solarized Cyan */ 165 | 166 | .hljs-number, 167 | .hljs-string, 168 | .hljs-meta .hljs-meta-string, 169 | .hljs-literal, 170 | .hljs-doctag, 171 | .hljs-regexp { 172 | color: #2aa198; 173 | } 174 | 175 | 176 | /* Solarized Blue */ 177 | 178 | .hljs-title, 179 | .hljs-section, 180 | .hljs-name, 181 | .hljs-selector-id, 182 | .hljs-selector-class { 183 | color: #268bd2; 184 | } 185 | 186 | 187 | /* Solarized Yellow */ 188 | 189 | .hljs-attribute, 190 | .hljs-attr, 191 | .hljs-variable, 192 | .hljs-template-variable, 193 | .hljs-class .hljs-title, 194 | .hljs-type { 195 | color: #b58900; 196 | } 197 | 198 | 199 | /* Solarized Orange */ 200 | 201 | .hljs-symbol, 202 | .hljs-bullet, 203 | .hljs-subst, 204 | .hljs-meta, 205 | .hljs-meta .hljs-keyword, 206 | .hljs-selector-attr, 207 | .hljs-selector-pseudo, 208 | .hljs-link { 209 | color: #cb4b16; 210 | } 211 | 212 | 213 | /* Solarized Red */ 214 | 215 | .hljs-built_in, 216 | .hljs-deletion { 217 | color: #dc322f; 218 | } 219 | 220 | .hljs-formula { 221 | background: #eee8d5; 222 | } 223 | 224 | .hljs-emphasis { 225 | font-style: italic; 226 | } 227 | 228 | .hljs-strong { 229 | font-weight: bold; 230 | } 231 | 232 | 233 | /* --- Dark --- */ 234 | 235 | body.night .hljs { 236 | display: block; 237 | overflow-x: auto; 238 | padding: 0.5em; 239 | background: #002b36; 240 | color: #839496; 241 | } 242 | 243 | body.night .hljs-comment, 244 | body.night .hljs-quote { 245 | color: #586e75; 246 | } 247 | 248 | 249 | /* Solarized Green */ 250 | 251 | body.night .hljs-keyword, 252 | body.night .hljs-selector-tag, 253 | body.night .hljs-addition { 254 | color: #859900; 255 | } 256 | 257 | 258 | /* Solarized Cyan */ 259 | 260 | body.night .hljs-number, 261 | body.night .hljs-string, 262 | body.night .hljs-meta .hljs-meta-string, 263 | body.night .hljs-literal, 264 | body.night .hljs-doctag, 265 | body.night .hljs-regexp { 266 | color: #2aa198; 267 | } 268 | 269 | 270 | /* Solarized Blue */ 271 | 272 | body.night .hljs-title, 273 | body.night .hljs-section, 274 | body.night .hljs-name, 275 | body.night .hljs-selector-id, 276 | body.night .hljs-selector-class { 277 | color: #268bd2; 278 | } 279 | 280 | 281 | /* Solarized Yellow */ 282 | 283 | body.night .hljs-attribute, 284 | body.night .hljs-attr, 285 | body.night .hljs-variable, 286 | body.night .hljs-template-variable, 287 | body.night .hljs-class .hljs-title, 288 | body.night .hljs-type { 289 | color: #b58900; 290 | } 291 | 292 | 293 | /* Solarized Orange */ 294 | 295 | body.night .hljs-symbol, 296 | body.night .hljs-bullet, 297 | body.night .hljs-subst, 298 | body.night .hljs-meta, 299 | body.night .hljs-meta .hljs-keyword, 300 | body.night .hljs-selector-attr, 301 | body.night .hljs-selector-pseudo, 302 | body.night .hljs-link { 303 | color: #cb4b16; 304 | } 305 | 306 | 307 | /* Solarized Red */ 308 | 309 | body.night .hljs-built_in, 310 | body.night .hljs-deletion { 311 | color: #dc322f; 312 | } 313 | 314 | body.night .hljs-formula { 315 | background: #073642; 316 | } 317 | 318 | body.night .hljs-emphasis { 319 | font-style: italic; 320 | } 321 | 322 | body.night .hljs-strong { 323 | font-weight: bold; 324 | } 325 | 326 | @media print { 327 | body.night, body.day { 328 | background-color: transparent; 329 | color: #000000; 330 | } 331 | 332 | textarea, .close, footer { 333 | display: none; 334 | } 335 | } 336 | -------------------------------------------------------------------------------- /touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sesh/scratchpad/1f9ff03c13d674a98172eadc9bf67bee3d9d25f2/touch-icon.png -------------------------------------------------------------------------------- /vendor/balloon.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --balloon-color: rgba(16, 16, 16, 0.95); 3 | --balloon-font-size: 12px; 4 | --balloon-move: 4px; } 5 | 6 | button[aria-label][data-balloon-pos] { 7 | overflow: visible; } 8 | 9 | [aria-label][data-balloon-pos] { 10 | position: relative; 11 | cursor: pointer; } 12 | [aria-label][data-balloon-pos]:after { 13 | opacity: 0; 14 | pointer-events: none; 15 | transition: all .18s ease-out .18s; 16 | text-indent: 0; 17 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 18 | font-weight: normal; 19 | font-style: normal; 20 | text-shadow: none; 21 | font-size: var(--balloon-font-size); 22 | background: var(--balloon-color); 23 | border-radius: 2px; 24 | color: #fff; 25 | content: attr(aria-label); 26 | padding: .5em 1em; 27 | position: absolute; 28 | white-space: nowrap; 29 | z-index: 10; } 30 | [aria-label][data-balloon-pos]:before { 31 | width: 0; 32 | height: 0; 33 | border: 5px solid transparent; 34 | border-top-color: var(--balloon-color); 35 | opacity: 0; 36 | pointer-events: none; 37 | transition: all .18s ease-out .18s; 38 | content: ""; 39 | position: absolute; 40 | z-index: 10; } 41 | [aria-label][data-balloon-pos]:hover:before, [aria-label][data-balloon-pos]:hover:after, [aria-label][data-balloon-pos][data-balloon-visible]:before, [aria-label][data-balloon-pos][data-balloon-visible]:after, [aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:before, [aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:after { 42 | opacity: 1; 43 | pointer-events: none; } 44 | [aria-label][data-balloon-pos].font-awesome:after { 45 | font-family: FontAwesome, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } 46 | [aria-label][data-balloon-pos][data-balloon-break]:after { 47 | white-space: pre; } 48 | [aria-label][data-balloon-pos][data-balloon-break][data-balloon-length]:after { 49 | white-space: pre-line; 50 | word-break: break-word; } 51 | [aria-label][data-balloon-pos][data-balloon-blunt]:before, [aria-label][data-balloon-pos][data-balloon-blunt]:after { 52 | transition: none; } 53 | [aria-label][data-balloon-pos][data-balloon-pos="up"]:after { 54 | bottom: 100%; 55 | left: 50%; 56 | margin-bottom: 10px; 57 | transform: translate(-50%, var(--balloon-move)); 58 | transform-origin: top; } 59 | [aria-label][data-balloon-pos][data-balloon-pos="up"]:before { 60 | bottom: 100%; 61 | left: 50%; 62 | transform: translate(-50%, var(--balloon-move)); 63 | transform-origin: top; } 64 | [aria-label][data-balloon-pos][data-balloon-pos="up"]:hover:after, [aria-label][data-balloon-pos][data-balloon-pos="up"][data-balloon-visible]:after { 65 | transform: translate(-50%, 0); } 66 | [aria-label][data-balloon-pos][data-balloon-pos="up"]:hover:before, [aria-label][data-balloon-pos][data-balloon-pos="up"][data-balloon-visible]:before { 67 | transform: translate(-50%, 0); } 68 | [aria-label][data-balloon-pos][data-balloon-pos="up-left"]:after { 69 | bottom: 100%; 70 | left: 0; 71 | margin-bottom: 10px; 72 | transform: translate(0, var(--balloon-move)); 73 | transform-origin: top; } 74 | [aria-label][data-balloon-pos][data-balloon-pos="up-left"]:before { 75 | bottom: 100%; 76 | left: 5px; 77 | transform: translate(0, var(--balloon-move)); 78 | transform-origin: top; } 79 | [aria-label][data-balloon-pos][data-balloon-pos="up-left"]:hover:after, [aria-label][data-balloon-pos][data-balloon-pos="up-left"][data-balloon-visible]:after { 80 | transform: translate(0, 0); } 81 | [aria-label][data-balloon-pos][data-balloon-pos="up-left"]:hover:before, [aria-label][data-balloon-pos][data-balloon-pos="up-left"][data-balloon-visible]:before { 82 | transform: translate(0, 0); } 83 | [aria-label][data-balloon-pos][data-balloon-pos="up-right"]:after { 84 | bottom: 100%; 85 | right: 0; 86 | margin-bottom: 10px; 87 | transform: translate(0, var(--balloon-move)); 88 | transform-origin: top; } 89 | [aria-label][data-balloon-pos][data-balloon-pos="up-right"]:before { 90 | bottom: 100%; 91 | right: 5px; 92 | transform: translate(0, var(--balloon-move)); 93 | transform-origin: top; } 94 | [aria-label][data-balloon-pos][data-balloon-pos="up-right"]:hover:after, [aria-label][data-balloon-pos][data-balloon-pos="up-right"][data-balloon-visible]:after { 95 | transform: translate(0, 0); } 96 | [aria-label][data-balloon-pos][data-balloon-pos="up-right"]:hover:before, [aria-label][data-balloon-pos][data-balloon-pos="up-right"][data-balloon-visible]:before { 97 | transform: translate(0, 0); } 98 | [aria-label][data-balloon-pos][data-balloon-pos="down"]:after { 99 | left: 50%; 100 | margin-top: 10px; 101 | top: 100%; 102 | transform: translate(-50%, calc(var(--balloon-move) * -1)); } 103 | [aria-label][data-balloon-pos][data-balloon-pos="down"]:before { 104 | width: 0; 105 | height: 0; 106 | border: 5px solid transparent; 107 | border-bottom-color: var(--balloon-color); 108 | left: 50%; 109 | top: 100%; 110 | transform: translate(-50%, calc(var(--balloon-move) * -1)); } 111 | [aria-label][data-balloon-pos][data-balloon-pos="down"]:hover:after, [aria-label][data-balloon-pos][data-balloon-pos="down"][data-balloon-visible]:after { 112 | transform: translate(-50%, 0); } 113 | [aria-label][data-balloon-pos][data-balloon-pos="down"]:hover:before, [aria-label][data-balloon-pos][data-balloon-pos="down"][data-balloon-visible]:before { 114 | transform: translate(-50%, 0); } 115 | [aria-label][data-balloon-pos][data-balloon-pos="down-left"]:after { 116 | left: 0; 117 | margin-top: 10px; 118 | top: 100%; 119 | transform: translate(0, calc(var(--balloon-move) * -1)); } 120 | [aria-label][data-balloon-pos][data-balloon-pos="down-left"]:before { 121 | width: 0; 122 | height: 0; 123 | border: 5px solid transparent; 124 | border-bottom-color: var(--balloon-color); 125 | left: 5px; 126 | top: 100%; 127 | transform: translate(0, calc(var(--balloon-move) * -1)); } 128 | [aria-label][data-balloon-pos][data-balloon-pos="down-left"]:hover:after, [aria-label][data-balloon-pos][data-balloon-pos="down-left"][data-balloon-visible]:after { 129 | transform: translate(0, 0); } 130 | [aria-label][data-balloon-pos][data-balloon-pos="down-left"]:hover:before, [aria-label][data-balloon-pos][data-balloon-pos="down-left"][data-balloon-visible]:before { 131 | transform: translate(0, 0); } 132 | [aria-label][data-balloon-pos][data-balloon-pos="down-right"]:after { 133 | right: 0; 134 | margin-top: 10px; 135 | top: 100%; 136 | transform: translate(0, calc(var(--balloon-move) * -1)); } 137 | [aria-label][data-balloon-pos][data-balloon-pos="down-right"]:before { 138 | width: 0; 139 | height: 0; 140 | border: 5px solid transparent; 141 | border-bottom-color: var(--balloon-color); 142 | right: 5px; 143 | top: 100%; 144 | transform: translate(0, calc(var(--balloon-move) * -1)); } 145 | [aria-label][data-balloon-pos][data-balloon-pos="down-right"]:hover:after, [aria-label][data-balloon-pos][data-balloon-pos="down-right"][data-balloon-visible]:after { 146 | transform: translate(0, 0); } 147 | [aria-label][data-balloon-pos][data-balloon-pos="down-right"]:hover:before, [aria-label][data-balloon-pos][data-balloon-pos="down-right"][data-balloon-visible]:before { 148 | transform: translate(0, 0); } 149 | [aria-label][data-balloon-pos][data-balloon-pos="left"]:after { 150 | margin-right: 10px; 151 | right: 100%; 152 | top: 50%; 153 | transform: translate(var(--balloon-move), -50%); } 154 | [aria-label][data-balloon-pos][data-balloon-pos="left"]:before { 155 | width: 0; 156 | height: 0; 157 | border: 5px solid transparent; 158 | border-left-color: var(--balloon-color); 159 | right: 100%; 160 | top: 50%; 161 | transform: translate(var(--balloon-move), -50%); } 162 | [aria-label][data-balloon-pos][data-balloon-pos="left"]:hover:after, [aria-label][data-balloon-pos][data-balloon-pos="left"][data-balloon-visible]:after { 163 | transform: translate(0, -50%); } 164 | [aria-label][data-balloon-pos][data-balloon-pos="left"]:hover:before, [aria-label][data-balloon-pos][data-balloon-pos="left"][data-balloon-visible]:before { 165 | transform: translate(0, -50%); } 166 | [aria-label][data-balloon-pos][data-balloon-pos="right"]:after { 167 | left: 100%; 168 | margin-left: 10px; 169 | top: 50%; 170 | transform: translate(calc(var(--balloon-move) * -1), -50%); } 171 | [aria-label][data-balloon-pos][data-balloon-pos="right"]:before { 172 | width: 0; 173 | height: 0; 174 | border: 5px solid transparent; 175 | border-right-color: var(--balloon-color); 176 | left: 100%; 177 | top: 50%; 178 | transform: translate(calc(var(--balloon-move) * -1), -50%); } 179 | [aria-label][data-balloon-pos][data-balloon-pos="right"]:hover:after, [aria-label][data-balloon-pos][data-balloon-pos="right"][data-balloon-visible]:after { 180 | transform: translate(0, -50%); } 181 | [aria-label][data-balloon-pos][data-balloon-pos="right"]:hover:before, [aria-label][data-balloon-pos][data-balloon-pos="right"][data-balloon-visible]:before { 182 | transform: translate(0, -50%); } 183 | [aria-label][data-balloon-pos][data-balloon-length="small"]:after { 184 | white-space: normal; 185 | width: 80px; } 186 | [aria-label][data-balloon-pos][data-balloon-length="medium"]:after { 187 | white-space: normal; 188 | width: 150px; } 189 | [aria-label][data-balloon-pos][data-balloon-length="large"]:after { 190 | white-space: normal; 191 | width: 260px; } 192 | [aria-label][data-balloon-pos][data-balloon-length="xlarge"]:after { 193 | white-space: normal; 194 | width: 380px; } 195 | @media screen and (max-width: 768px) { 196 | [aria-label][data-balloon-pos][data-balloon-length="xlarge"]:after { 197 | white-space: normal; 198 | width: 90vw; } } 199 | [aria-label][data-balloon-pos][data-balloon-length="fit"]:after { 200 | white-space: normal; 201 | width: 100%; } 202 | -------------------------------------------------------------------------------- /vendor/eff-short-passphrase.js: -------------------------------------------------------------------------------- 1 | let wordlist = [ 2 | "acid", 3 | "acorn", 4 | "acre", 5 | "acts", 6 | "afar", 7 | "affix", 8 | "aged", 9 | "agent", 10 | "agile", 11 | "aging", 12 | "agony", 13 | "ahead", 14 | "aide", 15 | "aids", 16 | "aim", 17 | "ajar", 18 | "alarm", 19 | "alias", 20 | "alibi", 21 | "alien", 22 | "alike", 23 | "alive", 24 | "aloe", 25 | "aloft", 26 | "aloha", 27 | "alone", 28 | "amend", 29 | "amino", 30 | "ample", 31 | "amuse", 32 | "angel", 33 | "anger", 34 | "angle", 35 | "ankle", 36 | "apple", 37 | "april", 38 | "apron", 39 | "aqua", 40 | "area", 41 | "arena", 42 | "argue", 43 | "arise", 44 | "armed", 45 | "armor", 46 | "army", 47 | "aroma", 48 | "array", 49 | "arson", 50 | "art", 51 | "ashen", 52 | "ashes", 53 | "atlas", 54 | "atom", 55 | "attic", 56 | "audio", 57 | "avert", 58 | "avoid", 59 | "awake", 60 | "award", 61 | "awoke", 62 | "axis", 63 | "bacon", 64 | "badge", 65 | "bagel", 66 | "baggy", 67 | "baked", 68 | "baker", 69 | "balmy", 70 | "banjo", 71 | "barge", 72 | "barn", 73 | "bash", 74 | "basil", 75 | "bask", 76 | "batch", 77 | "bath", 78 | "baton", 79 | "bats", 80 | "blade", 81 | "blank", 82 | "blast", 83 | "blaze", 84 | "bleak", 85 | "blend", 86 | "bless", 87 | "blimp", 88 | "blink", 89 | "bloat", 90 | "blob", 91 | "blog", 92 | "blot", 93 | "blunt", 94 | "blurt", 95 | "blush", 96 | "boast", 97 | "boat", 98 | "body", 99 | "boil", 100 | "bok", 101 | "bolt", 102 | "boned", 103 | "boney", 104 | "bonus", 105 | "bony", 106 | "book", 107 | "booth", 108 | "boots", 109 | "boss", 110 | "botch", 111 | "both", 112 | "boxer", 113 | "breed", 114 | "bribe", 115 | "brick", 116 | "bride", 117 | "brim", 118 | "bring", 119 | "brink", 120 | "brisk", 121 | "broad", 122 | "broil", 123 | "broke", 124 | "brook", 125 | "broom", 126 | "brush", 127 | "buck", 128 | "bud", 129 | "buggy", 130 | "bulge", 131 | "bulk", 132 | "bully", 133 | "bunch", 134 | "bunny", 135 | "bunt", 136 | "bush", 137 | "bust", 138 | "busy", 139 | "buzz", 140 | "cable", 141 | "cache", 142 | "cadet", 143 | "cage", 144 | "cake", 145 | "calm", 146 | "cameo", 147 | "canal", 148 | "candy", 149 | "cane", 150 | "canon", 151 | "cape", 152 | "card", 153 | "cargo", 154 | "carol", 155 | "carry", 156 | "carve", 157 | "case", 158 | "cash", 159 | "cause", 160 | "cedar", 161 | "chain", 162 | "chair", 163 | "chant", 164 | "chaos", 165 | "charm", 166 | "chase", 167 | "cheek", 168 | "cheer", 169 | "chef", 170 | "chess", 171 | "chest", 172 | "chew", 173 | "chief", 174 | "chili", 175 | "chill", 176 | "chip", 177 | "chomp", 178 | "chop", 179 | "chow", 180 | "chuck", 181 | "chump", 182 | "chunk", 183 | "churn", 184 | "chute", 185 | "cider", 186 | "cinch", 187 | "city", 188 | "civic", 189 | "civil", 190 | "clad", 191 | "claim", 192 | "clamp", 193 | "clap", 194 | "clash", 195 | "clasp", 196 | "class", 197 | "claw", 198 | "clay", 199 | "clean", 200 | "clear", 201 | "cleat", 202 | "cleft", 203 | "clerk", 204 | "click", 205 | "cling", 206 | "clink", 207 | "clip", 208 | "cloak", 209 | "clock", 210 | "clone", 211 | "cloth", 212 | "cloud", 213 | "clump", 214 | "coach", 215 | "coast", 216 | "coat", 217 | "cod", 218 | "coil", 219 | "coke", 220 | "cola", 221 | "cold", 222 | "colt", 223 | "coma", 224 | "come", 225 | "comic", 226 | "comma", 227 | "cone", 228 | "cope", 229 | "copy", 230 | "coral", 231 | "cork", 232 | "cost", 233 | "cot", 234 | "couch", 235 | "cough", 236 | "cover", 237 | "cozy", 238 | "craft", 239 | "cramp", 240 | "crane", 241 | "crank", 242 | "crate", 243 | "crave", 244 | "crawl", 245 | "crazy", 246 | "creme", 247 | "crepe", 248 | "crept", 249 | "crib", 250 | "cried", 251 | "crisp", 252 | "crook", 253 | "crop", 254 | "cross", 255 | "crowd", 256 | "crown", 257 | "crumb", 258 | "crush", 259 | "crust", 260 | "cub", 261 | "cult", 262 | "cupid", 263 | "cure", 264 | "curl", 265 | "curry", 266 | "curse", 267 | "curve", 268 | "curvy", 269 | "cushy", 270 | "cut", 271 | "cycle", 272 | "dab", 273 | "dad", 274 | "daily", 275 | "dairy", 276 | "daisy", 277 | "dance", 278 | "dandy", 279 | "darn", 280 | "dart", 281 | "dash", 282 | "data", 283 | "date", 284 | "dawn", 285 | "deaf", 286 | "deal", 287 | "dean", 288 | "debit", 289 | "debt", 290 | "debug", 291 | "decaf", 292 | "decal", 293 | "decay", 294 | "deck", 295 | "decor", 296 | "decoy", 297 | "deed", 298 | "delay", 299 | "denim", 300 | "dense", 301 | "dent", 302 | "depth", 303 | "derby", 304 | "desk", 305 | "dial", 306 | "diary", 307 | "dice", 308 | "dig", 309 | "dill", 310 | "dime", 311 | "dimly", 312 | "diner", 313 | "dingy", 314 | "disco", 315 | "dish", 316 | "disk", 317 | "ditch", 318 | "ditzy", 319 | "dizzy", 320 | "dock", 321 | "dodge", 322 | "doing", 323 | "doll", 324 | "dome", 325 | "donor", 326 | "donut", 327 | "dose", 328 | "dot", 329 | "dove", 330 | "down", 331 | "dowry", 332 | "doze", 333 | "drab", 334 | "drama", 335 | "drank", 336 | "draw", 337 | "dress", 338 | "dried", 339 | "drift", 340 | "drill", 341 | "drive", 342 | "drone", 343 | "droop", 344 | "drove", 345 | "drown", 346 | "drum", 347 | "dry", 348 | "duck", 349 | "duct", 350 | "dude", 351 | "dug", 352 | "duke", 353 | "duo", 354 | "dusk", 355 | "dust", 356 | "duty", 357 | "dwarf", 358 | "dwell", 359 | "eagle", 360 | "early", 361 | "earth", 362 | "easel", 363 | "east", 364 | "eaten", 365 | "eats", 366 | "ebay", 367 | "ebony", 368 | "ebook", 369 | "echo", 370 | "edge", 371 | "eel", 372 | "eject", 373 | "elbow", 374 | "elder", 375 | "elf", 376 | "elk", 377 | "elm", 378 | "elope", 379 | "elude", 380 | "elves", 381 | "email", 382 | "emit", 383 | "empty", 384 | "emu", 385 | "enter", 386 | "entry", 387 | "envoy", 388 | "equal", 389 | "erase", 390 | "error", 391 | "erupt", 392 | "essay", 393 | "etch", 394 | "evade", 395 | "even", 396 | "evict", 397 | "evil", 398 | "evoke", 399 | "exact", 400 | "exit", 401 | "fable", 402 | "faced", 403 | "fact", 404 | "fade", 405 | "fall", 406 | "false", 407 | "fancy", 408 | "fang", 409 | "fax", 410 | "feast", 411 | "feed", 412 | "femur", 413 | "fence", 414 | "fend", 415 | "ferry", 416 | "fetal", 417 | "fetch", 418 | "fever", 419 | "fiber", 420 | "fifth", 421 | "fifty", 422 | "film", 423 | "filth", 424 | "final", 425 | "finch", 426 | "fit", 427 | "five", 428 | "flag", 429 | "flaky", 430 | "flame", 431 | "flap", 432 | "flask", 433 | "fled", 434 | "flick", 435 | "fling", 436 | "flint", 437 | "flip", 438 | "flirt", 439 | "float", 440 | "flock", 441 | "flop", 442 | "floss", 443 | "flyer", 444 | "foam", 445 | "foe", 446 | "fog", 447 | "foil", 448 | "folic", 449 | "folk", 450 | "food", 451 | "fool", 452 | "found", 453 | "fox", 454 | "foyer", 455 | "frail", 456 | "frame", 457 | "fray", 458 | "fresh", 459 | "fried", 460 | "frill", 461 | "frisk", 462 | "from", 463 | "front", 464 | "frost", 465 | "froth", 466 | "frown", 467 | "froze", 468 | "fruit", 469 | "gag", 470 | "gains", 471 | "gala", 472 | "game", 473 | "gap", 474 | "gas", 475 | "gave", 476 | "gear", 477 | "gecko", 478 | "geek", 479 | "gem", 480 | "genre", 481 | "gift", 482 | "gig", 483 | "gills", 484 | "given", 485 | "giver", 486 | "glad", 487 | "glass", 488 | "glide", 489 | "gloss", 490 | "glove", 491 | "glow", 492 | "glue", 493 | "goal", 494 | "going", 495 | "golf", 496 | "gong", 497 | "good", 498 | "gooey", 499 | "goofy", 500 | "gore", 501 | "gown", 502 | "grab", 503 | "grain", 504 | "grant", 505 | "grape", 506 | "graph", 507 | "grasp", 508 | "grass", 509 | "grave", 510 | "gravy", 511 | "gray", 512 | "green", 513 | "greet", 514 | "grew", 515 | "grid", 516 | "grief", 517 | "grill", 518 | "grip", 519 | "grit", 520 | "groom", 521 | "grope", 522 | "growl", 523 | "grub", 524 | "grunt", 525 | "guide", 526 | "gulf", 527 | "gulp", 528 | "gummy", 529 | "guru", 530 | "gush", 531 | "gut", 532 | "guy", 533 | "habit", 534 | "half", 535 | "halo", 536 | "halt", 537 | "happy", 538 | "harm", 539 | "hash", 540 | "hasty", 541 | "hatch", 542 | "hate", 543 | "haven", 544 | "hazel", 545 | "hazy", 546 | "heap", 547 | "heat", 548 | "heave", 549 | "hedge", 550 | "hefty", 551 | "help", 552 | "herbs", 553 | "hers", 554 | "hub", 555 | "hug", 556 | "hula", 557 | "hull", 558 | "human", 559 | "humid", 560 | "hump", 561 | "hung", 562 | "hunk", 563 | "hunt", 564 | "hurry", 565 | "hurt", 566 | "hush", 567 | "hut", 568 | "ice", 569 | "icing", 570 | "icon", 571 | "icy", 572 | "igloo", 573 | "image", 574 | "ion", 575 | "iron", 576 | "islam", 577 | "issue", 578 | "item", 579 | "ivory", 580 | "ivy", 581 | "jab", 582 | "jam", 583 | "jaws", 584 | "jazz", 585 | "jeep", 586 | "jelly", 587 | "jet", 588 | "jiffy", 589 | "job", 590 | "jog", 591 | "jolly", 592 | "jolt", 593 | "jot", 594 | "joy", 595 | "judge", 596 | "juice", 597 | "juicy", 598 | "july", 599 | "jumbo", 600 | "jump", 601 | "junky", 602 | "juror", 603 | "jury", 604 | "keep", 605 | "keg", 606 | "kept", 607 | "kick", 608 | "kilt", 609 | "king", 610 | "kite", 611 | "kitty", 612 | "kiwi", 613 | "knee", 614 | "knelt", 615 | "koala", 616 | "kung", 617 | "ladle", 618 | "lady", 619 | "lair", 620 | "lake", 621 | "lance", 622 | "land", 623 | "lapel", 624 | "large", 625 | "lash", 626 | "lasso", 627 | "last", 628 | "latch", 629 | "late", 630 | "lazy", 631 | "left", 632 | "legal", 633 | "lemon", 634 | "lend", 635 | "lens", 636 | "lent", 637 | "level", 638 | "lever", 639 | "lid", 640 | "life", 641 | "lift", 642 | "lilac", 643 | "lily", 644 | "limb", 645 | "limes", 646 | "line", 647 | "lint", 648 | "lion", 649 | "lip", 650 | "list", 651 | "lived", 652 | "liver", 653 | "lunar", 654 | "lunch", 655 | "lung", 656 | "lurch", 657 | "lure", 658 | "lurk", 659 | "lying", 660 | "lyric", 661 | "mace", 662 | "maker", 663 | "malt", 664 | "mama", 665 | "mango", 666 | "manor", 667 | "many", 668 | "map", 669 | "march", 670 | "mardi", 671 | "marry", 672 | "mash", 673 | "match", 674 | "mate", 675 | "math", 676 | "moan", 677 | "mocha", 678 | "moist", 679 | "mold", 680 | "mom", 681 | "moody", 682 | "mop", 683 | "morse", 684 | "most", 685 | "motor", 686 | "motto", 687 | "mount", 688 | "mouse", 689 | "mousy", 690 | "mouth", 691 | "move", 692 | "movie", 693 | "mower", 694 | "mud", 695 | "mug", 696 | "mulch", 697 | "mule", 698 | "mull", 699 | "mumbo", 700 | "mummy", 701 | "mural", 702 | "muse", 703 | "music", 704 | "musky", 705 | "mute", 706 | "nacho", 707 | "nag", 708 | "nail", 709 | "name", 710 | "nanny", 711 | "nap", 712 | "navy", 713 | "near", 714 | "neat", 715 | "neon", 716 | "nerd", 717 | "nest", 718 | "net", 719 | "next", 720 | "niece", 721 | "ninth", 722 | "nutty", 723 | "oak", 724 | "oasis", 725 | "oat", 726 | "ocean", 727 | "oil", 728 | "old", 729 | "olive", 730 | "omen", 731 | "onion", 732 | "only", 733 | "ooze", 734 | "opal", 735 | "open", 736 | "opera", 737 | "opt", 738 | "otter", 739 | "ouch", 740 | "ounce", 741 | "outer", 742 | "oval", 743 | "oven", 744 | "owl", 745 | "ozone", 746 | "pace", 747 | "pagan", 748 | "pager", 749 | "palm", 750 | "panda", 751 | "panic", 752 | "pants", 753 | "panty", 754 | "paper", 755 | "park", 756 | "party", 757 | "pasta", 758 | "patch", 759 | "path", 760 | "patio", 761 | "payer", 762 | "pecan", 763 | "penny", 764 | "pep", 765 | "perch", 766 | "perky", 767 | "perm", 768 | "pest", 769 | "petal", 770 | "petri", 771 | "petty", 772 | "photo", 773 | "plank", 774 | "plant", 775 | "plaza", 776 | "plead", 777 | "plot", 778 | "plow", 779 | "pluck", 780 | "plug", 781 | "plus", 782 | "poach", 783 | "pod", 784 | "poem", 785 | "poet", 786 | "pogo", 787 | "point", 788 | "poise", 789 | "poker", 790 | "polar", 791 | "polio", 792 | "polka", 793 | "polo", 794 | "pond", 795 | "pony", 796 | "poppy", 797 | "pork", 798 | "poser", 799 | "pouch", 800 | "pound", 801 | "pout", 802 | "power", 803 | "prank", 804 | "press", 805 | "print", 806 | "prior", 807 | "prism", 808 | "prize", 809 | "probe", 810 | "prong", 811 | "proof", 812 | "props", 813 | "prude", 814 | "prune", 815 | "pry", 816 | "pug", 817 | "pull", 818 | "pulp", 819 | "pulse", 820 | "puma", 821 | "punch", 822 | "punk", 823 | "pupil", 824 | "puppy", 825 | "purr", 826 | "purse", 827 | "push", 828 | "putt", 829 | "quack", 830 | "quake", 831 | "query", 832 | "quiet", 833 | "quill", 834 | "quilt", 835 | "quit", 836 | "quota", 837 | "quote", 838 | "rabid", 839 | "race", 840 | "rack", 841 | "radar", 842 | "radio", 843 | "raft", 844 | "rage", 845 | "raid", 846 | "rail", 847 | "rake", 848 | "rally", 849 | "ramp", 850 | "ranch", 851 | "range", 852 | "rank", 853 | "rant", 854 | "rash", 855 | "raven", 856 | "reach", 857 | "react", 858 | "ream", 859 | "rebel", 860 | "recap", 861 | "relax", 862 | "relay", 863 | "relic", 864 | "remix", 865 | "repay", 866 | "repel", 867 | "reply", 868 | "rerun", 869 | "reset", 870 | "rhyme", 871 | "rice", 872 | "rich", 873 | "ride", 874 | "rigid", 875 | "rigor", 876 | "rinse", 877 | "riot", 878 | "ripen", 879 | "rise", 880 | "risk", 881 | "ritzy", 882 | "rival", 883 | "river", 884 | "roast", 885 | "robe", 886 | "robin", 887 | "rock", 888 | "rogue", 889 | "roman", 890 | "romp", 891 | "rope", 892 | "rover", 893 | "royal", 894 | "ruby", 895 | "rug", 896 | "ruin", 897 | "rule", 898 | "runny", 899 | "rush", 900 | "rust", 901 | "rut", 902 | "sadly", 903 | "sage", 904 | "said", 905 | "saint", 906 | "salad", 907 | "salon", 908 | "salsa", 909 | "salt", 910 | "same", 911 | "sandy", 912 | "santa", 913 | "satin", 914 | "sauna", 915 | "saved", 916 | "savor", 917 | "sax", 918 | "say", 919 | "scale", 920 | "scam", 921 | "scan", 922 | "scare", 923 | "scarf", 924 | "scary", 925 | "scoff", 926 | "scold", 927 | "scoop", 928 | "scoot", 929 | "scope", 930 | "score", 931 | "scorn", 932 | "scout", 933 | "scowl", 934 | "scrap", 935 | "scrub", 936 | "scuba", 937 | "scuff", 938 | "sect", 939 | "sedan", 940 | "self", 941 | "send", 942 | "sepia", 943 | "serve", 944 | "set", 945 | "seven", 946 | "shack", 947 | "shade", 948 | "shady", 949 | "shaft", 950 | "shaky", 951 | "sham", 952 | "shape", 953 | "share", 954 | "sharp", 955 | "shed", 956 | "sheep", 957 | "sheet", 958 | "shelf", 959 | "shell", 960 | "shine", 961 | "shiny", 962 | "ship", 963 | "shirt", 964 | "shock", 965 | "shop", 966 | "shore", 967 | "shout", 968 | "shove", 969 | "shown", 970 | "showy", 971 | "shred", 972 | "shrug", 973 | "shun", 974 | "shush", 975 | "shut", 976 | "shy", 977 | "sift", 978 | "silk", 979 | "silly", 980 | "silo", 981 | "sip", 982 | "siren", 983 | "sixth", 984 | "size", 985 | "skate", 986 | "skew", 987 | "skid", 988 | "skier", 989 | "skies", 990 | "skip", 991 | "skirt", 992 | "skit", 993 | "sky", 994 | "slab", 995 | "slack", 996 | "slain", 997 | "slam", 998 | "slang", 999 | "slash", 1000 | "slate", 1001 | "slaw", 1002 | "sled", 1003 | "sleek", 1004 | "sleep", 1005 | "sleet", 1006 | "slept", 1007 | "slice", 1008 | "slick", 1009 | "slimy", 1010 | "sling", 1011 | "slip", 1012 | "slit", 1013 | "slob", 1014 | "slot", 1015 | "slug", 1016 | "slum", 1017 | "slurp", 1018 | "slush", 1019 | "small", 1020 | "smash", 1021 | "smell", 1022 | "smile", 1023 | "smirk", 1024 | "smog", 1025 | "snack", 1026 | "snap", 1027 | "snare", 1028 | "snarl", 1029 | "sneak", 1030 | "sneer", 1031 | "sniff", 1032 | "snore", 1033 | "snort", 1034 | "snout", 1035 | "snowy", 1036 | "snub", 1037 | "snuff", 1038 | "speak", 1039 | "speed", 1040 | "spend", 1041 | "spent", 1042 | "spew", 1043 | "spied", 1044 | "spill", 1045 | "spiny", 1046 | "spoil", 1047 | "spoke", 1048 | "spoof", 1049 | "spool", 1050 | "spoon", 1051 | "sport", 1052 | "spot", 1053 | "spout", 1054 | "spray", 1055 | "spree", 1056 | "spur", 1057 | "squad", 1058 | "squat", 1059 | "squid", 1060 | "stack", 1061 | "staff", 1062 | "stage", 1063 | "stain", 1064 | "stall", 1065 | "stamp", 1066 | "stand", 1067 | "stank", 1068 | "stark", 1069 | "start", 1070 | "stash", 1071 | "state", 1072 | "stays", 1073 | "steam", 1074 | "steep", 1075 | "stem", 1076 | "step", 1077 | "stew", 1078 | "stick", 1079 | "sting", 1080 | "stir", 1081 | "stock", 1082 | "stole", 1083 | "stomp", 1084 | "stony", 1085 | "stood", 1086 | "stool", 1087 | "stoop", 1088 | "stop", 1089 | "storm", 1090 | "stout", 1091 | "stove", 1092 | "straw", 1093 | "stray", 1094 | "strut", 1095 | "stuck", 1096 | "stud", 1097 | "stuff", 1098 | "stump", 1099 | "stung", 1100 | "stunt", 1101 | "suds", 1102 | "sugar", 1103 | "sulk", 1104 | "surf", 1105 | "sushi", 1106 | "swab", 1107 | "swan", 1108 | "swarm", 1109 | "sway", 1110 | "swear", 1111 | "sweat", 1112 | "sweep", 1113 | "swell", 1114 | "swept", 1115 | "swim", 1116 | "swing", 1117 | "swipe", 1118 | "swirl", 1119 | "swoop", 1120 | "swore", 1121 | "syrup", 1122 | "tacky", 1123 | "taco", 1124 | "tag", 1125 | "take", 1126 | "tall", 1127 | "talon", 1128 | "tamer", 1129 | "tank", 1130 | "taper", 1131 | "taps", 1132 | "tarot", 1133 | "tart", 1134 | "task", 1135 | "taste", 1136 | "tasty", 1137 | "taunt", 1138 | "thank", 1139 | "thaw", 1140 | "theft", 1141 | "theme", 1142 | "thigh", 1143 | "thing", 1144 | "think", 1145 | "thong", 1146 | "thorn", 1147 | "those", 1148 | "throb", 1149 | "thud", 1150 | "thumb", 1151 | "thump", 1152 | "thus", 1153 | "tiara", 1154 | "tidal", 1155 | "tidy", 1156 | "tiger", 1157 | "tile", 1158 | "tilt", 1159 | "tint", 1160 | "tiny", 1161 | "trace", 1162 | "track", 1163 | "trade", 1164 | "train", 1165 | "trait", 1166 | "trap", 1167 | "trash", 1168 | "tray", 1169 | "treat", 1170 | "tree", 1171 | "trek", 1172 | "trend", 1173 | "trial", 1174 | "tribe", 1175 | "trick", 1176 | "trio", 1177 | "trout", 1178 | "truce", 1179 | "truck", 1180 | "trump", 1181 | "trunk", 1182 | "try", 1183 | "tug", 1184 | "tulip", 1185 | "tummy", 1186 | "turf", 1187 | "tusk", 1188 | "tutor", 1189 | "tutu", 1190 | "tux", 1191 | "tweak", 1192 | "tweet", 1193 | "twice", 1194 | "twine", 1195 | "twins", 1196 | "twirl", 1197 | "twist", 1198 | "uncle", 1199 | "uncut", 1200 | "undo", 1201 | "unify", 1202 | "union", 1203 | "unit", 1204 | "untie", 1205 | "upon", 1206 | "upper", 1207 | "urban", 1208 | "used", 1209 | "user", 1210 | "usher", 1211 | "utter", 1212 | "value", 1213 | "vapor", 1214 | "vegan", 1215 | "venue", 1216 | "verse", 1217 | "vest", 1218 | "veto", 1219 | "vice", 1220 | "video", 1221 | "view", 1222 | "viral", 1223 | "virus", 1224 | "visa", 1225 | "visor", 1226 | "vixen", 1227 | "vocal", 1228 | "voice", 1229 | "void", 1230 | "volt", 1231 | "voter", 1232 | "vowel", 1233 | "wad", 1234 | "wafer", 1235 | "wager", 1236 | "wages", 1237 | "wagon", 1238 | "wake", 1239 | "walk", 1240 | "wand", 1241 | "wasp", 1242 | "watch", 1243 | "water", 1244 | "wavy", 1245 | "wheat", 1246 | "whiff", 1247 | "whole", 1248 | "whoop", 1249 | "wick", 1250 | "widen", 1251 | "widow", 1252 | "width", 1253 | "wife", 1254 | "wifi", 1255 | "wilt", 1256 | "wimp", 1257 | "wind", 1258 | "wing", 1259 | "wink", 1260 | "wipe", 1261 | "wired", 1262 | "wiry", 1263 | "wise", 1264 | "wish", 1265 | "wispy", 1266 | "wok", 1267 | "wolf", 1268 | "womb", 1269 | "wool", 1270 | "woozy", 1271 | "word", 1272 | "work", 1273 | "worry", 1274 | "wound", 1275 | "woven", 1276 | "wrath", 1277 | "wreck", 1278 | "wrist", 1279 | "xerox", 1280 | "yahoo", 1281 | "yam", 1282 | "yard", 1283 | "year", 1284 | "yeast", 1285 | "yelp", 1286 | "yield", 1287 | "yo-yo", 1288 | "yodel", 1289 | "yoga", 1290 | "yoyo", 1291 | "yummy", 1292 | "zebra", 1293 | "zero", 1294 | "zesty", 1295 | "zippy", 1296 | "zone", 1297 | "zoom" 1298 | ]; 1299 | 1300 | function randomChoice(arr) { 1301 | return arr[Math.floor(arr.length * Math.random())]; 1302 | } 1303 | 1304 | function generatePassphrase() { 1305 | return [ 1306 | randomChoice(wordlist), 1307 | randomChoice(wordlist), 1308 | randomChoice(wordlist), 1309 | randomChoice(wordlist), 1310 | randomChoice(wordlist), 1311 | randomChoice(wordlist), 1312 | ].join(" ") 1313 | } -------------------------------------------------------------------------------- /vendor/highlight.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:.5em;background:#F0F0F0}.hljs,.hljs-subst{color:#444}.hljs-comment{color:#888888}.hljs-keyword,.hljs-attribute,.hljs-selector-tag,.hljs-meta-keyword,.hljs-doctag,.hljs-name{font-weight:bold}.hljs-type,.hljs-string,.hljs-number,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#880000}.hljs-title,.hljs-section{color:#880000;font-weight:bold}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-selector-pseudo{color:#BC6060}.hljs-literal{color:#78A960}.hljs-built_in,.hljs-bullet,.hljs-code,.hljs-addition{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} -------------------------------------------------------------------------------- /vendor/highlight.min.js: -------------------------------------------------------------------------------- 1 | /*! highlight.js v9.16.2 | BSD3 License | git.io/hljslicense */ 2 | !function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nodeType?t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs})):e(exports)}(function(n){var u=[],i=Object.keys,N={},c={},t=/^(no-?highlight|plain|text)$/i,o=/\blang(?:uage)?-([\w-]+)\b/i,r=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,a={case_insensitive:"cI",lexemes:"l",contains:"c",keywords:"k",subLanguage:"sL",className:"cN",begin:"b",beginKeywords:"bK",end:"e",endsWithParent:"eW",illegal:"i",excludeBegin:"eB",excludeEnd:"eE",returnBegin:"rB",returnEnd:"rE",variants:"v",IDENT_RE:"IR",UNDERSCORE_IDENT_RE:"UIR",NUMBER_RE:"NR",C_NUMBER_RE:"CNR",BINARY_NUMBER_RE:"BNR",RE_STARTERS_RE:"RSR",BACKSLASH_ESCAPE:"BE",APOS_STRING_MODE:"ASM",QUOTE_STRING_MODE:"QSM",PHRASAL_WORDS_MODE:"PWM",C_LINE_COMMENT_MODE:"CLCM",C_BLOCK_COMMENT_MODE:"CBCM",HASH_COMMENT_MODE:"HCM",NUMBER_MODE:"NM",C_NUMBER_MODE:"CNM",BINARY_NUMBER_MODE:"BNM",CSS_NUMBER_MODE:"CSSNM",REGEXP_MODE:"RM",TITLE_MODE:"TM",UNDERSCORE_TITLE_MODE:"UTM",COMMENT:"C",beginRe:"bR",endRe:"eR",illegalRe:"iR",lexemesRe:"lR",terminators:"t",terminator_end:"tE"},w="",x={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},s="of and for in not or if then".split(" ");function k(e){return e.replace(/&/g,"&").replace(//g,">")}function b(e){return e.nodeName.toLowerCase()}function l(e){return t.test(e)}function d(e){var t,r={},a=Array.prototype.slice.call(arguments,1);for(t in e)r[t]=e[t];return a.forEach(function(e){for(t in e)r[t]=e[t]}),r}function p(e){var n=[];return function e(t,r){for(var a=t.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(n.push({event:"start",offset:r,node:a}),r=e(a,r),b(a).match(/br|hr|img|input/)||n.push({event:"stop",offset:r,node:a}));return r}(e,0),n}function f(e,t,r){var a=0,n="",i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function o(e){n+=""}function l(e){("start"===e.event?c:o)(e.node)}for(;e.length||t.length;){var d=s();if(n+=k(r.substring(a,d[0].offset)),a=d[0].offset,d===e){for(i.reverse().forEach(o);l(d.splice(0,1)[0]),(d=s())===e&&d.length&&d[0].offset===a;);i.reverse().forEach(c)}else"start"===d[0].event?i.push(d[0].node):i.pop(),l(d.splice(0,1)[0])}return n+k(r.substr(a))}function m(t){return t.v&&!t.cached_variants&&(t.cached_variants=t.v.map(function(e){return d(t,{v:null},e)})),t.cached_variants?t.cached_variants:function e(t){return!!t&&(t.eW||e(t.starts))}(t)?[d(t,{starts:t.starts?d(t.starts):null})]:[t]}function g(e){if(a&&!e.langApiRestored){for(var t in e.langApiRestored=!0,a)e[t]&&(e[a[t]]=e[t]);(e.c||[]).concat(e.v||[]).forEach(g)}}function _(t,a){var n={};return"string"==typeof t?r("keyword",t):i(t).forEach(function(e){r(e,t[e])}),n;function r(r,e){a&&(e=e.toLowerCase()),e.split(" ").forEach(function(e){var t=e.split("|");n[t[0]]=[r,function(e,t){return t?Number(t):function(e){return-1!=s.indexOf(e.toLowerCase())}(e)?0:1}(t[0],t[1])]})}}function E(a){function d(e){return e&&e.source||e}function u(e,t){return new RegExp(d(e),"m"+(a.cI?"i":"")+(t?"g":""))}function n(n){var i,e,s={},c=[],o={},r=1;function t(e,t){s[r]=e,c.push([e,t]),r+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(t)+1}for(var a=0;a')+t+(r?"":w)}function o(){m+=null!=p.sL?function(){var e="string"==typeof p.sL;if(e&&!N[p.sL])return k(g);var t=e?M(p.sL,g,!0,f[p.sL]):C(g,p.sL.length?p.sL:void 0);return 0")+'"');if("end"===t.type){var a=function(e){var t=e[0],r=s(p,t);if(r){var a=p;for(a.skip?g+=t:(a.rE||a.eE||(g+=t),o(),a.eE&&(g=t));p.cN&&(m+=w),p.skip||p.sL||(_+=p.relevance),(p=p.parent)!==r.parent;);return r.starts&&(r.endSameAsBegin&&(r.starts.eR=r.eR),l(r.starts)),a.rE?0:t.length}}(t);if(null!=a)return a}return g+=r,r.length}var b=B(e);if(!b)throw new Error('Unknown language: "'+e+'"');E(b);var a,p=t||b,f={},m="";for(a=p;a!==b;a=a.parent)a.cN&&(m=c(a.cN,"",!0)+m);var g="",_=0;try{for(var h,v,y=0;p.t.lastIndex=y,h=p.t.exec(n);)v=r(n.substring(y,h.index),h),y=h.index+v;for(r(n.substr(y)),a=p;a.parent;a=a.parent)a.cN&&(m+=w);return{relevance:_,value:m,i:!1,language:e,top:p}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{i:!0,relevance:0,value:k(n)};throw e}}function C(r,e){e=e||x.languages||i(N);var a={relevance:0,value:k(r)},n=a;return e.filter(B).filter(R).forEach(function(e){var t=M(e,r,!1);t.language=e,t.relevance>n.relevance&&(n=t),t.relevance>a.relevance&&(n=a,a=t)}),n.language&&(a.second_best=n),a}function h(e){return x.tabReplace||x.useBR?e.replace(r,function(e,t){return x.useBR&&"\n"===e?"
":x.tabReplace?t.replace(/\t/g,x.tabReplace):""}):e}function v(e){var t,r,a,n,i,s=function(e){var t,r,a,n,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",r=o.exec(i))return B(r[1])?r[1]:"no-highlight";for(t=0,a=(i=i.split(/\s+/)).length;t/g,"\n"):t=e,i=t.textContent,a=s?M(s,i,!0):C(i),(r=p(t)).length&&((n=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=a.value,a.value=f(r,p(n),i)),a.value=h(a.value),e.innerHTML=a.value,e.className=function(e,t,r){var a=t?c[t]:r,n=[e.trim()];return e.match(/\bhljs\b/)||n.push("hljs"),-1===e.indexOf(a)&&n.push(a),n.join(" ").trim()}(e.className,s,a.language),e.result={language:a.language,re:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance}))}function y(){if(!y.called){y.called=!0;var e=document.querySelectorAll("pre code");u.forEach.call(e,v)}}function B(e){return e=(e||"").toLowerCase(),N[e]||N[c[e]]}function R(e){var t=B(e);return t&&!t.disableAutodetect}return n.highlight=M,n.highlightAuto=C,n.fixMarkup=h,n.highlightBlock=v,n.configure=function(e){x=d(x,e)},n.initHighlighting=y,n.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",y,!1),addEventListener("load",y,!1)},n.registerLanguage=function(t,e){var r=N[t]=e(n);g(r),r.rawDefinition=e.bind(null,n),r.aliases&&r.aliases.forEach(function(e){c[e]=t})},n.listLanguages=function(){return i(N)},n.getLanguage=B,n.autoDetection=R,n.inherit=d,n.IR=n.IDENT_RE="[a-zA-Z]\\w*",n.UIR=n.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",n.NR=n.NUMBER_RE="\\b\\d+(\\.\\d+)?",n.CNR=n.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",n.BNR=n.BINARY_NUMBER_RE="\\b(0b[01]+)",n.RSR=n.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",n.BE=n.BACKSLASH_ESCAPE={b:"\\\\[\\s\\S]",relevance:0},n.ASM=n.APOS_STRING_MODE={cN:"string",b:"'",e:"'",i:"\\n",c:[n.BE]},n.QSM=n.QUOTE_STRING_MODE={cN:"string",b:'"',e:'"',i:"\\n",c:[n.BE]},n.PWM=n.PHRASAL_WORDS_MODE={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},n.C=n.COMMENT=function(e,t,r){var a=n.inherit({cN:"comment",b:e,e:t,c:[]},r||{});return a.c.push(n.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),a},n.CLCM=n.C_LINE_COMMENT_MODE=n.C("//","$"),n.CBCM=n.C_BLOCK_COMMENT_MODE=n.C("/\\*","\\*/"),n.HCM=n.HASH_COMMENT_MODE=n.C("#","$"),n.NM=n.NUMBER_MODE={cN:"number",b:n.NR,relevance:0},n.CNM=n.C_NUMBER_MODE={cN:"number",b:n.CNR,relevance:0},n.BNM=n.BINARY_NUMBER_MODE={cN:"number",b:n.BNR,relevance:0},n.CSSNM=n.CSS_NUMBER_MODE={cN:"number",b:n.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},n.RM=n.REGEXP_MODE={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[n.BE,{b:/\[/,e:/\]/,relevance:0,c:[n.BE]}]},n.TM=n.TITLE_MODE={cN:"title",b:n.IR,relevance:0},n.UTM=n.UNDERSCORE_TITLE_MODE={cN:"title",b:n.UIR,relevance:0},n.METHOD_GUARD={b:"\\.\\s*"+n.UIR,relevance:0},n.registerLanguage("apache",function(e){var t={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"section",b:""},{cN:"attribute",b:/\w+/,relevance:0,k:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,relevance:0,k:{literal:"on off all"},c:[{cN:"meta",b:"\\s\\[",e:"\\]$"},{cN:"variable",b:"[\\$%]\\{",e:"\\}",c:["self",t]},t,e.QSM]}}],i:/\S/}}),n.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},r={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]};return{aliases:["sh","zsh"],l:/\b-?[a-z\._]+\b/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,relevance:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],relevance:0},e.HCM,r,{cN:"",b:/\\"/},{cN:"string",b:/'/,e:/'/},t]}}),n.registerLanguage("coffeescript",function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super yield import export from as default await then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},r="[A-Za-z$_][0-9A-Za-z$_]*",a={cN:"subst",b:/#\{/,e:/}/,k:t},n=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",relevance:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,a]},{b:/"/,e:/"/,c:[e.BE,a]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[a,e.HCM]},{b:"//[gim]*",relevance:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W)/}]},{b:"@"+r},{sL:"javascript",eB:!0,eE:!0,v:[{b:"```",e:"```"},{b:"`",e:"`"}]}];a.c=n;var i=e.inherit(e.TM,{b:r}),s="(\\(.*\\))?\\s*\\B[-=]>",c={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(n)}]};return{aliases:["coffee","cson","iced"],k:t,i:/\/\*/,c:n.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+r+"\\s*=\\s*"+s,e:"[-=]>",rB:!0,c:[i,c]},{b:/[:\(,=]\s*/,relevance:0,c:[{cN:"function",b:s,e:"[-=]>",rB:!0,c:[c]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{b:r+":",e:":",rB:!0,rE:!0,relevance:0}])}}),n.registerLanguage("cpp",function(e){var t={cN:"keyword",b:"\\b[a-z\\d_]*_t\\b"},r={cN:"string",v:[{b:'(u8?|U|L)?"',e:'"',i:"\\n",c:[e.BE]},{b:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",e:"'",i:"."},{b:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\((?:.|\n)*?\)\1"/}]},a={cN:"number",v:[{b:"\\b(0b[01']+)"},{b:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{b:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},n={cN:"meta",b:/#\s*[a-z]+\b/,e:/$/,k:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},c:[{b:/\\\n/,relevance:0},e.inherit(r,{cN:"meta-string"}),{cN:"meta-string",b:/<[^\n>]*>/,e:/$/,i:"\\n"},e.CLCM,e.CBCM]},i=e.IR+"\\s*\\(",s={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and or not",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"},c=[t,e.CLCM,e.CBCM,a,r];return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],k:s,i:"",k:s,c:["self",t]},{b:e.IR+"::",k:s},{v:[{b:/=/,e:/;/},{b:/\(/,e:/\)/},{bK:"new throw return else",e:/;/}],k:s,c:c.concat([{b:/\(/,e:/\)/,k:s,c:c.concat(["self"]),relevance:0}]),relevance:0},{cN:"function",b:"("+e.IR+"[\\*&\\s]+)+"+i,rB:!0,e:/[{;=]/,eE:!0,k:s,i:/[^\w\s\*&]/,c:[{b:i,rB:!0,c:[e.TM],relevance:0},{cN:"params",b:/\(/,e:/\)/,k:s,relevance:0,c:[e.CLCM,e.CBCM,r,a,t,{b:/\(/,e:/\)/,k:s,relevance:0,c:["self",e.CLCM,e.CBCM,r,a,t]}]},e.CLCM,e.CBCM,n]},{cN:"class",bK:"class struct",e:/[{;:]/,c:[{b://,c:["self"]},e.TM]}]),exports:{preprocessor:n,strings:r,k:s}}}),n.registerLanguage("cs",function(e){var t={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let nameof on orderby partial remove select set value var when where yield",literal:"null false true"},r={cN:"number",v:[{b:"\\b(0b[01']+)"},{b:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{b:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},a={cN:"string",b:'@"',e:'"',c:[{b:'""'}]},n=e.inherit(a,{i:/\n/}),i={cN:"subst",b:"{",e:"}",k:t},s=e.inherit(i,{i:/\n/}),c={cN:"string",b:/\$"/,e:'"',i:/\n/,c:[{b:"{{"},{b:"}}"},e.BE,s]},o={cN:"string",b:/\$@"/,e:'"',c:[{b:"{{"},{b:"}}"},{b:'""'},i]},l=e.inherit(o,{i:/\n/,c:[{b:"{{"},{b:"}}"},{b:'""'},s]});i.c=[o,c,a,e.ASM,e.QSM,r,e.CBCM],s.c=[l,c,n,e.ASM,e.QSM,r,e.inherit(e.CBCM,{i:/\n/})];var d={v:[o,c,a,e.ASM,e.QSM]},u=e.IR+"(<"+e.IR+"(\\s*,\\s*"+e.IR+")*>)?(\\[\\])?";return{aliases:["csharp","c#"],k:t,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"doctag",v:[{b:"///",relevance:0},{b:"\x3c!--|--\x3e"},{b:""}]}]}),e.CLCM,e.CBCM,{cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},d,r,{bK:"class interface",e:/[{;=]/,i:/[^\s:,]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"namespace",e:/[{;=]/,i:/[^\s:]/,c:[e.inherit(e.TM,{b:"[a-zA-Z](\\.?\\w)*"}),e.CLCM,e.CBCM]},{cN:"meta",b:"^\\s*\\[",eB:!0,e:"\\]",eE:!0,c:[{cN:"meta-string",b:/"/,e:/"/}]},{bK:"new return throw await else",relevance:0},{cN:"function",b:"("+u+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/\s*[{;=]/,eE:!0,k:t,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],relevance:0},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,relevance:0,c:[d,r,e.CBCM]},e.CLCM,e.CBCM]}]}}),n.registerLanguage("css",function(e){var t={b:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,relevance:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}}),n.registerLanguage("diff",function(e){return{aliases:["patch"],c:[{cN:"meta",relevance:10,v:[{b:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"comment",v:[{b:/Index: /,e:/$/},{b:/={3,}/,e:/$/},{b:/^\-{3}/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+{3}/,e:/$/},{b:/^\*{15}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"addition",b:"^\\!",e:"$"}]}}),n.registerLanguage("go",function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:t,i:")?\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.UIR+"\\s*\\(",rB:!0,relevance:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:t,relevance:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},r,{cN:"meta",b:"@[A-Za-z]+"}]}}),n.registerLanguage("javascript",function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",r={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},a={cN:"number",v:[{b:"\\b(0[bB][01]+)n?"},{b:"\\b(0[oO][0-7]+)n?"},{b:e.CNR+"n?"}],relevance:0},n={cN:"subst",b:"\\$\\{",e:"\\}",k:r,c:[]},i={b:"html`",e:"",starts:{e:"`",rE:!1,c:[e.BE,n],sL:"xml"}},s={b:"css`",e:"",starts:{e:"`",rE:!1,c:[e.BE,n],sL:"css"}},c={cN:"string",b:"`",e:"`",c:[e.BE,n]};n.c=[e.ASM,e.QSM,i,s,c,a,e.RM];var o=n.c.concat([e.CBCM,e.CLCM]);return{aliases:["js","jsx"],k:r,c:[{cN:"meta",relevance:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,i,s,c,e.CLCM,e.CBCM,a,{b:/[{,\n]\s*/,relevance:0,c:[{b:t+"\\s*:",rB:!0,relevance:0,c:[{cN:"attr",b:t,relevance:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+t+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:t},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:r,c:o}]}]},{cN:"",b:/\s/,e:/\s*/,skip:!0},{b://,sL:"xml",c:[{b:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{b:/<[A-Za-z0-9\\._:-]+/,e:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,c:[{b:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:t}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:o}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor get set",e:/\{/,eE:!0}],i:/#(?!!)/}}),n.registerLanguage("json",function(e){var t={literal:"true false null"},r=[e.CLCM,e.CBCM],a=[e.QSM,e.CNM],n={e:",",eW:!0,eE:!0,c:a,k:t},i={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(n,{b:/:/})].concat(r),i:"\\S"},s={b:"\\[",e:"\\]",c:[e.inherit(n)],i:"\\S"};return a.push(i,s),r.forEach(function(e){a.push(e)}),{c:a,k:t,i:"\\S"}}),n.registerLanguage("kotlin",function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={cN:"symbol",b:e.UIR+"@"},a={cN:"subst",b:"\\${",e:"}",c:[e.CNM]},n={cN:"variable",b:"\\$"+e.UIR},i={cN:"string",v:[{b:'"""',e:'"""',c:[n,a]},{b:"'",e:"'",i:/\n/,c:[e.BE]},{b:'"',e:'"',i:/\n/,c:[e.BE,n,a]}]};a.c.push(i);var s={cN:"meta",b:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UIR+")?"},c={cN:"meta",b:"@"+e.UIR,c:[{b:/\(/,e:/\)/,c:[e.inherit(i,{cN:"meta-string"})]}]},o={cN:"number",b:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0},l=e.C("/\\*","\\*/",{c:[e.CBCM]}),d={v:[{cN:"type",b:e.UIR},{b:/\(/,e:/\)/,c:[]}]},u=d;return u.v[1].c=[d],d.v[1].c=[u],{aliases:["kt"],k:t,c:[e.C("/\\*\\*","\\*/",{relevance:0,c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,l,{cN:"keyword",b:/\b(break|continue|return|this)\b/,starts:{c:[{cN:"symbol",b:/@\w+/}]}},r,s,c,{cN:"function",bK:"fun",e:"[(]|$",rB:!0,eE:!0,k:t,i:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,c:[{b:e.UIR+"\\s*\\(",rB:!0,relevance:0,c:[e.UTM]},{cN:"type",b://,k:"reified",relevance:0},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:t,relevance:0,c:[{b:/:/,e:/[=,\/]/,eW:!0,c:[d,e.CLCM,l],relevance:0},e.CLCM,l,s,c,i,e.CNM]},l]},{cN:"class",bK:"class interface trait",e:/[:\{(]|$/,eE:!0,i:"extends implements",c:[{bK:"public protected internal private constructor"},e.UTM,{cN:"type",b://,eB:!0,eE:!0,relevance:0},{cN:"type",b:/[,:]\s*/,e:/[<\(,]|$/,eB:!0,rE:!0},s,c]},i,{cN:"meta",b:"^#!/usr/bin/env",e:"$",i:"\n"},o]}}),n.registerLanguage("less",function(e){function t(e){return{cN:"string",b:"~?"+e+".*?"+e}}function r(e,t,r){return{cN:e,b:t,relevance:r}}var a="[\\w-]+",n="("+a+"|@{"+a+"})",i=[],s=[],c={b:"\\(",e:"\\)",c:s,relevance:0};s.push(e.CLCM,e.CBCM,t("'"),t('"'),e.CSSNM,{b:"(url|data-uri)\\(",starts:{cN:"string",e:"[\\)\\n]",eE:!0}},r("number","#[0-9A-Fa-f]+\\b"),c,r("variable","@@?"+a,10),r("variable","@{"+a+"}"),r("built_in","~?`[^`]*?`"),{cN:"attribute",b:a+"\\s*:",e:":",rB:!0,eE:!0},{cN:"meta",b:"!important"});var o=s.concat({b:"{",e:"}",c:i}),l={bK:"when",eW:!0,c:[{bK:"and not"}].concat(s)},d={b:n+"\\s*:",rB:!0,e:"[;}]",relevance:0,c:[{cN:"attribute",b:n,e:":",eE:!0,starts:{eW:!0,i:"[<=$]",relevance:0,c:s}}]},u={cN:"keyword",b:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{e:"[;{}]",rE:!0,c:s,relevance:0}},b={cN:"variable",v:[{b:"@"+a+"\\s*:",relevance:15},{b:"@"+a}],starts:{e:"[;}]",rE:!0,c:o}},p={v:[{b:"[\\.#:&\\[>]",e:"[;{}]"},{b:n,e:"{"}],rB:!0,rE:!0,i:"[<='$\"]",relevance:0,c:[e.CLCM,e.CBCM,l,r("keyword","all\\b"),r("variable","@{"+a+"}"),r("selector-tag",n+"%?",0),r("selector-id","#"+n),r("selector-class","\\."+n,0),r("selector-tag","&",0),{cN:"selector-attr",b:"\\[",e:"\\]"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"\\(",e:"\\)",c:o},{b:"!important"}]};return i.push(e.CLCM,e.CBCM,u,b,d,p),{cI:!0,i:"[=>'/<($\"]",c:i}}),n.registerLanguage("lua",function(e){var t="\\[=*\\[",r="\\]=*\\]",a={b:t,e:r,c:["self"]},n=[e.C("--(?!"+t+")","$"),e.C("--"+t,r,{c:[a],relevance:10})];return{l:e.UIR,k:{literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstringmodule next pairs pcall print rawequal rawget rawset require select setfenvsetmetatable tonumber tostring type unpack xpcall arg selfcoroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},c:n.concat([{cN:"function",bK:"function",e:"\\)",c:[e.inherit(e.TM,{b:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{cN:"params",b:"\\(",eW:!0,c:n}].concat(n)},e.CNM,e.ASM,e.QSM,{cN:"string",b:t,e:r,c:[a],relevance:5}])}}),n.registerLanguage("makefile",function(e){var t={cN:"variable",v:[{b:"\\$\\("+e.UIR+"\\)",c:[e.BE]},{b:/\$[@%`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],cI:!0,c:[{cN:"meta",b:"",relevance:10,c:[{b:"\\[",e:"\\]"}]},e.C("\x3c!--","--\x3e",{relevance:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",relevance:10},{cN:"meta",b:/<\?xml/,e:/\?>/,relevance:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0},{b:'b"',e:'"',skip:!0},{b:"b'",e:"'",skip:!0},e.inherit(e.ASM,{i:null,cN:null,c:null,skip:!0}),e.inherit(e.QSM,{i:null,cN:null,c:null,skip:!0})]},{cN:"tag",b:")",e:">",k:{name:"style"},c:[t],starts:{e:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:")",e:">",k:{name:"script"},c:[t],starts:{e:"<\/script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"tag",b:"",c:[{cN:"name",b:/[^\/><\s]+/,relevance:0},t]}]}}),n.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",relevance:0},{cN:"bullet",b:"^\\s*([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",relevance:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```\\w*\\s*$",e:"^```[ ]*$"},{b:"`.+?`"},{b:"^( {4}|\\t)",e:"$",relevance:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,relevance:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],relevance:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}}),n.registerLanguage("nginx",function(e){var t={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},r={eW:!0,l:"[a-z/_]+",k:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,t],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[t]},{cN:"regexp",c:[e.BE,t],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s+{",rB:!0,e:"{",c:[{cN:"section",b:e.UIR}],relevance:0},{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"attribute",b:e.UIR,starts:r}],relevance:0}],i:"[^\\s\\}]"}}),n.registerLanguage("objectivec",function(e){var t=/[a-zA-Z@][a-zA-Z0-9_]*/,r="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],k:{keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},l:t,i:""}]}]},{cN:"class",b:"("+r.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:r,l:t,c:[e.UTM]},{b:"\\."+e.UIR,relevance:0}]}}),n.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",r={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},a={b:"->{",e:"}"},n={v:[{b:/\$\d/},{b:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{b:/[\$%@][^\s\w{]/,relevance:0}]},i=[e.BE,r,n],s=[n,e.HCM,e.C("^\\=\\w","\\=cut",{eW:!0}),a,{cN:"string",c:i,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",relevance:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",relevance:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",relevance:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",relevance:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",relevance:5},{b:"qw\\s+q",e:"q",relevance:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],relevance:0},{b:"-?\\w+\\s*\\=\\>",c:[],relevance:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",relevance:0,c:[e.HCM,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],relevance:0}]},{cN:"function",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",eE:!0,relevance:5,c:[e.TM]},{b:"-\\w\\b",relevance:0},{b:"^__DATA__$",e:"^__END__$",sL:"mojolicious",c:[{b:"^@@.*",e:"$",cN:"comment"}]}];return r.c=s,{aliases:["pl","pm"],l:/[\w\.]+/,k:t,c:a.c=s}}),n.registerLanguage("php",function(e){var t={b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},r={cN:"meta",b:/<\?(php)?|\?>/},a={cN:"string",c:[e.BE,r],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},n={v:[e.BNM,e.CNM]};return{aliases:["php","php3","php4","php5","php6","php7"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.HCM,e.C("//","$",{c:[r]}),e.C("/\\*","\\*/",{c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:/<<<['"]?\w+['"]?$/,e:/^\w+;?$/,c:[e.BE,{cN:"subst",v:[{b:/\$\w+/},{b:/\{\$/,e:/\}/}]}]},r,{cN:"keyword",b:/\$this\b/},t,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",t,e.CBCM,a,n]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},a,n]}}),n.registerLanguage("plaintext",function(e){return{disableAutodetect:!0}}),n.registerLanguage("properties",function(e){var t="[ \\t\\f]*",r="("+t+"[:=]"+t+"|[ \\t\\f]+)",a="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",n="([^\\\\:= \\t\\f\\n]|\\\\.)+",i={e:r,relevance:0,starts:{cN:"string",e:/$/,relevance:0,c:[{b:"\\\\\\n"}]}};return{cI:!0,i:/\S/,c:[e.C("^\\s*[!#]","$"),{b:a+r,rB:!0,c:[{cN:"attr",b:a,endsParent:!0,relevance:0}],starts:i},{b:n+r,rB:!0,relevance:0,c:[{cN:"meta",b:n,endsParent:!0,relevance:0}],starts:i},{cN:"attr",relevance:0,b:n+t+"$"}]}}),n.registerLanguage("python",function(e){var t={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},r={cN:"meta",b:/^(>>>|\.\.\.) /},a={cN:"subst",b:/\{/,e:/\}/,k:t,i:/#/},n={b:/\{\{/,relevance:0},i={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[e.BE,r],relevance:10},{b:/(u|b)?r?"""/,e:/"""/,c:[e.BE,r],relevance:10},{b:/(fr|rf|f)'''/,e:/'''/,c:[e.BE,r,n,a]},{b:/(fr|rf|f)"""/,e:/"""/,c:[e.BE,r,n,a]},{b:/(u|r|ur)'/,e:/'/,relevance:10},{b:/(u|r|ur)"/,e:/"/,relevance:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},{b:/(fr|rf|f)'/,e:/'/,c:[e.BE,n,a]},{b:/(fr|rf|f)"/,e:/"/,c:[e.BE,n,a]},e.ASM,e.QSM]},s={cN:"number",relevance:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},c={cN:"params",b:/\(/,e:/\)/,c:["self",r,s,i,e.HCM]};return a.c=[i,s,r],{aliases:["py","gyp","ipython"],k:t,i:/(<\/|->|\?)|=>/,c:[r,s,i,e.HCM,{v:[{cN:"function",bK:"def"},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,c,{b:/->/,eW:!0,k:"None"}]},{cN:"meta",b:/^[\t ]*@/,e:/$/},{b:/\b(print|exec)\(/}]}}),n.registerLanguage("ruby",function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},a={cN:"doctag",b:"@[A-Za-z]+"},n={b:"#<",e:">"},i=[e.C("#","$",{c:[a]}),e.C("^\\=begin","^\\=end",{c:[a],relevance:10}),e.C("^__END__","\\n$")],s={cN:"subst",b:"#\\{",e:"}",k:r},c={cN:"string",c:[e.BE,s],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{b:/<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/,rB:!0,c:[{b:/<<[-~]?'?/},{b:/\w+/,endSameAsBegin:!0,c:[e.BE,s]}]}]},o={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:r},l=[c,n,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+e.IR+"::)?"+e.IR}]}].concat(i)},{cN:"function",bK:"def",e:"$|;",c:[e.inherit(e.TM,{b:t}),o].concat(i)},{b:e.IR+"::"},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",relevance:0},{cN:"symbol",b:":(?!\\s)",c:[c,{b:t}],relevance:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{cN:"params",b:/\|/,e:/\|/,k:r},{b:"("+e.RSR+"|unless)\\s*",k:"unless",c:[n,{cN:"regexp",c:[e.BE,s],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(i),relevance:0}].concat(i);s.c=l;var d=[{b:/^\s*=>/,starts:{e:"$",c:o.c=l}},{cN:"meta",b:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{e:"$",c:l}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,i:/\/\*/,c:i.concat(d).concat(l)}}),n.registerLanguage("rust",function(e){var t="([ui](8|16|32|64|128|size)|f(32|64))?",r="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{aliases:["rs"],k:{keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:r},l:e.IR+"!?",i:""}]}}),n.registerLanguage("scss",function(e){var t={cN:"variable",b:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},r={cN:"number",b:"#[0-9A-Fa-f]+"};e.CSSNM,e.QSM,e.ASM,e.CBCM;return{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,{cN:"selector-id",b:"\\#[A-Za-z0-9_-]+",relevance:0},{cN:"selector-class",b:"\\.[A-Za-z0-9_-]+",relevance:0},{cN:"selector-attr",b:"\\[",e:"\\]",i:"$"},{cN:"selector-tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{cN:"attribute",b:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{b:":",e:";",c:[t,r,e.CSSNM,e.QSM,e.ASM,{cN:"meta",b:"!important"}]},{b:"@",e:"[{;]",k:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",c:[t,e.QSM,e.ASM,r,e.CSSNM,{b:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}),n.registerLanguage("shell",function(e){return{aliases:["console"],c:[{cN:"meta",b:"^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]",starts:{e:"$",sL:"bash"}}]}}),n.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>{}*]/,c:[{bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",e:/;/,eW:!0,l:/[\w\.]+/,k:{keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t,e.HCM]},e.CBCM,t,e.HCM]}}),n.registerLanguage("swift",function(e){var t={keyword:"#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},r=e.C("/\\*","\\*/",{c:["self"]}),a={cN:"subst",b:/\\\(/,e:"\\)",k:t,c:[]},n={cN:"string",c:[e.BE,a],v:[{b:/"""/,e:/"""/},{b:/"/,e:/"/}]},i={cN:"number",b:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0};return a.c=[i],{k:t,c:[n,e.CLCM,r,{cN:"type",b:"\\b[A-Z][\\wÀ-ʸ']*[!?]"},{cN:"type",b:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},i,{cN:"function",bK:"func",e:"{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{b://},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:t,c:["self",i,n,e.CBCM,{b:":"}],i:/["']/}],i:/\[|%/},{cN:"class",bK:"struct protocol class extension enum",k:t,e:"\\{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{cN:"meta",b:"(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|@propertyWrapper)"},{bK:"import",e:/$/,c:[e.CLCM,r]}]}}),n.registerLanguage("typescript",function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",r={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},a={cN:"meta",b:"@"+t},n={b:"\\(",e:/\)/,k:r,c:["self",e.QSM,e.ASM,e.NM]},i={cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:r,c:[e.CLCM,e.CBCM,a,n]},s={cN:"number",v:[{b:"\\b(0[bB][01]+)n?"},{b:"\\b(0[oO][0-7]+)n?"},{b:e.CNR+"n?"}],relevance:0},c={cN:"subst",b:"\\$\\{",e:"\\}",k:r,c:[]},o={b:"html`",e:"",starts:{e:"`",rE:!1,c:[e.BE,c],sL:"xml"}},l={b:"css`",e:"",starts:{e:"`",rE:!1,c:[e.BE,c],sL:"css"}},d={cN:"string",b:"`",e:"`",c:[e.BE,c]};return c.c=[e.ASM,e.QSM,o,l,d,s,e.RM],{aliases:["ts"],k:r,c:[{cN:"meta",b:/^\s*['"]use strict['"]/},e.ASM,e.QSM,o,l,d,e.CLCM,e.CBCM,s,{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+e.IR+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:e.IR},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:r,c:["self",e.CLCM,e.CBCM]}]}]}],relevance:0},{cN:"function",bK:"function",e:/[\{;]/,eE:!0,k:r,c:["self",e.inherit(e.TM,{b:t}),i],i:/%/,relevance:0},{bK:"constructor",e:/[\{;]/,eE:!0,c:["self",i]},{b:/module\./,k:{built_in:"module"},relevance:0},{bK:"module",e:/\{/,eE:!0},{bK:"interface",e:/\{/,eE:!0,k:"interface extends"},{b:/\$[(.]/},{b:"\\."+e.IR,relevance:0},a,n]}}),n.registerLanguage("yaml",function(e){var t="true false yes no null",r={cN:"string",relevance:0,v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/\S+/}],c:[e.BE,{cN:"template-variable",v:[{b:"{{",e:"}}"},{b:"%{",e:"}"}]}]};return{cI:!0,aliases:["yml","YAML","yaml"],c:[{cN:"attr",v:[{b:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{b:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{b:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{cN:"meta",b:"^---s*$",relevance:10},{cN:"string",b:"[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*"},{b:"<%[%=-]?",e:"[%-]?%>",sL:"ruby",eB:!0,eE:!0,relevance:0},{cN:"type",b:"!"+e.UIR},{cN:"type",b:"!!"+e.UIR},{cN:"meta",b:"&"+e.UIR+"$"},{cN:"meta",b:"\\*"+e.UIR+"$"},{cN:"bullet",b:"\\-(?=[ ]|$)",relevance:0},e.HCM,{bK:t,k:{literal:t}},{cN:"number",b:e.CNR+"\\b"},r]}}),n}); -------------------------------------------------------------------------------- /vendor/jwt-decode.js: -------------------------------------------------------------------------------- 1 | /* 2 | https://github.com/auth0/jwt-decode 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2015 Auth0, Inc. (http://auth0.com) 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | */ 26 | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g>(-2*g&6)):0)e=f.indexOf(e);return i}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.prototype=new Error,d.prototype.name="InvalidCharacterError",b.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||e},{}],2:[function(a,b,c){function d(a){return decodeURIComponent(e(a).replace(/(.)/g,function(a,b){var c=b.charCodeAt(0).toString(16).toUpperCase();return c.length<2&&(c="0"+c),"%"+c}))}var e=a("./atob");b.exports=function(a){var b=a.replace(/-/g,"+").replace(/_/g,"/");switch(b.length%4){case 0:break;case 2:b+="==";break;case 3:b+="=";break;default:throw"Illegal base64url string!"}try{return d(b)}catch(c){return e(b)}}},{"./atob":1}],3:[function(a,b,c){"use strict";function d(a){this.message=a}var e=a("./base64_url_decode");d.prototype=new Error,d.prototype.name="InvalidTokenError",b.exports=function(a,b){if("string"!=typeof a)throw new d("Invalid token specified");b=b||{};var c=b.header===!0?0:1;try{return JSON.parse(e(a.split(".")[c]))}catch(f){throw new d("Invalid token specified: "+f.message)}},b.exports.InvalidTokenError=d},{"./base64_url_decode":2}],4:[function(a,b,c){(function(b){var c=a("./lib/index");"function"==typeof b.window.define&&b.window.define.amd?b.window.define("jwt_decode",function(){return c}):b.window&&(b.window.jwt_decode=c)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/index":3}]},{},[4]); -------------------------------------------------------------------------------- /vendor/marked.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * marked - a markdown parser 3 | * Copyright (c) 2011-2022, Christopher Jeffrey. (MIT Licensed) 4 | * https://github.com/markedjs/marked 5 | */ 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).marked={})}(this,function(r){"use strict";function i(e,t){for(var u=0;ue.length)&&(t=e.length);for(var u=0,n=new Array(t);u=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}r.defaults=e();function u(e){return t[e]}var n=/[&<>"']/,l=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,t={"&":"&","<":"<",">":">",'"':""","'":"'"};function D(e,t){if(t){if(n.test(e))return e.replace(l,u)}else if(a.test(e))return e.replace(o,u);return e}var c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(c,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var h=/(^|[^\[])\^/g;function p(u,e){u=u.source||u,e=e||"";var n={replace:function(e,t){return t=(t=t.source||t).replace(h,"$1"),u=u.replace(e,t),n},getRegex:function(){return new RegExp(u,e)}};return n}var f=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function F(e,t,u){if(e){var n;try{n=decodeURIComponent(m(u)).replace(f,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!g.test(u)&&(u=function(e,t){A[" "+e]||(d.test(e)?A[" "+e]=e+"/":A[" "+e]=w(e,"/",!0));var u=-1===(e=A[" "+e]).indexOf(":");return"//"===t.substring(0,2)?u?t:e.replace(C,"$1")+t:"/"===t.charAt(0)?u?t:e.replace(k,"$1")+t:e+t}(t,u));try{u=encodeURI(u).replace(/%25/g,"%")}catch(e){return null}return u}var A={},d=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;var E={exec:function(){}};function b(e){for(var t,u,n=1;nt)u.splice(t);else for(;u.length>=1,e+=e;return u+e}function _(e,t,u,n){var r=t.href,i=t.title?D(t.title):null,t=e[1].replace(/\\([\[\]])/g,"$1");if("!"===e[0].charAt(0))return{type:"image",raw:u,href:r,title:i,text:D(t)};n.state.inLink=!0;t={type:"link",raw:u,href:r,title:i,text:t,tokens:n.inlineTokens(t,[])};return n.state.inLink=!1,t}var z=function(){function e(e){this.options=e||r.defaults}var t=e.prototype;return t.space=function(e){e=this.rules.block.newline.exec(e);if(e&&0=u.length?e.slice(u.length):e}).join("\n")}(u,t[3]||"");return{type:"code",raw:u,lang:t[2]&&t[2].trim(),text:e}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var u=t[2].trim();/#$/.test(u)&&(e=w(u,"#"),!this.options.pedantic&&e&&!/ $/.test(e)||(u=e.trim()));u={type:"heading",raw:t[0],depth:t[1].length,text:u,tokens:[]};return this.lexer.inline(u.text,u.tokens),u}},t.hr=function(e){e=this.rules.block.hr.exec(e);if(e)return{type:"hr",raw:e[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var u,n,r,i,s,l,a,o,D,c,h,p=1<(g=t[1].trim()).length,f={type:"list",raw:"",ordered:p,start:p?+g.slice(0,-1):"",loose:!1,items:[]},g=p?"\\d{1,9}\\"+g.slice(-1):"\\"+g;this.options.pedantic&&(g=p?g:"[*+-]");for(var F=new RegExp("^( {0,3}"+g+")((?: [^\\n]*)?(?:\\n|$))");e&&(h=!1,t=F.exec(e))&&!this.rules.block.hr.test(e);){if(u=t[0],e=e.substring(u.length),a=t[2].split("\n",1)[0],o=e.split("\n",1)[0],this.options.pedantic?(i=2,c=a.trimLeft()):(i=t[2].search(/[^ ]/),c=a.slice(i=4=i||!a.trim())c+="\n"+a.slice(i);else{if(s)break;c+="\n"+a}s||a.trim()||(s=!0),u+=D+"\n",e=e.substring(D.length+1)}f.loose||(l?f.loose=!0:/\n *\n *$/.test(u)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(c))&&(r="[ ] "!==n[0],c=c.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:u,task:!!n,checked:r,loose:!1,text:c}),f.raw+=u}f.items[f.items.length-1].raw=u.trimRight(),f.items[f.items.length-1].text=c.trimRight(),f.raw=f.raw.trimRight();for(var d=f.items.length,C=0;C/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):D(e[0]):e[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;var u=w(e.slice(0,-1),"\\");if((e.length-u.length)%2==0)return}else{var n=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var u=e.length,n=0,r=0;r$/.test(e)?u.slice(1):u.slice(1,-1):u)&&u.replace(this.rules.inline._escapes,"$1"),title:n&&n.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}},t.reflink=function(e,t){if((u=this.rules.inline.reflink.exec(e))||(u=this.rules.inline.nolink.exec(e))){var e=(u[2]||u[1]).replace(/\s+/g," ");if((e=t[e.toLowerCase()])&&e.href)return _(u,e,u[0],this.lexer);var u=u[0].charAt(0);return{type:"text",raw:u,text:u}}},t.emStrong=function(e,t,u){void 0===u&&(u="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!u.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=n[1]||n[2]||"";if(!r||""===u||this.rules.inline.punctuation.exec(u)){var i,s=n[0].length-1,l=s,a=0,o="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+s);null!=(n=o.exec(t));)if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(i=i.length,n[3]||n[4])l+=i;else if(!((n[5]||n[6])&&s%3)||(s+i)%3){if(!(0<(l-=i))){if(i=Math.min(i,i+l+a),Math.min(s,i)%2){var D=e.slice(1,s+n.index+i);return{type:"em",raw:e.slice(0,s+n.index+i+1),text:D,tokens:this.lexer.inlineTokens(D,[])}}D=e.slice(2,s+n.index+i-1);return{type:"strong",raw:e.slice(0,s+n.index+i+1),text:D,tokens:this.lexer.inlineTokens(D,[])}}}else a+=i}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var u=t[2].replace(/\n/g," "),n=/[^ ]/.test(u),e=/^ /.test(u)&&/ $/.test(u),u=D(u=n&&e?u.substring(1,u.length-1):u,!0);return{type:"codespan",raw:t[0],text:u}}},t.br=function(e){e=this.rules.inline.br.exec(e);if(e)return{type:"br",raw:e[0]}},t.del=function(e){e=this.rules.inline.del.exec(e);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}},t.autolink=function(e,t){e=this.rules.inline.autolink.exec(e);if(e){var u,t="@"===e[2]?"mailto:"+(u=D(this.options.mangle?t(e[1]):e[1])):u=D(e[1]);return{type:"link",raw:e[0],text:u,href:t,tokens:[{type:"text",raw:u,text:u}]}}},t.url=function(e,t){var u,n,r,i;if(u=this.rules.inline.url.exec(e)){if("@"===u[2])r="mailto:"+(n=D(this.options.mangle?t(u[0]):u[0]));else{for(;i=u[0],u[0]=this.rules.inline._backpedal.exec(u[0])[0],i!==u[0];);n=D(u[0]),r="www."===u[1]?"http://"+n:n}return{type:"link",raw:u[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t){e=this.rules.inline.text.exec(e);if(e){t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):D(e[0]):e[0]:D(this.options.smartypants?t(e[0]):e[0]);return{type:"text",raw:e[0],text:t}}},e}(),$={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:E,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};$.def=p($.def).replace("label",$._label).replace("title",$._title).getRegex(),$.bullet=/(?:[*+-]|\d{1,9}[.)])/,$.listItemStart=p(/^( *)(bull) */).replace("bull",$.bullet).getRegex(),$.list=p($.list).replace(/bull/g,$.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+$.def.source+")").getRegex(),$._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$._comment=/|$)/,$.html=p($.html,"i").replace("comment",$._comment).replace("tag",$._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$.paragraph=p($._paragraph).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.blockquote=p($.blockquote).replace("paragraph",$.paragraph).getRegex(),$.normal=b({},$),$.gfm=b({},$.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),$.gfm.table=p($.gfm.table).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.gfm.paragraph=p($._paragraph).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",$.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.pedantic=b({},$.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",$._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,paragraph:p($.normal._paragraph).replace("hr",$.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",$.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var S={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:E,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:E,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",S.punctuation=p(S.punctuation).replace(/punctuation/g,S._punctuation).getRegex(),S.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,S.escapedEmSt=/\\\*|\\_/g,S._comment=p($._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),S.emStrong.lDelim=p(S.emStrong.lDelim).replace(/punct/g,S._punctuation).getRegex(),S.emStrong.rDelimAst=p(S.emStrong.rDelimAst,"g").replace(/punct/g,S._punctuation).getRegex(),S.emStrong.rDelimUnd=p(S.emStrong.rDelimUnd,"g").replace(/punct/g,S._punctuation).getRegex(),S._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,S._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,S._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,S.autolink=p(S.autolink).replace("scheme",S._scheme).replace("email",S._email).getRegex(),S._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,S.tag=p(S.tag).replace("comment",S._comment).replace("attribute",S._attribute).getRegex(),S._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,S._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,S._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,S.link=p(S.link).replace("label",S._label).replace("href",S._href).replace("title",S._title).getRegex(),S.reflink=p(S.reflink).replace("label",S._label).replace("ref",$._label).getRegex(),S.nolink=p(S.nolink).replace("ref",$._label).getRegex(),S.reflinkSearch=p(S.reflinkSearch,"g").replace("reflink",S.reflink).replace("nolink",S.nolink).getRegex(),S.normal=b({},S),S.pedantic=b({},S.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",S._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",S._label).getRegex()}),S.gfm=b({},S.normal,{escape:p(S.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\'+(u?e:D(e,!0))+"\n":"
"+(u?e:D(e,!0))+"
\n"},t.blockquote=function(e){return"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,u,n){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,u){var n=t?"ol":"ul";return"<"+n+(t&&1!==u?' start="'+u+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return"\n\n"+e+"\n"+(t=t&&""+t+"")+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var u=t.header?"th":"td";return(t.align?"<"+u+' align="'+t.align+'">':"<"+u+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,u){if(null===(e=F(this.options.sanitize,this.options.baseUrl,e)))return u;e='"},t.image=function(e,t,u){if(null===(e=F(this.options.sanitize,this.options.baseUrl,e)))return u;u=''+u+'":">"},t.text=function(e){return e},e}(),O=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,u){return""+u},t.image=function(e,t,u){return""+u},t.br=function(){return""},e}(),q=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var u=e,n=0;if(this.seen.hasOwnProperty(u))for(n=this.seen[e];u=e+"-"+ ++n,this.seen.hasOwnProperty(u););return t||(this.seen[e]=n,this.seen[u]=0),u},t.slug=function(e,t){void 0===t&&(t={});e=this.serialize(e);return this.getNextSafeSlug(e,t.dryrun)},e}(),L=function(){function u(e){this.options=e||r.defaults,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new O,this.slugger=new q}u.parse=function(e,t){return new u(t).parse(e)},u.parseInline=function(e,t){return new u(t).parseInline(e)};var e=u.prototype;return e.parse=function(e,t){void 0===t&&(t=!0);for(var u,n,r,i,s,l,a,o,D,c,h,p,f,g,F,A,d="",C=e.length,k=0;kAn error occurred:

    "+D(e.message+"",!0)+"
    ";throw e}}j.options=j.setOptions=function(e){return b(j.defaults,e),e=j.defaults,r.defaults=e,j},j.getDefaults=e,j.defaults=r.defaults,j.use=function(){for(var e=arguments.length,t=new Array(e),u=0;uAn error occurred:

    "+D(e.message+"",!0)+"
    ";throw e}},j.Parser=L,j.parser=L.parse,j.Renderer=Z,j.TextRenderer=O,j.Lexer=I,j.lexer=I.lex,j.Tokenizer=z,j.Slugger=q;var P=(j.parse=j).options,Q=j.setOptions,U=j.use,M=j.walkTokens,N=j.parseInline,X=j,G=L.parse,E=I.lex;r.Lexer=I,r.Parser=L,r.Renderer=Z,r.Slugger=q,r.TextRenderer=O,r.Tokenizer=z,r.getDefaults=e,r.lexer=E,r.marked=j,r.options=P,r.parse=X,r.parseInline=N,r.parser=G,r.setOptions=Q,r.use=U,r.walkTokens=M,Object.defineProperty(r,"__esModule",{value:!0})}); 7 | -------------------------------------------------------------------------------- /vendor/mousetrap.min.js: -------------------------------------------------------------------------------- 1 | /* mousetrap v1.6.5 craig.is/killing/mice */ 2 | (function(q,u,c){function v(a,b,g){a.addEventListener?a.addEventListener(b,g,!1):a.attachEvent("on"+b,g)}function z(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return n[a.which]?n[a.which]:r[a.which]?r[a.which]:String.fromCharCode(a.which).toLowerCase()}function F(a){var b=[];a.shiftKey&&b.push("shift");a.altKey&&b.push("alt");a.ctrlKey&&b.push("ctrl");a.metaKey&&b.push("meta");return b}function w(a){return"shift"==a||"ctrl"==a||"alt"==a|| 3 | "meta"==a}function A(a,b){var g,d=[];var e=a;"+"===e?e=["+"]:(e=e.replace(/\+{2}/g,"+plus"),e=e.split("+"));for(g=0;gc||n.hasOwnProperty(c)&&(p[n[c]]=c)}g=p[e]?"keydown":"keypress"}"keypress"==g&&d.length&&(g="keydown");return{key:m,modifiers:d,action:g}}function D(a,b){return null===a||a===u?!1:a===b?!0:D(a.parentNode,b)}function d(a){function b(a){a= 4 | a||{};var b=!1,l;for(l in p)a[l]?b=!0:p[l]=0;b||(x=!1)}function g(a,b,t,f,g,d){var l,E=[],h=t.type;if(!k._callbacks[a])return[];"keyup"==h&&w(a)&&(b=[a]);for(l=0;l":".","?":"/","|":"\\"},B={option:"alt",command:"meta","return":"enter", 9 | escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p;for(c=1;20>c;++c)n[111+c]="f"+c;for(c=0;9>=c;++c)n[c+96]=c.toString();d.prototype.bind=function(a,b,c){a=a instanceof Array?a:[a];this._bindMultiple.call(this,a,b,c);return this};d.prototype.unbind=function(a,b){return this.bind.call(this,a,function(){},b)};d.prototype.trigger=function(a,b){if(this._directMap[a+":"+b])this._directMap[a+":"+b]({},a);return this};d.prototype.reset=function(){this._callbacks={}; 10 | this._directMap={};return this};d.prototype.stopCallback=function(a,b){if(-1<(" "+b.className+" ").indexOf(" mousetrap ")||D(b,this.target))return!1;if("composedPath"in a&&"function"===typeof a.composedPath){var c=a.composedPath()[0];c!==a.target&&(b=c)}return"INPUT"==b.tagName||"SELECT"==b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable};d.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};d.addKeycodes=function(a){for(var b in a)a.hasOwnProperty(b)&&(n[b]=a[b]);p=null}; 11 | d.init=function(){var a=d(u),b;for(b in a)"_"!==b.charAt(0)&&(d[b]=function(b){return function(){return a[b].apply(a,arguments)}}(b))};d.init();q.Mousetrap=d;"undefined"!==typeof module&&module.exports&&(module.exports=d);"function"===typeof define&&define.amd&&define(function(){return d})}})("undefined"!==typeof window?window:null,"undefined"!==typeof window?document:null); 12 | -------------------------------------------------------------------------------- /vendor/write-good.dist.js: -------------------------------------------------------------------------------- 1 | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.writeGood = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i 0; i--) { 5 | str += ch; 6 | } 7 | return str; 8 | } 9 | 10 | function generateStartOfLineIndex(line, lines) { 11 | const x = lines.slice(0); 12 | x.splice(line - 1); 13 | return x.join('\n').length + (x.length > 0); 14 | } 15 | 16 | function findLineColumn(contents, lines, index) { 17 | const line = contents.substr(0, index).split('\n').length; 18 | const startOfLineIndex = generateStartOfLineIndex(line, lines); 19 | const col = index - startOfLineIndex; 20 | 21 | return { line, col }; 22 | } 23 | 24 | // annotate file contents with suggestions 25 | module.exports = function annotate(contents, suggestions, parse) { 26 | const lines = contents.split('\n'); 27 | 28 | return suggestions.map((suggestion) => { 29 | const lineColumn = findLineColumn(contents, lines, suggestion.index); 30 | 31 | let fix = 0; 32 | 33 | if (lineColumn.col > 25) { 34 | fix = lineColumn.col - 25; 35 | } 36 | 37 | if (parse) { 38 | return { 39 | reason: suggestion.reason, 40 | line: lineColumn.line, 41 | col: lineColumn.col, 42 | }; 43 | } 44 | const lineSegment = lines[lineColumn.line - 1].substr(fix, 80); 45 | 46 | return [ 47 | lineSegment, 48 | repeatChar(' ', lineColumn.col - fix) + repeatChar('^', suggestion.offset), 49 | `${suggestion.reason} on line ${lineColumn.line} at column ${lineColumn.col}` 50 | ].join('\n'); 51 | }); 52 | }; 53 | 54 | },{}],2:[function(require,module,exports){ 55 | // via http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/ 56 | 57 | // Example: 58 | // Many readers are not aware that the 59 | // the brain will automatically ignore 60 | // a second instance of the word "the" 61 | // when it starts a new line. 62 | const re = new RegExp('(\\s*)([^\\s]+)', 'gi'); 63 | const word = /\w+/; 64 | 65 | module.exports = function lexicalIllusions(text) { 66 | const suggestions = []; 67 | let lastMatch = ''; 68 | let match; 69 | 70 | // eslint-disable-next-line no-cond-assign 71 | while (match = re.exec(text)) { 72 | if (word.test(match[2]) && match[2].toLowerCase() === lastMatch) { 73 | suggestions.push({ 74 | index: match.index + match[1].length, 75 | offset: match[2].length 76 | }); 77 | } 78 | lastMatch = match[2].toLowerCase(); 79 | } 80 | 81 | return suggestions; 82 | }; 83 | 84 | },{}],3:[function(require,module,exports){ 85 | /* eslint-disable no-cond-assign */ 86 | 87 | // Opinion: I think it's gross to start written English independent clauses with "so" 88 | // most of the time. Maybe it's okay in spoken English. 89 | // 90 | // More on "so:" 91 | // * http://www.nytimes.com/2010/05/22/us/22iht-currents.html?_r=0 92 | // * http://comminfo.rutgers.edu/images/comprofiler/plug_profilegallery/84/pg_2103855866.pdf 93 | 94 | // this implementation is really naive 95 | // eslint-disable-next-line no-control-regex 96 | const re = new RegExp('([^\n\\.;!?]+)([\\.;!?]+)', 'gi'); 97 | const startsWithSoRegex = new RegExp('^(\\s)*so\\b[\\s\\S]', 'i'); 98 | 99 | module.exports = function startsWithSo(text) { 100 | const suggestions = []; 101 | let match; 102 | let innerMatch; 103 | 104 | while (match = re.exec(text)) { 105 | if (innerMatch = startsWithSoRegex.exec(match[1])) { 106 | suggestions.push({ 107 | index: match.index + (innerMatch[1] || '').length, 108 | offset: 2 109 | }); 110 | } 111 | } 112 | return suggestions; 113 | }; 114 | 115 | },{}],4:[function(require,module,exports){ 116 | /* eslint-disable no-cond-assign */ 117 | 118 | // Opinion: I think it's gross to start written English sentences with "there (is|are)" 119 | // (most of the time) 120 | 121 | // this implementation is really naive 122 | // eslint-disable-next-line no-control-regex 123 | const re = new RegExp('([^\n\\.;!?]+)([\\.;!?]+)', 'gi'); 124 | const startsWithThereIsRegex = new RegExp('^(\\s)*there\\b\\s(is|are)\\b', 'i'); 125 | 126 | module.exports = function startsWithThereIs(text) { 127 | const suggestions = []; 128 | let match; 129 | let innerMatch; 130 | 131 | while (match = re.exec(text)) { 132 | if (innerMatch = startsWithThereIsRegex.exec(match[1])) { 133 | suggestions.push({ 134 | index: match.index + (innerMatch[1] || '').length, 135 | offset: innerMatch[0].length - (innerMatch[1] || '').length 136 | }); 137 | } 138 | } 139 | return suggestions; 140 | }; 141 | 142 | },{}],5:[function(require,module,exports){ 143 | const adverbs = [ 144 | 'absolutel', 145 | 'accidentall', 146 | 'additionall', 147 | 'allegedl', 148 | 'alternativel', 149 | 'angril', 150 | 'anxiousl', 151 | 'approximatel', 152 | 'awkwardl', 153 | 'badl', 154 | 'barel', 155 | 'beautifull', 156 | 'blindl', 157 | 'boldl', 158 | 'bravel', 159 | 'brightl', 160 | 'briskl', 161 | 'bristl', 162 | 'bubbl', 163 | 'busil', 164 | 'calml', 165 | 'carefull', 166 | 'carelessl', 167 | 'cautiousl', 168 | 'cheerfull', 169 | 'clearl', 170 | 'closel', 171 | 'coldl', 172 | 'completel', 173 | 'consequentl', 174 | 'correctl', 175 | 'courageousl', 176 | 'crinkl', 177 | 'cruell', 178 | 'crumbl', 179 | 'cuddl', 180 | 'currentl', 181 | 'daringl', 182 | 'deadl', 183 | 'definitel', 184 | 'deliberatel', 185 | 'doubtfull', 186 | 'dumbl', 187 | 'eagerl', 188 | 'earl', 189 | 'easil', 190 | 'elegantl', 191 | 'enormousl', 192 | 'enthusiasticall', 193 | 'equall', 194 | 'especiall', 195 | 'eventuall', 196 | 'exactl', 197 | 'exceedingl', 198 | 'exclusivel', 199 | 'extremel', 200 | 'fairl', 201 | 'faithfull', 202 | 'fatall', 203 | 'fiercel', 204 | 'finall', 205 | 'fondl', 206 | 'foolishl', 207 | 'fortunatel', 208 | 'frankl', 209 | 'franticall', 210 | 'generousl', 211 | 'gentl', 212 | 'giggl', 213 | 'gladl', 214 | 'gracefull', 215 | 'greedil', 216 | 'happil', 217 | 'hardl', 218 | 'hastil', 219 | 'healthil', 220 | 'heartil', 221 | 'helpfull', 222 | 'honestl', 223 | 'hourl', 224 | 'hungril', 225 | 'hurriedl', 226 | 'immediatel', 227 | 'impatientl', 228 | 'inadequatel', 229 | 'ingeniousl', 230 | 'innocentl', 231 | 'inquisitivel', 232 | 'interestingl', 233 | 'irritabl', 234 | 'jiggl', 235 | 'joyousl', 236 | 'justl', 237 | 'kindl', 238 | 'largel', 239 | 'latel', 240 | 'lazil', 241 | 'likel', 242 | 'literall', 243 | 'lonel', 244 | 'loosel', 245 | 'loudl', 246 | 'loudl', 247 | 'luckil', 248 | 'madl', 249 | 'man', 250 | 'mentall', 251 | 'mildl', 252 | 'mortall', 253 | 'mostl', 254 | 'mysteriousl', 255 | 'neatl', 256 | 'nervousl', 257 | 'noisil', 258 | 'normall', 259 | 'obedientl', 260 | 'occasionall', 261 | 'onl', 262 | 'openl', 263 | 'painfull', 264 | 'particularl', 265 | 'patientl', 266 | 'perfectl', 267 | 'politel', 268 | 'poorl', 269 | 'powerfull', 270 | 'presumabl', 271 | 'previousl', 272 | 'promptl', 273 | 'punctuall', 274 | 'quarterl', 275 | 'quickl', 276 | 'quietl', 277 | 'rapidl', 278 | 'rarel', 279 | 'reall', 280 | 'recentl', 281 | 'recklessl', 282 | 'regularl', 283 | 'relativel', 284 | 'reluctantl', 285 | 'remarkabl', 286 | 'repeatedl', 287 | 'rightfull', 288 | 'roughl', 289 | 'rudel', 290 | 'sadl', 291 | 'safel', 292 | 'selfishl', 293 | 'sensibl', 294 | 'seriousl', 295 | 'sharpl', 296 | 'shortl', 297 | 'shyl', 298 | 'significantl', 299 | 'silentl', 300 | 'simpl', 301 | 'sleepil', 302 | 'slowl', 303 | 'smartl', 304 | 'smell', 305 | 'smoothl', 306 | 'softl', 307 | 'solemnl', 308 | 'sparkl', 309 | 'speedil', 310 | 'stealthil', 311 | 'sternl', 312 | 'stupidl', 313 | 'substantiall', 314 | 'successfull', 315 | 'suddenl', 316 | 'surprisingl', 317 | 'suspiciousl', 318 | 'swiftl', 319 | 'tenderl', 320 | 'tensel', 321 | 'thoughtfull', 322 | 'tightl', 323 | 'timel', 324 | 'truthfull', 325 | 'unexpectedl', 326 | 'unfortunatel', 327 | 'usuall', 328 | 'ver', 329 | 'victoriousl', 330 | 'violentl', 331 | 'vivaciousl', 332 | 'warml', 333 | 'waverl', 334 | 'weakl', 335 | 'wearil', 336 | 'wildl', 337 | 'wisel', 338 | 'worldl', 339 | 'wrinkl' 340 | ]; 341 | 342 | const weakens = [ 343 | 'just', 344 | 'maybe', 345 | 'stuff', 346 | 'things' 347 | ]; 348 | 349 | const adverbRegex = new RegExp( 350 | `${'\\b(' 351 | + '('}${adverbs.join('|')})(y)` 352 | + `|(${weakens.join('|')}))\\b`, 'gi' 353 | ); 354 | const matcher = require('./matcher'); 355 | 356 | module.exports = function matchAdverbs(text) { 357 | return matcher(adverbRegex, text); 358 | }; 359 | 360 | },{"./matcher":6}],6:[function(require,module,exports){ 361 | function matcher(regex, text) { 362 | const results = []; 363 | let result = regex.exec(text); 364 | 365 | while (result) { 366 | results.push({ index: result.index, offset: result[0].length }); 367 | result = regex.exec(text); 368 | } 369 | 370 | return results; 371 | } 372 | 373 | module.exports = matcher; 374 | 375 | },{}],7:[function(require,module,exports){ 376 | var toBe = [ 377 | 'am', 378 | 'are', 379 | 'aren\'t', 380 | 'be', 381 | 'been', 382 | 'being', 383 | 'he\'s', 384 | 'here\'s', 385 | 'here\'s', 386 | 'how\'s', 387 | 'i\'m', 388 | 'is', 389 | 'isn\'t', 390 | 'she\'s', 391 | 'that\'s', 392 | 'there\'s', 393 | 'they\'re', 394 | 'was', 395 | 'wasn\'t', 396 | 'we\'re', 397 | 'were', 398 | 'weren\'t', 399 | 'what\'s', 400 | 'where\'s', 401 | 'who\'s', 402 | 'you\'re' 403 | ]; 404 | 405 | var re = new RegExp('\\b(' + toBe.join('|') + ')\\b', 'gi'); 406 | 407 | module.exports = function (text) { 408 | var suggestions = []; 409 | if (!text || text.length === 0) return suggestions; 410 | text = text.replace(/[\u2018\u2019]/g, "'"); // convert smart quotes 411 | while (match = re.exec(text)) { 412 | var be = match[0].toLowerCase(); 413 | suggestions.push({ 414 | index: match.index, 415 | offset: be.length 416 | }); 417 | } 418 | 419 | return suggestions; 420 | }; 421 | },{}],8:[function(require,module,exports){ 422 | const cliches = [ 423 | 'a chip off the old block', 424 | 'a clean slate', 425 | 'a dark and stormy night', 426 | 'a far cry', 427 | 'a fine kettle of fish', 428 | 'a loose cannon', 429 | 'a penny saved is a penny earned', 430 | 'a tough row to hoe', 431 | 'a word to the wise', 432 | 'ace in the hole', 433 | 'acid test', 434 | 'add insult to injury', 435 | 'against all odds', 436 | 'air your dirty laundry', 437 | 'all fun and games', 438 | 'all in a day\'s work', 439 | 'all talk, no action', 440 | 'all thumbs', 441 | 'all your eggs in one basket', 442 | 'all\'s fair in love and war', 443 | 'all\'s well that ends well', 444 | 'almighty dollar', 445 | 'American as apple pie', 446 | 'an axe to grind', 447 | 'another day, another dollar', 448 | 'armed to the teeth', 449 | 'as luck would have it', 450 | 'as old as time', 451 | 'as the crow flies', 452 | 'at loose ends', 453 | 'at my wits end', 454 | 'avoid like the plague', 455 | 'babe in the woods', 456 | 'back against the wall', 457 | 'back in the saddle', 458 | 'back to square one', 459 | 'back to the drawing board', 460 | 'bad to the bone', 461 | 'badge of honor', 462 | 'bald faced liar', 463 | 'ballpark figure', 464 | 'banging your head against a brick wall', 465 | 'baptism by fire', 466 | 'barking up the wrong tree', 467 | 'bat out of hell', 468 | 'be all and end all', 469 | 'beat a dead horse', 470 | 'beat around the bush', 471 | 'been there, done that', 472 | 'beggars can\'t be choosers', 473 | 'behind the eight ball', 474 | 'bend over backwards', 475 | 'benefit of the doubt', 476 | 'bent out of shape', 477 | 'best thing since sliced bread', 478 | 'bet your bottom dollar', 479 | 'better half', 480 | 'better late than never', 481 | 'better mousetrap', 482 | 'better safe than sorry', 483 | 'between a rock and a hard place', 484 | 'beyond the pale', 485 | 'bide your time', 486 | 'big as life', 487 | 'big cheese', 488 | 'big fish in a small pond', 489 | 'big man on campus', 490 | 'bigger they are the harder they fall', 491 | 'bird in the hand', 492 | 'bird\'s eye view', 493 | 'birds and the bees', 494 | 'birds of a feather flock together', 495 | 'bit the hand that feeds you', 496 | 'bite the bullet', 497 | 'bite the dust', 498 | 'bitten off more than he can chew', 499 | 'black as coal', 500 | 'black as pitch', 501 | 'black as the ace of spades', 502 | 'blast from the past', 503 | 'bleeding heart', 504 | 'blessing in disguise', 505 | 'blind ambition', 506 | 'blind as a bat', 507 | 'blind leading the blind', 508 | 'blood is thicker than water', 509 | 'blood sweat and tears', 510 | 'blow off steam', 511 | 'blow your own horn', 512 | 'blushing bride', 513 | 'boils down to', 514 | 'bolt from the blue', 515 | 'bone to pick', 516 | 'bored stiff', 517 | 'bored to tears', 518 | 'bottomless pit', 519 | 'boys will be boys', 520 | 'bright and early', 521 | 'brings home the bacon', 522 | 'broad across the beam', 523 | 'broken record', 524 | 'brought back to reality', 525 | 'bull by the horns', 526 | 'bull in a china shop', 527 | 'burn the midnight oil', 528 | 'burning question', 529 | 'burning the candle at both ends', 530 | 'burst your bubble', 531 | 'bury the hatchet', 532 | 'busy as a bee', 533 | 'by hook or by crook', 534 | 'call a spade a spade', 535 | 'called onto the carpet', 536 | 'calm before the storm', 537 | 'can of worms', 538 | 'can\'t cut the mustard', 539 | 'can\'t hold a candle to', 540 | 'case of mistaken identity', 541 | 'cat got your tongue', 542 | 'cat\'s meow', 543 | 'caught in the crossfire', 544 | 'caught red-handed', 545 | 'checkered past', 546 | 'chomping at the bit', 547 | 'cleanliness is next to godliness', 548 | 'clear as a bell', 549 | 'clear as mud', 550 | 'close to the vest', 551 | 'cock and bull story', 552 | 'cold shoulder', 553 | 'come hell or high water', 554 | 'cool as a cucumber', 555 | 'cool, calm, and collected', 556 | 'cost a king\'s ransom', 557 | 'count your blessings', 558 | 'crack of dawn', 559 | 'crash course', 560 | 'creature comforts', 561 | 'cross that bridge when you come to it', 562 | 'crushing blow', 563 | 'cry like a baby', 564 | 'cry me a river', 565 | 'cry over spilt milk', 566 | 'crystal clear', 567 | 'curiosity killed the cat', 568 | 'cut and dried', 569 | 'cut through the red tape', 570 | 'cut to the chase', 571 | 'cute as a bugs ear', 572 | 'cute as a button', 573 | 'cute as a puppy', 574 | 'cuts to the quick', 575 | 'dark before the dawn', 576 | 'day in, day out', 577 | 'dead as a doornail', 578 | 'devil is in the details', 579 | 'dime a dozen', 580 | 'divide and conquer', 581 | 'dog and pony show', 582 | 'dog days', 583 | 'dog eat dog', 584 | 'dog tired', 585 | 'don\'t burn your bridges', 586 | 'don\'t count your chickens', 587 | 'don\'t look a gift horse in the mouth', 588 | 'don\'t rock the boat', 589 | 'don\'t step on anyone\'s toes', 590 | 'don\'t take any wooden nickels', 591 | 'down and out', 592 | 'down at the heels', 593 | 'down in the dumps', 594 | 'down the hatch', 595 | 'down to earth', 596 | 'draw the line', 597 | 'dressed to kill', 598 | 'dressed to the nines', 599 | 'drives me up the wall', 600 | 'dull as dishwater', 601 | 'dyed in the wool', 602 | 'eagle eye', 603 | 'ear to the ground', 604 | 'early bird catches the worm', 605 | 'easier said than done', 606 | 'easy as pie', 607 | 'eat your heart out', 608 | 'eat your words', 609 | 'eleventh hour', 610 | 'even the playing field', 611 | 'every dog has its day', 612 | 'every fiber of my being', 613 | 'everything but the kitchen sink', 614 | 'eye for an eye', 615 | 'face the music', 616 | 'facts of life', 617 | 'fair weather friend', 618 | 'fall by the wayside', 619 | 'fan the flames', 620 | 'feast or famine', 621 | 'feather your nest', 622 | 'feathered friends', 623 | 'few and far between', 624 | 'fifteen minutes of fame', 625 | 'filthy vermin', 626 | 'fine kettle of fish', 627 | 'fish out of water', 628 | 'fishing for a compliment', 629 | 'fit as a fiddle', 630 | 'fit the bill', 631 | 'fit to be tied', 632 | 'flash in the pan', 633 | 'flat as a pancake', 634 | 'flip your lid', 635 | 'flog a dead horse', 636 | 'fly by night', 637 | 'fly the coop', 638 | 'follow your heart', 639 | 'for all intents and purposes', 640 | 'for the birds', 641 | 'for what it\'s worth', 642 | 'force of nature', 643 | 'force to be reckoned with', 644 | 'forgive and forget', 645 | 'fox in the henhouse', 646 | 'free and easy', 647 | 'free as a bird', 648 | 'fresh as a daisy', 649 | 'full steam ahead', 650 | 'fun in the sun', 651 | 'garbage in, garbage out', 652 | 'gentle as a lamb', 653 | 'get a kick out of', 654 | 'get a leg up', 655 | 'get down and dirty', 656 | 'get the lead out', 657 | 'get to the bottom of', 658 | 'get your feet wet', 659 | 'gets my goat', 660 | 'gilding the lily', 661 | 'give and take', 662 | 'go against the grain', 663 | 'go at it tooth and nail', 664 | 'go for broke', 665 | 'go him one better', 666 | 'go the extra mile', 667 | 'go with the flow', 668 | 'goes without saying', 669 | 'good as gold', 670 | 'good deed for the day', 671 | 'good things come to those who wait', 672 | 'good time was had by all', 673 | 'good times were had by all', 674 | 'greased lightning', 675 | 'greek to me', 676 | 'green thumb', 677 | 'green-eyed monster', 678 | 'grist for the mill', 679 | 'growing like a weed', 680 | 'hair of the dog', 681 | 'hand to mouth', 682 | 'happy as a clam', 683 | 'happy as a lark', 684 | 'hasn\'t a clue', 685 | 'have a nice day', 686 | 'have high hopes', 687 | 'have the last laugh', 688 | 'haven\'t got a row to hoe', 689 | 'head honcho', 690 | 'head over heels', 691 | 'hear a pin drop', 692 | 'heard it through the grapevine', 693 | 'heart\'s content', 694 | 'heavy as lead', 695 | 'hem and haw', 696 | 'high and dry', 697 | 'high and mighty', 698 | 'high as a kite', 699 | 'hit paydirt', 700 | 'hold your head up high', 701 | 'hold your horses', 702 | 'hold your own', 703 | 'hold your tongue', 704 | 'honest as the day is long', 705 | 'horns of a dilemma', 706 | 'horse of a different color', 707 | 'hot under the collar', 708 | 'hour of need', 709 | 'I beg to differ', 710 | 'icing on the cake', 711 | 'if the shoe fits', 712 | 'if the shoe were on the other foot', 713 | 'in a jam', 714 | 'in a jiffy', 715 | 'in a nutshell', 716 | 'in a pig\'s eye', 717 | 'in a pinch', 718 | 'in a word', 719 | 'in hot water', 720 | 'in the gutter', 721 | 'in the nick of time', 722 | 'in the thick of it', 723 | 'in your dreams', 724 | 'it ain\'t over till the fat lady sings', 725 | 'it goes without saying', 726 | 'it takes all kinds', 727 | 'it takes one to know one', 728 | 'it\'s a small world', 729 | 'it\'s only a matter of time', 730 | 'ivory tower', 731 | 'Jack of all trades', 732 | 'jockey for position', 733 | 'jog your memory', 734 | 'joined at the hip', 735 | 'judge a book by its cover', 736 | 'jump down your throat', 737 | 'jump in with both feet', 738 | 'jump on the bandwagon', 739 | 'jump the gun', 740 | 'jump to conclusions', 741 | 'just a hop, skip, and a jump', 742 | 'just the ticket', 743 | 'justice is blind', 744 | 'keep a stiff upper lip', 745 | 'keep an eye on', 746 | 'keep it simple, stupid', 747 | 'keep the home fires burning', 748 | 'keep up with the Joneses', 749 | 'keep your chin up', 750 | 'keep your fingers crossed', 751 | 'kick the bucket', 752 | 'kick up your heels', 753 | 'kick your feet up', 754 | 'kid in a candy store', 755 | 'kill two birds with one stone', 756 | 'kiss of death', 757 | 'knock it out of the park', 758 | 'knock on wood', 759 | 'knock your socks off', 760 | 'know him from Adam', 761 | 'know the ropes', 762 | 'know the score', 763 | 'knuckle down', 764 | 'knuckle sandwich', 765 | 'knuckle under', 766 | 'labor of love', 767 | 'ladder of success', 768 | 'land on your feet', 769 | 'lap of luxury', 770 | 'last but not least', 771 | 'last hurrah', 772 | 'last-ditch effort', 773 | 'law of the jungle', 774 | 'law of the land', 775 | 'lay down the law', 776 | 'leaps and bounds', 777 | 'let sleeping dogs lie', 778 | 'let the cat out of the bag', 779 | 'let the good times roll', 780 | 'let your hair down', 781 | 'let\'s talk turkey', 782 | 'letter perfect', 783 | 'lick your wounds', 784 | 'lies like a rug', 785 | 'life\'s a bitch', 786 | 'life\'s a grind', 787 | 'light at the end of the tunnel', 788 | 'lighter than a feather', 789 | 'lighter than air', 790 | 'like clockwork', 791 | 'like father like son', 792 | 'like taking candy from a baby', 793 | 'like there\'s no tomorrow', 794 | 'lion\'s share', 795 | 'live and learn', 796 | 'live and let live', 797 | 'long and short of it', 798 | 'long lost love', 799 | 'look before you leap', 800 | 'look down your nose', 801 | 'look what the cat dragged in', 802 | 'looking a gift horse in the mouth', 803 | 'looks like death warmed over', 804 | 'loose cannon', 805 | 'lose your head', 806 | 'lose your temper', 807 | 'loud as a horn', 808 | 'lounge lizard', 809 | 'loved and lost', 810 | 'low man on the totem pole', 811 | 'luck of the draw', 812 | 'luck of the Irish', 813 | 'make hay while the sun shines', 814 | 'make money hand over fist', 815 | 'make my day', 816 | 'make the best of a bad situation', 817 | 'make the best of it', 818 | 'make your blood boil', 819 | 'man of few words', 820 | 'man\'s best friend', 821 | 'mark my words', 822 | 'meaningful dialogue', 823 | 'missed the boat on that one', 824 | 'moment in the sun', 825 | 'moment of glory', 826 | 'moment of truth', 827 | 'money to burn', 828 | 'more power to you', 829 | 'more than one way to skin a cat', 830 | 'movers and shakers', 831 | 'moving experience', 832 | 'naked as a jaybird', 833 | 'naked truth', 834 | 'neat as a pin', 835 | 'needle in a haystack', 836 | 'needless to say', 837 | 'neither here nor there', 838 | 'never look back', 839 | 'never say never', 840 | 'nip and tuck', 841 | 'nip it in the bud', 842 | 'no guts, no glory', 843 | 'no love lost', 844 | 'no pain, no gain', 845 | 'no skin off my back', 846 | 'no stone unturned', 847 | 'no time like the present', 848 | 'no use crying over spilled milk', 849 | 'nose to the grindstone', 850 | 'not a hope in hell', 851 | 'not a minute\'s peace', 852 | 'not in my backyard', 853 | 'not playing with a full deck', 854 | 'not the end of the world', 855 | 'not written in stone', 856 | 'nothing to sneeze at', 857 | 'nothing ventured nothing gained', 858 | 'now we\'re cooking', 859 | 'off the top of my head', 860 | 'off the wagon', 861 | 'off the wall', 862 | 'old hat', 863 | 'older and wiser', 864 | 'older than dirt', 865 | 'older than Methuselah', 866 | 'on a roll', 867 | 'on cloud nine', 868 | 'on pins and needles', 869 | 'on the bandwagon', 870 | 'on the money', 871 | 'on the nose', 872 | 'on the rocks', 873 | 'on the spot', 874 | 'on the tip of my tongue', 875 | 'on the wagon', 876 | 'on thin ice', 877 | 'once bitten, twice shy', 878 | 'one bad apple doesn\'t spoil the bushel', 879 | 'one born every minute', 880 | 'one brick short', 881 | 'one foot in the grave', 882 | 'one in a million', 883 | 'one red cent', 884 | 'only game in town', 885 | 'open a can of worms', 886 | 'open and shut case', 887 | 'open the flood gates', 888 | 'opportunity doesn\'t knock twice', 889 | 'out of pocket', 890 | 'out of sight, out of mind', 891 | 'out of the frying pan into the fire', 892 | 'out of the woods', 893 | 'out on a limb', 894 | 'over a barrel', 895 | 'over the hump', 896 | 'pain and suffering', 897 | 'pain in the', 898 | 'panic button', 899 | 'par for the course', 900 | 'part and parcel', 901 | 'party pooper', 902 | 'pass the buck', 903 | 'patience is a virtue', 904 | 'pay through the nose', 905 | 'penny pincher', 906 | 'perfect storm', 907 | 'pig in a poke', 908 | 'pile it on', 909 | 'pillar of the community', 910 | 'pin your hopes on', 911 | 'pitter patter of little feet', 912 | 'plain as day', 913 | 'plain as the nose on your face', 914 | 'play by the rules', 915 | 'play your cards right', 916 | 'playing the field', 917 | 'playing with fire', 918 | 'pleased as punch', 919 | 'plenty of fish in the sea', 920 | 'point with pride', 921 | 'poor as a church mouse', 922 | 'pot calling the kettle black', 923 | 'pretty as a picture', 924 | 'pull a fast one', 925 | 'pull your punches', 926 | 'pulling your leg', 927 | 'pure as the driven snow', 928 | 'put it in a nutshell', 929 | 'put one over on you', 930 | 'put the cart before the horse', 931 | 'put the pedal to the metal', 932 | 'put your best foot forward', 933 | 'put your foot down', 934 | 'quick as a bunny', 935 | 'quick as a lick', 936 | 'quick as a wink', 937 | 'quick as lightning', 938 | 'quiet as a dormouse', 939 | 'rags to riches', 940 | 'raining buckets', 941 | 'raining cats and dogs', 942 | 'rank and file', 943 | 'rat race', 944 | 'reap what you sow', 945 | 'red as a beet', 946 | 'red herring', 947 | 'reinvent the wheel', 948 | 'rich and famous', 949 | 'rings a bell', 950 | 'ripe old age', 951 | 'ripped me off', 952 | 'rise and shine', 953 | 'road to hell is paved with good intentions', 954 | 'rob Peter to pay Paul', 955 | 'roll over in the grave', 956 | 'rub the wrong way', 957 | 'ruled the roost', 958 | 'running in circles', 959 | 'sad but true', 960 | 'sadder but wiser', 961 | 'salt of the earth', 962 | 'scared stiff', 963 | 'scared to death', 964 | 'sealed with a kiss', 965 | 'second to none', 966 | 'see eye to eye', 967 | 'seen the light', 968 | 'seize the day', 969 | 'set the record straight', 970 | 'set the world on fire', 971 | 'set your teeth on edge', 972 | 'sharp as a tack', 973 | 'shoot for the moon', 974 | 'shoot the breeze', 975 | 'shot in the dark', 976 | 'shoulder to the wheel', 977 | 'sick as a dog', 978 | 'sigh of relief', 979 | 'signed, sealed, and delivered', 980 | 'sink or swim', 981 | 'six of one, half a dozen of another', 982 | 'skating on thin ice', 983 | 'slept like a log', 984 | 'slinging mud', 985 | 'slippery as an eel', 986 | 'slow as molasses', 987 | 'smart as a whip', 988 | 'smooth as a baby\'s bottom', 989 | 'sneaking suspicion', 990 | 'snug as a bug in a rug', 991 | 'sow wild oats', 992 | 'spare the rod, spoil the child', 993 | 'speak of the devil', 994 | 'spilled the beans', 995 | 'spinning your wheels', 996 | 'spitting image of', 997 | 'spoke with relish', 998 | 'spread like wildfire', 999 | 'spring to life', 1000 | 'squeaky wheel gets the grease', 1001 | 'stands out like a sore thumb', 1002 | 'start from scratch', 1003 | 'stick in the mud', 1004 | 'still waters run deep', 1005 | 'stitch in time', 1006 | 'stop and smell the roses', 1007 | 'straight as an arrow', 1008 | 'straw that broke the camel\'s back', 1009 | 'strong as an ox', 1010 | 'stubborn as a mule', 1011 | 'stuff that dreams are made of', 1012 | 'stuffed shirt', 1013 | 'sweating blood', 1014 | 'sweating bullets', 1015 | 'take a load off', 1016 | 'take one for the team', 1017 | 'take the bait', 1018 | 'take the bull by the horns', 1019 | 'take the plunge', 1020 | 'takes one to know one', 1021 | 'takes two to tango', 1022 | 'the more the merrier', 1023 | 'the real deal', 1024 | 'the real McCoy', 1025 | 'the red carpet treatment', 1026 | 'the same old story', 1027 | 'there is no accounting for taste', 1028 | 'thick as a brick', 1029 | 'thick as thieves', 1030 | 'thin as a rail', 1031 | 'think outside of the box', 1032 | 'third time\'s the charm', 1033 | 'this day and age', 1034 | 'this hurts me worse than it hurts you', 1035 | 'this point in time', 1036 | 'three sheets to the wind', 1037 | 'through thick and thin', 1038 | 'throw in the towel', 1039 | 'tie one on', 1040 | 'tighter than a drum', 1041 | 'time and time again', 1042 | 'time is of the essence', 1043 | 'tip of the iceberg', 1044 | 'tired but happy', 1045 | 'to coin a phrase', 1046 | 'to each his own', 1047 | 'to make a long story short', 1048 | 'to the best of my knowledge', 1049 | 'toe the line', 1050 | 'tongue in cheek', 1051 | 'too good to be true', 1052 | 'too hot to handle', 1053 | 'too numerous to mention', 1054 | 'touch with a ten foot pole', 1055 | 'tough as nails', 1056 | 'trial and error', 1057 | 'trials and tribulations', 1058 | 'tried and true', 1059 | 'trip down memory lane', 1060 | 'twist of fate', 1061 | 'two cents worth', 1062 | 'two peas in a pod', 1063 | 'ugly as sin', 1064 | 'under the counter', 1065 | 'under the gun', 1066 | 'under the same roof', 1067 | 'under the weather', 1068 | 'until the cows come home', 1069 | 'unvarnished truth', 1070 | 'up the creek', 1071 | 'uphill battle', 1072 | 'upper crust', 1073 | 'upset the applecart', 1074 | 'vain attempt', 1075 | 'vain effort', 1076 | 'vanquish the enemy', 1077 | 'vested interest', 1078 | 'waiting for the other shoe to drop', 1079 | 'wakeup call', 1080 | 'warm welcome', 1081 | 'watch your p\'s and q\'s', 1082 | 'watch your tongue', 1083 | 'watching the clock', 1084 | 'water under the bridge', 1085 | 'weather the storm', 1086 | 'weed them out', 1087 | 'week of Sundays', 1088 | 'went belly up', 1089 | 'wet behind the ears', 1090 | 'what goes around comes around', 1091 | 'what you see is what you get', 1092 | 'when it rains, it pours', 1093 | 'when push comes to shove', 1094 | 'when the cat\'s away', 1095 | 'when the going gets tough, the tough get going', 1096 | 'white as a sheet', 1097 | 'whole ball of wax', 1098 | 'whole hog', 1099 | 'whole nine yards', 1100 | 'wild goose chase', 1101 | 'will wonders never cease?', 1102 | 'wisdom of the ages', 1103 | 'wise as an owl', 1104 | 'wolf at the door', 1105 | 'words fail me', 1106 | 'work like a dog', 1107 | 'world weary', 1108 | 'worst nightmare', 1109 | 'worth its weight in gold', 1110 | 'wrong side of the bed', 1111 | 'yanking your chain', 1112 | 'yappy as a dog', 1113 | 'years young', 1114 | 'you are what you eat', 1115 | 'you can run but you can\'t hide', 1116 | 'you only live once', 1117 | 'you\'re the boss ', 1118 | 'young and foolish', 1119 | 'young and vibrant', 1120 | ]; 1121 | 1122 | const clicheRegex = new RegExp(`\\b(${cliches.join('|')})\\b`, 'gi'); 1123 | const matcher = require('./matcher'); 1124 | 1125 | module.exports = function clichesMatcher(text) { 1126 | return matcher(clicheRegex, text); 1127 | }; 1128 | 1129 | },{"./matcher":9}],9:[function(require,module,exports){ 1130 | arguments[4][6][0].apply(exports,arguments) 1131 | },{"dup":6}],10:[function(require,module,exports){ 1132 | var irregulars = [ 1133 | 'awoken', 1134 | 'been', 1135 | 'born', 1136 | 'beat', 1137 | 'become', 1138 | 'begun', 1139 | 'bent', 1140 | 'beset', 1141 | 'bet', 1142 | 'bid', 1143 | 'bidden', 1144 | 'bound', 1145 | 'bitten', 1146 | 'bled', 1147 | 'blown', 1148 | 'broken', 1149 | 'bred', 1150 | 'brought', 1151 | 'broadcast', 1152 | 'built', 1153 | 'burnt', 1154 | 'burst', 1155 | 'bought', 1156 | 'cast', 1157 | 'caught', 1158 | 'chosen', 1159 | 'clung', 1160 | 'come', 1161 | 'cost', 1162 | 'crept', 1163 | 'cut', 1164 | 'dealt', 1165 | 'dug', 1166 | 'dived', 1167 | 'done', 1168 | 'drawn', 1169 | 'dreamt', 1170 | 'driven', 1171 | 'drunk', 1172 | 'eaten', 1173 | 'fallen', 1174 | 'fed', 1175 | 'felt', 1176 | 'fought', 1177 | 'found', 1178 | 'fit', 1179 | 'fled', 1180 | 'flung', 1181 | 'flown', 1182 | 'forbidden', 1183 | 'forgotten', 1184 | 'foregone', 1185 | 'forgiven', 1186 | 'forsaken', 1187 | 'frozen', 1188 | 'gotten', 1189 | 'given', 1190 | 'gone', 1191 | 'ground', 1192 | 'grown', 1193 | 'hung', 1194 | 'heard', 1195 | 'hidden', 1196 | 'hit', 1197 | 'held', 1198 | 'hurt', 1199 | 'kept', 1200 | 'knelt', 1201 | 'knit', 1202 | 'known', 1203 | 'laid', 1204 | 'led', 1205 | 'leapt', 1206 | 'learnt', 1207 | 'left', 1208 | 'lent', 1209 | 'let', 1210 | 'lain', 1211 | 'lighted', 1212 | 'lost', 1213 | 'made', 1214 | 'meant', 1215 | 'met', 1216 | 'misspelt', 1217 | 'mistaken', 1218 | 'mown', 1219 | 'overcome', 1220 | 'overdone', 1221 | 'overtaken', 1222 | 'overthrown', 1223 | 'paid', 1224 | 'pled', 1225 | 'proven', 1226 | 'put', 1227 | 'quit', 1228 | 'read', 1229 | 'rid', 1230 | 'ridden', 1231 | 'rung', 1232 | 'risen', 1233 | 'run', 1234 | 'sawn', 1235 | 'said', 1236 | 'seen', 1237 | 'sought', 1238 | 'sold', 1239 | 'sent', 1240 | 'set', 1241 | 'sewn', 1242 | 'shaken', 1243 | 'shaven', 1244 | 'shorn', 1245 | 'shed', 1246 | 'shone', 1247 | 'shod', 1248 | 'shot', 1249 | 'shown', 1250 | 'shrunk', 1251 | 'shut', 1252 | 'sung', 1253 | 'sunk', 1254 | 'sat', 1255 | 'slept', 1256 | 'slain', 1257 | 'slid', 1258 | 'slung', 1259 | 'slit', 1260 | 'smitten', 1261 | 'sown', 1262 | 'spoken', 1263 | 'sped', 1264 | 'spent', 1265 | 'spilt', 1266 | 'spun', 1267 | 'spit', 1268 | 'split', 1269 | 'spread', 1270 | 'sprung', 1271 | 'stood', 1272 | 'stolen', 1273 | 'stuck', 1274 | 'stung', 1275 | 'stunk', 1276 | 'stridden', 1277 | 'struck', 1278 | 'strung', 1279 | 'striven', 1280 | 'sworn', 1281 | 'swept', 1282 | 'swollen', 1283 | 'swum', 1284 | 'swung', 1285 | 'taken', 1286 | 'taught', 1287 | 'torn', 1288 | 'told', 1289 | 'thought', 1290 | 'thrived', 1291 | 'thrown', 1292 | 'thrust', 1293 | 'trodden', 1294 | 'understood', 1295 | 'upheld', 1296 | 'upset', 1297 | 'woken', 1298 | 'worn', 1299 | 'woven', 1300 | 'wed', 1301 | 'wept', 1302 | 'wound', 1303 | 'won', 1304 | 'withheld', 1305 | 'withstood', 1306 | 'wrung', 1307 | 'written' 1308 | ]; 1309 | 1310 | var exceptions = [ 1311 | 'indeed', 1312 | ]; 1313 | 1314 | var re = new RegExp('\\b(am|are|were|being|is|been|was|be)\\b\\s*([\\w]+ed|' + irregulars.join('|') + ')\\b', 'gi'); 1315 | var byRe; // lazly construct 1316 | 1317 | module.exports = function (text, options) { 1318 | var r = (options && options.by) ? 1319 | (byRe || constructByRe()) : re; // not sorry 1320 | 1321 | var suggestions = []; 1322 | while (match = r.exec(text)) { 1323 | if (exceptions.indexOf(match[2].toLowerCase()) === -1) { 1324 | suggestions.push({ 1325 | index: match.index, 1326 | offset: match[0].length 1327 | }); 1328 | } 1329 | } 1330 | return suggestions; 1331 | } 1332 | 1333 | // lol 1334 | function constructByRe () { 1335 | return byRe = new RegExp(re.toString().slice(1, -3) + '\\s*by\\b', 'gi'); 1336 | } 1337 | 1338 | },{}],11:[function(require,module,exports){ 1339 | arguments[4][6][0].apply(exports,arguments) 1340 | },{"dup":6}],12:[function(require,module,exports){ 1341 | const matcher = require('./matcher'); 1342 | 1343 | const wordyWords = [ 1344 | 'a number of', 1345 | 'abundance', 1346 | 'accede to', 1347 | 'accelerate', 1348 | 'accentuate', 1349 | 'accompany', 1350 | 'accomplish', 1351 | 'accorded', 1352 | 'accrue', 1353 | 'acquiesce', 1354 | 'acquire', 1355 | 'additional', 1356 | 'adjacent to', 1357 | 'adjustment', 1358 | 'admissible', 1359 | 'advantageous', 1360 | 'adversely impact', 1361 | 'advise', 1362 | 'aforementioned', 1363 | 'aggregate', 1364 | 'aircraft', 1365 | 'all of', 1366 | 'all things considered', 1367 | 'alleviate', 1368 | 'allocate', 1369 | 'along the lines of', 1370 | 'already existing', 1371 | 'alternatively', 1372 | 'amazing', 1373 | 'ameliorate', 1374 | 'anticipate', 1375 | 'apparent', 1376 | 'appreciable', 1377 | 'as a matter of fact', 1378 | 'as a means of', 1379 | 'as far as I\'m concerned', 1380 | 'as of yet', 1381 | 'as to', 1382 | 'as yet', 1383 | 'ascertain', 1384 | 'assistance', 1385 | 'at the present time', 1386 | 'at this time', 1387 | 'attain', 1388 | 'attributable to', 1389 | 'authorize', 1390 | 'because of the fact that', 1391 | 'belated', 1392 | 'benefit from', 1393 | 'bestow', 1394 | 'by means of', 1395 | 'by virtue of the fact that', 1396 | 'by virtue of', 1397 | 'cease', 1398 | 'close proximity', 1399 | 'commence', 1400 | 'comply with', 1401 | 'concerning', 1402 | 'consequently', 1403 | 'consolidate', 1404 | 'constitutes', 1405 | 'demonstrate', 1406 | 'depart', 1407 | 'designate', 1408 | 'discontinue', 1409 | 'due to the fact that', 1410 | 'each and every', 1411 | 'economical', 1412 | 'eliminate', 1413 | 'elucidate', 1414 | 'employ', 1415 | 'endeavor', 1416 | 'enumerate', 1417 | 'equitable', 1418 | 'equivalent', 1419 | 'evaluate', 1420 | 'evidenced', 1421 | 'exclusively', 1422 | 'expedite', 1423 | 'expend', 1424 | 'expiration', 1425 | 'facilitate', 1426 | 'factual evidence', 1427 | 'feasible', 1428 | 'finalize', 1429 | 'first and foremost', 1430 | 'for all intents and purposes', 1431 | 'for the most part', 1432 | 'for the purpose of', 1433 | 'forfeit', 1434 | 'formulate', 1435 | 'have a tendency to', 1436 | 'honest truth', 1437 | 'however', 1438 | 'if and when', 1439 | 'impacted', 1440 | 'implement', 1441 | 'in a manner of speaking', 1442 | 'in a timely manner', 1443 | 'in a very real sense', 1444 | 'in accordance with', 1445 | 'in addition', 1446 | 'in all likelihood', 1447 | 'in an effort to', 1448 | 'in between', 1449 | 'in excess of', 1450 | 'in lieu of', 1451 | 'in light of the fact that', 1452 | 'in many cases', 1453 | 'in my opinion', 1454 | 'in order to', 1455 | 'in regard to', 1456 | 'in some instances', 1457 | 'in terms of', 1458 | 'in the case of ', 1459 | 'in the event that', 1460 | 'in the final analysis', 1461 | 'in the nature of', 1462 | 'in the near future', 1463 | 'in the process of', 1464 | 'inception', 1465 | 'incumbent upon', 1466 | 'indicate', 1467 | 'indication', 1468 | 'initiate', 1469 | 'irregardless', 1470 | 'is applicable to', 1471 | 'is authorized to', 1472 | 'is responsible for', 1473 | 'it is essential', 1474 | 'it is', 1475 | 'it seems that', 1476 | 'it was', 1477 | 'magnitude', 1478 | 'maximum', 1479 | 'methodology', 1480 | 'minimize', 1481 | 'minimum', 1482 | 'modify', 1483 | 'monitor', 1484 | 'multiple', 1485 | 'necessitate', 1486 | 'nevertheless', 1487 | 'not certain', 1488 | 'not many', 1489 | 'not often', 1490 | 'not unless', 1491 | 'not unlike', 1492 | 'notwithstanding', 1493 | 'null and void', 1494 | 'numerous', 1495 | 'objective', 1496 | 'obligate', 1497 | 'obtain', 1498 | 'on the contrary', 1499 | 'on the other hand', 1500 | 'one particular', 1501 | 'optimum', 1502 | 'overall', 1503 | 'owing to the fact that', 1504 | 'participate', 1505 | 'particulars', 1506 | 'pass away', 1507 | 'pertaining to', 1508 | 'point in time', 1509 | 'portion', 1510 | 'possess', 1511 | 'preclude', 1512 | 'previously', 1513 | 'prior to', 1514 | 'prioritize', 1515 | 'procure', 1516 | 'proficiency', 1517 | 'provided that', 1518 | 'purchase', 1519 | 'put simply', 1520 | 'readily apparent', 1521 | 'refer back', 1522 | 'regarding', 1523 | 'relocate', 1524 | 'remainder', 1525 | 'remuneration', 1526 | 'requirement', 1527 | 'reside', 1528 | 'residence', 1529 | 'retain', 1530 | 'satisfy', 1531 | 'shall', 1532 | 'should you wish', 1533 | 'similar to', 1534 | 'solicit', 1535 | 'span across', 1536 | 'strategize', 1537 | 'subsequent', 1538 | 'substantial', 1539 | 'successfully complete', 1540 | 'sufficient', 1541 | 'terminate', 1542 | 'the month of', 1543 | 'the point I am trying to make', 1544 | 'therefore', 1545 | 'time period', 1546 | 'took advantage of', 1547 | 'transmit', 1548 | 'transpire', 1549 | 'type of', 1550 | 'until such time as', 1551 | 'utilization', 1552 | 'utilize', 1553 | 'validate', 1554 | 'various different', 1555 | 'what I mean to say is', 1556 | 'whether or not', 1557 | 'with respect to', 1558 | 'with the exception of', 1559 | 'witnessed' 1560 | ]; 1561 | 1562 | const wordyRegex = new RegExp(`\\b(${wordyWords.join('|')})\\b`, 'gi'); 1563 | 1564 | module.exports = function isTextWordy(text) { 1565 | return matcher(wordyRegex, text); 1566 | }; 1567 | 1568 | },{"./matcher":11}],13:[function(require,module,exports){ 1569 | var weasels = [ 1570 | 'are a number', 1571 | 'clearly', 1572 | 'completely', 1573 | 'exceedingly', 1574 | 'excellent', 1575 | 'extremely', 1576 | 'fairly', 1577 | 'few', 1578 | 'huge', 1579 | 'interestingly', 1580 | 'is a number', 1581 | 'largely', 1582 | 'many', 1583 | 'mostly', 1584 | 'obviously', 1585 | 'quite', 1586 | 'relatively', 1587 | 'remarkably', 1588 | 'several', 1589 | 'significantly', 1590 | 'substantially', 1591 | 'surprisingly', 1592 | 'tiny', 1593 | 'various', 1594 | 'vast', 1595 | 'very' 1596 | ]; 1597 | 1598 | // Allow "too many" and "too few" 1599 | var exceptions = [ 1600 | 'many', 1601 | 'few' 1602 | ] 1603 | 1604 | var re = new RegExp('\\b(' + weasels.join('|') + ')\\b', 'gi'); 1605 | 1606 | module.exports = function (text, opts) { 1607 | var suggestions = []; 1608 | while (match = re.exec(text)) { 1609 | var weasel = match[0].toLowerCase(); 1610 | if (exceptions.indexOf(weasel) === -1 || 1611 | text.substr(match.index-4, 4) !== 'too ') { 1612 | suggestions.push({ 1613 | index: match.index, 1614 | offset: weasel.length, 1615 | }); 1616 | } 1617 | } 1618 | return suggestions; 1619 | }; 1620 | 1621 | },{}],14:[function(require,module,exports){ 1622 | const weaselWords = require('weasel-words'); 1623 | const passiveVoice = require('passive-voice'); 1624 | const adverbWhere = require('adverb-where'); 1625 | const tooWordy = require('too-wordy'); 1626 | const noCliches = require('no-cliches'); 1627 | const ePrime = require('e-prime'); 1628 | 1629 | const lexicalIllusions = require('./lib/lexical-illusions'); 1630 | const startsWithSo = require('./lib/starts-with-so'); 1631 | const thereIs = require('./lib/there-is'); 1632 | 1633 | const defaultChecks = { 1634 | weasel: { fn: weaselWords, explanation: 'is a weasel word' }, 1635 | illusion: { fn: lexicalIllusions, explanation: 'is repeated' }, 1636 | so: { fn: startsWithSo, explanation: 'adds no meaning' }, 1637 | thereIs: { fn: thereIs, explanation: 'is unnecessary verbiage' }, 1638 | passive: { fn: passiveVoice, explanation: 'may be passive voice' }, 1639 | adverb: { fn: adverbWhere, explanation: 'can weaken meaning' }, 1640 | tooWordy: { fn: tooWordy, explanation: 'is wordy or unneeded' }, 1641 | cliches: { fn: noCliches, explanation: 'is a cliche' }, 1642 | eprime: { fn: ePrime, explanation: 'is a form of \'to be\'' } 1643 | }; 1644 | 1645 | // User must explicitly opt-in 1646 | const disabledChecks = { 1647 | eprime: false 1648 | }; 1649 | 1650 | function filter(text, suggestions, whitelistTerms = []) { 1651 | const whitelistSlices = whitelistTerms.reduce((memo, term) => { 1652 | let index = text.indexOf(term); 1653 | while (index > 0) { 1654 | memo.push({ from: index, to: index + term.length }); 1655 | index = text.indexOf(term, index + 1); 1656 | } 1657 | return memo; 1658 | }, []); 1659 | 1660 | return suggestions.reduce((memo, suggestion) => { 1661 | if (!whitelistSlices.find((slice) => { 1662 | const suggestionFrom = suggestion.index; 1663 | const suggestionTo = suggestion.index + suggestion.offset; 1664 | return ( 1665 | // suggestion covers entire whitelist term 1666 | suggestionFrom <= slice.from && suggestionTo >= slice.to 1667 | ) || ( 1668 | // suggestion starts within whitelist term 1669 | suggestionFrom >= slice.from && suggestionFrom <= slice.to 1670 | ) || ( 1671 | // suggestion ends within whitelist term 1672 | suggestionTo >= slice.from && suggestionTo <= slice.to 1673 | ); 1674 | })) { 1675 | memo.push(suggestion); 1676 | } 1677 | return memo; 1678 | }, []); 1679 | } 1680 | 1681 | function dedup(suggestions) { 1682 | const dupsHash = {}; 1683 | 1684 | return suggestions.reduce((memo, suggestion) => { 1685 | const key = `${suggestion.index}:${suggestion.offset}`; 1686 | if (!dupsHash[key]) { 1687 | dupsHash[key] = suggestion; 1688 | memo.push(suggestion); 1689 | } else { 1690 | dupsHash[key].reason += ` and ${suggestion.reason.substring(suggestion.offset + 3)}`; 1691 | } 1692 | return memo; 1693 | }, []); 1694 | } 1695 | 1696 | function reasonable(text, reason) { 1697 | return function reasonableSuggestion(suggestion) { 1698 | // eslint-disable-next-line no-param-reassign 1699 | suggestion.reason = `"${ 1700 | text.substr(suggestion.index, suggestion.offset) 1701 | }" ${reason}`; 1702 | return suggestion; 1703 | }; 1704 | } 1705 | 1706 | module.exports = function writeGood(text, opts = {}) { 1707 | const finalOpts = {}; 1708 | const defaultOpts = Object.assign({}, disabledChecks, opts); 1709 | Object.keys(defaultOpts).forEach((optKey) => { 1710 | if (optKey !== 'checks') { 1711 | finalOpts[optKey] = defaultOpts[optKey]; 1712 | } 1713 | }); 1714 | 1715 | const finalChecks = opts.checks || defaultChecks; 1716 | 1717 | let suggestions = []; 1718 | Object.keys(finalChecks).forEach((checkName) => { 1719 | if (finalOpts[checkName] !== false) { 1720 | suggestions = suggestions.concat( 1721 | finalChecks[checkName] 1722 | .fn(text) 1723 | .map(reasonable(text, finalChecks[checkName].explanation)) 1724 | ); 1725 | } 1726 | }); 1727 | 1728 | const filtered = filter(text, suggestions, opts.whitelist); 1729 | 1730 | return dedup(filtered).sort((a, b) => (a.index < b.index ? -1 : 1)); 1731 | }; 1732 | 1733 | module.exports.annotate = require('./lib/annotate'); 1734 | 1735 | },{"./lib/annotate":1,"./lib/lexical-illusions":2,"./lib/starts-with-so":3,"./lib/there-is":4,"adverb-where":5,"e-prime":7,"no-cliches":8,"passive-voice":10,"too-wordy":12,"weasel-words":13}]},{},[14])(14) 1736 | }); 1737 | --------------------------------------------------------------------------------