Socket
Socket
Sign inDemoInstall

sparser

Package Overview
Dependencies
1
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.7 to 1.4.8

3

index.d.ts

@@ -11,2 +11,5 @@ declare var ace: any;

}
interface cftags {
[key:string]: "optional" | "prohibited" | "required";
}
interface commandList {

@@ -13,0 +16,0 @@ [key: string]: {

@@ -748,3 +748,8 @@ (function style_init() {

ltype = typename;
recordPush("");
if (ltype.indexOf("start") > -1 || ltype.indexOf("else") > -1) {
recordPush(ltoke);
}
else {
recordPush("");
}
};

@@ -884,2 +889,18 @@ nosort[nosort.length - 1] = true;

}
if ((/\{\s*\?>$/).test(ltoke) === true) {
if ((/^<\?(=|(php))\s*\}\s*else/).test(ltoke) === true) {
exit("template_else");
return;
}
exit("template_start");
return;
}
if ((/^<\?(=|(php))\s*\}/).test(ltoke) === true) {
if ((/^<\?(=|(php))\s*\}\s*else/).test(ltoke) === true) {
exit("template_else");
return;
}
exit("template_end");
return;
}
exit("template");

@@ -1143,2 +1164,6 @@ return;

}
else if (b[a] === "<" && b[a + 1] === "?" && b[a + 2] === "=") {
//php
template("<?=", "?>");
}
else if (b[a] === "<" && b[a + 1] === "%") {

@@ -1145,0 +1170,0 @@ //asp

6

js/parsefile.js

@@ -571,3 +571,3 @@ /*jslint node:true */

if (structure.replace(/(\{|\}|@|<|>|%|#|)/g, "") === "") {
if (record.types === "else" || record.types.indexOf("_else") > 0) {
if (record.types === "else") {
structure = "else";

@@ -579,4 +579,4 @@ }

}
else {
structure = structure.replace(/(\{|\}|@|<|>|%|#|)/g, "");
else if ((/^<\?(=|(php))/).test(structure) === false) {
structure = structure.replace(/(\{|\}|@|<|>|%|#|)\s*/g, "");
}

@@ -583,0 +583,0 @@ }

@@ -8,3 +8,3 @@ # Lexer - markup

* **cdata_start** - When a CDATA segment starts an enclosed grammar parsed with a different lexer.
* **comment** - An XML comment.
* **comment** - Comment in XML or supporting template syntax.
* **comment_attribute** - JSX allows JavaScript style comments as tag attributes.

@@ -11,0 +11,0 @@ * **conditional** - Comments used in IE to hack references to CSS by IE version. Follows a SGML square brace convention.

@@ -12,3 +12,3 @@ {

"ace-builds": "1.4.5",
"ws": "^7.1.1"
"ws": "^7.1.2"
},

@@ -40,3 +40,3 @@ "directories": {

},
"version": "1.4.7"
"version": "1.4.8"
}

@@ -8,3 +8,3 @@ # Sparser - https://sparser.io

## Version 1.4.7
## Version 1.4.8
Play around with this application [in your browser](https://sparser/demo/).

@@ -11,0 +11,0 @@

@@ -11,2 +11,6 @@ <!doctype html>

<?= $title ?>
<?php } else if ($title_a) { ?>
<?= $title_a ?>
<?php } else { ?>
<?= $something ?>
<?php } ?>

@@ -22,9 +26,29 @@ Administration

csrfTokenName: "<?= $csrf_name ?>",
csrfTokenValue: "<?= $csrf_value ?>",
csrfTokenValue: "<?php if ($tokentest) { ?>
<?= $tokentest ?>
<?php } else if ($tokentest_a) { ?>
<?= $tokentest_a ?>
<?php } else { ?>
<?= $tokentest_b ?>
<?php } ?>",
};
let demovar = <?= json_encode($demovar) ?>;
let test = <?php if ($width) { ?>
<?= $width ?>
<?php } else if ($width_a) { ?>
<?= $width_a ?>
<?php } else { ?>
<?= $width_b ?>
<?php } ?>;
</script>
<style type="css">
<style type="text/css">
a {
width: <?= $width_value ?>px;
width:
<?php if ($width) { ?>
<?= $width ?>
<?php } else if ($width_a) { ?>
<?= $width_a ?>
<?php } else { ?>
<?= $width_b ?>
<?php } ?>px;
}

@@ -31,0 +55,0 @@ </style>

[
{"begin":-1,"ender":-1,"lexer":"markup","lines":0,"stack":"global","token":"<!DOCTYPE html>","types":"sgml"},
{"begin":-1,"ender":69,"lexer":"markup","lines":2,"stack":"global","token":"<html>","types":"start"},
{"begin":-1,"ender":73,"lexer":"markup","lines":2,"stack":"global","token":"<html>","types":"start"},
{"begin":1,"ender":7,"lexer":"markup","lines":2,"stack":"html","token":"<head>","types":"start"},

@@ -15,59 +15,63 @@ {"begin":2,"ender":7,"lexer":"markup","lines":2,"stack":"head","token":"<meta/>","types":"singleton"},

{"begin":10,"ender":12,"lexer":"markup","lines":0,"stack":"script","token":"</script>","types":"end"},
{"begin":1,"ender":68,"lexer":"markup","lines":2,"stack":"html","token":"<script>","types":"start"},
{"begin":13,"ender":68,"lexer":"script","lines":2,"stack":"script","token":"var","types":"word"},
{"begin":13,"ender":68,"lexer":"script","lines":1,"stack":"script","token":"socket","types":"reference"},
{"begin":13,"ender":68,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":13,"ender":68,"lexer":"script","lines":1,"stack":"script","token":"io","types":"word"},
{"begin":13,"ender":20,"lexer":"script","lines":0,"stack":"script","token":"(","types":"start"},
{"begin":18,"ender":20,"lexer":"script","lines":0,"stack":"method","token":"\"<%= path %>\"","types":"string"},
{"begin":18,"ender":20,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":13,"ender":68,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":13,"ender":68,"lexer":"script","lines":2,"stack":"script","token":"socket","types":"reference"},
{"begin":13,"ender":68,"lexer":"script","lines":0,"stack":"script","token":".","types":"separator"},
{"begin":13,"ender":68,"lexer":"script","lines":0,"stack":"script","token":"on","types":"word"},
{"begin":13,"ender":47,"lexer":"script","lines":0,"stack":"script","token":"(","types":"start"},
{"begin":25,"ender":47,"lexer":"script","lines":0,"stack":"method","token":"\"message\"","types":"string"},
{"begin":25,"ender":47,"lexer":"script","lines":0,"stack":"method","token":",","types":"separator"},
{"begin":25,"ender":47,"lexer":"script","lines":1,"stack":"method","token":"function","types":"word"},
{"begin":25,"ender":33,"lexer":"script","lines":1,"stack":"method","token":"(","types":"start"},
{"begin":29,"ender":33,"lexer":"script","lines":0,"stack":"arguments","token":"message","types":"reference"},
{"begin":29,"ender":33,"lexer":"script","lines":0,"stack":"arguments","token":",","types":"separator"},
{"begin":29,"ender":33,"lexer":"script","lines":1,"stack":"arguments","token":"next","types":"reference"},
{"begin":29,"ender":33,"lexer":"script","lines":0,"stack":"arguments","token":")","types":"end"},
{"begin":25,"ender":46,"lexer":"script","lines":1,"stack":"method","token":"{","types":"start"},
{"begin":34,"ender":46,"lexer":"script","lines":2,"stack":"function","token":"console","types":"word"},
{"begin":34,"ender":46,"lexer":"script","lines":0,"stack":"function","token":".","types":"separator"},
{"begin":34,"ender":46,"lexer":"script","lines":0,"stack":"function","token":"log","types":"word"},
{"begin":34,"ender":40,"lexer":"script","lines":0,"stack":"function","token":"(","types":"start"},
{"begin":38,"ender":40,"lexer":"script","lines":0,"stack":"method","token":"message","types":"reference"},
{"begin":38,"ender":40,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":34,"ender":46,"lexer":"script","lines":0,"stack":"function","token":";","types":"separator"},
{"begin":34,"ender":46,"lexer":"script","lines":2,"stack":"function","token":"next","types":"reference"},
{"begin":34,"ender":44,"lexer":"script","lines":0,"stack":"function","token":"(","types":"start"},
{"begin":43,"ender":44,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":34,"ender":46,"lexer":"script","lines":0,"stack":"function","token":";","types":"separator"},
{"begin":34,"ender":46,"lexer":"script","lines":2,"stack":"function","token":"}","types":"end"},
{"begin":25,"ender":47,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":13,"ender":68,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":13,"ender":68,"lexer":"script","lines":2,"stack":"script","token":"socket","types":"reference"},
{"begin":13,"ender":68,"lexer":"script","lines":0,"stack":"script","token":".","types":"separator"},
{"begin":13,"ender":68,"lexer":"script","lines":0,"stack":"script","token":"emit","types":"word"},
{"begin":13,"ender":66,"lexer":"script","lines":0,"stack":"script","token":"(","types":"start"},
{"begin":52,"ender":66,"lexer":"script","lines":0,"stack":"method","token":"\"subscribe\"","types":"string"},
{"begin":52,"ender":66,"lexer":"script","lines":0,"stack":"method","token":",","types":"separator"},
{"begin":52,"ender":65,"lexer":"script","lines":1,"stack":"method","token":"{","types":"start"},
{"begin":55,"ender":65,"lexer":"script","lines":2,"stack":"object","token":"\"room\"","types":"string"},
{"begin":55,"ender":65,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":55,"ender":60,"lexer":"script","lines":1,"stack":"object","token":"[","types":"start"},
{"begin":58,"ender":60,"lexer":"script","lines":0,"stack":"array","token":"1","types":"number"},
{"begin":58,"ender":60,"lexer":"script","lines":0,"stack":"array","token":"]","types":"end"},
{"begin":55,"ender":65,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":55,"ender":65,"lexer":"script","lines":2,"stack":"object","token":"\"uid\"","types":"string"},
{"begin":55,"ender":65,"lexer":"script","lines":1,"stack":"object","token":":","types":"operator"},
{"begin":55,"ender":65,"lexer":"script","lines":1,"stack":"object","token":"\"<%= uid %>\"","types":"string"},
{"begin":55,"ender":65,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":52,"ender":66,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":13,"ender":68,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":13,"ender":68,"lexer":"markup","lines":2,"stack":"script","token":"</script>","types":"end"},
{"begin":1,"ender":69,"lexer":"markup","lines":2,"stack":"html","token":"</html>","types":"end"}
{"begin":1,"ender":72,"lexer":"markup","lines":2,"stack":"html","token":"<script>","types":"start"},
{"begin":13,"ender":72,"lexer":"script","lines":2,"stack":"script","token":"var","types":"word"},
{"begin":13,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"socket","types":"reference"},
{"begin":13,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":13,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"io","types":"word"},
{"begin":13,"ender":22,"lexer":"script","lines":0,"stack":"script","token":"(","types":"start"},
{"begin":18,"ender":22,"lexer":"script","lines":0,"stack":"method","token":"\"","types":"string"},
{"begin":18,"ender":22,"lexer":"script","lines":0,"stack":"method","token":"<%= path %>","types":"template"},
{"begin":18,"ender":22,"lexer":"script","lines":0,"stack":"method","token":"\"","types":"string"},
{"begin":18,"ender":22,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":13,"ender":72,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":13,"ender":72,"lexer":"script","lines":2,"stack":"script","token":"socket","types":"reference"},
{"begin":13,"ender":72,"lexer":"script","lines":0,"stack":"script","token":".","types":"separator"},
{"begin":13,"ender":72,"lexer":"script","lines":0,"stack":"script","token":"on","types":"word"},
{"begin":13,"ender":49,"lexer":"script","lines":0,"stack":"script","token":"(","types":"start"},
{"begin":27,"ender":49,"lexer":"script","lines":0,"stack":"method","token":"\"message\"","types":"string"},
{"begin":27,"ender":49,"lexer":"script","lines":0,"stack":"method","token":",","types":"separator"},
{"begin":27,"ender":49,"lexer":"script","lines":1,"stack":"method","token":"function","types":"word"},
{"begin":27,"ender":35,"lexer":"script","lines":1,"stack":"method","token":"(","types":"start"},
{"begin":31,"ender":35,"lexer":"script","lines":0,"stack":"arguments","token":"message","types":"reference"},
{"begin":31,"ender":35,"lexer":"script","lines":0,"stack":"arguments","token":",","types":"separator"},
{"begin":31,"ender":35,"lexer":"script","lines":1,"stack":"arguments","token":"next","types":"reference"},
{"begin":31,"ender":35,"lexer":"script","lines":0,"stack":"arguments","token":")","types":"end"},
{"begin":27,"ender":48,"lexer":"script","lines":1,"stack":"method","token":"{","types":"start"},
{"begin":36,"ender":48,"lexer":"script","lines":2,"stack":"function","token":"console","types":"word"},
{"begin":36,"ender":48,"lexer":"script","lines":0,"stack":"function","token":".","types":"separator"},
{"begin":36,"ender":48,"lexer":"script","lines":0,"stack":"function","token":"log","types":"word"},
{"begin":36,"ender":42,"lexer":"script","lines":0,"stack":"function","token":"(","types":"start"},
{"begin":40,"ender":42,"lexer":"script","lines":0,"stack":"method","token":"message","types":"reference"},
{"begin":40,"ender":42,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":36,"ender":48,"lexer":"script","lines":0,"stack":"function","token":";","types":"separator"},
{"begin":36,"ender":48,"lexer":"script","lines":2,"stack":"function","token":"next","types":"reference"},
{"begin":36,"ender":46,"lexer":"script","lines":0,"stack":"function","token":"(","types":"start"},
{"begin":45,"ender":46,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":36,"ender":48,"lexer":"script","lines":0,"stack":"function","token":";","types":"separator"},
{"begin":36,"ender":48,"lexer":"script","lines":2,"stack":"function","token":"}","types":"end"},
{"begin":27,"ender":49,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":13,"ender":72,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":13,"ender":72,"lexer":"script","lines":2,"stack":"script","token":"socket","types":"reference"},
{"begin":13,"ender":72,"lexer":"script","lines":0,"stack":"script","token":".","types":"separator"},
{"begin":13,"ender":72,"lexer":"script","lines":0,"stack":"script","token":"emit","types":"word"},
{"begin":13,"ender":70,"lexer":"script","lines":0,"stack":"script","token":"(","types":"start"},
{"begin":54,"ender":70,"lexer":"script","lines":0,"stack":"method","token":"\"subscribe\"","types":"string"},
{"begin":54,"ender":70,"lexer":"script","lines":0,"stack":"method","token":",","types":"separator"},
{"begin":54,"ender":69,"lexer":"script","lines":1,"stack":"method","token":"{","types":"start"},
{"begin":57,"ender":69,"lexer":"script","lines":2,"stack":"object","token":"\"room\"","types":"string"},
{"begin":57,"ender":69,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":57,"ender":62,"lexer":"script","lines":1,"stack":"object","token":"[","types":"start"},
{"begin":60,"ender":62,"lexer":"script","lines":0,"stack":"array","token":"1","types":"number"},
{"begin":60,"ender":62,"lexer":"script","lines":0,"stack":"array","token":"]","types":"end"},
{"begin":57,"ender":69,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":57,"ender":69,"lexer":"script","lines":2,"stack":"object","token":"\"uid\"","types":"string"},
{"begin":57,"ender":69,"lexer":"script","lines":1,"stack":"object","token":":","types":"operator"},
{"begin":57,"ender":69,"lexer":"script","lines":1,"stack":"object","token":"\"","types":"string"},
{"begin":57,"ender":69,"lexer":"script","lines":0,"stack":"object","token":"<%= uid %>","types":"template"},
{"begin":57,"ender":69,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":57,"ender":69,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":54,"ender":70,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":13,"ender":72,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":13,"ender":72,"lexer":"markup","lines":2,"stack":"script","token":"</script>","types":"end"},
{"begin":1,"ender":73,"lexer":"markup","lines":2,"stack":"html","token":"</html>","types":"end"}
]
[
{"begin":-1,"ender":-1,"lexer":"markup","lines":0,"stack":"global","token":"<!doctype html>","types":"sgml"},
{"begin":-1,"ender":87,"lexer":"markup","lines":2,"stack":"global","token":"<html>","types":"start"},
{"begin":1,"ender":87,"lexer":"markup","lines":1,"stack":"html","token":"lang=\"en\"","types":"attribute"},
{"begin":1,"ender":57,"lexer":"markup","lines":3,"stack":"html","token":"<head>","types":"start"},
{"begin":3,"ender":57,"lexer":"markup","lines":2,"stack":"head","token":"<meta>","types":"singleton"},
{"begin":4,"ender":57,"lexer":"markup","lines":1,"stack":"meta","token":"charset=\"utf-8\"","types":"attribute"},
{"begin":3,"ender":57,"lexer":"markup","lines":2,"stack":"head","token":"<meta>","types":"singleton"},
{"begin":6,"ender":57,"lexer":"markup","lines":1,"stack":"meta","token":"name=\"viewport\"","types":"attribute"},
{"begin":6,"ender":57,"lexer":"markup","lines":1,"stack":"meta","token":"content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"","types":"attribute"},
{"begin":3,"ender":14,"lexer":"markup","lines":3,"stack":"head","token":"<title>","types":"start"},
{"begin":9,"ender":14,"lexer":"markup","lines":2,"stack":"title","token":"<?php if ($title) { ?>","types":"template"},
{"begin":9,"ender":14,"lexer":"markup","lines":2,"stack":"title","token":"<?= $title ?>","types":"template"},
{"begin":9,"ender":14,"lexer":"markup","lines":2,"stack":"title","token":"<?php } ?>","types":"template"},
{"begin":9,"ender":14,"lexer":"markup","lines":2,"stack":"title","token":"Administration","types":"content"},
{"begin":9,"ender":14,"lexer":"markup","lines":2,"stack":"title","token":"</title>","types":"end"},
{"begin":3,"ender":57,"lexer":"markup","lines":2,"stack":"head","token":"<link>","types":"singleton"},
{"begin":15,"ender":57,"lexer":"markup","lines":1,"stack":"link","token":"rel=\"stylesheet\"","types":"attribute"},
{"begin":15,"ender":57,"lexer":"markup","lines":1,"stack":"link","token":"href=\"...link-to-file\"","types":"attribute"},
{"begin":3,"ender":45,"lexer":"markup","lines":3,"stack":"head","token":"<script>","types":"start"},
{"begin":18,"ender":45,"lexer":"script","lines":2,"stack":"script","token":"let","types":"word"},
{"begin":18,"ender":45,"lexer":"script","lines":1,"stack":"script","token":"config","types":"reference"},
{"begin":18,"ender":45,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":18,"ender":38,"lexer":"script","lines":1,"stack":"script","token":"{","types":"start"},
{"begin":22,"ender":38,"lexer":"script","lines":2,"stack":"object","token":"dateFormat","types":"property"},
{"begin":22,"ender":38,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":38,"lexer":"script","lines":1,"stack":"object","token":"\"<?= date('Y-m-d') ?>\"","types":"string"},
{"begin":22,"ender":38,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":38,"lexer":"script","lines":2,"stack":"object","token":"weekStart","types":"property"},
{"begin":22,"ender":38,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":38,"lexer":"script","lines":1,"stack":"object","token":"<?= $weekstart ? 0 : 1 ?>","types":"template"},
{"begin":22,"ender":38,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":38,"lexer":"script","lines":2,"stack":"object","token":"csrfTokenName","types":"property"},
{"begin":22,"ender":38,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":38,"lexer":"script","lines":1,"stack":"object","token":"\"<?= $csrf_name ?>\"","types":"string"},
{"begin":22,"ender":38,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":38,"lexer":"script","lines":2,"stack":"object","token":"csrfTokenValue","types":"property"},
{"begin":22,"ender":38,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":38,"lexer":"script","lines":1,"stack":"object","token":"\"<?= $csrf_value ?>\"","types":"string"},
{"begin":22,"ender":38,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":18,"ender":45,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":18,"ender":45,"lexer":"script","lines":2,"stack":"script","token":"let","types":"word"},
{"begin":18,"ender":45,"lexer":"script","lines":1,"stack":"script","token":"demovar","types":"reference"},
{"begin":18,"ender":45,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":18,"ender":45,"lexer":"script","lines":1,"stack":"script","token":"<?= json_encode($demovar) ?>","types":"template"},
{"begin":18,"ender":45,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":18,"ender":45,"lexer":"markup","lines":2,"stack":"script","token":"</script>","types":"end"},
{"begin":3,"ender":51,"lexer":"markup","lines":2,"stack":"head","token":"<style>","types":"start"},
{"begin":46,"ender":51,"lexer":"markup","lines":1,"stack":"style","token":"type=\"css\"","types":"attribute"},
{"begin":46,"ender":51,"lexer":"markup","lines":2,"stack":"style","token":"a {\n width:","types":"content"},
{"begin":46,"ender":51,"lexer":"markup","lines":1,"stack":"style","token":"<?= $width_value ?>","types":"template"},
{"begin":46,"ender":51,"lexer":"markup","lines":0,"stack":"style","token":"px;\n }","types":"content"},
{"begin":46,"ender":51,"lexer":"markup","lines":2,"stack":"style","token":"</style>","types":"end"},
{"begin":3,"ender":57,"lexer":"markup","lines":2,"stack":"head","token":"<?php foreach ($styles as $style) { ?>","types":"template"},
{"begin":3,"ender":57,"lexer":"markup","lines":2,"stack":"head","token":"<link>","types":"singleton"},
{"begin":53,"ender":57,"lexer":"markup","lines":1,"stack":"link","token":"rel=\"stylesheet\"","types":"attribute"},
{"begin":53,"ender":57,"lexer":"markup","lines":1,"stack":"link","token":"href=\"<?= $style ?>\"","types":"template_attribute"},
{"begin":3,"ender":57,"lexer":"markup","lines":2,"stack":"head","token":"<?php } ?>","types":"template"},
{"begin":3,"ender":57,"lexer":"markup","lines":2,"stack":"head","token":"</head>","types":"end"},
{"begin":1,"ender":86,"lexer":"markup","lines":3,"stack":"html","token":"<body>","types":"start"},
{"begin":58,"ender":86,"lexer":"markup","lines":2,"stack":"body","token":"<?php include \"admin/includes/_alert.php\" ?>","types":"template"},
{"begin":58,"ender":72,"lexer":"markup","lines":3,"stack":"body","token":"<section>","types":"start"},
{"begin":60,"ender":72,"lexer":"markup","lines":1,"stack":"section","token":"id=\"default\"","types":"attribute"},
{"begin":60,"ender":72,"lexer":"markup","lines":1,"stack":"section","token":"class=\"content-wrapper\"","types":"attribute"},
{"begin":60,"ender":66,"lexer":"markup","lines":2,"stack":"section","token":"<div>","types":"start"},
{"begin":63,"ender":66,"lexer":"markup","lines":1,"stack":"div","token":"class=\"sidebar\"","types":"attribute"},
{"begin":63,"ender":66,"lexer":"markup","lines":2,"stack":"div","token":"<?= $sidebar ?>","types":"template"},
{"begin":63,"ender":66,"lexer":"markup","lines":2,"stack":"div","token":"</div>","types":"end"},
{"begin":60,"ender":71,"lexer":"markup","lines":3,"stack":"section","token":"<main>","types":"start"},
{"begin":67,"ender":71,"lexer":"markup","lines":1,"stack":"main","token":"role=\"main\"","types":"attribute"},
{"begin":67,"ender":71,"lexer":"markup","lines":1,"stack":"main","token":"class=\"content\"","types":"attribute"},
{"begin":67,"ender":71,"lexer":"markup","lines":2,"stack":"main","token":"<?= $content ?>","types":"template"},
{"begin":67,"ender":71,"lexer":"markup","lines":2,"stack":"main","token":"</main>","types":"end"},
{"begin":60,"ender":72,"lexer":"markup","lines":2,"stack":"section","token":"</section>","types":"end"},
{"begin":58,"ender":75,"lexer":"markup","lines":3,"stack":"body","token":"<script>","types":"start"},
{"begin":73,"ender":75,"lexer":"markup","lines":1,"stack":"script","token":"src=\"...link-to-file\"","types":"attribute"},
{"begin":73,"ender":75,"lexer":"markup","lines":0,"stack":"script","token":"</script>","types":"end"},
{"begin":58,"ender":86,"lexer":"markup","lines":3,"stack":"body","token":"<?= $footer ?>","types":"template"},
{"begin":58,"ender":82,"lexer":"markup","lines":2,"stack":"body","token":"<li>","types":"start"},
{"begin":77,"ender":81,"lexer":"markup","lines":0,"stack":"li","token":"<a>","types":"start"},
{"begin":78,"ender":81,"lexer":"markup","lines":1,"stack":"a","token":"href=\"<?= $home->url ?>\"","types":"template_attribute"},
{"begin":78,"ender":81,"lexer":"markup","lines":0,"stack":"a","token":"Home","types":"content"},
{"begin":78,"ender":81,"lexer":"markup","lines":0,"stack":"a","token":"</a>","types":"end"},
{"begin":77,"ender":82,"lexer":"markup","lines":0,"stack":"li","token":"</li>","types":"end"},
{"begin":58,"ender":86,"lexer":"markup","lines":2,"stack":"body","token":"<?= $var ?>","types":"template"},
{"begin":58,"ender":86,"lexer":"markup","lines":2,"stack":"body","token":"<a/>","types":"singleton"},
{"begin":84,"ender":86,"lexer":"markup","lines":1,"stack":"a","token":"routerlink=\"/detail/<?= $hero->id ?>\"","types":"attribute"},
{"begin":58,"ender":86,"lexer":"markup","lines":2,"stack":"body","token":"</body>","types":"end"},
{"begin":1,"ender":87,"lexer":"markup","lines":3,"stack":"html","token":"</html>","types":"end"}
{"begin":-1,"ender":125,"lexer":"markup","lines":2,"stack":"global","token":"<html>","types":"start"},
{"begin":1,"ender":125,"lexer":"markup","lines":1,"stack":"html","token":"lang=\"en\"","types":"attribute"},
{"begin":1,"ender":95,"lexer":"markup","lines":3,"stack":"html","token":"<head>","types":"start"},
{"begin":3,"ender":95,"lexer":"markup","lines":2,"stack":"head","token":"<meta>","types":"singleton"},
{"begin":4,"ender":95,"lexer":"markup","lines":1,"stack":"meta","token":"charset=\"utf-8\"","types":"attribute"},
{"begin":3,"ender":95,"lexer":"markup","lines":2,"stack":"head","token":"<meta>","types":"singleton"},
{"begin":6,"ender":95,"lexer":"markup","lines":1,"stack":"meta","token":"name=\"viewport\"","types":"attribute"},
{"begin":6,"ender":95,"lexer":"markup","lines":1,"stack":"meta","token":"content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"","types":"attribute"},
{"begin":3,"ender":18,"lexer":"markup","lines":3,"stack":"head","token":"<title>","types":"start"},
{"begin":9,"ender":12,"lexer":"markup","lines":2,"stack":"title","token":"<?php if ($title) { ?>","types":"template_start"},
{"begin":10,"ender":12,"lexer":"markup","lines":2,"stack":"<?php if ($title) { ?>","token":"<?= $title ?>","types":"template"},
{"begin":10,"ender":14,"lexer":"markup","lines":2,"stack":"<?php if ($title) { ?>","token":"<?php } else if ($title_a) { ?>","types":"template_else"},
{"begin":12,"ender":14,"lexer":"markup","lines":2,"stack":"<?php } else if ($title_a) { ?>","token":"<?= $title_a ?>","types":"template"},
{"begin":12,"ender":16,"lexer":"markup","lines":2,"stack":"<?php } else if ($title_a) { ?>","token":"<?php } else { ?>","types":"template_else"},
{"begin":14,"ender":16,"lexer":"markup","lines":2,"stack":"<?php } else { ?>","token":"<?= $something ?>","types":"template"},
{"begin":14,"ender":16,"lexer":"markup","lines":2,"stack":"<?php } else { ?>","token":"<?php } ?>","types":"template_end"},
{"begin":9,"ender":18,"lexer":"markup","lines":2,"stack":"title","token":"Administration","types":"content"},
{"begin":9,"ender":18,"lexer":"markup","lines":2,"stack":"title","token":"</title>","types":"end"},
{"begin":3,"ender":95,"lexer":"markup","lines":2,"stack":"head","token":"<link>","types":"singleton"},
{"begin":19,"ender":95,"lexer":"markup","lines":1,"stack":"link","token":"rel=\"stylesheet\"","types":"attribute"},
{"begin":19,"ender":95,"lexer":"markup","lines":1,"stack":"link","token":"href=\"...link-to-file\"","types":"attribute"},
{"begin":3,"ender":72,"lexer":"markup","lines":3,"stack":"head","token":"<script>","types":"start"},
{"begin":22,"ender":72,"lexer":"script","lines":2,"stack":"script","token":"let","types":"word"},
{"begin":22,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"config","types":"reference"},
{"begin":22,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":22,"ender":54,"lexer":"script","lines":1,"stack":"script","token":"{","types":"start"},
{"begin":26,"ender":54,"lexer":"script","lines":2,"stack":"object","token":"dateFormat","types":"property"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":26,"ender":54,"lexer":"script","lines":1,"stack":"object","token":"\"","types":"string"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":"<?= date('Y-m-d') ?>","types":"template"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":26,"ender":54,"lexer":"script","lines":2,"stack":"object","token":"weekStart","types":"property"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":26,"ender":54,"lexer":"script","lines":1,"stack":"object","token":"<?= $weekstart ? 0 : 1 ?>","types":"template"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":26,"ender":54,"lexer":"script","lines":2,"stack":"object","token":"csrfTokenName","types":"property"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":26,"ender":54,"lexer":"script","lines":1,"stack":"object","token":"\"","types":"string"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":"<?= $csrf_name ?>","types":"template"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":26,"ender":54,"lexer":"script","lines":2,"stack":"object","token":"csrfTokenValue","types":"property"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":26,"ender":54,"lexer":"script","lines":1,"stack":"object","token":"\"","types":"string"},
{"begin":26,"ender":48,"lexer":"script","lines":0,"stack":"object","token":"<?php if ($tokentest) { ?>","types":"template_start"},
{"begin":46,"ender":48,"lexer":"script","lines":2,"stack":"<?php if ($tokentest) { ?>","token":"<?= $tokentest ?>","types":"template"},
{"begin":46,"ender":50,"lexer":"script","lines":2,"stack":"<?php if ($tokentest) { ?>","token":"<?php } else if ($tokentest_a) { ?>","types":"template_else"},
{"begin":48,"ender":50,"lexer":"script","lines":2,"stack":"<?php } else if ($tokentest_a) { ?>","token":"<?= $tokentest_a ?>","types":"template"},
{"begin":48,"ender":52,"lexer":"script","lines":2,"stack":"<?php } else if ($tokentest_a) { ?>","token":"<?php } else { ?>","types":"template_else"},
{"begin":50,"ender":52,"lexer":"script","lines":2,"stack":"<?php } else { ?>","token":"<?= $tokentest_b ?>","types":"template"},
{"begin":50,"ender":52,"lexer":"script","lines":2,"stack":"<?php } else { ?>","token":"<?php } ?>","types":"template_end"},
{"begin":26,"ender":54,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":26,"ender":54,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":22,"ender":72,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":22,"ender":72,"lexer":"script","lines":2,"stack":"script","token":"let","types":"word"},
{"begin":22,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"demovar","types":"reference"},
{"begin":22,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":22,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"<?= json_encode($demovar) ?>","types":"template"},
{"begin":22,"ender":72,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":22,"ender":72,"lexer":"script","lines":2,"stack":"script","token":"let","types":"word"},
{"begin":22,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"test","types":"reference"},
{"begin":22,"ender":72,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":22,"ender":66,"lexer":"script","lines":1,"stack":"script","token":"<?php if ($width) { ?>","types":"template_start"},
{"begin":64,"ender":66,"lexer":"script","lines":2,"stack":"<?php if ($width) { ?>","token":"<?= $width ?>","types":"template"},
{"begin":64,"ender":68,"lexer":"script","lines":2,"stack":"<?php if ($width) { ?>","token":"<?php } else if ($width_a) { ?>","types":"template_else"},
{"begin":66,"ender":68,"lexer":"script","lines":2,"stack":"<?php } else if ($width_a) { ?>","token":"<?= $width_a ?>","types":"template"},
{"begin":66,"ender":70,"lexer":"script","lines":2,"stack":"<?php } else if ($width_a) { ?>","token":"<?php } else { ?>","types":"template_else"},
{"begin":68,"ender":70,"lexer":"script","lines":2,"stack":"<?php } else { ?>","token":"<?= $width_b ?>","types":"template"},
{"begin":68,"ender":70,"lexer":"script","lines":2,"stack":"<?php } else { ?>","token":"<?php } ?>","types":"template_end"},
{"begin":22,"ender":72,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":22,"ender":72,"lexer":"markup","lines":2,"stack":"script","token":"</script>","types":"end"},
{"begin":3,"ender":89,"lexer":"markup","lines":2,"stack":"head","token":"<style>","types":"start"},
{"begin":73,"ender":89,"lexer":"markup","lines":1,"stack":"style","token":"type=\"text/css\"","types":"attribute"},
{"begin":73,"ender":89,"lexer":"style","lines":2,"stack":"style","token":"a","types":"selector"},
{"begin":73,"ender":88,"lexer":"style","lines":1,"stack":"style","token":"{","types":"start"},
{"begin":76,"ender":88,"lexer":"style","lines":2,"stack":"a","token":"width","types":"property"},
{"begin":76,"ender":88,"lexer":"style","lines":0,"stack":"a","token":":","types":"colon"},
{"begin":76,"ender":85,"lexer":"style","lines":2,"stack":"a","token":"<?php if ($width) { ?>","types":"template_start"},
{"begin":79,"ender":85,"lexer":"style","lines":2,"stack":"<?php if ($width) { ?>","token":"<?= $width ?>","types":"template"},
{"begin":79,"ender":85,"lexer":"style","lines":2,"stack":"<?php if ($width) { ?>","token":"<?php } else if ($width_a) { ?>","types":"template_else"},
{"begin":81,"ender":85,"lexer":"style","lines":2,"stack":"<?php } else if ($width_a) { ?>","token":"<?= $width_a ?>","types":"template"},
{"begin":81,"ender":85,"lexer":"style","lines":2,"stack":"<?php } else if ($width_a) { ?>","token":"<?php } else { ?>","types":"template_else"},
{"begin":83,"ender":85,"lexer":"style","lines":2,"stack":"<?php } else { ?>","token":"<?= $width_b ?>","types":"template"},
{"begin":83,"ender":85,"lexer":"style","lines":2,"stack":"<?php } else { ?>","token":"<?php } ?>","types":"template_end"},
{"begin":76,"ender":88,"lexer":"style","lines":0,"stack":"a","token":"px","types":"value"},
{"begin":76,"ender":88,"lexer":"style","lines":0,"stack":"a","token":";","types":"separator"},
{"begin":76,"ender":88,"lexer":"style","lines":2,"stack":"a","token":"}","types":"end"},
{"begin":73,"ender":89,"lexer":"markup","lines":2,"stack":"style","token":"</style>","types":"end"},
{"begin":3,"ender":94,"lexer":"markup","lines":2,"stack":"head","token":"<?php foreach ($styles as $style) { ?>","types":"template_start"},
{"begin":90,"ender":94,"lexer":"markup","lines":2,"stack":"<?php foreach ($styles as $style) { ?>","token":"<link>","types":"singleton"},
{"begin":91,"ender":94,"lexer":"markup","lines":1,"stack":"link","token":"rel=\"stylesheet\"","types":"attribute"},
{"begin":91,"ender":94,"lexer":"markup","lines":1,"stack":"link","token":"href=\"<?= $style ?>\"","types":"template_attribute"},
{"begin":90,"ender":94,"lexer":"markup","lines":2,"stack":"<?php foreach ($styles as $style) { ?>","token":"<?php } ?>","types":"template_end"},
{"begin":3,"ender":95,"lexer":"markup","lines":2,"stack":"head","token":"</head>","types":"end"},
{"begin":1,"ender":124,"lexer":"markup","lines":3,"stack":"html","token":"<body>","types":"start"},
{"begin":96,"ender":124,"lexer":"markup","lines":2,"stack":"body","token":"<?php include \"admin/includes/_alert.php\" ?>","types":"template"},
{"begin":96,"ender":110,"lexer":"markup","lines":3,"stack":"body","token":"<section>","types":"start"},
{"begin":98,"ender":110,"lexer":"markup","lines":1,"stack":"section","token":"id=\"default\"","types":"attribute"},
{"begin":98,"ender":110,"lexer":"markup","lines":1,"stack":"section","token":"class=\"content-wrapper\"","types":"attribute"},
{"begin":98,"ender":104,"lexer":"markup","lines":2,"stack":"section","token":"<div>","types":"start"},
{"begin":101,"ender":104,"lexer":"markup","lines":1,"stack":"div","token":"class=\"sidebar\"","types":"attribute"},
{"begin":101,"ender":104,"lexer":"markup","lines":2,"stack":"div","token":"<?= $sidebar ?>","types":"template"},
{"begin":101,"ender":104,"lexer":"markup","lines":2,"stack":"div","token":"</div>","types":"end"},
{"begin":98,"ender":109,"lexer":"markup","lines":3,"stack":"section","token":"<main>","types":"start"},
{"begin":105,"ender":109,"lexer":"markup","lines":1,"stack":"main","token":"role=\"main\"","types":"attribute"},
{"begin":105,"ender":109,"lexer":"markup","lines":1,"stack":"main","token":"class=\"content\"","types":"attribute"},
{"begin":105,"ender":109,"lexer":"markup","lines":2,"stack":"main","token":"<?= $content ?>","types":"template"},
{"begin":105,"ender":109,"lexer":"markup","lines":2,"stack":"main","token":"</main>","types":"end"},
{"begin":98,"ender":110,"lexer":"markup","lines":2,"stack":"section","token":"</section>","types":"end"},
{"begin":96,"ender":113,"lexer":"markup","lines":3,"stack":"body","token":"<script>","types":"start"},
{"begin":111,"ender":113,"lexer":"markup","lines":1,"stack":"script","token":"src=\"...link-to-file\"","types":"attribute"},
{"begin":111,"ender":113,"lexer":"markup","lines":0,"stack":"script","token":"</script>","types":"end"},
{"begin":96,"ender":124,"lexer":"markup","lines":3,"stack":"body","token":"<?= $footer ?>","types":"template"},
{"begin":96,"ender":120,"lexer":"markup","lines":2,"stack":"body","token":"<li>","types":"start"},
{"begin":115,"ender":119,"lexer":"markup","lines":0,"stack":"li","token":"<a>","types":"start"},
{"begin":116,"ender":119,"lexer":"markup","lines":1,"stack":"a","token":"href=\"<?= $home->url ?>\"","types":"template_attribute"},
{"begin":116,"ender":119,"lexer":"markup","lines":0,"stack":"a","token":"Home","types":"content"},
{"begin":116,"ender":119,"lexer":"markup","lines":0,"stack":"a","token":"</a>","types":"end"},
{"begin":115,"ender":120,"lexer":"markup","lines":0,"stack":"li","token":"</li>","types":"end"},
{"begin":96,"ender":124,"lexer":"markup","lines":2,"stack":"body","token":"<?= $var ?>","types":"template"},
{"begin":96,"ender":124,"lexer":"markup","lines":2,"stack":"body","token":"<a/>","types":"singleton"},
{"begin":122,"ender":124,"lexer":"markup","lines":1,"stack":"a","token":"routerlink=\"/detail/<?= $hero->id ?>\"","types":"attribute"},
{"begin":96,"ender":124,"lexer":"markup","lines":2,"stack":"body","token":"</body>","types":"end"},
{"begin":1,"ender":125,"lexer":"markup","lines":3,"stack":"html","token":"</html>","types":"end"}
]
[
{"begin":-1,"ender":-1,"lexer":"markup","lines":0,"stack":"global","token":"<!doctype html>","types":"sgml"},
{"begin":-1,"ender":74,"lexer":"markup","lines":2,"stack":"global","token":"<html>","types":"start"},
{"begin":1,"ender":74,"lexer":"markup","lines":1,"stack":"html","token":"lang=\"en\"","types":"attribute"},
{"begin":1,"ender":44,"lexer":"markup","lines":3,"stack":"html","token":"<head>","types":"start"},
{"begin":3,"ender":44,"lexer":"markup","lines":2,"stack":"head","token":"<meta>","types":"singleton"},
{"begin":4,"ender":44,"lexer":"markup","lines":1,"stack":"meta","token":"charset=\"utf-8\"","types":"attribute"},
{"begin":3,"ender":44,"lexer":"markup","lines":2,"stack":"head","token":"<meta>","types":"singleton"},
{"begin":6,"ender":44,"lexer":"markup","lines":1,"stack":"meta","token":"name=\"viewport\"","types":"attribute"},
{"begin":6,"ender":44,"lexer":"markup","lines":1,"stack":"meta","token":"content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"","types":"attribute"},
{"begin":-1,"ender":80,"lexer":"markup","lines":2,"stack":"global","token":"<html>","types":"start"},
{"begin":1,"ender":80,"lexer":"markup","lines":1,"stack":"html","token":"lang=\"en\"","types":"attribute"},
{"begin":1,"ender":50,"lexer":"markup","lines":3,"stack":"html","token":"<head>","types":"start"},
{"begin":3,"ender":50,"lexer":"markup","lines":2,"stack":"head","token":"<meta>","types":"singleton"},
{"begin":4,"ender":50,"lexer":"markup","lines":1,"stack":"meta","token":"charset=\"utf-8\"","types":"attribute"},
{"begin":3,"ender":50,"lexer":"markup","lines":2,"stack":"head","token":"<meta>","types":"singleton"},
{"begin":6,"ender":50,"lexer":"markup","lines":1,"stack":"meta","token":"name=\"viewport\"","types":"attribute"},
{"begin":6,"ender":50,"lexer":"markup","lines":1,"stack":"meta","token":"content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"","types":"attribute"},
{"begin":3,"ender":14,"lexer":"markup","lines":3,"stack":"head","token":"<title>","types":"start"},

@@ -17,62 +17,68 @@ {"begin":9,"ender":12,"lexer":"markup","lines":2,"stack":"title","token":"{% if block('htmlTitle') is defined %}","types":"template_start"},

{"begin":9,"ender":14,"lexer":"markup","lines":2,"stack":"title","token":"</title>","types":"end"},
{"begin":3,"ender":44,"lexer":"markup","lines":2,"stack":"head","token":"<link>","types":"singleton"},
{"begin":15,"ender":44,"lexer":"markup","lines":1,"stack":"link","token":"rel=\"stylesheet\"","types":"attribute"},
{"begin":15,"ender":44,"lexer":"markup","lines":1,"stack":"link","token":"href=\"...link-to-file\"","types":"attribute"},
{"begin":3,"ender":42,"lexer":"markup","lines":3,"stack":"head","token":"<script>","types":"start"},
{"begin":18,"ender":42,"lexer":"script","lines":2,"stack":"script","token":"let","types":"word"},
{"begin":18,"ender":42,"lexer":"script","lines":1,"stack":"script","token":"config","types":"reference"},
{"begin":18,"ender":42,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":18,"ender":40,"lexer":"script","lines":1,"stack":"script","token":"{","types":"start"},
{"begin":22,"ender":40,"lexer":"script","lines":2,"stack":"object","token":"dateFormat","types":"property"},
{"begin":22,"ender":40,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":40,"lexer":"script","lines":1,"stack":"object","token":"\"{{ site.settings.dateFormat }}\"","types":"string"},
{"begin":22,"ender":40,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":40,"lexer":"script","lines":2,"stack":"object","token":"weekStart","types":"property"},
{"begin":22,"ender":40,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":40,"lexer":"script","lines":1,"stack":"object","token":"{{ site.settings.dateFormat == 'mm/dd/yyyy' ? '0' : '1' }}","types":"template"},
{"begin":22,"ender":40,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":40,"lexer":"script","lines":2,"stack":"object","token":"csrfTokenName","types":"property"},
{"begin":22,"ender":40,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":40,"lexer":"script","lines":1,"stack":"object","token":"\"{{ site.csrf.name }}\"","types":"string"},
{"begin":22,"ender":40,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":40,"lexer":"script","lines":2,"stack":"object","token":"csrfTokenValue","types":"property"},
{"begin":22,"ender":40,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":40,"lexer":"script","lines":1,"stack":"object","token":"\"{{ site.csrf.value }}\"","types":"string"},
{"begin":22,"ender":40,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":40,"lexer":"script","lines":2,"stack":"object","token":"{% block jsConfig '' %}","types":"template"},
{"begin":22,"ender":40,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":18,"ender":42,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":18,"ender":42,"lexer":"markup","lines":2,"stack":"script","token":"</script>","types":"end"},
{"begin":3,"ender":44,"lexer":"markup","lines":3,"stack":"head","token":"{% block head '' %}","types":"template"},
{"begin":3,"ender":44,"lexer":"markup","lines":2,"stack":"head","token":"</head>","types":"end"},
{"begin":1,"ender":73,"lexer":"markup","lines":3,"stack":"html","token":"<body>","types":"start"},
{"begin":45,"ender":73,"lexer":"markup","lines":2,"stack":"body","token":"{% include \"@admin/includes/_alert.html\" %}","types":"template"},
{"begin":45,"ender":59,"lexer":"markup","lines":3,"stack":"body","token":"<section>","types":"start"},
{"begin":47,"ender":59,"lexer":"markup","lines":1,"stack":"section","token":"id=\"default\"","types":"attribute"},
{"begin":47,"ender":59,"lexer":"markup","lines":1,"stack":"section","token":"class=\"content-wrapper\"","types":"attribute"},
{"begin":47,"ender":53,"lexer":"markup","lines":2,"stack":"section","token":"<div>","types":"start"},
{"begin":50,"ender":53,"lexer":"markup","lines":1,"stack":"div","token":"class=\"sidebar\"","types":"attribute"},
{"begin":50,"ender":53,"lexer":"markup","lines":2,"stack":"div","token":"{% block sidebar '' %}","types":"template"},
{"begin":50,"ender":53,"lexer":"markup","lines":2,"stack":"div","token":"</div>","types":"end"},
{"begin":47,"ender":58,"lexer":"markup","lines":3,"stack":"section","token":"<main>","types":"start"},
{"begin":54,"ender":58,"lexer":"markup","lines":1,"stack":"main","token":"role=\"main\"","types":"attribute"},
{"begin":54,"ender":58,"lexer":"markup","lines":1,"stack":"main","token":"class=\"content\"","types":"attribute"},
{"begin":54,"ender":58,"lexer":"markup","lines":2,"stack":"main","token":"{% block content '' %}","types":"template"},
{"begin":54,"ender":58,"lexer":"markup","lines":2,"stack":"main","token":"</main>","types":"end"},
{"begin":47,"ender":59,"lexer":"markup","lines":2,"stack":"section","token":"</section>","types":"end"},
{"begin":45,"ender":62,"lexer":"markup","lines":3,"stack":"body","token":"<script>","types":"start"},
{"begin":60,"ender":62,"lexer":"markup","lines":1,"stack":"script","token":"src=\"...link-to-file\"","types":"attribute"},
{"begin":60,"ender":62,"lexer":"markup","lines":0,"stack":"script","token":"</script>","types":"end"},
{"begin":45,"ender":73,"lexer":"markup","lines":3,"stack":"body","token":"{% block foot '' %}","types":"template"},
{"begin":45,"ender":69,"lexer":"markup","lines":2,"stack":"body","token":"<li>","types":"start"},
{"begin":64,"ender":68,"lexer":"markup","lines":0,"stack":"li","token":"<a>","types":"start"},
{"begin":65,"ender":68,"lexer":"markup","lines":1,"stack":"a","token":"href=\"{{ path_for('home') }}\"","types":"template_attribute"},
{"begin":65,"ender":68,"lexer":"markup","lines":0,"stack":"a","token":"Home","types":"content"},
{"begin":65,"ender":68,"lexer":"markup","lines":0,"stack":"a","token":"</a>","types":"end"},
{"begin":64,"ender":69,"lexer":"markup","lines":0,"stack":"li","token":"</li>","types":"end"},
{"begin":45,"ender":73,"lexer":"markup","lines":2,"stack":"body","token":"{{ var }}","types":"template"},
{"begin":45,"ender":73,"lexer":"markup","lines":2,"stack":"body","token":"<a/>","types":"singleton"},
{"begin":71,"ender":73,"lexer":"markup","lines":1,"stack":"a","token":"routerlink=\"/detail/{{ hero.id }}\"","types":"attribute"},
{"begin":45,"ender":73,"lexer":"markup","lines":2,"stack":"body","token":"</body>","types":"end"},
{"begin":1,"ender":74,"lexer":"markup","lines":3,"stack":"html","token":"</html>","types":"end"}
{"begin":3,"ender":50,"lexer":"markup","lines":2,"stack":"head","token":"<link>","types":"singleton"},
{"begin":15,"ender":50,"lexer":"markup","lines":1,"stack":"link","token":"rel=\"stylesheet\"","types":"attribute"},
{"begin":15,"ender":50,"lexer":"markup","lines":1,"stack":"link","token":"href=\"...link-to-file\"","types":"attribute"},
{"begin":3,"ender":48,"lexer":"markup","lines":3,"stack":"head","token":"<script>","types":"start"},
{"begin":18,"ender":48,"lexer":"script","lines":2,"stack":"script","token":"let","types":"word"},
{"begin":18,"ender":48,"lexer":"script","lines":1,"stack":"script","token":"config","types":"reference"},
{"begin":18,"ender":48,"lexer":"script","lines":1,"stack":"script","token":"=","types":"operator"},
{"begin":18,"ender":46,"lexer":"script","lines":1,"stack":"script","token":"{","types":"start"},
{"begin":22,"ender":46,"lexer":"script","lines":2,"stack":"object","token":"dateFormat","types":"property"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":46,"lexer":"script","lines":1,"stack":"object","token":"\"","types":"string"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":"{{ site.settings.dateFormat }}","types":"template"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":46,"lexer":"script","lines":2,"stack":"object","token":"weekStart","types":"property"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":46,"lexer":"script","lines":1,"stack":"object","token":"{{ site.settings.dateFormat == 'mm/dd/yyyy' ? '0' : '1' }}","types":"template"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":46,"lexer":"script","lines":2,"stack":"object","token":"csrfTokenName","types":"property"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":46,"lexer":"script","lines":1,"stack":"object","token":"\"","types":"string"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":"{{ site.csrf.name }}","types":"template"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":46,"lexer":"script","lines":2,"stack":"object","token":"csrfTokenValue","types":"property"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":22,"ender":46,"lexer":"script","lines":1,"stack":"object","token":"\"","types":"string"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":"{{ site.csrf.value }}","types":"template"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":22,"ender":46,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":22,"ender":46,"lexer":"script","lines":2,"stack":"object","token":"{% block jsConfig '' %}","types":"template"},
{"begin":22,"ender":46,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":18,"ender":48,"lexer":"script","lines":0,"stack":"script","token":";","types":"separator"},
{"begin":18,"ender":48,"lexer":"markup","lines":2,"stack":"script","token":"</script>","types":"end"},
{"begin":3,"ender":50,"lexer":"markup","lines":3,"stack":"head","token":"{% block head '' %}","types":"template"},
{"begin":3,"ender":50,"lexer":"markup","lines":2,"stack":"head","token":"</head>","types":"end"},
{"begin":1,"ender":79,"lexer":"markup","lines":3,"stack":"html","token":"<body>","types":"start"},
{"begin":51,"ender":79,"lexer":"markup","lines":2,"stack":"body","token":"{% include \"@admin/includes/_alert.html\" %}","types":"template"},
{"begin":51,"ender":65,"lexer":"markup","lines":3,"stack":"body","token":"<section>","types":"start"},
{"begin":53,"ender":65,"lexer":"markup","lines":1,"stack":"section","token":"id=\"default\"","types":"attribute"},
{"begin":53,"ender":65,"lexer":"markup","lines":1,"stack":"section","token":"class=\"content-wrapper\"","types":"attribute"},
{"begin":53,"ender":59,"lexer":"markup","lines":2,"stack":"section","token":"<div>","types":"start"},
{"begin":56,"ender":59,"lexer":"markup","lines":1,"stack":"div","token":"class=\"sidebar\"","types":"attribute"},
{"begin":56,"ender":59,"lexer":"markup","lines":2,"stack":"div","token":"{% block sidebar '' %}","types":"template"},
{"begin":56,"ender":59,"lexer":"markup","lines":2,"stack":"div","token":"</div>","types":"end"},
{"begin":53,"ender":64,"lexer":"markup","lines":3,"stack":"section","token":"<main>","types":"start"},
{"begin":60,"ender":64,"lexer":"markup","lines":1,"stack":"main","token":"role=\"main\"","types":"attribute"},
{"begin":60,"ender":64,"lexer":"markup","lines":1,"stack":"main","token":"class=\"content\"","types":"attribute"},
{"begin":60,"ender":64,"lexer":"markup","lines":2,"stack":"main","token":"{% block content '' %}","types":"template"},
{"begin":60,"ender":64,"lexer":"markup","lines":2,"stack":"main","token":"</main>","types":"end"},
{"begin":53,"ender":65,"lexer":"markup","lines":2,"stack":"section","token":"</section>","types":"end"},
{"begin":51,"ender":68,"lexer":"markup","lines":3,"stack":"body","token":"<script>","types":"start"},
{"begin":66,"ender":68,"lexer":"markup","lines":1,"stack":"script","token":"src=\"...link-to-file\"","types":"attribute"},
{"begin":66,"ender":68,"lexer":"markup","lines":0,"stack":"script","token":"</script>","types":"end"},
{"begin":51,"ender":79,"lexer":"markup","lines":3,"stack":"body","token":"{% block foot '' %}","types":"template"},
{"begin":51,"ender":75,"lexer":"markup","lines":2,"stack":"body","token":"<li>","types":"start"},
{"begin":70,"ender":74,"lexer":"markup","lines":0,"stack":"li","token":"<a>","types":"start"},
{"begin":71,"ender":74,"lexer":"markup","lines":1,"stack":"a","token":"href=\"{{ path_for('home') }}\"","types":"template_attribute"},
{"begin":71,"ender":74,"lexer":"markup","lines":0,"stack":"a","token":"Home","types":"content"},
{"begin":71,"ender":74,"lexer":"markup","lines":0,"stack":"a","token":"</a>","types":"end"},
{"begin":70,"ender":75,"lexer":"markup","lines":0,"stack":"li","token":"</li>","types":"end"},
{"begin":51,"ender":79,"lexer":"markup","lines":2,"stack":"body","token":"{{ var }}","types":"template"},
{"begin":51,"ender":79,"lexer":"markup","lines":2,"stack":"body","token":"<a/>","types":"singleton"},
{"begin":77,"ender":79,"lexer":"markup","lines":1,"stack":"a","token":"routerlink=\"/detail/{{ hero.id }}\"","types":"attribute"},
{"begin":51,"ender":79,"lexer":"markup","lines":2,"stack":"body","token":"</body>","types":"end"},
{"begin":1,"ender":80,"lexer":"markup","lines":3,"stack":"html","token":"</html>","types":"end"}
]

@@ -7,101 +7,107 @@ [

{"begin":2,"ender":4,"lexer":"script","lines":0,"stack":"arguments","token":")","types":"end"},
{"begin":-1,"ender":103,"lexer":"script","lines":1,"stack":"global","token":"{","types":"start"},
{"begin":5,"ender":103,"lexer":"script","lines":2,"stack":"function","token":"var","types":"word"},
{"begin":5,"ender":103,"lexer":"script","lines":1,"stack":"function","token":"postData","types":"reference"},
{"begin":5,"ender":103,"lexer":"script","lines":1,"stack":"function","token":"=","types":"operator"},
{"begin":5,"ender":82,"lexer":"script","lines":1,"stack":"function","token":"{","types":"start"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"game_id","types":"property"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":82,"lexer":"script","lines":1,"stack":"object","token":"\"{{ .ActiveGame.ID }}\"","types":"string"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"src","types":"property"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":82,"lexer":"script","lines":1,"stack":"object","token":"$","types":"word"},
{"begin":9,"ender":19,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":17,"ender":19,"lexer":"script","lines":0,"stack":"method","token":"\"#txtSrc\"","types":"string"},
{"begin":17,"ender":19,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":".","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":"val","types":"word"},
{"begin":9,"ender":23,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":22,"ender":23,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"trans","types":"property"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":82,"lexer":"script","lines":1,"stack":"object","token":"$","types":"word"},
{"begin":9,"ender":30,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":28,"ender":30,"lexer":"script","lines":0,"stack":"method","token":"\"#txtTrans\"","types":"string"},
{"begin":28,"ender":30,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":".","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":"val","types":"word"},
{"begin":9,"ender":34,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":33,"ender":34,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"untrans","types":"property"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":82,"lexer":"script","lines":1,"stack":"object","token":"$","types":"word"},
{"begin":9,"ender":41,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":39,"ender":41,"lexer":"script","lines":0,"stack":"method","token":"\"#untranslated\"","types":"string"},
{"begin":39,"ender":41,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":".","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":"is","types":"word"},
{"begin":9,"ender":46,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":44,"ender":46,"lexer":"script","lines":0,"stack":"method","token":"\":checked\"","types":"string"},
{"begin":44,"ender":46,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"direction","types":"property"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":82,"lexer":"script","lines":1,"stack":"object","token":"dir","types":"reference"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":70,"lexer":"script","lines":2,"stack":"object","token":"{{ if eq .Mode 0 }}","types":"template_start"},
{"begin":52,"ender":70,"lexer":"script","lines":1,"stack":"template_if","token":"// note this should not be valid js/html syntax","types":"comment"},
{"begin":52,"ender":70,"lexer":"script","lines":2,"stack":"template_if","token":"image","types":"word"},
{"begin":52,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":":","types":"operator"},
{"begin":52,"ender":70,"lexer":"script","lines":1,"stack":"template_if","token":"VisualTranslation","types":"word"},
{"begin":52,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":".","types":"separator"},
{"begin":52,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":"getPic","types":"word"},
{"begin":52,"ender":60,"lexer":"script","lines":0,"stack":"template_if","token":"(","types":"start"},
{"begin":59,"ender":60,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":52,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":",","types":"separator"},
{"begin":52,"ender":70,"lexer":"script","lines":2,"stack":"template_if","token":"overlay","types":"word"},
{"begin":52,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":":","types":"operator"},
{"begin":52,"ender":70,"lexer":"script","lines":1,"stack":"template_if","token":"VisualTranslation","types":"word"},
{"begin":52,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":".","types":"separator"},
{"begin":52,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":"getData","types":"word"},
{"begin":52,"ender":68,"lexer":"script","lines":0,"stack":"template_if","token":"(","types":"start"},
{"begin":67,"ender":68,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":52,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":",","types":"separator"},
{"begin":52,"ender":70,"lexer":"script","lines":2,"stack":"template_if","token":"{{ end }}","types":"template_end"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"tid","types":"property"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":82,"lexer":"script","lines":1,"stack":"object","token":"trans_id","types":"word"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"lang","types":"property"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":"\"{{ .ActiveLang }}\"","types":"string"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"mode","types":"property"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":82,"lexer":"script","lines":0,"stack":"object","token":"\"{{ .Mode }}\"","types":"string"},
{"begin":9,"ender":82,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":5,"ender":103,"lexer":"script","lines":0,"stack":"function","token":";","types":"separator"},
{"begin":5,"ender":103,"lexer":"script","lines":3,"stack":"function","token":"$","types":"word"},
{"begin":5,"ender":103,"lexer":"script","lines":0,"stack":"function","token":".","types":"separator"},
{"begin":5,"ender":103,"lexer":"script","lines":0,"stack":"function","token":"ajax","types":"word"},
{"begin":5,"ender":101,"lexer":"script","lines":0,"stack":"function","token":"(","types":"start"},
{"begin":87,"ender":100,"lexer":"script","lines":0,"stack":"method","token":"{","types":"start"},
{"begin":88,"ender":100,"lexer":"script","lines":2,"stack":"object","token":"url","types":"property"},
{"begin":88,"ender":100,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":88,"ender":100,"lexer":"script","lines":1,"stack":"object","token":"\"/api/next\"","types":"string"},
{"begin":88,"ender":100,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":88,"ender":100,"lexer":"script","lines":2,"stack":"object","token":"type","types":"property"},
{"begin":88,"ender":100,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":88,"ender":100,"lexer":"script","lines":1,"stack":"object","token":"\"POST\"","types":"string"},
{"begin":88,"ender":100,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":88,"ender":100,"lexer":"script","lines":2,"stack":"object","token":"data","types":"property"},
{"begin":88,"ender":100,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":88,"ender":100,"lexer":"script","lines":1,"stack":"object","token":"postData","types":"reference"},
{"begin":88,"ender":100,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":87,"ender":101,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":5,"ender":103,"lexer":"script","lines":0,"stack":"function","token":"x;","types":"separator"},
{"begin":5,"ender":103,"lexer":"script","lines":2,"stack":"function","token":"}","types":"end"}
{"begin":-1,"ender":109,"lexer":"script","lines":1,"stack":"global","token":"{","types":"start"},
{"begin":5,"ender":109,"lexer":"script","lines":2,"stack":"function","token":"var","types":"word"},
{"begin":5,"ender":109,"lexer":"script","lines":1,"stack":"function","token":"postData","types":"reference"},
{"begin":5,"ender":109,"lexer":"script","lines":1,"stack":"function","token":"=","types":"operator"},
{"begin":5,"ender":88,"lexer":"script","lines":1,"stack":"function","token":"{","types":"start"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"game_id","types":"property"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":88,"lexer":"script","lines":1,"stack":"object","token":"\"","types":"string"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"{{ .ActiveGame.ID }}","types":"template"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"src","types":"property"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":88,"lexer":"script","lines":1,"stack":"object","token":"$","types":"word"},
{"begin":9,"ender":21,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":19,"ender":21,"lexer":"script","lines":0,"stack":"method","token":"\"#txtSrc\"","types":"string"},
{"begin":19,"ender":21,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":".","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"val","types":"word"},
{"begin":9,"ender":25,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":24,"ender":25,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"trans","types":"property"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":88,"lexer":"script","lines":1,"stack":"object","token":"$","types":"word"},
{"begin":9,"ender":32,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":30,"ender":32,"lexer":"script","lines":0,"stack":"method","token":"\"#txtTrans\"","types":"string"},
{"begin":30,"ender":32,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":".","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"val","types":"word"},
{"begin":9,"ender":36,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":35,"ender":36,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"untrans","types":"property"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":88,"lexer":"script","lines":1,"stack":"object","token":"$","types":"word"},
{"begin":9,"ender":43,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":41,"ender":43,"lexer":"script","lines":0,"stack":"method","token":"\"#untranslated\"","types":"string"},
{"begin":41,"ender":43,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":".","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"is","types":"word"},
{"begin":9,"ender":48,"lexer":"script","lines":0,"stack":"object","token":"(","types":"start"},
{"begin":46,"ender":48,"lexer":"script","lines":0,"stack":"method","token":"\":checked\"","types":"string"},
{"begin":46,"ender":48,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"direction","types":"property"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":88,"lexer":"script","lines":1,"stack":"object","token":"dir","types":"reference"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":72,"lexer":"script","lines":2,"stack":"object","token":"{{ if eq .Mode 0 }}","types":"template_start"},
{"begin":54,"ender":72,"lexer":"script","lines":1,"stack":"template_if","token":"// note this should not be valid js/html syntax","types":"comment"},
{"begin":54,"ender":72,"lexer":"script","lines":2,"stack":"template_if","token":"image","types":"word"},
{"begin":54,"ender":72,"lexer":"script","lines":0,"stack":"template_if","token":":","types":"operator"},
{"begin":54,"ender":72,"lexer":"script","lines":1,"stack":"template_if","token":"VisualTranslation","types":"word"},
{"begin":54,"ender":72,"lexer":"script","lines":0,"stack":"template_if","token":".","types":"separator"},
{"begin":54,"ender":72,"lexer":"script","lines":0,"stack":"template_if","token":"getPic","types":"word"},
{"begin":54,"ender":62,"lexer":"script","lines":0,"stack":"template_if","token":"(","types":"start"},
{"begin":61,"ender":62,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":54,"ender":72,"lexer":"script","lines":0,"stack":"template_if","token":",","types":"separator"},
{"begin":54,"ender":72,"lexer":"script","lines":2,"stack":"template_if","token":"overlay","types":"word"},
{"begin":54,"ender":72,"lexer":"script","lines":0,"stack":"template_if","token":":","types":"operator"},
{"begin":54,"ender":72,"lexer":"script","lines":1,"stack":"template_if","token":"VisualTranslation","types":"word"},
{"begin":54,"ender":72,"lexer":"script","lines":0,"stack":"template_if","token":".","types":"separator"},
{"begin":54,"ender":72,"lexer":"script","lines":0,"stack":"template_if","token":"getData","types":"word"},
{"begin":54,"ender":70,"lexer":"script","lines":0,"stack":"template_if","token":"(","types":"start"},
{"begin":69,"ender":70,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":54,"ender":72,"lexer":"script","lines":0,"stack":"template_if","token":",","types":"separator"},
{"begin":54,"ender":72,"lexer":"script","lines":2,"stack":"template_if","token":"{{ end }}","types":"template_end"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"tid","types":"property"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":88,"lexer":"script","lines":1,"stack":"object","token":"trans_id","types":"word"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"lang","types":"property"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"{{ .ActiveLang }}","types":"template"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"mode","types":"property"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"{{ .Mode }}","types":"template"},
{"begin":9,"ender":88,"lexer":"script","lines":0,"stack":"object","token":"\"","types":"string"},
{"begin":9,"ender":88,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":5,"ender":109,"lexer":"script","lines":0,"stack":"function","token":";","types":"separator"},
{"begin":5,"ender":109,"lexer":"script","lines":3,"stack":"function","token":"$","types":"word"},
{"begin":5,"ender":109,"lexer":"script","lines":0,"stack":"function","token":".","types":"separator"},
{"begin":5,"ender":109,"lexer":"script","lines":0,"stack":"function","token":"ajax","types":"word"},
{"begin":5,"ender":107,"lexer":"script","lines":0,"stack":"function","token":"(","types":"start"},
{"begin":93,"ender":106,"lexer":"script","lines":0,"stack":"method","token":"{","types":"start"},
{"begin":94,"ender":106,"lexer":"script","lines":2,"stack":"object","token":"url","types":"property"},
{"begin":94,"ender":106,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":94,"ender":106,"lexer":"script","lines":1,"stack":"object","token":"\"/api/next\"","types":"string"},
{"begin":94,"ender":106,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":94,"ender":106,"lexer":"script","lines":2,"stack":"object","token":"type","types":"property"},
{"begin":94,"ender":106,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":94,"ender":106,"lexer":"script","lines":1,"stack":"object","token":"\"POST\"","types":"string"},
{"begin":94,"ender":106,"lexer":"script","lines":0,"stack":"object","token":",","types":"separator"},
{"begin":94,"ender":106,"lexer":"script","lines":2,"stack":"object","token":"data","types":"property"},
{"begin":94,"ender":106,"lexer":"script","lines":0,"stack":"object","token":":","types":"operator"},
{"begin":94,"ender":106,"lexer":"script","lines":1,"stack":"object","token":"postData","types":"reference"},
{"begin":94,"ender":106,"lexer":"script","lines":2,"stack":"object","token":"}","types":"end"},
{"begin":93,"ender":107,"lexer":"script","lines":0,"stack":"method","token":")","types":"end"},
{"begin":5,"ender":109,"lexer":"script","lines":0,"stack":"function","token":"x;","types":"separator"},
{"begin":5,"ender":109,"lexer":"script","lines":2,"stack":"function","token":"}","types":"end"}
]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc