+ From here you can search these documents. Enter
+ your search terms below.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/blog/golang/golang b/blog/golang/golang
similarity index 100%
rename from docs/blog/golang/golang
rename to blog/golang/golang
diff --git a/docs/blog/golang/main.go b/blog/golang/main.go
similarity index 100%
rename from docs/blog/golang/main.go
rename to blog/golang/main.go
diff --git a/docs/blog/node/hn.js b/blog/node/hn.js
similarity index 100%
rename from docs/blog/node/hn.js
rename to blog/node/hn.js
diff --git a/docs/blog/python/requirements.txt b/blog/python/requirements.txt
similarity index 100%
rename from docs/blog/python/requirements.txt
rename to blog/python/requirements.txt
diff --git a/docs/blog/python/src/main.py b/blog/python/src/main.py
similarity index 100%
rename from docs/blog/python/src/main.py
rename to blog/python/src/main.py
diff --git a/docs/blog/python/src/simple.py b/blog/python/src/simple.py
similarity index 100%
rename from docs/blog/python/src/simple.py
rename to blog/python/src/simple.py
diff --git a/css/base.css b/css/base.css
new file mode 100644
index 0000000..0d84f8a
--- /dev/null
+++ b/css/base.css
@@ -0,0 +1,319 @@
+body {
+ padding-top: 70px;
+ background: url(../img/grid.png) repeat-x;
+ background-attachment: fixed;
+ background-color: #f8f8f8;
+}
+
+body > .container {
+ min-height: 400px;
+}
+
+ul.nav .main {
+ font-weight: bold;
+}
+
+.col-md-3 {
+ padding-left: 0;
+}
+
+.col-md-9 {
+ padding-bottom: 100px;
+}
+
+.source-links {
+ float: right;
+}
+
+.col-md-9 img {
+ max-width: 100%;
+ display: inline-block;
+ padding: 4px;
+ line-height: 1.428571429;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ margin: 20px auto 30px auto;
+}
+
+/*
+ * The code below adds some padding to the top of the current anchor target so
+ * that, when navigating to it, the header isn't hidden by the navbar at the
+ * top. This is especially complicated because we want to *remove* the padding
+ * after navigation so that hovering over the header shows the permalink icon
+ * correctly. Thus, we create a CSS animation to remove the extra padding after
+ * a second. We have two animations so that navigating to an anchor within the
+ * page always restarts the animation.
+ *
+ * See for more details.
+ */
+:target::before {
+ content: "";
+ display: block;
+ margin-top: -75px;
+ height: 75px;
+ pointer-events: none;
+ animation: 0s 1s forwards collapse-anchor-padding-1;
+}
+
+.clicky :target::before {
+ animation-name: collapse-anchor-padding-2;
+}
+
+@keyframes collapse-anchor-padding-1 {
+ to {
+ margin-top: 0;
+ height: 0;
+ }
+}
+
+@keyframes collapse-anchor-padding-2 {
+ to {
+ margin-top: 0;
+ height: 0;
+ }
+}
+
+h1 {
+ color: #444;
+ font-weight: 400;
+ font-size: 42px;
+}
+
+h2, h3, h4, h5, h6 {
+ color: #444;
+ font-weight: 300;
+}
+
+hr {
+ border-top: 1px solid #aaa;
+}
+
+pre, .rst-content tt {
+ max-width: 100%;
+ background: #fff;
+ border: solid 1px #e1e4e5;
+ color: #333;
+ overflow-x: auto;
+}
+
+code.code-large, .rst-content tt.code-large {
+ font-size: 90%;
+}
+
+code {
+ padding: 2px 5px;
+ background: #fff;
+ border: solid 1px #e1e4e5;
+ color: #333;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+}
+
+pre code {
+ background: transparent;
+ border: none;
+ white-space: pre;
+ word-wrap: normal;
+ font-family: monospace,serif;
+ font-size: 12px;
+}
+
+a code {
+ color: #2FA4E7;
+}
+
+a:hover code, a:focus code {
+ color: #157AB5;
+}
+
+footer {
+ margin-top: 30px;
+ margin-bottom: 10px;
+ text-align: center;
+ font-weight: 200;
+}
+
+.modal-dialog {
+ margin-top: 60px;
+}
+
+/*
+ * Side navigation
+ *
+ * Scrollspy and affixed enhanced navigation to highlight sections and secondary
+ * sections of docs content.
+ */
+
+/* By default it's not affixed in mobile views, so undo that */
+.bs-sidebar.affix { /* csslint allow: adjoining-classes */
+ position: static;
+}
+
+.bs-sidebar.well { /* csslint allow: adjoining-classes */
+ padding: 0;
+ max-height: 90%;
+ overflow-y: auto;
+}
+
+/* First level of nav */
+.bs-sidenav {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ border-radius: 5px;
+}
+
+/* All levels of nav */
+.bs-sidebar .nav > li > a {
+ display: block;
+ padding: 5px 20px;
+ z-index: 1;
+}
+.bs-sidebar .nav > li > a:hover,
+.bs-sidebar .nav > li > a:focus {
+ text-decoration: none;
+ border-right: 1px solid;
+}
+.bs-sidebar .nav > .active > a,
+.bs-sidebar .nav > .active:hover > a,
+.bs-sidebar .nav > .active:focus > a {
+ font-weight: bold;
+ background-color: transparent;
+ border-right: 1px solid;
+}
+
+/* Nav: second level (shown on .active) */
+.bs-sidebar .nav .nav {
+ display: none; /* Hide by default, but at >768px, show it */
+ margin-bottom: 8px;
+}
+.bs-sidebar .nav .nav > li > a {
+ padding-top: 3px;
+ padding-bottom: 3px;
+ padding-left: 30px;
+ font-size: 90%;
+}
+
+/* Show and affix the side nav when space allows it */
+@media (min-width: 992px) {
+ .bs-sidebar .nav > .active > ul {
+ display: block;
+ }
+ /* Widen the fixed sidebar */
+ .bs-sidebar.affix, /* csslint allow: adjoining-classes */
+ .bs-sidebar.affix-bottom { /* csslint allow: adjoining-classes */
+ width: 213px;
+ }
+ .bs-sidebar.affix { /* csslint allow: adjoining-classes */
+ position: fixed; /* Undo the static from mobile first approach */
+ top: 80px;
+ }
+ .bs-sidebar.affix-bottom { /* csslint allow: adjoining-classes */
+ position: absolute; /* Undo the static from mobile first approach */
+ }
+ .bs-sidebar.affix-bottom .bs-sidenav, /* csslint allow: adjoining-classes */
+ .bs-sidebar.affix .bs-sidenav { /* csslint allow: adjoining-classes */
+ margin-top: 0;
+ margin-bottom: 0;
+ }
+}
+@media (min-width: 1200px) {
+ /* Widen the fixed sidebar again */
+ .bs-sidebar.affix-bottom, /* csslint allow: adjoining-classes */
+ .bs-sidebar.affix { /* csslint allow: adjoining-classes */
+ width: 263px;
+ }
+}
+
+.headerlink {
+ font-family: FontAwesome;
+ font-size: 14px;
+ display: none;
+ padding-left: .5em;
+}
+
+h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
+ display:inline-block;
+}
+
+
+
+.admonition {
+ padding: 15px;
+ margin-bottom: 20px;
+ border: 1px solid transparent;
+ border-radius: 4px;
+ text-align: left;
+}
+
+.admonition.note { /* csslint allow: adjoining-classes */
+ color: #3a87ad;
+ background-color: #d9edf7;
+ border-color: #bce8f1;
+}
+
+.admonition.warning { /* csslint allow: adjoining-classes */
+ color: #c09853;
+ background-color: #fcf8e3;
+ border-color: #fbeed5;
+}
+
+.admonition.danger { /* csslint allow: adjoining-classes */
+ color: #b94a48;
+ background-color: #f2dede;
+ border-color: #eed3d7;
+}
+
+.admonition-title {
+ font-weight: bold;
+ text-align: left;
+}
+
+
+.dropdown-submenu {
+ position: relative;
+}
+
+.dropdown-submenu>.dropdown-menu {
+ top: 0;
+ left: 100%;
+ margin-top: -6px;
+ margin-left: -1px;
+ -webkit-border-radius: 0 6px 6px 6px;
+ -moz-border-radius: 0 6px 6px;
+ border-radius: 0 6px 6px 6px;
+}
+
+.dropdown-submenu:hover>.dropdown-menu {
+ display: block;
+}
+
+.dropdown-submenu>a:after {
+ display: block;
+ content: " ";
+ float: right;
+ width: 0;
+ height: 0;
+ border-color: transparent;
+ border-style: solid;
+ border-width: 5px 0 5px 5px;
+ border-left-color: #ccc;
+ margin-top: 5px;
+ margin-right: -10px;
+}
+
+.dropdown-submenu:hover>a:after {
+ border-left-color: #fff;
+}
+
+.dropdown-submenu.pull-left { /* csslint allow: adjoining-classes */
+ float: none;
+}
+
+.dropdown-submenu.pull-left>.dropdown-menu { /* csslint allow: adjoining-classes */
+ left: -100%;
+ margin-left: 10px;
+ -webkit-border-radius: 6px 0 6px 6px;
+ -moz-border-radius: 6px 0 6px 6px;
+ border-radius: 6px 0 6px 6px;
+}
diff --git a/css/bootstrap-custom.min.css b/css/bootstrap-custom.min.css
new file mode 100644
index 0000000..d85b1dc
--- /dev/null
+++ b/css/bootstrap-custom.min.css
@@ -0,0 +1 @@
+/*! normalize.css v2.1.3 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a{background:transparent}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{margin:.67em 0;font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid #c0c0c0}legend{padding:0;border:0}button,input,select,textarea{margin:0;font-family:inherit;font-size:100%}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{padding:0;box-sizing:border-box}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:2cm .5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.428571429;color:#555;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#2fa4e7;text-decoration:none}a:hover,a:focus{color:#157ab5;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:block;height:auto;max-width:100%}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;height:auto;max-width:100%;padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1;color:#317eac}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#999}h1,h2,h3{margin-top:20px;margin-bottom:10px}h1 small,h2 small,h3 small,h1 .small,h2 .small,h3 .small{font-size:65%}h4,h5,h6{margin-top:10px;margin-bottom:10px}h4 small,h5 small,h6 small,h4 .small,h5 .small,h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}@media(min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}cite{font-style:normal}.text-muted{color:#999}.text-primary{color:#2fa4e7}.text-primary:hover{color:#178acc}.text-warning{color:#c09853}.text-warning:hover{color:#a47e3c}.text-danger{color:#b94a48}.text-danger:hover{color:#953b39}.text-success{color:#468847}.text-success:hover{color:#356635}.text-info{color:#3a87ad}.text-info:hover{color:#2d6987}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}.list-inline>li:first-child{padding-left:0}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.428571429}dt{font-weight:bold}dd{margin-left:0}@media(min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{font-size:17.5px;font-weight:300;line-height:1.25}blockquote p:last-child{margin-bottom:0}blockquote small,blockquote .small{display:block;line-height:1.428571429;color:#999}blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small,blockquote.pull-right .small{text-align:right}blockquote.pull-right small:before,blockquote.pull-right .small:before{content:''}blockquote.pull-right small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}blockquote:before,blockquote:after{content:""}address{margin-bottom:20px;font-style:normal;line-height:1.428571429}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.428571429;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}@media(min-width:768px){.container{width:750px}}@media(min-width:992px){.container{width:970px}}@media(min-width:1200px){.container{width:1170px}}.row{margin-right:-15px;margin-left:-15px}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666666666666%}.col-xs-10{width:83.33333333333334%}.col-xs-9{width:75%}.col-xs-8{width:66.66666666666666%}.col-xs-7{width:58.333333333333336%}.col-xs-6{width:50%}.col-xs-5{width:41.66666666666667%}.col-xs-4{width:33.33333333333333%}.col-xs-3{width:25%}.col-xs-2{width:16.666666666666664%}.col-xs-1{width:8.333333333333332%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666666666666%}.col-xs-pull-10{right:83.33333333333334%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666666666666%}.col-xs-pull-7{right:58.333333333333336%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666666666667%}.col-xs-pull-4{right:33.33333333333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.666666666666664%}.col-xs-pull-1{right:8.333333333333332%}.col-xs-pull-0{right:0}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666666666666%}.col-xs-push-10{left:83.33333333333334%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666666666666%}.col-xs-push-7{left:58.333333333333336%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666666666667%}.col-xs-push-4{left:33.33333333333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.666666666666664%}.col-xs-push-1{left:8.333333333333332%}.col-xs-push-0{left:0}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666666666666%}.col-xs-offset-10{margin-left:83.33333333333334%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666666666666%}.col-xs-offset-7{margin-left:58.333333333333336%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666666666667%}.col-xs-offset-4{margin-left:33.33333333333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.666666666666664%}.col-xs-offset-1{margin-left:8.333333333333332%}.col-xs-offset-0{margin-left:0}@media(min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666666666666%}.col-sm-10{width:83.33333333333334%}.col-sm-9{width:75%}.col-sm-8{width:66.66666666666666%}.col-sm-7{width:58.333333333333336%}.col-sm-6{width:50%}.col-sm-5{width:41.66666666666667%}.col-sm-4{width:33.33333333333333%}.col-sm-3{width:25%}.col-sm-2{width:16.666666666666664%}.col-sm-1{width:8.333333333333332%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666666666666%}.col-sm-pull-10{right:83.33333333333334%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666666666666%}.col-sm-pull-7{right:58.333333333333336%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666666666667%}.col-sm-pull-4{right:33.33333333333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.666666666666664%}.col-sm-pull-1{right:8.333333333333332%}.col-sm-pull-0{right:0}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666666666666%}.col-sm-push-10{left:83.33333333333334%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666666666666%}.col-sm-push-7{left:58.333333333333336%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666666666667%}.col-sm-push-4{left:33.33333333333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.666666666666664%}.col-sm-push-1{left:8.333333333333332%}.col-sm-push-0{left:0}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666666666666%}.col-sm-offset-10{margin-left:83.33333333333334%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666666666666%}.col-sm-offset-7{margin-left:58.333333333333336%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666666666667%}.col-sm-offset-4{margin-left:33.33333333333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.666666666666664%}.col-sm-offset-1{margin-left:8.333333333333332%}.col-sm-offset-0{margin-left:0}}@media(min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666666666666%}.col-md-10{width:83.33333333333334%}.col-md-9{width:75%}.col-md-8{width:66.66666666666666%}.col-md-7{width:58.333333333333336%}.col-md-6{width:50%}.col-md-5{width:41.66666666666667%}.col-md-4{width:33.33333333333333%}.col-md-3{width:25%}.col-md-2{width:16.666666666666664%}.col-md-1{width:8.333333333333332%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666666666666%}.col-md-pull-10{right:83.33333333333334%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666666666666%}.col-md-pull-7{right:58.333333333333336%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666666666667%}.col-md-pull-4{right:33.33333333333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.666666666666664%}.col-md-pull-1{right:8.333333333333332%}.col-md-pull-0{right:0}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666666666666%}.col-md-push-10{left:83.33333333333334%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666666666666%}.col-md-push-7{left:58.333333333333336%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666666666667%}.col-md-push-4{left:33.33333333333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.666666666666664%}.col-md-push-1{left:8.333333333333332%}.col-md-push-0{left:0}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666666666666%}.col-md-offset-10{margin-left:83.33333333333334%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666666666666%}.col-md-offset-7{margin-left:58.333333333333336%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666666666667%}.col-md-offset-4{margin-left:33.33333333333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.666666666666664%}.col-md-offset-1{margin-left:8.333333333333332%}.col-md-offset-0{margin-left:0}}@media(min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666666666666%}.col-lg-10{width:83.33333333333334%}.col-lg-9{width:75%}.col-lg-8{width:66.66666666666666%}.col-lg-7{width:58.333333333333336%}.col-lg-6{width:50%}.col-lg-5{width:41.66666666666667%}.col-lg-4{width:33.33333333333333%}.col-lg-3{width:25%}.col-lg-2{width:16.666666666666664%}.col-lg-1{width:8.333333333333332%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666666666666%}.col-lg-pull-10{right:83.33333333333334%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666666666666%}.col-lg-pull-7{right:58.333333333333336%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666666666667%}.col-lg-pull-4{right:33.33333333333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.666666666666664%}.col-lg-pull-1{right:8.333333333333332%}.col-lg-pull-0{right:0}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666666666666%}.col-lg-push-10{left:83.33333333333334%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666666666666%}.col-lg-push-7{left:58.333333333333336%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666666666667%}.col-lg-push-4{left:33.33333333333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.666666666666664%}.col-lg-push-1{left:8.333333333333332%}.col-lg-push-0{left:0}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666666666666%}.col-lg-offset-10{margin-left:83.33333333333334%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666666666666%}.col-lg-offset-7{margin-left:58.333333333333336%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666666666667%}.col-lg-offset-4{margin-left:33.33333333333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.666666666666664%}.col-lg-offset-1{margin-left:8.333333333333332%}.col-lg-offset-0{margin-left:0}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.428571429;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*="col-"]{position:static;display:table-column;float:none}table td[class*="col-"],table th[class*="col-"]{display:table-cell;float:none}.table>thead>tr>.active,.table>tbody>tr>.active,.table>tfoot>tr>.active,.table>thead>.active>td,.table>tbody>.active>td,.table>tfoot>.active>td,.table>thead>.active>th,.table>tbody>.active>th,.table>tfoot>.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>.active:hover,.table-hover>tbody>.active:hover>td,.table-hover>tbody>.active:hover>th{background-color:#e8e8e8}.table>thead>tr>.success,.table>tbody>tr>.success,.table>tfoot>tr>.success,.table>thead>.success>td,.table>tbody>.success>td,.table>tfoot>.success>td,.table>thead>.success>th,.table>tbody>.success>th,.table>tfoot>.success>th{background-color:#dff0d8}.table-hover>tbody>tr>.success:hover,.table-hover>tbody>.success:hover>td,.table-hover>tbody>.success:hover>th{background-color:#d0e9c6}.table>thead>tr>.danger,.table>tbody>tr>.danger,.table>tfoot>tr>.danger,.table>thead>.danger>td,.table>tbody>.danger>td,.table>tfoot>.danger>td,.table>thead>.danger>th,.table>tbody>.danger>th,.table>tfoot>.danger>th{background-color:#f2dede}.table-hover>tbody>tr>.danger:hover,.table-hover>tbody>.danger:hover>td,.table-hover>tbody>.danger:hover>th{background-color:#ebcccc}.table>thead>tr>.warning,.table>tbody>tr>.warning,.table>tfoot>tr>.warning,.table>thead>.warning>td,.table>tbody>.warning>td,.table>tfoot>.warning>td,.table>thead>.warning>th,.table>tbody>.warning>th,.table>tfoot>.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>.warning:hover,.table-hover>tbody>.warning:hover>td,.table-hover>tbody>.warning:hover>th{background-color:#faf2cc}@media(max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-x:scroll;overflow-y:hidden;border:1px solid #ddd;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#555;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}select[multiple],select[size]{height:auto}select optgroup{font-family:inherit;font-size:inherit;font-style:inherit}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{height:auto}output{display:block;padding-top:9px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle}.form-control{display:block;width:100%;height:38px;padding:8px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.form-control:-moz-placeholder{color:#999}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee}textarea.form-control{height:auto}.form-group{margin-bottom:15px}.radio,.checkbox{display:block;min-height:20px;padding-left:20px;margin-top:10px;margin-bottom:10px;vertical-align:middle}.radio label,.checkbox label{display:inline;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{float:left;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:normal;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],.radio[disabled],.radio-inline[disabled],.checkbox[disabled],.checkbox-inline[disabled],fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"],fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm{height:auto}.input-lg{height:54px;padding:14px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:54px;line-height:54px}textarea.input-lg{height:auto}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline{color:#c09853}.has-warning .form-control{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e}.has-warning .input-group-addon{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline{color:#b94a48}.has-error .form-control{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392}.has-error .input-group-addon{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline{color:#468847}.has-success .form-control{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b}.has-success .input-group-addon{color:#468847;background-color:#dff0d8;border-color:#468847}.form-control-static{margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#959595}@media(min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block}.form-inline select.form-control{width:auto}.form-inline .radio,.form-inline .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:none;margin-left:0}}.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:9px;margin-top:0;margin-bottom:0}.form-horizontal .radio,.form-horizontal .checkbox{min-height:29px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-control-static{padding-top:9px}@media(min-width:768px){.form-horizontal .control-label{text-align:right}}.btn{display:inline-block;padding:8px 12px;margin-bottom:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#555;text-decoration:none}.btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#555;background-color:#fff;border-color:rgba(0,0,0,0.1)}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#555;background-color:#ebebeb;border-color:rgba(0,0,0,0.1)}.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:rgba(0,0,0,0.1)}.btn-default .badge{color:#fff;background-color:#fff}.btn-primary{color:#fff;background-color:#2fa4e7;border-color:#2fa4e7}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{color:#fff;background-color:#1990d5;border-color:#1684c2}.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#2fa4e7;border-color:#2fa4e7}.btn-primary .badge{color:#2fa4e7;background-color:#fff}.btn-warning{color:#fff;background-color:#dd5600;border-color:#dd5600}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#b44600;border-color:#a03e00}.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#dd5600;border-color:#dd5600}.btn-warning .badge{color:#dd5600;background-color:#fff}.btn-danger{color:#fff;background-color:#c71c22;border-color:#c71c22}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{color:#fff;background-color:#a3171c;border-color:#911419}.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#c71c22;border-color:#c71c22}.btn-danger .badge{color:#c71c22;background-color:#fff}.btn-success{color:#fff;background-color:#73a839;border-color:#73a839}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{color:#fff;background-color:#5e8a2f;border-color:#547a29}.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#73a839;border-color:#73a839}.btn-success .badge{color:#73a839;background-color:#fff}.btn-info{color:#fff;background-color:#033c73;border-color:#033c73}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{color:#fff;background-color:#02274b;border-color:#011d37}.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#033c73;border-color:#033c73}.btn-info .badge{color:#033c73;background-color:#fff}.btn-link{font-weight:normal;color:#2fa4e7;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#157ab5;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#999;text-decoration:none}.btn-lg{padding:14px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@font-face{font-family:'Glyphicons Halflings';src:url('../fonts/glyphicons-halflings-regular.eot');src:url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/glyphicons-halflings-regular.woff') format('woff'),url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;font-weight:normal;line-height:1;-moz-osx-font-smoothing:grayscale}.glyphicon:empty{width:1em}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#fff;text-decoration:none;background-color:#2fa4e7}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#2fa4e7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.428571429;color:#999}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media(min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar .btn-group{float:left}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group,.btn-toolbar>.btn-group+.btn-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group-xs>.btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-lg>.btn{padding:14px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-right-radius:0;border-bottom-left-radius:4px;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child>.btn:last-child,.btn-group-vertical>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;border-collapse:separate;table-layout:fixed}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}[data-toggle="buttons"]>.btn>input[type="radio"],[data-toggle="buttons"]>.btn>input[type="checkbox"]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*="col-"]{float:none;padding-right:0;padding-left:0}.input-group .form-control{width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:54px;padding:14px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:54px;line-height:54px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:8px 12px;font-size:14px;font-weight:normal;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:14px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;white-space:nowrap}.input-group-btn:first-child>.btn{margin-right:-1px}.input-group-btn:last-child>.btn{margin-left:-1px}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-4px}.input-group-btn>.btn:hover,.input-group-btn>.btn:active{z-index:2}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#999;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#2fa4e7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.428571429;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media(min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media(min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#2fa4e7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media(min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media(min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}@media(min-width:768px){.navbar{border-radius:4px}}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}@media(min-width:768px){.navbar-header{float:left}}.navbar-collapse{max-height:340px;padding-right:15px;padding-left:15px;overflow-x:visible;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);-webkit-overflow-scrolling:touch}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse.in{overflow-y:auto}@media(min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-right:0;padding-left:0}}.container>.navbar-header,.container>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.container>.navbar-header,.container>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media(min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media(min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}@media(min-width:768px){.navbar>.container .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media(min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media(max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media(min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media(min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{padding:10px 15px;margin-top:6px;margin-right:-15px;margin-bottom:6px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}@media(min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block}.navbar-form select.form-control{width:auto}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{float:none;margin-left:0}}@media(max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media(min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-nav.pull-right>li>.dropdown-menu,.navbar-nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar-btn{margin-top:6px;margin-bottom:6px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media(min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#2fa4e7;border-color:#1995dc}.navbar-default .navbar-brand{color:#fff}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#fff;background-color:none}.navbar-default .navbar-text{color:#ddd}.navbar-default .navbar-nav>li>a{color:#fff}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#fff;background-color:#178acc}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#fff;background-color:#178acc}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ddd;background-color:transparent}.navbar-default .navbar-toggle{border-color:#178acc}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#178acc}.navbar-default .navbar-toggle .icon-bar{background-color:#fff}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#1995dc}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{color:#fff;background-color:#178acc}@media(max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#fff}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:#178acc}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#178acc}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ddd;background-color:transparent}}.navbar-default .navbar-link{color:#fff}.navbar-default .navbar-link:hover{color:#fff}.navbar-inverse{background-color:#033c73;border-color:#022f5a}.navbar-inverse .navbar-brand{color:#fff}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:none}.navbar-inverse .navbar-text{color:#fff}.navbar-inverse .navbar-nav>li>a{color:#fff}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:#022f5a}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#022f5a}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#022f5a}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#022f5a}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#022a50}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#022f5a}@media(max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#022f5a}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#022f5a}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#fff}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:#022f5a}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#022f5a}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-inverse .navbar-link{color:#fff}.navbar-inverse .navbar-link:hover{color:#fff}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#999}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:8px 12px;margin-left:-1px;line-height:1.428571429;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{background-color:#eee}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#999;cursor:default;background-color:#f5f5f5;border-color:#f5f5f5}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#999;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:14px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.label[href]:hover,.label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#999}.label-default[href]:hover,.label-default[href]:focus{background-color:#808080}.label-primary{background-color:#2fa4e7}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#178acc}.label-success{background-color:#73a839}.label-success[href]:hover,.label-success[href]:focus{background-color:#59822c}.label-info{background-color:#033c73}.label-info[href]:hover,.label-info[href]:focus{background-color:#022241}.label-warning{background-color:#dd5600}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#aa4200}.label-danger{background-color:#c71c22}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#9a161a}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#999;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#2fa4e7;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;font-size:21px;font-weight:200;line-height:2.1428571435;color:inherit;background-color:#eee}.jumbotron h1,.jumbotron .h1{line-height:1;color:inherit}.jumbotron p{line-height:1.4}.container .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1,.jumbotron .h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail>img,.thumbnail a>img{display:block;height:auto;max-width:100%;margin-right:auto;margin-left:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#2fa4e7}.thumbnail .caption{padding:9px;color:#555}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:bold}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#356635}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#2d6987}.alert-warning{color:#c09853;background-color:#fcf8e3;border-color:#fbeed5}.alert-warning hr{border-top-color:#f8e5be}.alert-warning .alert-link{color:#a47e3c}.alert-danger{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-danger hr{border-top-color:#e6c1c7}.alert-danger .alert-link{color:#953b39}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#2fa4e7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#73a839}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#033c73}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#dd5600}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#c71c22}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}a.list-group-item.active,a.list-group-item.active:hover,a.list-group-item.active:focus{z-index:2;color:#fff;background-color:#2fa4e7;border-color:#2fa4e7}a.list-group-item.active .list-group-item-heading,a.list-group-item.active:hover .list-group-item-heading,a.list-group-item.active:focus .list-group-item-heading{color:inherit}a.list-group-item.active .list-group-item-text,a.list-group-item.active:hover .list-group-item-text,a.list-group-item.active:focus .list-group-item-text{color:#e6f4fc}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.panel-body{padding:15px}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0}.panel>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.list-group .list-group-item:last-child{border-bottom:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table>tbody:first-child th,.panel>.table>tbody:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:last-child>th,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:last-child>td,.panel>.table-responsive>.table-bordered>thead>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-group .panel{margin-bottom:0;overflow:hidden;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#555;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#ddd}.panel-primary>.panel-heading{color:#fff;background-color:#2fa4e7;border-color:#ddd}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-success{border-color:#ddd}.panel-success>.panel-heading{color:#468847;background-color:#73a839;border-color:#ddd}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-warning{border-color:#ddd}.panel-warning>.panel-heading{color:#c09853;background-color:#dd5600;border-color:#ddd}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-danger{border-color:#ddd}.panel-danger>.panel-heading{color:#b94a48;background-color:#c71c22;border-color:#ddd}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-info{border-color:#ddd}.panel-info>.panel-heading{color:#3a87ad;background-color:#033c73;border-color:#ddd}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:auto;overflow-y:scroll}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{position:relative;z-index:1050;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);background-clip:padding-box}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1030;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{min-height:16.428571429px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.428571429}.modal-body{position:relative;padding:20px}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media screen and (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}}.tooltip{position:absolute;z-index:1030;display:block;font-size:12px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:rgba(0,0,0,0.9);border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-top-color:rgba(0,0,0,0.9);border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:rgba(0,0,0,0.9);border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:rgba(0,0,0,0.9);border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-bottom-color:rgba(0,0,0,0.9);border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);background-clip:padding-box}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,0.25);border-bottom-width:0}.popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#fff;border-bottom-width:0;content:" "}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,0.25);border-left-width:0}.popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#fff;border-left-width:0;content:" "}.popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,0.25);border-top-width:0}.popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#fff;border-top-width:0;content:" "}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0,0,0,0.25);border-right-width:0}.popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#fff;border-right-width:0;content:" "}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;height:auto;max-width:100%;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6);opacity:.5;filter:alpha(opacity=50)}.carousel-control.left{background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.5) 0),color-stop(rgba(0,0,0,0.0001) 100%));background-image:linear-gradient(to right,rgba(0,0,0,0.5) 0,rgba(0,0,0,0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',endColorstr='#00000000',GradientType=1)}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.0001) 0),color-stop(rgba(0,0,0,0.5) 100%));background-image:linear-gradient(to right,rgba(0,0,0,0.0001) 0,rgba(0,0,0,0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#80000000',GradientType=1)}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;outline:0;opacity:.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicons-chevron-left,.carousel-control .glyphicons-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,tr.visible-xs,th.visible-xs,td.visible-xs{display:none!important}@media(max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-xs.visible-sm{display:block!important}table.visible-xs.visible-sm{display:table}tr.visible-xs.visible-sm{display:table-row!important}th.visible-xs.visible-sm,td.visible-xs.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-xs.visible-md{display:block!important}table.visible-xs.visible-md{display:table}tr.visible-xs.visible-md{display:table-row!important}th.visible-xs.visible-md,td.visible-xs.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-xs.visible-lg{display:block!important}table.visible-xs.visible-lg{display:table}tr.visible-xs.visible-lg{display:table-row!important}th.visible-xs.visible-lg,td.visible-xs.visible-lg{display:table-cell!important}}.visible-sm,tr.visible-sm,th.visible-sm,td.visible-sm{display:none!important}@media(max-width:767px){.visible-sm.visible-xs{display:block!important}table.visible-sm.visible-xs{display:table}tr.visible-sm.visible-xs{display:table-row!important}th.visible-sm.visible-xs,td.visible-sm.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-sm.visible-md{display:block!important}table.visible-sm.visible-md{display:table}tr.visible-sm.visible-md{display:table-row!important}th.visible-sm.visible-md,td.visible-sm.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-sm.visible-lg{display:block!important}table.visible-sm.visible-lg{display:table}tr.visible-sm.visible-lg{display:table-row!important}th.visible-sm.visible-lg,td.visible-sm.visible-lg{display:table-cell!important}}.visible-md,tr.visible-md,th.visible-md,td.visible-md{display:none!important}@media(max-width:767px){.visible-md.visible-xs{display:block!important}table.visible-md.visible-xs{display:table}tr.visible-md.visible-xs{display:table-row!important}th.visible-md.visible-xs,td.visible-md.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-md.visible-sm{display:block!important}table.visible-md.visible-sm{display:table}tr.visible-md.visible-sm{display:table-row!important}th.visible-md.visible-sm,td.visible-md.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-md.visible-lg{display:block!important}table.visible-md.visible-lg{display:table}tr.visible-md.visible-lg{display:table-row!important}th.visible-md.visible-lg,td.visible-md.visible-lg{display:table-cell!important}}.visible-lg,tr.visible-lg,th.visible-lg,td.visible-lg{display:none!important}@media(max-width:767px){.visible-lg.visible-xs{display:block!important}table.visible-lg.visible-xs{display:table}tr.visible-lg.visible-xs{display:table-row!important}th.visible-lg.visible-xs,td.visible-lg.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-lg.visible-sm{display:block!important}table.visible-lg.visible-sm{display:table}tr.visible-lg.visible-sm{display:table-row!important}th.visible-lg.visible-sm,td.visible-lg.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-lg.visible-md{display:block!important}table.visible-lg.visible-md{display:table}tr.visible-lg.visible-md{display:table-row!important}th.visible-lg.visible-md,td.visible-lg.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}.hidden-xs{display:block!important}table.hidden-xs{display:table}tr.hidden-xs{display:table-row!important}th.hidden-xs,td.hidden-xs{display:table-cell!important}@media(max-width:767px){.hidden-xs,tr.hidden-xs,th.hidden-xs,td.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-xs.hidden-sm,tr.hidden-xs.hidden-sm,th.hidden-xs.hidden-sm,td.hidden-xs.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-xs.hidden-md,tr.hidden-xs.hidden-md,th.hidden-xs.hidden-md,td.hidden-xs.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-xs.hidden-lg,tr.hidden-xs.hidden-lg,th.hidden-xs.hidden-lg,td.hidden-xs.hidden-lg{display:none!important}}.hidden-sm{display:block!important}table.hidden-sm{display:table}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}@media(max-width:767px){.hidden-sm.hidden-xs,tr.hidden-sm.hidden-xs,th.hidden-sm.hidden-xs,td.hidden-sm.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-sm,tr.hidden-sm,th.hidden-sm,td.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-sm.hidden-md,tr.hidden-sm.hidden-md,th.hidden-sm.hidden-md,td.hidden-sm.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-sm.hidden-lg,tr.hidden-sm.hidden-lg,th.hidden-sm.hidden-lg,td.hidden-sm.hidden-lg{display:none!important}}.hidden-md{display:block!important}table.hidden-md{display:table}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}@media(max-width:767px){.hidden-md.hidden-xs,tr.hidden-md.hidden-xs,th.hidden-md.hidden-xs,td.hidden-md.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-md.hidden-sm,tr.hidden-md.hidden-sm,th.hidden-md.hidden-sm,td.hidden-md.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-md,tr.hidden-md,th.hidden-md,td.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-md.hidden-lg,tr.hidden-md.hidden-lg,th.hidden-md.hidden-lg,td.hidden-md.hidden-lg{display:none!important}}.hidden-lg{display:block!important}table.hidden-lg{display:table}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}@media(max-width:767px){.hidden-lg.hidden-xs,tr.hidden-lg.hidden-xs,th.hidden-lg.hidden-xs,td.hidden-lg.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-lg.hidden-sm,tr.hidden-lg.hidden-sm,th.hidden-lg.hidden-sm,td.hidden-lg.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-lg.hidden-md,tr.hidden-lg.hidden-md,th.hidden-lg.hidden-md,td.hidden-lg.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-lg,tr.hidden-lg,th.hidden-lg,td.hidden-lg{display:none!important}}.visible-print,tr.visible-print,th.visible-print,td.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}.hidden-print,tr.hidden-print,th.hidden-print,td.hidden-print{display:none!important}}.navbar{background-image:-webkit-linear-gradient(#54b4eb,#2fa4e7 60%,#1d9ce5);background-image:linear-gradient(#54b4eb,#2fa4e7 60%,#1d9ce5);background-repeat:no-repeat;border-bottom:1px solid #178acc;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff54b4eb',endColorstr='#ff1d9ce5',GradientType=0);filter:none;-webkit-box-shadow:0 1px 10px rgba(0,0,0,0.1);box-shadow:0 1px 10px rgba(0,0,0,0.1)}.navbar .navbar-nav>li>a,.navbar-brand{text-shadow:0 1px 0 rgba(0,0,0,0.1)}.navbar-inverse{background-image:-webkit-linear-gradient(#04519b,#044687 60%,#033769);background-image:linear-gradient(#04519b,#044687 60%,#033769);background-repeat:no-repeat;border-bottom:1px solid #022241;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff04519b',endColorstr='#ff033769',GradientType=0);filter:none}.btn{text-shadow:0 1px 0 rgba(0,0,0,0.1)}.btn .caret{border-top-color:#fff}.btn-default{background-image:-webkit-linear-gradient(#fff,#fff 60%,#f5f5f5);background-image:linear-gradient(#fff,#fff 60%,#f5f5f5);background-repeat:no-repeat;border-bottom:1px solid #e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#fff5f5f5',GradientType=0);filter:none}.btn-default:hover{color:#555}.btn-default .caret{border-top-color:#555}.btn-default{background-image:-webkit-linear-gradient(#fff,#fff 60%,#f5f5f5);background-image:linear-gradient(#fff,#fff 60%,#f5f5f5);background-repeat:no-repeat;border-bottom:1px solid #e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#fff5f5f5',GradientType=0);filter:none}.btn-primary{background-image:-webkit-linear-gradient(#54b4eb,#2fa4e7 60%,#1d9ce5);background-image:linear-gradient(#54b4eb,#2fa4e7 60%,#1d9ce5);background-repeat:no-repeat;border-bottom:1px solid #178acc;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff54b4eb',endColorstr='#ff1d9ce5',GradientType=0);filter:none}.btn-success{background-image:-webkit-linear-gradient(#88c149,#73a839 60%,#699934);background-image:linear-gradient(#88c149,#73a839 60%,#699934);background-repeat:no-repeat;border-bottom:1px solid #59822c;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff88c149',endColorstr='#ff699934',GradientType=0);filter:none}.btn-info{background-image:-webkit-linear-gradient(#04519b,#033c73 60%,#02325f);background-image:linear-gradient(#04519b,#033c73 60%,#02325f);background-repeat:no-repeat;border-bottom:1px solid #022241;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff04519b',endColorstr='#ff02325f',GradientType=0);filter:none}.btn-warning{background-image:-webkit-linear-gradient(#ff6707,#dd5600 60%,#c94e00);background-image:linear-gradient(#ff6707,#dd5600 60%,#c94e00);background-repeat:no-repeat;border-bottom:1px solid #aa4200;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff6707',endColorstr='#ffc94e00',GradientType=0);filter:none}.btn-danger{background-image:-webkit-linear-gradient(#e12b31,#c71c22 60%,#b5191f);background-image:linear-gradient(#e12b31,#c71c22 60%,#b5191f);background-repeat:no-repeat;border-bottom:1px solid #9a161a;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe12b31',endColorstr='#ffb5191f',GradientType=0);filter:none}.pagination .active>a,.pagination .active>a:hover{border-color:#ddd}.panel-primary .panel-heading,.panel-success .panel-heading,.panel-warning .panel-heading,.panel-danger .panel-heading,.panel-info .panel-heading,.panel-primary .panel-title,.panel-success .panel-title,.panel-warning .panel-title,.panel-danger .panel-title,.panel-info .panel-title{color:#fff}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}
\ No newline at end of file
diff --git a/css/font-awesome-4.5.0.css b/css/font-awesome-4.5.0.css
new file mode 100644
index 0000000..d0603cb
--- /dev/null
+++ b/css/font-awesome-4.5.0.css
@@ -0,0 +1,4 @@
+/*!
+ * Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
+ */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.5.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.5.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.5.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.5.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.5.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.5.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}
diff --git a/css/highlight.css b/css/highlight.css
new file mode 100644
index 0000000..0ae40a7
--- /dev/null
+++ b/css/highlight.css
@@ -0,0 +1,124 @@
+/*
+This is the GitHub theme for highlight.js
+
+github.com style (c) Vasily Polovnyov
+
+*/
+
+.hljs {
+ display: block;
+ overflow-x: auto;
+ color: #333;
+ -webkit-text-size-adjust: none;
+}
+
+.hljs-comment,
+.diff .hljs-header,
+.hljs-javadoc {
+ color: #998;
+ font-style: italic;
+}
+
+.hljs-keyword,
+.css .rule .hljs-keyword,
+.hljs-winutils,
+.nginx .hljs-title,
+.hljs-subst,
+.hljs-request,
+.hljs-status {
+ color: #333;
+ font-weight: bold;
+}
+
+.hljs-number,
+.hljs-hexcolor,
+.ruby .hljs-constant {
+ color: #008080;
+}
+
+.hljs-string,
+.hljs-tag .hljs-value,
+.hljs-phpdoc,
+.hljs-dartdoc,
+.tex .hljs-formula {
+ color: #d14;
+}
+
+.hljs-title,
+.hljs-id,
+.scss .hljs-preprocessor {
+ color: #900;
+ font-weight: bold;
+}
+
+.hljs-list .hljs-keyword,
+.hljs-subst {
+ font-weight: normal;
+}
+
+.hljs-class .hljs-title,
+.hljs-type,
+.vhdl .hljs-literal,
+.tex .hljs-command {
+ color: #458;
+ font-weight: bold;
+}
+
+.hljs-tag,
+.hljs-tag .hljs-title,
+.hljs-rule .hljs-property,
+.django .hljs-tag .hljs-keyword {
+ color: #000080;
+ font-weight: normal;
+}
+
+.hljs-attribute,
+.hljs-variable,
+.lisp .hljs-body,
+.hljs-name {
+ color: #008080;
+}
+
+.hljs-regexp {
+ color: #009926;
+}
+
+.hljs-symbol,
+.ruby .hljs-symbol .hljs-string,
+.lisp .hljs-keyword,
+.clojure .hljs-keyword,
+.scheme .hljs-keyword,
+.tex .hljs-special,
+.hljs-prompt {
+ color: #990073;
+}
+
+.hljs-built_in {
+ color: #0086b3;
+}
+
+.hljs-preprocessor,
+.hljs-pragma,
+.hljs-pi,
+.hljs-doctype,
+.hljs-shebang,
+.hljs-cdata {
+ color: #999;
+ font-weight: bold;
+}
+
+.hljs-deletion {
+ background: #fdd;
+}
+
+.hljs-addition {
+ background: #dfd;
+}
+
+.diff .hljs-change {
+ background: #0086b3;
+}
+
+.hljs-chunk {
+ color: #aaa;
+}
diff --git a/docs/README.md b/docs/README.md
deleted file mode 100644
index 6ce513f..0000000
--- a/docs/README.md
+++ /dev/null
@@ -1,136 +0,0 @@
-# zeeSQL, SQL and search by value for Redis. Fast, Simple and Reliable.
-
-This is an introduction to zeeSQL, a Redis modules that brings SQL capabilities into Redis along with complex SQL search by value of Redis hashes.
-
-This document is your entry point for the documentation and will guide you to what to read next.
-
-## Quickstart
-
-Once you start zeeSQL, you can interact with it using the standard `redis-cli`.
-
-Below we are creating a database, create a new table, insert new rows, and query those rows back.
-
-```text
-$ redis-cli
-> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-> ZEESQL.EXEC DB COMMAND "CREATE TABLE users(id STRING, score INT);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "INSERT INTO users VALUES('jausten', 3), ('hugo', 5);"
-1) 1) "DONE"
-2) 1) (integer) 2
-> ZEESQL.EXEC DB COMMAND "SELECT * FROM users;"
-1) 1) "RESULT"
-2) 1) "id"
- 2) "score"
-3) 1) "TEXT"
- 2) "INT"
-4) 1) "jausten"
- 2) (integer) 3
-5) 1) "hugo"
- 2) (integer) 5
-```
-
-`zeeSQL` allows searching Redis hashes by values, making much simpler to express complex queries.
-
-```text
-> ZEESQL.INDEX DB NEW PREFIX products:* TABLE products SCHEMA id INT price INT name STRING
-OK
-> HMSET products:123 id 123 price 2345 name "set of glasses"
-OK
-> HMSET products:471 id 471 price 3459 name "wall clock"
-OK
-> ZEESQL.EXEC DB COMMAND "SELECT name FROM products WHERE price > 2500;"
-1) 1) "RESULT"
-2) 1) "name"
-3) 1) "TEXT"
-4) 1) "wall clock"
-```
-
-If you think that `zeeSQL` can solve some of your problem, please keep reading for more context and details.
-
-Or you can [read the Tutorial](tutorial.md) to get a better overview on how `zeeSQL` works and what it can do for you.
-
-## What is zeeSQL
-
-`zeeSQL` is a Redis module. In version 4, Redis introduce this new features of modules.
-
-A module, once loaded into Redis, provides new capabilities to Redis itself. Most of the time this means new commands that the user can access using the standard Redis interface.
-
-Either by command line or by API access.
-
-`zeeSQL` embeds SQLite into Redis.
-
-This allows to create SQL databases that can be easily accessed via Redis. The main motivation for the project, back then, was to create a simple and easy to operate data layer. Instead of having, a DBMS, a cache layer and a queue, you can just use `zeeSQL` with Redis and have all the tools to run a rather big web service.
-
-`zeeSQL` outgrow this first stage. Our users were to keep demanding tighter integration between the data stored in Redis and what was accessible over SQL. So, `zeeSQL` secondary indexes were born.
-
-Secondary indexes allow getting data from Redis hashes using standard SQL. It is possible to look into all your keys and get only the one that have the eg. `score` field set to a number greater than 20.
-
-Similarly, it is possible to do aggregation and filtering.
-
-## How zeeSQL can help
-
-`zeeSQL` can help whenever your infrastructure is too complex.
-
-If you are having issue keeping your main database and its cache in sync, `zeeSQL` help.
-
-If your Redis datamodel is too complex, `zeeSQL` can help.
-
-If anytime you change a piece of information inside Redis you need to also modify dozen of other Redis keys, `zeeSQL` can simplify that.
-
-If you need a fast SQL engine that works in memory, that you can integrate now in your infrastructure, `zeeSQL` will be fast.
-
-## Getting the binary
-
-The binary is distributed freely.
-
-It is available on the website:
-
-```text
-wget https://zeesql.com/releases/latest/zeesql.so -o $HOME/zeesql.so
-```
-
-The URL is stable and provides always the latest released version of `zeeSQL`.
-
-More information on [how to get zeeSQL.](how-to/get-zeesql.md)
-
-## Loading the module
-
-To use `zeeSQL` you need to load it into your Redis instances.
-
-After you download the binary, and placed somewhere accessible, you can load the module in different way.
-
-The first way is to pass the module as argument to Redis.
-
-```text
-redis-server --loadmodule $HOME/zeesql.so
-```
-
-The second way is to configure Redis to start with the module. It is sufficient to add the following line to your `redis.conf` file.
-
-```text
-loadmodule $HOME/zeesql.so
-```
-
-The final way is to load the module issuing a command against your Redis instance.
-
-```text
-redis-cli MODULE LOAD $HOME/zeesql.so
-```
-
-Each of these three way, if successful, will load `zeeSQL` into Redis making it ready to use.
-
-## Getting a license
-
-In order to offer a great product, with great documentation and with support, `zeeSQL` must limits its capabilities for free users and let people pay a fair price for what we believe being good software.
-
-Free users can use the product as much as they like and we will provide support to them without any issue. But `zeeSQL` will be limited in the amount of databases and secondary indexes that can be created.
-
-Note how the lack of license does not limit the size of your dataset, but only the complexity tha `zeeSQL` manages for you.
-
-In order to remove these limitations, it is possible to [buy a license](https://license.zeesql.com).
-
-More information about the [pricing in the dedicate page](pricing.md).
-
diff --git a/docs/backward-compatibility.md b/docs/backward-compatibility.md
deleted file mode 100644
index 3842d61..0000000
--- a/docs/backward-compatibility.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# zeeSQL commits to backward compatibility
-
-zeeSQL commits to backward compatibility.
-
-Software written to run on zeeSQL version `n` should be able to run, unchanged on any version greater than `n`.
-
-Unfortunately, committing so strictly to backward compatibilities, also means that the APIs that `zeeSQL` exposes are almost immutable, this is not sustainable.
-
-Hence we offer a very reasonable middle ground.
-
-## Namespacing the command
-
-Each command of `zeeSQL` is namespaced also with its major version.
-
-Now, `zeeSQL` is at version `1`, hence all the commands available in `ZEESQL`, like `ZEESQL.CREATE_DB` or `ZEESQL.EXEC`, are also available in `ZEESQL.V1`.
-In the specific case, `ZEESQL.CRATE_DB` is available also as `ZEESQL.V1.CREATE_DB` and `ZESQL.EXEC` is also available as `ZEESQL.V1.EXEC`.
-This, of course, holds for every single command exposed by `zeeSQL`.
-
-When `zeeSQL` version `2` will be released, all the commands in `ZEESQL.V1` will stay exactly the same.
-The code won't change, and they will map one to one to the commands in version `1`.
-
-However, when version `2` of `zeeSQL` will be available, all the commands without the version namespace, `ZEESQL.CREATE_DB` (for instance) will be the same as `ZEESQL.V2.CREATE_DB` not of `ZEESQL.V1.CREATE_DB`.
-
-This schema allows us to move forward with the APIs, fixing mistakes, but will also provide stable backward compatibility guarantees for our users.
-
-## Which version of the command to use, with or without version namespace?
-
-What specific command version you should use in your project depends.
-
-If you are not so interested in updates and new features, and the project might become legacy in your organization, in this case, it would be better to use the commands with the namespace.
-In this way, you can be sure that your code will always work and that you can update `zeeSQL` for performance or security reasons.
-
-If you are experimenting, are interested in more features, or are betting a lot on `zeeSQL` tracking the version without the namespace is a good idea as well.
-This might involve more work in the future, but it will also give access to more features.
-
-## Conclusions
-
-Overall, we hope that this commitment to backward compatibility, show how much we care about our users and that our priorities are about selling good software that simplifies our users' life.
-
-Not committing to backward compatibility would have been a short-term choice to quickly get more revenues at the cost of losing the trust of the community.
-
-
diff --git a/docs/blog/README.md b/docs/blog/README.md
deleted file mode 100644
index 59fe214..0000000
--- a/docs/blog/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# blog
-
diff --git a/docs/blog/analytics.md b/docs/blog/analytics.md
deleted file mode 100644
index f66f3c3..0000000
--- a/docs/blog/analytics.md
+++ /dev/null
@@ -1,230 +0,0 @@
-# RediSQL for analytics
-
-RediSQL is a module for Redis that embed a completely functional SQLite database.
-
-RediSQL enables new paradigm where is possible to have several smaller decentralized databases instead of a single giant one.
-
-In this blog post, we are going to explore how RediSQL can be used for storing analytics data.
-
-Redis is always been used for storing fast data and so it is an extremely interesting software for analytics solution.
-
-We are now going to describe the problem, explore some data structures that may help and finally sketch a possible solution using RediSQL.
-
-At the end of the article, there is actual python code that you can run.
-
-## Problem
-
-Suppose you are interested in following the user around your website, and you will like to know what buttons they click, what events they trigger, what form the focus on and so on and so forth.
-
-All these events are quite simple to catch using javascript and client-side code, but then you need to store them in your database to analyze them further and extract new information and value for your business.
-
-However, you would prefer to avoid to put too much pressure on your main database that is already busy storing all the essential information for the business.
-
-## Data Structure
-
-One of the advantages of using SQL is the possibility to use and declare the shape of your data.
-
-For this specific problem, our data are quite simple. We want to store a user identifier \(it may be its alias, nickname, ID in the main database or even something else\), the IP address of the user, the timestamp when the event was triggered and finally the event itself.
-
-We are going to represent the identifier, the IP address and the timestamp as strings. Yes, unfortunately, SQLite does not provide a time type, to use a string is quite a reasonable choice, another one could be to use integers and to save the timestamp as Unix epoch of the event.
-
-### Events
-
-Representing the events may be a little complex and it really depends on your use case. Suppose you are just listening to specific events like "Sales", "Register", "Login" or "Submit form" you could simply store them as strings.
-
-However you can be a little more sophisticated as well, and associate to every Sales some other data like "amount", "shipping cost" or "total elements sold" or again improve the "Submit form" with information about the web page, like the URL of the page or if it was the A or the B version of your A/B test. And so on and so forth.
-
-### JSON or Tables
-
-If your events are quite static and you already know what you are going to store the best approach is to use tables.
-
-An idea could be to use this representation for the table `Events`:
-
-```sql
-| event_id | user_id | ip_address | timestamp |
-|----------|---------|------------|-----------|
-```
-
-And then different tables for each type of events, like:
-
-`Sales`:
-
-```sql
-| event_id | amount | shipping_cost | total_elements_sold |
-|----------|---------|---------------|---------------------|
-```
-
-`Submits`:
-
-```sql
-| event_id | url_page | A/B_version |
-|----------|----------|-------------|
-```
-
-Where `event_id` is a Primary key to the table `Events` and a Foreign key on the table `Sales` and `Submits`.
-
-This approach works really well, the shape of your data will be always known and it will be fast, however, you actually need to know what you are saving in your DB and change the structure of the table is quite complex.
-
-A different approach will be to store directly JSON in your table.
-
-The new schema will be only a single table, `Events`:
-
-```sql
-| event_id | user_id | ip_address | timestamp | data |
-|----------|---------|------------|-----------|------|
-```
-
-The column data will be of type `text` and it will store anything you want if encoded in JSON.
-
-Of course, it is also possible to run any kind of computation on the JSON data including filters and selection.
-
-Using JSON you gain a lot of flexibility but you are not sure anymore of the shape of your data and if you are not careful it may cause some headaches.
-
-## Solution Sketch
-
-In this section we are going to get through a possible implementation of the above solution, we are going to use the JSON variant since I believe that not everybody knew that SQLite could handle JSON so well.
-
-I am assuming you already know how to get a Redis instance and how to load a module into it, if not make sure to check out [the readme of the project](https://github.com/RedBeardLab/rediSQL#getting-start)
-
-We are going to automate as much as possible in this tutorial, in this way your analytic script will just run.
-
-The very first thing to do is to get a working connection to your Redis instance, any Redis binding should make this process quite simple, here an example in python.
-
-```python
-import redis
-r = redis.StrictRedis(host='localhost', port=6379, db=0)
-```
-
-Now that you have established a connection the next step is to create a RediSQL database, RediSQL can manage multiple, completely independent databases, each associated with a Redis key, for this simple example we are going to use only one database that, with a lot of fantasy, `DB`.
-
-```python
-ok = r.execute_command("REDISQL.CREATE_DB", "DB")
-assert ok == "OK"
-```
-
-Now that we have created our database we can go ahead and create the table that will contain our data. We are going to create the table if and only if it does not exists yet.
-
-```python
-done = r.execute_command("REDISQL.EXEC", "DB",
- """CREATE TABLE
- IF NOT EXISTS
- Events(
- event_id INTEGER PRIMARY KEY,
- user_id STRING,
- ip_address STRING,
- timestamp STRING,
- data JSON
- );""")
-assert done == ["DONE", 0]
-```
-
-Setting the type of `event_id` as `INTEGER PRIMARY KEY` is synonymous with `ROWID` which is an autoincrement fields that do not need to be set during insert.
-
-At this point, the only thing left to do is to listen for events in your code and write them into the database.
-
-The simplest, and insecure, way to write the data is to use the `EXEC` function like so:
-
-```python
-# import datetime
-user_id = "user_1234"
-ip_address = "a.simple.ip.address"
-now = datetime.datetime.now()
-data = {"type" : "sales", "total": 1999, "shipping_address" : "..."}
-statement = """INSERT INTO Events (user_id, ip_address, timestamp, data)
- VALUES(\"{}\", \"{}\", \"{}\", \"{}\")""" \
- .format(user_id, ip_address, now, data)
-done = r.execute_command("REDISQL.EXEC", "DB", statement)
-assert done == ["DONE", 1]
-```
-
-As you may have guessed already the return value of `REDISQL.EXEC` is a list of two elements, the string `DONE` and the integer representing the number of rows modified \(inserted, deleted or updated\).
-
-However, this way of inserting data into the database is not optimal, especially if the same operation will be performed several times. And also because it is vulnerable to SQL injections attacks.
-
-The better and safer way to do this kind of operation is to define **statements**.
-
-```python
-ok = r.execute_command("REDISQL.CREATE_STATEMENT", "DB", "insert_event",
- """INSERT INTO Events
- (user_id, ip_address, timestamp, data)
- VALUES(?1, ?2, ?3, ?4)""")
-assert ok == "OK"
-```
-
-Once a statement is defined you can execute it using the following commands.
-
-```python
-# import datetime
-user_id = "user_1234"
-ip_address = "a.simple.ip.address"
-now = datetime.datetime.now()
-data = {"type" : "sales", "total": 1999, "shipping_address" : "..."}
-done = r.execute_command("REDISQL.EXEC_STATEMENT", "DB", "insert_event", user_id, ip_address, now, data)
-assert done == ["DONE", 1]
-```
-
-The use of statements brings some benefits.
-
-* It reduces code deduplication in your code base
-* It puts a name on a particular procedure, decoupling the implementation and the goal
-* It allows different microservices to invoke the always the exact same procedure
-* It is faster to execute
-
-### Use the JSON1 SQLite module
-
-Now that we have covered how to execute SQL against RediSQL let me quickly introduce you to the JSON1 syntax provide by SQLite.
-
-The ones that follow are plain SQL statements that you can execute `REDISQL.EXEC` against the database or that you can embed into a statement.
-
-The most interesting function provide is `json_extract`.
-
-```sql
-SELECT user_id, json_extract(data, '$.total')
-FROM Events
-WHERE json_extract(data, '$.type') = "sales";
-```
-
-This query will look inside the field `type` of the JSON stored into the columns `data` if this fields contains the string "sales" it will return the user who bought something and total of the sale.
-
-`json_extract` works also on array using a simple syntax: `$.array[2]` \(eg. extract the third element of the array\)
-
-## Move the data
-
-Running the above script will be extremely fast, I am talking about 10ks inserts per second fast.
-
-However, it is so fast for a variety of reason but maybe the most important is that it keeps all the data in memory and does not write them on disk.
-
-This can be just fine for some application \(think about storing data that become useless in few days time\) or it can be a big issue for some other use case, luckily there is a very simple solution.
-
-The simplest thing to do when you decide to dump the data in your persistent storage is just to query them all and push them, in batch, to your persistent system. Moving the data in all together will allow having an extremely high throughput and it will take a fraction of the time than if you moved just a row at the time.
-
-A quite simple practice is to simply dump all the content of your database in a CSV file and then let your RDBMS load it.
-
-This operation is quite simple and it can be done like so.
-
-```python
-# get the data
-values = r.execute_command("REDISQL.EXEC", "DB", "SELECT * FROM Events;")
-# iterate throught the list writing on file
-with open('csv_file', 'w') as csv_file:
- # write the csv header
- csv_file.write("event_id,user_id,ip_address,timestamp,data\n")
- for row in values:
- # create a single string with all the fields separated by a comma
- elements = ",".join(row) + "\n"
- # write the result on the csv_file
- csv_file.write(elements)
-```
-
-Now you can use tools like PostgreSQL COPY to load all the data into your database.
-
-This solution is not perfect and in a distributed setting with several concurrent workers it may result in some data duplication, however, we are getting ahead of ourselves and this topic will go far ahead of the scope of this post.
-
-## Recap
-
-In this blog post, we explored how to write a quite sophisticated analytics infrastructure using nothing more than RediSQL.
-
-Adding this tool to your existing infrastructure should be quite simple and painless while it provides a simple way to do powerful things in a fast and reliable way.
-
-Is worth to remember that RediSQL already provide RDB persistency so you already have some interesting level of safeness embed into this architecture.
-
diff --git a/docs/blog/copy_database.md b/docs/blog/copy_database.md
deleted file mode 100644
index 4905040..0000000
--- a/docs/blog/copy_database.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copying RediSQL databases
-
-One undervalued capability of RediSQL redise in the \[REDISQL.COPY\]\[copy\] command.
-
-As you know, RediSQL databases comes in two different shapes, memory-backends database and file-backend databases.
-
-The memory-backend databases operate only in RAM, all the database is stored in memory and \(excluding RDB and AOF files\) they disapear when the redis instance is shutted down. The file-backend databases store all their content in a standard file, so when the redis instance is shuted down, the file will still be in the filesystem. The file-backend databases can store an huge amount of data since all the data is stored on disk and not on memory, the trade-off is clearly performance.
-
-RediSQL databases support both RDB and AOF files, so the data stored maintain all the persistency guarantees of Redis.
-
-File-backend databases provide an easy way to get data in and out of RediSQL.
-
-## Creating a file-backend database
-
-The command `REDISQL.CREATE_DB $DB_NAME [$path]` take the optional argument $path. If a path is provided, RediSQL try to open an SQLite database from the specified path. If the file does not exists, it creates a new database. If the file is a SQLite database, the database, with all its data, is loaded into RediSQL. If the file is not a SQLite database, a simple error is raised.
-
-This behaviour provide a simple yet very effective way to load data into RediSQL. It is possible to create an SQLite database that already contains all the necessary data, then, we pass this database to the `REDISQL.CREATE_DB` command as path argument. This will create a file-backend database with already all your data loaded.
-
-The fastest and most efficient way to load tons of files inside RediSQL.
-
-The trade-off is clear, the database just created will have the performance of a file-backend database.
-
-## Copying databases
-
-If is it necessary to have faster performance, than a file-backend database, the solution is to copy the database into a memory-backend database. The copy of a database is rather efficient, since it works in memory batches, copying pages of memory at the time and it is not a naive row by row copy.
-
-The `REDISQL.COPY $source $destination` takes as argument a `$source` database and a `$destination` database, creating a copy of the `$source` database into the `$destination` database. The `$destination` database is overwritten and its content is lost.
-
-Overall, the procedure to load a database into RediSQL would be similar to:
-
-```text
-# create the SQLite database in /home/ubuntu/input.sqlite
-redis> REDISQL.CREATE_DB input /home/ubuntu/input.sqlite
-redis> REDISQL.CREATE_DB fast_production
-redis> REDISQL.COPY input fast_production
-```
-
-We first create two database, `input` and `fast_production`. The `input` database is a file-backend database using our original SQLite database while the `fast_production` is a memory-backend database. Then we copy the content of `input` into `fast_production`.
-
-Now we can query the `fast_production` database that will have all the data in the original `/home/ubuntu/input.sqlite` database.
-
-## Going the other way
-
-While this procedure is convenient to get data inside RediSQL, it can be used also to get the data out of it, for backup reason or for shipping the data to some analytic pipeline.
-
-Again, the procedure is rather simple, we create two databases: `production` and `copy`. `production` is a memory-backend database used during normal operatios, `copy` is a file-backend database used for backup. Then we copy the database from `production` into `copy`.
-
-```text
-# create the SQLite database in /home/ubuntu/input.sqlite
-redis> REDISQL.CREATE_DB production
-redis> REDISQL.CREATE_DB copy /home/ubuntu/copy.sqlite
-redis> REDISQL.COPY production copy
-```
-
-The last step can be to delete the `copy` database, the file will stay intact in the filesystem, but the database won't use any more resorces from Redis. The database can be deleted using the standard `DEL` command, `DEL copy`.
-
-## Recap
-
-In this article we explore a simple way to use the `REDISQL.COPY` command.
-
-The `REDISQL.COPY` command has also different uses, it can be used to create a stale copy of a database to distribute some traffic. Or it can be used to create a complex structure in a "template" database and quickly replicate the template for different users.
-
-\[copy\]:
-
diff --git a/docs/blog/golang/README.md b/docs/blog/golang/README.md
deleted file mode 100644
index 8977393..0000000
--- a/docs/blog/golang/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# golang
-
diff --git a/docs/blog/golang/using-redisql-with-golang.md b/docs/blog/golang/using-redisql-with-golang.md
deleted file mode 100644
index 8357a91..0000000
--- a/docs/blog/golang/using-redisql-with-golang.md
+++ /dev/null
@@ -1,144 +0,0 @@
-# Using RediSQL with Go\(lang\)
-
-This tutorial will help you to get start to use RediSQL with Go\(lang\).
-
-In this tutorial we will scrape the content of Hacker News using their [API documented here](https://github.com/HackerNews/API).
-
-To communicate with Redis we will use the popular [radix](https://github.com/mediocregopher/radix) library wich is the most suitable to communicate with Redis Modules and RediSQL. Other libraries can be used as well, but some more work will be necessary.
-
-To follow this tutorial you will need a modern \(> v4.0\) instance of Redis running RediSQL. You can obtain RediSQL from [our shop](https://payhip.com/b/Ri4d) or from the [github releases](https://github.com/RedBeardLab/rediSQL/releases).
-
-To load RediSQL is sufficient to pass it as argument to the redis-server: `./redis-server --loadmodule /path/to/redisql.so`
-
-The whole code show in this example is reachable [here](https://github.com/RedBeardLab/rediSQL/blob/master/doc/docs/blog/golang/main.go)
-
-## Creating a Redis Pooled Connection
-
-Using `radix` is quite simple to use a pooled connection to Redis, indeed `radix` provide the `NewPool` function that creates a pool of connection to Redis. Then it is possible to use that pool as a client and have the library allocate a client for us.
-
-```go
-redis, err := radix.NewPool("tcp", "localhost:6379", 10)
-if err != nil {
- fmt.Println(err)
- return
-}
-```
-
-## Setting up the database
-
-In order to work with RediSQL is necessary to do a small setup. The first step is always to create a database, then we create the tables inside the databases and finally the different statements if they are necessary.
-
-It is always a good idea to use statements instead of building query by hand, but it is not mandatory. The use of statements eliminate the risk of SQL injection and it is more performant, since the query is parsed only once and not every time it get executed.
-
-In our case we create a simple database that we will call `HN`.
-
-```go
-r.Do(radix.Cmd(nil, "REDISQL.CREATE_DB", "HN"))
-```
-
-Then we create a single table `hn` inside the `HN` database.
-
-```go
-table := "CREATE TABLE IF NOT EXISTS hn(id integer primary key, author text, time int, item text);"
-r.Do(radix.Cmd(nil, "REDISQL.EXEC", "HN", table))
-```
-
-The table will contains the `id` of each item we are getting from HN, along with the author of the item, when the item was posted and finally the last field will contains the whole item as a `json` string.
-
-The last step is to create a statement to easily insert the data inside our table.
-
-```go
-stmt := `INSERT INTO hn VALUES(
- json_extract(json(?1),'$.id'),
- json_extract(json(?1),'$.by'),
- json_extract(json(?1),'$.time'),
- json(?1));`
-r.Do(radix.Cmd(nil, "REDISQL.CREATE_STATEMENT", "HN", "insert_item", stmt))
-```
-
-The statement is a little complex. It exploit the [JSON1](https://www.sqlite.org/json1.html) sqlite extension to extract the necessary fields from a JSON string. In particular we extract the `id`, the `by` \(author\) and the `time` fields.
-
-After that those fields are extracted from the JSON string we store all of them into the database along with the whole item.
-
-## The loop
-
-After the database is ready to accept data, we start to poll the HN API in order to fetch the newest item. Each item is then pushed into the `itemIds` channel that is later consumed.
-
-```go
-itemIds := make(chan int, 10)
-
-go func() {
- oldMaxItemId := getMaxItem()
- for {
- newMaxItemId := getMaxItem()
- for ; oldMaxItemId < newMaxItemId; oldMaxItemId++ {
- itemIds <- oldMaxItemId
- }
- time.Sleep(5 * time.Second)
- }
-}()
-```
-
-The API provide an endpoint that show the biggest element in HN at the moment, it is a simple auto-incremental id that we can fetch using the `getMaxItem()` function implemented as:
-
-```go
-func getMaxItem() int {
- resp, _ := http.Get("https://hacker-news.firebaseio.com/v0/maxitem.json")
- defer resp.Body.Close()
- body, _ := ioutil.ReadAll(resp.Body)
- n, _ := strconv.Atoi(string(body))
- return n
-}
-```
-
-Finally the main loop iterate through the `itemIds` channel. For each new item we use again the HN API to get the content of the items and then we store it into RediSQL.
-
-```go
-for itemId := range itemIds {
- go func() {
- item := getItem(itemId)
- err := redis.Do(radix.Cmd(nil, "REDISQL.EXEC_STATEMENT", "HN", "insert_item", item))
- if err != nil {
- fmt.Println(err)
- }
- }()
-}
-```
-
-The `getitem()` functions implement a trivial error recovery strategy. Indeed, after some trial and error, was clear that, sometimes, the element `n` is not ready yet even if the element `n+1` was published as `maxitem` and the API returns the simple string "null", if that is the case we simply repeat the call.
-
-```go
-func getItem(id int) string {
- for {
- url := fmt.Sprintf("https://hacker-news.firebaseio.com/v0/item/%d.json", id)
- resp, _ := http.Get(url)
- defer resp.Body.Close()
- body, _ := ioutil.ReadAll(resp.Body)
- result := string(body)
- if result != "null" {
- return result
- }
- }
-}
-```
-
-## Concluding
-
-This small example \(less than 80 lines\) show how simple is to quickly get value from RediSQL. Indeed is sufficient to set up the database following always the same steps:
-
-1. Create the database with `REDISQL.CREATE_DB $db_name`
-2. Create the schema inside your database `REDISQL.EXEC $db_name "CREATE TABLE ... etc"` and, if you want, the statements: `REDISSQL.CREATE_STATEMENT $db_name $statement_name "INSERT INTO ... etc"`
-3. Start inserting data, with or without a statement: `REDISQL.EXEC_STATEMENT` or simply `REDISQL.EXEC`
-
-Finally to query back the data is possible to use:
-
-* queries `REDISQL.QUERY $db_name "SELECT * FROM ..."`,
-* statements `REDISQL.CREATE_STATEMENT $db_name $query_name "SELECT * FROM ... WHERE foo = ?1"` and the `REDISQL.QUERY_STATEMENTS $db_name $query_name "paramenters"`
-* simple exec `REDISQL.EXEC $db_name "SELECT * FROM ... etc"`
-
-Feel free to explore our [references documentation](https://github.com/RedBeardLab/zeeSQL-doc/tree/a2b67b9d686c211c772ba26ddf89e17f8df9c4ab/docs/references/README.md) to understand better what capabilities RediSQL provides you.
-
-The complete code of this example is [available here.](https://github.com/RedBeardLab/rediSQL/blob/master/doc/docs/blog/golang/main.go)
-
-If you wish to see a similar tutorial for a different language, [open an issue on github.](https://github.com/RedBeardLab/rediSQL/issues/new)
-
diff --git a/docs/blog/jaas.md b/docs/blog/jaas.md
deleted file mode 100644
index ff71136..0000000
--- a/docs/blog/jaas.md
+++ /dev/null
@@ -1,177 +0,0 @@
-# JSON on Redis via RediSQL, SQL steroids for Redis
-
-### RediSQL, Redis on SQL steroids.
-
-RediSQL is a redis module that embeds SQLite to provide full SQL capabilities to redis.
-
-The fastest introduction to RediSQL is [our homepage](https://github.com/RedBeardLab/zeeSQL-doc/tree/70a762a22db224251819ed5ce9119aa9d87adf58/README.md)
-
-tl;dr; We build a **JSON as a Service** in less than 500 lines of javascript + RediSQL, you can check out the [whole source file here.](https://github.com/RedBeardLab/JaaS/blob/master/index.js)
-
-## JSON as a Service in 500 lines of code + RediSQL
-
-While building web services is common to have the need to store some un-structured or semi-structured data \(aka **JSON**\) somewhere.
-
-Unfortunately, it is not always so easy.
-
-If you are using a SQL database, think about postgres, you need to add a column or even a table to your database, you need to decide how to encode the data and to be sure that your drivers work correctly with this new type.
-
-If you are already using some kind of NoSQL database you may be a little luckier, but nevertheless, you should be sure that your database support all the operation you may need on JSON and still you need your team on-board to add a new collection/fields/column to your actual database.
-
-## A faster solution
-
-A faster solution could be to use RediSQL exploiting the [JSON1](https://www.sqlite.org/json1.html) extension.
-
-SQLite provides several interesting extensions and one of our favourites is JSON1 that allow an efficient and fast manipulation of JSON data, all inside a full SQL engine.
-
-We include this extension by default in RediSQL, so, if you are using RediSQL, you already have all the necessary function.
-
-## Desiderata
-
-In this example we assume that you are sharing your JSON data store between different part of the system, hence you need some form of hierarchy.
-
-We will create JSON object that will have names and then each object will live inside a namespace, the couple `(namespace, name)` will be unique while name could be repeated inside different namespaces.
-
-Then we will like to have a simple RediSQL interface like this one:
-
-```text
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB create_namespace noises
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB upsert_object noises animals '{"cat": "meeow", "dog": "woof", "goldfish": "..."}'
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB upsert_object noises humans '{"extrovert": "blablabla", "introverse": "bla", "programmer": "tap tap tap"}'
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB extract noises humans $.extrovert
-1) 1) "blablabla"
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB extract noises animals $.dog
-1) 1) "woof"
-127.0.0.1:6379>
-```
-
-Of course, we would also like to navigate complex JSONs and to add fields and values at will.
-
-```text
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB create_namespace foo
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB upsert_object foo bar '{"a": {"quite": ["", {"complex": {"json": [1, 2, "object"]}}, ""]}}'
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB extract foo bar $.a.quite[1].complex.json[2]
-1) 1) "object"
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB set foo bar $.a.quite[1].complex.json[3] '["even", "more", "complex"]'
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB extract foo bar $.a.quite[1].complex.json[3]
-1) 1) "[\"even\",\"more\",\"complex\"]"
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB extract foo bar $.a.quite[1].complex.json[3][0]
-1) 1) "even"
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB extract foo bar $.a.quite[1].complex.json[3][1]
-1) 1) "more"
-127.0.0.1:6379> REDISQL.EXEC_STATEMENT DB extract foo bar $.a.quite[1].complex.json[3][2]
-1) 1) "complex"
-```
-
-In this specific example we are only showing JSON, but keep in mind that the JSON field can be stored alongside the regular SQL fields as an extra field to hold any kind of unstructured data.
-
-Also please note how these APIs are quite pleasant to work with, they seem almost native to redis and thanks to redis-module we have the possibility to simply create more powerful commands.
-
-## Implementation
-
-Now that we know what we are trying to achieve let's proceed to the implementation that you will see is quite simple.
-
-Usually is a good idea to start from the data structure, and in our simple, but powerful, example, we need only a single table:
-
-```sql
-CREATE TABLE IF NOT EXISTS namespace (
- namespace TEXT PRIMARY KEY
-);
-
-CREATE TABLE IF NOT EXISTS json_data (
- namespace STRING,
- object_name STRING,
- data JSON,
- PRIMARY KEY (namespace, object_name),
- FOREIGN KEY(namespace) REFERENCES namespace(namespace) ON UPDATE CASCADE ON DELETE CASCADE
-);
-```
-
-We could have done everything with just `json_data` and without `namespace`, but that would force to have the namespace that always contains at least a single object and everything would become more complex.
-
-Now that we have our data structure we can proceed with the procedures that I have show you above:
-
-```sql
--- create_namespace
-INSERT INTO namespace VALUES(?1);
-
--- upsert_object
-INSERT OR REPLACE
- INTO json_data (namespace, object_name, data)
- VALUES (?1, ?2, json(?3))
-
--- get_object
-SELECT data
- FROM json_data
- WHERE namespace = ?1 AND
- object_name = ?2;
-
--- extract
-SELECT json_extract(data, ?3)
- FROM json_data
- WHERE namespace = ?1 AND
- object_name = ?2;
-
--- set
-UPDATE json_data
- SET data = json_set(data, ?3, json(?4))
- WHERE namespace = ?1 AND
- object_name = ?2 AND
- data != json_set(data, ?3, json(?4)); -- if no modification, don't change the object
-```
-
-In order to actually create those table here is an example on RediSQL that is more difficult to read but simpler to just copy and paste into the redis-cli.
-
-```text
-127.0.0.1:6379> REDISQL.CREATE_DB DB
-OK
-127.0.0.1:6379> REDISQL.EXEC DB "CREATE TABLE IF NOT EXISTS namespace (namespace TEXT PRIMARY KEY);"
-1) DONE
-2) (integer) 0
-127.0.0.1:6379> REDISQL.EXEC DB "CREATE TABLE IF NOT EXISTS json_data (namespace STRING, object_name STRING, data JSON, PRIMARY KEY (namespace, object_name));"
-1) DONE
-2) (integer) 0
-127.0.0.1:6379> REDISQL.CREATE_STATEMENT DB create_namespace "INSERT INTO namespace VALUES(?1);"
-OK
-127.0.0.1:6379> REDISQL.CREATE_STATEMENT DB upsert_object "INSERT OR REPLACE INTO json_data (namespace, object_name, data) VALUES (?1, ?2, json(?3))"
-OK
-127.0.0.1:6379> REDISQL.CREATE_STATEMENT DB get_object "SELECT data FROM json_data WHERE namespace = ?1 AND object_name = ?2;"
-OK
-127.0.0.1:6379> REDISQL.CREATE_STATEMENT DB extract "SELECT json_extract(data, ?3) FROM json_data WHERE namespace = ?1 AND object_name = ?2;"
-OK
-127.0.0.1:6379> REDISQL.CREATE_STATEMENT DB set "UPDATE json_data SET data = json_set(data, ?3, json(?4)) WHERE namespace = ?1 AND object_name = ?2 AND data != json_set(data, ?3, json(?4));"
-OK
-```
-
-Of course, there are a lot more commands in JSON1 API to use and explore, so I will simply [leave you the reference](https://www.sqlite.org/json1.html).
-
-I also prepare a simple node application which exposes this exact same interface via REST API, it is a single, ~500 LOC, file that you can find [here](https://github.com/RedBeardLab/JaaS/blob/master/index.js)
-
-Feel free to use the node application as a blueprint for your next project.
-
-## Recap
-
-In this brief tutorial, we have shown how quickly and easily is possible to build a fairly complex JSON store using Redis and RediSQL.
-
-Of course, similar structures, procedure and ideas can be used inside bigger structures and data table yielding powerful primitives for your application capable of sustain quite reasonable load without incurring in any extra operational cost.
-
-## Question?
-
-Of course, if you have any question on RediSQL either open a public issue or write me, siscia, a private email.
-
-Cheers,
-
-;\)
-
diff --git a/docs/blog/json-on-redis-via-redisql-sql-steroids-for-redis.md b/docs/blog/json-on-redis-via-redisql-sql-steroids-for-redis.md
deleted file mode 100644
index ba69ca6..0000000
--- a/docs/blog/json-on-redis-via-redisql-sql-steroids-for-redis.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# JSON on Redis via RediSQL, SQL steroids for Redis
-
diff --git a/docs/blog/node/README.md b/docs/blog/node/README.md
deleted file mode 100644
index 714f9cb..0000000
--- a/docs/blog/node/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# node
-
diff --git a/docs/blog/node/using-redisql-with-node.md b/docs/blog/node/using-redisql-with-node.md
deleted file mode 100644
index 7207824..0000000
--- a/docs/blog/node/using-redisql-with-node.md
+++ /dev/null
@@ -1,157 +0,0 @@
-# Using RediSQL with Node.js
-
-This tutorial will help you to get start to use RediSQL with Node.js
-
-In this tutorial we will scrape the content of Hacker News using their [API documented here](https://github.com/HackerNews/API).
-
-To communicate with Redis we will use the popular [node\_redis](https://github.com/NodeRedis/node_redis) library wich is the most suitable to communicate with Redis Modules and RediSQL. Other libraries can be used as well, but some more work will be necessary.
-
-To follow this tutorial you will need a modern \(> v4.0\) instance of Redis running RediSQL. You can obtain RediSQL from [our shop](https://payhip.com/b/Ri4d) or from the [github releases](https://github.com/RedBeardLab/rediSQL/releases).
-
-To load RediSQL is sufficient to pass it as argument to the redis-server: `./redis-server --loadmodule /path/to/redisql.so`
-
-The whole code show in this example is reachable [here.](https://github.com/RedBeardLab/rediSQL/blob/master/doc/docs/blog/node/hn.js)
-
-## Dependencies
-
-The first step is always to load the dependencies, for this little script we will need just 3 dependencies:
-
-1. `util` for formatting strings and promisify functions
-2. `axios` for making HTTP requests
-3. `redis` for actually talking with RediSQL
-
-```javascript
-const util = require('util');
-const axios = require('axios');
-const redis = require('redis');
-```
-
-## Connect to Redis and make it asycn/await ready.
-
-RediSQL works on a normal Redis instance, hence we need to create a connection to our Redis.
-
-In this tutorial we are going to use the async/await syntax that is not natively supported by `node_redis` but that it can easily added using `promisify`.
-
-We first create a new connection to Redis, just one that is enough, and then we promisify the `send_command` method in order to give us the nice async/await syntax.
-
-```javascript
-const client = redis.createClient();
-const send_command = util.promisify(client.send_command).bind(client);
-```
-
-## Polling HN API to get the newest items
-
-The API of HN provides an endpoint to retrieve the ID of the latest element added to the website. The ID are auto-incremental, hence if the ID = `n` exists, it means that also the ID = `n - 1` exists as well.
-
-However is necessary a little of cautions, indeed, is possible that some items are not yet available if they exists, in such case they return the string `null` instead of a JSON object. We take care of this with a simple loop and an `if`.
-
-```javascript
-const getMaxItem = async () => {
- let response = await axios.get("https://hacker-news.firebaseio.com/v0/maxitem.json");
- return response.data;
-};
-
-const getItem = async id => {
- let url = util.format("https://hacker-news.firebaseio.com/v0/item/%s.json", id);
- while (true) {
- let response = await axios.get(url);
- let data = response.data;
- if (data != "null") {
- return data;
- }
- }
-};
-```
-
-## The RediSQL structure
-
-Now that we have removed all the boilerplate let's get down to business. We need to:
-
-1. Create our database in RediSQL using the `REDISQL.CREATE_DB` command.
-2. Create the table that will contains our data using the `REDISQL.EXEC` command.
-3. Create the statement to actually insert the data into the database using the `REDISQL.CREATE_STATEMENT` command.
-
-We will store in our table the `id` of the item we are adding, the author of the item, when the item was posted on HN and finally the whole item as a JSON structure.
-
-The third step is not strictly needed, but it provide defense against SQL-injections, is more performant, and it is just a cleaner way to do it. The alternative would be to just use `REDISQL.EXEC` every time we want to add a new row to the database.
-
-All those steps are done in the `setUp` functions.
-
-```javascript
-const setUp = async () => {
- await send_command("REDISQL.CREATE_DB", ["HN"]).catch( err => console.log(err) );
- table = "CREATE TABLE IF NOT EXISTS hn(id integer primary key, author text, time int, item text);"
- await send_command("REDISQL.EXEC", ['HN', table]).catch( err => console.log(err) );
- stmt = "INSERT INTO hn VALUES(" +
- "json_extract(json(?1),'$.id')," +
- "json_extract(json(?1),'$.by')," +
- "json_extract(json(?1),'$.time')," +
- "json(?1));";
- await send_command("REDISQL.CREATE_STATEMENT", ['HN', 'insert_item', stmt])
- .catch( err => console.log(err) );
-};
-```
-
-Note how nicely the `JSON1` modules help us. It extracts for us the `id` of the item we want to add, the author of the item \(the `by` field\) and the time when the item was created. Without it we would be force to do that operation ourselves and pass more parameters to the statement.
-
-## Insert data into the database
-
-Finally let's make a simple function that will gets an item from HN and stores it into our database executing the statement we just created.
-
-```javascript
-const storeItem = async id => {
- let item = await getItem(id);
- console.log(item);
- await send_command("REDISQL.EXEC_STATEMENT", ['HN', 'insert_item', JSON.stringify(item)])
- .catch( err => console.log(err) );
-}
-```
-
-## Running it
-
-Now that we have all our piece in order we can just combine them together.
-
-We will start by creating the database, table and statements.
-
-Then a simple infinite loop will simply keep pooling the API. As soon as it detects new items available, it download them, and store those into the database.
-
-We also include a small throttling mechanism to avoid hammering the API, which is not needed using the `sleep` function.
-
-```javascript
-const sleep = (waitTimeInMs) => new Promise(resolve => setTimeout(resolve, waitTimeInMs));
-
-(async () => {
- setUp();
- let maxItem = await getMaxItem();
- while (true) {
- let newMaxItem = await getMaxItem();
- for (; maxItem < newMaxItem; maxItem += 1) {
- storeItem(maxItem);
- }
- await sleep(5 * 1000);
- }
-})()
-```
-
-## Concluding
-
-In this small example \(less than 60 lines\) we show how simple and easy is to get started with RediSQL. We just set up the database and table once, along with the statement and that's it. A much quicker set up, especially for testing, than using classical databases as `Postgres` or `MySQL`.
-
-Indeed is sufficient to set up the database following always the same steps:
-
-1. Create the database with `REDISQL.CREATE_DB $db_name`
-2. Create the schema inside your database `REDISQL.EXEC $db_name "CREATE TABLE ... etc"` and, if you want, the statements: `REDISSQL.CREATE_STATEMENT $db_name $statement_name "INSERT INTO ... etc"`
-3. Start inserting data, with or without a statement: `REDISQL.EXEC_STATEMENT` or simply `REDISQL.EXEC`
-
-Finally to query back the data is possible to use:
-
-* queries `REDISQL.QUERY $db_name "SELECT * FROM ..."`,
-* statements `REDISQL.CREATE_STATEMENT $db_name $query_name "SELECT * FROM ... WHERE foo = ?1"` and the `REDISQL.QUERY_STATEMENTS $db_name $query_name "paramenters"`
-* simple exec `REDISQL.EXEC $db_name "SELECT * FROM ... etc"`
-
-Feel free to explore our [references documentation](https://github.com/RedBeardLab/zeeSQL-doc/tree/a2b67b9d686c211c772ba26ddf89e17f8df9c4ab/docs/references/README.md) to understand better what capabilities RediSQL provides you.
-
-The complete code of this example is [available here.](https://github.com/RedBeardLab/rediSQL/blob/master/doc/docs/blog/node/hn.js)
-
-If you wish to see a similar tutorial for a different language, [open an issue on github.](https://github.com/RedBeardLab/rediSQL/issues/new)
-
diff --git a/docs/blog/performances.md b/docs/blog/performances.md
deleted file mode 100644
index 21db8b1..0000000
--- a/docs/blog/performances.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# Doubling the performances of RediSQL, SQL steroids for Redis.
-
-### RediSQL provides SQL steroids for Redis
-
-RediSQL is a redis module that embeds SQLite to provide full SQL capabilities to redis.
-
-The fastest introduction to RediSQL is [our homepage](https://github.com/RedBeardLab/zeeSQL-doc/tree/a2b67b9d686c211c772ba26ddf89e17f8df9c4ab/README.md)
-
-tl;dr; We double the performance of RediSQL switching to a zero-copy use of the input arguments.
-
-## Background
-
-During the development of RediSQL we always kept in mind performance, but only up to a degree.
-
-As Donal Knuth says "premature optimization is the root of all evil", but he also added, "Yet we should not pass up our opportunities in that critical 3%."
-
-For us not pass up opportunities was more about using the correct data structure and algorithm when and where they make sense.
-
-Overall the performances were quite good, on my old personal machine I could get 30k/inserts per second in a very simple table \(few numeric value and small texts\).
-
-This number is really small compared to Redis that can `SET` keys up to 100k/set per second, but we are also doing more work and we have always considered this figures good enough, at least as long as nobody complains.
-
-## The complains
-
-_Fortunately_ somebody [complains about the insertion rates](https://github.com/RedBeardLab/rediSQL/issues/29#issuecomment-382199622).
-
-His requirements were a little different from the assumption that we had when testing the performance. He needed to insert a lot of data ~100kB in each row. And to do it fast.
-
-First tests were not so good, showing just 2000 insertions per second. Definitely not good.
-
-## Looking for the causes
-
-Rust, the system language in which RediSQL is built, is peculiar in the management of memory.
-
-The type system must be sure that every reference that you are using is valid and that you will never deference stuff out of your memory space.
-
-Of course, this gives you a lot of safety but introduces quite a bit of complexity.
-
-Fortunately, there are ways to manage this complexity: is possible to trade complexity for performances or, the other way around, performances for complexity.
-
-High complexity with high performance means that you are using references \(pointers\) everywhere it is possible, so you never copy memory around if it is not necessary, you pass a pointer to that memory location and the type system assure you that it is safe to deference such pointer.
-
-Low complexity with low performance implies to copy areas of memory multiple times so that the type system is always happy. Instead of using a pointer to a piece of memory I will just copy everything I need and pass it around functions.
-
-Since the product was new, it made sense for us to get as low complexity as possible in such a way that it is possible to move faster understanding what our clients need and what we want to build.
-
-Until now.
-
-## The problem
-
-The biggest problem we identified was that we were copying all the input parameter, so when a client was sending as a request like `REDISQL.EXEC_STATEMENT DB insert 1 2 3` we were copying 6 \(insert\) + 3 \(1, 2, 3\) = 9 bytes of memory.
-
-\(Redis string are a little particular since they don't have a null '\0' terminator and carry along their size.\)
-
-Nobody will complain about copying just ~10 bytes of memory, especially using slab allocator it is still some work but it is quite fast to do.
-
-However, when we start to ingest 100k bytes this will really impact negatively the performance.
-
-## Need for Speed
-
-We could get away with just copying and freeing few bytes, especially using jemalloc, however as soon as the payload start increasing in size copying it every time started to impact negatively the performance of the module.
-
-Was time to buy some performances paying our share price in complexity.
-
-The process was a little complex because the data lived outside the Rust code, inside Redis itself. It was necessary to use `unsafe` code that in normal Rust you can avoid, but finally, we were able to see the Redis string as a slice \(array\) of chars and get a reference to it to pass around.
-
-## Result
-
-Before to release the code I obviously tested it. I used a c4.8xlarge from AWS.
-
-That machine before the patch could ingest 4000 request / second each of ~100k bytes. After the patch, it was able to get 8000 requests/second.
-
-Finally, the latency was pretty much the same with the 99.9 percentile at ~50 milliseconds.
-
-Xin, the gentleman who brought the issues to our attention, went even further setting several parameters available in `redis-benchmark`, notably the number of pipelined requests, and he reached 17000 requests per second.
-
-Being conservative we can claim that our works made redisql twice \(from 4000 req/s to 8000 req/s\) as fast at ingesting big amount of data.
-
-It is definitely necessary more testing to see the impact on different workloads, smaller payload. Fortunately, our preliminary results seem quite good.
-
-## Wrapping up
-
-We showed how was possible to get a lot of performance out of Rust and RediSQL switching to a zero copy approach.
-
-We also showed that our solution is very efficient, being able to ingest 800 MB / s of data without any sort of tuning.
-
-## Looking for beta tester
-
-We are looking also for tester for the PRO version of RediSQL, if you would like to test the PRO module without paying anything this is your occasion. You can either open an issues on github or write me \(siscia\) directly \(email on github\).
-
diff --git a/docs/blog/python/README.md b/docs/blog/python/README.md
deleted file mode 100644
index 6376748..0000000
--- a/docs/blog/python/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# python
-
diff --git a/docs/blog/python/using-redisql-with-python.md b/docs/blog/python/using-redisql-with-python.md
deleted file mode 100644
index 8051b9c..0000000
--- a/docs/blog/python/using-redisql-with-python.md
+++ /dev/null
@@ -1,173 +0,0 @@
-# using-redisql-with-python
-
-## Using RediSQL with Python
-
-This tutorial will help you to get start to use RediSQL with Python3.
-
-In this tutorial we will scrape the content of Hacker News using their [API documented here](https://github.com/HackerNews/API).
-
-We will use async python with [`asyncio`](https://docs.python.org/3/library/asyncio.html) to manage the event loop, [`aiohttp`](https://github.com/aio-libs/aiohttp/) to retrieve data from a public API and [`aioredis`](https://github.com/aio-libs/aioredis) to communicate with Redis.
-
-To follow this tutorial you will need a modern \(> v4.0\) instance of Redis running RediSQL. You can obtain RediSQL from [our shop](https://payhip.com/b/Ri4d) or from the [github releases](https://github.com/RedBeardLab/rediSQL/releases).
-
-To load RediSQL is sufficient to pass it as argument to the redis-server: `./redis-server --loadmodule /path/to/redisql.so`
-
-The whole code show in this example is reachable [here](https://github.com/RedBeardLab/rediSQL/blob/master/doc/docs/blog/python/src/simple.py) while we also created a [more sophisticate example](https://github.com/RedBeardLab/rediSQL/blob/master/doc/docs/blog/python/src/main.py) that stress much more the infrastructure to show that the bottle neck is not RediSQL but python and the network.
-
-### RediSQL and aioredis
-
-Most Redis library implements methods to call the standard Redis command like `SET` or `GET` or `RPOP` and aioredis is not an exception. This is generally a problem for Redis modules like RediSQL that instead defined their own commands. Fortunately most libraries usually expose also a lower level method that is used to implement most of the other Redis command. For what concern `aioredis` the lower level method that we can use is `.execute` that is implemented for both [single connection](https://aioredis.readthedocs.io/en/v1.2.0/api_reference.html#aioredis.RedisConnection.execute) and for a [pool of connections](https://aioredis.readthedocs.io/en/v1.2.0/api_reference.html#aioredis.ConnectionsPool.execute).
-
-Indeed is possible to implement all the other high level command using the low level `.execute` method.
-
-### RediSQL and redis
-
-While in this article we will talk about `aioredis`, another, not asynchronous library for using Redis with python is [`redis` library](https://pypi.org/project/redis/).
-
-In the `redis` library, the low level method is `.execute_command` and not `.execute` as for `aioredis`, other than this difference everything will apply just the same.
-
-### Creating a Redis connection
-
-The very first thing to do is to connect to Redis, in our case we use a connection pool that has the same interface of a simple connection but is backed by a pool of different connections.
-
-Creating the pool can be done like so:
-
-```python
-loop = asyncio.get_event_loop()
-conn_co = aioredis.create_pool('redis://localhost', minsize=10, maxsize=300, loop = loop)
-redis_co = asyncio.gather(*[conn_co])
-redis = loop.run_until_complete(redis_co)
-redis = redis[0]
-```
-
-and now the variable `redis` refer to a `aioredis` pool.
-
-When we will need a new connection, the pool will either give us an idle connection or open a new connection to Redis and give us the new one.
-
-### Setting up RediSQL
-
-Now that we have a pool of connections before to get the data into RediSQL we need to set up RediSQL. The first step is to create a database in RediSQL, this can be done easily with a call like
-
-```python
-await redis.execute("REDISQL.CREATE_DB", "HN")
-```
-
-this call will create a new RediSQL database and it will call it `HN`. If the key `HN` already exists the call will return an error.
-
-The next step is to create the structure to hold our data. In our case we will stick to something simple, a single table where we store the identifier of each item \(comment or story\) from HN, the author of such item, when the item was created and finally we will store the whole item as json structure in a text field.
-
-```python
-query = """CREATE TABLE IF NOT EXISTS hn(id integer primary key, author text, time int, item text);"""
-await redis.execute("REDISQL.EXEC", "HN", query)
-```
-
-Finally, since we storing data from the open internet inside our database, is wise to create an SQL statement to execute when doing an insert. The advantage of the statement is that is safe from SQL injections and is usually faster than re-compile the same query each time.
-
-To create a statement we can proceed as following:
-
-```python
-statement = "INSERT INTO hn VALUES(?1, ?2, ?3, json(?4));"
-await redis.execute("REDISQL.CREATE_STATEMENT", "HN", "insert_item", statement)
-```
-
-The last command create a new statement in the `HN` database and associate it with the string `insert_item` so that we can refer to it later.
-
-Also note the use of the `json(?4)` function, this is a function provided by the [JSON1 module](https://www.sqlite.org/json1.html) of SQLite and exposed by RediSQL that allow fast and efficient manipulation of json object. Using the JSON1 module is possible to have a lot of flexibility even inside a rigid SQL schema.
-
-Is usually wise to wrap those command into a `try: except:` block. Hence the final function will look like this:
-
-```python
-async def set_up(redis):
- try:
- await redis.execute("REDISQL.CREATE_DB", "HN")
- except Exception as e:
- print(e)
-
- query = """CREATE TABLE IF NOT EXISTS hn(id integer primary key, author text, time int, item text);"""
- try:
- await redis.execute("REDISQL.EXEC", "HN", query)
- except Exception as e:
- print(e)
-
- statement = "INSERT INTO hn VALUES(?1, ?2, ?3, json(?4));"
- try:
- await redis.execute("REDISQL.CREATE_STATEMENT", "HN", "insert_item", statement)
- except Exception as e:
- print(e)
-```
-
-### Running the loop
-
-Now that we have set up our environment we can go on and start to listen for new items posted on HN.
-
-The API provides a simple endpoint [`maxitem.json`](https://hacker-news.firebaseio.com/v0/maxitem.json) that returns the id of the latest item posted on HN. When the loop start we get maxitem and we store it into Redis. Then, when the maxitem get updated we download each of the items between the `old maxitem` and the `new maxitem`.
-
-We repeat the loop forever with a sleep to avoid hammering the API endpoint.
-
-```python
-async def main(redis, http):
- max_item = await get_max_item(http)
- await redis.execute("SET", "max-item", max_item)
- old_max_item = max_item
- while True:
- # we download the new maxitem
- max_item = await get_max_item(http)
- # if the new maxitem is actually bigger than the old one
- if max_item > old_max_item:
- # for each new item...
- for i in range(old_max_item, max_item):
- # we start a new Task that store the item in our database
- store = store_item(http, redis, str(i))
- asyncio.ensure_future(store)
- await redis.execute("SET", "max-item", max_item)
- old_max_item = max_item
- asyncio.sleep(1)
-```
-
-### Storing the data into RediSQL
-
-The last interesting bit is about the `store_item` function that is the one that download the item from the API and store it into RediSQL.
-
-```python
-async def store_item(http, redis, item_id):
- item = await get_hn_item(http, item_id)
- await store_on_db(redis, item)
-
-async def get_hn_item(http, item_id):
- while True:
- async with http.get(get_item_url(item_id)) as item:
- if 200 <= item.status < 300:
- data = await item.text()
- item = json.loads(data)
- if item:
- return item
-
-# In this function we store the item into the RediSQL database
-async def store_on_db(redis, item):
- try:
- # execute the statement passing the necessary parameters
- await redis.execute("REDISQL.EXEC_STATEMENT", "HN", "insert_item",
- item["id"], item.get("by", "_no_author_"), item["time"], json.dumps(item))
- except Exception as e:
- print(e)
- print(item["id"])
-```
-
-Downloading the item from the API is a simple HTTP GET request, then we simply check if it returns a successful status code and that it actually returns valid json.
-
-Finally to store the element into RediSQL we execute the statement that we have create before during the set up phase. Indeed we are executing the command `REDISQL.EXEC_STATEMENT HN insert_item $item_id $item_author $item_time $item`. This command will find inside the database `HN` the statement `insert_item` that we have previously defined as `INSERT INTO hn VALUES(?1, ?2, ?3, json(?4));`. Now the item id will be substituted to `?1`, the item author will substitute `?2`, the creation time of the item will take the place of `?3` and the whole json string of the item will substitute `?4`, finally the statement is executed agains RediSQL and its result returned.
-
-If everything went right, we have just added our first row to the database using async python.
-
-## Concluding
-
-In this tutorial we took a rather simple problem and we use it to show how to use RediSQL with async python.
-
-We started by setting up the database, we show how to create a database and tables inside it. Then we also show how to create statements to avoid SQL injections attack and improve the efficiency of repeated queries.
-
-Then we obtain the data from the Hacker News API and we show how to insert the data into RediSQL using the statement that we have just created.
-
-Hopefully this tutorial will be helpful and sufficient to get started, but if you have any question feel free to get in touch or to open an issue.
-
-If you wish to see a similar tutorial for a different language, [open an issue on github.](https://github.com/RedBeardLab/rediSQL/issues/new)
-
diff --git a/docs/blog/query-redis-on-two-attributes-using-zeesql.md b/docs/blog/query-redis-on-two-attributes-using-zeesql.md
deleted file mode 100644
index 6cd558d..0000000
--- a/docs/blog/query-redis-on-two-attributes-using-zeesql.md
+++ /dev/null
@@ -1,222 +0,0 @@
-# Query Redis on two attributes
-
-Somebody [asked on StackOverflow how to query Redis for two attributes](https://stackoverflow.com/questions/66310700/what-is-the-right-data-structure-to-use-in-redis-to-query-based-on-two-attribute/66555255#66555255).
-
-The use case is rather simple, the developer is storing a set of physical events, each of them has a start time and a finish time.
-
-We would like to know all the events that are in progress at any given time.
-
-The solution in raw Redis would involve creating two sorted sets, insert in one of those sets the events that start after the input time, insert in the other set all the events that end after the input time, and finally take the intersection of the two sets.
-The two sorted sets are not necessary anymore after we obtain our results, so they can be deleted.
-
-This solution works, but it forces the developers to express the logic and all the steps necessary to obtain your results.
-Using procedural programming (expressing the steps necessary to obtain a result, like in this case) is more error-prone and complex than using declarative programming (expressing the result that you want, no how-to obtain it).
-
-With [zeeSQL, SQL and search by value for Redis](https://zeesql.com) we can obtain the same result procedurally, without thinking or taking care of temporary sorted sets in Redis.
-
-In this case, we are going to use a zeeSQL secondary index.
-
-## The data format
-
-Building on top of the StackOverflow question, we might expect that each event has a unique id, a start time, an end time, and maybe the number of participants.
-
-We will express the two times as Unix timestamps.
-
-```
-127.0.0.1:6379> HMSET event:100 start_time 1615225944 end_time 1615657944 participants 30
-OK
-127.0.0.1:6379> HMSET event:101 start_time 1615225844 end_time 1615658944 participants 67
-OK
-127.0.0.1:6379> HMSET event:102 start_time 1615744344 end_time 1616003544 participants 52
-OK
-```
-
-Now is around ~1615402492 so only `event:100` and `event:101` are ongoing now.
-
-With zeeSQL the very first step would be to create a new database where to store the data, we can create a database and called it `EventsDB`.
-
-```
-127.0.0.1:6379> ZEESQL.CREATE_DB EventsDB
-1) 1) "OK"
-```
-
-After we have created the database, we can add a zeeSQL secondary index to it.
-zeeSQL will automatically add all the keys to the newly created secondary index.
-
-```
-127.0.0.1:6379> ZEESQL.INDEX EventsDB NEW PREFIX event:* TABLE events SCHEMA start_time INT end_time INT participants INT
-OK
-```
-
-With this command, we have created a new zeeSQL secondary index.
-
-The secondary index is associated with the SQL table `events` and stores all the Redis Hashes that start with the prefix `event:`.
-
-The index has 3 columns plus one.
-
-The first column is the primary key and stores the Redis key of the hashes, in this case, it will store the string `event:100`, `event:101`, and `event:102`.
-
-The other columns are the `start_time`, the `end_time`, and the `participants` column.
-Each one is an integer column and will store the respective fields of the Redis Hash.
-
-As soon as the index is created, zeeSQL automatically populates it with the Redis Hash already in Redis.
-
-We can immediately visualize the data.
-
-```
-127.0.0.1:6379> ZEESQL.EXEC EventsDB COMMAND "SELECT * FROM events"
-1) 1) "RESULT"
-2) 1) "key"
- 2) "start_time"
- 3) "end_time"
- 4) "participants"
-3) 1) "TEXT"
- 2) "INT"
- 3) "INT"
- 4) "INT"
-4) 1) "event:102"
- 2) (integer) 1615744344
- 3) (integer) 1616003544
- 4) (integer) 52
-5) 1) "event:101"
- 2) (integer) 1615225844
- 3) (integer) 1615658944
- 4) (integer) 67
-6) 1) "event:100"
- 2) (integer) 1615225944
- 3) (integer) 1615657944
- 4) (integer) 30
-```
-
-Now we can try to answer the original question.
-
-What are the events that are on-going now, or at any given time?
-
-```
-127.0.0.1:6379> ZEESQL.EXEC EventsDB COMMAND "SELECT key FROM events WHERE start_time < ?1 AND end_time > ?1" ARGS 1615402492
-1) 1) "RESULT"
-2) 1) "key"
-3) 1) "TEXT"
-4) 1) "event:101"
-5) 1) "event:100"
-```
-
-Simple.
-
-No other data structure to manage, just a simple SQL query to write.
-
-## Use the standard SQLite time functions
-
-You might not know what time it is now, in this case, you can use the standard SQLite functions.
-
-```
-127.0.0.1:6379> ZEESQL.EXEC EventsDB COMMAND "SELECT key FROM events WHERE start_time < strftime('%s', 'now') AND end_time > strftime('%s', 'now')"
-1) 1) "RESULT"
-2) 1) "key"
-3) 1) "TEXT"
-4) 1) "event:101"
-5) 1) "event:100"
-```
-
-Or maybe you need to answer more complex queries, like the original one.
-
-We might want to know all the events that are on-going at the moment and will finish in one week.
-
-We don't have any of them in our Redis instance, but we can add one.
-
-```
-127.0.0.1:6379> HMSET event:103 id 103 start_time 1615225944 end_time 1616176492 participants 22
-OK
-127.0.0.1:6379> ZEESQL.EXEC EventsDB COMMAND "SELECT count(*) FROM events"
-1) 1) "RESULT"
-2) 1) "count(*)"
-3) 1) "INT"
-4) 1) (integer) 4
-```
-
-zeeSQL automatically adds the new event to the secondary index.
-
-And now we can express our more complex query:
-
-```
-127.0.0.1:6379> ZEESQL.EXEC EventsDB COMMAND "SELECT key FROM events WHERE start_time < strftime('%s', 'now') AND end_time > strftime('%s', 'now', '+7 day')"
-1) 1) "RESULT"
-2) 1) "key"
-3) 1) "TEXT"
-4) 1) "event:103"
-```
-
-## Using all SQL
-
-At this point, is useful to clarify that in zeeSQL you can use all the SQL provided by SQLite.
-
-For instance, you may want to know how many people are registered for all the events that are ongoing right now.
-
-```
-127.0.0.1:6379> ZEESQL.EXEC EventsDB COMMAND "SELECT key, participants FROM events WHERE start_time < ?1 AND end_time > ?1" ARGS 1615402492
-1) 1) "RESULT"
-2) 1) "key"
- 2) "participants"
-3) 1) "TEXT"
- 2) "INT"
-4) 1) "event:101"
- 2) (integer) 67
-5) 1) "event:100"
- 2) (integer) 30
-6) 1) "event:103"
- 2) (integer) 22
-127.0.0.1:6379> ZEESQL.EXEC EventsDB COMMAND "SELECT SUM(participants) FROM events WHERE start_time < ?1 AND end_time > ?1" ARGS 1615402492
-1) 1) "RESULT"
-2) 1) "SUM(participants)"
-3) 1) "INT"
-4) 1) (integer) 119
-```
-
-## Getting data as JSON
-
-The last interesting step that I would like to make you aware, it is how to return data as JSON.
-
-Working with Redis nested arrays is not always easy, and sometimes JSON is more convenient to deserialize.
-
-In zeeSQL, you only need to add the `JSON` flag, and your result will be returned as a JSON object.
-
-```
-root@96ad2f8bdfe5:/data# redis-cli ZEESQL.EXEC EventsDB COMMAND "SELECT key, participants FROM events WHERE start_time < ?1 AND end_time > ?1" JSON ARGS 1615402492 | jq
-{
- "rows": [
- {
- "key": "event:101",
- "participants": 67
- },
- {
- "key": "event:100",
- "participants": 30
- },
- {
- "key": "event:103",
- "participants": 22
- }
- ],
- "number_of_rows": 3,
- "columns": {
- "key": "TEXT",
- "participants": "INT"
- }
-}
-```
-
-Here we pipe the result in `jq` for easier visualization.
-
-## Conclusions
-
-zeeSQL solves a lot of problems when working with Redis.
-
-In this particular case simplify the querying of data using a zeeSQL secondary index.
-This avoided the need to keeping separated indexes in Redis that can become cumbersome and error-prone.
-
-This particular use case could have been solved without any Redis data structure, but simply using zeeSQL as the main datastore.
-
-All the standard SQL commands are available like `SELECT`, `INSERT`, `UPDATE`, and `DELETE`.
-
-zeeSQL by default works in-memory, like Redis, and it is blazing fast.
-Moreover, being completely integrated with Redis, zeeSQL supports AOF and RDB persistency.
diff --git a/docs/blog/release_0.5.0.md b/docs/blog/release_0.5.0.md
deleted file mode 100644
index a946740..0000000
--- a/docs/blog/release_0.5.0.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# Release 0.5.0 of RediSQL, SQL steroids for Redis
-
-### RediSQL, Redis on SQL steroids.
-
-RediSQL is a Redis module that provides full SQL capabilities to Redis, it is the simplest and fastest way to get an SQL database up and running, without incurring in difficult operational issues and it can scale quite well with your business.
-
-The fastest introduction to RediSQL is [our homepage](https://redisql.com)
-
-**tl;dr;** This release does not introduce any new features but it does improve the performances significantly. Moreover, we are releasing for multiple platforms, notably for ARMv7 \(Rasberry PI\), for CentOS7 \(Linux AMI on AWS\) and of course for Linux generic. Finally, we introduce also the TRIAL executable which can be freely downloaded and used, it provides all the functionality of the PRO version but it is limited for evaluation purposes, after ~2 hours it will shut down itself.
-
-## Performance Improvement ~20%
-
-We are registering an improvement in performance of roughly 20% with a similar load.
-
-Of course, performance inside an SQL database varies a lot depending on the query you are executing.
-
-In our evaluation, we are focusing on a simple query that inserts or updates values in the database.
-
-We decided to focus on `insert`s because is the simplest write operation, hence it cannot be distributed to different instances, and the performance of the single instance will limit the performance of the overall system.
-
-However, `insert` operations, need to allocate new memory, the allocator used by SQLite is very efficient but we still wanted to see what would happen without the need of allocation, hence we tested also `update`s
-
-We are seeing an improvement of roughly the 20% in `insert`/`upsert` throughput.
-
-The increase in throughput is driven by the switch to a zero-copy architecture.
-
-In Rust, the language in which RediSQL is written is usual to start dealing with lifetime issues simply by copying memory, this, of course, comes with a penalty in performances.
-
-However, as long as this performance penalty is not an issue is better to just leave as it is and work on the more important parts of the project. For one of our user it was a problem and so we decide to fix it by bringing performance improvements to all. [More about this story here.](performances.md)
-
-## Releases
-
-Rust produce in general static linked objects, so everything you need is already inside your object and you do not depends on any external library that must be installed in your host system.
-
-This has several advantages, as long as the architecture of your host is the correct one your executable will most likely run.
-
-There is an exception to that, `libc` given its ubiquity and size is compiled dynamically, so your object will need it to be present in your host machine. Which usually is not an issue.
-
-Unfortunately is some machine `libc` is present in an older version that the one we are expecting, so the module will not be able to run.
-
-Very old systems have this issues as well as CentOS 7 and the Linux AMI on AWS.
-
-Unfortunately, cross-compile for a different version of glibc is not as simple as it may seem, but we finally manage :\)
-
-## Trial
-
-Finally, we decide to provide open access to the PRO version for evaluation purposes.
-
-Hence we created a third release that is called TRIAL.
-
-The releases are exactly the same as the PRO one, except that it shuts itself down after ~2 hours.
-
-It is supposed to let you test the PRO version before to commit to buy it, still, you have 14 days of money back guarantee if you don't like the product.
-
-Clearly, the TRIAL version is not supposed to be used in production.
-
-## End
-
-As always you can find all the public releases on the [github page](https://github.com/RedBeardLab/rediSQL/releases/tag/v0.5.0), you can openly access the same public release on the [open page of our shop](https://plasso.com/s/epp4GbsJdp-redisql/) or you can buy the complete PRO package [signing up in the shop](https://plasso.com/s/epp4GbsJdp-redisql/signup/).
-
-Remember that signing up for the PRO product also provide you free support from us, the creator of the project, so that we can point you to the right direction and suggest the best use cases for our product.
-
diff --git a/docs/blog/release_0.6.0.md b/docs/blog/release_0.6.0.md
deleted file mode 100644
index 382afe5..0000000
--- a/docs/blog/release_0.6.0.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# Release 0.6.0 of RediSQL, SQL steroids for Redis
-
-### RediSQL, Redis on SQL steroids.
-
-RediSQL is a Redis module that provides full SQL capabilities to Redis, it is the simplest and fastest way to get an SQL database up and running, without incurring in difficult operational issues and it can scale quite well with your business.
-
-The fastest introduction to RediSQL is [our homepage](https://redisql.com)
-
-**tl;dr** This release does not introduce new commands, but it provides a SQLite virtual table implementation that allows making SQL queries against Redis Hashes. The release is important because set the foundation to write more complex commands or SQLite functions. Possible ideas could be SQLite functions that append to a list or to a stream, these functions could be used inside triggers to generate an event log of all the operation that happened to a particular table.
-
-## Virtual Table
-
-Inside RediSQL is now possible to use the virtual table: [REDISQL\_TABLES\_BRUTE\_HASH](../references.md#redisql_tables_brute_hash).
-
-This virtual table allows to only query Redis hashes that follow a common structure.
-
-The understood structure is:
-
-```text
-HSET $tableName:$id $col1 $val1 $col2 $val2 ... $colN $valN
-```
-
-Where the `$col`s are constant in the hashes and, of course, the `$val`s change from row to row.
-
-In order to create a [REDISQL\_TABLES\_BRUTE\_HASH](../references.md#redisql_tables_brute_hash) the syntax is the following:
-
-```text
-CREATE VIRTUAL TABLE funny_cats USING REDISQL_TABLES_BRUTE_HASH($tableName, $col1, $col2, ..., $colN);
-```
-
-Please note that the first parameter of the virtual table is not, as we could expect, the first column of the table, but is the name of hashes that we want to use as table, of course without specifying any `$id`.
-
-Also note that is pointless to provide a type to the columns since Redis does store only strings inside the hashes, hence you will get only strings from the virtual table as well.
-
-What you can do to get numbers, integer or floats, is to exploit the [`CAST`](https://www.sqlite.org/lang_expr.html#castexpr) capabilities of SQLite.
-
-You can find examples of this feature in [the documentation.](../references.md#redisql_tables_brute_hash)
-
-Let me make clear that this virtual table does **not** implements updates, inserts or deletes, at the moment you can only query this type of virtual tables.
-
-The implementation of update and inserts and deletes should not pose significant challenges.
-
-## Importance of this release
-
-This release is extremely important for architectural reasons inside the module itself.
-
-In order to implement the above virtual table was necessary to keep a pointer to an internal structure of Redis that actually allow calling any Redis command from inside a module.
-
-Including this pointer into the RediSQL structures make possible to call arbitrary Redis commands.
-
-This opens the gate to quite interesting features, as an example, imagine to be able to call `LPUSH` or `XADD` inside a trigger.
-
-This will allow to log every operation you are doing against your dataset. You could replay them later in a different instance of RediSQL or maybe also against a different database.
-
-You could write all you operation very fast in memory using RediSQL and when you have enough of them write them to disk against PostgreSQL, MySQL or any other database.
-
-## End
-
-As always you can find all the public releases on the [github page](https://github.com/RedBeardLab/rediSQL/releases/tag/v0.5.0), you can openly access the same public release on the [open page of our shop](https://plasso.com/s/epp4GbsJdp-redisql/) or you can buy the complete PRO package [signing up in the shop](https://plasso.com/s/epp4GbsJdp-redisql/signup/).
-
-Remember that signing up for the PRO product also provide you free support from us, the creator of the project, so that we can point you to the right direction and suggest the best use cases for our product.
-
diff --git a/docs/blog/release_0.7.0.md b/docs/blog/release_0.7.0.md
deleted file mode 100644
index a042e35..0000000
--- a/docs/blog/release_0.7.0.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# Release 0.7.0 of RediSQL, SQL steroids for Redis
-
-#### RediSQL, Redis on SQL steroids.
-
-RediSQL is a Redis module that provides full SQL capabilities to Redis, it is the simplest and fastest way to get an SQL database up and running, without incurring in difficult operational issues and it can scale quite well with your business.
-
-The fastest introduction to RediSQL is [our homepage](https://redisql.com)
-
-**tl;dr** This release introduce a new commands [`REDISQL.COPY`](../references.md#redisqlcopy) that copy the content from a source database into a destination database.
-
-## Motivations
-
-Since from the very first release and the very first user, we have been asked a lot about the possibility to copy SQLite database into disk or into memory.
-
-It is definitely an useful feature, suppose to already have the database and you simply want to make it available to some of your services.
-
-We wait a bit before to incorporate on RediSQL such capabilities, mostly because we weren’t sure about the API to offer.
-
-Finally we decide to pull the trigger and we implemented a new command [`REDISQL.COPY`](../references.md#redisqlcopy).
-
-The [`REDISQL.COPY`](../references.md#redisqlcopy) command takes two parameters as input, a `source` database and a `destination` database and it overwrite the content of the `source` database into the `destination` database.
-
-It is important to understand that the content of the destination database is completely lost after a `REDISQL.COPY`
-
-The [`REDISQL.COPY`](../references.md#redisqlcopy) command takes as input two databases, both of them must be created using the `REDISQL.CREATE_DB` command. This API allows several use cases that are quite interesting.
-
-1. Make a backup/copy of your database
-2. Split load to multiple threads
-3. Move a database from a in-memory database to a disk-based database
-4. Move a database from a disk-based database to a in-memory database
-
-### Few Examples
-
-I will show briefly some examples of those use cases.
-
-Making a backup/copy
-
-Backups are already provided by the internal of Redis itself, all the database will be copied into the RDB files. However you may be interested in having just a copy of your database, so that you can archive it in a different way, or just explore it offline.
-
-Suppose you have your database `DB` running with some table and some data:
-
-> REDISQL.CREATE\_DB DB OK REDISQL.EXEC DB "CREATE TABLE foo\( ... \)" DONE 0L REDISQL.EXEC DB "INSERT INTO foo VALUES \( ... \)" DONE 1L
-
-Now you will like to transfer that same database into a file, so that you can archive it or analyze it.
-
-The first step would be to create another database backed by a file.
-
-> REDISQL.CREATE\_DB BACKUP "/home/foo/backup.sqlite" OK
-
-In this way we have created a new, empty database that is backed by a file.
-
-You will see the small file `home/foo/backup.sqlite`
-
-At this point you just need to make a copy of it.
-
-> REDISQL.COPY DB BACKUP OK
-
-Now the file `/home/foo/backup.sqlite` will contains all the data that were originally on the `DB` database.
-
-### Load a database
-
-Now, suppose that the data you want to serve via RediSQL are already inside a SQLite database, or suppose that you are recovering from a previous backup. However you would like to have the database in memory, since we know the load will be quite high.
-
-Assuming your database is stored into `/home/foo/recover.sqlite` we start by loading it, and then move it into an in-memory database, and finally we can also delete the database we used for recovering.
-
-> REDISQL.CREATE\_DB TO\_RECOVER "/home/foo/recover.sqlite" OK REDISQL.CREATE\_DB DB OK REDISQL.COPY TO\_RECOVER DB OK DEL TO\_RECOVER OK
-
-At this point we have only one database `DB` that is an in-memory one and we have used the `TO_RECOVER` database to load the recovering file.
-
-### Spread load
-
-Another quite interesting use case is about load spreading.
-
-Suppose to have a read-only database `DB1` that makes quite complex and long queries, if that start to be a problem we could spread the load into two identical databases.
-
-> REDISQL.CREATE\_DB DB2 OK REDISQL.COPY DB1 DB2 OK
-
-Now we have the same dataset in two different database, each one of them with its own thread of execution. This will allow us to round robin between the two databases and achieve smaller latencies.
-
-## End
-
-With this post we showed the newest features of RediSQL.
-
-The product start to be quite stable, more performance test will come in the next release but we don’t plan to touch the API.
-
-If we don’t change the API the next release will be the v1.0.0
-
-As always you can find all the public releases on the [github page](https://github.com/RedBeardLab/rediSQL/releases/tag/v0.5.0), you can openly access the same public release on the [open page of our shop](https://plasso.com/s/epp4GbsJdp-redisql/) or you can buy the complete PRO package [signing up in the shop](https://plasso.com/s/epp4GbsJdp-redisql/signup/).
-
-Remember that signing up for the PRO product also provide you free support from us, the creator of the project, so that we can point you to the right direction and suggest the best use cases for our product.
-
diff --git a/docs/blog/release_0.8.0.md b/docs/blog/release_0.8.0.md
deleted file mode 100644
index 5fdd481..0000000
--- a/docs/blog/release_0.8.0.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# Release 0.8.0 of RediSQL, SQL steroids for Redis
-
-### RediSQL, Redis on SQL steroids.
-
-RediSQL is a Redis module that provides full SQL capabilities to Redis, it is the simplest and fastest way to get an SQL database up and running, without incurring in difficult operational issues and it can scale quite well with your business.
-
-The fastest introduction to RediSQL is [our homepage](https://redisql.com)
-
-**tl;dr** This release introduce two new commands [`REDISQL.QUERY.INTO[.NOW]`](../references.md#redisqlqueryinto) and [`REDISQL.QUERY_STATEMENT.INTO[.NOW]`](../references.md#redisqlquery_statementinto). The new commands behave similary to `REDISQL.QUERY` and `REDISQL.QUERY_STATEMENT` but they [`XADD`](https://redis.io/commands/xadd) the results to a [Redis Stream](https://redis.io/topics/streams-intro) passed as first argument.
-
-## Motivation
-
-Being able to write the result of a query into a stream opens several possibilities. First off all allow to easily cache the result of expensive queries. Then, it separate the creation of a result with its consuption which is a very important step forward especially for big results.
-
-Indeed, while the computation of a query is not done by the main redis thread but it is off-load to another thread to allow redis to keep serving the client. Returning the result must be done in the main Redis thread. Hence a long result can take a lot of time to be returned to the client and in that time Redis cannot serve other requests. Writing the result into a stream make it much more efficient use of the main Redis thread time.
-
-Moreover, on the other side of the network, a small consumer might not expect a big result and could be overlwhelmed by the size.
-
-In standard databases this problem is usually solved using cursors, however Redis itself does not provide this facility. Redis provide lists, but they are simply flat list and can store only strings, it would be complex to create the cursors on top of them.
-
-The streams however are a better fit. While also them can store only strings, they store them into entries, which are small key-values objects. Each entry represent a row of our result set. Where we encode the column name and type into the key, and we use the value field to store the actual value of the column.
-
-An example will be easier to follow.
-
-## How to use
-
-An example of `REDISQL.QUERY.INTO` is the following:
-
-```text
-REDISQL.QUERY.INTO result_stream DB "SELECT foo, bar FROM baz WHERE n > 42"
-```
-
-The command will execute the query `SELECT foo, bar FROM baz WHERE n > 42` agains the database `DB` and it will `XADD` each row of the result to the stream `result_stream`.
-
-If the result is empty, the command will return `["DONE", 0]` to the Redis client.
-
-If the result is not empty, the command will return, to the Redis client, the name of the stream used \(hence `result_stream` in this example\) along with the first ID added and the last ID added and the size of the cursor \(the number of entries added to the stream.\)
-
-In the following example we start by creating a database, then we create a new table `foo` in the database, and we store 4 rows into the table.
-
-Then we use the new `REDISQL.QUERY.NOW` command to store the result of the query `SELECT * FROM foo` agains the database `DB` in the stream `{DB}:all_foo`.
-
-```text
-127.0.0.1:6379> REDISQL.CREATE_DB DB
-OK
-127.0.0.1:6379> REDISQL.EXEC DB "CREATE TABLE foo(a int, b int);"
-1) DONE
-2) (integer) 0
-127.0.0.1:6379> REDISQL.EXEC DB "INSERT INTO foo(a) VALUES(1)"
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC DB "INSERT INTO foo VALUES(3, 4)"
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC DB "INSERT INTO foo VALUES(5, 6)"
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.EXEC DB "INSERT INTO foo VALUES(10, 19)"
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.QUERY.INTO {DB}:all_foo DB "SELECT * FROM foo"
-1) 1) "{DB}:all_foo"
- 2) "1549811093979-0"
- 3) "1549811093979-3"
- 4) (integer) 4
-127.0.0.1:6379> XRANGE {DB}:all_foo - +
-1) 1) "1549811093979-0"
- 2) 1) "int:a"
- 2) "1"
- 3) "null:b"
- 4) "(null)"
-2) 1) "1549811093979-1"
- 2) 1) "int:a"
- 2) "3"
- 3) "int:b"
- 4) "4"
-3) 1) "1549811093979-2"
- 2) 1) "int:a"
- 2) "5"
- 3) "int:b"
- 4) "6"
-4) 1) "1549811093979-3"
- 2) 1) "int:a"
- 2) "10"
- 3) "int:b"
- 4) "19"
-```
-
-The first thing to notice is that the stream entity contains both the type of the column and it's name as well. The format is `$column_type:$column_name`. This is necessary because stream support only strings.
-
-In the example above the string `int:a` means that, for this row, the column `a` is of type `int`. Usually the type of a column is constant, however, it may be null, in that case it would be something like: `null:b`.
-
-Another interesting thing to notice is the name of the stream used which can look peculiar. Indeed it is the same name of the database `DB`, between curly braces `{DB}` and then a useful identifier `{DB}:all_foo`. The name of the stream can be any name, so is not important to use this schema, however this schema is useful if you use redis cluster.
-
-Indeed, both keys, the target stream `{DB}:all_foo` and the source database `DB`, need to be on the same redis cluster node. Since redis use the part of the key between curly bracket to decide in which node a key should resize, this schema allow us to make sure that this invariant is always respected.
-
-Moreover this schema is also quite nice, allowing with a glance to know what stream refer to what database. But again, it is not necessary at all.
-
diff --git a/docs/blog/release_0.9.0.md b/docs/blog/release_0.9.0.md
deleted file mode 100644
index e8a5b5e..0000000
--- a/docs/blog/release_0.9.0.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# Release 0.9.0 of RediSQL, SQL steroids for Redis
-
-### RediSQL, Redis on SQL steroids.
-
-RediSQL is a Redis module that provides full SQL capabilities to Redis, it is the simplest and fastest way to get an SQL database up and running, without incurring in difficult operational issues and it can scale quite well with your business.
-
-The fastest introduction to RediSQL is [our homepage](https://redisql.com)
-
-**tl;dr** This release introduce one simple new command `REDISQL.STATISTICS`. The new command returns the amount of time each command is been called and how many of those calls were successfully and how many returned errors. The command does not introduce noticeable slowdowns.
-
-This release is the smallest, however it provide the foundation for the next major releases.
-
-## Motivation
-
-The infrastucture behind the `REDISQL.STATISTICS` commands is needed for the next major release of RediSQL.
-
-Moreover it provides an useful tool for the administrator of the instance allowing them to spot inefficiencies.
-
-## How to use
-
-Just invoke the command without any arguments to get an array of all the counters, extra arguments are ignored for the moment.
-
-After using RediSQL for few commands, the output of `REDISQL.STATISTICS` could be the following.
-
-```text
-127.0.0.1:6379> REDISQL.STATISTICS
- 1) 1) "CREATE_DB"
- 2) (integer) 1
- 2) 1) "CREATE_DB OK"
- 2) (integer) 1
- 3) 1) "CREATE_DB ERR"
- 2) (integer) 0
- 4) 1) "EXEC"
- 2) (integer) 4
- 5) 1) "EXEC OK"
- 2) (integer) 4
- 6) 1) "EXEC ERR"
- 2) (integer) 0
- 7) 1) "QUERY"
- 2) (integer) 0
- 8) 1) "QUERY OK"
- 2) (integer) 0
- 9) 1) "QUERY ERR"
- 2) (integer) 0
-10) 1) "QUERY.INTO"
- 2) (integer) 0
-11) 1) "QUERY.INTO OK"
- 2) (integer) 0
-12) 1) "QUERY.INTO ERR"
- 2) (integer) 0
-13) 1) "CREATE_STATEMENT"
- 2) (integer) 3
-14) 1) "CREATE_STATEMENT OK"
- 2) (integer) 1
-15) 1) "CREATE_STATEMENT ERR"
- 2) (integer) 2
-16) 1) "EXEC_STATEMENT"
- 2) (integer) 2
-17) 1) "EXEC_STATEMENT OK"
- 2) (integer) 2
-18) 1) "EXEC_STATEMENT ERR"
- 2) (integer) 0
-19) 1) "UPDATE_STATEMENT"
- 2) (integer) 2
-20) 1) "UPDATE_STATEMENT OK"
- 2) (integer) 1
-21) 1) "UPDATE_STATEMENT ERR"
- 2) (integer) 1
-22) 1) "DELETE_STATEMENT"
- 2) (integer) 0
-23) 1) "DELETE_STATEMENT OK"
- 2) (integer) 0
-24) 1) "DELETE_STATEMENT ERR"
- 2) (integer) 0
-25) 1) "QUERY_STATEMENT"
- 2) (integer) 0
-26) 1) "QUERY_STATEMENT OK"
- 2) (integer) 0
-27) 1) "QUERY_STATEMENT ERR"
- 2) (integer) 0
-28) 1) "QUERY_STATEMENT.INTO"
- 2) (integer) 0
-29) 1) "QUERY_STATEMENT.INTO OK"
- 2) (integer) 0
-30) 1) "QUERY_STATEMENT.INTO ERR"
- 2) (integer) 0
-31) 1) "COPY"
- 2) (integer) 0
-32) 1) "COPY OK"
- 2) (integer) 0
-33) 1) "COPY ERR"
- 2) (integer) 0
-```
-
-The `CERATE_DB` line means that the `REDISQL.CREATE_DB` command is been invoked once. The `CREATE_DB OK` lines means that the command succeeded once.
-
-Let's analyze the `CREATE_STATEMENT` lines as well.
-
-```text
-13) 1) "CREATE_STATEMENT"
- 2) (integer) 3
-```
-
-This line says that the command is been invoked 3 times.
-
-```text
-14) 1) "CREATE_STATEMENT OK"
- 2) (integer) 1
-```
-
-The next line specify that the commands completed successfully 1 time out of 3.
-
-```text
-15) 1) "CREATE_STATEMENT ERR"
- 2) (integer) 2
-```
-
-The last line confirms that out of the 3 times we invoked the command, 2 of them failed for some reason.
-
-Of course the math need to check out and the sum of successful and erroneous runs should match with the number of invocation.
-
-## Implementation
-
-This command is implemented with atomic counters, they are fast and provide a simple and easy way to manage concurrent access.
-
-We careful tested the performance to make sure that the slowdown introduces by the counter is not noticeable.
-
diff --git a/docs/blog/zeeSQL-updates-to-SQLite3-35.md b/docs/blog/zeeSQL-updates-to-SQLite3-35.md
deleted file mode 100644
index 0317ee3..0000000
--- a/docs/blog/zeeSQL-updates-to-SQLite3-35.md
+++ /dev/null
@@ -1,119 +0,0 @@
-
-# zeeSQL now runs on SQLite 3.35
-
-SQLite is the SQL workhorse and engine that powers zeeSQL.
-
-SQLite was chosen since it is fast, reliable, simple to operate, widely available, widely known in the tech community, and very well maintained.
-
-The latest release of SQLite (3.35) is being exciting.
-SQLite 3.35 introduces three really interesting features.
-[The release notes are available on the SQLite website.](https://sqlite.org/releaselog/3_35_0.html)
-
-zeeSQL version 1.0.1 includes SQLite 3.35 with all the improvements listed above.
-
-zeeSQL version 1.0.1 is available as docker container [(redbeardlab/zeesql:1.0.1)](https://hub.docker.com/layers/redbeardlab/zeesql/1.0.1/images/sha256-6a1aafcb6d1285355af0c75737aa4920a4365cb03f31b1ea3f1160135079e807?context=explore) and as [direct download (https://zeesql.com/releases/v1.0.1/zeesql.so)](https://zeesql.com/releases/v1.0.1/zeesql.so)
-
-## SQLite with RETURNING
-
-RETURNING is a novel clause for `INSERT`, `UPDATE` and, `DELETE` statements.
-
-It appears after the main statement and specifies a set of columns, or expressions, to return after the insertion, update or delete of rows.
-
-The RETURNING clauses returns a row, for each row that the main statement insert, update or deletes.
-
-In the case of zeeSQL, the RETURNING clauses can be invaluable.
-
-Suppose you are letting zeeSQL generate random IDs for your columns, without the RETURNING clauses, you have no way to know what ID has been generated.
-The only way would be to query back those rows.
-With the `RETURNING` clauses it is possible to insert those rows and having zeeSQL returns the random ID generated.
-
-```
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "create table random_id(id STRING DEFAULT (hex(randomblob(16))), name STRING, score INT);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "insert into random_id(name, score) values('john', 3),('mary', 4) RETURNING id"
-1) 1) "RESULT"
-2) 1) "id"
-3) 1) "TEXT"
-4) 1) "A3400CE9270D6F7AFAE3FA1F09DD5798"
-5) 1) "0FC0FA5557C3F873A80F6949EF01AEA0"
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from random_id;"
-1) 1) "RESULT"
-2) 1) "id"
- 2) "name"
- 3) "score"
-3) 1) "TEXT"
- 2) "TEXT"
- 3) "INT"
-4) 1) "A3400CE9270D6F7AFAE3FA1F09DD5798"
- 2) "john"
- 3) (integer) 3
-5) 1) "0FC0FA5557C3F873A80F6949EF01AEA0"
- 2) "mary"
- 3) (integer) 4
-```
-
-The RETURNING clause it is maybe more useful for UPDATEs and DELETEs.
-
-Suppose you are deleting different some old values based on a timestamp, maybe a cache, you might be interested in knowing which element you removed.
-Either you run two queries, the first to get all the rows you are going to delete and the second to delete them.
-Or you use the RETURNING clauses, to delete the rows and get them at the same time.
-
-```
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "create table cache(key STRING, value STRING, TTL INT);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "insert into cache(key, value, TTL) VALUES('a', 'aaa', 3),('b', 'bbb', 4),('c', 'ccc', 2), ('d', 'ddd', 0);"
-1) 1) "DONE"
-2) 1) (integer) 4
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "DELETE FROM cache WHERE TTL < 3 RETURNING key, value;"
-1) 1) "RESULT"
-2) 1) "key"
- 2) "value"
-3) 1) "TEXT"
- 2) "TEXT"
-4) 1) "c"
- 2) "ccc"
-5) 1) "d"
- 2) "ddd"
-```
-
-These are just a tiny sample of what is possible with the RETURNING clauses, your application can benefit from it a lot.
-
-Also, the RETURNING clauses, break a small hidden assumption in zeeSQL.
-
-Now also statements that are not `READ ONLY` can return rows.
-This means that we have no constraints anymore of the statements and command that can use the [`INTO $stream`][into] clauses in zeeSQL.
-
-More information about the RETURNING clauses is available on the [main SQLite page.](https://sqlite.org/lang_returning.html)
-
-## SQLite with math functions
-
-Another great addition to SQLite from the 3.35 release is about math functions.
-
-The 3.35 release added a lot of math functions.
-The whole list is available on the main [SQLite documentation.](https://sqlite.org/lang_mathfunc.html)
-
-All these functions are now available in zeeSQL.
-
-zeeSQL is compiled with the `SQLITE_ENABLE_MATH_FUNCTIONS` compile-time option enable.
-
-## SQLite with DROP column
-
-Another great feature of this release is the DROP column.
-
-Before this release, to drop a column from a table, it was necessary to copy the whole table in a temporary table without the column to delete.
-Then drop the original table.
-
-With the 3.35 release, all this can be done with a simpler command which is an important quality of life improvement.
-
-
-## Conclusion
-
-The first minor release of zeeSQL updates the SQLite engine to one of the most feature-rich SQLite update ever.
-
-The latest zeeSQL version (1.0.1) works with all the licenses already purchased.
-It is available as docker container [(redbeardlab/zeesql:1.0.1)](https://hub.docker.com/layers/redbeardlab/zeesql/1.0.1/images/sha256-6a1aafcb6d1285355af0c75737aa4920a4365cb03f31b1ea3f1160135079e807?context=explore) and as [direct download (https://zeesql.com/releases/v1.0.1/zeesql.so)](https://zeesql.com/releases/v1.0.1/zeesql.so)
-
-
-[into]: ../references.md#into-stream
diff --git a/docs/faqs.md b/docs/faqs.md
deleted file mode 100644
index 52c964c..0000000
--- a/docs/faqs.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# FAQs
-
-## Common answer and mistake quickly solved
-
-### ERR - Error the key is empty
-
-You try to execute a command against a database like
-
-```text
-REDISQL.EXEC DB-EXAMPLE "SELECT 1;"
-```
-
-and RediSQL returns the error: `ERR - Error the key is empty`.
-
-Most likely the dabatase `DB-EXAMPLE` does not exists. To fix the problem you can simply create first the database with
-
-```text
-REDISQL.CREATE_DB DB-EXAMPLE
-```
-
-During development is quite convenient to just delete everything from RediSQL, so it may happens that you encounter this error. A possible solution is to always invoke the `REDISQL.CREATE_DB` command, if the database is not there, it will be created, if the database is already there an error will be raise. As long as you are in a development environment just ignore the error.
-
-### READONLY You can't write against a read only replica.
-
-Redis and RediSQL supports **replication**. You can have the same database in different redis instance, on different processes and potentially on different machine. This means that you can read data from different instances in parallel, greatly improving reading performances. However you cannot write in parallel to different instances, otherwise we wouldn't know what data is "real". You can write only to the master instance.
-
-By policy the `REDISQL.EXEC` command allow you to read and write and \(due to Redis limitation\) you cannot use this command on replicas. The `REDISQL.EXEC` command works only on the master node. This is true even if the query that you are trying to execute is an very simple read only query like `SELECT 1;`, you cannot `REDISQL.EXEC` against a replica node.
-
-In order to read from the replicas, you can use the `REDISQL.QUERY` family of commands. This command is allowed to only read data, without modifying the database, hence you can use it also in the replica instances. Moreover it is a good idea to use it also against the master instance whenever is possible.
-
-If you try to execute the `REDISQL.EXEC` command against a replica you will get the error `READONLY You can't write against a read only replica`. To query the replicas use the `REDISQL.QUERY` command.
-
diff --git a/docs/how-to/README.md b/docs/how-to/README.md
deleted file mode 100644
index 43310c6..0000000
--- a/docs/how-to/README.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-description: Set of short tutorial to get you started with zeeSQL as fast as possible!
----
-
-# How to
-
diff --git a/docs/how-to/add-multiple-rows.md b/docs/how-to/add-multiple-rows.md
deleted file mode 100644
index ca9424f..0000000
--- a/docs/how-to/add-multiple-rows.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# add-multiple-rows
-
diff --git a/docs/how-to/check-if-the-index-is-used.md b/docs/how-to/check-if-the-index-is-used.md
deleted file mode 100644
index ebb6ca8..0000000
--- a/docs/how-to/check-if-the-index-is-used.md
+++ /dev/null
@@ -1,204 +0,0 @@
-# How to check if an index is used in zeeSQL and SQLite
-
-This tutorial will cover both zeeSQL and SQLite. As you might know, zeeSQL is actually based on SQLite, so everything we say about zeeSQL can also be applied to raw SQLite.
-
-## What are indexes
-
-Indexes are secondary data-structures that sit next to the main data in your database.
-
-They don't store the main data, but only a subset of them, usually a few columns, and the primary key.
-
-The main point of indexes is that the data is always store sorted for the columns they are indexing.
-
-For instance, if we create an index for the `score` of some users, in the index, the scores will be stored sorted, from the smallest to the largest \(or vice-versa\).
-
-Storing the field sorted, allows a fast comparison for those fields. For instance, if we want to select all the users with a score greater than 20, we can look up in the index where the users with a score greater than 20 starts, and return all the users after that.
-
-However, an index on the score, won't help if we are looking for all the users that played more than 15 games. For that query, you will need a different index.
-
-As your use cases become complex, and the table larger, eventually a lot of indexes will be accumulated.
-
-Then, for complex queries, it becomes very difficult to know what index, if any, is going to be used.
-
-The SQL engine has its own algorithms and heuristic to figure out, what it thinks is the fastest way to execute a query.
-
-Please note that while indexes help in retrieving information, they need to be maintained, which implies more load when the data are updated or added. There is a tradeoff between insertion speed, \(no index, fastest insertion\) and query speed \(the more indexes they are, the more query will run optimally\).
-
-When no index can be used to speed up a query, SQLite will fallback in a full table scan, which means that it will look at every row in the table. For big tables, this implies a higher latency and slower results.
-
-## Am I using some index?
-
-SQLite, and so zeeSQL, comes with a handy command to check what the SQL engine is going to do, in other to retrieve the data.
-
-`EXPLAIN QUERY PLAN $your_query` returns a human-readable representation of what the SQL engine is going to do to fetch the data.
-
-An example will help clarify, suppose we have two tables, `foo` and `bar`.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "create table foo(a int, b int, c int);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "create table bar(x int, y int, z int);"
-1) 1) "DONE"
-2) 1) (integer) 0
-```
-
-At this point, we don't have any indexes, so any query will go through a full table scan.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "EXPLAIN QUERY PLAN select a from foo where a = 3 and b = 4 and c = 5;" NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 2
- 2) (integer) 0
- 3) (integer) 0
- 4) "SCAN TABLE foo"
-```
-
-In this example, were are scanning the whole `foo` table.
-
-Adding a simple index to the `foo` table will help SQLite in searching more efficiently the table.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE INDEX foo_a on foo(a);" NO_HEADER
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "EXPLAIN QUERY PLAN select a from foo where a = 3 and b = 4 and c = 5;" NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 3
- 2) (integer) 0
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING INDEX foo_a (a=?)"
-```
-
-This works also when you are working with multiple tables.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "EXPLAIN QUERY PLAN select a from foo, bar where a = 3 and b = 4 and c = 5 and c = z;" NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 4
- 2) (integer) 0
- 3) (integer) 0
- 4) "SCAN TABLE bar"
-3) 1) (integer) 10
- 2) (integer) 0
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING INDEX foo_a (a=?)"
-```
-
-On `foo`, we have the index we created previously that simplifies the search, in `bar` we don't have any indexes, so we are forced to do a full table scan.
-
-As soon as we add an index:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE INDEX bar_z on bar(z);" NO_HEADER
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "EXPLAIN QUERY PLAN select a from foo, bar where a = 3 and b = 4 and c = 5 and c = z;" NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 4
- 2) (integer) 0
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING INDEX foo_a (a=?)"
-3) 1) (integer) 13
- 2) (integer) 0
- 3) (integer) 0
- 4) "SEARCH TABLE bar USING COVERING INDEX bar_z (z=?)"
-```
-
-Now searches on both tables are using an index.
-
-One detail, on `bar` we are using a `COVERING INDEX` instead of a standard index.
-
-A standard index makes it faster to look up the id of the rows that we are interested in, but then we still need to fetch those rows from the database. A covering index means that you are not going to fetch extra rows because all the data you care about are already stored in the index itself. Note that in the query above we don't ask for any columns from the `bar` table in the result set, but we only compare that one column of `foo` is equal to one of `bar`.
-
-## Composite indexes
-
-Indexes can be against a single column or against multiple columns.
-
-The more the index is specific, the faster will be your query.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE INDEX foo_b_c on foo(b, c);" NO_HEADER
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "EXPLAIN QUERY PLAN select a from foo where a = 3 and b = 4 and c = 5;" NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 3
- 2) (integer) 0
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING INDEX foo_b_c (b=? AND c=?)"
-```
-
-In this case, instead of using the index `foo_a` the SQLite engine prefers the one on both `b` and `c` columns.
-
-It is important to be careful between `AND` and `OR` conditions.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "EXPLAIN QUERY PLAN select a from foo where a = 3 OR b = 4 and c = 5;" NO_HEADER 1) 1) "RESULT"
-2) 1) (integer) 4
- 2) (integer) 0
- 3) (integer) 0
- 4) "MULTI-INDEX OR"
-3) 1) (integer) 10
- 2) (integer) 4
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING INDEX foo_a (a=?)"
-4) 1) (integer) 21
- 2) (integer) 4
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING INDEX foo_b_c (b=? AND c=?)"
-```
-
-The query seems the same, but instead of an `AND` we have an `OR`, in this case, one more search is necessary.
-
-If they were all `OR`, then a full table scan is almost guarantee, unless you don't have a separated index for each column in the table.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "EXPLAIN QUERY PLAN select a from foo where a = 3 OR b = 4 OR c = 5;" NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 2
- 2) (integer) 0
- 3) (integer) 0
- 4) "SCAN TABLE foo"
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE INDEX foo_b on foo(b);" NO_HEADER
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE INDEX foo_c on foo(c);" NO_HEADER
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "EXPLAIN QUERY PLAN select a from foo where a = 3 OR b = 4 OR c = 5;" NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 4
- 2) (integer) 0
- 3) (integer) 0
- 4) "MULTI-INDEX OR"
-3) 1) (integer) 10
- 2) (integer) 4
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING COVERING INDEX foo_a_b_c (a=?)"
-4) 1) (integer) 20
- 2) (integer) 4
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING INDEX foo_b (b=?)"
-5) 1) (integer) 30
- 2) (integer) 4
- 3) (integer) 0
- 4) "SEARCH TABLE foo USING INDEX foo_c (c=?)"
-```
-
-## End
-
-Indexes are fundamental for every database system, however, they might be confusing and not intuitive.
-
-zeeSQL, and SQLite, provide a very simple way to check what indexes are going to be used for each of your queries, and when in doubt, it is a good idea to check it.
-
-Do not add too many indexes, they slow down insertion. Moreover, in small datasets, a full table scan can be fast enough.
-
-Always verify your assumption about indexes.
-
-## About zeeSQL
-
-zeeSQL is a Redis Module that provides SQL capabilities to Redis. It allows the creation and management of several SQL databases, each one independent from the other. Moreover, zeeSQL provides out-of-the-box [secondary indexes](../secondary-indexes.md) capabilities, allowing fast and easy search by value in Redis.
-
diff --git a/docs/how-to/choose-between-query-and-exec.md b/docs/how-to/choose-between-query-and-exec.md
deleted file mode 100644
index 678d2a0..0000000
--- a/docs/how-to/choose-between-query-and-exec.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# How to choose between QUERY and EXEC
-
-zeeSQL comes with two commands that seem similar:
-
-[`ZEESQL.QUERY`](../references.md#zeesql-query) and [`ZEESQL.EXEC`](../references.md#zeesql-exec).
-
-These two commands have the same syntax, but different semantic.
-
-[`ZEESQL.QUERY`](../references.md#zeesql-query) is for **read-only** operations like `SELECT`.
-
-[`ZEESQL.EXEC`](../references.md#zeesql-exec) is for updating the status of the database using `DELETE` or `INSERT` or `UPDATE` statements. However, `ZEESQL.EXEC` supports also `SELECT`, mostly for keeping things simple for everybody.
-
-Still, especially in a production environment, `ZEESQL.QUERY` should be preferred whenever you are executing a read-only operation.
-
-Redis support AOF and primary/secondary replication. Every time a command that modifies the status of the database is invoked in Redis, the same command is sent to the AOF file \(if enable\) and to the replicas.
-
-We know that `ZEESQL.QUERY` will never modify the status of the database, hence all the operations executed with it, are not replicated, nor to the AOF file, nor to the replicas.
-
-This is not true for `ZEESQL.EXEC`. Since we don't know if the operation in `ZEESQL.EXEC` will modify or not the database, the command needs to be replicated. This implies that the replicas will repeat the command against their own internal status.
-
-It is a waste of resources to send a `SELECT` with the `ZEESQL.EXEC` command because it will be replicated by your replicas and by the AOF file, while not changing the structure of the database.
-
-`ZEESQL.QUERY`, being a read-only Redis command, can be executed also by the replicas.
-
-If you have a very demanding application with a lot of load, you may have to use read-only replicas. To read-only replicas, you cannot send Redis command that might modify the internal status like `ZEESQL.EXEC`.
-
-Against read-only replicas, you can only send read-only commands, like `ZEESQL.QUERY`.
-
-While coding up your application it is a great idea to take the time and use `ZEESQL.QUERY` when possible instead of blindly using `ZEESQL.EXEC`.
-
-`ZEESQL.QUERY` will raise an error when you try to use it with something that is not a read-only query, so you will catch possible misuses of `ZEESQL.QUERY` extremely fast.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE TABLE foo(a INT, b INT);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "INSERT INTO foo VALUES(1,2),(2,3);"
-1) 1) "DONE"
-2) 1) (integer) 2
-127.0.0.1:6379> ZEESQL.QUERY DB COMMAND "INSERT INTO foo VALUES(1,2),(2,3);"
-(error) Statement is not read only but it may modify the database, use `EXEC` instead.
-127.0.0.1:6379> ZEESQL.QUERY DB COMMAND "SELECT * FROM foo;"
-1) 1) "RESULT"
-2) 1) "a"
- 2) "b"
-3) 1) "INT"
- 2) "INT"
-4) 1) (integer) 1
- 2) (integer) 2
-5) 1) (integer) 2
- 2) (integer) 3
-```
-
-## About zeeSQL
-
-zeeSQL is a Redis Module that provides SQL capabilities to Redis. It allows the creation and management of several SQL databases, each one independent from the other. Moreover, zeeSQL provides out-of-the-box [secondary indexes](../secondary-indexes.md) capabilities, allowing fast and easy search by value in Redis.
-
diff --git a/docs/how-to/copy-a-database.md b/docs/how-to/copy-a-database.md
deleted file mode 100644
index 7998322..0000000
--- a/docs/how-to/copy-a-database.md
+++ /dev/null
@@ -1,74 +0,0 @@
-# How to copy a database
-
-zeeSQL can manage multiple databases at the same time.
-
-Sometimes, it can be convenient to copy the content of one database into another one.
-
-Copying databases can help if you want to transfer a database backed by a disk into memory, or the other way, transferring an in-memory database to disk.
-Having databases on disk is make it simple to backup them, and reading databases from disk makes it simple to import databases from different sources.
-On the other hand, having databases in memory makes them extremely fast.
-
-For some use cases, you may want to have a set of databases that all share the same structure.
-For instance, if each of your users is associated with a database, instead of creating all the tables needed every time new users signup, you could just clone a template database.
-
-Copying databases can also help in spreading read load against an immutable database.
-Instead of reading from a single database, you can copy the database into few other databases and spread the load.
-
-To copy a database, you can use the [`ZEESQL.COPY`](../references.md#zeesql-copy) database.
-
-The command takes two databases, after the `FROM` and the `TO` flags.
-The database after the `FROM` flag is the source database.
-The one after the `TO` flag is the destination database.
-
-The destination database is completely wiped out, and replaced by the content of the source database.
-
-The source database is left intact.
-
-
-```
-127.0.0.1:6379> ZEESQL.CREATE_DB DB01
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND "create table foo(a, b);"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND "create table bar(a, b);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND "insert into foo values(1,2),(2,3); insert into bar values(1,2),(2,3);"
-1) 1) "DONE"
-2) 1) (integer) 4
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB02 COMMAND "select * from foo, bar where foo.a = bar.a"
-(error) no such table: foo
-127.0.0.1:6379> ZEESQL.COPY FROM DB01 TO DB02
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB02 COMMAND "select * from foo, bar where foo.a = bar.a"
-1) 1) "RESULT"
-2) 1) "a"
- 2) "b"
- 3) "a"
- 4) "b"
-3) 1) "INT"
- 2) "INT"
- 3) "INT"
- 4) "INT"
-4) 1) (integer) 1
- 2) (integer) 2
- 3) (integer) 1
- 4) (integer) 2
-5) 1) (integer) 2
- 2) (integer) 3
- 3) (integer) 2
- 4) (integer) 3
-```
-
-In the example, we create and populate two tables in the `DB01`.
-
-Then we create the `DB02` and we try to immediately read from it, `zeeSQL` of course returns an error since the `DB02` database is empty.
-
-After copying the content of the `DB01` database into the `DB02` database, the same query success.
-
-## About zeeSQL
-
-zeeSQL is a Redis Module that provides SQL capabilities to Redis. It allows the creation and management of several SQL databases, each one independent from the other. Moreover, zeeSQL provides out-of-the-box [secondary indexes](../secondary-indexes.md) capabilities, allowing fast and easy search by value in Redis.
-
-
diff --git a/docs/how-to/create-a-database.md b/docs/how-to/create-a-database.md
deleted file mode 100644
index e6081be..0000000
--- a/docs/how-to/create-a-database.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# How to create a new database in zeeSQL
-
-To start using zeeSQL you need to create a database.
-
-In zeeSQL you can have as many databases as necessary.
-
-Each database you create in zeeSQL is an SQLite database, it can either be an in-memory database or a file-backed database.
-
-Each database is associate with a Redis key.
-
-Delete the key, and the database is deleted. If the database is backed by a file, then the file is closed, but it is not deleted.
-
-To create a database, you can use the command [`ZEESQL.CREATE_DB`](../references.md#zeesql-create_db)
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-```
-
-In this way a new in-memory database is created, it is associated with the `DB` key in Redis.
-
-In-memory databases will always be created empty in zeeSQL.
-
-To create a database-backed by a file, you need to pass the `PATH` flag.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB FILE_DB PATH file.sqlite
-1) 1) "OK"
-```
-
-The `FILE_DB` database, will be associate with an SQLite database stored in disk, in the file `file.sqlite`.
-
-Please note that databases stored in disk have different performances than the databases stored in memory. Usually slower.
-
-## Importing an external database
-
-Sometimes you may want to import some data from some other source.
-
-zeeSQL allows you to load any SQLite database.
-
-Suppose you already have an SQLite database that contains your users, and that you saved it in `users.sqlite`.
-
-To import that database inside zeeSQL you only need to:
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB USERS PATH users.sqlite
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC USERS COMMAND "select * from users"
-1) 1) "RESULT"
-2) 1) "id"
- 2) "username"
- 3) "score"
-3) 1) "INT"
- 2) "TEXT"
- 3) "INT"
-4) 1) (integer) 100
- 2) "joh"
- 3) (integer) 3
-5) 1) (integer) 101
- 2) "mary"
- 3) (integer) 7
-6) 1) (integer) 102
- 2) "brand"
- 3) (integer) 4
-```
-
-## About zeeSQL
-
-zeeSQL is a Redis Module that provides SQL capabilities to Redis. It allows the creation and management of several SQL databases, each one independent from the other. Moreover, zeeSQL provides out-of-the-box [secondary indexes](../secondary-indexes.md) capabilities, allowing fast and easy search by value in Redis.
-
diff --git a/docs/how-to/create-a-secondary-index.md b/docs/how-to/create-a-secondary-index.md
deleted file mode 100644
index 4cf1a9b..0000000
--- a/docs/how-to/create-a-secondary-index.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# create-a-secondary-index
-
diff --git a/docs/how-to/create-a-table.md b/docs/how-to/create-a-table.md
deleted file mode 100644
index 79f5f7d..0000000
--- a/docs/how-to/create-a-table.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# How to create a new table in zeeSQL
-
-After you have created a new database, the next likely action, will be to create a set of tables to store information.
-
-zeeSQL uses SQLite under the hood, hence it can work with all the SQL queries that can be managed by SQLite.
-
-Suppose you have created a new database with:
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-```
-
-You can now create a new table executing a command against that database:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE TABLE foo(col1 STRING, col2 INT, col3 STRING);"
-1) 1) "DONE"
-2) 1) (integer) 0
-```
-
-This command will create a table called `foo` with 3 columns. The first column is called `col1` and has type `STRING`, the second column is called `col2` and has type `INT` and the last column is called `col3` again of type `STRING`.
-
-We know that everything went well because the result was "DONE". Moreover, zeeSQL is telling us that 0 rows were modified, this is correct since we only created a new table.
-
-You can create an unlimited number of tables.
-
-The [`CREATE TABLE`](https://sqlite.org/lang_createtable.html) documentation page of SQLite describes all the options and the syntax available to create a new table. All of them are available in `zeeSQL`.
-
-## About zeeSQL
-
-zeeSQL is a Redis Module that provides SQL capabilities to Redis. It allows the creation and management of several SQL databases, each one independent from the other. Moreover, zeeSQL provides out-of-the-box [secondary indexes](../secondary-indexes.md) capabilities, allowing fast and easy search by value in Redis.
-
diff --git a/docs/how-to/create-a-trigger.md b/docs/how-to/create-a-trigger.md
deleted file mode 100644
index 1661624..0000000
--- a/docs/how-to/create-a-trigger.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# How to create a trigger
-
-Triggers are one way to keep a consistent state of your data.
-
-They are not the only way, and somehow, they are looked upon, however they can be very powerful.
-
-zeeSQL is based on SQLite, so all that we are saying, apply equally to both zeeSQL and SQLite itself.
-
-When you modify your database, with an `UPDATE` or a `DELETE` or a `INSERT` triggers can be invoked and they can modify your databases.
-
-To create a trigger, we need to define:
-
-1. When to invoke it
-2. What the trigger should do
-
-A trigger can be invoked in response to either an UPDATE or a DELETE or an INSERT.
-
-We can also specify if we want the trigger to be invoked before the action takes place, or just after.
-
-The action that the trigger should do, is a simple SQL command, it can be an INSERT or an UPDATE or a DELETE.
-
-Trigger are very useful to keep the database consistent with some view of the world that was not possible to express in the SQL schema, or to keep counters.
-
-For instance, suppose we want to have a very quick way to know how many rows are in a table. We can either run a count\(\), or we can keep track of each row with a trigger.
-
diff --git a/docs/how-to/create-a-view.md b/docs/how-to/create-a-view.md
deleted file mode 100644
index 2740769..0000000
--- a/docs/how-to/create-a-view.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# create-a-view
-
diff --git a/docs/how-to/create-an-index.md b/docs/how-to/create-an-index.md
deleted file mode 100644
index 19249b8..0000000
--- a/docs/how-to/create-an-index.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# create-an-index
-
diff --git a/docs/how-to/get-help.md b/docs/how-to/get-help.md
deleted file mode 100644
index 6a797d6..0000000
--- a/docs/how-to/get-help.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# get-help
-
diff --git a/docs/how-to/get-json-output.md b/docs/how-to/get-json-output.md
deleted file mode 100644
index 6989092..0000000
--- a/docs/how-to/get-json-output.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# How to get JSON output
-
-By default zeeSQL returns nested arrays.
-
-zeeSQL can also returns the exact same information as JSON output.
-
-JSON output may be preferable since it is usually easier to parse and all languages offer full support for it.
-
-The [`ZEESQL.EXEC`](../references.md#zeesql-exec) and [`ZEESQL.QUERY`](../references.md#zeesql-query) commands support the [`JSON`](../references.md#json-flag) flag, which instructs them to return JSON as output.
-
-## Examples
-
-The first example is about a command that does not return any rows but only `DONE`.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE TABLE foo(col1 STRING, col2 INT, col3 STRING);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "CREATE TABLE bar(col1 STRING, col2 INT, col3 STRING);" JSON
-"{\"result\":\"done\",\"modified_rows\":0}"
-```
-
-Adding the `JSON` flags returns the exact same result but in JSON format.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "INSERT INTO foo VALUES('AAA', 2, 'BBB'),('CCC', 3, 'DDD');"
-1) 1) "DONE"
-2) 1) (integer) 2
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "INSERT INTO bar VALUES('AAA', 2, 'BBB'),('CCC', 3, 'DDD');" JSON
-"{\"result\":\"done\",\"modified_rows\":2}"
-```
-
-Another example is when the command returns some rows.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "SELECT * FROM foo;"
-1) 1) "RESULT"
-2) 1) "col1"
- 2) "col2"
- 3) "col3"
-3) 1) "TEXT"
- 2) "INT"
- 3) "TEXT"
-4) 1) "AAA"
- 2) (integer) 2
- 3) "BBB"
-5) 1) "CCC"
- 2) (integer) 3
- 3) "DDD"
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "SELECT * FROM bar;" JSON
-"{\"rows\":[{\"col1\":\"AAA\",\"col2\":2,\"col3\":\"BBB\"},{\"col1\":\"CCC\",\"col2\":3,\"col3\":\"DDD\"}],\"number_of_rows\":2,\"columns\":{\"col1\":\"TEXT\",\"col2\":\"INT\",\"col3\":\"TEXT\"}}"
-```
-
-The returned JSON is formatted for saving bytes on the network, not for readability.
-
-However, the result looks like this:
-
-```text
-{
- "rows": [
- {
- "col1": "AAA",
- "col2": 2,
- "col3": "BBB"
- },
- {
- "col1": "CCC",
- "col2": 3,
- "col3": "DDD"
- }
- ],
- "number_of_rows": 2,
- "columns": {
- "col1": "TEXT",
- "col2": "INT",
- "col3": "TEXT"
- }
-}
-```
-
-The `rows` key contains the actual result set, each row is an object with a key the name of the column and with value the actual value of the row.
-
-Then there is the `number_of_rows` key, an integer that describes how many rows are returned in this result set.
-
-The `columns` field maps the name of the column to their type.
-
-Overall returning JSON from zeeSQL is very simple, just add the `JSON` flag to your command and you are done.
-
-## About zeeSQL
-
-zeeSQL is a Redis Module that provides SQL capabilities to Redis. It allows the creation and management of several SQL databases, each one independent from the other. Moreover, zeeSQL provides out-of-the-box [secondary indexes](../secondary-indexes.md) capabilities, allowing fast and easy search by value in Redis.
-
diff --git a/docs/how-to/get-zeesql.md b/docs/how-to/get-zeesql.md
deleted file mode 100644
index f4bf940..0000000
--- a/docs/how-to/get-zeesql.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# How to get zeeSQL
-
-There are different way to get `zeeSQL` each suitable for production and testing.
-
-The best way for you dependes on your specific use case.
-
-## Use the docker image
-
-The simplest way to obtain `zeeSQL` is to use the standard docker image: `redbeardlab/zeesql`.
-
-This particular image is based on the standard `Redis` image.
-
-It starts `Redis` and automatically loads `zeeSQL` for you.
-
-As soon as the image start, `zeeSQL` is loaded and ready to be used.
-
-This can be used with `docker`, `podman`, but also in `kubernetes`.
-
-If you are using docker, make sure to expose the port `6379` for `Redis`.
-
-**Example**
-
-```text
-docker run -d --name zeesql -p 6379:6379 --rm redbeardlab/zeesql
-```
-
-## Getting the binary
-
-The second option is to get the `zeeSQL` binary.
-
-The binary is rather small, ~10MB, and it can be downloaded from:
-
-```text
-https://zeesql.com/releases/latest/zeesql.so
-```
-
-A simple way to get the binary is:
-
-```text
-wget https://zeesql.com/releases/latest/zeesql.so
-```
-
-The binary can be distributed in whichever way you like, so you can push it in your private docker image, or send it to customers.
-
-After you got the binary, you need to [load it in Redis.](load-zeesql-into-redis.md)
-
-
-## Using the license
-
-If you are using either the docker image or the binary, zeeSQL will be run with limitations.
-
-To avoid those limitations, you need a [software license](../pricing.md).
-
-## About zeeSQL
-
-zeeSQL is a Redis Module that provides SQL capabilities to Redis. It allows the creation and management of several SQL databases, each one independent from the other. Moreover, zeeSQL provides out-of-the-box [secondary indexes](../secondary-indexes.md) capabilities, allowing fast and easy search by value in Redis.
-
diff --git a/docs/how-to/know-what-databases-are-defined.md b/docs/how-to/know-what-databases-are-defined.md
deleted file mode 100644
index bdb287b..0000000
--- a/docs/how-to/know-what-databases-are-defined.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# know-what-databases-are-defined
-
diff --git a/docs/how-to/know-what-secondary-indexes-are-defined-1.md b/docs/how-to/know-what-secondary-indexes-are-defined-1.md
deleted file mode 100644
index 08b5b0f..0000000
--- a/docs/how-to/know-what-secondary-indexes-are-defined-1.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# know-what-secondary-indexes-are defined
-
diff --git a/docs/how-to/know-what-secondary-indexes-are-defined.md b/docs/how-to/know-what-secondary-indexes-are-defined.md
deleted file mode 100644
index 08b5b0f..0000000
--- a/docs/how-to/know-what-secondary-indexes-are-defined.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# know-what-secondary-indexes-are defined
-
diff --git a/docs/how-to/know-what-tables-are-defined.md b/docs/how-to/know-what-tables-are-defined.md
deleted file mode 100644
index 4d823d3..0000000
--- a/docs/how-to/know-what-tables-are-defined.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# know-what-tables-are-defined
-
diff --git a/docs/how-to/load-zeesql-into-redis.md b/docs/how-to/load-zeesql-into-redis.md
deleted file mode 100644
index b108017..0000000
--- a/docs/how-to/load-zeesql-into-redis.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# How to load zeeSQL in Redis
-
-After you get the [zeeSQL module](get-zeesql.md) you need to load it up in Redis.
-
-If you are using zeeSQL from the docker image, this step is not necessary, since the image is already set up to work with zeeSQL out of the box.
-
-If you are running zeeSQL from scratch or you are setting up your own infrastructure, then these steps are necessary.
-
-All these steps assume that you have saved the zeeSQL module in `/home/user/zeeSQL.so`.
-
-## Load from the command line
-
-The simplest way to load the module in Redis is to pass the module as a flag when starting up the Redis instance.
-
-You just need to provide the `--loadmodule` flag with the correct path.
-
-For instance:
-
-```
-$ redis-server --loadmodule /home/user/zeeSQL.so
-```
-
-## Load from config
-
-A more structured way to load the module is to use the default configuration file of Redis.
-
-In the Redis configuration file, the `loadmodule` directive is available.
-
-It is sufficient to use that directive passing the path of the module:
-
-```
-################################## MODULES #####################################
-
-# Load modules at startup. If the server is not able to load modules
-# it will abort. It is possible to use multiple loadmodule directives.
-#
-
-loadmodule /home/user/zeeSQL.so
-
-```
-
-## Load with Redis running
-
-The last option is to issue the `MODULE LOAD` command at runtime against Redis.
-
-```
-127.0.0.1:6379> MODULE LOAD /home/user/zeeSQL.so
-8:M 06 Mar 2021 14:33:04.923 * Module 'rediSQL' loaded from /home/user/zeeSQL.so
-OK
-```
-
-This will load the module exactly like the two other systems.
-
-## About zeeSQL
-
-zeeSQL is a Redis Module that provides SQL capabilities to Redis. It allows the creation and management of several SQL databases, each one independent from the other. Moreover, zeeSQL provides out-of-the-box [secondary indexes](../secondary-indexes.md) capabilities, allowing fast and easy search by value in Redis.
diff --git a/docs/how-to/quickly-ingest-data.md b/docs/how-to/quickly-ingest-data.md
deleted file mode 100644
index d6c7615..0000000
--- a/docs/how-to/quickly-ingest-data.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# quickly-ingest-data
-
diff --git a/docs/how-to/using-full-text-search.md b/docs/how-to/using-full-text-search.md
deleted file mode 100644
index 8589952..0000000
--- a/docs/how-to/using-full-text-search.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# using-full-text-search
-
diff --git a/docs/how-to/work-with-dates.md b/docs/how-to/work-with-dates.md
deleted file mode 100644
index 557f097..0000000
--- a/docs/how-to/work-with-dates.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# work-with-dates
-
diff --git a/docs/how-to/work-with-json.md b/docs/how-to/work-with-json.md
deleted file mode 100644
index ed6611d..0000000
--- a/docs/how-to/work-with-json.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# work-with-json
-
diff --git a/docs/how-to/works-with-boolean.md b/docs/how-to/works-with-boolean.md
deleted file mode 100644
index 44ed77a..0000000
--- a/docs/how-to/works-with-boolean.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# works-with-boolean
-
diff --git a/docs/motivations.md b/docs/motivations.md
deleted file mode 100644
index a9c0f48..0000000
--- a/docs/motivations.md
+++ /dev/null
@@ -1,77 +0,0 @@
-# Motivation
-
-I build `zeeSQL` to remove operational and software complexity from most small to medium applications.
-
-## Remove complexity from small and medium application
-
-Even simple apps are becoming increasingly complex.
-
-Applications today usually have at least 3 moving parts.
-
-1. Some persistent layer like a database
-2. A fast ephemeral storage
-3. Some sort of queue
-
-Modern database solutions like Postres can usually manage almost everything, but they are never really quite enough.
-
-You are not going to cache your data in Postgres, you are going to use Redis or Memcache. Similarly for session information.
-
-Moreover, databases are hard and complex to operate. Complex, even before to create all the modern container orchestration infrastructure.
-
-Redis is another very good candidate to be a single solution for the data need of small or medium applications, it works very well as fast ephemeral storage and as a queue system. Moreover, it has great persistence capabilities. However, besides simple use cases, it is hard to use as the only database.
-
-Most applications need some form of complex data query and filtering.
-
-`zeeSQL` is born to address this small niche.
-
-It provides a fast, simple, and easy to operate SQL engine that is embedded in Redis. Adding more capabilities on top of the Redis features. It inherits all the persistency guarantees of Redis, and it is perfect to use as a persistency layer in small to medium applications.
-
-Using `zeeSQL` it is possible to use a single, easy to maintain, and easy to operate external process for all the application data needs.
-
-Then working in-memory by default, `zeeSQL` turns out to be very fast. And I try my very best to keep performance as high as possible.
-
-## Simplify Redis
-
-The first version of `zeeSQL` kept completely separated the data belongings to `zeeSQL` and the data from Redis.
-
-`zeeSQL` was not able to query and see data from Redis.
-
-Then users start to ask how to query data that are stored in Redis.
-
-People wanted to use the SQL capabilities of `zeeSQL` to query data in Redis. It makes sense, the technology, and the code were ready for this use case, and it improves the use cases of `zeeSQL`.
-
-The latest version of `zeeSQL` can now integrate with Redis hashes allow people to search Redis data by value.
-
-This is really another big simplification for developers and Redis users.
-
-Without `zeeSQL`, if you needed to search value in Redis hash, you had two choices.
-
-1. Get all the data from Redis to your code, and then implement search, filter, and aggregation by hand.
-2. Maintains separated data structure in Redis to quickly identify the elements you are interested in.
-
-Of course, neither choice is optimal.
-
-Fetching all the data from Redis is a slow operation, that keeps the Redis process busy, increments the tail latency, and saturates the bandwidth. Also implementing search, filtering, and aggregation in code is a slow and error-prone process. It would be much better if Redis could return directly only the data we are interested in.
-
-Keeping separated data structures is very cumbersome and error-prone. Whenever you update a Redis hash value, you need also to update all the other data structures, otherwise, you will keep a wrong view of your data. And these updates need to be done on insertion, deletions, and when you modify the data. Moreover, it is not flexible when new business requirements come along. It would be much better if Redis could keep track itself of the data and figure out by itself how to query them.
-
-With `zeeSQL` all of this is now possible.
-
-Values from Redis hashes are pushed into a standard SQL table, and from there they can be queried.
-
-This is a superior model to search Redis by value. It keeps the best of the two alternatives overcoming both limitations.
-
-It allows users to specify what data they want, and `zeeSQL` finds the best way to provide only those information. Without the need to maintains any separated data structures.
-
-## Simplify, simplify, simplify
-
-The motivation for creating `zeeSQL` is to simplify developers' life.
-
-First, it simplified operations at the data level, offering a single solution for small to medium applications to solve all their data needs.
-
-Then `zeeSQL` simplifies Redis operations, solving how to search Redis by value and not only by key.
-
-If you would like to learn more about `zeeSQL`, please visit the [README](./) or try to [follow the tutorial](tutorial.md). You can also check out the [command references.](references.md)
-
-If you got more questions you can contact me at [simone@redbeardlab.com](mailto:simone@redbeardlab.com)
-
diff --git a/docs/pricing.md b/docs/pricing.md
deleted file mode 100644
index 18e2a6a..0000000
--- a/docs/pricing.md
+++ /dev/null
@@ -1,121 +0,0 @@
-# Pricing for zeeSQL
-
-zeeSQL is **not** a product free to run.
-
-However, it comes with a **generous free plan**, so that small and medium applications can work without paying anything.
-
-This document explains how the pricing for `zeeSQL` works.
-
-It starts explaining how we charge for `zeeSQL` and then what is included in the free plan.
-
-## How zeeSQL charges users
-
-zeeSQL uses a credit system linked to a license key.
-
-In `zeeSQL` there are two main concepts, `database`s and `secondary indexes`.
-
-Running either one \(database or one secondary index\) costs 1 credit every hour.
-
-One credit costs 0,01€
-
-We devise this pricing schema to scale on the **complexity** that zeeSQL is managing not on the size of your datasets.
-
-There is an allowance of **2160 free credit each month** for each license.
-
-## zeeSQL free plan
-
-zeeSQL reports its usage \(number of credit used\) only if the user provided a license key.
-
-It is not necessary to provide a license key to use `zeeSQL`.
-
-However, without a license key, it is not possible to spend more than 3 credits each hour. This is enforced by avoiding creating a new database or a new index if you are already using 3 credits for an hour.
-
-To spend more than 3 credits for an hour, you need to input a valid license key.
-
-The 2160 free credit, are there to allow users to input a valid license while still benefit from the free plan.
-
-```text
-3 credits each hours * 24 hours a day * 30 days a months = 2160 credit / month.
-```
-
-Which is exactly the amount of free credit available.
-
-This will allow to test the system and do maintenance operations.
-
-The 2160 credit/month can be spent also together during a single hour. This allows testing the product with multiple databases and secondary indexes.
-
-## [Getting a license](https://license.zeesql.com)
-
-You can obtain a license from [this website](https://license.zeesql.com).
-
-The license can be shared between multiple `zeeSQL` processes.
-
-## Example
-
-These examples show how much you will be charged for using `zeeSQL`.
-
-They all assume steady-state operation where databases and secondary indexes are not generate or deleted.
-
-| Number of databases | Numbre of indexes | Credit usage | Cost per hour | Cost per month |
-| :--- | :--- | :--- | :--- | :--- |
-| 1 | 0 | 1 | FREE | FREE |
-| 3 | 0 | 3 | FREE | FREE |
-| 4 | 0 | 4 | 0.01 | 7.20 |
-| 5 | 0 | 5 | 0.02 | 14.40 |
-| 1 | 2 | 3 | FREE | FREE |
-| 1 | 3 | 4 | 0.01 | 7.20 |
-| 2 | 3 | 5 | 0.02 | 14.40 |
-| 2 | 4 | 6 | 0.03 | 21.60 |
-
-## Code examples
-
-These code examples show what happens when the user tries to create more than 3 databases without one valid license key.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB_1
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.CREATE_DB DB_2
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.CREATE_DB DB_3
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.CREATE_DB DB_4
-(error) Not enough credit in your license, please upgrade.
-127.0.0.1:6379> ZEESQL.LICENSE SET $one_valid_license
-OK
-127.0.0.1:6379> ZEESQL.CREATE_DB DB_4
-1) 1) "OK"
-```
-
-`zeeSQL` returns a simple error and does not allows the user to create more databases.
-
-Similarly with secondary indexes.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB_1
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.INDEX DB_1 NEW TABLE users PREFIX users:* SCHEMA id INT name STRING
-OK
-127.0.0.1:6379> ZEESQL.INDEX DB_1 NEW TABLE games PREFIX games:* SCHEMA id INT game_name STRING player INT
-OK
-127.0.0.1:6379> ZEESQL.INDEX DB_1 NEW TABLE credit PREFIX credit:* SCHEMA user_id INT available_credits INT
-(error) Not enough credit in your license, please upgrade.
-127.0.0.1:6379> ZEESQL.LICENSE SET $one_valid_license
-OK
-127.0.0.1:6379> ZEESQL.INDEX DB_1 NEW TABLE credit PREFIX credit:* SCHEMA user_id INT available_credits INT
-OK
-```
-
-## Pathological cases
-
-Please [get in touch](mailto:simone@redbeardlab.com) if your application is a pathological case.
-
-For instance, if you design your application to have one database for each user.
-
-## Air gapped instances
-
-`zeeSQL` needs to communicate to a specific hostname to communicate how many credits each instance is using.
-
-If your system is without external connectivity, please [get in touch](mailto:simone@redbeardlab.com).
-
-We can provide builds of `zeeSQL` that don't need to report back their usage.
-
diff --git a/docs/pro.md b/docs/pro.md
deleted file mode 100644
index 7b1fcda..0000000
--- a/docs/pro.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# zeeSQL, a solid product for busy developer
-
-zeeSQL is not an open source project. I tried really hard to make RediSQL sustainable while being completely open source. Unfortunately I failed.
-
-The product was stolen and used against its own license.
-
-Between the choice of abbandoning the project and monetize it in a not open-source way, I decided to try to monetize it.
-
-## Advatanges
-
-Being a closed source project, tht people pay real money for it, comes with a series of advantages.
-
-Having the main developer of the project keep working on it, enhancing, and writing documentation for it, is invaluable. It is much more likely that the documentation will be of high quality. There is a clear incentive in having a well documented and easy to use project.
-
-\(This is not always the case for projects that sell supports, nor it is always the case for project that sell computing resources.\)
-
-Also, the possibilities that the project get abbandoned in the foreseable futures are extremely slim. It is a source of income for the author who has all the incentives to keep expading it.
-
-## Disadvantages
-
-The main disadvanates of having the source code of the project not open, is that it is impossible to modify the source code yourself.
-
-During the years of work with RediSQL, very few people tryied to submit valuable Pull Request, and I don't really think that this would change with zeeSQL.
-
-Another disadvantage of a closed source project is that it won't be possible for your organization to run the project indipendently.
-
-This is not a problem, as long as RedBeardLab is around and keep working on zeeSQL, but it could be a real problem in the next 5 or 10 years.
-
-To avoid this problem, we pledge to release the source code of zeeSQL as soon as we are unable to support it anymore.
-
diff --git a/docs/references.md b/docs/references.md
deleted file mode 100644
index 737aaab..0000000
--- a/docs/references.md
+++ /dev/null
@@ -1,827 +0,0 @@
-# References
-
-This document explains all the API that zeeSQL provide to the users.
-
-`zeeSQL` is a Redis module, the command illustrate below are added **on top** of all the existing Redis commands. Using `zeeSQL` means using Redis at the same time. You can use any Redis client, in any programming language, even the `redis-cli`, to send the `zeeSQL` commands.
-
-This document refers to the latest API, but `zeeSQL` commits to backward-compatible API.
-
-For each command, it exposes first the name and then the syntax, and finally a brief explanation of what is going on inside the code.
-
-Where is possible, it provides also an estimate of the complexity but since we are talking about databases not all queries have the same time and spatial complexity.
-
-Finally, if it is appropriate the document also provides several references to external material that the interested reader can use to understand better the dynamics of every command.
-
-## ZEESQL.CREATE\_DB
-
-```text
-ZEESQL.CREATE_DB db_key [PATH path]
-```
-
-This command creates a new DB and associates it with the key.
-
-The path argument is optional and, if provided is the file that SQLite will use. It can be an existing SQLite file or it can be a not existing file.
-
-If the file exists and if it is a regular SQLite file that database will be used. If the file does not exist a new file will be created.
-
-If the path is not provided it will open an in-memory database. Not providing a path is equivalent to provide the special string `:memory:` as the path argument.
-
-After opening the database it inserts metadata into it and then starts a thread loop.
-
-**Complexity**: O\(1\), it means constant, it does not necessarily mean _fast_. However, is fast enough for any use case facing human users \(eg create a new database for every user logging into a website.\)
-
-**Examples**:
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-```
-
-This command created an in-memory database. Persistency is managed by Redis with AOF or RDB following the setting of your Redis instance.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB on_disk_db PATH /tmp/foo.sqlite
-1) 1) "OK"
-```
-
-This command created a database that uses a file as storage support, in this case `/tmp/foo.sqlite`.
-
-If the file does not exist, it is created.
-
-If the file is already an SQLite database, it gets used immediately with all the data already loaded.
-
-If the file is not an SQLite database, an error is raised.
-
-**See also**:
-
-1. [SQLite `sqlite3_open_v2`](https://sqlite.org/c3ref/open.html)
-
-## DEL
-
-```text
-DEL db_key [key ...]
-```
-
-This command is a generic command from Redis.
-
-It eliminates keys from Redis itself, as well if the key is a RediSQL database create with [`ZEESQL.CREATE_DB`](references.md#redisqlcreate_db) it will eliminate the SQLite database, stop the thread loop and clean up everything left.
-
-If the database is backed by a file the file will be closed, but it won't be deleted.
-
-**Complexity**: DEL is O\(N\) on the number of keys, if you are only eliminating the key associated with the SQLite database will be constant, O\(1\).
-
-**Examples**:
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-127.0.0.1:6379> DEL DB
-(integer) 1
-```
-
-**See also**:
-
-1. [SQLite `sqlite3_close`](https://sqlite.org/c3ref/close.html)
-2. [Redis `DEL`](https://redis.io/commands/del)
-
-## ZEESQL.EXEC
-
-```text
-ZEESQL.EXEC db_key
- ( (COMMAND "command") | (STATEMENT statement) )
- [NOW]
- [READ_ONLY]
- [INTO stream]
- [NO_HEADER]
- [JSON]
- [ARGS arg1 arg2 ... argn]
-```
-
-The EXEC command is the main command of zeeSQL. It allows interaction with the database stored in the `db_key`.
-
-It takes as input the database `db_key`, either a `COMMAND` or a `STATEMENT`, an optional series of flags, and an optional variadic number of arguments.
-
-You need to supply **EITHER** a command \(using the `COMMAND` flag\) or a statement \(using the `STATEMENT` flag\), but you need one of them.
-
-### Command vs Statement
-
-The command is a valid SQL string. The command SQL string can contain arguments in the form `?n`. Those arguments will be matched to the one provided at the end of the command. The first argument is bound against `?1`, NOT against `?0`. Arguments that are not provided will be bound to `NULL`.
-
-The statement can be created with the `ZEESQL.STATEMENT` command. The arguments follow the same logic of the COMMAND variants.
-
-**Examples**:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "create table foo(a INT, b string);"
-1) 1) "DONE"
-2) 1) (integer) 0
-```
-
-In this example, we create a new table.
-
-```text
-127.0.0.1:6379> ZEESQL.STATEMENT DB NEW insert "insert into foo values(?1, ?2);"
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT insert ARGS 1 one
-1) 1) "DONE"
-2) 1) (integer) 1
-127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT insert ARGS 2 two
-1) 1) "DONE"
-2) 1) (integer) 1
-```
-
-Then we create a new STATEMENT to insert values, and we execute the statement twice.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo;"
-1) 1) "RESULT"
-2) 1) "a"
- 2) "b"
-3) 1) "INT"
- 2) "TEXT"
-4) 1) (integer) 1
- 2) "one"
-5) 1) (integer) 2
- 2) "two"
-```
-
-We queried the values just inserted in the table executing another command.
-
-### NOW flag
-
-By default `zeeSQL` offload the SQL computation to a secondary thread. This free the main Redis thread and keep the Redis instance reactive.
-
-The `NOW` flags force `zeeSQL` to run the SQL computation in the main Redis thread.
-
-### READ\_ONLY flag
-
-The `READ_ONLY` flags communicate to `zeeSQL` that the execution will not modify the database.
-
-If the execution might modify the database, and the `READ_ONLY` flag is passed, `zeeSQL` will return an error.
-
-Passing the `READ_ONLY` flags allow `zeeSQL` to not replicate the command. Possibly saving computing resources of the replicas.
-
-**Examples**:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo where a > ?1;" READ_ONLY ARGS 1
-1) 1) "RESULT"
-2) 1) "a"
- 2) "b"
-3) 1) "INT"
- 2) "TEXT"
-4) 1) (integer) 2
- 2) "two"
-```
-
-Here we correctly used the `READ_ONLY` flag to communicate with `zeeSQL` that the command will not modify the database.
-
-`zeeSQL` correctly executes the query.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "insert into foo values(3, 'three')" READ_ONLY
-(error) Statement is not read only but it may modify the database, use `EXEC` instead.
-```
-
-In this other case, we ask `zeeSQL` to modify the database while using the `READ_ONLY` flag.
-
-`zeeSQL` correctly refuses to modify the database and returns an error.
-
-### NO\_HEADER flag
-
-By default `zeeSQL` returns information about the result set. It returns the name of the columns and their type.
-
-This information might not be useful nor desirable.
-
-With the `NO_HEADER` flag, only the result itself is returned.
-
-**Examples**:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;"
-1) 1) "RESULT"
-2) 1) "number_as_integer"
- 2) "number_as_string"
-3) 1) "INT"
- 2) "TEXT"
-4) 1) (integer) 1
- 2) "one"
-5) 1) (integer) 2
- 2) "two"
-```
-
-This is the default result from `zeeSQL`. It reports the name of the columns \(in this case `number_as_integer` and `number_as_string` and their type `INT` and `TEXT`\).
-
-If we are not intereted in such information:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;" NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 1
- 2) "one"
-3) 1) (integer) 2
- 2) "two"
-```
-
-the `NO_HEADER` flags will omit it for us.
-
-### JSON flag
-
-By default `zeeSQL` returns its result as an array of array. This makes parsing the result a little complex in some programming languages.
-
-The JSON flags instruct `zeeSQL` to return a single JSON string as result.
-
-**Examples**:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;" JSON
-"{\"rows\":[{\"number_as_integer\":1,\"number_as_string\":\"one\"},{\"number_as_integer\":2,\"number_as_string\":\"two\"}],\"number_of_rows\":2,\"columns\":{\"number_as_integer\":\"INT\",\"number_as_strin
-g\":\"TEXT\"}}"
-```
-
-The JSON is valid JSON even if compressed:
-
-```text
-$ redis-cli ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;" JSON | jq
-{
- "rows": [
- {
- "number_as_integer": 1,
- "number_as_string": "one"
- },
- {
- "number_as_integer": 2,
- "number_as_string": "two"
- }
- ],
- "number_of_rows": 2,
- "columns": {
- "number_as_integer": "INT",
- "number_as_string": "TEXT"
- }
-}
-```
-
-Of course, this can be combined with the `NO_HEADER` flag.
-
-```text
-$ redis-cli ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;" JSON NO_HEADER | jq
-{
- "rows": [
- {
- "number_as_integer": 1,
- "number_as_string": "one"
- },
- {
- "number_as_integer": 2,
- "number_as_string": "two"
- }
- ]
-}
-```
-
-### INTO stream
-
-`zeeSQL` can push the result of a computation in a Redis Stream.
-
-This is desirable if you want to:
-
-1. consume the result at a later time,
-2. or cache the result,
-3. or if the result is rather big and you don't want to send all of it over the network.
-
-The `INTO stream` option will inform `zeeSQL` to push the result of the computation into the Redis STREAM called `stream`.
-
-The `INTO stream` option is available only if the query is marked as `READ_ONLY`.
-
-The command executes [`XADD`](https://redis.io/commands/xadd) to the stream.
-
-If the stream does not exist a new one is created.
-
-If the stream already exists the rows are simply appended.
-
-The command itself is eager, hence it computes the whole result, append it into the stream, and then it returns. Once the command returns, the whole result set is already in the Redis stream.
-
-The return value of the command depends on the result of the query:
-
-If the result of the query is empty, it simply returns `["DONE", 0]`.
-
-If at least one row is returned by the query the command returns:
-
-1.the name of the stream where it appended the resulting rows, which is always the one passed as input 2. the first ID added to the stream 3. the last ID added to the stream 4. and the total number of entries added to the stream.
-
-Using a standard Redis Stream all the standard consideration applies.
-
-1. The stream is not deleted by zeeSQL, hence it can be used for caching, on the other hand too many streams will use memory.
-2. The stream uses a standard Redis key, in a cluster environment you should be sure that the database that is executing the query and the stream that will accommodate the results are on the same cluster node.
-
-This can be accomplished easily by forcing the stream name to hash to the same cluster node of the database, it is sufficient to use a `stream_name` composed as such `{db_key}:what:ever:here`. Redis will hash only the part between the `{` and `}` to compute the cluster node. 3. The result can be consumed using the standard [Redis streams commands](https://redis.io/commands#stream), two good starting points are [`XREAD`](https://redis.io/commands/xread) and [`XRANGE`](https://redis.io/commands/xrange).
-
-The key of the stream elements are the tuple `(type, column name)` separated by a colon `:`.
-
-**Examples**:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo;" INTO foo_stream
-(error) Asked a STREAM, but the query is not `READ_ONLY` (flag not set), this is not supported.
-```
-
-At first, we tried to push the result of a query that is not marked as `READ_ONLY` and this correctly fails.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo where a > 100;" READ_ONLY INTO foo_stream
-1) 1) "DONE"
-2) 1) (integer) 0
-```
-
-Above we execute a query that returns an empty result.
-
-`zeeSQL` simply communicates to us that the result is empty.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo;" READ_ONLY INTO foo_stream 1) 1) "RESULT"
-2) 1) "foo_stream"
- 2) "1612797707753-0"
- 3) "1612797707753-1"
- 4) (integer) 2
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo;" READ_ONLY INTO foo_stream JSON
-"{\"rows\":[{\"stream\":\"foo_stream\",\"first_id\":\"1612797722505-0\",\"last_id\":\"1612797722505-1\",\"size\":2}]}"
-```
-
-Then we push into the Redis stream `foo_stream` the result of the query `select * from foo`.
-
-We do it twice, once using the standard return and the second time using the JSON return.
-
-We pushed twice, a query that returned two results, so we expect 4 elements in the stream.
-
-```text
-127.0.0.1:6379> XLEN foo_stream
-(integer) 4
-```
-
-We can read the elements from the stream using the standard Redis stream interface. In this case, we are going to read only the first two elements.
-
-```text
-127.0.0.1:6379> XRANGE foo_stream - + COUNT 2
-1) 1) "1612797707753-0"
- 2) 1) "int:a"
- 2) "1"
- 3) "text:b"
- 4) "one"
-2) 1) "1612797707753-1"
- 2) 1) "int:a"
- 2) "2"
- 3) "text:b"
- 4) "two"
-```
-
-**Complexity**: Besides the complexity of the query, the `INTO stream` options add the complexity of adding each row to the Redis stream, which is `O(n)` where `n` is the amount of row returned by the query.
-
-**See also**:
-
-1. [Redis Streams Intro](https://redis.io/topics/streams-intro)
-2. [Redis Streams Commands](https://redis.io/commands#stream)
-3. [`XADD`](https://redis.io/commands/xadd)
-4. [`XREAD`](https://redis.io/commands/xread)
-5. [`XRANGE`](https://redis.io/commands/xrange)
-
-### ARGS arguments
-
-The ARGS arguments are used to pass arguments to the statement or command.
-
-They are variadic, and you can pass as many as you need.
-
-In the SQL, the first argument will be bound to `?1`, the second to `?2`, and so on. Please note that the first argument is NOT bound to `?0`.
-
-If an argument is not bound, for instance, you pass a query with `?4` but only provide 3 arguments, then, that argument is bound to `NULL`.
-
-Redis works using a text protocol, all the arguments are encoded as text, hence the module is forced to use the procedure `sqlite3_bind_text`, however, SQLite is smart enough to recognize numbers and treat them correctly. Numbers will be treated as numbers and text will be treated as text.
-
-**See also**:
-
-1. [SQLite `sqlite3_prepare_v2`](https://sqlite.org/c3ref/prepare.html)
-2. [SQLite `statement` aka `sqlite3_stmt`](https://sqlite.org/c3ref/stmt.html)
-3. [SQLite `sqlite3_step`](https://sqlite.org/c3ref/step.html)
-4. [SQLite `PRAGMA`s](https://sqlite.org/pragma.html)
-5. [Redis Blocking Command](https://redis.io/topics/modules-blocking-ops)
-
-## ZEESQL.QUERY
-
-```text
-ZEESQL.QUERY db_key
- ( (COMMAND "command") | (STATEMENT statement) )
- [NOW]
- [INTO stream]
- [NO_HEADER]
- [JSON]
- [ARGS arg1 arg2 ... argn]
-```
-
-This command behaves similarly to [`ZEESQL.EXEC`](references.md#redisqlexec) but it imposes an additional constraint on the statement it executes.
-
-It only executes the statement if it is a read-only operation, otherwise, it returns an error.
-
-A read-only operation is defined by the result of calling [`sqlite3_stmt_readonly`](https://www.sqlite.org/c3ref/stmt_readonly.html) on the compiled statement.
-
-The statement is executed if and only if [`sqlite3_stmt_readonly`](https://www.sqlite.org/c3ref/stmt_readonly.html) returns true.
-
-This command is exactly like `ZEESQL.EXEC ... READ_ONLY` however it can be executed against Redis replicas.
-
-**Complexity**: Similar to [`ZEESQL.EXEC`](references.md#redisqlexec), however, if a statement is not read-only it is aborted immediately and it does return an appropriate error.
-
-**See also**:
-
-1. [SQLite `sqlite3_prepare_v2`](https://sqlite.org/c3ref/prepare.html)
-2. [SQLite `statement` aka `sqlite3_stmt`](https://sqlite.org/c3ref/stmt.html)
-3. [SQLite `sqlite3_step`](https://sqlite.org/c3ref/step.html)
-4. [SQLite `PRAGMA`s](https://sqlite.org/pragma.html)
-5. [Redis Blocking Command](https://redis.io/topics/modules-blocking-ops)
-6. [`ZEESQL.EXEC`](references.md#redisqlexec)
-7. [SQLite `sqlite3_stmt_readonly`](https://www.sqlite.org/c3ref/stmt_readonly.html)
-8. [`ZEESQL.QUERY_STATEMENT`](references.md#redisqlquery_statement)
-
-## ZEESQL.STATEMENT
-
-```text
-ZEESQL.STATEMENT db_key
- (
- (NEW stmt "query" [CAN_UPDATE]) |
- (DELETE stmt) |
- (UPDATE stmt "query" [CAN_CREATE]) |
- (SHOW stmt) |
- LIST
- )
- [NOW]
-```
-
-This command manages `zeeSQL` statements.
-
-A statement is a pre-compiled SQL query, if you are going to execute your query over and over again, it is a good idea to make it into a statement. Under the hood it is a [sqlite statement](https://sqlite.org/c3ref/stmt.html).
-
-Statements can be used in the `ZEESQL.EXEC db_key STATEMENT stmt` command and in the `ZEESQL.QUERY db_key STATEMENT stmt` command.
-
-Five different actions can be invoked with the STATEMENT command.
-
-1. Create a new statement with the `NEW` option.
-2. Delete a statement with the `DELETE` option.
-3. Update a statement with the `UPDATE` option.
-4. Show the SQL behind a statement with the `SHOW` option.
-5. List all the statements with the `LIST` option.
-
-The `STATEMENT` command includes the `NOW` flag. The `NOW` flag forces `zeeSQL` to execute the action in the main Redis thread. In standard operations mode, it should not be used.
-
-### NEW
-
-The `NEW` option takes as input the name to associate with the statement and an SQL query to compile.
-
-The command compiles the SQL query into a pre-compiled statement, and associate it with the name.
-
-The `CAN_UPDATE` flag to the `NEW` command, instruct `zeeSQL` to behave as an `UPDATE` if the statement name is already allocated to an old statement. Otherwise, without the `CAN_UPDATE` flag, if the statement name is already used by a different statement, the command fails with an error.
-
-### DELETE
-
-The `DELETE` option deletes a statement.
-
-### UPDATE
-
-The `UPDATE` option updates a statement, associating the old name with the statement compiled from the SQL query.
-
-If the name does not exists, `UPDATE` fails, unless the `CAN_CREATE` flag is provided. In such a case `UPDATE` behave like `NEW`.
-
-### SHOW
-
-The `SHOW` option returns the SQL query behind one statement.
-
-### LIST
-
-The `LIST` option returns all the statements and their SQL queries.
-
-Both `SHOW` and `LIST` will report:
-
-1. The name of the statement
-2. The SQL query associate with the statement
-3. The number of parameters the statement expects
-4. If the statement is read only or not
-
-**Complexity**: Operation on the statements happens in constant time O\(1\). Listing the statements happens in O\(n\) with `n` number of statements present in the database.
-
-**Examples**:
-
-At first we create a new statement,
-
-```text
-127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 "SELECT 1;"
-1) 1) "OK"
-```
-
-We can then list, the statement:
-
-```text
-127.0.0.1:6379> ZEESQL.STATEMENT DB LIST
-1) 1) "RESULT"
-2) 1) "identifier"
- 2) "SQL"
- 3) "parameters_count"
- 4) "read_only"
-3) 1) "TEXT"
- 2) "TEXT"
- 3) "INT"
- 4) "INT"
-4) 1) "select_1"
- 2) "SELECT 1;"
- 3) (integer) 0
- 4) (integer) 1
-```
-
-The statement can be updated, but we need to use the `UPDATE` command or the `CAN_UPDATE` flag.
-
-```text
-127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 "SELECT '1';"
-(error) The statement is already present in the database, try with UPDATE_STATEMENT
-127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 "SELECT '1';" CAN_UPDATE
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.STATEMENT DB UPDATE select_1 "SELECT '1';"
-1) 1) "OK"
-```
-
-We change `select_1` to return a string and not an integer.
-
-```text
-127.0.0.1:6379> ZEESQL.STATEMENT DB UPDATE select_plus_one "SELECT ?1 + 1;" CAN_CREATE
-1) 1) "OK"
-```
-
-We create another statement, this time we create the statement with the `UPDATE` command and the `CAN_CREATE` flag.
-
-```text
-127.0.0.1:6379> ZEESQL.STATEMENT DB LIST
-1) 1) "RESULT"
-2) 1) "identifier"
- 2) "SQL"
- 3) "parameters_count"
- 4) "read_only"
-3) 1) "TEXT"
- 2) "TEXT"
- 3) "INT"
- 4) "INT"
-4) 1) "select_1"
- 2) "SELECT '1';"
- 3) (integer) 0
- 4) (integer) 1
-5) 1) "select_plus_one"
- 2) "SELECT ?1 + 1;"
- 3) (integer) 1
- 4) (integer) 1
-127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT select_plus_one NO_HEADER ARGS 5
-1) 1) "RESULT"
-2) 1) (integer) 6
-```
-
-**See also**:
-
-1. [SQLite `sqlite3_prepare_v2`](https://sqlite.org/c3ref/prepare.html)
-2. [SQLite `statement` aka `sqlite3_stmt`](https://sqlite.org/c3ref/stmt.html)
-3. [SQLite bindings, `sqlite3_bind_text`](https://sqlite.org/c3ref/bind_blob.html)
-4. [Redis Blocking Command](https://redis.io/topics/modules-blocking-ops)
-
-## ZEESQL.COPY
-
-```text
-ZEESQL.COPY
- FROM db_key_source
- TO db_key_destination
- [NOW]
-```
-
-The command copies the source database into the destination database.
-
-The content of the destination databases is completely ignored and lost.
-
-It is not important if the databases are stored in memory or backed by disk, the `COPY` command will work nevertheless.
-
-This command is useful to:
-
-1. Create backups of databases
-2. Load data from slow, disk-based, databases into a fast in-memory one
-3. To persist data from an in-memory database into a disk-based database
-4. Initialize a database with a predefined status
-
-Usually, the destination database is an empty database just created, while the source one is a database where we have been working for a while.
-
-This command use the [backup API](https://www.sqlite.org/backup.html) of sqlite.
-
-**Complexity**: The complexity is linear on the number of pages \(dimension\) of the source database, beware it can be "slow" if the source database is big, during the copy the `source` database is busy and it cannot serve other queries.
-
-**Example**:
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB01
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND "create table foo(a, b);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND "insert into foo values(1,2),(3,4);"
-1) 1) "DONE"
-2) 1) (integer) 2
-127.0.0.1:6379> ZEESQL.CREATE_DB DB02
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB02 COMMAND "select * from foo"
-(error) no such table: foo
-127.0.0.1:6379> ZEESQL.COPY FROM DB01 TO DB02
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB02 COMMAND "select * from foo"
-1) 1) "RESULT"
-2) 1) "a"
- 2) "b"
-3) 1) "INT"
- 2) "INT"
-4) 1) (integer) 1
- 2) (integer) 2
-5) 1) (integer) 3
- 2) (integer) 4
-```
-
-In the example we create a database, we create a table, and then we pushed few rows into the table.
-
-We then create another database, but this time we didn't create the table, neither pushed any row.
-
-As expected, trying to query the second database returned an error.
-
-After copying the content of the first database into the second, the second database has become a perfect copy of the first one.
-
-**See also**:
-
-1. [Backup API](https://www.sqlite.org/backup.html)
-
-## ZEESQL.INDEX
-
-The index command accepts 3 different options:
-
-1. NEW
-2. LIST
-3. DELETE
-
-We will illustrate them separately.
-
-### ZEESQL.INDEX NEW
-
-```text
-ZEESQL.INDEX db_key
- NEW
- TABLE table_name
- [PREFIX prefix]
- SCHEMA column_name column_type [column_name column_type ...]
-```
-
-Creates a new secondary index table for the Redis hashes.
-
-The secondary index will refer to the table `table_name` and will use the columns indicated in the `SCHEMA` parameter.
-
-`column_type` can be whatever is accepted by SQLite as column name, suggestions are `TEXT`, `INT`, `FLOAT` or `BLOB`.
-
-If a prefix is provided, only the Redis hashes that start with that prefix are indexed in the table. If the prefix is omitted, the `*` prefix \(catch-all\) is assumed.
-
-If the table does not exists when the index is created, `zeeSQL` creates it.
-
-If the table already exists, `zeeSQL` takes no action. However, if the table exists but contains the wrong columns, `zeeSQL` may find it impossible to insert the hashes into the secondary index.
-
-It is possible to create multiple indexes, with the same table, same schema, but different prefix.
-
-`zeeSQL` store in the secondary index table, the main Redis hash key, as primary key.
-
-The table created by `zeeSQL` behaves like any other table, so it can be queried, modified, and indexed, using the standard `ZEESQL.EXEC` interface.
-
-No steps are taken to avoid manual deletions or updates of the secondary index table by the user.
-
-Secondary indexes are univocally identified by the combination of the table in which they write and the prefix.
-
-**Example**:
-
-In this example, we can see how to create a secondary index, and how the secondary index automatically keeps the values between Redis and zeeSQL in synchronism.
-
-```text
-127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE users prefix user:* SCHEMA username STRING score INT
-OK
-127.0.0.1:6379> HMSET user:1001 username aaa score 0
-OK
-127.0.0.1:6379> HMSET user:1002 username bbb score 0
-OK
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from users"
-1) 1) "RESULT"
-2) 1) "key"
- 2) "username"
- 3) "score"
-3) 1) "TEXT"
- 2) "TEXT"
- 3) "INT"
-4) 1) "user:1001"
- 2) "aaa"
- 3) (integer) 0
-5) 1) "user:1002"
- 2) "bbb"
- 3) (integer) 0
-127.0.0.1:6379> HINCRBY user:1002 score 3
-(integer) 3
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from users"
-1) 1) "RESULT"
-2) 1) "key"
- 2) "username"
- 3) "score"
-3) 1) "TEXT"
- 2) "TEXT"
- 3) "INT"
-4) 1) "user:1001"
- 2) "aaa"
- 3) (integer) 0
-5) 1) "user:1002"
- 2) "bbb"
- 3) (integer) 3
-```
-
-### ZEESQL.INDEX LIST
-
-The list option shows the active secondary index.
-
-The secondary indexes are identified by the table in which they write and by the prefix they use to filter the keys.
-
-**Example**:
-
-```text
-127.0.0.1:6379> ZEESQL.INDEX DB LIST
-1) 1) "RESULT"
-2) 1) "users"
- 2) "user:*"
-127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE games prefix games:* SCHEMA first_player STRING second_player STRING score_player_1 INT score_player_2 INT
-OK
-127.0.0.1:6379> ZEESQL.INDEX DB LIST
-1) 1) "RESULT"
-2) 1) "users"
- 2) "user:*"
-3) 1) "games"
- 2) "games:*"
-```
-
-### ZEESQL.INDEX DELETE
-
-```text
-ZEESQL.INDEX db_key
- DELETE
- TABLE table_name
- [PREFIX prefix]
-```
-
-The `DELETE` option removes a secondary index.
-
-Hashes that match the prefix are not inserted anymore in the table after the index is removed.
-
-The `DELETE` option takes as input the table and the prefix that identifies the secondary index to remove.
-
-If the prefix is omitted the `*` \(catch-all\) prefix is assumed.
-
-**Example**:
-
-```text
-127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE users PREFIX user:* SCHEMA username STRING score INT
-OK
-127.0.0.1:6379> HMSET user:1001 username first_user score 12
-OK
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from users" NO_HEADER
-1) 1) "RESULT"
-2) 1) "user:1001"
- 2) "first_user"
- 3) (integer) 12
-127.0.0.1:6379> ZEESQL.INDEX DB DELETE TABLE users PREFIX user:*
-1) 1) "DONE"
-2) 1) (integer) 1
-127.0.0.1:6379> HMSET user:1002 username second_user score 5
-OK
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from users" NO_HEADER
-1) 1) "RESULT"
-2) 1) "user:1001"
- 2) "first_user"
- 3) (integer) 12
-```
-
-In the example, we first create an index.
-
-Then we add a Redis hash that matches the secondary index prefix, so it is added to the secondary index table.
-
-Then, delete the index.
-
-And we can confirm that new users are not added any more to the secondary index table.
-
-## ZEESQL.LICENSE
-
-```text
-ZEESQL.LICENSE
- ( SET "license" ) | SHOW
-```
-
-The `SET` option will set the license to use for `zeeSQL`.
-
-The license is first checked against our backend server, and if the license is correct, it will return `OK` otherwise it will return an error.
-
-It is required an internet connection to set the license.
-
-The `SHOW` option will show the license that is actually in use in your `zeeSQL` process.
-
diff --git a/docs/secondary-indexes.md b/docs/secondary-indexes.md
deleted file mode 100644
index ee209fe..0000000
--- a/docs/secondary-indexes.md
+++ /dev/null
@@ -1,371 +0,0 @@
-# zeeSQL and secondary indexes, how to search Redis key by value
-
-Redis, at his heart, is a key-value store. It makes it simple, easy, and fast to search for values given their keys.
-
-Often time, however, is necessary to look for keys that values respect some properties.
-
-For instance, find all the keys for which their value is greater than 5. Or the keys that have a value set to a specific string like "admin".
-
-The standard solution for this problem in Redis is to keep a set of secondary indexes. To keep everything in sync, those secondary indexes need to be updated along with the primary keys. Keeping the indexes in sync is an activity that the developer who uses Redis need to take care of, and it brings a sizable increment in complexity.
-
-zeeSQL aims to solve this problem.
-
-## Redis Hashes
-
-Redis provides different data structures, one of them is Redis Hashes.
-
-Redis Hashes map between string fields and string values. From the Redis documentation:
-
-```text
-HMSET user:1000 username antirez password P1pp0 age 34
-HGETALL user:1000
-HSET user:1000 password 12345
-HGETALL user:1000
-```
-
-In this case to the Redis key `user:1000` we associate a Redis Hash.
-
-The Redis Hash has 3 fields, `username` with value `antirez`, `password` with value `P1pp0`, and `age` with value 34.
-
-Redis Hashes are the only data structure that can be indexed using zeeSQL.
-
-At the moment, zeeSQL we can index only Redis Hashes.
-
-## Creating the Index
-
-Secondary indexes in zeeSQL are standard SQL tables.
-
-The user needs to provide the schema of the table, and zeeSQL will automatically keep the table in sync with the Redis Hashes.
-
-The user can also provide a prefix so that only some Redis Hashes, the ones that match the prefix, are stored in the secondary index.
-
-A secondary table can be created using the [`ZEESQL.INDEX` command](references.md#zeesql-index-new).
-
-```text
-> ZEESQL.INDEX DB NEW TABLE $table_name [PREFIX prefix] SCHEMA column_name column_type [column_name column_type]
-```
-
-This command will perform two actions.
-
-At first, it will try to create a table called `$table_name`. If the table already exists, this step is skipped. If the table does not exists, the new table is created with the columns indicated after the `SCHEMA` keyword.
-
-After the table is created, we register a callback.
-
-The callback, listen to all the events that happen to the keys that start with the prefix, if the prefix is omitted, the callback listen to events for all the keys.
-
-The callback is invoked passing as arguments the type of event and against which key the event was fired. From there, the callback has all the information it needs to keep the secondary index table in sync.
-
-Every time that one key, matching the prefix is modified, zeeSQL updates the secondary index table.
-
-## Secondary index table structure
-
-The structure of the secondary index table is very simple.
-
-There is a primary key, which is always a string, which value is the Redis key itself. In the Redis Hash above, the primary key will be the value `user:1000`
-
-Next to the primary key, there are all the columns defined in the schema, with their respective types.
-
-## It is JUST A TABLE
-
-The secondary index table is a standard SQLite table.
-
-There is nothing special about it, besides being managed by zeeSQL itself and not by the user.
-
-You can, of course, query it, in whichever way you find more appropriate.
-
-However, you could also modify it, even though it is strongly discouraged.
-
-Being a standard SQLite table, it is possible to define indexes also on your secondary index table. This will allow even faster lookups.
-
-Moreover, it is also possible to define triggers.
-
-## Fire and forget
-
-The commands to modify the secondary index tables, are fire and forget.
-
-The works seamlessly on a standard table without constraints. However, if you start to add constraints and triggers to the secondary index table, it will be your responsibility to keep the database in a consistent state.
-
-Unfortunately, zeeSQL cannot provide any feedback, if an update or insertion failed.
-
-The use cases when this could be a problem, are extremely advanced.
-
-## An Example
-
-In our Redis we can store users for a simple online game. Of those users we store a simple ID, the name, and the score.
-
-We want to search for all the user who scores is greater than 5.
-
-We start by creating a zeeSQL database.
-
-```text
-> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-```
-
-Now we can start populating our users.
-
-```text
-127.0.0.1:6379> HMSET user:100 id 100 name foo score 3
-OK
-127.0.0.1:6379> HMSET user:103 id 103 name bar score 5
-OK
-127.0.0.1:6379> HMSET user:105 id 105 name baz score 4
-```
-
-We have created 3 users, each with its own name, id, and score.
-
-At this point, we can create a secondary index.
-
-```text
-127.0.0.1:6379> ZEESQL.INDEX DB NEW PREFIX user:* TABLE users SCHEMA id INT name STRING score INT
-OK
-```
-
-Now we have created the secondary index table.
-
-We can visualize what table was created by querying the `sqlite_master` special table.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from sqlite_master;"
-1) 1) "RESULT"
-2) 1) "type"
- 2) "name"
- 3) "tbl_name"
- 4) "rootpage"
- 5) "sql"
-3) 1) "TEXT"
- 2) "TEXT"
- 3) "TEXT"
- 4) "INT"
- 5) "TEXT"
-5) 1) "table"
- 2) "users"
- 3) "users"
- 4) (integer) 3
- 5) "CREATE TABLE users(key PRIMARY KEY, id INT, name STRING, score INT)"
-```
-
-Exactly what we would expect, the `key` column as primary key, where we will store the key of the Redis Hash, and then the schema we asked for.
-
-Since the secondary index was created after some Redis Hashes were already inside Redis, the table is already populated.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from users;"
-1) 1) "RESULT"
-2) 1) "key"
- 2) "id"
- 3) "name"
- 4) "score"
-3) 1) "TEXT"
- 2) "INT"
- 3) "TEXT"
- 4) "INT"
-4) 1) "user:105"
- 2) (integer) 105
- 3) "baz"
- 4) (integer) 4
-5) 1) "user:103"
- 2) (integer) 103
- 3) "bar"
- 4) (integer) 5
-6) 1) "user:100"
- 2) (integer) 100
- 3) "foo"
- 4) (integer) 3
-```
-
-If now we add a new user, the new user will be automatically added to the secondary index table.
-
-```text
-127.0.0.1:6379> HMSET user:109 id 109 name joe score 2
-OK
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from users;"
-1) 1) "RESULT"
-2) 1) "key"
- 2) "id"
- 3) "name"
- 4) "score"
-3) 1) "TEXT"
- 2) "INT"
- 3) "TEXT"
- 4) "INT"
-4) 1) "user:105"
- 2) (integer) 105
- 3) "baz"
- 4) (integer) 4
-5) 1) "user:103"
- 2) (integer) 103
- 3) "bar"
- 4) (integer) 5
-6) 1) "user:100"
- 2) (integer) 100
- 3) "foo"
- 4) (integer) 3
-7) 1) "user:109"
- 2) (integer) 109
- 3) "joe"
- 4) (integer) 2
-```
-
-Similarly, if a user is updated, the table will reflect the new status of the Redis Hash.
-
-```text
-127.0.0.1:6379> HSET user:109 score 5
-(integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from users where id = 109;"
-1) 1) "RESULT"
-2) 1) "key"
- 2) "id"
- 3) "name"
- 4) "score"
-3) 1) "TEXT"
- 2) "INT"
- 3) "TEXT"
- 4) "INT"
-4) 1) "user:109"
- 2) (integer) 109
- 3) "joe"
- 4) (integer) 5
-```
-
-Similarly, a Redis Hash deleted, will be removed from the secondary index table.
-
-```text
-127.0.0.1:6379> DEL user:105 user:103
-(integer) 2
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from users;"
-1) 1) "RESULT"
-2) 1) "key"
- 2) "id"
- 3) "name"
- 4) "score"
-3) 1) "TEXT"
- 2) "INT"
- 3) "TEXT"
- 4) "INT"
-4) 1) "user:100"
- 2) (integer) 100
- 3) "foo"
- 4) (integer) 3
-5) 1) "user:109"
- 2) (integer) 109
- 3) "joe"
- 4) (integer) 5
-```
-
-## More advanced example
-
-The first example was very straightforward. But we can use zeeSQL for something more.
-
-For instance, maybe we want to give a rank to our users.
-
-Users with a score between 0 and 5 will be "novice" and users with a score above it will be expert.
-
-An easy way to achieve this would be to create a view on top of the `users` tables.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "create view ranked_users AS select id, name, score, case when score < 5 then 'novice' else 'expert' end as rank from users;"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from ranked_users;"
-1) 1) "RESULT"
-2) 1) "id"
- 2) "name"
- 3) "score"
- 4) "rank"
-3) 1) "INT"
- 2) "TEXT"
- 3) "INT"
- 4) "TEXT"
-4) 1) (integer) 100
- 2) "foo"
- 3) (integer) 3
- 4) "novice"
-5) 1) (integer) 109
- 2) "joe"
- 3) (integer) 5
- 4) "expert"
-```
-
-If the user with ID 100, gains a few more points, he will become an expert as well.
-
-Using views on top of secondary indexes, we only need to care about the user score, not about the rank. Using plain Redis we would need to keep track also of the rank ourselves.
-
-```text
-127.0.0.1:6379> HSET user:100 score 7
-(integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from ranked_users;"
-1) 1) "RESULT"
-2) 1) "id"
- 2) "name"
- 3) "score"
- 4) "rank"
-3) 1) "INT"
- 2) "TEXT"
- 3) "INT"
- 4) "TEXT"
-4) 1) (integer) 100
- 2) "foo"
- 3) (integer) 7
- 4) "expert"
-5) 1) (integer) 109
- 2) "joe"
- 3) (integer) 5
- 4) "expert"
-```
-
-If our game gains a lot of users some queries could become slow.
-
-On top of the secondary index table, it is possible to add SQLite indexes.
-
-For instance, we might want to know how many users have a particular score. If there are a lot of users, this query might be slow.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "explain query plan select * from users where score = 3;"
-1) 1) "RESULT"
-2) 1) "id"
- 2) "parent"
- 3) "notused"
- 4) "detail"
-3) 1) "INT"
- 2) "INT"
- 3) "INT"
- 4) "TEXT"
-4) 1) (integer) 2
- 2) (integer) 0
- 3) (integer) 0
- 4) "SCAN TABLE users"
-```
-
-This query uses a full table scan.
-
-We can do better defining an index:
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "create index user_rank on users(score);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "explain query plan select * from users where score = 3;"
-1) 1) "RESULT"
-2) 1) "id"
- 2) "parent"
- 3) "notused"
- 4) "detail"
-3) 1) "INT"
- 2) "INT"
- 3) "INT"
- 4) "TEXT"
-4) 1) (integer) 3
- 2) (integer) 0
- 3) (integer) 0
- 4) "SEARCH TABLE users USING INDEX user_rank (score=?)"
-```
-
-## Conclusion
-
-In this article, we show how to use secondary indexes in zeeSQL.
-
-They are very powerful and useful when you are simplifying your queries against Redis Hashes. Moreover, they allow you to think only about the main data, it is the query engine that finds the best way to query your data for you.
-
-The important takeaway from this article should be that the table creates as zeeSQL secondary indexes are just standard tables. As such, those tables can be manipulated in whichever way the application developer finds more opportune.
-
diff --git a/docs/tutorial.md b/docs/tutorial.md
deleted file mode 100644
index cd95aba..0000000
--- a/docs/tutorial.md
+++ /dev/null
@@ -1,373 +0,0 @@
-# Tutorial
-
-### Setting up the environment
-
-This tutorial will walk you through the most important commands of `zeeSQL` and how to use them.
-
-The simplest way to follow this tutorial is to launch an instance of `zeeSQL` using docker.
-
-```text
-docker run --name zeesql --rm -d redbeardlab/zeesql
-```
-
-The next thing you will need to follow the tutorial is the `redis-cli`.
-
-You can connect to the same docker container and start the `redis-cli` with:
-
-```text
-docker exec -it zeesql redis-cli
-```
-
-At this point you are inside the `redis-cli`, ready to interact with `Redis` and `zeeSQL`.
-
-### Creating a database in zeeSQL
-
-The very first step when working with `zeeSQL` it is to create a new database.
-
-The database can be created with a single command.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-```
-
-This command will create a new database, and it will associate it with the Redis key `DB`.
-
-Any time we want to interact with this database, we will pass `DB` to the `zeeSQL` commands.
-
-It is possible to create more than one database, you can create as many as you like, since they are very lightweight.
-
-### Sending commands to the database
-
-After creating a database, we want to interact with it. It is possible to interact with the database sending it commands.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select 1;' NO_HEADER
-1) 1) "RESULT"
-2) 1) (integer) 1
-```
-
-We have successfully sent our first command to `zeeSQL` and get our first `RESULT`, the integer 1.
-
-### Modify the database structure
-
-A database without tables is not very useful. We will now create a table to store information about users.
-
-In the table we want to store the username, its score and the user email. The username and the email will be text fields, while the score will be an integer field.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'CREATE TABLE users(username TEXT, score INT, email TEXT);'
-1) 1) "DONE"
-2) 1) (integer) 0
-```
-
-The operation was successfully and 0 rows have been modified.
-
-However, we now have a table where we can store information about the user.
-
-### Add data to the database
-
-We can now start to add users to our table.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("jsmith", 3, "jon.smith@gmail.com");'
-1) 1) "DONE"
-2) 1) (integer) 1
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("EvelineInArgentina", 3, "eve.frank@yahoo.com");'
-1) 1) "DONE"
-2) 1) (integer) 1
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("DuffyAlone", 12, "mr.duffy@proton.com");'
-1) 1) "DONE"
-2) 1) (integer) 1
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("far", 6, "farrington@nv.ru");'
-1) 1) "DONE"
-2) 1) (integer) 1
-```
-
-Each insert was successful and each one added one more row to the database.
-
-### Query the database
-
-After having added data to the database, we want to query those data back.
-
-We can ask for the score of the user `jsmith`
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT score FROM users WHERE username = "jsmith"'
-1) 1) "RESULT"
-2) 1) "score"
-3) 1) "INT"
-4) 1) (integer) 3
-```
-
-In this case the score is an integer, and it is of value 3.
-
-Or to know what users have a score greater than 5
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT username FROM users WHERE score > 5'
-1) 1) "RESULT"
-2) 1) "username"
-3) 1) "TEXT"
-4) 1) "DuffyAlone"
-5) 1) "far"
-```
-
-In this other case the usernames are of type TEXT and are: `DuffyAlone` and `far`.
-
-Since we are not modifying the database, instead of EXECUTING a command with `EXEC` we can just QUERY.
-
-```text
-127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT username FROM users WHERE score > 5'
-1) 1) "RESULT"
-2) 1) "username"
-3) 1) "TEXT"
-4) 1) "DuffyAlone"
-5) 1) "far"
-```
-
-`QUERY` does not work when trying to modify the database.
-
-```text
-127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'INSERT INTO users VALUES("far", 6, "farrington@nv.ru");'
-(error) Statement is not read only but it may modify the database, use `EXEC_STATEMENT` instead.
-```
-
-### Modify the data
-
-Our users, keep using our platform, are increasing their score. We can increase the score with an update.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + 1 WHERE username = "jsmith";'
-1) 1) "DONE"
-2) 1) (integer) 1
-127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = "jsmith"'
-1) 1) "RESULT"
-2) 1) "score"
-3) 1) "INT"
-4) 1) (integer) 4
-```
-
-In this example, we first increase the score of the user `jsmith` of one, and then we query the same score.
-
-### Delete the data
-
-Eventually our user will leave the platform, in this case we can delete them.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'DELETE FROM users WHERE username = "far";'
-1) 1) "DONE"
-2) 1) (integer) 1
-```
-
-### Use arguments for your queries
-
-Up to now, we send only SQL queries that contains all the parameters. It is also possible to send a query with placeholders followed by arguments. This is useful to avoid SQL injections attacks and to avoid string constructions at runtime.
-
-In our example we can increment the score of a player by a specific amount.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + ?2 WHERE username = ?1;' ARGS jsmith 3
-1) 1) "DONE"
-2) 1) (integer) 1
-127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = ?1' ARGS jsmith
-1) 1) "RESULT"
-2) 1) "score"
-3) 1) "INT"
-4) 1) (integer) 7
-```
-
-The first argument is `?1` \(not `?0`\) and the second argument is `?2`.
-
-## Using secondary indexes \(or search by values\) in Redis
-
-Now that we have understood how to deal with standard zeeSQL databases and how to query them, we can move forward.
-
-Now we will introduce zeeSQL secondary indexes, or how to search and project Redis `hash` data.
-
-In Redis, it is common to store values as hash. Each hash is univocally identify by a key, and it has one of more field. Each field has a value associated with.
-
-Redis already provide fast access to elements by their key. But it is not possible to search keys from their values.
-
-With zeeSQL we can solve this problem, but automatically push the hashes keys and values to a specific table.
-
-We will work with a simple telemetric system. We have different sensors, each sensor send a timestamp, a temperature value and a humidity value.
-
-### Saving the data into Redis
-
-As first step let's see how we model the data in raw Redis, using Redis Hashes.
-
-```text
-127.0.0.1:6379> HMSET sensor:001:1612733809 timestamp 1612733809 sensor 1 temperature 23 humidity 56
-OK
-127.0.0.1:6379> HMSET sensor:001:1612633809 timestamp 1612633809 sensor 1 temperature 18 humidity 21
-OK
-127.0.0.1:6379> HMSET sensor:001:1612633819 timestamp 1612633819 sensor 1 temperature 20 humidity 23
-OK
-127.0.0.1:6379> HMSET sensor:002:1612733809 timestamp 1612733809 sensor 2 temperature 32 humidity 11
-OK
-127.0.0.1:6379> HMSET sensor:002:1612633809 timestamp 1612633809 sensor 2 temperature 21 humidity 16
-OK
-127.0.0.1:6379> HMSET sensor:002:1612633819 timestamp 1612633819 sensor 2 temperature 23 humidity 12
-OK
-```
-
-The key is in the form `sensor:$sendor_id:$timestamp` and the other fields contains the telemetries' data.
-
-### Creating an index
-
-We now want to store the information in the sensor in an SQL table, for easier access.
-
-```text
-127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE sensors PREFIX sensor:* SCHEMA timestamp INT sensor INT temperature INT humidity INT
-OK
-```
-
-The command creates a new secondary index associate with the table `sensors`. The index will be concerned only for the hashes which key start with the prefix `sensor:` \(`*` being a catch-all\). The schema used by the index will have 4 rows, each of them will be an INTEGER, and the name of those columns are respectively `timestamp`. `sensor`, `temperature` and `humidity`.
-
-The creation of an index, imply the creation of the table in the database. If the table already exists, it is assumed to contain the correct columns.
-
-### Reading data from the index
-
-As soon as the index is created, the Redis keys space is scanned and the hashes are added to the table. Which means that we can immediately query the table.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors;'
-1) 1) "RESULT"
-2) 1) "key"
- 2) "timestamp"
- 3) "sensor"
- 4) "temperature"
- 5) "humidity"
-3) 1) "TEXT"
- 2) "INT"
- 3) "INT"
- 4) "INT"
- 5) "INT"
-4) 1) "sensor:001:1612633809"
- 2) (integer) 1612633809
- 3) (integer) 1
- 4) (integer) 18
- 5) (integer) 21
-5) 1) "sensor:002:1612733809"
- 2) (integer) 1612733809
- 3) (integer) 2
- 4) (integer) 32
- 5) (integer) 11
-6) 1) "sensor:001:1612733809"
- 2) (integer) 1612733809
- 3) (integer) 1
- 4) (integer) 23
- 5) (integer) 56
-7) 1) "sensor:002:1612633819"
- 2) (integer) 1612633819
- 3) (integer) 2
- 4) (integer) 23
- 5) (integer) 12
-8) 1) "sensor:002:1612633809"
- 2) (integer) 1612633809
- 3) (integer) 2
- 4) (integer) 21
- 5) (integer) 16
-9) 1) "sensor:001:1612633819"
- 2) (integer) 1612633819
- 3) (integer) 1
- 4) (integer) 20
- 5) (integer) 23
-```
-
-### Modify the table of the index
-
-It is possible to add, remove and update values to the index table manually. Do not do that, the data between Redis and zeeSQL will go out of sync.
-
-### Adding hashes
-
-The index continuously listens to the HASH commands of Redis and keeps the table in sync.
-
-```text
-127.0.0.1:6379> HMSET sensor:003:1612633819 timestamp 1612633819 sensor 3 temperature 50 humidity 8
-OK
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors where sensor = 3;'
-1) 1) "RESULT"
-2) 1) "key"
- 2) "timestamp"
- 3) "sensor"
- 4) "temperature"
- 5) "humidity"
-3) 1) "TEXT"
- 2) "INT"
- 3) "INT"
- 4) "INT"
- 5) "INT"
-4) 1) "sensor:003:1612633819"
- 2) (integer) 1612633819
- 3) (integer) 3
- 4) (integer) 50
- 5) (integer) 8
-```
-
-In this example we added the sensor with ID 3, after the secondary index was already in place.
-
-### Removing hashes
-
-Similarly, if a hash is deleted, the correct row is deleted from the table.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'
-1) 1) "RESULT"
-2) 1) "key"
-3) 1) "TEXT"
-4) 1) "sensor:002:1612733809"
-5) 1) "sensor:002:1612633819"
-6) 1) "sensor:002:1612633809"
-127.0.0.1:6379> DEL sensor:002:1612633809
-(integer) 1
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'
-1) 1) "RESULT"
-2) 1) "key"
-3) 1) "TEXT"
-4) 1) "sensor:002:1612733809"
-5) 1) "sensor:002:1612633819"
-```
-
-As you can see we delete a hash, and the correct row was deleted also from the table.
-
-### Updating hashes
-
-As with deletion, updating a hash is also reflected on the index table.
-
-```text
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'
-1) 1) "RESULT"
-2) 1) "key"
- 2) "temperature"
-3) 1) "TEXT"
- 2) "INT"
-4) 1) "sensor:003:1612633819"
- 2) (integer) 50
-127.0.0.1:6379> HINCRBY sensor:003:1612633819 temperature 33
-(integer) 83
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'
-1) 1) "RESULT"
-2) 1) "key"
- 2) "temperature"
-3) 1) "TEXT"
- 2) "INT"
-4) 1) "sensor:003:1612633819"
- 2) (integer) 83
-```
-
-In this case we update a hash, and also the table was updated.
-
-### Querying the secondary index table
-
-The secondary index table, it is just a plain SQL table. zeeSQL does not add any index on the table. User is free to add the SQL indexes it desired to the secondary index table.
-
-Without any index, each query will go through a full table scan.
-
-## End
-
-I hope that this tutorial was helpful :\)
-
-If you have any question, feel free to contact me simone@redbeardlab.com or on github: [RedBeardLab/zeeSQL-doc](https://github.com/RedBeardLab/zeeSQL-doc)
-
diff --git a/docs/why-migrate.md b/docs/why-migrate.md
deleted file mode 100644
index fb40798..0000000
--- a/docs/why-migrate.md
+++ /dev/null
@@ -1,186 +0,0 @@
-# Why you should migrate from RediSQL to zeeSQL
-
-zeeSQL is the successor of RediSQL. zeeSQL is RediSQL V2.
-
-It is based on largely the same codebase but improved in several ways with novel features.
-
-## Secondary indexes, or search by value
-
-Secondaries indexes allow searching Redis keys by value. If you are interested in searching Redis keys by value or manipulate Redis hashes without maintains secondary data structures, secondary indexes are a perfect way to do it.
-
-Secondary indexes have been introduced in RediSQL V2, also know as zeeSQL.
-
-Secondary indexes themselves are a more than valid motivation to switch to zeeSQL instead of keeping using RediSQL.
-
-## Better API
-
-The APIs of zeeSQL are just better.
-
-They are more flexible, they allow extensions, and they provide more information to the user.
-
-The zeeSQL APIs were improved keeping what worked well with RediSQL and fixing what could have been improved.
-
-### Return type and column name
-
-The new APIs of zeeSQL, by default, return both the column name and the column type.
-
-This allows writing wrappers or client library that automatically creates the correct type reading from Redis.
-
-In the example below, you can see what RediSQL returned, versus what zeeSQL returns.
-
-```text
-127.0.0.1:6379> REDISQL.V1.CREATE_DB DB
-OK
-127.0.0.1:6379> REDISQL.V1.EXEC DB "create table foo(a, b, c);"
-1) DONE
-2) (integer) 0
-127.0.0.1:6379> REDISQL.V1.EXEC DB "insert into foo values(1 , 'aaa', 2)"
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.V1.EXEC DB "select * from foo;"
-1) 1) (integer) 1
- 2) "aaa"
- 3) (integer) 2
-127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo;"
-1) 1) "RESULT"
-2) 1) "a"
- 2) "b"
- 3) "c"
-3) 1) "INT"
- 2) "TEXT"
- 3) "INT"
-4) 1) (integer) 1
- 2) "aaa"
- 3) (integer) 2
-```
-
-The result from zeeSQL is more structured. It contains the columns' name, then their type, and finally the rows.
-
-The result from RediSQL returns directly the rows without providing information about the column name and their type.
-
-### Structured returns
-
-Values from zeeSQL and RediSQL can either be:
-
-1. OK
-2. DONE
-3. Some result set
-
-RediSQL returns either:
-
-1. A simple string with the value "OK"
-2. An array with first string the "DONE" string
-3. A nested array, that has as first elements of the first subarray, the string "RESULT"
-
-This is clearly suboptimal and it was fixed in zeeSQL.
-
-zeeSQL returns always a nested array.
-
-The first element, of the first subarray, identify the type of the result. It can be either the string "OK", or the string "DONE" or the string "RESULT".
-
-But zeeSQL returns **always** a nested array.
-
-Let's compare the same workflow with RediSQL and with zeeSQL.
-
-```text
-127.0.0.1:6379> REDISQL.V1.CREATE_DB DB
-OK
-127.0.0.1:6379> REDISQL.V1.EXEC DB "create table foo(a, b, c);"
-1) DONE
-2) (integer) 0
-127.0.0.1:6379> REDISQL.V1.EXEC DB "insert into foo values(1 , 'aaa', 2)"
-1) DONE
-2) (integer) 1
-127.0.0.1:6379> REDISQL.V1.EXEC DB "select * from foo;"
-1) 1) (integer) 1
- 2) "aaa"
- 3) (integer) 2
-```
-
-In this example, RediSQL returned three different types of results.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB1
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "create table foo(a);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "insert into foo values(1),(2);"
-1) 1) "DONE"
-2) 1) (integer) 2
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "select * from foo;"
-1) 1) "RESULT"
-2) 1) "a"
-3) 1) "INT"
-4) 1) (integer) 1
-5) 1) (integer) 2
-```
-
-In this other example, zeeSQL returned always a single type of result, a nested array.
-
-### The JSON flag
-
-The [JSON flag](references.md#json-flag) is a new feature of zeeSQL, not available in RediSQL.
-
-Instead of returning a nested subarray, that in some programming language are difficult to manage, we can return a single JSON string that represents the same result set.
-
-This makes working with zeeSQL much simpler in both dynamic and statically typed languages.
-
-The string returned in a valid JSON string.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB1
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "create table foo(a);" JSON
-"{\"result\":\"done\",\"modified_rows\":0}"
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "insert into foo values(1),(2);" JSON
-"{\"result\":\"done\",\"modified_rows\":2}"
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "select * from foo;" JSON
-"{\"rows\":[{\"a\":1},{\"a\":2}],\"number_of_rows\":2,\"columns\":{\"a\":\"INT\"}}"
-```
-
-### Arguments to the EXEC and QUERY command
-
-In RediSQL there is no way to pass arguments to simple queries.
-
-You can either submit a full query, or create a statement, and submit the statement with arguments.
-
-[In zeeSQL is possible to submit queries with arguments.](references.md#args-arguments) Especially if the arguments are coming from the users you should always submit them as arguments.
-
-In RediSQL you had no choice, but to create a statement, and bind the arguments. In zeeSQL you can bind them to a simple query, without the need of creating a statement.
-
-```text
-127.0.0.1:6379> ZEESQL.CREATE_DB DB
-1) 1) "OK"
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "create table foo(a);"
-1) 1) "DONE"
-2) 1) (integer) 0
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "insert into foo values(?1 + 3),(?2 + ?1);" ARGS 5 2
-1) 1) "DONE"
-2) 1) (integer) 2
-127.0.0.1:6379> ZEESQL.EXEC DB1 COMMAND "select * from foo;"
-1) 1) "RESULT"
-2) 1) "a"
-3) 1) "INT"
-4) 1) (integer) 8
-5) 1) (integer) 7
-```
-
-## Maintainance
-
-zeeSQL is maintained, RediSQL is not maintained anymore.
-
-Code updates, security fixes, and SQLite engine upgrades will happen only in zeeSQL.
-
-No changes at all are expected to RediSQL.
-
-## Backward compatibility
-
-Besides all these upgrades, zeeSQL maintains backward compatibility with RediSQL.
-
-All the RediSQL commands are prefixed by the `REDISQL.` string.
-
-In zeeSQL you can find exactly the same commands, with exactly the same semantic, but a different prefix: `REDISQL.V1.`.
-
-So if in RediSQL you used the `REDISQL.EXEC` command, with zeeSQL you can use the exact same command with `REDISQL.V1.EXEC`.
-
diff --git a/fonts/fontawesome-webfont.eot b/fonts/fontawesome-webfont.eot
new file mode 100644
index 0000000..e9f60ca
Binary files /dev/null and b/fonts/fontawesome-webfont.eot differ
diff --git a/fonts/fontawesome-webfont.svg b/fonts/fontawesome-webfont.svg
new file mode 100644
index 0000000..855c845
--- /dev/null
+++ b/fonts/fontawesome-webfont.svg
@@ -0,0 +1,2671 @@
+
+
+
diff --git a/fonts/fontawesome-webfont.ttf b/fonts/fontawesome-webfont.ttf
new file mode 100644
index 0000000..35acda2
Binary files /dev/null and b/fonts/fontawesome-webfont.ttf differ
diff --git a/fonts/fontawesome-webfont.woff b/fonts/fontawesome-webfont.woff
new file mode 100644
index 0000000..400014a
Binary files /dev/null and b/fonts/fontawesome-webfont.woff differ
diff --git a/fonts/fontawesome-webfont.woff2 b/fonts/fontawesome-webfont.woff2
new file mode 100644
index 0000000..500e517
Binary files /dev/null and b/fonts/fontawesome-webfont.woff2 differ
diff --git a/fonts/glyphicons-halflings-regular.eot b/fonts/glyphicons-halflings-regular.eot
new file mode 100644
index 0000000..b93a495
Binary files /dev/null and b/fonts/glyphicons-halflings-regular.eot differ
diff --git a/fonts/glyphicons-halflings-regular.svg b/fonts/glyphicons-halflings-regular.svg
new file mode 100644
index 0000000..94fb549
--- /dev/null
+++ b/fonts/glyphicons-halflings-regular.svg
@@ -0,0 +1,288 @@
+
+
+
\ No newline at end of file
diff --git a/fonts/glyphicons-halflings-regular.ttf b/fonts/glyphicons-halflings-regular.ttf
new file mode 100644
index 0000000..1413fc6
Binary files /dev/null and b/fonts/glyphicons-halflings-regular.ttf differ
diff --git a/fonts/glyphicons-halflings-regular.woff b/fonts/glyphicons-halflings-regular.woff
new file mode 100644
index 0000000..9e61285
Binary files /dev/null and b/fonts/glyphicons-halflings-regular.woff differ
diff --git a/fonts/glyphicons-halflings-regular.woff2 b/fonts/glyphicons-halflings-regular.woff2
new file mode 100644
index 0000000..64539b5
Binary files /dev/null and b/fonts/glyphicons-halflings-regular.woff2 differ
diff --git a/img/favicon.ico b/img/favicon.ico
new file mode 100644
index 0000000..e85006a
Binary files /dev/null and b/img/favicon.ico differ
diff --git a/img/grid.png b/img/grid.png
new file mode 100644
index 0000000..f030a9d
Binary files /dev/null and b/img/grid.png differ
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..99039dd
--- /dev/null
+++ b/index.html
@@ -0,0 +1,465 @@
+
+
+
+
+
+
+
+
+
+
+ zeeSQL
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
We have successfully sent our first command to zeeSQL and get our first RESULT, the integer 1.
+
Modify the database structure
+
A database without tables is not very useful.
+We will now create a table to store information about users.
+
In the table we want to store the username, its score and the user email.
+The username and the email will be text fields, while the score will be an integer field.
The operation was successfully and 0 rows have been modified.
+
However, we now have a table where we can store information about the user.
+
Add data to the database
+
We can now start to add users to our table.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("jsmith", 3, "jon.smith@gmail.com");'
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("EvelineInArgentina", 3, "eve.frank@yahoo.com");'
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("DuffyAlone", 12, "mr.duffy@proton.com");'
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("far", 6, "farrington@nv.ru");'
+1) 1) "DONE"
+2) 1) (integer) 1
+
+
+
Each insert was successful and each one added one more row to the database.
+
Query the database
+
After having added data to the database, we want to query those data back.
+
We can ask for the score of the user jsmith
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT score FROM users WHERE username = "jsmith"'
+1) 1) "RESULT"
+2) 1) "score"
+3) 1) "INT"
+4) 1) (integer) 3
+
+
+
In this case the score is an integer, and it is of value 3.
+
Or to know what users have a score greater than 5
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT username FROM users WHERE score > 5'
+1) 1) "RESULT"
+2) 1) "username"
+3) 1) "TEXT"
+4) 1) "DuffyAlone"
+5) 1) "far"
+
+
+
In this other case the usernames are of type TEXT and are: DuffyAlone and far.
+
Since we are not modifying the database, instead of EXECUTING a command with EXEC we can just QUERY.
+
127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT username FROM users WHERE score > 5'
+1) 1) "RESULT"
+2) 1) "username"
+3) 1) "TEXT"
+4) 1) "DuffyAlone"
+5) 1) "far"
+
+
+
QUERY does not work when trying to modify the database.
+
127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'INSERT INTO users VALUES("far", 6, "farrington@nv.ru");'
+(error) Statement is not read only but it may modify the database, use `EXEC_STATEMENT` instead.
+
+
+
Modify the data
+
Our users, keep using our platform, are increasing their score. We can increase the score with an update.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + 1 WHERE username = "jsmith";'
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = "jsmith"'
+1) 1) "RESULT"
+2) 1) "score"
+3) 1) "INT"
+4) 1) (integer) 4
+
+
+
In this example, we first increase the score of the user jsmith of one, and then we query the same score.
+
Delete the data
+
Eventually our user will leave the platform, in this case we can delete them.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'DELETE FROM users WHERE username = "far";'
+1) 1) "DONE"
+2) 1) (integer) 1
+
+
+
Use arguments for your queries
+
Up to now, we send only SQL queries that contains all the parameters.
+It is also possible to send a query with placeholders followed by arguments.
+This is useful to avoid SQL injections attacks and to avoid string constructions at runtime.
+
In our example we can increment the score of a player by a specific amount.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + ?2 WHERE username = ?1;' ARGS jsmith 3
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = ?1' ARGS jsmith
+1) 1) "RESULT"
+2) 1) "score"
+3) 1) "INT"
+4) 1) (integer) 7
+
+
+
The first argument is ?1 (not ?0) and the second argument is ?2.
+
Using secondary indexes (or search by values) in Redis
+
Now that we have understood how to deal with standard zeeSQL databases and how to query them, we can move forward.
+
Now we will introduce zeeSQL secondary indexes, or how to search and project Redis hash data.
+
In Redis, it is common to store values as hash.
+Each hash is univocally identify by a key, and it has one of more field.
+Each field has a value associated with.
+
Redis already provide fast access to elements by their key.
+But it is not possible to search keys from their values.
+
With zeeSQL we can solve this problem, but automatically push the hashes keys and values to a specific table.
+
We will work with a simple telemetric system.
+We have different sensors, each sensor send a timestamp, a temperature value and a humidity value.
+
Saving the data into Redis
+
As first step let's see how we model the data in raw Redis, using Redis Hashes.
The key is in the form sensor:$sendor_id:$timestamp and the other fields contains the telemetries' data.
+
Creating an index
+
We now want to store the information in the sensor in an SQL table, for easier access.
+
127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE sensors PREFIX sensor:* SCHEMA timestamp INT sensor INT temperature INT humidity INT
+OK
+
+
+
The command creates a new secondary index associate with the table sensors.
+The index will be concerned only for the hashes which key start with the prefix sensor: (* being a catch-all).
+The schema used by the index will have 4 rows, each of them will be an INTEGER, and the name of those columns are respectively timestamp. sensor, temperature and humidity.
+
The creation of an index, imply the creation of the table in the database.
+If the table already exists, it is assumed to contain the correct columns.
+
Reading data from the index
+
As soon as the index is created, the Redis keys space is scanned and the hashes are added to the table.
+Which means that we can immediately query the table.
In this example we added the sensor with ID 3, after the secondary index was already in place.
+
Removing hashes
+
Similarly, if a hash is deleted, the correct row is deleted from the table.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'
+1) 1) "RESULT"
+2) 1) "key"
+3) 1) "TEXT"
+4) 1) "sensor:002:1612733809"
+5) 1) "sensor:002:1612633819"
+6) 1) "sensor:002:1612633809"
+127.0.0.1:6379> DEL sensor:002:1612633809
+(integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'
+1) 1) "RESULT"
+2) 1) "key"
+3) 1) "TEXT"
+4) 1) "sensor:002:1612733809"
+5) 1) "sensor:002:1612633819"
+
+
+
As you can see we delete a hash, and the correct row was deleted also from the table.
+
Updating hashes
+
As with deletion, updating a hash is also reflected on the index table.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'
+1) 1) "RESULT"
+2) 1) "key"
+ 2) "temperature"
+3) 1) "TEXT"
+ 2) "INT"
+4) 1) "sensor:003:1612633819"
+ 2) (integer) 50
+127.0.0.1:6379> HINCRBY sensor:003:1612633819 temperature 33
+(integer) 83
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'
+1) 1) "RESULT"
+2) 1) "key"
+ 2) "temperature"
+3) 1) "TEXT"
+ 2) "INT"
+4) 1) "sensor:003:1612633819"
+ 2) (integer) 83
+
+
+
In this case we update a hash, and also the table was updated.
+
Querying the secondary index table
+
The secondary index table, it is just a plain SQL table.
+zeeSQL does not add any index on the table.
+User is free to add the SQL indexes it desired to the secondary index table.
+
Without any index, each query will go through a full table scan.
+
End
+
I hope that this tutorial was helpful :)
+
If you have any question, feel free to contact me simone@redbeardlab.com or on github: RedBeardLab/zeeSQL-doc
+
+
+
+
+
+
+
+
+
+
+
+
Search
+
+
+
+ From here you can search these documents. Enter
+ your search terms below.
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/js/base.js b/js/base.js
new file mode 100644
index 0000000..b8eeb03
--- /dev/null
+++ b/js/base.js
@@ -0,0 +1,62 @@
+function getSearchTerm()
+{
+ var sPageURL = window.location.search.substring(1);
+ var sURLVariables = sPageURL.split('&');
+ for (var i = 0; i < sURLVariables.length; i++)
+ {
+ var sParameterName = sURLVariables[i].split('=');
+ if (sParameterName[0] == 'q')
+ {
+ return sParameterName[1];
+ }
+ }
+}
+
+$(document).ready(function() {
+
+ var search_term = getSearchTerm(),
+ $search_modal = $('#mkdocs_search_modal');
+
+ if(search_term){
+ $search_modal.modal();
+ }
+
+ // make sure search input gets autofocus everytime modal opens.
+ $search_modal.on('shown.bs.modal', function () {
+ $search_modal.find('#mkdocs-search-query').focus();
+ });
+
+ // Highlight.js
+ hljs.initHighlightingOnLoad();
+ $('table').addClass('table table-striped table-hover');
+
+ // Improve the scrollspy behaviour when users click on a TOC item.
+ $(".bs-sidenav a").on("click", function() {
+ var clicked = this;
+ setTimeout(function() {
+ var active = $('.nav li.active a');
+ active = active[active.length - 1];
+ if (clicked !== active) {
+ $(active).parent().removeClass("active");
+ $(clicked).parent().addClass("active");
+ }
+ }, 50);
+ });
+
+});
+
+
+$('body').scrollspy({
+ target: '.bs-sidebar',
+});
+
+/* Toggle the `clicky` class on the body when clicking links to let us
+ retrigger CSS animations. See ../css/base.css for more details. */
+$('a').click(function(e) {
+ $('body').toggleClass('clicky');
+});
+
+/* Prevent disabled links from causing a page reload */
+$("li.disabled a").click(function() {
+ event.preventDefault();
+});
diff --git a/js/bootstrap-3.0.3.min.js b/js/bootstrap-3.0.3.min.js
new file mode 100644
index 0000000..1a6258e
--- /dev/null
+++ b/js/bootstrap-3.0.3.min.js
@@ -0,0 +1,7 @@
+/*!
+ * Bootstrap v3.0.3 (http://getbootstrap.com)
+ * Copyright 2013 Twitter, Inc.
+ * Licensed under http://www.apache.org/licenses/LICENSE-2.0
+ */
+
+if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]'),b=!0;if(a.length){var c=this.$element.find("input");"radio"===c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?b=!1:a.find(".active").removeClass("active")),b&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}b&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(!e.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(j),j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(j),j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?(this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350),void 0):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(){a(d).remove(),a(e).each(function(b){var d=c(a(this));d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown")),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown"))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){if("ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('').insertAfter(a(this)).on("click",b),f.trigger(d=a.Event("show.bs.dropdown")),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown"),e.focus()}return!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=a("[role=menu] li:not(.divider):visible a",f);if(h.length){var i=h.index(h.filter(":focus"));38==b.keyCode&&i>0&&i--,40==b.keyCode&&i').appendTo(document.body),this.$element.on("click.dismiss.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c);f||e.data("bs.modal",f=new b(this,g)),"string"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focus",i="hover"==g?"mouseleave":"blur";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show),void 0):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide),void 0):c.hide()},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass("fade");var d="function"==typeof this.options.placement?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,e=/\s?auto?\s?/i,f=e.test(d);f&&(d=d.replace(e,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m="body"==this.options.container?window.innerWidth:j.outerWidth(),n="body"==this.options.container?window.innerHeight:j.outerHeight(),o="body"==this.options.container?0:j.offset().left;d="bottom"==d&&g.top+g.height+i-l>n?"top":"top"==d&&g.top-l-i<0?"bottom":"right"==d&&g.right+h>m?"left":"left"==d&&g.left-h'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top()),"function"==typeof h&&(h=f.bottom());var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()}))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery);
\ No newline at end of file
diff --git a/js/highlight.pack.js b/js/highlight.pack.js
new file mode 100644
index 0000000..a5818df
--- /dev/null
+++ b/js/highlight.pack.js
@@ -0,0 +1,2 @@
+!function(e){"undefined"!=typeof exports?e(exports):(window.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return window.hljs}))}(function(e){function n(e){return e.replace(/&/gm,"&").replace(//gm,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0==t.index}function a(e){var n=(e.className+" "+(e.parentNode?e.parentNode.className:"")).split(/\s+/);return n=n.map(function(e){return e.replace(/^lang(uage)?-/,"")}),n.filter(function(e){return N(e)||/no(-?)highlight|plain|text/.test(e)})[0]}function i(e,n){var t,r={};for(t in e)r[t]=e[t];if(n)for(t in n)r[t]=n[t];return r}function o(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function u(e,r,a){function i(){return e.length&&r.length?e[0].offset!=r[0].offset?e[0].offset"}function u(e){l+=""+t(e)+">"}function c(e){("start"==e.event?o:u)(e.node)}for(var s=0,l="",f=[];e.length||r.length;){var g=i();if(l+=n(a.substr(s,g[0].offset-s)),s=g[0].offset,g==e){f.reverse().forEach(u);do c(g.splice(0,1)[0]),g=i();while(g==e&&g.length&&g[0].offset==s);f.reverse().forEach(o)}else"start"==g[0].event?f.push(g[0].node):f.pop(),c(g.splice(0,1)[0])}return l+n(a.substr(s))}function c(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,o){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var u={},c=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");u[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?c("keyword",a.k):Object.keys(a.k).forEach(function(e){c(e,a.k[e])}),a.k=u}a.lR=t(a.l||/\b\w+\b/,!0),o&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&o.tE&&(a.tE+=(a.e?"|":"")+o.tE)),a.i&&(a.iR=t(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]);var s=[];a.c.forEach(function(e){e.v?e.v.forEach(function(n){s.push(i(e,n))}):s.push("self"==e?a:e)}),a.c=s,a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,o);var l=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=l.length?t(l.join("|"),!0):{exec:function(){return null}}}}r(e)}function s(e,t,a,i){function o(e,n){for(var t=0;t";return i+=e+'">',i+n+o}function d(){if(!L.k)return n(y);var e="",t=0;L.lR.lastIndex=0;for(var r=L.lR.exec(y);r;){e+=n(y.substr(t,r.index-t));var a=g(L,r);a?(B+=a[1],e+=p(a[0],n(r[0]))):e+=n(r[0]),t=L.lR.lastIndex,r=L.lR.exec(y)}return e+n(y.substr(t))}function h(){if(L.sL&&!w[L.sL])return n(y);var e=L.sL?s(L.sL,y,!0,M[L.sL]):l(y);return L.r>0&&(B+=e.r),"continuous"==L.subLanguageMode&&(M[L.sL]=e.top),p(e.language,e.value,!1,!0)}function b(){return void 0!==L.sL?h():d()}function v(e,t){var r=e.cN?p(e.cN,"",!0):"";e.rB?(k+=r,y=""):e.eB?(k+=n(t)+r,y=""):(k+=r,y=t),L=Object.create(e,{parent:{value:L}})}function m(e,t){if(y+=e,void 0===t)return k+=b(),0;var r=o(t,L);if(r)return k+=b(),v(r,t),r.rB?0:t.length;var a=u(L,t);if(a){var i=L;i.rE||i.eE||(y+=t),k+=b();do L.cN&&(k+=""),B+=L.r,L=L.parent;while(L!=a.parent);return i.eE&&(k+=n(t)),y="",a.starts&&v(a.starts,""),i.rE?0:t.length}if(f(t,L))throw new Error('Illegal lexeme "'+t+'" for mode "'+(L.cN||"")+'"');return y+=t,t.length||1}var E=N(e);if(!E)throw new Error('Unknown language: "'+e+'"');c(E);var R,L=i||E,M={},k="";for(R=L;R!=E;R=R.parent)R.cN&&(k=p(R.cN,"",!0)+k);var y="",B=0;try{for(var C,j,I=0;;){if(L.t.lastIndex=I,C=L.t.exec(t),!C)break;j=m(t.substr(I,C.index-I),C[0]),I=C.index+j}for(m(t.substr(I)),R=L;R.parent;R=R.parent)R.cN&&(k+="");return{r:B,value:k,language:e,top:L}}catch(S){if(-1!=S.message.indexOf("Illegal"))return{r:0,value:n(t)};throw S}}function l(e,t){t=t||x.languages||Object.keys(w);var r={r:0,value:n(e)},a=r;return t.forEach(function(n){if(N(n)){var t=s(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}}),a.language&&(r.second_best=a),r}function f(e){return x.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,n){return n.replace(/\t/g,x.tabReplace)})),x.useBR&&(e=e.replace(/\n/g," ")),e}function g(e,n,t){var r=n?E[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function p(e){var n=a(e);if(!/no(-?)highlight|plain|text/.test(n)){var t;x.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ /g,"\n")):t=e;var r=t.textContent,i=n?s(n,r,!0):l(r),c=o(t);if(c.length){var p=document.createElementNS("http://www.w3.org/1999/xhtml","div");p.innerHTML=i.value,i.value=u(c,o(p),r)}i.value=f(i.value),e.innerHTML=i.value,e.className=g(e.className,n,i.language),e.result={language:i.language,re:i.r},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.r})}}function d(e){x=i(x,e)}function h(){if(!h.called){h.called=!0;var e=document.querySelectorAll("pre code");Array.prototype.forEach.call(e,p)}}function b(){addEventListener("DOMContentLoaded",h,!1),addEventListener("load",h,!1)}function v(n,t){var r=w[n]=t(e);r.aliases&&r.aliases.forEach(function(e){E[e]=n})}function m(){return Object.keys(w)}function N(e){return w[e]||w[E[e]]}var x={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},w={},E={};return e.highlight=s,e.highlightAuto=l,e.fixMarkup=f,e.highlightBlock=p,e.configure=d,e.initHighlighting=h,e.initHighlightingOnLoad=b,e.registerLanguage=v,e.listLanguages=m,e.getLanguage=N,e.inherit=i,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="\\b(0[xX][a-fA-F0-9]+|(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.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)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e});hljs.registerLanguage("objectivec",function(e){var t={cN:"built_in",b:"(AV|CA|CF|CG|CI|MK|MP|NS|UI)\\w+"},i={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",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},o=/[a-zA-Z@][a-zA-Z0-9_]*/,n="@interface @class @protocol @implementation";return{aliases:["m","mm","objc","obj-c"],k:i,l:o,i:"",c:[t,e.CLCM,e.CBCM,e.CNM,e.QSM,{cN:"string",v:[{b:'@"',e:'"',i:"\\n",c:[e.BE]},{b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"}]},{cN:"preprocessor",b:"#",e:"$",c:[{cN:"title",v:[{b:'"',e:'"'},{b:"<",e:">"}]}]},{cN:"class",b:"("+n.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:n,l:o,c:[e.UTM]},{cN:"variable",b:"\\."+e.UIR,r:0}]}});hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>]/,c:[{cN:"operator",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 savepoint release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke",e:/;/,eW:!0,k:{keyword:"abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length character_length charindex charset check checksum checksum_agg choose close coalesce coercibility collate collation collationproperty column columns columns_updated commit compress concat concat_ws concurrent connect connection connection_id consistent constraint constraints continue contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime data database databases datalength date_add date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec engine engines eomonth errors escape escaped event eventdata events except exception exec execute exists exp explain export_set extended external extract fast fetch field fields find_in_set first first_value floor flush for force foreign format found found_rows from from_base64 from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner innodb input insert install instr intersect into is is_free_lock is_ipv4 is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names national natural nchar next no no_write_to_binlog not now nullif nvarchar oct octet_length of old_password on only open optimize option optionally or ord order outer outfile output pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges procedure procedure_analyze processlist profile profiles public publishingservername purge quarter query quick quote quotename radians rand read references regexp relative relaylog release release_lock rename repair repeat replace replicate reset restore restrict return returns reverse revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll sec_to_time second section select serializable server session session_user set sha sha1 sha2 share show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_variant_property sqlstate sqrt square start starting status std stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short validate_password_strength value values var var_pop var_samp variables variance varp version view warnings week weekday weekofyear weight_string when whenever where with work write xml xor year yearweek zon",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int integer interval number numeric real serial smallint varchar varying int8 serial8 text"},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.CBCM,t]}});hljs.registerLanguage("javascript",function(e){return{aliases:["js"],k:{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 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 Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},c:[{cN:"pi",r:10,v:[{b:/^\s*('|")use strict('|")/},{b:/^\s*('|")use asm('|")/}]},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",b:"\\b(0[xXbBoO][a-fA-F0-9]+|(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/,e:/>\s*[);\]]/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+e.IR,r:0},{bK:"import",e:"[;$]",k:"import from as",c:[e.ASM,e.QSM]},{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]}]}});hljs.registerLanguage("scss",function(e){{var t="[a-zA-Z-][a-zA-Z0-9_-]*",i={cN:"variable",b:"(\\$"+t+")\\b"},r={cN:"function",b:t+"\\(",rB:!0,eE:!0,e:"\\("},o={cN:"hexcolor",b:"#[0-9A-Fa-f]+"};({cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{cN:"value",eW:!0,eE:!0,c:[r,o,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"important",b:"!important"}]}})}return{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,r,{cN:"id",b:"\\#[A-Za-z0-9_-]+",r:0},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"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",r:0},{cN:"pseudo",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)"},{cN:"pseudo",b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},i,{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]"},{cN:"value",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"},{cN:"value",b:":",e:";",c:[r,i,o,e.CSSNM,e.QSM,e.ASM,{cN:"important",b:"!important"}]},{cN:"at_rule",b:"@",e:"[{;]",k:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",c:[r,i,e.QSM,e.ASM,o,e.CSSNM,{cN:"preprocessor",b:"\\s[A-Za-z0-9_.-]+",r:0}]}]}});hljs.registerLanguage("mel",function(e){return{k:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",i:"",c:[e.CNM,e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE]},{cN:"variable",v:[{b:"\\$\\d"},{b:"[\\$\\%\\@](\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)"},{b:"\\*(\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)",r:0}]},e.CLCM,e.CBCM]}});hljs.registerLanguage("d",function(e){var r={keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},t="(0|[1-9][\\d_]*)",a="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",n="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",c="0[xX]"+n,_="([eE][+-]?"+a+")",d="("+a+"(\\.\\d*|"+_+")|\\d+\\."+a+a+"|\\."+t+_+"?)",o="(0[xX]("+n+"\\."+n+"|\\.?"+n+")[pP][+-]?"+a+")",s="("+t+"|"+i+"|"+c+")",l="("+o+"|"+d+")",u="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",b={cN:"number",b:"\\b"+s+"(L|u|U|Lu|LU|uL|UL)?",r:0},f={cN:"number",b:"\\b("+l+"([fF]|L|i|[fF]i|Li)?|"+s+"(i|[fF]i|Li))",r:0},g={cN:"string",b:"'("+u+"|.)",e:"'",i:"."},h={b:u,r:0},p={cN:"string",b:'"',c:[h],e:'"[cwd]?'},w={cN:"string",b:'[rq]"',e:'"[cwd]?',r:5},N={cN:"string",b:"`",e:"`[cwd]?"},A={cN:"string",b:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',r:10},F={cN:"string",b:'q"\\{',e:'\\}"'},m={cN:"shebang",b:"^#!",e:"$",r:5},y={cN:"preprocessor",b:"#(line)",e:"$",r:5},L={cN:"keyword",b:"@[a-zA-Z_][a-zA-Z_\\d]*"},v=e.C("\\/\\+","\\+\\/",{c:["self"],r:10});return{l:e.UIR,k:r,c:[e.CLCM,e.CBCM,v,A,p,w,N,F,f,b,g,m,y,L]}});hljs.registerLanguage("ruleslanguage",function(T){return{k:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},c:[T.CLCM,T.CBCM,T.ASM,T.QSM,T.CNM,{cN:"array",b:"#[a-zA-Z .]+"}]}});hljs.registerLanguage("actionscript",function(e){var a="[a-zA-Z_$][a-zA-Z0-9_$]*",c="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)",t={cN:"rest_arg",b:"[.]{3}",e:a,r:10};return{aliases:["as"],k:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},c:[e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{cN:"package",bK:"package",e:"{",c:[e.TM]},{cN:"class",bK:"class interface",e:"{",eE:!0,c:[{bK:"extends implements"},e.TM]},{cN:"preprocessor",bK:"import include",e:";"},{cN:"function",bK:"function",e:"[{;]",eE:!0,i:"\\S",c:[e.TM,{cN:"params",b:"\\(",e:"\\)",c:[e.ASM,e.QSM,e.CLCM,e.CBCM,t]},{cN:"type",b:":",e:c,r:10}]}]}});hljs.registerLanguage("coffeescript",function(e){var c={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",reserved:"case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",t={cN:"subst",b:/#\{/,e:/}/,k:c},r=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,t]},{b:/"/,e:/"/,c:[e.BE,t]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[t,e.HCM]},{b:"//[gim]*",r:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{cN:"property",b:"@"+n},{b:"`",e:"`",eB:!0,eE:!0,sL:"javascript"}];t.c=r;var i=e.inherit(e.TM,{b:n}),s="(\\(.*\\))?\\s*\\B[-=]>",o={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:c,c:["self"].concat(r)}]};return{aliases:["coffee","cson","iced"],k:c,i:/\/\*/,c:r.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+n+"\\s*=\\s*"+s,e:"[-=]>",rB:!0,c:[i,o]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:s,e:"[-=]>",rB:!0,c:[o]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{cN:"attribute",b:n+":",e:":",rB:!0,rE:!0,r:0}])}});hljs.registerLanguage("tex",function(c){var e={cN:"command",b:"\\\\[a-zA-Zа-яА-я]+[\\*]?"},m={cN:"command",b:"\\\\[^a-zA-Zа-яА-я0-9]"},r={cN:"special",b:"[{}\\[\\]\\~]",r:0};return{c:[{b:"\\\\[a-zA-Zа-яА-я]+[\\*]? *= *-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",rB:!0,c:[e,m,{cN:"number",b:" *=",e:"-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",eB:!0}],r:10},e,m,r,{cN:"formula",b:"\\$\\$",e:"\\$\\$",c:[e,m,r],r:0},{cN:"formula",b:"\\$",e:"\\$",c:[e,m,r],r:0},c.C("%","$",{r:0})]}});hljs.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",constant:"true false iota nil",typename:"bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:t,i:"",c:[e.CLCM,e.CBCM,e.QSM,{cN:"string",b:"'",e:"[^\\\\]'"},{cN:"string",b:"`",e:"`"},{cN:"number",b:e.CNR+"[dflsi]?",r:0},e.CNM]}});hljs.registerLanguage("vbscript-html",function(s){return{sL:"xml",subLanguageMode:"continuous",c:[{b:"<%",e:"%>",sL:"vbscript"}]}});hljs.registerLanguage("haskell",function(e){var c=[e.C("--","$"),e.C("{-","-}",{c:["self"]})],a={cN:"pragma",b:"{-#",e:"#-}"},i={cN:"preprocessor",b:"^#",e:"$"},n={cN:"type",b:"\\b[A-Z][\\w']*",r:0},t={cN:"container",b:"\\(",e:"\\)",i:'"',c:[a,i,{cN:"type",b:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TM,{b:"[_a-z][\\w']*"})].concat(c)},l={cN:"container",b:"{",e:"}",c:t.c};return{aliases:["hs"],k:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",c:[{cN:"module",b:"\\bmodule\\b",e:"where",k:"module where",c:[t].concat(c),i:"\\W\\.|;"},{cN:"import",b:"\\bimport\\b",e:"$",k:"import|0 qualified as hiding",c:[t].concat(c),i:"\\W\\.|;"},{cN:"class",b:"^(\\s*)?(class|instance)\\b",e:"where",k:"class family instance where",c:[n,t].concat(c)},{cN:"typedef",b:"\\b(data|(new)?type)\\b",e:"$",k:"data family type newtype deriving",c:[a,n,t,l].concat(c)},{cN:"default",bK:"default",e:"$",c:[n,t].concat(c)},{cN:"infix",bK:"infix infixl infixr",e:"$",c:[e.CNM].concat(c)},{cN:"foreign",b:"\\bforeign\\b",e:"$",k:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",c:[n,e.QSM].concat(c)},{cN:"shebang",b:"#!\\/usr\\/bin\\/env runhaskell",e:"$"},a,i,e.QSM,e.CNM,n,e.inherit(e.TM,{b:"^[_a-z][\\w']*"}),{b:"->|<-"}].concat(c)}});hljs.registerLanguage("scilab",function(e){var n=[e.CNM,{cN:"string",b:"'|\"",e:"'|\"",c:[e.BE,{b:"''"}]}];return{aliases:["sci"],k:{keyword:"abort break case clear catch continue do elseif else endfunction end for functionglobal if pause return resume select try then while%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp errorexec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isemptyisinfisnan isvector lasterror length load linspace list listfiles log10 log2 logmax min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand realround sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tantype typename warning zeros matrix"},i:'("|#|/\\*|\\s+/\\w+)',c:[{cN:"function",bK:"function endfunction",e:"$",k:"function endfunction|10",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)"}]},{cN:"transposed_variable",b:"[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",e:"",r:0},{cN:"matrix",b:"\\[",e:"\\]'*[\\.']*",r:0,c:n},e.C("//","$")].concat(n)}});hljs.registerLanguage("profile",function(e){return{c:[e.CNM,{cN:"built_in",b:"{",e:"}$",eB:!0,eE:!0,c:[e.ASM,e.QSM],r:0},{cN:"filename",b:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",e:":",eE:!0},{cN:"header",b:"(ncalls|tottime|cumtime)",e:"$",k:"ncalls tottime|10 cumtime|10 filename",r:10},{cN:"summary",b:"function calls",e:"$",c:[e.CNM],r:10},e.ASM,e.QSM,{cN:"function",b:"\\(",e:"\\)$",c:[e.UTM],r:0}]}});hljs.registerLanguage("thrift",function(e){var t="bool byte i16 i32 i64 double string binary";return{k:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:t,literal:"true false"},c:[e.QSM,e.NM,e.CLCM,e.CBCM,{cN:"class",bK:"struct enum service exception",e:/\{/,i:/\n/,c:[e.inherit(e.TM,{starts:{eW:!0,eE:!0}})]},{b:"\\b(set|list|map)\\s*<",e:">",k:t,c:["self"]}]}});hljs.registerLanguage("matlab",function(e){var a=[e.CNM,{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]}],s={r:0,c:[{cN:"operator",b:/'['\.]*/}]};return{k:{keyword:"break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson"},i:'(//|"|#|/\\*|\\s+/\\w+)',c:[{cN:"function",bK:"function",e:"$",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)"},{cN:"params",b:"\\[",e:"\\]"}]},{b:/[a-zA-Z_][a-zA-Z_0-9]*'['\.]*/,rB:!0,r:0,c:[{b:/[a-zA-Z_][a-zA-Z_0-9]*/,r:0},s.c[0]]},{cN:"matrix",b:"\\[",e:"\\]",c:a,r:0,starts:s},{cN:"cell",b:"\\{",e:/}/,c:a,r:0,starts:s},{b:/\)/,r:0,starts:s},e.C("^\\s*\\%\\{\\s*$","^\\s*\\%\\}\\s*$"),e.C("\\%","$")].concat(a)}});hljs.registerLanguage("vbscript",function(e){return{aliases:["vbs"],cI:!0,k:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},i:"//",c:[e.inherit(e.QSM,{c:[{b:'""'}]}),e.C(/'/,/$/,{r:0}),e.CNM]}});hljs.registerLanguage("capnproto",function(t){return{aliases:["capnp"],k:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},c:[t.QSM,t.NM,t.HCM,{cN:"shebang",b:/@0x[\w\d]{16};/,i:/\n/},{cN:"number",b:/@\d+\b/},{cN:"class",bK:"struct enum",e:/\{/,i:/\n/,c:[t.inherit(t.TM,{starts:{eW:!0,eE:!0}})]},{cN:"class",bK:"interface",e:/\{/,i:/\n/,c:[t.inherit(t.TM,{starts:{eW:!0,eE:!0}})]}]}});hljs.registerLanguage("xl",function(e){var t="ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts",o={keyword:"if then else do while until for loop import with is as where when by data constant",literal:"true false nil",type:"integer real text name boolean symbol infix prefix postfix block tree",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at",module:t,id:"text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons"},a={cN:"constant",b:"[A-Z][A-Z_0-9]+",r:0},r={cN:"variable",b:"([A-Z][a-z_0-9]+)+",r:0},i={cN:"id",b:"[a-z][a-z_0-9]+",r:0},l={cN:"string",b:'"',e:'"',i:"\\n"},n={cN:"string",b:"'",e:"'",i:"\\n"},s={cN:"string",b:"<<",e:">>"},c={cN:"number",b:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?",r:10},_={cN:"import",bK:"import",e:"$",k:{keyword:"import",module:t},r:0,c:[l]},d={cN:"function",b:"[a-z].*->"};return{aliases:["tao"],l:/[a-zA-Z][a-zA-Z0-9_?]*/,k:o,c:[e.CLCM,e.CBCM,l,n,s,d,_,a,r,i,c,e.NM]}});hljs.registerLanguage("scala",function(e){var t={cN:"annotation",b:"@[A-Za-z]+"},a={cN:"string",b:'u?r?"""',e:'"""',r:10},r={cN:"symbol",b:"'\\w[\\w\\d_]*(?!')"},c={cN:"type",b:"\\b[A-Z][A-Za-z0-9_]*",r:0},i={cN:"title",b:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,r:0},l={cN:"class",bK:"class object trait type",e:/[:={\[(\n;]/,c:[{cN:"keyword",bK:"extends with",r:10},i]},n={cN:"function",bK:"def val",e:/[:={\[(\n;]/,c:[i]};return{k:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},c:[e.CLCM,e.CBCM,a,e.QSM,r,c,n,l,e.CNM,t]}});hljs.registerLanguage("elixir",function(e){var n="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",b="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",c={cN:"subst",b:"#\\{",e:"}",l:n,k:b},a={cN:"string",c:[e.BE,c],v:[{b:/'/,e:/'/},{b:/"/,e:/"/}]},i={cN:"function",bK:"def defp defmacro",e:/\B\b/,c:[e.inherit(e.TM,{b:n,endsParent:!0})]},s=e.inherit(i,{cN:"class",bK:"defmodule defrecord",e:/\bdo\b|$|;/}),l=[a,e.HCM,s,i,{cN:"constant",b:"(\\b[A-Z_]\\w*(.)?)+",r:0},{cN:"symbol",b:":",c:[a,{b:r}],r:0},{cN:"symbol",b:n+":",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"->"},{b:"("+e.RSR+")\\s*",c:[e.HCM,{cN:"regexp",i:"\\n",c:[e.BE,c],v:[{b:"/",e:"/[a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}],r:0}];return c.c=l,{l:n,k:b,c:l}});hljs.registerLanguage("sml",function(e){return{aliases:["ml"],k:{keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},i:/\/\/|>>/,l:"[a-z_]\\w*!?",c:[{cN:"literal",b:"\\[(\\|\\|)?\\]|\\(\\)"},e.C("\\(\\*","\\*\\)",{c:["self"]}),{cN:"symbol",b:"'[A-Za-z_](?!')[\\w']*"},{cN:"tag",b:"`[A-Z][\\w']*"},{cN:"type",b:"\\b[A-Z][\\w']*",r:0},{b:"[a-z_]\\w*'[\\w']*"},e.inherit(e.ASM,{cN:"char",r:0}),e.inherit(e.QSM,{i:null}),{cN:"number",b:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",r:0},{b:/[-=]>/}]}});hljs.registerLanguage("apache",function(e){var r={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"tag",b:"?",e:">"},{cN:"keyword",b:/\w+/,r:0,k:{common:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"sqbracket",b:"\\s\\[",e:"\\]$"},{cN:"cbracket",b:"[\\$%]\\{",e:"\\}",c:["self",r]},r,e.QSM]}}],i:/\S/}});hljs.registerLanguage("dockerfile",function(n){return{aliases:["docker"],cI:!0,k:{built_ins:"from maintainer cmd expose add copy entrypoint volume user workdir onbuild run env"},c:[n.HCM,{k:{built_in:"run cmd entrypoint volume add copy workdir onbuild"},b:/^ *(onbuild +)?(run|cmd|entrypoint|volume|add|copy|workdir) +/,starts:{e:/[^\\]\n/,sL:"bash",subLanguageMode:"continuous"}},{k:{built_in:"from maintainer expose env user onbuild"},b:/^ *(onbuild +)?(from|maintainer|expose|env|user|onbuild) +/,e:/[^\\]\n/,c:[n.ASM,n.QSM,n.NM,n.HCM]}]}});hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"header",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"blockquote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{cN:"horizontal_rule",b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"link_label",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link_url",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"link_reference",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:"^\\[.+\\]:",rB:!0,c:[{cN:"link_reference",b:"\\[",e:"\\]:",eB:!0,eE:!0,starts:{cN:"link_url",e:"$"}}]}]}});hljs.registerLanguage("haml",function(s){return{cI:!0,c:[{cN:"doctype",b:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",r:10},s.C("^\\s*(!=#|=#|-#|/).*$",!1,{r:0}),{b:"^\\s*(-|=|!=)(?!#)",starts:{e:"\\n",sL:"ruby"}},{cN:"tag",b:"^\\s*%",c:[{cN:"title",b:"\\w+"},{cN:"value",b:"[#\\.]\\w+"},{b:"{\\s*",e:"\\s*}",eE:!0,c:[{b:":\\w+\\s*=>",e:",\\s+",rB:!0,eW:!0,c:[{cN:"symbol",b:":\\w+"},{cN:"string",b:'"',e:'"'},{cN:"string",b:"'",e:"'"},{b:"\\w+",r:0}]}]},{b:"\\(\\s*",e:"\\s*\\)",eE:!0,c:[{b:"\\w+\\s*=",e:"\\s+",rB:!0,eW:!0,c:[{cN:"attribute",b:"\\w+",r:0},{cN:"string",b:'"',e:'"'},{cN:"string",b:"'",e:"'"},{b:"\\w+",r:0}]}]}]},{cN:"bullet",b:"^\\s*[=~]\\s*",r:0},{b:"#{",starts:{e:"}",sL:"ruby"}}]}});hljs.registerLanguage("fortran",function(e){var t={cN:"params",b:"\\(",e:"\\)"},n={constant:".False. .True.",type:"integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"};return{cI:!0,aliases:["f90","f95"],k:n,c:[e.inherit(e.ASM,{cN:"string",r:0}),e.inherit(e.QSM,{cN:"string",r:0}),{cN:"function",bK:"subroutine function program",i:"[${=\\n]",c:[e.UTM,t]},e.C("!","$",{r:0}),{cN:"number",b:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",r:0}]}});hljs.registerLanguage("smali",function(r){var t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],s=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{aliases:["smali"],c:[{cN:"string",b:'"',e:'"',r:0},r.C("#","$",{r:0}),{cN:"keyword",b:"\\s*\\.end\\s[a-zA-Z0-9]*",r:1},{cN:"keyword",b:"^[ ]*\\.[a-zA-Z]*",r:0},{cN:"keyword",b:"\\s:[a-zA-Z_0-9]*",r:0},{cN:"keyword",b:"\\s("+s.join("|")+")",r:1},{cN:"keyword",b:"\\[",r:0},{cN:"instruction",b:"\\s("+t.join("|")+")\\s",r:1},{cN:"instruction",b:"\\s("+t.join("|")+")((\\-|/)[a-zA-Z0-9]+)+\\s",r:10},{cN:"instruction",b:"\\s("+n.join("|")+")((\\-|/)[a-zA-Z0-9]+)*\\s",r:10},{cN:"class",b:"L[^(;:\n]*;",r:0},{cN:"function",b:'( |->)[^(\n ;"]*\\(',r:0},{cN:"function",b:"\\)",r:0},{cN:"variable",b:"[vp][0-9]+",r:0}]}});hljs.registerLanguage("julia",function(r){var e={keyword:"in abstract baremodule begin bitstype break catch ccall const continue do else elseif end export finally for function global if immutable import importall let local macro module quote return try type typealias using while",literal:"true false ANY ARGS CPU_CORES C_NULL DL_LOAD_PATH DevNull ENDIAN_BOM ENV I|0 Inf Inf16 Inf32 InsertionSort JULIA_HOME LOAD_PATH MS_ASYNC MS_INVALIDATE MS_SYNC MergeSort NaN NaN16 NaN32 OS_NAME QuickSort RTLD_DEEPBIND RTLD_FIRST RTLD_GLOBAL RTLD_LAZY RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_NOW RoundDown RoundFromZero RoundNearest RoundToZero RoundUp STDERR STDIN STDOUT VERSION WORD_SIZE catalan cglobal e eu eulergamma golden im nothing pi γ π φ",built_in:"ASCIIString AbstractArray AbstractRNG AbstractSparseArray Any ArgumentError Array Associative Base64Pipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError Box CFILE Cchar Cdouble Cfloat Char CharString Cint Clong Clonglong ClusterManager Cmd Coff_t Colon Complex Complex128 Complex32 Complex64 Condition Cptrdiff_t Cshort Csize_t Cssize_t Cuchar Cuint Culong Culonglong Cushort Cwchar_t DArray DataType DenseArray Diagonal Dict DimensionMismatch DirectIndexString Display DivideError DomainError EOFError EachLine Enumerate ErrorException Exception Expr Factorization FileMonitor FileOffset Filter Float16 Float32 Float64 FloatRange FloatingPoint Function GetfieldNode GotoNode Hermitian IO IOBuffer IOStream IPv4 IPv6 InexactError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException IntrinsicFunction KeyError LabelNode LambdaStaticData LineNumberNode LoadError LocalProcess MIME MathConst MemoryError MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode Nothing Number ObjectIdDict OrdinalRange OverflowError ParseError PollingFileWatcher ProcessExitedException ProcessGroup Ptr QuoteNode Range Range1 Ranges Rational RawFD Real Regex RegexMatch RemoteRef RepString RevString RopeString RoundingMode Set SharedArray Signed SparseMatrixCSC StackOverflowError Stat StatStruct StepRange String SubArray SubString SymTridiagonal Symbol SymbolNode Symmetric SystemError Task TextDisplay Timer TmStruct TopNode Triangular Tridiagonal Type TypeConstructor TypeError TypeName TypeVar UTF16String UTF32String UTF8String UdpSocket Uint Uint128 Uint16 Uint32 Uint64 Uint8 UndefRefError UndefVarError UniformScaling UnionType UnitRange Unsigned Vararg VersionNumber WString WeakKeyDict WeakRef Woodbury Zip"},t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={l:t,k:e},n={cN:"type-annotation",b:/::/},a={cN:"subtype",b:/<:/},i={cN:"number",b:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,r:0},l={cN:"char",b:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={cN:"subst",b:/\$\(/,e:/\)/,k:e},u={cN:"variable",b:"\\$"+t},d={cN:"string",c:[r.BE,c,u],v:[{b:/\w*"/,e:/"\w*/},{b:/\w*"""/,e:/"""\w*/}]},g={cN:"string",c:[r.BE,c,u],b:"`",e:"`"},s={cN:"macrocall",b:"@"+t},S={cN:"comment",v:[{b:"#=",e:"=#",r:10},{b:"#",e:"$"}]};return o.c=[i,l,n,a,d,g,s,S,r.HCM],c.c=o.c,o});hljs.registerLanguage("delphi",function(e){var r="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure",t=[e.CLCM,e.C(/\{/,/\}/,{r:0}),e.C(/\(\*/,/\*\)/,{r:10})],i={cN:"string",b:/'/,e:/'/,c:[{b:/''/}]},c={cN:"string",b:/(#\d+)+/},o={b:e.IR+"\\s*=\\s*class\\s*\\(",rB:!0,c:[e.TM]},n={cN:"function",bK:"function constructor destructor procedure",e:/[:;]/,k:"function constructor|10 destructor|10 procedure|10",c:[e.TM,{cN:"params",b:/\(/,e:/\)/,k:r,c:[i,c]}].concat(t)};return{cI:!0,k:r,i:/"|\$[G-Zg-z]|\/\*|<\/|\|/,c:[i,c,e.NM,o,n].concat(t)}});hljs.registerLanguage("brainfuck",function(r){var n={cN:"literal",b:"[\\+\\-]",r:0};return{aliases:["bf"],c:[r.C("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{rE:!0,r:0}),{cN:"title",b:"[\\[\\]]",r:0},{cN:"string",b:"[\\.,]",r:0},{b:/\+\+|\-\-/,rB:!0,c:[n]},n]}});hljs.registerLanguage("ini",function(e){return{cI:!0,i:/\S/,c:[e.C(";","$"),{cN:"title",b:"^\\[",e:"\\]"},{cN:"setting",b:"^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",e:"$",c:[{cN:"value",eW:!0,k:"on off true false yes no",c:[e.QSM,e.NM],r:0}]}]}});hljs.registerLanguage("json",function(e){var t={literal:"true false null"},i=[e.QSM,e.CNM],l={cN:"value",e:",",eW:!0,eE:!0,c:i,k:t},c={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:!0,eE:!0,c:[e.BE],i:"\\n",starts:l}],i:"\\S"},n={b:"\\[",e:"\\]",c:[e.inherit(l,{cN:null})],i:"\\S"};return i.splice(i.length,0,c,n),{c:i,k:t,i:"\\S"}});hljs.registerLanguage("powershell",function(e){var t={b:"`[\\s\\S]",r:0},r={cN:"variable",v:[{b:/\$[\w\d][\w\d_:]*/}]},o={cN:"string",b:/"/,e:/"/,c:[t,r,{cN:"variable",b:/\$[A-z]/,e:/[^A-z]/}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["ps"],l:/-?[A-z\.\-]+/,cI:!0,k:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch",literal:"$null $true $false",built_in:"Add-Content Add-History Add-Member Add-PSSnapin Clear-Content Clear-Item Clear-Item Property Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ConvertTo-Html ConvertTo-SecureString Copy-Item Copy-ItemProperty Export-Alias Export-Clixml Export-Console Export-Csv ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item Join-Path Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug Set-Service Set-TraceSource Set-Variable Sort-Object Split-Path Start-Service Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where-Object Write-Debug Write-Error Write-Host Write-Output Write-Progress Write-Verbose Write-Warning",operator:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},c:[e.HCM,e.NM,o,a,r]}});hljs.registerLanguage("gradle",function(e){return{cI:!0,k:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.NM,e.RM]}});hljs.registerLanguage("erb",function(e){return{sL:"xml",subLanguageMode:"continuous",c:[e.C("<%#","%>"),{b:"<%[%=-]?",e:"[%-]?%>",sL:"ruby",eB:!0,eE:!0}]}});hljs.registerLanguage("swift",function(e){var i={keyword:"class deinit enum extension func import init let protocol static struct subscript typealias var break case continue default do else fallthrough if in for return switch where while as dynamicType is new super self Self Type __COLUMN__ __FILE__ __FUNCTION__ __LINE__ associativity didSet get infix inout left mutating none nonmutating operator override postfix precedence prefix right set unowned unowned safe unsafe weak willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue assert bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal false filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced join lexicographicalCompare map max maxElement min minElement nil numericCast partition posix print println quickSort reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith strideof strideofValue swap swift toString transcode true underestimateCount unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafePointers withVaList"},t={cN:"type",b:"\\b[A-Z][\\w']*",r:0},n=e.C("/\\*","\\*/",{c:["self"]}),r={cN:"subst",b:/\\\(/,e:"\\)",k:i,c:[]},s={cN:"number",b:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",r:0},o=e.inherit(e.QSM,{c:[r,e.BE]});return r.c=[s],{k:i,c:[o,e.CLCM,n,t,s,{cN:"func",bK:"func",e:"{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/,i:/\(/}),{cN:"generics",b:/,e:/>/,i:/>/},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:i,c:["self",s,o,e.CBCM,{b:":"}],i:/["']/}],i:/\[|%/},{cN:"class",bK:"struct protocol class extension enum",k:i,e:"\\{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/})]},{cN:"preprocessor",b:"(@assignment|@class_protocol|@exported|@final|@lazy|@noreturn|@NSCopying|@NSManaged|@objc|@optional|@required|@auto_closure|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix)"}]}});hljs.registerLanguage("lisp",function(b){var e="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",c="\\|[^]*?\\|",r="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",a={cN:"shebang",b:"^#!",e:"$"},i={cN:"literal",b:"\\b(t{1}|nil)\\b"},l={cN:"number",v:[{b:r,r:0},{b:"#(b|B)[0-1]+(/[0-1]+)?"},{b:"#(o|O)[0-7]+(/[0-7]+)?"},{b:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{b:"#(c|C)\\("+r+" +"+r,e:"\\)"}]},t=b.inherit(b.QSM,{i:null}),d=b.C(";","$",{r:0}),n={cN:"variable",b:"\\*",e:"\\*"},u={cN:"keyword",b:"[:&]"+e},N={b:e,r:0},o={b:c},s={b:"\\(",e:"\\)",c:["self",i,t,l,N]},v={cN:"quoted",c:[l,t,n,u,s,N],v:[{b:"['`]\\(",e:"\\)"},{b:"\\(quote ",e:"\\)",k:"quote"},{b:"'"+c}]},f={cN:"quoted",v:[{b:"'"+e},{b:"#'"+e+"(::"+e+")*"}]},g={cN:"list",b:"\\(\\s*",e:"\\)"},q={eW:!0,r:0};return g.c=[{cN:"keyword",v:[{b:e},{b:c}]},q],q.c=[v,f,g,i,l,t,d,n,u,o,N],{i:/\S/,c:[l,a,i,t,d,v,f,g,N]}});hljs.registerLanguage("rsl",function(e){return{k:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},i:"",c:[e.CLCM,e.CBCM,e.QSM,e.ASM,e.CNM,{cN:"preprocessor",b:"#",e:"$"},{cN:"shader",bK:"surface displacement light volume imager",e:"\\("},{cN:"shading",bK:"illuminate illuminance gather",e:"\\("}]}});hljs.registerLanguage("scheme",function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",r="(\\-|\\+)?\\d+([./]\\d+)?",i=r+"[+\\-]"+r+"i",a={built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},n={cN:"shebang",b:"^#!",e:"$"},c={cN:"literal",b:"(#t|#f|#\\\\"+t+"|#\\\\.)"},l={cN:"number",v:[{b:r,r:0},{b:i,r:0},{b:"#b[0-1]+(/[0-1]+)?"},{b:"#o[0-7]+(/[0-7]+)?"},{b:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},s=e.QSM,o=[e.C(";","$",{r:0}),e.C("#\\|","\\|#")],u={b:t,r:0},p={cN:"variable",b:"'"+t},d={eW:!0,r:0},g={cN:"list",v:[{b:"\\(",e:"\\)"},{b:"\\[",e:"\\]"}],c:[{cN:"keyword",b:t,l:t,k:a},d]};return d.c=[c,l,s,u,p,g].concat(o),{i:/\S/,c:[n,l,s,p,g].concat(o)}});hljs.registerLanguage("stata",function(e){return{aliases:["do","ado"],cI:!0,k:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",c:[{cN:"label",v:[{b:"\\$\\{?[a-zA-Z0-9_]+\\}?"},{b:"`[a-zA-Z0-9_]+'"}]},{cN:"string",v:[{b:'`"[^\r\n]*?"\''},{b:'"[^\r\n"]*"'}]},{cN:"literal",v:[{b:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)"}]},e.C("^[ ]*\\*.*$",!1),e.CLCM,e.CBCM]}});hljs.registerLanguage("asciidoc",function(e){return{aliases:["adoc"],c:[e.C("^/{4,}\\n","\\n/{4,}$",{r:10}),e.C("^//","$",{r:0}),{cN:"title",b:"^\\.\\w.*$"},{b:"^[=\\*]{4,}\\n",e:"\\n^[=\\*]{4,}$",r:10},{cN:"header",b:"^(={1,5}) .+?( \\1)?$",r:10},{cN:"header",b:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$",r:10},{cN:"attribute",b:"^:.+?:",e:"\\s",eE:!0,r:10},{cN:"attribute",b:"^\\[.+?\\]$",r:0},{cN:"blockquote",b:"^_{4,}\\n",e:"\\n_{4,}$",r:10},{cN:"code",b:"^[\\-\\.]{4,}\\n",e:"\\n[\\-\\.]{4,}$",r:10},{b:"^\\+{4,}\\n",e:"\\n\\+{4,}$",c:[{b:"<",e:">",sL:"xml",r:0}],r:10},{cN:"bullet",b:"^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"},{cN:"label",b:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",r:10},{cN:"strong",b:"\\B\\*(?![\\*\\s])",e:"(\\n{2}|\\*)",c:[{b:"\\\\*\\w",r:0}]},{cN:"emphasis",b:"\\B'(?!['\\s])",e:"(\\n{2}|')",c:[{b:"\\\\'\\w",r:0}],r:0},{cN:"emphasis",b:"_(?![_\\s])",e:"(\\n{2}|_)",r:0},{cN:"smartquote",v:[{b:"``.+?''"},{b:"`.+?'"}]},{cN:"code",b:"(`.+?`|\\+.+?\\+)",r:0},{cN:"code",b:"^[ \\t]",e:"$",r:0},{cN:"horizontal_rule",b:"^'{3,}[ \\t]*$",r:10},{b:"(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",rB:!0,c:[{b:"(link|image:?):",r:0},{cN:"link_url",b:"\\w",e:"[^\\[]+",r:0},{cN:"link_label",b:"\\[",e:"\\]",eB:!0,eE:!0,r:0}],r:10}]}});hljs.registerLanguage("php",function(e){var c={cN:"variable",b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},i={cN:"preprocessor",b:/<\?(php)?|\?>/},a={cN:"string",c:[e.BE,i],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:["php3","php4","php5","php6"],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.CLCM,e.HCM,e.C("/\\*","\\*/",{c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"},i]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[e.BE]},i,c,{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",c,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]}});hljs.registerLanguage("java",function(e){var a=e.UIR+"(<"+e.UIR+">)?",t="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",c="(\\b(0b[01_]+)|\\b0[xX][a-fA-F0-9_]+|(\\b[\\d_]+(\\.[\\d_]*)?|\\.[\\d_]+)([eE][-+]?\\d+)?)[lLfF]?",r={cN:"number",b:c,r:0};return{aliases:["jsp"],k:t,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return",r:0},{cN:"function",b:"("+a+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:t,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},r,{cN:"annotation",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("glsl",function(e){return{k:{keyword:"atomic_uint attribute bool break bvec2 bvec3 bvec4 case centroid coherent const continue default discard dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 do double dvec2 dvec3 dvec4 else flat float for highp if iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray in inout int invariant isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 layout lowp mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 mediump noperspective out patch precision readonly restrict return sample sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow smooth struct subroutine switch uimage1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint uniform usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D usamplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 varying vec2 vec3 vec4 void volatile while writeonly",built_in:"gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffsetgl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_PerVertex gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicCounter atomicCounterDecrement atomicCounterIncrement barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow gl_TextureMatrix gl_TextureMatrixInverse",literal:"true false"},i:'"',c:[e.CLCM,e.CBCM,e.CNM,{cN:"preprocessor",b:"#",e:"$"}]}});hljs.registerLanguage("lua",function(e){var t="\\[=*\\[",a="\\]=*\\]",r={b:t,e:a,c:["self"]},n=[e.C("--(?!"+t+")","$"),e.C("--"+t,a,{c:[r],r:10})];return{l:e.UIR,k:{keyword:"and break do else elseif end false for if in local nil not or repeat return then true until while",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},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:a,c:[r],r:5}])}});hljs.registerLanguage("protobuf",function(e){return{k:{keyword:"package import option optional required repeated group",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},c:[e.QSM,e.NM,e.CLCM,{cN:"class",bK:"message enum service",e:/\{/,i:/\n/,c:[e.inherit(e.TM,{starts:{eW:!0,eE:!0}})]},{cN:"function",bK:"rpc",e:/;/,eE:!0,k:"rpc returns"},{cN:"constant",b:/^\s*[A-Z_]+/,e:/\s*=/,eE:!0}]}});hljs.registerLanguage("gcode",function(e){var N="[A-Z_][A-Z0-9_.]*",i="\\%",c={literal:"",built_in:"",keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},r={cN:"preprocessor",b:"([O])([0-9]+)"},l=[e.CLCM,e.CBCM,e.C(/\(/,/\)/),e.inherit(e.CNM,{b:"([-+]?([0-9]*\\.?[0-9]+\\.?))|"+e.CNR}),e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"keyword",b:"([G])([0-9]+\\.?[0-9]?)"},{cN:"title",b:"([M])([0-9]+\\.?[0-9]?)"},{cN:"title",b:"(VC|VS|#)",e:"(\\d+)"},{cN:"title",b:"(VZOFX|VZOFY|VZOFZ)"},{cN:"built_in",b:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",e:"([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"},{cN:"label",v:[{b:"N",e:"\\d+",i:"\\W"}]}];return{aliases:["nc"],cI:!0,l:N,k:c,c:[{cN:"preprocessor",b:i},r].concat(l)}});hljs.registerLanguage("vim",function(e){return{l:/[!#@\w]+/,k:{keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw d|0 delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu g|0 go gr grepa gu gv ha h|0 helpf helpg helpt hi hid his i|0 ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs n|0 new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf q|0 quita qa r|0 rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv s|0 sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync t|0 tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up v|0 ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"abs acos add and append argc argidx argv asin atan atan2 browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call ceil changenr char2nr cindent clearmatches col complete complete_add complete_check confirm copy cos cosh count cscope_connection cursor deepcopy delete did_filetype diff_filler diff_hlID empty escape eval eventhandler executable exists exp expand extend feedkeys filereadable filewritable filter finddir findfile float2nr floor fmod fnameescape fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function garbagecollect get getbufline getbufvar getchar getcharmod getcmdline getcmdpos getcmdtype getcwd getfontname getfperm getfsize getftime getftype getline getloclist getmatches getpid getpos getqflist getreg getregtype gettabvar gettabwinvar getwinposx getwinposy getwinvar glob globpath has has_key haslocaldir hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputlist inputrestore inputsave inputsecret insert invert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime log log10 luaeval map maparg mapcheck match matchadd matcharg matchdelete matchend matchlist matchstr max min mkdir mode mzeval nextnonblank nr2char or pathshorten pow prevnonblank printf pumvisible py3eval pyeval range readfile reltime reltimestr remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat resolve reverse round screenattr screenchar screencol screenrow search searchdecl searchpair searchpairpos searchpos server2client serverlist setbufvar setcmdpos setline setloclist setmatches setpos setqflist setreg settabvar settabwinvar setwinvar sha256 shellescape shiftwidth simplify sin sinh sort soundfold spellbadword spellsuggest split sqrt str2float str2nr strchars strdisplaywidth strftime stridx string strlen strpart strridx strtrans strwidth submatch substitute synconcealed synID synIDattr synIDtrans synstack system tabpagebuflist tabpagenr tabpagewinnr tagfiles taglist tan tanh tempname tolower toupper tr trunc type undofile undotree values virtcol visualmode wildmenumode winbufnr wincol winheight winline winnr winrestcmd winrestview winsaveview winwidth writefile xor"},i:/[{:]/,c:[e.NM,e.ASM,{cN:"string",b:/"((\\")|[^"\n])*("|\n)/},{cN:"variable",b:/[bwtglsav]:[\w\d_]*/},{cN:"function",bK:"function function!",e:"$",r:0,c:[e.TM,{cN:"params",b:"\\(",e:"\\)"}]}]}});hljs.registerLanguage("processing",function(e){return{k:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",constant:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",variable:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width",title:"setup draw",built_in:"size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.CNM]}});hljs.registerLanguage("mizar",function(e){return{k:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",c:[e.C("::","$")]}});hljs.registerLanguage("vbnet",function(e){return{aliases:["vb"],cI:!0,k:{keyword:"addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},i:"//|{|}|endif|gosub|variant|wend",c:[e.inherit(e.QSM,{c:[{b:'""'}]}),e.C("'","$",{rB:!0,c:[{cN:"xmlDocTag",b:"'''|",c:[e.PWM]},{cN:"xmlDocTag",b:"?",e:">",c:[e.PWM]}]}),e.CNM,{cN:"preprocessor",b:"#",e:"$",k:"if else elseif end region externalsource"}]}});hljs.registerLanguage("q",function(e){var s={keyword:"do while select delete by update from",constant:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",typename:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"};return{aliases:["k","kdb"],k:s,l:/\b(`?)[A-Za-z0-9_]+\b/,c:[e.CLCM,e.QSM,e.CNM]}});hljs.registerLanguage("livescript",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 case default function var with then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super case default function var void const let enum export import native __hasProp __extends __slice __bind __indexOf",literal:"true false null undefined yes no on off it that void",built_in:"npm require console print module global window document"},s="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",i=e.inherit(e.TM,{b:s}),n={cN:"subst",b:/#\{/,e:/}/,k:t},r={cN:"subst",b:/#[A-Za-z$_]/,e:/(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,k:t},c=[e.BNM,{cN:"number",b:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",r:0,starts:{e:"(\\s*/)?",r:0}},{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,n,r]},{b:/"/,e:/"/,c:[e.BE,n,r]},{b:/\\/,e:/(\s|$)/,eE:!0}]},{cN:"pi",v:[{b:"//",e:"//[gim]*",c:[n,e.HCM]},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{cN:"property",b:"@"+s},{b:"``",e:"``",eB:!0,eE:!0,sL:"javascript"}];n.c=c;var a={cN:"params",b:"\\(",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(c)}]};return{aliases:["ls"],k:t,i:/\/\*/,c:c.concat([e.C("\\/\\*","\\*\\/"),e.HCM,{cN:"function",c:[i,a],rB:!0,v:[{b:"("+s+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?",e:"\\->\\*?"},{b:"("+s+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?",e:"[-~]{1,2}>\\*?"},{b:"("+s+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?",e:"!?[-~]{1,2}>\\*?"}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{cN:"attribute",b:s+":",e:":",rB:!0,rE:!0,r:0}])}});hljs.registerLanguage("haxe",function(e){var r="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)";return{aliases:["hx"],k:{keyword:"break callback case cast catch class continue default do dynamic else enum extends extern for function here if implements import in inline interface never new override package private public return static super switch this throw trace try typedef untyped using var while",literal:"true false null"},c:[e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{cN:"class",bK:"class interface",e:"{",eE:!0,c:[{bK:"extends implements"},e.TM]},{cN:"preprocessor",b:"#",e:"$",k:"if else elseif end error"},{cN:"function",bK:"function",e:"[{;]",eE:!0,i:"\\S",c:[e.TM,{cN:"params",b:"\\(",e:"\\)",c:[e.ASM,e.QSM,e.CLCM,e.CBCM]},{cN:"type",b:":",e:r,r:10}]}]}});hljs.registerLanguage("monkey",function(e){var n={cN:"number",r:0,v:[{b:"[$][a-fA-F0-9]+"},e.NM]};return{cI:!0,k:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},c:[e.C("#rem","#end"),e.C("'","$",{r:0}),{cN:"function",bK:"function method",e:"[(=:]|$",i:/\n/,c:[e.UTM]},{cN:"class",bK:"class interface",e:"$",c:[{bK:"extends implements"},e.UTM]},{cN:"variable",b:"\\b(self|super)\\b"},{cN:"preprocessor",bK:"import",e:"$"},{cN:"preprocessor",b:"\\s*#",e:"$",k:"if else elseif endif end then"},{cN:"pi",b:"^\\s*strict\\b"},{bK:"alias",e:"=",c:[e.UTM]},e.QSM,n]}});hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},s={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/-?[a-z\.]+/,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",operator:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"shebang",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,e.NM,s,a,t]}});hljs.registerLanguage("erlang",function(e){var r="[a-z'][a-zA-Z0-9_']*",c="("+r+":"+r+"|"+r+")",a={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},n=e.C("%","$"),i={cN:"number",b:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",r:0},b={b:"fun\\s+"+r+"/\\d+"},d={b:c+"\\(",e:"\\)",rB:!0,r:0,c:[{cN:"function_name",b:c,r:0},{b:"\\(",e:"\\)",eW:!0,rE:!0,r:0}]},o={cN:"tuple",b:"{",e:"}",r:0},t={cN:"variable",b:"\\b_([A-Z][A-Za-z0-9_]*)?",r:0},l={cN:"variable",b:"[A-Z][a-zA-Z0-9_]*",r:0},f={b:"#"+e.UIR,r:0,rB:!0,c:[{cN:"record_name",b:"#"+e.UIR,r:0},{b:"{",e:"}",r:0}]},s={bK:"fun receive if try case",e:"end",k:a};s.c=[n,b,e.inherit(e.ASM,{cN:""}),s,d,e.QSM,i,o,t,l,f];var u=[n,b,s,d,e.QSM,i,o,t,l,f];d.c[1].c=u,o.c=u,f.c[1].c=u;var v={cN:"params",b:"\\(",e:"\\)",c:u};return{aliases:["erl"],k:a,i:"(|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",c:[{cN:"function",b:"^"+r+"\\s*\\(",e:"->",rB:!0,i:"\\(|#|//|/\\*|\\\\|:|;",c:[v,e.inherit(e.TM,{b:r})],starts:{e:";|\\.",k:a,c:u}},n,{cN:"pp",b:"^-",e:"\\.",r:0,eE:!0,rB:!0,l:"-"+e.IR,k:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",c:[v]},i,e.QSM,f,t,l,o,{b:/\.$/}]}});hljs.registerLanguage("kotlin",function(e){var a="val var get set class trait object public open private protected final enum if else do while for when break continue throw try catch finally import package is as in return fun override default companion reified inline volatile transient native";return{k:{typename:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null",keyword:a},c:[e.CLCM,{cN:"javadoc",b:"/\\*\\*",e:"\\*//*",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CBCM,{cN:"type",b:/,e:/>/,rB:!0,eE:!1,r:0},{cN:"function",bK:"fun",e:"[(]|$",rB:!0,eE:!0,k:a,i:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,r:5,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"type",b:/,e:/>/,k:"reified",r:0},{cN:"params",b:/\(/,e:/\)/,k:a,r:0,i:/\([^\(,\s:]+,/,c:[{cN:"typename",b:/:\s*/,e:/\s*[=\)]/,eB:!0,rE:!0,r:0}]},e.CLCM,e.CBCM]},{cN:"class",bK:"class trait",e:/[:\{(]|$/,eE:!0,i:"extends implements",c:[e.UTM,{cN:"type",b:/,e:/>/,eB:!0,eE:!0,r:0},{cN:"typename",b:/[,:]\s*/,e:/[<\(,]|$/,eB:!0,rE:!0}]},{cN:"variable",bK:"var val",e:/\s*[=:$]/,eE:!0},e.QSM,{cN:"shebang",b:"^#!/usr/bin/env",e:"$",i:"\n"},e.CNM]}});hljs.registerLanguage("stylus",function(t){var e={cN:"variable",b:"\\$"+t.IR},o={cN:"hexcolor",b:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})",r:10},i=["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"],r=["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"],n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a="[\\.\\s\\n\\[\\:,]",l=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"],d=["\\{","\\}","\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"];return{aliases:["styl"],cI:!1,i:"("+d.join("|")+")",k:"if else for in",c:[t.QSM,t.ASM,t.CLCM,t.CBCM,o,{b:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+a,rB:!0,c:[{cN:"class",b:"\\.[a-zA-Z][a-zA-Z0-9_-]*"}]},{b:"\\#[a-zA-Z][a-zA-Z0-9_-]*"+a,rB:!0,c:[{cN:"id",b:"\\#[a-zA-Z][a-zA-Z0-9_-]*"}]},{b:"\\b("+n.join("|")+")"+a,rB:!0,c:[{cN:"tag",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*"}]},{cN:"pseudo",b:"&?:?:\\b("+r.join("|")+")"+a},{cN:"at_rule",b:"@("+i.join("|")+")\\b"},e,t.CSSNM,t.NM,{cN:"function",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",i:"[\\n]",rB:!0,c:[{cN:"title",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{cN:"params",b:/\(/,e:/\)/,c:[o,e,t.ASM,t.CSSNM,t.NM,t.QSM]}]},{cN:"attribute",b:"\\b("+l.reverse().join("|")+")\\b"}]}});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",a={cN:"function",b:c+"\\(",rB:!0,eE:!0,e:"\\("},r={cN:"rule",b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{cN:"value",eW:!0,eE:!0,c:[a,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"hexcolor",b:"#[0-9A-Fa-f]+"},{cN:"important",b:"!important"}]}}]};return{cI:!0,i:/[=\/|']/,c:[e.CBCM,r,{cN:"id",b:/\#[A-Za-z0-9_-]+/},{cN:"class",b:/\.[A-Za-z0-9_-]+/,r:0},{cN:"attr_selector",b:/\[/,e:/\]/,i:"$"},{cN:"pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"']+/},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[a,e.ASM,e.QSM,e.CSSNM]}]},{cN:"tag",b:c,r:0},{cN:"rules",b:"{",e:"}",i:/\S/,r:0,c:[e.CBCM,r]}]}});hljs.registerLanguage("puppet",function(e){var s="augeas computer cron exec file filebucket host interface k5login macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service firewall nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod notify package resources router schedule scheduled_task selboolean selmodule service ssh_authorized_key sshkey stage tidy user vlan yumrepo zfs zone zpool",r="alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",a={keyword:"and case class default define else elsif false if in import enherits node or true undef unless main settings $string "+s,literal:r,built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},i=e.C("#","$"),o={cN:"string",c:[e.BE],v:[{b:/'/,e:/'/},{b:/"/,e:/"/}]},n=[o,i,{cN:"keyword",bK:"class",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"(::)?[A-Za-z_]\\w*(::\\w+)*"}),i,o]},{cN:"keyword",b:"([a-zA-Z_(::)]+ *\\{)",c:[o,i],r:0},{cN:"keyword",b:"(\\}|\\{)",r:0},{cN:"function",b:"[a-zA-Z_]+\\s*=>"},{cN:"constant",b:"(::)?(\\b[A-Z][a-z_]*(::)?)+",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0}];return{aliases:["pp"],k:a,c:n}});hljs.registerLanguage("nimrod",function(t){return{aliases:["nim"],k:{keyword:"addr and as asm bind block break|0 case|0 cast const|0 continue|0 converter discard distinct|10 div do elif else|0 end|0 enum|0 except export finally for from generic if|0 import|0 in include|0 interface is isnot|10 iterator|10 let|0 macro method|10 mixin mod nil not notin|10 object|0 of or out proc|10 ptr raise ref|10 return shl shr static template|10 try|0 tuple type|0 using|0 var|0 when while|0 with without xor yield",literal:"shared guarded stdin stdout stderr result|10 true false"},c:[{cN:"decorator",b:/{\./,e:/\.}/,r:10},{cN:"string",b:/[a-zA-Z]\w*"/,e:/"/,c:[{b:/""/}]},{cN:"string",b:/([a-zA-Z]\w*)?"""/,e:/"""/},t.QSM,{cN:"type",b:/\b[A-Z]\w+\b/,r:0},{cN:"type",b:/\b(int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|float|float32|float64|bool|char|string|cstring|pointer|expr|stmt|void|auto|any|range|array|openarray|varargs|seq|set|clong|culong|cchar|cschar|cshort|cint|csize|clonglong|cfloat|cdouble|clongdouble|cuchar|cushort|cuint|culonglong|cstringarray|semistatic)\b/},{cN:"number",b:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/,r:0},{cN:"number",b:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/,r:0},{cN:"number",b:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/,r:0},{cN:"number",b:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/,r:0},t.HCM]}});hljs.registerLanguage("smalltalk",function(a){var r="[a-z][a-zA-Z0-9_]*",s={cN:"char",b:"\\$.{1}"},c={cN:"symbol",b:"#"+a.UIR};return{aliases:["st"],k:"self super nil true false thisContext",c:[a.C('"','"'),a.ASM,{cN:"class",b:"\\b[A-Z][A-Za-z0-9_]*",r:0},{cN:"method",b:r+":",r:0},a.CNM,c,s,{cN:"localvars",b:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",rB:!0,e:/\|/,i:/\S/,c:[{b:"(\\|[ ]*)?"+r}]},{cN:"array",b:"\\#\\(",e:"\\)",c:[a.ASM,s,a.CNM,c]}]}});hljs.registerLanguage("x86asm",function(s){return{cI:!0,l:"\\.?"+s.IR,k:{keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",literal:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l",pseudo:"db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times",preprocessor:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public ",built_in:"bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},c:[s.C(";","$",{r:0}),{cN:"number",b:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",r:0},{cN:"number",b:"\\$[0-9][0-9A-Fa-f]*",r:0},{cN:"number",b:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[HhXx]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{cN:"number",b:"\\b(?:0[HhXx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"},s.QSM,{cN:"string",b:"'",e:"[^\\\\]'",r:0},{cN:"string",b:"`",e:"[^\\\\]`",r:0},{cN:"string",b:"\\.[A-Za-z0-9]+",r:0},{cN:"label",b:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",r:0},{cN:"label",b:"^\\s*%%[A-Za-z0-9_$#@~.?]*:",r:0},{cN:"argument",b:"%[0-9]+",r:0},{cN:"built_in",b:"%!S+",r:0}]}});hljs.registerLanguage("roboconf",function(e){var n="[a-zA-Z-_][^\n{\r\n]+\\{";return{aliases:["graph","instances"],cI:!0,k:"import",c:[{cN:"facet",b:"^facet "+n,e:"}",k:"facet installer exports children extends",c:[e.HCM]},{cN:"instance-of",b:"^instance of "+n,e:"}",k:"name count channels instance-data instance-state instance of",c:[{cN:"keyword",b:"[a-zA-Z-_]+( | )*:"},e.HCM]},{cN:"component",b:"^"+n,e:"}",l:"\\(?[a-zA-Z]+\\)?",k:"installer exports children extends imports facets alias (optional)",c:[{cN:"string",b:"\\.[a-zA-Z-_]+",e:"\\s|,|;",eE:!0},e.HCM]},e.HCM]}});hljs.registerLanguage("ruby",function(e){var c="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r="and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",b={cN:"yardoctag",b:"@[A-Za-z]+"},a={cN:"value",b:"#<",e:">"},n=[e.C("#","$",{c:[b]}),e.C("^\\=begin","^\\=end",{c:[b],r:10}),e.C("^__END__","\\n$")],s={cN:"subst",b:"#\\{",e:"}",k:r},t={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/}]},i={cN:"params",b:"\\(",e:"\\)",k:r},d=[t,a,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+e.IR+"::)?"+e.IR}]}].concat(n)},{cN:"function",bK:"def",e:" |$|;",r:0,c:[e.inherit(e.TM,{b:c}),i].concat(n)},{cN:"constant",b:"(::)?(\\b[A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":",c:[t,{b:c}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+e.RSR+")\\s*",c:[a,{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(n),r:0}].concat(n);s.c=d,i.c=d;var o="[>?]>",l="[\\w#]+\\(\\w+\\):\\d+:\\d+>",u="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",N=[{b:/^\s*=>/,cN:"status",starts:{e:"$",c:d}},{cN:"prompt",b:"^("+o+"|"+l+"|"+u+")",starts:{e:"$",c:d}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,c:n.concat(N).concat(d)}});hljs.registerLanguage("typescript",function(e){return{aliases:["ts"],k:{keyword:"in if for while finally var new function|0 do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private get set super interface extendsstatic constructor implements enum export import declare type protected",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"},c:[{cN:"pi",b:/^\s*('|")use strict('|")/,r:0},e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/,e:/>;/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/,r:0},{cN:"constructor",bK:"constructor",e:/\{/,eE:!0,r:10},{cN:"module",bK:"module",e:/\{/,eE:!0},{cN:"interface",bK:"interface",e:/\{/,eE:!0},{b:/\$[(.]/},{b:"\\."+e.IR,r:0}]}});hljs.registerLanguage("handlebars",function(e){var a="each in with if else unless bindattr action collection debugger log outlet template unbound view yield";return{aliases:["hbs","html.hbs","html.handlebars"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[{cN:"expression",b:"{{",e:"}}",c:[{cN:"begin-block",b:"#[a-zA-Z- .]+",k:a},{cN:"string",b:'"',e:'"'},{cN:"end-block",b:"\\/[a-zA-Z- .]+",k:a},{cN:"variable",b:"[a-zA-Z-.]+",k:a}]}]}});hljs.registerLanguage("mercury",function(e){var i={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",pragma:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses",preprocessor:"foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},r={cN:"label",b:"XXX",e:"$",eW:!0,r:0},t=e.inherit(e.CLCM,{b:"%"}),_=e.inherit(e.CBCM,{r:0});t.c.push(r),_.c.push(r);var n={cN:"number",b:"0'.\\|0[box][0-9a-fA-F]*"},a=e.inherit(e.ASM,{r:0}),o=e.inherit(e.QSM,{r:0}),l={cN:"constant",b:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",r:0};o.c.push(l);var s={cN:"built_in",v:[{b:"<=>"},{b:"<=",r:0},{b:"=>",r:0},{b:"/\\\\"},{b:"\\\\/"}]},c={cN:"built_in",v:[{b:":-\\|-->"},{b:"=",r:0}]};return{aliases:["m","moo"],k:i,c:[s,c,t,_,n,e.NM,a,o,{b:/:-/}]}});hljs.registerLanguage("fix",function(u){return{c:[{b:/[^\u2401\u0001]+/,e:/[\u2401\u0001]/,eE:!0,rB:!0,rE:!1,c:[{b:/([^\u2401\u0001=]+)/,e:/=([^\u2401\u0001=]+)/,rE:!0,rB:!1,cN:"attribute"},{b:/=/,e:/([\u2401\u0001])/,eE:!0,eB:!0,cN:"string"}]}],cI:!0}});hljs.registerLanguage("clojure",function(e){var t={built_in:"def cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},r="a-zA-Z_\\-!.?+*=<>'",n="["+r+"]["+r+"0-9/;:]*",a="[-+]?\\d+(\\.\\d+)?",o={b:n,r:0},s={cN:"number",b:a,r:0},i=e.inherit(e.QSM,{i:null}),c=e.C(";","$",{r:0}),d={cN:"literal",b:/\b(true|false|nil)\b/},l={cN:"collection",b:"[\\[\\{]",e:"[\\]\\}]"},m={cN:"comment",b:"\\^"+n},p=e.C("\\^\\{","\\}"),u={cN:"attribute",b:"[:]"+n},f={cN:"list",b:"\\(",e:"\\)"},h={eW:!0,r:0},y={k:t,l:n,cN:"keyword",b:n,starts:h},b=[f,i,m,p,c,u,l,s,d,o];return f.c=[e.C("comment",""),y,h],h.c=b,l.c=b,{aliases:["clj"],i:/\S/,c:[f,i,m,p,c,u,l,s,d]}});hljs.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},s={b:"->{",e:"}"},n={cN:"variable",v:[{b:/\$\d/},{b:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{b:/[\$%@][^\s\w{]/,r:0}]},i=e.C("^(__END__|__DATA__)","\\n$",{r:5}),o=[e.BE,r,n],a=[n,e.HCM,i,e.C("^\\=\\w","\\=cut",{eW:!0}),s,{cN:"string",c:o,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,i,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"sub",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",r:5},{cN:"operator",b:"-\\w\\b",r:0}];return r.c=a,s.c=a,{aliases:["pl"],k:t,c:a}});hljs.registerLanguage("twig",function(e){var t={cN:"params",b:"\\(",e:"\\)"},a="attribute block constant cycle date dump include max min parent random range source template_from_string",r={cN:"function",bK:a,r:0,c:[t]},c={cN:"filter",b:/\|[A-Za-z_]+:?/,k:"abs batch capitalize convert_encoding date date_modify default escape first format join json_encode keys last length lower merge nl2br number_format raw replace reverse round slice sort split striptags title trim upper url_encode",c:[r]},n="autoescape block do embed extends filter flush for if import include macro sandbox set spaceless use verbatim";return n=n+" "+n.split(" ").map(function(e){return"end"+e}).join(" "),{aliases:["craftcms"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[e.C(/\{#/,/#}/),{cN:"template_tag",b:/\{%/,e:/%}/,k:n,c:[c,r]},{cN:"variable",b:/\{\{/,e:/}}/,c:[c,r]}]}});hljs.registerLanguage("livecodeserver",function(e){var r={cN:"variable",b:"\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+",r:0},t=[e.CBCM,e.HCM,e.C("--","$"),e.C("[^:]//","$")],a=e.inherit(e.TM,{v:[{b:"\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"},{b:"\\b_[a-z0-9\\-]+"}]}),o=e.inherit(e.TM,{b:"\\b([A-Za-z0-9_\\-]+)\\b"});return{cI:!1,k:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if",constant:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",operator:"div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract union unload wait write"},c:[r,{cN:"keyword",b:"\\bend\\sif\\b"},{cN:"function",bK:"function",e:"$",c:[r,o,e.ASM,e.QSM,e.BNM,e.CNM,a]},{cN:"function",bK:"end",e:"$",c:[o,a]},{cN:"command",bK:"command on",e:"$",c:[r,o,e.ASM,e.QSM,e.BNM,e.CNM,a]},{cN:"command",bK:"end",e:"$",c:[o,a]},{cN:"preprocessor",b:"<\\?rev|<\\?lc|<\\?livecode",r:10},{cN:"preprocessor",b:"<\\?"},{cN:"preprocessor",b:"\\?>"},e.ASM,e.QSM,e.BNM,e.CNM,a].concat(t),i:";$|^\\[|^="}});hljs.registerLanguage("step21",function(e){var r="[A-Z_][A-Z0-9_.]*",i="END-ISO-10303-21;",l={literal:"",built_in:"",keyword:"HEADER ENDSEC DATA"},s={cN:"preprocessor",b:"ISO-10303-21;",r:10},t=[e.CLCM,e.CBCM,e.C("/\\*\\*!","\\*/"),e.CNM,e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"string",b:"'",e:"'"},{cN:"label",v:[{b:"#",e:"\\d+",i:"\\W"}]}];return{aliases:["p21","step","stp"],cI:!0,l:r,k:l,c:[{cN:"preprocessor",b:i,r:10},s].concat(t)}});hljs.registerLanguage("cpp",function(t){var i={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct 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 true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex _Complex _Imaginary intmax_t uintmax_t int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t int_least8_t uint_least8_t int_least16_t uint_least16_t int_least32_t uint_least32_t int_least64_t uint_least64_t int_fast8_t uint_fast8_t int_fast16_t uint_fast16_t int_fast32_t uint_fast32_t int_fast64_t uint_fast64_t intptr_t uintptr_t atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong atomic_wchar_t atomic_char16_t atomic_char32_t atomic_intmax_t atomic_uintmax_t atomic_intptr_t atomic_uintptr_t atomic_size_t atomic_ptrdiff_t atomic_int_least8_t atomic_int_least16_t atomic_int_least32_t atomic_int_least64_t atomic_uint_least8_t atomic_uint_least16_t atomic_uint_least32_t atomic_uint_least64_t atomic_int_fast8_t atomic_int_fast16_t atomic_int_fast32_t atomic_int_fast64_t atomic_uint_fast8_t atomic_uint_fast16_t atomic_uint_fast32_t atomic_uint_fast64_t",built_in:"std string cin cout cerr clog 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 isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc 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"};return{aliases:["c","cc","h","c++","h++","hpp"],k:i,i:"",c:[t.CLCM,t.CBCM,t.QSM,{cN:"string",b:"'\\\\?.",e:"'",i:"."},{cN:"number",b:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},t.CNM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line pragma",c:[{b:/\\\n/,r:0},{b:'include\\s*[<"]',e:'[>"]',k:"include",i:"\\n"},t.CLCM]},{b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:i,c:["self"]},{b:t.IR+"::",k:i},{bK:"new throw return else",r:0},{cN:"function",b:"("+t.IR+"\\s+)+"+t.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:i,c:[{b:t.IR+"\\s*\\(",rB:!0,c:[t.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:i,r:0,c:[t.CBCM]},t.CLCM,t.CBCM]}]}});hljs.registerLanguage("vala",function(e){return{k:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object",literal:"false true null"},c:[{cN:"class",bK:"class interface delegate namespace",e:"{",eE:!0,i:"[^,:\\n\\s\\.]",c:[e.UTM]},e.CLCM,e.CBCM,{cN:"string",b:'"""',e:'"""',r:5},e.ASM,e.QSM,e.CNM,{cN:"preprocessor",b:"^#",e:"$",r:2},{cN:"constant",b:" [A-Z_]+ ",r:0}]}});hljs.registerLanguage("http",function(t){return{aliases:["https"],i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:!0}}]}});hljs.registerLanguage("avrasm",function(r){return{cI:!0,l:"\\.?"+r.IR,k:{keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",preprocessor:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},c:[r.CBCM,r.C(";","$",{r:0}),r.CNM,r.BNM,{cN:"number",b:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},r.QSM,{cN:"string",b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"},{cN:"label",b:"^[A-Za-z0-9_.$]+:"},{cN:"preprocessor",b:"#",e:"$"},{cN:"localvars",b:"@[0-9]+"}]}});hljs.registerLanguage("aspectj",function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",i="get set args call";return{k:t,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"aspect",bK:"aspect",e:/[{;=]/,eE:!0,i:/[:;"\[\]]/,c:[{bK:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UTM,{b:/\([^\)]*/,e:/[)]+/,k:t+" "+i,eE:!1}]},{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,r:0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"pointcut after before around throwing returning",e:/[)]/,eE:!1,i:/["\[\]]/,c:[{b:e.UIR+"\\s*\\(",rB:!0,c:[e.UTM]}]},{b:/[:]/,rB:!0,e:/[{;]/,r:0,eE:!1,k:t,i:/["\[\]]/,c:[{b:e.UIR+"\\s*\\(",k:t+" "+i},e.QSM]},{bK:"new throw",r:0},{cN:"function",b:/\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,rB:!0,e:/[{;=]/,k:t,eE:!0,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,r:0,k:t,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("rib",function(e){return{k:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",i:"",c:[e.HCM,e.CNM,e.ASM,e.QSM]}});hljs.registerLanguage("python",function(e){var r={cN:"prompt",b:/^(>>>|\.\.\.) /},b={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[r],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[r],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},l={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},c={cN:"params",b:/\(/,e:/\)/,c:["self",r,l,b]};return{aliases:["py","gyp"],k:{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 nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)/,c:[r,l,b,e.HCM,{v:[{cN:"function",bK:"def",r:10},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,c]},{cN:"decorator",b:/@/,e:/$/},{b:/\b(print|exec)\(/}]}});hljs.registerLanguage("axapta",function(e){return{k:"false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.CNM,{cN:"preprocessor",b:"#",e:"$"},{cN:"class",bK:"class interface",e:"{",eE:!0,i:":",c:[{bK:"extends implements"},e.UTM]}]}});hljs.registerLanguage("nix",function(e){var t={keyword:"rec with let in inherit assert if else then",constant:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},i={cN:"subst",b:/\$\{/,e:/}/,k:t},r={cN:"variable",b:/[a-zA-Z0-9-_]+(\s*=)/},n={cN:"string",b:"''",e:"''",c:[i]},s={cN:"string",b:'"',e:'"',c:[i]},a=[e.NM,e.HCM,e.CBCM,n,s,r];return i.c=a,{aliases:["nixos"],k:t,c:a}});hljs.registerLanguage("diff",function(e){return{aliases:["patch"],c:[{cN:"chunk",r:10,v:[{b:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"header",v:[{b:/Index: /,e:/$/},{b:/=====/,e:/=====$/},{b:/^\-\-\-/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+\+\+/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"change",b:"^\\!",e:"$"}]}});hljs.registerLanguage("parser3",function(r){var e=r.C("{","}",{c:["self"]});return{sL:"xml",r:0,c:[r.C("^#","$"),r.C("\\^rem{","}",{r:10,c:[e]}),{cN:"preprocessor",b:"^@(?:BASE|USE|CLASS|OPTIONS)$",r:10},{cN:"title",b:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{cN:"variable",b:"\\$\\{?[\\w\\-\\.\\:]+\\}?"},{cN:"keyword",b:"\\^[\\w\\-\\.\\:]+"},{cN:"number",b:"\\^#[0-9a-fA-F]+"},r.CNM]}});hljs.registerLanguage("django",function(e){var t={cN:"filter",b:/\|[A-Za-z]+:?/,k:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone",c:[{cN:"argument",b:/"/,e:/"/},{cN:"argument",b:/'/,e:/'/}]};return{aliases:["jinja"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[e.C(/\{%\s*comment\s*%}/,/\{%\s*endcomment\s*%}/),e.C(/\{#/,/#}/),{cN:"template_tag",b:/\{%/,e:/%}/,k:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor in ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup by as ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim",c:[t]},{cN:"variable",b:/\{\{/,e:/}}/,c:[t]}]}});hljs.registerLanguage("rust",function(e){var t=e.inherit(e.CBCM);return t.c.push("self"),{aliases:["rs"],k:{keyword:"alignof as be box break const continue crate do else enum extern false fn for if impl in let loop match mod mut offsetof once priv proc pub pure ref return self sizeof static struct super trait true type typeof unsafe unsized use virtual while yield int i8 i16 i32 i64 uint u8 u32 u64 float f32 f64 str char bool",built_in:"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!"},l:e.IR+"!?",i:"",c:[e.CLCM,t,e.inherit(e.QSM,{i:null}),{cN:"string",b:/r(#*)".*?"\1(?!#)/},{cN:"string",b:/'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/},{b:/'[a-zA-Z_][a-zA-Z0-9_]*/},{cN:"number",b:/\b(0[xbo][A-Fa-f0-9_]+|\d[\d_]*(\.[0-9_]+)?([eE][+-]?[0-9_]+)?)([uif](8|16|32|64|size))?/,r:0},{cN:"function",bK:"fn",e:"(\\(|<)",eE:!0,c:[e.UTM]},{cN:"preprocessor",b:"#\\!?\\[",e:"\\]"},{bK:"type",e:"(=|<)",c:[e.UTM],i:"\\S"},{bK:"trait enum",e:"({|<)",c:[e.UTM],i:"\\S"},{b:e.IR+"::"},{b:"->"}]}});hljs.registerLanguage("vhdl",function(e){var t="\\d(_|\\d)*",r="[eE][-+]?"+t,n=t+"(\\."+t+")?("+r+")?",o="\\w+",i=t+"#"+o+"(\\."+o+")?#("+r+")?",a="\\b("+i+"|"+n+")";return{cI:!0,k:{keyword:"abs access after alias all and architecture array assert attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",typename:"boolean bit character severity_level integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_ulogic std_ulogic_vector std_logic std_logic_vector unsigned signed boolean_vector integer_vector real_vector time_vector"},i:"{",c:[e.CBCM,e.C("--","$"),e.QSM,{cN:"number",b:a,r:0},{cN:"literal",b:"'(U|X|0|1|Z|W|L|H|-)'",c:[e.BE]},{cN:"attribute",b:"'[A-Za-z](_?[A-Za-z0-9])*",c:[e.BE]}]}});hljs.registerLanguage("ocaml",function(e){return{aliases:["ml"],k:{keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},i:/\/\/|>>/,l:"[a-z_]\\w*!?",c:[{cN:"literal",b:"\\[(\\|\\|)?\\]|\\(\\)"},e.C("\\(\\*","\\*\\)",{c:["self"]}),{cN:"symbol",b:"'[A-Za-z_](?!')[\\w']*"},{cN:"tag",b:"`[A-Z][\\w']*"},{cN:"type",b:"\\b[A-Z][\\w']*",r:0},{b:"[a-z_]\\w*'[\\w']*"},e.inherit(e.ASM,{cN:"char",r:0}),e.inherit(e.QSM,{i:null}),{cN:"number",b:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",r:0},{b:/[-=]>/}]}});hljs.registerLanguage("cmake",function(e){return{aliases:["cmake.in"],cI:!0,k:{keyword:"add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or",operator:"equal less greater strless strgreater strequal matches"},c:[{cN:"envvar",b:"\\${",e:"}"},e.HCM,e.QSM,e.NM]}});hljs.registerLanguage("1c",function(c){var e="[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*",r="возврат дата для если и или иначе иначеесли исключение конецесли конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл число экспорт",t="ansitooem oemtoansi ввестивидсубконто ввестидату ввестизначение ввестиперечисление ввестипериод ввестиплансчетов ввестистроку ввестичисло вопрос восстановитьзначение врег выбранныйплансчетов вызватьисключение датагод датамесяц датачисло добавитьмесяц завершитьработусистемы заголовоксистемы записьжурналарегистрации запуститьприложение зафиксироватьтранзакцию значениевстроку значениевстрокувнутр значениевфайл значениеизстроки значениеизстрокивнутр значениеизфайла имякомпьютера имяпользователя каталогвременныхфайлов каталогиб каталогпользователя каталогпрограммы кодсимв командасистемы конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лев лог лог10 макс максимальноеколичествосубконто мин монопольныйрежим названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найти найтипомеченныенаудаление найтиссылки началопериодаби началостандартногоинтервала начатьтранзакцию начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода нрег обработкаожидания окр описаниеошибки основнойжурналрасчетов основнойплансчетов основнойязык открытьформу открытьформумодально отменитьтранзакцию очиститьокносообщений периодстр полноеимяпользователя получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта прав праводоступа предупреждение префиксавтонумерации пустаястрока пустоезначение рабочаядаттьпустоезначение рабочаядата разделительстраниц разделительстрок разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо сигнал симв символтабуляции создатьобъект сокрл сокрлп сокрп сообщить состояние сохранитьзначение сред статусвозврата стрдлина стрзаменить стрколичествострок стрполучитьстроку стрчисловхождений сформироватьпозициюдокумента счетпокоду текущаядата текущеевремя типзначения типзначениястр удалитьобъекты установитьтана установитьтапо фиксшаблон формат цел шаблон",i={cN:"dquote",b:'""'},n={cN:"string",b:'"',e:'"|$',c:[i]},a={cN:"string",b:"\\|",e:'"|$',c:[i]};return{cI:!0,l:e,k:{keyword:r,built_in:t},c:[c.CLCM,c.NM,n,a,{cN:"function",b:"(процедура|функция)",e:"$",l:e,k:"процедура функция",c:[c.inherit(c.TM,{b:e}),{cN:"tail",eW:!0,c:[{cN:"params",b:"\\(",e:"\\)",l:e,k:"знач",c:[n,a]},{cN:"export",b:"экспорт",eW:!0,l:e,k:"экспорт",c:[c.CLCM]}]},c.CLCM]},{cN:"preprocessor",b:"#",e:"$"},{cN:"date",b:"'\\d{2}\\.\\d{2}\\.(\\d{2}|\\d{4})'"}]}});hljs.registerLanguage("tcl",function(e){return{aliases:["tk"],k:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",c:[e.C(";[ \\t]*#","$"),e.C("^[ \\t]*#","$"),{bK:"proc",e:"[\\{]",eE:!0,c:[{cN:"symbol",b:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",e:"[ \\t\\n\\r]",eW:!0,eE:!0}]},{cN:"variable",eE:!0,v:[{b:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",e:"[^a-zA-Z0-9_\\}\\$]"},{b:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",e:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{cN:"string",c:[e.BE],v:[e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},{cN:"number",v:[e.BNM,e.CNM]}]}});hljs.registerLanguage("groovy",function(e){return{k:{typename:"byte short char int long boolean float double void",literal:"true false null",keyword:"def as in assert trait super this abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},c:[e.CLCM,{cN:"javadoc",b:"/\\*\\*",e:"\\*//*",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CBCM,{cN:"string",b:'"""',e:'"""'},{cN:"string",b:"'''",e:"'''"},{cN:"string",b:"\\$/",e:"/\\$",r:10},e.ASM,{cN:"regexp",b:/~?\/[^\/\n]+\//,c:[e.BE]},e.QSM,{cN:"shebang",b:"^#!/usr/bin/env",e:"$",i:"\n"},e.BNM,{cN:"class",bK:"class interface trait enum",e:"{",i:":",c:[{bK:"extends implements"},e.UTM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"},{cN:"string",b:/[^\?]{0}[A-Za-z0-9_$]+ *:/},{b:/\?/,e:/\:/},{cN:"label",b:"^\\s*[A-Za-z0-9_$]+:",r:0}]}});hljs.registerLanguage("erlang-repl",function(r){return{k:{special_functions:"spawn spawn_link self",reserved:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},c:[{cN:"prompt",b:"^[0-9]+> ",r:10},r.C("%","$"),{cN:"number",b:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",r:0},r.ASM,r.QSM,{cN:"constant",b:"\\?(::)?([A-Z]\\w*(::)?)+"},{cN:"arrow",b:"->"},{cN:"ok",b:"ok"},{cN:"exclamation_mark",b:"!"},{cN:"function_or_atom",b:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",r:0},{cN:"variable",b:"[A-Z][a-zA-Z0-9_']*",r:0}]}});hljs.registerLanguage("nginx",function(e){var r={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},b={eW:!0,l:"[a-z/_]+",k:{built_in:"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"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,r],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{cN:"url",b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[r]},{cN:"regexp",c:[e.BE,r],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",r:0},r]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"title",b:e.UIR,starts:b}],r:0}],i:"[^\\s\\}]"}});hljs.registerLanguage("mathematica",function(e){return{aliases:["mma"],l:"(\\$|\\b)"+e.IR+"\\b",k:"AbelianGroup Abort AbortKernels AbortProtect Above Abs Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Active ActiveItem ActiveStyle AcyclicGraphQ AddOnHelpPath AddTo AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AffineTransform After AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowedDimensions AllowGroupClose AllowInlineCells AllowKernelInitialization AllowReverseGroupClose AllowScriptLevelChange AlphaChannel AlternatingGroup AlternativeHypothesis Alternatives AmbientLight Analytic AnchoredSearch And AndersonDarlingTest AngerJ AngleBracket AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotation Annuity AnnuityDue Antialiasing Antisymmetric Apart ApartSquareFree Appearance AppearanceElements AppellF1 Append AppendTo Apply ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess ARProcess Array ArrayComponents ArrayDepth ArrayFlatten ArrayPad ArrayPlot ArrayQ ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads AspectRatio AspectRatioFixed Assert Assuming Assumptions AstronomicalData Asynchronous AsynchronousTaskObject AsynchronousTasks AtomQ Attributes AugmentedSymmetricPolynomial AutoAction AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords Axes AxesEdge AxesLabel AxesOrigin AxesStyle Axis BabyMonsterGroupB Back Background BackgroundTasksSettings Backslash Backsubstitution Backward Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseForm Baseline BaselinePosition BaseStyle BatesDistribution BattleLemarieWavelet Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized BetweennessCentrality BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms Booleans BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryStyle Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BubbleChart BubbleChart3D BubbleScale BubbleSizes BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteCount ByteOrdering C CachedValue CacheGraphics CalendarData CalendarType CallPacket CanberraDistance Cancel CancelButton CandlestickChart Cap CapForm CapitalDifferentialD CardinalBSplineBasis CarmichaelLambda Cases Cashflow Casoratian Catalan CatalanNumber Catch CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterDot CentralMoment CentralMomentGeneratingFunction CForm ChampernowneNumber ChanVeseBinarize Character CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop Circle CircleBox CircleDot CircleMinus CirclePlus CircleTimes CirculantGraph CityData Clear ClearAll ClearAttributes ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent ClusteringComponents CMYKColor Coarse Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorCombine ColorConvert ColorData ColorDataFunction ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorSpace Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CommonDefaultFormatTypes Commonest CommonestFilter CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledFunction Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries Composition CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath Congruent Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphQ ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray Constants ConstrainedMax ConstrainedMin ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFilename ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean Control ControlActive ControlAlignment ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateDialog CreateDirectory CreateDocument CreateIntermediateDirectories CreatePalette CreatePalettePacket CreateScheduledTask CreateTemporary CreateWindow CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossingDetect CrossMatrix Csc Csch CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrentImage CurrentlySpeakingPacket CurrentValue CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition D DagumDistribution DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DataCompression DataDistribution DataRange DataReversed Date DateDelimiters DateDifference DateFunction DateList DateListLogPlot DateListPlot DatePattern DatePlus DateRange DateString DateTicksFormat DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayMatchQ DayName DayPlus DayRange DayRound DeBruijnGraph Debug DebugTag Decimal DeclareKnownSymbols DeclarePackage Decompose Decrement DedekindEta Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic Deinitialization Del Deletable Delete DeleteBorderComponents DeleteCases DeleteContents DeleteDirectory DeleteDuplicates DeleteFile DeleteSmallComponents DeleteWithContents DeletionWarning Delimiter DelimiterFlashTime DelimiterMatching Delimiters Denominator DensityGraphics DensityHistogram DensityPlot DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DescriptorStateSpace DesignMatrix Det DGaussianWavelet DiacriticalPositioning Diagonal DiagonalMatrix Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DifferenceDelta DifferenceOrder DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralGroup Dilation Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletCharacter DirichletConvolve DirichletDistribution DirichletL DirichletTransform DirichletWindow DisableConsolePrintPacket DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform DiscreteWaveletTransform Discriminant Disjunction Disk DiskBox DiskMatrix Dispatch DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentNotebook DominantColors DOSTextFormat Dot DotDashed DotEqual Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DSolve Dt DualLinearProgramming DualSystemsModel DumpGet DumpSave DuplicateFreeQ Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptions E EccentricityCentrality EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeCost EdgeCount EdgeCoverQ EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData Eliminate EliminationOrder EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EnableConsolePrintPacket Enabled Encode End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfFile EndOfLine EndOfString EndPackage EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entropy EntropyFilter Environment Epilog Equal EqualColumns EqualRows EqualTilde EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerE EulerGamma EulerianGraphQ EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluationCell EvaluationCompletionAction EvaluationElements EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpToTrig ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalCall ExternalDataCharacterEncoding Extract ExtractArchive ExtremeValueDistribution FaceForm FaceGrids FaceGridsStyle Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail FailureDistribution False FARIMAProcess FEDisableConsolePrintPacket FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket Fibonacci FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileDate FileExistsQ FileExtension FileFormat FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileType FilledCurve FilledCurveBox Filling FillingStyle FillingTransform FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindArgMax FindArgMin FindClique FindClusters FindCurvePath FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEulerianCycle FindFaces FindFile FindFit FindGeneratingFunction FindGeoLocation FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMaximum FindMaximumFlow FindMaxValue FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindPermutation FindPostmanTour FindProcessParameters FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindThreshold FindVertexCover FindVertexCut Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstPassageTimeDistribution FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FittedModel FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlatTopWindow FlipView Floor FlushPrintOutputPacket Fold FoldList Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrequencySamplingFilterKernel FresnelC FresnelS Friday FrobeniusNumber FrobeniusSolve FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullOptions FullSimplify Function FunctionExpand FunctionInterpolation FunctionSpace FussellVeselyImportance GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins Gamma GammaDistribution GammaRegularized GapPenalty Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateConditions GeneratedCell GeneratedParameters GeneratingFunction Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDistance GeoGridPosition GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoPosition GeoPositionENU GeoPositionXYZ GeoProjectionData GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter Graph GraphAssortativity GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel GreatCircleDistance Greater GreaterEqual GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterTilde Green Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain Gudermannian GumbelDistribution HaarWavelet HadamardMatrix HalfNormalDistribution HamiltonianGraphQ HammingDistance HammingWindow HankelH1 HankelH2 HankelMatrix HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash HashTable Haversine HazardFunction Head HeadCompose Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenSurface HighlightGraph HighlightImage HighpassFilter HigmanSimsGroupHS HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HitMissTransform HITSCentrality HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HotellingTSquareDistribution HoytDistribution HTMLSave Hue HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestData I Identity IdentityMatrix If IgnoreCase Im Image Image3D Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageAspectRatio ImageAssemble ImageCache ImageCacheValid ImageCapture ImageChannels ImageClip ImageColorSpace ImageCompose ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDataPacket ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDistance ImageEffect ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageForestingComponents ImageForwardTransformation ImageHistogram ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarkers ImageMeasurements ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImageQ ImageRangeCache ImageReflect ImageRegion ImageResize ImageResolution ImageRotate ImageRotated ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions Implies Import ImportAutoReplacements ImportString ImprovementImportance In IncidenceGraph IncidenceList IncidenceMatrix IncludeConstantBasis IncludeFileExtension IncludePods IncludeSingularTerm Increment Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentUnit IndependentVertexSetQ Indeterminate IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers Infinity Infix Information Inherited InheritScope Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InlineCounterAssignments InlineCounterIncrements InlineRules Inner Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionPointObject InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Install InstallService InString Integer IntegerDigits IntegerExponent IntegerLength IntegerPart IntegerPartitions IntegerQ Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction InterpretTemplate InterquartileRange Interrupt InterruptSettings Intersection Interval IntervalIntersection IntervalMemberQ IntervalUnion Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHaversine InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InversePermutation InverseRadon InverseSeries InverseSurvivalFunction InverseWaveletTransform InverseWeierstrassP InverseZTransform Invisible InvisibleApplication InvisibleTimes IrreduciblePolynomialQ IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcess JaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join Joined JoinedCurve JoinedCurveBox JoinForm JordanDecomposition JordanModelDecomposition K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelMixtureDistribution KernelObject Kernels Ket Khinchin KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnightTourGraph KnotData KnownUnitQ KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter Label Labeled LabeledSlider LabelingFunction LabelStyle LaguerreL LambdaComponents LambertW LanczosWindow LandauDistribution Language LanguageCategory LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCM LeafCount LeapYearQ LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessFullEqual LessGreater LessLess LessSlantEqual LessTilde LetterCharacter LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox LinearFilter LinearFractionalTransform LinearModelFit LinearOffsetFunction LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBreak LinebreakAdjustments LineBreakChart LineBreakWithin LineColor LineForm LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRead LinkReadHeld LinkReadyQ Links LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot Listen ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalClusteringCoefficient LocalizeVariables LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestAscendingSequence LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow Loopback LoopFreeGraphQ LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LyapunovSolve LyonsGroupLy MachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules MangoldtLambda ManhattanDistance Manipulate Manipulator MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixPlot MatrixPower MatrixQ MatrixRank Max MaxBend MaxDetect MaxExtraBandwidths MaxExtraConditions MaxFeatures MaxFilter Maximize MaxIterations MaxMemoryUsed MaxMixtureKernels MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxValue MaxwellDistribution McLaughlinGroupMcL Mean MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter Median MedianDeviation MedianFilter Medium MeijerG MeixnerDistribution MemberQ MemoryConstrained MemoryInUse Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuPacket MenuSortingValue MenuStyle MenuView MergeDifferences Mesh MeshFunctions MeshRange MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation Method MethodOptions MexicanHatWavelet MeyerWavelet Min MinDetect MinFilter MinimalPolynomial MinimalStateSpaceModel Minimize Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingDataMethod MittagLefflerE MixedRadix MixedRadixQuantity MixtureDistribution Mod Modal Mode Modular ModularLambda Module Modulus MoebiusMu Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction Monday Monitor MonomialList MonomialOrder MonsterGroupM MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform Most MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovingAverage MovingMedian MoyalDistribution MultiedgeStyle MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistribution N NakagamiDistribution NameQ Names NamespaceBox Nand NArgMax NArgMin NBernoulliB NCache NDSolve NDSolveValue Nearest NearestFunction NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeMultinomialDistribution NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestList NestWhile NestWhileList NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextPrime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants None NonlinearModelFit NonlocalMeansFilter NonNegative NonPositive Nor NorlundB Norm Normal NormalDistribution NormalGrouping Normalize NormalizedSquaredEuclideanDistance NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms Null NullRecords NullSpace NullWords Number NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator NumberSigns NumberString Numerator NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlot O ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OddQ Off Offset OLEData On ONanGroupON OneIdentity Opacity Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering Orderless OrnsteinUhlenbeckProcess Orthogonalize Out Outer OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OwenT OwnValues PackingMethod PaddedForm Padding PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageWidth PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParetoDistribution Part PartialCorrelationFunction PartialD ParticleData Partition PartitionsP PartitionsQ ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PerformanceGoal PeriodicInterpolation Periodogram PeriodogramArray PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PERTDistribution PetersenGraph PhaseMargins Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest Pink Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarGraphQ Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangePadding PlotRegion PlotStyle Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox PointBox PointFigureChart PointForm PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonBox PolygonBoxOptions PolygonHoleScale PolygonIntersections PolygonScale PolyhedronData PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position Positive PositiveDefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement PredictionRoot PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependTo PreserveImageOptions Previous PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitiveRoot PrincipalComponents PrincipalValue Print PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessEstimator ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions QBinomial QFactorial QGamma QHypergeometricPFQ QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ Quantile QuantilePlot Quantity QuantityForm QuantityMagnitude QuantityQ QuantityUnit Quartics QuartileDeviation Quartiles QuartileSkewness QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Random RandomChoice RandomComplex RandomFunction RandomGraph RandomImage RandomInteger RandomPermutation RandomPrime RandomReal RandomSample RandomSeed RandomVariate RandomWalkProcess Range RangeFilter RangeSpecification RankedMax RankedMin Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios Raw RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadList ReadProtected Real RealBlockDiagonalForm RealDigits RealExponent Reals Reap Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate RegionBinarize RegionFunction RegionPlot RegionPlot3D RegularExpression Regularization Reinstall Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot Remove RemoveAlphaChannel RemoveAsynchronousTask Removed RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart Repeated RepeatedNull RepeatedString Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated Resampling Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask Residue Resolve Rest Resultant ResumePacket Return ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulerUnits Run RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilarity SameQ SameTest SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveDefinitions SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTaskActiveQ ScheduledTaskData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition Sec Sech SechDistribution SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemialgebraicComponentInstances SendMail Sequence SequenceAlignment SequenceForm SequenceHold SequenceLimit Series SeriesCoefficient SeriesData SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPrecision SetProperty SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share Sharpen ShearingMatrix ShearingTransform ShenCastanMatrix Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortUpArrow Show ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiegelTheta SiegelTukeyTest Sign Signature SignedRankTest SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution Skip SliceDistribution Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDelayCompensator SmithWatermanSimilarity SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SocialMediaData Socket SokalSneathDissimilarity Solve SolveAlways SolveDelayed Sort SortBy Sound SoundAndGraphics SoundNote SoundVolume Sow Space SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution Speak SpeakTextPacket SpearmanRankTest SpearmanRho Spectrogram SpectrogramArray Specularity SpellingCorrection SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackInhibit StandardDeviation StandardDeviationFilter StandardForm Standardize StandbyDistribution Star StarGraph StartAsynchronousTask StartingStepSize StartOfLine StartOfString StartScheduledTask StartupSound StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringCount StringDrop StringExpression StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPosition StringQ StringReplace StringReplaceList StringReplacePart StringReverse StringRotateLeft StringRotateRight StringSkeleton StringSplit StringTake StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleBoxOptions StyleData StyleDefinitions StyleForm StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subset SubsetEqual Subsets SubStar Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum SumConvergence Sunday SuperDagger SuperMinus SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceColor SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SystemDialogInput SystemException SystemHelpPath SystemInformation SystemInformationData SystemOpen SystemOptions SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemStub Tab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeWhile Tally Tan Tanh TargetFunctions TargetUnits TautologyQ TelegraphProcess TemplateBox TemplateBoxOptions TemplateSlotSequence TemporalData Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCell TextClipboardType TextData TextForm TextJustification TextLine TextPacket TextParagraph TextRecognize TextRendering TextStyle Texture TextureCoordinateFunction TextureCoordinateScaling Therefore ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreeJSymbol Threshold Through Throw Thumbnail Thursday Ticks TicksStyle Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint Times TimesBy TimeSeriesForecast TimeSeriesInvertibility TimeUsed TimeValue TimeZone Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate ToDiscreteTimeModel ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform TopologicalSort ToRadicals ToRules ToString Total TotalHeight TotalVariationFilter TotalWidth TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField Translate TranslationTransform TransparentColor Transpose TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle TriangleWave TriangularDistribution Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean True TrueQ TruncatedDistribution TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow Tuples TuranGraph TuringMachine Transparent UnateQ Uncompress Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UndirectedEdge UndirectedGraph UndirectedGraphQ UndocumentedTestFEParserPacket UndocumentedTestGetSelectionPacket Unequal Unevaluated UniformDistribution UniformGraphDistribution UniformSumDistribution Uninstall Union UnionPlus Unique UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitTriangle UnitVector Unprotect UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpValues URL URLFetch URLFetchAsynchronous URLSave URLSaveAsynchronous UseGraphicsRange Using UsingFrontEnd V2Get ValidationLength Value ValueBox ValueBoxOptions ValueForm ValueQ ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerifyConvergence VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoigtDistribution VonMisesDistribution WaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeberE Wedge Wednesday WeibullDistribution WeierstrassHalfPeriods WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WilksW WilksWTest WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult Word WordBoundary WordCharacter WordData WordSearch WordSeparators WorkingPrecision Write WriteString Wronskian XMLElement XMLObject Xnor Xor Yellow YuleDissimilarity ZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZipfDistribution ZTest ZTransform $Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AssertFunction $Assumptions $AsynchronousTask $BaseDirectory $BatchInput $BatchOutput $BoxForms $ByteOrdering $Canceled $CharacterEncoding $CharacterEncodings $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $CreationDate $CurrentLink $DateStringFormat $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $Epilog $ExportFormats $Failed $FinancialDataSource $FormatType $FrontEnd $FrontEndSession $GeoLocation $HistoryLength $HomeDirectory $HTTPCookies $IgnoreEOF $ImagingDevices $ImportFormats $InitialDirectory $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $ModuleNumber $NetworkLicense $NewMessage $NewSymbol $Notebooks $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $PipeSupported $Post $Pre $PreferencesDirectory $PrePrint $PreRead $PrintForms $PrintLiteral $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $RandomState $RecursionLimit $ReleaseNumber $RootDirectory $ScheduledTask $ScriptCommandLine $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemWordLength $TemporaryDirectory $TemporaryPrefix $TextStyle $TimedOut $TimeUnit $TimeZone $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $Urgent $UserAddOnsDirectory $UserBaseDirectory $UserDocumentsDirectory $UserName $Version $VersionNumber",
+c:[{cN:"comment",b:/\(\*/,e:/\*\)/},e.ASM,e.QSM,e.CNM,{cN:"list",b:/\{/,e:/\}/,i:/:/}]}});hljs.registerLanguage("fsharp",function(e){var t={b:"<",e:">",c:[e.inherit(e.TM,{b:/'[a-zA-Z0-9_]+/})]};return{aliases:["fs"],k:"yield! return! let! do!abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",c:[{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},{cN:"string",b:'"""',e:'"""'},e.C("\\(\\*","\\*\\)"),{cN:"class",bK:"type",e:"\\(|=|$",eE:!0,c:[e.UTM,t]},{cN:"annotation",b:"\\[<",e:">\\]",r:10},{cN:"attribute",b:"\\B('[A-Za-z])\\b",c:[e.BE]},e.CLCM,e.inherit(e.QSM,{i:null}),e.CNM]}});hljs.registerLanguage("verilog",function(e){return{aliases:["v"],cI:!0,k:{keyword:"always and assign begin buf bufif0 bufif1 case casex casez cmos deassign default defparam disable edge else end endcase endfunction endmodule endprimitive endspecify endtable endtask event for force forever fork function if ifnone initial inout input join macromodule module nand negedge nmos nor not notif0 notif1 or output parameter pmos posedge primitive pulldown pullup rcmos release repeat rnmos rpmos rtran rtranif0 rtranif1 specify specparam table task timescale tran tranif0 tranif1 wait while xnor xor",typename:"highz0 highz1 integer large medium pull0 pull1 real realtime reg scalared signed small strong0 strong1 supply0 supply0 supply1 supply1 time tri tri0 tri1 triand trior trireg vectored wand weak0 weak1 wire wor"},c:[e.CBCM,e.CLCM,e.QSM,{cN:"number",b:"\\b(\\d+'(b|h|o|d|B|H|O|D))?[0-9xzXZ]+",c:[e.BE],r:0},{cN:"typename",b:"\\.\\w+",r:0},{cN:"value",b:"#\\((?!parameter).+\\)"},{cN:"keyword",b:"\\+|-|\\*|/|%|<|>|=|#|`|\\!|&|\\||@|:|\\^|~|\\{|\\}",r:0}]}});hljs.registerLanguage("dos",function(e){var r=e.C(/@?rem\b/,/$/,{r:10}),t={cN:"label",b:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",r:0};return{aliases:["bat","cmd"],cI:!0,k:{flow:"if else goto for in do call exit not exist errorlevel defined",operator:"equ neq lss leq gtr geq",keyword:"shift cd dir echo setlocal endlocal set pause copy",stream:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux",winutils:"ping net ipconfig taskkill xcopy ren del",built_in:"append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shiftsort start subst time title tree type ver verify vol"},c:[{cN:"envvar",b:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{cN:"function",b:t.b,e:"goto:eof",c:[e.inherit(e.TM,{b:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),r]},{cN:"number",b:"\\b\\d+",r:0},r]}});hljs.registerLanguage("gherkin",function(e){return{aliases:["feature"],k:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",c:[{cN:"keyword",b:"\\*"},e.C("@[^@\r\n ]+","$"),{cN:"string",b:"\\|",e:"\\$"},{cN:"variable",b:"<",e:">"},e.HCM,{cN:"string",b:'"""',e:'"""'},e.QSM]}});hljs.registerLanguage("xml",function(t){var e="[A-Za-z0-9\\._:-]+",s={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php",subLanguageMode:"continuous"},c={eW:!0,i:/,r:0,c:[s,{cN:"attribute",b:e,r:0},{b:"=",r:0,c:[{cN:"value",c:[s],v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s\/>]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"doctype",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},t.C("",{r:10}),{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"",rE:!0,sL:"css"}},{cN:"tag",b:"",rE:!0,sL:""}},s,{cN:"pi",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"?",e:"/?>",c:[{cN:"title",b:/[^ \/><\n\t]+/,r:0},c]}]}});hljs.registerLanguage("autohotkey",function(e){var r={cN:"escape",b:"`[\\s\\S]"},c=e.C(";","$",{r:0}),n=[{cN:"built_in",b:"A_[a-zA-Z0-9]+"},{cN:"built_in",bK:"ComSpec Clipboard ClipboardAll ErrorLevel"}];return{cI:!0,k:{keyword:"Break Continue Else Gosub If Loop Return While",literal:"A true false NOT AND OR"},c:n.concat([r,e.inherit(e.QSM,{c:[r]}),c,{cN:"number",b:e.NR,r:0},{cN:"var_expand",b:"%",e:"%",i:"\\n",c:[r]},{cN:"label",c:[r],v:[{b:'^[^\\n";]+::(?!=)'},{b:'^[^\\n";]+:(?!=)',r:0}]},{b:",\\s*,",r:10}])}});hljs.registerLanguage("r",function(e){var r="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{c:[e.HCM,{b:r,l:r,k:{keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},r:0},{cN:"number",b:"0[xX][0-9a-fA-F]+[Li]?\\b",r:0},{cN:"number",b:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",r:0},{cN:"number",b:"\\d+\\.(?!\\d)(?:i\\b)?",r:0},{cN:"number",b:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",r:0},{cN:"number",b:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",r:0},{b:"`",e:"`",r:0},{cN:"string",c:[e.BE],v:[{b:'"',e:'"'},{b:"'",e:"'"}]}]}});hljs.registerLanguage("cs",function(e){var r="abstract as base bool break byte case catch char checked const continue decimal dynamic default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long null when object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while async protected public private internal ascending descending from get group into join let orderby partial select set value var where yield",t=e.IR+"(<"+e.IR+">)?";return{aliases:["csharp"],k:r,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"xmlDocTag",v:[{b:"///",r:0},{b:""},{b:"?",e:">"}]}]}),e.CLCM,e.CBCM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line region endregion pragma checksum"},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},e.ASM,e.QSM,e.CNM,{bK:"class namespace interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"new return throw await",r:0},{cN:"function",b:"("+t+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:r,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:r,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}});hljs.registerLanguage("nsis",function(e){var t={cN:"symbol",b:"\\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)"},n={cN:"constant",b:"\\$+{[a-zA-Z0-9_]+}"},i={cN:"variable",b:"\\$+[a-zA-Z0-9_]+",i:"\\(\\){}"},r={cN:"constant",b:"\\$+\\([a-zA-Z0-9_]+\\)"},o={cN:"params",b:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},l={cN:"constant",b:"\\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)"};return{cI:!1,k:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText IntCmp IntCmpU IntFmt IntOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetPluginUnload SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption SubSectionEnd Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both colored current false force hide highest lastused leave listonly none normal notset off on open print show silent silentlog smooth textonly true user "},c:[e.HCM,e.CBCM,{cN:"string",b:'"',e:'"',i:"\\n",c:[{cN:"symbol",b:"\\$(\\\\(n|r|t)|\\$)"},t,n,i,r]},e.C(";","$",{r:0}),{cN:"function",bK:"Function PageEx Section SectionGroup SubSection",e:"$"},l,n,i,r,o,e.NM,{cN:"literal",b:e.IR+"::"+e.IR}]}});hljs.registerLanguage("less",function(e){var r="[\\w-]+",t="("+r+"|@{"+r+"})",a=[],c=[],n=function(e){return{cN:"string",b:"~?"+e+".*?"+e}},i=function(e,r,t){return{cN:e,b:r,r:t}},s=function(r,t,a){return e.inherit({cN:r,b:t+"\\(",e:"\\(",rB:!0,eE:!0,r:0},a)},b={b:"\\(",e:"\\)",c:c,r:0};c.push(e.CLCM,e.CBCM,n("'"),n('"'),e.CSSNM,i("hexcolor","#[0-9A-Fa-f]+\\b"),s("function","(url|data-uri)",{starts:{cN:"string",e:"[\\)\\n]",eE:!0}}),s("function",r),b,i("variable","@@?"+r,10),i("variable","@{"+r+"}"),i("built_in","~?`[^`]*?`"),{cN:"attribute",b:r+"\\s*:",e:":",rB:!0,eE:!0});var o=c.concat({b:"{",e:"}",c:a}),u={bK:"when",eW:!0,c:[{bK:"and not"}].concat(c)},C={cN:"attribute",b:t,e:":",eE:!0,c:[e.CLCM,e.CBCM],i:/\S/,starts:{e:"[;}]",rE:!0,c:c,i:"[<=$]"}},l={cN:"at_rule",b:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{e:"[;{}]",rE:!0,c:c,r:0}},d={cN:"variable",v:[{b:"@"+r+"\\s*:",r:15},{b:"@"+r}],starts:{e:"[;}]",rE:!0,c:o}},p={v:[{b:"[\\.#:&\\[]",e:"[;{}]"},{b:t+"[^;]*{",e:"{"}],rB:!0,rE:!0,i:"[<='$\"]",c:[e.CLCM,e.CBCM,u,i("keyword","all\\b"),i("variable","@{"+r+"}"),i("tag",t+"%?",0),i("id","#"+t),i("class","\\."+t,0),i("keyword","&",0),s("pseudo",":not"),s("keyword",":extend"),i("pseudo","::?"+t),{cN:"attr_selector",b:"\\[",e:"\\]"},{b:"\\(",e:"\\)",c:o},{b:"!important"}]};return a.push(e.CLCM,e.CBCM,l,d,p,C),{cI:!0,i:"[=>'/<($\"]",c:a}});hljs.registerLanguage("pf",function(t){var o={cN:"variable",b:/\$[\w\d#@][\w\d_]*/},e={cN:"variable",b:/,e:/>/};return{aliases:["pf.conf"],l:/[a-z0-9_<>-]+/,k:{built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},c:[t.HCM,t.NM,t.QSM,o,e]}});hljs.registerLanguage("lasso",function(e){var r="[a-zA-Z_][a-zA-Z0-9_.]*",a="<\\?(lasso(script)?|=)",t="\\]|\\?>",s={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited",keyword:"error_code error_msg error_pop error_push error_reset cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},n=e.C("",{r:0}),o={cN:"preprocessor",b:"\\[noprocess\\]",starts:{cN:"markup",e:"\\[/noprocess\\]",rE:!0,c:[n]}},i={cN:"preprocessor",b:"\\[/noprocess|"+a},l={cN:"variable",b:"'"+r+"'"},c=[e.CLCM,{cN:"javadoc",b:"/\\*\\*!",e:"\\*/",c:[e.PWM]},e.CBCM,e.inherit(e.CNM,{b:e.CNR+"|(-?infinity|nan)\\b"}),e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"string",b:"`",e:"`"},{cN:"variable",v:[{b:"[#$]"+r},{b:"#",e:"\\d+",i:"\\W"}]},{cN:"tag",b:"::\\s*",e:r,i:"\\W"},{cN:"attribute",v:[{b:"-"+e.UIR,r:0},{b:"(\\.\\.\\.)"}]},{cN:"subst",v:[{b:"->\\s*",c:[l]},{b:":=|/(?!\\w)=?|[-+*%=<>&|!?\\\\]+",r:0}]},{cN:"built_in",b:"\\.\\.?\\s*",r:0,c:[l]},{cN:"class",bK:"define",rE:!0,e:"\\(|=>",c:[e.inherit(e.TM,{b:e.UIR+"(=(?!>))?"})]}];return{aliases:["ls","lassoscript"],cI:!0,l:r+"|&[lg]t;",k:s,c:[{cN:"preprocessor",b:t,r:0,starts:{cN:"markup",e:"\\[|"+a,rE:!0,r:0,c:[n]}},o,i,{cN:"preprocessor",b:"\\[no_square_brackets",starts:{e:"\\[/no_square_brackets\\]",l:r+"|&[lg]t;",k:s,c:[{cN:"preprocessor",b:t,r:0,starts:{cN:"markup",e:"\\[noprocess\\]|"+a,rE:!0,c:[n]}},o,i].concat(c)}},{cN:"preprocessor",b:"\\[",r:0},{cN:"shebang",b:"^#!.+lasso9\\b",r:10}].concat(c)}});hljs.registerLanguage("prolog",function(c){var r={cN:"atom",b:/[a-z][A-Za-z0-9_]*/,r:0},b={cN:"name",v:[{b:/[A-Z][a-zA-Z0-9_]*/},{b:/_[A-Za-z0-9_]*/}],r:0},a={b:/\(/,e:/\)/,r:0},e={b:/\[/,e:/\]/},n={cN:"comment",b:/%/,e:/$/,c:[c.PWM]},t={cN:"string",b:/`/,e:/`/,c:[c.BE]},g={cN:"string",b:/0\'(\\\'|.)/},N={cN:"string",b:/0\'\\s/},o={b:/:-/},s=[r,b,a,o,e,n,c.CBCM,c.QSM,c.ASM,t,g,N,c.CNM];return a.c=s,e.c=s,{c:s.concat([{b:/\.$/}])}});hljs.registerLanguage("oxygene",function(e){var r="abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained",t=e.C("{","}",{r:0}),a=e.C("\\(\\*","\\*\\)",{r:10}),n={cN:"string",b:"'",e:"'",c:[{b:"''"}]},o={cN:"string",b:"(#\\d+)+"},i={cN:"function",bK:"function constructor destructor procedure method",e:"[:;]",k:"function constructor|10 destructor|10 procedure|10 method|10",c:[e.TM,{cN:"params",b:"\\(",e:"\\)",k:r,c:[n,o]},t,a]};return{cI:!0,k:r,i:'("|\\$[G-Zg-z]|\\/\\*||=>|->)',c:[t,a,e.CLCM,n,o,e.NM,i,{cN:"class",b:"=\\bclass\\b",e:"end;",k:r,c:[n,o,t,a,e.CLCM,i]}]}});hljs.registerLanguage("applescript",function(e){var t=e.inherit(e.QSM,{i:""}),r={cN:"params",b:"\\(",e:"\\)",c:["self",e.CNM,t]},o=e.C("--","$"),n=e.C("\\(\\*","\\*\\)",{c:["self",o]}),a=[o,n,e.HCM];return{aliases:["osascript"],k:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",constant:"AppleScript false linefeed return pi quote result space tab true",type:"alias application boolean class constant date file integer list number real record string text",command:"activate beep count delay launch log offset read round run say summarize write",property:"character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},c:[t,e.CNM,{cN:"type",b:"\\bPOSIX file\\b"},{cN:"command",b:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{cN:"constant",b:"\\b(text item delimiters|current application|missing value)\\b"},{cN:"keyword",b:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference))\\b"},{cN:"property",b:"\\b(POSIX path|(date|time) string|quoted form)\\b"},{cN:"function_start",bK:"on",i:"[${=;\\n]",c:[e.UTM,r]}].concat(a),i:"//|->|=>"}});hljs.registerLanguage("makefile",function(e){var a={cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]};return{aliases:["mk","mak"],c:[e.HCM,{b:/^\w+\s*\W*=/,rB:!0,r:0,starts:{cN:"constant",e:/\s*\W*=/,eE:!0,starts:{e:/$/,r:0,c:[a]}}},{cN:"title",b:/^[\w]+:\s*$/},{cN:"phony",b:/^\.PHONY:/,e:/$/,k:".PHONY",l:/[\.\w]+/},{b:/^\t+/,e:/$/,r:0,c:[e.QSM,a]}]}});hljs.registerLanguage("dust",function(e){var a="if eq ne lt lte gt gte select default math sep";return{aliases:["dst"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[{cN:"expression",b:"{",e:"}",r:0,c:[{cN:"begin-block",b:"#[a-zA-Z- .]+",k:a},{cN:"string",b:'"',e:'"'},{cN:"end-block",b:"\\/[a-zA-Z- .]+",k:a},{cN:"variable",b:"[a-zA-Z-.]+",k:a,r:0}]}]}});hljs.registerLanguage("clojure-repl",function(e){return{c:[{cN:"prompt",b:/^([\w.-]+|\s*#_)=>/,starts:{e:/$/,sL:"clojure",subLanguageMode:"continuous"}}]}});hljs.registerLanguage("dart",function(e){var t={cN:"subst",b:"\\$\\{",e:"}",k:"true false null this is new super"},r={cN:"string",v:[{b:"r'''",e:"'''"},{b:'r"""',e:'"""'},{b:"r'",e:"'",i:"\\n"},{b:'r"',e:'"',i:"\\n"},{b:"'''",e:"'''",c:[e.BE,t]},{b:'"""',e:'"""',c:[e.BE,t]},{b:"'",e:"'",i:"\\n",c:[e.BE,t]},{b:'"',e:'"',i:"\\n",c:[e.BE,t]}]};t.c=[e.CNM,r];var n={keyword:"assert break case catch class const continue default do else enum extends false final finally for if in is new null rethrow return super switch this throw true try var void while with",literal:"abstract as dynamic export external factory get implements import library operator part set static typedef",built_in:"print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num document window querySelector querySelectorAll Element ElementList"};return{k:n,c:[r,{cN:"dartdoc",b:"/\\*\\*",e:"\\*/",sL:"markdown",subLanguageMode:"continuous"},{cN:"dartdoc",b:"///",e:"$",sL:"markdown",subLanguageMode:"continuous"},e.CLCM,e.CBCM,{cN:"class",bK:"class interface",e:"{",eE:!0,c:[{bK:"extends implements"},e.UTM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"},{b:"=>"}]}});
\ No newline at end of file
diff --git a/js/jquery-1.10.2.min.js b/js/jquery-1.10.2.min.js
new file mode 100644
index 0000000..da41706
--- /dev/null
+++ b/js/jquery-1.10.2.min.js
@@ -0,0 +1,6 @@
+/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
+//@ sourceMappingURL=jquery-1.10.2.min.map
+*/
+(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
a",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="
+
diff --git a/mkdocs/js/search.js b/mkdocs/js/search.js
new file mode 100644
index 0000000..d5c8661
--- /dev/null
+++ b/mkdocs/js/search.js
@@ -0,0 +1,88 @@
+require([
+ base_url + '/mkdocs/js/mustache.min.js',
+ base_url + '/mkdocs/js/lunr.min.js',
+ 'text!search-results-template.mustache',
+ 'text!../search_index.json',
+], function (Mustache, lunr, results_template, data) {
+ "use strict";
+
+ function getSearchTerm()
+ {
+ var sPageURL = window.location.search.substring(1);
+ var sURLVariables = sPageURL.split('&');
+ for (var i = 0; i < sURLVariables.length; i++)
+ {
+ var sParameterName = sURLVariables[i].split('=');
+ if (sParameterName[0] == 'q')
+ {
+ return decodeURIComponent(sParameterName[1].replace(/\+/g, '%20'));
+ }
+ }
+ }
+
+ var index = lunr(function () {
+ this.field('title', {boost: 10});
+ this.field('text');
+ this.ref('location');
+ });
+
+ data = JSON.parse(data);
+ var documents = {};
+
+ for (var i=0; i < data.docs.length; i++){
+ var doc = data.docs[i];
+ doc.location = base_url + doc.location;
+ index.add(doc);
+ documents[doc.location] = doc;
+ }
+
+ var search = function(){
+
+ var query = document.getElementById('mkdocs-search-query').value;
+ var search_results = document.getElementById("mkdocs-search-results");
+ while (search_results.firstChild) {
+ search_results.removeChild(search_results.firstChild);
+ }
+
+ if(query === ''){
+ return;
+ }
+
+ var results = index.search(query);
+
+ if (results.length > 0){
+ for (var i=0; i < results.length; i++){
+ var result = results[i];
+ doc = documents[result.ref];
+ doc.base_url = base_url;
+ doc.summary = doc.text.substring(0, 200);
+ var html = Mustache.to_html(results_template, doc);
+ search_results.insertAdjacentHTML('beforeend', html);
+ }
+ } else {
+ search_results.insertAdjacentHTML('beforeend', "
No results found
");
+ }
+
+ if(jQuery){
+ /*
+ * We currently only automatically hide bootstrap models. This
+ * requires jQuery to work.
+ */
+ jQuery('#mkdocs_search_modal a').click(function(){
+ jQuery('#mkdocs_search_modal').modal('hide');
+ });
+ }
+
+ };
+
+ var search_input = document.getElementById('mkdocs-search-query');
+
+ var term = getSearchTerm();
+ if (term){
+ search_input.value = term;
+ search();
+ }
+
+ search_input.addEventListener("keyup", search);
+
+});
diff --git a/mkdocs/js/text.js b/mkdocs/js/text.js
new file mode 100644
index 0000000..17921b6
--- /dev/null
+++ b/mkdocs/js/text.js
@@ -0,0 +1,390 @@
+/**
+ * @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/requirejs/text for details
+ */
+/*jslint regexp: true */
+/*global require, XMLHttpRequest, ActiveXObject,
+ define, window, process, Packages,
+ java, location, Components, FileUtils */
+
+define(['module'], function (module) {
+ 'use strict';
+
+ var text, fs, Cc, Ci, xpcIsWindows,
+ progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'],
+ xmlRegExp = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,
+ bodyRegExp = /]*>\s*([\s\S]+)\s*<\/body>/im,
+ hasLocation = typeof location !== 'undefined' && location.href,
+ defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\:/, ''),
+ defaultHostName = hasLocation && location.hostname,
+ defaultPort = hasLocation && (location.port || undefined),
+ buildMap = {},
+ masterConfig = (module.config && module.config()) || {};
+
+ text = {
+ version: '2.0.12',
+
+ strip: function (content) {
+ //Strips declarations so that external SVG and XML
+ //documents can be added to a document without worry. Also, if the string
+ //is an HTML document, only the part inside the body tag is returned.
+ if (content) {
+ content = content.replace(xmlRegExp, "");
+ var matches = content.match(bodyRegExp);
+ if (matches) {
+ content = matches[1];
+ }
+ } else {
+ content = "";
+ }
+ return content;
+ },
+
+ jsEscape: function (content) {
+ return content.replace(/(['\\])/g, '\\$1')
+ .replace(/[\f]/g, "\\f")
+ .replace(/[\b]/g, "\\b")
+ .replace(/[\n]/g, "\\n")
+ .replace(/[\t]/g, "\\t")
+ .replace(/[\r]/g, "\\r")
+ .replace(/[\u2028]/g, "\\u2028")
+ .replace(/[\u2029]/g, "\\u2029");
+ },
+
+ createXhr: masterConfig.createXhr || function () {
+ //Would love to dump the ActiveX crap in here. Need IE 6 to die first.
+ var xhr, i, progId;
+ if (typeof XMLHttpRequest !== "undefined") {
+ return new XMLHttpRequest();
+ } else if (typeof ActiveXObject !== "undefined") {
+ for (i = 0; i < 3; i += 1) {
+ progId = progIds[i];
+ try {
+ xhr = new ActiveXObject(progId);
+ } catch (e) {}
+
+ if (xhr) {
+ progIds = [progId]; // so faster next time
+ break;
+ }
+ }
+ }
+
+ return xhr;
+ },
+
+ /**
+ * Parses a resource name into its component parts. Resource names
+ * look like: module/name.ext!strip, where the !strip part is
+ * optional.
+ * @param {String} name the resource name
+ * @returns {Object} with properties "moduleName", "ext" and "strip"
+ * where strip is a boolean.
+ */
+ parseName: function (name) {
+ var modName, ext, temp,
+ strip = false,
+ index = name.indexOf("."),
+ isRelative = name.indexOf('./') === 0 ||
+ name.indexOf('../') === 0;
+
+ if (index !== -1 && (!isRelative || index > 1)) {
+ modName = name.substring(0, index);
+ ext = name.substring(index + 1, name.length);
+ } else {
+ modName = name;
+ }
+
+ temp = ext || modName;
+ index = temp.indexOf("!");
+ if (index !== -1) {
+ //Pull off the strip arg.
+ strip = temp.substring(index + 1) === "strip";
+ temp = temp.substring(0, index);
+ if (ext) {
+ ext = temp;
+ } else {
+ modName = temp;
+ }
+ }
+
+ return {
+ moduleName: modName,
+ ext: ext,
+ strip: strip
+ };
+ },
+
+ xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/,
+
+ /**
+ * Is an URL on another domain. Only works for browser use, returns
+ * false in non-browser environments. Only used to know if an
+ * optimized .js version of a text resource should be loaded
+ * instead.
+ * @param {String} url
+ * @returns Boolean
+ */
+ useXhr: function (url, protocol, hostname, port) {
+ var uProtocol, uHostName, uPort,
+ match = text.xdRegExp.exec(url);
+ if (!match) {
+ return true;
+ }
+ uProtocol = match[2];
+ uHostName = match[3];
+
+ uHostName = uHostName.split(':');
+ uPort = uHostName[1];
+ uHostName = uHostName[0];
+
+ return (!uProtocol || uProtocol === protocol) &&
+ (!uHostName || uHostName.toLowerCase() === hostname.toLowerCase()) &&
+ ((!uPort && !uHostName) || uPort === port);
+ },
+
+ finishLoad: function (name, strip, content, onLoad) {
+ content = strip ? text.strip(content) : content;
+ if (masterConfig.isBuild) {
+ buildMap[name] = content;
+ }
+ onLoad(content);
+ },
+
+ load: function (name, req, onLoad, config) {
+ //Name has format: some.module.filext!strip
+ //The strip part is optional.
+ //if strip is present, then that means only get the string contents
+ //inside a body tag in an HTML string. For XML/SVG content it means
+ //removing the declarations so the content can be inserted
+ //into the current doc without problems.
+
+ // Do not bother with the work if a build and text will
+ // not be inlined.
+ if (config && config.isBuild && !config.inlineText) {
+ onLoad();
+ return;
+ }
+
+ masterConfig.isBuild = config && config.isBuild;
+
+ var parsed = text.parseName(name),
+ nonStripName = parsed.moduleName +
+ (parsed.ext ? '.' + parsed.ext : ''),
+ url = req.toUrl(nonStripName),
+ useXhr = (masterConfig.useXhr) ||
+ text.useXhr;
+
+ // Do not load if it is an empty: url
+ if (url.indexOf('empty:') === 0) {
+ onLoad();
+ return;
+ }
+
+ //Load the text. Use XHR if possible and in a browser.
+ if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) {
+ text.get(url, function (content) {
+ text.finishLoad(name, parsed.strip, content, onLoad);
+ }, function (err) {
+ if (onLoad.error) {
+ onLoad.error(err);
+ }
+ });
+ } else {
+ //Need to fetch the resource across domains. Assume
+ //the resource has been optimized into a JS module. Fetch
+ //by the module name + extension, but do not include the
+ //!strip part to avoid file system issues.
+ req([nonStripName], function (content) {
+ text.finishLoad(parsed.moduleName + '.' + parsed.ext,
+ parsed.strip, content, onLoad);
+ });
+ }
+ },
+
+ write: function (pluginName, moduleName, write, config) {
+ if (buildMap.hasOwnProperty(moduleName)) {
+ var content = text.jsEscape(buildMap[moduleName]);
+ write.asModule(pluginName + "!" + moduleName,
+ "define(function () { return '" +
+ content +
+ "';});\n");
+ }
+ },
+
+ writeFile: function (pluginName, moduleName, req, write, config) {
+ var parsed = text.parseName(moduleName),
+ extPart = parsed.ext ? '.' + parsed.ext : '',
+ nonStripName = parsed.moduleName + extPart,
+ //Use a '.js' file name so that it indicates it is a
+ //script that can be loaded across domains.
+ fileName = req.toUrl(parsed.moduleName + extPart) + '.js';
+
+ //Leverage own load() method to load plugin value, but only
+ //write out values that do not have the strip argument,
+ //to avoid any potential issues with ! in file names.
+ text.load(nonStripName, req, function (value) {
+ //Use own write() method to construct full module value.
+ //But need to create shell that translates writeFile's
+ //write() to the right interface.
+ var textWrite = function (contents) {
+ return write(fileName, contents);
+ };
+ textWrite.asModule = function (moduleName, contents) {
+ return write.asModule(moduleName, fileName, contents);
+ };
+
+ text.write(pluginName, nonStripName, textWrite, config);
+ }, config);
+ }
+ };
+
+ if (masterConfig.env === 'node' || (!masterConfig.env &&
+ typeof process !== "undefined" &&
+ process.versions &&
+ !!process.versions.node &&
+ !process.versions['node-webkit'])) {
+ //Using special require.nodeRequire, something added by r.js.
+ fs = require.nodeRequire('fs');
+
+ text.get = function (url, callback, errback) {
+ try {
+ var file = fs.readFileSync(url, 'utf8');
+ //Remove BOM (Byte Mark Order) from utf8 files if it is there.
+ if (file.indexOf('\uFEFF') === 0) {
+ file = file.substring(1);
+ }
+ callback(file);
+ } catch (e) {
+ if (errback) {
+ errback(e);
+ }
+ }
+ };
+ } else if (masterConfig.env === 'xhr' || (!masterConfig.env &&
+ text.createXhr())) {
+ text.get = function (url, callback, errback, headers) {
+ var xhr = text.createXhr(), header;
+ xhr.open('GET', url, true);
+
+ //Allow plugins direct access to xhr headers
+ if (headers) {
+ for (header in headers) {
+ if (headers.hasOwnProperty(header)) {
+ xhr.setRequestHeader(header.toLowerCase(), headers[header]);
+ }
+ }
+ }
+
+ //Allow overrides specified in config
+ if (masterConfig.onXhr) {
+ masterConfig.onXhr(xhr, url);
+ }
+
+ xhr.onreadystatechange = function (evt) {
+ var status, err;
+ //Do not explicitly handle errors, those should be
+ //visible via console output in the browser.
+ if (xhr.readyState === 4) {
+ status = xhr.status || 0;
+ if (status > 399 && status < 600) {
+ //An http 4xx or 5xx error. Signal an error.
+ err = new Error(url + ' HTTP status: ' + status);
+ err.xhr = xhr;
+ if (errback) {
+ errback(err);
+ }
+ } else {
+ callback(xhr.responseText);
+ }
+
+ if (masterConfig.onXhrComplete) {
+ masterConfig.onXhrComplete(xhr, url);
+ }
+ }
+ };
+ xhr.send(null);
+ };
+ } else if (masterConfig.env === 'rhino' || (!masterConfig.env &&
+ typeof Packages !== 'undefined' && typeof java !== 'undefined')) {
+ //Why Java, why is this so awkward?
+ text.get = function (url, callback) {
+ var stringBuffer, line,
+ encoding = "utf-8",
+ file = new java.io.File(url),
+ lineSeparator = java.lang.System.getProperty("line.separator"),
+ input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
+ content = '';
+ try {
+ stringBuffer = new java.lang.StringBuffer();
+ line = input.readLine();
+
+ // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
+ // http://www.unicode.org/faq/utf_bom.html
+
+ // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
+ // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
+ if (line && line.length() && line.charAt(0) === 0xfeff) {
+ // Eat the BOM, since we've already found the encoding on this file,
+ // and we plan to concatenating this buffer with others; the BOM should
+ // only appear at the top of a file.
+ line = line.substring(1);
+ }
+
+ if (line !== null) {
+ stringBuffer.append(line);
+ }
+
+ while ((line = input.readLine()) !== null) {
+ stringBuffer.append(lineSeparator);
+ stringBuffer.append(line);
+ }
+ //Make sure we return a JavaScript string and not a Java string.
+ content = String(stringBuffer.toString()); //String
+ } finally {
+ input.close();
+ }
+ callback(content);
+ };
+ } else if (masterConfig.env === 'xpconnect' || (!masterConfig.env &&
+ typeof Components !== 'undefined' && Components.classes &&
+ Components.interfaces)) {
+ //Avert your gaze!
+ Cc = Components.classes;
+ Ci = Components.interfaces;
+ Components.utils['import']('resource://gre/modules/FileUtils.jsm');
+ xpcIsWindows = ('@mozilla.org/windows-registry-key;1' in Cc);
+
+ text.get = function (url, callback) {
+ var inStream, convertStream, fileObj,
+ readData = {};
+
+ if (xpcIsWindows) {
+ url = url.replace(/\//g, '\\');
+ }
+
+ fileObj = new FileUtils.File(url);
+
+ //XPCOM, you so crazy
+ try {
+ inStream = Cc['@mozilla.org/network/file-input-stream;1']
+ .createInstance(Ci.nsIFileInputStream);
+ inStream.init(fileObj, 1, 0, false);
+
+ convertStream = Cc['@mozilla.org/intl/converter-input-stream;1']
+ .createInstance(Ci.nsIConverterInputStream);
+ convertStream.init(inStream, "utf-8", inStream.available(),
+ Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);
+
+ convertStream.readString(inStream.available(), readData);
+ convertStream.close();
+ inStream.close();
+ callback(readData.value);
+ } catch (e) {
+ throw new Error((fileObj && fileObj.path || '') + ': ' + e);
+ }
+ };
+ }
+ return text;
+});
diff --git a/mkdocs/search_index.json b/mkdocs/search_index.json
new file mode 100644
index 0000000..f59444f
--- /dev/null
+++ b/mkdocs/search_index.json
@@ -0,0 +1,364 @@
+{
+ "docs": [
+ {
+ "location": "/",
+ "text": "Tutorial for zeeSQL\n\n\nSetting up the environment\n\n\nIf you want to start exploring zeeSQL, this tutorial will walk you through the most important commands to know and how to use them.\n\n\nThe simplest way to follow this tutorial is to launch an instance of \nzeeSQL\n using docker.\n\n\ndocker run --name zeesql --rm -d redbeardlab/zeesql\n\n\n\n\nThe next thing you will need to follow the tutorial is the \nredis-cli\n.\n\n\nYou can connect to the same docker container and start the \nredis-cli\n with:\n\n\ndocker exec -it zeesql redis-cli\n\n\n\n\nAt this point you are inside the \nredis-cli\n, ready to interact with \nRedis\n and \nzeeSQL\n.\n\n\nCreating a database in zeeSQL\n\n\nThe very first step when working with \nzeeSQL\n it is to create a new database.\n\n\nThe database can be created with a single command.\n\n\n127.0.0.1:6379> ZEESQL.CREATE_DB DB\n1) 1) \"OK\"\n\n\n\n\nThis command will create a new database, and it will associate it with the Redis key \nDB\n.\n\n\nAny time we want to interact with this database, we will pass \nDB\n to the \nzeeSQL\n commands.\n\n\nIt is possible to create more than one database, you can create as many as you like, since they are very lightweight.\n\n\nSending commands to the database\n\n\nAfter creating a database, we want to interact with it. It is possible to interact with the database sending it commands.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select 1;' NO_HEADER\n1) 1) \"RESULT\"\n2) 1) (integer) 1\n\n\n\n\nWe have successfully sent our first command to \nzeeSQL\n and get our first \nRESULT\n, the integer 1.\n\n\nModify the database structure\n\n\nA database without tables is not very useful.\nWe will now create a table to store information about users.\n\n\nIn the table we want to store the username, its score and the user email.\nThe username and the email will be text fields, while the score will be an integer field.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'CREATE TABLE users(username TEXT, score INT, email TEXT);'\n1) 1) \"DONE\"\n2) 1) (integer) 0\n\n\n\n\nThe operation was successfully and 0 rows have been modified.\n\n\nHowever, we now have a table where we can store information about the user.\n\n\nAdd data to the database\n\n\nWe can now start to add users to our table.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"jsmith\", 3, \"jon.smith@gmail.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"EvelineInArgentina\", 3, \"eve.frank@yahoo.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"DuffyAlone\", 12, \"mr.duffy@proton.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"far\", 6, \"farrington@nv.ru\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n\n\n\n\nEach insert was successful and each one added one more row to the database.\n\n\nQuery the database\n\n\nAfter having added data to the database, we want to query those data back.\n\n\nWe can ask for the score of the user \njsmith\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT score FROM users WHERE username = \"jsmith\"'\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 3\n\n\n\n\nIn this case the score is an integer, and it is of value 3.\n\n\nOr to know what users have a score greater than 5\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT username FROM users WHERE score > 5'\n1) 1) \"RESULT\"\n2) 1) \"username\"\n3) 1) \"TEXT\"\n4) 1) \"DuffyAlone\"\n5) 1) \"far\"\n\n\n\n\nIn this other case the usernames are of type TEXT and are: \nDuffyAlone\n and \nfar\n.\n\n\nSince we are not modifying the database, instead of EXECUTING a command with \nEXEC\n we can just QUERY.\n\n\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT username FROM users WHERE score > 5'\n1) 1) \"RESULT\"\n2) 1) \"username\"\n3) 1) \"TEXT\"\n4) 1) \"DuffyAlone\"\n5) 1) \"far\"\n\n\n\n\nQUERY\n does not work when trying to modify the database.\n\n\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'INSERT INTO users VALUES(\"far\", 6, \"farrington@nv.ru\");'\n(error) Statement is not read only but it may modify the database, use `EXEC_STATEMENT` instead.\n\n\n\n\nModify the data\n\n\nOur users, keep using our platform, are increasing their score. We can increase the score with an update.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + 1 WHERE username = \"jsmith\";'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = \"jsmith\"'\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 4\n\n\n\n\nIn this example, we first increase the score of the user \njsmith\n of one, and then we query the same score.\n\n\nDelete the data\n\n\nEventually our user will leave the platform, in this case we can delete them.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'DELETE FROM users WHERE username = \"far\";'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n\n\n\n\nUse arguments for your queries\n\n\nUp to now, we send only SQL queries that contains all the parameters. \nIt is also possible to send a query with placeholders followed by arguments.\nThis is useful to avoid SQL injections attacks and to avoid string constructions at runtime.\n\n\nIn our example we can increment the score of a player by a specific amount.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + ?2 WHERE username = ?1;' ARGS jsmith 3\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = ?1' ARGS jsmith\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 7\n\n\n\n\nThe first argument is \n?1\n (not \n?0\n) and the second argument is \n?2\n.\n\n\nUsing secondary indexes (or search by values) in Redis\n\n\nNow that we have understood how to deal with standard zeeSQL databases and how to query them, we can move forward.\n\n\nNow we will introduce zeeSQL secondary indexes, or how to search and project Redis \nhash\n data.\n\n\nIn Redis, it is common to store values as hash.\nEach hash is univocally identify by a key, and it has one of more field. \nEach field has a value associated with.\n\n\nRedis already provide fast access to elements by their key.\nBut it is not possible to search keys from their values.\n\n\nWith zeeSQL we can solve this problem, but automatically push the hashes keys and values to a specific table.\n\n\nWe will work with a simple telemetric system.\nWe have different sensors, each sensor send a timestamp, a temperature value and a humidity value.\n\n\nSaving the data into Redis\n\n\nAs first step let's see how we model the data in raw Redis, using Redis Hashes.\n\n\n127.0.0.1:6379> HMSET sensor:001:1612733809 timestamp 1612733809 sensor 1 temperature 23 humidity 56\nOK\n127.0.0.1:6379> HMSET sensor:001:1612633809 timestamp 1612633809 sensor 1 temperature 18 humidity 21\nOK\n127.0.0.1:6379> HMSET sensor:001:1612633819 timestamp 1612633819 sensor 1 temperature 20 humidity 23\nOK\n127.0.0.1:6379> HMSET sensor:002:1612733809 timestamp 1612733809 sensor 2 temperature 32 humidity 11\nOK\n127.0.0.1:6379> HMSET sensor:002:1612633809 timestamp 1612633809 sensor 2 temperature 21 humidity 16\nOK\n127.0.0.1:6379> HMSET sensor:002:1612633819 timestamp 1612633819 sensor 2 temperature 23 humidity 12\nOK\n\n\n\n\nThe key is in the form \nsensor:$sendor_id:$timestamp\n and the other fields contains the telemetries' data.\n\n\nCreating an index\n\n\nWe now want to store the information in the sensor in an SQL table, for easier access.\n\n\n127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE sensors PREFIX sensor:* SCHEMA timestamp INT sensor INT temperature INT humidity INT\nOK\n\n\n\n\nThe command creates a new secondary index associate with the table \nsensors\n.\nThe index will be concerned only for the hashes which key start with the prefix \nsensor:\n (\n*\n being a catch-all).\nThe schema used by the index will have 4 rows, each of them will be an INTEGER, and the name of those columns are respectively \ntimestamp\n. \nsensor\n, \ntemperature\n and \nhumidity\n.\n\n\nThe creation of an index, imply the creation of the table in the database.\nIf the table already exists, it is assumed to contain the correct columns.\n\n\nReading data from the index\n\n\nAs soon as the index is created, the Redis keys space is scanned and the hashes are added to the table.\nWhich means that we can immediately query the table.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"timestamp\"\n 3) \"sensor\"\n 4) \"temperature\"\n 5) \"humidity\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n 3) \"INT\"\n 4) \"INT\"\n 5) \"INT\"\n4) 1) \"sensor:001:1612633809\"\n 2) (integer) 1612633809\n 3) (integer) 1\n 4) (integer) 18\n 5) (integer) 21\n5) 1) \"sensor:002:1612733809\"\n 2) (integer) 1612733809\n 3) (integer) 2\n 4) (integer) 32\n 5) (integer) 11\n6) 1) \"sensor:001:1612733809\"\n 2) (integer) 1612733809\n 3) (integer) 1\n 4) (integer) 23\n 5) (integer) 56\n7) 1) \"sensor:002:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 2\n 4) (integer) 23\n 5) (integer) 12\n8) 1) \"sensor:002:1612633809\"\n 2) (integer) 1612633809\n 3) (integer) 2\n 4) (integer) 21\n 5) (integer) 16\n9) 1) \"sensor:001:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 1\n 4) (integer) 20\n 5) (integer) 23\n\n\n\n\nModify the table of the index\n\n\nIt is possible to add, remove and update values to the index table manually.\nDo not do that, the data between Redis and zeeSQL will go out of sync.\n\n\nAdding hashes\n\n\nThe index continuously listens to the HASH commands of Redis and keeps the table in sync.\n\n\n127.0.0.1:6379> HMSET sensor:003:1612633819 timestamp 1612633819 sensor 3 temperature 50 humidity 8\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"timestamp\"\n 3) \"sensor\"\n 4) \"temperature\"\n 5) \"humidity\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n 3) \"INT\"\n 4) \"INT\"\n 5) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 3\n 4) (integer) 50\n 5) (integer) 8\n\n\n\n\nIn this example we added the sensor with ID 3, after the secondary index was already in place.\n\n\nRemoving hashes\n\n\nSimilarly, if a hash is deleted, the correct row is deleted from the table.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n3) 1) \"TEXT\"\n4) 1) \"sensor:002:1612733809\"\n5) 1) \"sensor:002:1612633819\"\n6) 1) \"sensor:002:1612633809\"\n127.0.0.1:6379> DEL sensor:002:1612633809\n(integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n3) 1) \"TEXT\"\n4) 1) \"sensor:002:1612733809\"\n5) 1) \"sensor:002:1612633819\"\n\n\n\n\nAs you can see we delete a hash, and the correct row was deleted also from the table.\n\n\nUpdating hashes\n\n\nAs with deletion, updating a hash is also reflected on the index table.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"temperature\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 50\n127.0.0.1:6379> HINCRBY sensor:003:1612633819 temperature 33\n(integer) 83\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"temperature\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 83\n\n\n\n\nIn this case we update a hash, and also the table was updated.\n\n\nQuerying the secondary index table\n\n\nThe secondary index table, it is just a plain SQL table.\nzeeSQL does not add any index on the table.\nUser is free to add the SQL indexes it desired to the secondary index table.\n\n\nWithout any index, each query will go through a full table scan.\n\n\nEnd\n\n\nI hope that this tutorial was helpful :)\n\n\nIf you have any question, feel free to contact me simone@redbeardlab.com or on github: \nRedBeardLab/zeeSQL-doc",
+ "title": "Overview"
+ },
+ {
+ "location": "/#tutorial-for-zeesql",
+ "text": "",
+ "title": "Tutorial for zeeSQL"
+ },
+ {
+ "location": "/#setting-up-the-environment",
+ "text": "If you want to start exploring zeeSQL, this tutorial will walk you through the most important commands to know and how to use them. The simplest way to follow this tutorial is to launch an instance of zeeSQL using docker. docker run --name zeesql --rm -d redbeardlab/zeesql The next thing you will need to follow the tutorial is the redis-cli . You can connect to the same docker container and start the redis-cli with: docker exec -it zeesql redis-cli At this point you are inside the redis-cli , ready to interact with Redis and zeeSQL .",
+ "title": "Setting up the environment"
+ },
+ {
+ "location": "/#creating-a-database-in-zeesql",
+ "text": "The very first step when working with zeeSQL it is to create a new database. The database can be created with a single command. 127.0.0.1:6379> ZEESQL.CREATE_DB DB\n1) 1) \"OK\" This command will create a new database, and it will associate it with the Redis key DB . Any time we want to interact with this database, we will pass DB to the zeeSQL commands. It is possible to create more than one database, you can create as many as you like, since they are very lightweight.",
+ "title": "Creating a database in zeeSQL"
+ },
+ {
+ "location": "/#sending-commands-to-the-database",
+ "text": "After creating a database, we want to interact with it. It is possible to interact with the database sending it commands. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select 1;' NO_HEADER\n1) 1) \"RESULT\"\n2) 1) (integer) 1 We have successfully sent our first command to zeeSQL and get our first RESULT , the integer 1.",
+ "title": "Sending commands to the database"
+ },
+ {
+ "location": "/#modify-the-database-structure",
+ "text": "A database without tables is not very useful.\nWe will now create a table to store information about users. In the table we want to store the username, its score and the user email.\nThe username and the email will be text fields, while the score will be an integer field. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'CREATE TABLE users(username TEXT, score INT, email TEXT);'\n1) 1) \"DONE\"\n2) 1) (integer) 0 The operation was successfully and 0 rows have been modified. However, we now have a table where we can store information about the user.",
+ "title": "Modify the database structure"
+ },
+ {
+ "location": "/#add-data-to-the-database",
+ "text": "We can now start to add users to our table. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"jsmith\", 3, \"jon.smith@gmail.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"EvelineInArgentina\", 3, \"eve.frank@yahoo.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"DuffyAlone\", 12, \"mr.duffy@proton.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"far\", 6, \"farrington@nv.ru\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1 Each insert was successful and each one added one more row to the database.",
+ "title": "Add data to the database"
+ },
+ {
+ "location": "/#query-the-database",
+ "text": "After having added data to the database, we want to query those data back. We can ask for the score of the user jsmith 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT score FROM users WHERE username = \"jsmith\"'\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 3 In this case the score is an integer, and it is of value 3. Or to know what users have a score greater than 5 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT username FROM users WHERE score > 5'\n1) 1) \"RESULT\"\n2) 1) \"username\"\n3) 1) \"TEXT\"\n4) 1) \"DuffyAlone\"\n5) 1) \"far\" In this other case the usernames are of type TEXT and are: DuffyAlone and far . Since we are not modifying the database, instead of EXECUTING a command with EXEC we can just QUERY. 127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT username FROM users WHERE score > 5'\n1) 1) \"RESULT\"\n2) 1) \"username\"\n3) 1) \"TEXT\"\n4) 1) \"DuffyAlone\"\n5) 1) \"far\" QUERY does not work when trying to modify the database. 127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'INSERT INTO users VALUES(\"far\", 6, \"farrington@nv.ru\");'\n(error) Statement is not read only but it may modify the database, use `EXEC_STATEMENT` instead.",
+ "title": "Query the database"
+ },
+ {
+ "location": "/#modify-the-data",
+ "text": "Our users, keep using our platform, are increasing their score. We can increase the score with an update. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + 1 WHERE username = \"jsmith\";'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = \"jsmith\"'\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 4 In this example, we first increase the score of the user jsmith of one, and then we query the same score.",
+ "title": "Modify the data"
+ },
+ {
+ "location": "/#delete-the-data",
+ "text": "Eventually our user will leave the platform, in this case we can delete them. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'DELETE FROM users WHERE username = \"far\";'\n1) 1) \"DONE\"\n2) 1) (integer) 1",
+ "title": "Delete the data"
+ },
+ {
+ "location": "/#use-arguments-for-your-queries",
+ "text": "Up to now, we send only SQL queries that contains all the parameters. \nIt is also possible to send a query with placeholders followed by arguments.\nThis is useful to avoid SQL injections attacks and to avoid string constructions at runtime. In our example we can increment the score of a player by a specific amount. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + ?2 WHERE username = ?1;' ARGS jsmith 3\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = ?1' ARGS jsmith\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 7 The first argument is ?1 (not ?0 ) and the second argument is ?2 .",
+ "title": "Use arguments for your queries"
+ },
+ {
+ "location": "/#using-secondary-indexes-or-search-by-values-in-redis",
+ "text": "Now that we have understood how to deal with standard zeeSQL databases and how to query them, we can move forward. Now we will introduce zeeSQL secondary indexes, or how to search and project Redis hash data. In Redis, it is common to store values as hash.\nEach hash is univocally identify by a key, and it has one of more field. \nEach field has a value associated with. Redis already provide fast access to elements by their key.\nBut it is not possible to search keys from their values. With zeeSQL we can solve this problem, but automatically push the hashes keys and values to a specific table. We will work with a simple telemetric system.\nWe have different sensors, each sensor send a timestamp, a temperature value and a humidity value.",
+ "title": "Using secondary indexes (or search by values) in Redis"
+ },
+ {
+ "location": "/#saving-the-data-into-redis",
+ "text": "As first step let's see how we model the data in raw Redis, using Redis Hashes. 127.0.0.1:6379> HMSET sensor:001:1612733809 timestamp 1612733809 sensor 1 temperature 23 humidity 56\nOK\n127.0.0.1:6379> HMSET sensor:001:1612633809 timestamp 1612633809 sensor 1 temperature 18 humidity 21\nOK\n127.0.0.1:6379> HMSET sensor:001:1612633819 timestamp 1612633819 sensor 1 temperature 20 humidity 23\nOK\n127.0.0.1:6379> HMSET sensor:002:1612733809 timestamp 1612733809 sensor 2 temperature 32 humidity 11\nOK\n127.0.0.1:6379> HMSET sensor:002:1612633809 timestamp 1612633809 sensor 2 temperature 21 humidity 16\nOK\n127.0.0.1:6379> HMSET sensor:002:1612633819 timestamp 1612633819 sensor 2 temperature 23 humidity 12\nOK The key is in the form sensor:$sendor_id:$timestamp and the other fields contains the telemetries' data.",
+ "title": "Saving the data into Redis"
+ },
+ {
+ "location": "/#creating-an-index",
+ "text": "We now want to store the information in the sensor in an SQL table, for easier access. 127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE sensors PREFIX sensor:* SCHEMA timestamp INT sensor INT temperature INT humidity INT\nOK The command creates a new secondary index associate with the table sensors .\nThe index will be concerned only for the hashes which key start with the prefix sensor: ( * being a catch-all).\nThe schema used by the index will have 4 rows, each of them will be an INTEGER, and the name of those columns are respectively timestamp . sensor , temperature and humidity . The creation of an index, imply the creation of the table in the database.\nIf the table already exists, it is assumed to contain the correct columns.",
+ "title": "Creating an index"
+ },
+ {
+ "location": "/#reading-data-from-the-index",
+ "text": "As soon as the index is created, the Redis keys space is scanned and the hashes are added to the table.\nWhich means that we can immediately query the table. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"timestamp\"\n 3) \"sensor\"\n 4) \"temperature\"\n 5) \"humidity\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n 3) \"INT\"\n 4) \"INT\"\n 5) \"INT\"\n4) 1) \"sensor:001:1612633809\"\n 2) (integer) 1612633809\n 3) (integer) 1\n 4) (integer) 18\n 5) (integer) 21\n5) 1) \"sensor:002:1612733809\"\n 2) (integer) 1612733809\n 3) (integer) 2\n 4) (integer) 32\n 5) (integer) 11\n6) 1) \"sensor:001:1612733809\"\n 2) (integer) 1612733809\n 3) (integer) 1\n 4) (integer) 23\n 5) (integer) 56\n7) 1) \"sensor:002:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 2\n 4) (integer) 23\n 5) (integer) 12\n8) 1) \"sensor:002:1612633809\"\n 2) (integer) 1612633809\n 3) (integer) 2\n 4) (integer) 21\n 5) (integer) 16\n9) 1) \"sensor:001:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 1\n 4) (integer) 20\n 5) (integer) 23",
+ "title": "Reading data from the index"
+ },
+ {
+ "location": "/#modify-the-table-of-the-index",
+ "text": "It is possible to add, remove and update values to the index table manually.\nDo not do that, the data between Redis and zeeSQL will go out of sync.",
+ "title": "Modify the table of the index"
+ },
+ {
+ "location": "/#adding-hashes",
+ "text": "The index continuously listens to the HASH commands of Redis and keeps the table in sync. 127.0.0.1:6379> HMSET sensor:003:1612633819 timestamp 1612633819 sensor 3 temperature 50 humidity 8\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"timestamp\"\n 3) \"sensor\"\n 4) \"temperature\"\n 5) \"humidity\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n 3) \"INT\"\n 4) \"INT\"\n 5) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 3\n 4) (integer) 50\n 5) (integer) 8 In this example we added the sensor with ID 3, after the secondary index was already in place.",
+ "title": "Adding hashes"
+ },
+ {
+ "location": "/#removing-hashes",
+ "text": "Similarly, if a hash is deleted, the correct row is deleted from the table. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n3) 1) \"TEXT\"\n4) 1) \"sensor:002:1612733809\"\n5) 1) \"sensor:002:1612633819\"\n6) 1) \"sensor:002:1612633809\"\n127.0.0.1:6379> DEL sensor:002:1612633809\n(integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n3) 1) \"TEXT\"\n4) 1) \"sensor:002:1612733809\"\n5) 1) \"sensor:002:1612633819\" As you can see we delete a hash, and the correct row was deleted also from the table.",
+ "title": "Removing hashes"
+ },
+ {
+ "location": "/#updating-hashes",
+ "text": "As with deletion, updating a hash is also reflected on the index table. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"temperature\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 50\n127.0.0.1:6379> HINCRBY sensor:003:1612633819 temperature 33\n(integer) 83\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"temperature\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 83 In this case we update a hash, and also the table was updated.",
+ "title": "Updating hashes"
+ },
+ {
+ "location": "/#querying-the-secondary-index-table",
+ "text": "The secondary index table, it is just a plain SQL table.\nzeeSQL does not add any index on the table.\nUser is free to add the SQL indexes it desired to the secondary index table. Without any index, each query will go through a full table scan.",
+ "title": "Querying the secondary index table"
+ },
+ {
+ "location": "/#end",
+ "text": "I hope that this tutorial was helpful :) If you have any question, feel free to contact me simone@redbeardlab.com or on github: RedBeardLab/zeeSQL-doc",
+ "title": "End"
+ },
+ {
+ "location": "/tutorial/",
+ "text": "Tutorial for zeeSQL\n\n\nSetting up the environment\n\n\nIf you want to start exploring zeeSQL, this tutorial will walk you through the most important commands to know and how to use them.\n\n\nThe simplest way to follow this tutorial is to launch an instance of \nzeeSQL\n using docker.\n\n\ndocker run --name zeesql --rm -d redbeardlab/zeesql\n\n\n\n\nThe next thing you will need to follow the tutorial is the \nredis-cli\n.\n\n\nYou can connect to the same docker container and start the \nredis-cli\n with:\n\n\ndocker exec -it zeesql redis-cli\n\n\n\n\nAt this point you are inside the \nredis-cli\n, ready to interact with \nRedis\n and \nzeeSQL\n.\n\n\nCreating a database in zeeSQL\n\n\nThe very first step when working with \nzeeSQL\n it is to create a new database.\n\n\nThe database can be created with a single command.\n\n\n127.0.0.1:6379> ZEESQL.CREATE_DB DB\n1) 1) \"OK\"\n\n\n\n\nThis command will create a new database, and it will associate it with the Redis key \nDB\n.\n\n\nAny time we want to interact with this database, we will pass \nDB\n to the \nzeeSQL\n commands.\n\n\nIt is possible to create more than one database, you can create as many as you like, since they are very lightweight.\n\n\nSending commands to the database\n\n\nAfter creating a database, we want to interact with it. It is possible to interact with the database sending it commands.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select 1;' NO_HEADER\n1) 1) \"RESULT\"\n2) 1) (integer) 1\n\n\n\n\nWe have successfully sent our first command to \nzeeSQL\n and get our first \nRESULT\n, the integer 1.\n\n\nModify the database structure\n\n\nA database without tables is not very useful.\nWe will now create a table to store information about users.\n\n\nIn the table we want to store the username, its score and the user email.\nThe username and the email will be text fields, while the score will be an integer field.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'CREATE TABLE users(username TEXT, score INT, email TEXT);'\n1) 1) \"DONE\"\n2) 1) (integer) 0\n\n\n\n\nThe operation was successfully and 0 rows have been modified.\n\n\nHowever, we now have a table where we can store information about the user.\n\n\nAdd data to the database\n\n\nWe can now start to add users to our table.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"jsmith\", 3, \"jon.smith@gmail.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"EvelineInArgentina\", 3, \"eve.frank@yahoo.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"DuffyAlone\", 12, \"mr.duffy@proton.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"far\", 6, \"farrington@nv.ru\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n\n\n\n\nEach insert was successful and each one added one more row to the database.\n\n\nQuery the database\n\n\nAfter having added data to the database, we want to query those data back.\n\n\nWe can ask for the score of the user \njsmith\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT score FROM users WHERE username = \"jsmith\"'\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 3\n\n\n\n\nIn this case the score is an integer, and it is of value 3.\n\n\nOr to know what users have a score greater than 5\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT username FROM users WHERE score > 5'\n1) 1) \"RESULT\"\n2) 1) \"username\"\n3) 1) \"TEXT\"\n4) 1) \"DuffyAlone\"\n5) 1) \"far\"\n\n\n\n\nIn this other case the usernames are of type TEXT and are: \nDuffyAlone\n and \nfar\n.\n\n\nSince we are not modifying the database, instead of EXECUTING a command with \nEXEC\n we can just QUERY.\n\n\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT username FROM users WHERE score > 5'\n1) 1) \"RESULT\"\n2) 1) \"username\"\n3) 1) \"TEXT\"\n4) 1) \"DuffyAlone\"\n5) 1) \"far\"\n\n\n\n\nQUERY\n does not work when trying to modify the database.\n\n\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'INSERT INTO users VALUES(\"far\", 6, \"farrington@nv.ru\");'\n(error) Statement is not read only but it may modify the database, use `EXEC_STATEMENT` instead.\n\n\n\n\nModify the data\n\n\nOur users, keep using our platform, are increasing their score. We can increase the score with an update.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + 1 WHERE username = \"jsmith\";'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = \"jsmith\"'\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 4\n\n\n\n\nIn this example, we first increase the score of the user \njsmith\n of one, and then we query the same score.\n\n\nDelete the data\n\n\nEventually our user will leave the platform, in this case we can delete them.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'DELETE FROM users WHERE username = \"far\";'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n\n\n\n\nUse arguments for your queries\n\n\nUp to now, we send only SQL queries that contains all the parameters. \nIt is also possible to send a query with placeholders followed by arguments.\nThis is useful to avoid SQL injections attacks and to avoid string constructions at runtime.\n\n\nIn our example we can increment the score of a player by a specific amount.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + ?2 WHERE username = ?1;' ARGS jsmith 3\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = ?1' ARGS jsmith\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 7\n\n\n\n\nThe first argument is \n?1\n (not \n?0\n) and the second argument is \n?2\n.\n\n\nUsing secondary indexes (or search by values) in Redis\n\n\nNow that we have understood how to deal with standard zeeSQL databases and how to query them, we can move forward.\n\n\nNow we will introduce zeeSQL secondary indexes, or how to search and project Redis \nhash\n data.\n\n\nIn Redis, it is common to store values as hash.\nEach hash is univocally identify by a key, and it has one of more field. \nEach field has a value associated with.\n\n\nRedis already provide fast access to elements by their key.\nBut it is not possible to search keys from their values.\n\n\nWith zeeSQL we can solve this problem, but automatically push the hashes keys and values to a specific table.\n\n\nWe will work with a simple telemetric system.\nWe have different sensors, each sensor send a timestamp, a temperature value and a humidity value.\n\n\nSaving the data into Redis\n\n\nAs first step let's see how we model the data in raw Redis, using Redis Hashes.\n\n\n127.0.0.1:6379> HMSET sensor:001:1612733809 timestamp 1612733809 sensor 1 temperature 23 humidity 56\nOK\n127.0.0.1:6379> HMSET sensor:001:1612633809 timestamp 1612633809 sensor 1 temperature 18 humidity 21\nOK\n127.0.0.1:6379> HMSET sensor:001:1612633819 timestamp 1612633819 sensor 1 temperature 20 humidity 23\nOK\n127.0.0.1:6379> HMSET sensor:002:1612733809 timestamp 1612733809 sensor 2 temperature 32 humidity 11\nOK\n127.0.0.1:6379> HMSET sensor:002:1612633809 timestamp 1612633809 sensor 2 temperature 21 humidity 16\nOK\n127.0.0.1:6379> HMSET sensor:002:1612633819 timestamp 1612633819 sensor 2 temperature 23 humidity 12\nOK\n\n\n\n\nThe key is in the form \nsensor:$sendor_id:$timestamp\n and the other fields contains the telemetries' data.\n\n\nCreating an index\n\n\nWe now want to store the information in the sensor in an SQL table, for easier access.\n\n\n127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE sensors PREFIX sensor:* SCHEMA timestamp INT sensor INT temperature INT humidity INT\nOK\n\n\n\n\nThe command creates a new secondary index associate with the table \nsensors\n.\nThe index will be concerned only for the hashes which key start with the prefix \nsensor:\n (\n*\n being a catch-all).\nThe schema used by the index will have 4 rows, each of them will be an INTEGER, and the name of those columns are respectively \ntimestamp\n. \nsensor\n, \ntemperature\n and \nhumidity\n.\n\n\nThe creation of an index, imply the creation of the table in the database.\nIf the table already exists, it is assumed to contain the correct columns.\n\n\nReading data from the index\n\n\nAs soon as the index is created, the Redis keys space is scanned and the hashes are added to the table.\nWhich means that we can immediately query the table.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"timestamp\"\n 3) \"sensor\"\n 4) \"temperature\"\n 5) \"humidity\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n 3) \"INT\"\n 4) \"INT\"\n 5) \"INT\"\n4) 1) \"sensor:001:1612633809\"\n 2) (integer) 1612633809\n 3) (integer) 1\n 4) (integer) 18\n 5) (integer) 21\n5) 1) \"sensor:002:1612733809\"\n 2) (integer) 1612733809\n 3) (integer) 2\n 4) (integer) 32\n 5) (integer) 11\n6) 1) \"sensor:001:1612733809\"\n 2) (integer) 1612733809\n 3) (integer) 1\n 4) (integer) 23\n 5) (integer) 56\n7) 1) \"sensor:002:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 2\n 4) (integer) 23\n 5) (integer) 12\n8) 1) \"sensor:002:1612633809\"\n 2) (integer) 1612633809\n 3) (integer) 2\n 4) (integer) 21\n 5) (integer) 16\n9) 1) \"sensor:001:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 1\n 4) (integer) 20\n 5) (integer) 23\n\n\n\n\nModify the table of the index\n\n\nIt is possible to add, remove and update values to the index table manually.\nDo not do that, the data between Redis and zeeSQL will go out of sync.\n\n\nAdding hashes\n\n\nThe index continuously listens to the HASH commands of Redis and keeps the table in sync.\n\n\n127.0.0.1:6379> HMSET sensor:003:1612633819 timestamp 1612633819 sensor 3 temperature 50 humidity 8\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"timestamp\"\n 3) \"sensor\"\n 4) \"temperature\"\n 5) \"humidity\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n 3) \"INT\"\n 4) \"INT\"\n 5) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 3\n 4) (integer) 50\n 5) (integer) 8\n\n\n\n\nIn this example we added the sensor with ID 3, after the secondary index was already in place.\n\n\nRemoving hashes\n\n\nSimilarly, if a hash is deleted, the correct row is deleted from the table.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n3) 1) \"TEXT\"\n4) 1) \"sensor:002:1612733809\"\n5) 1) \"sensor:002:1612633819\"\n6) 1) \"sensor:002:1612633809\"\n127.0.0.1:6379> DEL sensor:002:1612633809\n(integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n3) 1) \"TEXT\"\n4) 1) \"sensor:002:1612733809\"\n5) 1) \"sensor:002:1612633819\"\n\n\n\n\nAs you can see we delete a hash, and the correct row was deleted also from the table.\n\n\nUpdating hashes\n\n\nAs with deletion, updating a hash is also reflected on the index table.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"temperature\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 50\n127.0.0.1:6379> HINCRBY sensor:003:1612633819 temperature 33\n(integer) 83\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"temperature\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 83\n\n\n\n\nIn this case we update a hash, and also the table was updated.\n\n\nQuerying the secondary index table\n\n\nThe secondary index table, it is just a plain SQL table.\nzeeSQL does not add any index on the table.\nUser is free to add the SQL indexes it desired to the secondary index table.\n\n\nWithout any index, each query will go through a full table scan.\n\n\nEnd\n\n\nI hope that this tutorial was helpful :)\n\n\nIf you have any question, feel free to contact me simone@redbeardlab.com or on github: \nRedBeardLab/zeeSQL-doc",
+ "title": "Tutorial"
+ },
+ {
+ "location": "/tutorial/#tutorial-for-zeesql",
+ "text": "",
+ "title": "Tutorial for zeeSQL"
+ },
+ {
+ "location": "/tutorial/#setting-up-the-environment",
+ "text": "If you want to start exploring zeeSQL, this tutorial will walk you through the most important commands to know and how to use them. The simplest way to follow this tutorial is to launch an instance of zeeSQL using docker. docker run --name zeesql --rm -d redbeardlab/zeesql The next thing you will need to follow the tutorial is the redis-cli . You can connect to the same docker container and start the redis-cli with: docker exec -it zeesql redis-cli At this point you are inside the redis-cli , ready to interact with Redis and zeeSQL .",
+ "title": "Setting up the environment"
+ },
+ {
+ "location": "/tutorial/#creating-a-database-in-zeesql",
+ "text": "The very first step when working with zeeSQL it is to create a new database. The database can be created with a single command. 127.0.0.1:6379> ZEESQL.CREATE_DB DB\n1) 1) \"OK\" This command will create a new database, and it will associate it with the Redis key DB . Any time we want to interact with this database, we will pass DB to the zeeSQL commands. It is possible to create more than one database, you can create as many as you like, since they are very lightweight.",
+ "title": "Creating a database in zeeSQL"
+ },
+ {
+ "location": "/tutorial/#sending-commands-to-the-database",
+ "text": "After creating a database, we want to interact with it. It is possible to interact with the database sending it commands. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select 1;' NO_HEADER\n1) 1) \"RESULT\"\n2) 1) (integer) 1 We have successfully sent our first command to zeeSQL and get our first RESULT , the integer 1.",
+ "title": "Sending commands to the database"
+ },
+ {
+ "location": "/tutorial/#modify-the-database-structure",
+ "text": "A database without tables is not very useful.\nWe will now create a table to store information about users. In the table we want to store the username, its score and the user email.\nThe username and the email will be text fields, while the score will be an integer field. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'CREATE TABLE users(username TEXT, score INT, email TEXT);'\n1) 1) \"DONE\"\n2) 1) (integer) 0 The operation was successfully and 0 rows have been modified. However, we now have a table where we can store information about the user.",
+ "title": "Modify the database structure"
+ },
+ {
+ "location": "/tutorial/#add-data-to-the-database",
+ "text": "We can now start to add users to our table. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"jsmith\", 3, \"jon.smith@gmail.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"EvelineInArgentina\", 3, \"eve.frank@yahoo.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"DuffyAlone\", 12, \"mr.duffy@proton.com\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES(\"far\", 6, \"farrington@nv.ru\");'\n1) 1) \"DONE\"\n2) 1) (integer) 1 Each insert was successful and each one added one more row to the database.",
+ "title": "Add data to the database"
+ },
+ {
+ "location": "/tutorial/#query-the-database",
+ "text": "After having added data to the database, we want to query those data back. We can ask for the score of the user jsmith 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT score FROM users WHERE username = \"jsmith\"'\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 3 In this case the score is an integer, and it is of value 3. Or to know what users have a score greater than 5 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT username FROM users WHERE score > 5'\n1) 1) \"RESULT\"\n2) 1) \"username\"\n3) 1) \"TEXT\"\n4) 1) \"DuffyAlone\"\n5) 1) \"far\" In this other case the usernames are of type TEXT and are: DuffyAlone and far . Since we are not modifying the database, instead of EXECUTING a command with EXEC we can just QUERY. 127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT username FROM users WHERE score > 5'\n1) 1) \"RESULT\"\n2) 1) \"username\"\n3) 1) \"TEXT\"\n4) 1) \"DuffyAlone\"\n5) 1) \"far\" QUERY does not work when trying to modify the database. 127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'INSERT INTO users VALUES(\"far\", 6, \"farrington@nv.ru\");'\n(error) Statement is not read only but it may modify the database, use `EXEC_STATEMENT` instead.",
+ "title": "Query the database"
+ },
+ {
+ "location": "/tutorial/#modify-the-data",
+ "text": "Our users, keep using our platform, are increasing their score. We can increase the score with an update. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + 1 WHERE username = \"jsmith\";'\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = \"jsmith\"'\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 4 In this example, we first increase the score of the user jsmith of one, and then we query the same score.",
+ "title": "Modify the data"
+ },
+ {
+ "location": "/tutorial/#delete-the-data",
+ "text": "Eventually our user will leave the platform, in this case we can delete them. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'DELETE FROM users WHERE username = \"far\";'\n1) 1) \"DONE\"\n2) 1) (integer) 1",
+ "title": "Delete the data"
+ },
+ {
+ "location": "/tutorial/#use-arguments-for-your-queries",
+ "text": "Up to now, we send only SQL queries that contains all the parameters. \nIt is also possible to send a query with placeholders followed by arguments.\nThis is useful to avoid SQL injections attacks and to avoid string constructions at runtime. In our example we can increment the score of a player by a specific amount. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + ?2 WHERE username = ?1;' ARGS jsmith 3\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = ?1' ARGS jsmith\n1) 1) \"RESULT\"\n2) 1) \"score\"\n3) 1) \"INT\"\n4) 1) (integer) 7 The first argument is ?1 (not ?0 ) and the second argument is ?2 .",
+ "title": "Use arguments for your queries"
+ },
+ {
+ "location": "/tutorial/#using-secondary-indexes-or-search-by-values-in-redis",
+ "text": "Now that we have understood how to deal with standard zeeSQL databases and how to query them, we can move forward. Now we will introduce zeeSQL secondary indexes, or how to search and project Redis hash data. In Redis, it is common to store values as hash.\nEach hash is univocally identify by a key, and it has one of more field. \nEach field has a value associated with. Redis already provide fast access to elements by their key.\nBut it is not possible to search keys from their values. With zeeSQL we can solve this problem, but automatically push the hashes keys and values to a specific table. We will work with a simple telemetric system.\nWe have different sensors, each sensor send a timestamp, a temperature value and a humidity value.",
+ "title": "Using secondary indexes (or search by values) in Redis"
+ },
+ {
+ "location": "/tutorial/#saving-the-data-into-redis",
+ "text": "As first step let's see how we model the data in raw Redis, using Redis Hashes. 127.0.0.1:6379> HMSET sensor:001:1612733809 timestamp 1612733809 sensor 1 temperature 23 humidity 56\nOK\n127.0.0.1:6379> HMSET sensor:001:1612633809 timestamp 1612633809 sensor 1 temperature 18 humidity 21\nOK\n127.0.0.1:6379> HMSET sensor:001:1612633819 timestamp 1612633819 sensor 1 temperature 20 humidity 23\nOK\n127.0.0.1:6379> HMSET sensor:002:1612733809 timestamp 1612733809 sensor 2 temperature 32 humidity 11\nOK\n127.0.0.1:6379> HMSET sensor:002:1612633809 timestamp 1612633809 sensor 2 temperature 21 humidity 16\nOK\n127.0.0.1:6379> HMSET sensor:002:1612633819 timestamp 1612633819 sensor 2 temperature 23 humidity 12\nOK The key is in the form sensor:$sendor_id:$timestamp and the other fields contains the telemetries' data.",
+ "title": "Saving the data into Redis"
+ },
+ {
+ "location": "/tutorial/#creating-an-index",
+ "text": "We now want to store the information in the sensor in an SQL table, for easier access. 127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE sensors PREFIX sensor:* SCHEMA timestamp INT sensor INT temperature INT humidity INT\nOK The command creates a new secondary index associate with the table sensors .\nThe index will be concerned only for the hashes which key start with the prefix sensor: ( * being a catch-all).\nThe schema used by the index will have 4 rows, each of them will be an INTEGER, and the name of those columns are respectively timestamp . sensor , temperature and humidity . The creation of an index, imply the creation of the table in the database.\nIf the table already exists, it is assumed to contain the correct columns.",
+ "title": "Creating an index"
+ },
+ {
+ "location": "/tutorial/#reading-data-from-the-index",
+ "text": "As soon as the index is created, the Redis keys space is scanned and the hashes are added to the table.\nWhich means that we can immediately query the table. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"timestamp\"\n 3) \"sensor\"\n 4) \"temperature\"\n 5) \"humidity\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n 3) \"INT\"\n 4) \"INT\"\n 5) \"INT\"\n4) 1) \"sensor:001:1612633809\"\n 2) (integer) 1612633809\n 3) (integer) 1\n 4) (integer) 18\n 5) (integer) 21\n5) 1) \"sensor:002:1612733809\"\n 2) (integer) 1612733809\n 3) (integer) 2\n 4) (integer) 32\n 5) (integer) 11\n6) 1) \"sensor:001:1612733809\"\n 2) (integer) 1612733809\n 3) (integer) 1\n 4) (integer) 23\n 5) (integer) 56\n7) 1) \"sensor:002:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 2\n 4) (integer) 23\n 5) (integer) 12\n8) 1) \"sensor:002:1612633809\"\n 2) (integer) 1612633809\n 3) (integer) 2\n 4) (integer) 21\n 5) (integer) 16\n9) 1) \"sensor:001:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 1\n 4) (integer) 20\n 5) (integer) 23",
+ "title": "Reading data from the index"
+ },
+ {
+ "location": "/tutorial/#modify-the-table-of-the-index",
+ "text": "It is possible to add, remove and update values to the index table manually.\nDo not do that, the data between Redis and zeeSQL will go out of sync.",
+ "title": "Modify the table of the index"
+ },
+ {
+ "location": "/tutorial/#adding-hashes",
+ "text": "The index continuously listens to the HASH commands of Redis and keeps the table in sync. 127.0.0.1:6379> HMSET sensor:003:1612633819 timestamp 1612633819 sensor 3 temperature 50 humidity 8\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select * from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"timestamp\"\n 3) \"sensor\"\n 4) \"temperature\"\n 5) \"humidity\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n 3) \"INT\"\n 4) \"INT\"\n 5) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 1612633819\n 3) (integer) 3\n 4) (integer) 50\n 5) (integer) 8 In this example we added the sensor with ID 3, after the secondary index was already in place.",
+ "title": "Adding hashes"
+ },
+ {
+ "location": "/tutorial/#removing-hashes",
+ "text": "Similarly, if a hash is deleted, the correct row is deleted from the table. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n3) 1) \"TEXT\"\n4) 1) \"sensor:002:1612733809\"\n5) 1) \"sensor:002:1612633819\"\n6) 1) \"sensor:002:1612633809\"\n127.0.0.1:6379> DEL sensor:002:1612633809\n(integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n3) 1) \"TEXT\"\n4) 1) \"sensor:002:1612733809\"\n5) 1) \"sensor:002:1612633819\" As you can see we delete a hash, and the correct row was deleted also from the table.",
+ "title": "Removing hashes"
+ },
+ {
+ "location": "/tutorial/#updating-hashes",
+ "text": "As with deletion, updating a hash is also reflected on the index table. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"temperature\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 50\n127.0.0.1:6379> HINCRBY sensor:003:1612633819 temperature 33\n(integer) 83\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"temperature\"\n3) 1) \"TEXT\"\n 2) \"INT\"\n4) 1) \"sensor:003:1612633819\"\n 2) (integer) 83 In this case we update a hash, and also the table was updated.",
+ "title": "Updating hashes"
+ },
+ {
+ "location": "/tutorial/#querying-the-secondary-index-table",
+ "text": "The secondary index table, it is just a plain SQL table.\nzeeSQL does not add any index on the table.\nUser is free to add the SQL indexes it desired to the secondary index table. Without any index, each query will go through a full table scan.",
+ "title": "Querying the secondary index table"
+ },
+ {
+ "location": "/tutorial/#end",
+ "text": "I hope that this tutorial was helpful :) If you have any question, feel free to contact me simone@redbeardlab.com or on github: RedBeardLab/zeeSQL-doc",
+ "title": "End"
+ },
+ {
+ "location": "/references/",
+ "text": "References\n\n\nThis document explains all the API that zeeSQL provide to the users.\n\n\nThis document refers to the latest API, but we commit to backward-compatible API.\n\n\nFor each command, it exposes first the name and then the syntax, and finally a brief explanation of what is going on inside the code.\n\n\nWhere is possible, it provides also an estimate of the complexity but since we are talking about databases not all queries have the same time and spatial complexity.\n\n\nFinally, if it is appropriate the document also provides several references to external material that the interested reader can use to understand better the dynamics of every command.\n\n\nZEESQL.CREATE_DB\n\n\nZEESQL.CREATE_DB db_key [PATH path]\n\n\n\n\nThis command creates a new DB and associates it with the key.\n\n\nThe path argument is optional and, if provided is the file that SQLite will use.\nIt can be an existing SQLite file or it can be a not existing file.\n\n\nIf the file exists and if it is a regular SQLite file that database will be used.\nIf the file does not exist a new file will be created.\n\n\nIf the path is not provided it will open an in-memory database. Not providing a path is equivalent to provide the special string \n:memory:\n as the path argument.\n\n\nAfter opening the database it inserts metadata into it and then starts a thread loop.\n\n\nComplexity\n: O(1), it means constant, it does not necessarily mean \nfast\n. However, is fast enough for any use case facing human users (eg create a new database for every user logging into a website.)\n\n\nExamples\n:\n\n\n127.0.0.1:6379> ZEESQL.CREATE_DB DB \n1) 1) \"OK\"\n\n\n\n\nThis command created an in-memory database.\nPersistency is managed by Redis with AOF or RDB following the setting of your Redis instance.\n\n\n127.0.0.1:6379> ZEESQL.CREATE_DB on_disk_db PATH /tmp/foo.sqlite\n1) 1) \"OK\"\n\n\n\n\nThis command created a database that uses a file as storage support, in this case \n/tmp/foo.sqlite\n.\n\n\nIf the file does not exist, it is created.\n\n\nIf the file is already an SQLite database, it gets used immediately with all the data already loaded.\n\n\nIf the file is not an SQLite database, an error is raised.\n\n\nSee also\n: \n\n\n\n\nSQLite \nsqlite3_open_v2\n\n\n\n\nDEL\n\n\nDEL db_key [key ...]\n\n\n\n\nThis command is a generic command from Redis.\n\n\nIt eliminates keys from Redis itself, as well if the key is a RediSQL database create with \nZEESQL.CREATE_DB\n it will eliminate the SQLite database, stop the thread loop and clean up everything left.\n\n\nIf the database is backed by a file the file will be closed, but it won't be deleted.\n\n\nComplexity\n: DEL is O(N) on the number of keys, if you are only eliminating the key associated with the SQLite database will be constant, O(1).\n\n\nExamples\n:\n\n\n127.0.0.1:6379> ZEESQL.CREATE_DB DB \n1) 1) \"OK\"\n127.0.0.1:6379> DEL DB\n(integer) 1\n\n\n\n\nSee also\n: \n\n\n\n\nSQLite \nsqlite3_close\n\n\nRedis \nDEL\n\n\n\n\nZEESQL.EXEC\n\n\nZEESQL.EXEC db_key \n ( (COMMAND \"command\") | (STATEMENT statement) ) \n [NOW] \n [READ_ONLY] \n [INTO stream] \n [NO_HEADER] \n [JSON] \n [ARGS arg1 arg2 ... argn]\n\n\n\n\nThe EXEC command is the main command of zeeSQL. It allows interaction with the database stored in the \ndb_key\n.\n\n\nIt takes as input the database \ndb_key\n, either a \nCOMMAND\n or a \nSTATEMENT\n, an optional series of flags, and an optional variadic number of arguments.\n\n\nYou need to supply \nEITHER\n a command (using the \nCOMMAND\n flag) or a statement (using the \nSTATEMENT\n flag), but you need one of them.\n\n\nCommand vs Statement\n\n\nThe command is a valid SQL string.\nThe command SQL string can contain arguments in the form \n?n\n. \nThose arguments will be matched to the one provided at the end of the command.\nThe first argument is bound against \n?1\n, NOT against \n?0\n.\nArguments that are not provided will be bound to \nNULL\n.\n\n\nThe statement can be created with the \nZEESQL.STATEMENT\n command.\nThe arguments follow the same logic of the COMMAND variants.\n\n\nExamples\n:\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"create table foo(a INT, b string);\"\n1) 1) \"DONE\"\n2) 1) (integer) 0\n\n\n\n\nIn this example, we create a new table.\n\n\n127.0.0.1:6379> ZEESQL.STATEMENT DB NEW insert \"insert into foo values(?1, ?2);\"\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT insert ARGS 1 one\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT insert ARGS 2 two\n1) 1) \"DONE\"\n2) 1) (integer) 1\n\n\n\n\nThen we create a new STATEMENT to insert values, and we execute the statement twice.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo;\"\n1) 1) \"RESULT\"\n2) 1) \"a\"\n 2) \"b\"\n3) 1) \"INT\"\n 2) \"TEXT\"\n4) 1) (integer) 1\n 2) \"one\"\n5) 1) (integer) 2\n 2) \"two\"\n\n\n\n\nWe queried the values just inserted in the table executing another command.\n\n\nNOW flag\n\n\nBy default \nzeeSQL\n offload the SQL computation to a secondary thread.\nThis free the main Redis thread and keep the Redis instance reactive.\n\n\nThe \nNOW\n flags force \nzeeSQL\n to run the SQL computation in the main Redis thread.\n\n\nREAD_ONLY flag\n\n\nThe \nREAD_ONLY\n flags communicate to \nzeeSQL\n that the execution will not modify the database.\n\n\nIf the execution might modify the database, and the \nREAD_ONLY\n flag is passed, \nzeeSQL\n will return an error.\n\n\nPassing the \nREAD_ONLY\n flags allow \nzeeSQL\n to not replicate the command.\nPossibly saving computing resources of the replicas.\n\n\nExamples\n:\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo where a > ?1;\" READ_ONLY ARGS 1\n1) 1) \"RESULT\"\n2) 1) \"a\"\n 2) \"b\"\n3) 1) \"INT\"\n 2) \"TEXT\"\n4) 1) (integer) 2\n 2) \"two\"\n\n\n\n\nHere we correctly used the \nREAD_ONLY\n flag to communicate with \nzeeSQL\n that the command will not modify the database.\n\n\nzeeSQL\n correctly executes the query.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"insert into foo values(3, 'three')\" READ_ONLY\n(error) Statement is not read only but it may modify the database, use `EXEC` instead.\n\n\n\n\nIn this other case, we ask \nzeeSQL\n to modify the database while using the \nREAD_ONLY\n flag.\n\n\nzeeSQL\n correctly refuses to modify the database and returns an error.\n\n\nNO_HEADER flag\n\n\nBy default \nzeeSQL\n returns information about the result set.\nIt returns the name of the columns and their type.\n\n\nThis information might not be useful nor desirable.\n\n\nWith the \nNO_HEADER\n flag, only the result itself is returned.\n\n\nExamples\n:\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\"\n1) 1) \"RESULT\"\n2) 1) \"number_as_integer\"\n 2) \"number_as_string\"\n3) 1) \"INT\"\n 2) \"TEXT\"\n4) 1) (integer) 1\n 2) \"one\"\n5) 1) (integer) 2\n 2) \"two\"\n\n\n\n\nThis is the default result from \nzeeSQL\n. It reports the name of the columns (in this case \nnumber_as_integer\n and \nnumber_as_string\n and their type \nINT\n and \nTEXT\n).\n\n\nIf we are not intereted in such information:\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\" NO_HEADER\n1) 1) \"RESULT\"\n2) 1) (integer) 1\n 2) \"one\"\n3) 1) (integer) 2\n 2) \"two\"\n\n\n\n\nthe \nNO_HEADER\n flags will omit it for us.\n\n\nJSON flag\n\n\nBy default \nzeeSQL\n returns its result as an array of array.\nThis makes parsing the result a little complex in some programming languages.\n\n\nThe JSON flags instruct \nzeeSQL\n to return a single JSON string as result.\n\n\nExamples\n:\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\" JSON\n\"{\\\"rows\\\":[{\\\"number_as_integer\\\":1,\\\"number_as_string\\\":\\\"one\\\"},{\\\"number_as_integer\\\":2,\\\"number_as_string\\\":\\\"two\\\"}],\\\"number_of_rows\\\":2,\\\"columns\\\":{\\\"number_as_integer\\\":\\\"INT\\\",\\\"number_as_strin\ng\\\":\\\"TEXT\\\"}}\"\n\n\n\n\nThe JSON is valid JSON even if compressed:\n\n\n$ redis-cli ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\" JSON | jq\n{\n \"rows\": [\n {\n \"number_as_integer\": 1,\n \"number_as_string\": \"one\"\n },\n {\n \"number_as_integer\": 2,\n \"number_as_string\": \"two\"\n }\n ],\n \"number_of_rows\": 2,\n \"columns\": {\n \"number_as_integer\": \"INT\",\n \"number_as_string\": \"TEXT\"\n }\n}\n\n\n\n\nOf course, this can be combined with the \nNO_HEADER\n flag.\n\n\n$ redis-cli ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\" JSON NO_HEADER | jq\n{\n \"rows\": [\n {\n \"number_as_integer\": 1,\n \"number_as_string\": \"one\"\n },\n {\n \"number_as_integer\": 2,\n \"number_as_string\": \"two\"\n }\n ]\n}\n\n\n\n\nINTO stream\n\n\nzeeSQL\n can push the result of a computation in a Redis Stream.\n\n\nThis is desirable if you want to:\n\n\n\n\nconsume the result at a later time,\n\n\nor cache the result, \n\n\nor if the result is rather big and you don't want to send all of it over the network.\n\n\n\n\nThe \nINTO stream\n option will inform \nzeeSQL\n to push the result of the computation into the Redis STREAM called \nstream\n.\n\n\nThe \nINTO stream\n option is available only if the query is marked as \nREAD_ONLY\n.\n\n\nThe command executes \nXADD\n to the stream.\n\n\nIf the stream does not exist a new one is created. \n\n\nIf the stream already exists the rows are simply appended.\n\n\nThe command itself is eager, hence it computes the whole result, append it into the stream, and then it returns. \nOnce the command returns, the whole result set is already in the Redis stream.\n\n\nThe return value of the command depends on the result of the query:\n\n\nIf the result of the query is empty, it simply returns \n[\"DONE\", 0]\n.\n\n\nIf at least one row is returned by the query the command returns:\n\n\n1.the name of the stream where it appended the resulting rows, which is always the one passed as input\n2. the first ID added to the stream \n3. the last ID added to the stream \n4. and the total number of entries added to the stream.\n\n\nUsing a standard Redis Stream all the standard consideration applies.\n\n\n\n\nThe stream is not deleted by zeeSQL, hence it can be used for caching, on the other hand too many streams will use memory.\n\n\nThe stream uses a standard Redis key, in a cluster environment you should be sure that the database that is executing the query and the stream that will accommodate the results are on the same cluster node. \n\n\n\n\nThis can be accomplished easily by forcing the stream name to hash to the same cluster node of the database, it is sufficient to use a \nstream_name\n composed as such \n{db_key}:what:ever:here\n. Redis will hash only the part between the \n{\n and \n}\n to compute the cluster node.\n3. The result can be consumed using the standard \nRedis streams commands\n, two good starting points are \nXREAD\n and \nXRANGE\n.\n\n\nThe key of the stream elements are the tuple \n(type, column name)\n separated by a colon \n:\n.\n\n\nExamples\n:\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo;\" INTO foo_stream\n(error) Asked a STREAM, but the query is not `READ_ONLY` (flag not set), this is not supported.\n\n\n\n\nAt first, we tried to push the result of a query that is not marked as \nREAD_ONLY\n and this correctly fails.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo where a > 100;\" READ_ONLY INTO foo_stream\n1) 1) \"DONE\"\n2) 1) (integer) 0\n\n\n\n\nAbove we execute a query that returns an empty result.\n\n\nzeeSQL\n simply communicates to us that the result is empty.\n\n\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo;\" READ_ONLY INTO foo_stream 1) 1) \"RESULT\"\n2) 1) \"foo_stream\"\n 2) \"1612797707753-0\"\n 3) \"1612797707753-1\"\n 4) (integer) 2\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo;\" READ_ONLY INTO foo_stream JSON\n\"{\\\"rows\\\":[{\\\"stream\\\":\\\"foo_stream\\\",\\\"first_id\\\":\\\"1612797722505-0\\\",\\\"last_id\\\":\\\"1612797722505-1\\\",\\\"size\\\":2}]}\"\n\n\n\n\nThen we push into the Redis stream \nfoo_stream\n the result of the query \nselect * from foo\n.\n\n\nWe do it twice, once using the standard return and the second time using the JSON return.\n\n\nWe pushed twice, a query that returned two results, so we expect 4 elements in the stream.\n\n\n127.0.0.1:6379> XLEN foo_stream\n(integer) 4\n\n\n\n\nWe can read the elements from the stream using the standard Redis stream interface.\nIn this case, we are going to read only the first two elements.\n\n\n127.0.0.1:6379> XRANGE foo_stream - + COUNT 2\n1) 1) \"1612797707753-0\"\n 2) 1) \"int:a\"\n 2) \"1\"\n 3) \"text:b\"\n 4) \"one\"\n2) 1) \"1612797707753-1\"\n 2) 1) \"int:a\"\n 2) \"2\"\n 3) \"text:b\"\n 4) \"two\"\n\n\n\n\nComplexity\n: Besides the complexity of the query, the \nINTO stream\n options add the complexity of adding each row to the Redis stream, which is \nO(n)\n where \nn\n is the amount of row returned by the query.\n\n\nSee also\n:\n\n\n\n\nRedis Streams Intro\n\n\nRedis Streams Commands\n\n\nXADD\n\n\nXREAD\n\n\nXRANGE\n\n\n\n\nARGS arguments\n\n\nThe ARGS arguments are used to pass arguments to the statement or command.\n\n\nThey are variadic, and you can pass as many as you need.\n\n\nIn the SQL, the first argument will be bound to \n?1\n, the second to \n?2\n, and so on.\nPlease note that the first argument is NOT bound to \n?0\n.\n\n\nIf an argument is not bound, for instance, you pass a query with \n?4\n but only provide 3 arguments, then, that argument is bound to \nNULL\n.\n\n\nRedis works using a text protocol, all the arguments are encoded as text, hence the module is forced to use the procedure \nsqlite3_bind_text\n, however, SQLite is smart enough to recognize numbers and treat them correctly. Numbers will be treated as numbers and text will be treated as text.\n\n\nSee also\n:\n\n\n\n\nSQLite \nsqlite3_prepare_v2\n\n\nSQLite \nstatement\n aka \nsqlite3_stmt\n\n\nSQLite \nsqlite3_step\n\n\nSQLite \nPRAGMA\ns\n\n\nRedis Blocking Command\n\n\n\n\nZEESQL.QUERY\n\n\nZEESQL.QUERY db_key \n ( (COMMAND \"command\") | (STATEMENT statement) ) \n [NOW] \n [INTO stream] \n [NO_HEADER] \n [JSON] \n [ARGS arg1 arg2 ... argn]\n\n\n\n\nThis command behaves similarly to \nZEESQL.EXEC\n but it imposes an additional constraint on the statement it executes.\n\n\nIt only executes the statement if it is a read-only operation, otherwise, it returns an error.\n\n\nA read-only operation is defined by the result of calling \nsqlite3_stmt_readonly\n on the compiled statement.\n\n\nThe statement is executed if and only if \nsqlite3_stmt_readonly\n returns true.\n\n\nThis command is exactly like \nZEESQL.EXEC ... READ_ONLY\n however it can be executed against Redis replicas.\n\n\nComplexity\n: Similar to \nZEESQL.EXEC\n, however, if a statement is not read-only it is aborted immediately and it does return an appropriate error.\n\n\nSee also\n:\n\n\n\n\nSQLite \nsqlite3_prepare_v2\n\n\nSQLite \nstatement\n aka \nsqlite3_stmt\n\n\nSQLite \nsqlite3_step\n\n\nSQLite \nPRAGMA\ns\n\n\nRedis Blocking Command\n \n\n\nZEESQL.EXEC\n\n\nSQLite \nsqlite3_stmt_readonly\n\n\nZEESQL.QUERY_STATEMENT\n \n\n\n\n\nZEESQL.STATEMENT\n\n\nZEESQL.STATEMENT db_key\n (\n (NEW stmt \"query\" [CAN_UPDATE]) | \n (DELETE stmt) | \n (UPDATE stmt \"query\" [CAN_CREATE]) |\n (SHOW stmt) |\n LIST\n )\n [NOW]\n\n\n\n\nThis command manages \nzeeSQL\n statements.\n\n\nA statement is a pre-compiled SQL query, if you are going to execute your query over and over again, it is a good idea to make it into a statement.\nUnder the hood it is a \nsqlite statement\n.\n\n\nStatements can be used in the \nZEESQL.EXEC db_key STATEMENT stmt\n command and in the \nZEESQL.QUERY db_key STATEMENT stmt\n command.\n\n\nFive different actions can be invoked with the STATEMENT command.\n\n\n\n\nCreate a new statement with the \nNEW\n option.\n\n\nDelete a statement with the \nDELETE\n option.\n\n\nUpdate a statement with the \nUPDATE\n option.\n\n\nShow the SQL behind a statement with the \nSHOW\n option.\n\n\nList all the statements with the \nLIST\n option.\n\n\n\n\nThe \nSTATEMENT\n command includes the \nNOW\n flag. \nThe \nNOW\n flag forces \nzeeSQL\n to execute the action in the main Redis thread.\nIn standard operations mode, it should not be used.\n\n\nNEW\n\n\nThe \nNEW\n option takes as input the name to associate with the statement and an SQL query to compile.\n\n\nThe command compiles the SQL query into a pre-compiled statement, and associate it with the name.\n\n\nThe \nCAN_UPDATE\n flag to the \nNEW\n command, instruct \nzeeSQL\n to behave as an \nUPDATE\n if the statement name is already allocated to an old statement.\nOtherwise, without the \nCAN_UPDATE\n flag, if the statement name is already used by a different statement, the command fails with an error.\n\n\nDELETE\n\n\nThe \nDELETE\n option deletes a statement.\n\n\nUPDATE\n\n\nThe \nUPDATE\n option updates a statement, associating the old name with the statement compiled from the SQL query.\n\n\nIf the name does not exists, \nUPDATE\n fails, unless the \nCAN_CREATE\n flag is provided.\nIn such a case \nUPDATE\n behave like \nNEW\n.\n\n\nSHOW\n\n\nThe \nSHOW\n option returns the SQL query behind one statement.\n\n\nLIST\n\n\nThe \nLIST\n option returns all the statements and their SQL queries.\n\n\nBoth \nSHOW\n and \nLIST\n will report:\n\n\n\n\nThe name of the statement\n\n\nThe SQL query associate with the statement\n\n\nThe number of parameters the statement expects\n\n\nIf the statement is read only or not\n\n\n\n\nComplexity\n: Operation on the statements happens in constant time O(1). Listing the statements happens in O(n) with \nn\n number of statements present in the database.\n\n\nExamples\n:\n\n\nAt first we create a new statement, \n\n\n127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 \"SELECT 1;\"\n1) 1) \"OK\"\n\n\n\n\nWe can then list, the statement:\n\n\n127.0.0.1:6379> ZEESQL.STATEMENT DB LIST\n1) 1) \"RESULT\"\n2) 1) \"identifier\"\n 2) \"SQL\"\n 3) \"parameters_count\"\n 4) \"read_only\"\n3) 1) \"TEXT\"\n 2) \"TEXT\"\n 3) \"INT\"\n 4) \"INT\"\n4) 1) \"select_1\"\n 2) \"SELECT 1;\"\n 3) (integer) 0\n 4) (integer) 1\n\n\n\n\nThe statement can be updated, but we need to use the \nUPDATE\n command or the \nCAN_UPDATE\n flag.\n\n\n127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 \"SELECT '1';\"\n(error) The statement is already present in the database, try with UPDATE_STATEMENT\n127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 \"SELECT '1';\" CAN_UPDATE\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.STATEMENT DB UPDATE select_1 \"SELECT '1';\"\n1) 1) \"OK\"\n\n\n\n\nWe change \nselect_1\n to return a string and not an integer.\n\n\n127.0.0.1:6379> ZEESQL.STATEMENT DB UPDATE select_plus_one \"SELECT ?1 + 1;\" CAN_CREATE\n1) 1) \"OK\"\n\n\n\n\nWe create another statement, this time we create the statement with the \nUPDATE\n command and the \nCAN_CREATE\n flag.\n\n\n127.0.0.1:6379> ZEESQL.STATEMENT DB LIST\n1) 1) \"RESULT\"\n2) 1) \"identifier\"\n 2) \"SQL\"\n 3) \"parameters_count\"\n 4) \"read_only\"\n3) 1) \"TEXT\"\n 2) \"TEXT\"\n 3) \"INT\"\n 4) \"INT\"\n4) 1) \"select_1\"\n 2) \"SELECT '1';\"\n 3) (integer) 0\n 4) (integer) 1\n5) 1) \"select_plus_one\"\n 2) \"SELECT ?1 + 1;\"\n 3) (integer) 1\n 4) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT select_plus_one NO_HEADER ARGS 5\n1) 1) \"RESULT\"\n2) 1) (integer) 6\n\n\n\n\nSee also\n:\n\n\n\n\nSQLite \nsqlite3_prepare_v2\n\n\nSQLite \nstatement\n aka \nsqlite3_stmt\n\n\nSQLite bindings, \nsqlite3_bind_text\n\n\nRedis Blocking Command\n\n\n\n\nZEESQL.COPY\n\n\nZEESQL.COPY \n FROM db_key_source \n TO db_key_destination \n [NOW] \n\n\n\n\nThe command copies the source database into the destination database.\n\n\nThe content of the destination databases is completely ignored and lost.\n\n\nIt is not important if the databases are stored in memory or backed by disk, the \nCOPY\n command will work nevertheless.\n\n\nThis command is useful to:\n\n\n\n\nCreate backups of databases\n\n\nLoad data from slow, disk-based, databases into a fast in-memory one\n\n\nTo persist data from an in-memory database into a disk-based database\n\n\nInitialize a database with a predefined status\n\n\n\n\nUsually, the destination database is an empty database just created, while the source one is a database where we have been working for a while.\n\n\nThis command use the \nbackup API\n of sqlite.\n\n\nComplexity\n: The complexity is linear on the number of pages (dimension) of the source database, beware it can be \"slow\" if the source database is big, during the copy the \nsource\n database is busy and it cannot serve other queries. \n\n\nExample\n:\n\n\n127.0.0.1:6379> ZEESQL.CREATE_DB DB01\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND \"create table foo(a, b);\"\n1) 1) \"DONE\"\n2) 1) (integer) 0\n127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND \"insert into foo values(1,2),(3,4);\"\n1) 1) \"DONE\"\n2) 1) (integer) 2\n127.0.0.1:6379> ZEESQL.CREATE_DB DB02\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.EXEC DB02 COMMAND \"select * from foo\"\n(error) no such table: foo\n127.0.0.1:6379> ZEESQL.COPY FROM DB01 TO DB02\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.EXEC DB02 COMMAND \"select * from foo\"\n1) 1) \"RESULT\"\n2) 1) \"a\"\n 2) \"b\"\n3) 1) \"INT\"\n 2) \"INT\"\n4) 1) (integer) 1\n 2) (integer) 2\n5) 1) (integer) 3\n 2) (integer) 4\n\n\n\n\nIn the example we create a database, we create a table, and then we pushed few rows into the table.\n\n\nWe then create another database, but this time we didn't create the table, neither pushed any row.\n\n\nAs expected, trying to query the second database returned an error.\n\n\nAfter copying the content of the first database into the second, the second database has become a perfect copy of the first one.\n\n\nSee also\n:\n\n\n\n\nBackup API\n\n\n\n\nZEESQL.INDEX\n\n\nThe index command accepts 3 different options:\n\n\n\n\nNEW\n\n\nLIST\n\n\nDELETE\n\n\n\n\nWe will illustrate them separately.\n\n\nZEESQL.INDEX NEW\n\n\nZEESQL.INDEX db_key \n NEW\n TABLE table_name\n [PREFIX prefix]\n SCHEMA column_name column_type [column_name column_type ...]\n\n\n\n\nCreates a new secondary index table for the Redis hashes.\n\n\nThe secondary index will refer to the table \ntable_name\n and will use the columns indicated in the \nSCHEMA\n parameter.\n\n\ncolumn_type\n can be whatever is accepted by SQLite as column name, suggestions are \nTEXT\n, \nINT\n, \nFLOAT\n or \nBLOB\n.\n\n\nIf a prefix is provided, only the Redis hashes that start with that prefix are indexed in the table.\nIf the prefix is omitted, the \n*\n prefix (catch-all) is assumed.\n\n\nIf the table does not exists when the index is created, \nzeeSQL\n creates it.\n\n\nIf the table already exists, \nzeeSQL\n takes no action.\nHowever, if the table exists but contains the wrong columns, \nzeeSQL\n may find it impossible to insert the hashes into the secondary index.\n\n\nIt is possible to create multiple indexes, with the same table, same schema, but different prefix.\n\n\nzeeSQL\n store in the secondary index table, the main Redis hash key, as primary key.\n\n\nThe table created by \nzeeSQL\n behaves like any other table, so it can be queried, modified, and indexed, using the standard \nZEESQL.EXEC\n interface.\n\n\nNo steps are taken to avoid manual deletions or updates of the secondary index table by the user.\n\n\nSecondary indexes are univocally identified by the combination of the table in which they write and the prefix.\n\n\nExample\n:\n\n\nIn this example, we can see how to create a secondary index, and how the secondary index automatically keeps the values between Redis and zeeSQL in synchronism.\n\n\n127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE users prefix user:* SCHEMA username STRING score INT\nOK\n127.0.0.1:6379> HMSET user:1001 username aaa score 0\nOK\n127.0.0.1:6379> HMSET user:1002 username bbb score 0\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from users\"\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"username\"\n 3) \"score\"\n3) 1) \"TEXT\"\n 2) \"TEXT\"\n 3) \"INT\"\n4) 1) \"user:1001\"\n 2) \"aaa\"\n 3) (integer) 0\n5) 1) \"user:1002\"\n 2) \"bbb\"\n 3) (integer) 0\n127.0.0.1:6379> HINCRBY user:1002 score 3\n(integer) 3\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from users\"\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"username\"\n 3) \"score\"\n3) 1) \"TEXT\"\n 2) \"TEXT\"\n 3) \"INT\"\n4) 1) \"user:1001\"\n 2) \"aaa\"\n 3) (integer) 0\n5) 1) \"user:1002\"\n 2) \"bbb\"\n 3) (integer) 3\n\n\n\n\nZEESQL.INDEX LIST\n\n\nThe list option shows the active secondary index.\n\n\nThe secondary indexes are identified by the table in which they write and by the prefix they use to filter the keys.\n\n\nExample\n:\n\n\n127.0.0.1:6379> ZEESQL.INDEX DB LIST\n1) 1) \"RESULT\"\n2) 1) \"users\"\n 2) \"user:*\"\n127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE games prefix games:* SCHEMA first_player STRING second_player STRING score_player_1 INT score_player_2 INT\nOK\n127.0.0.1:6379> ZEESQL.INDEX DB LIST\n1) 1) \"RESULT\"\n2) 1) \"users\"\n 2) \"user:*\"\n3) 1) \"games\"\n 2) \"games:*\"\n\n\n\n\nZEESQL.INDEX DELETE\n\n\nZEESQL.INDEX db_key \n DELETE\n TABLE table_name\n [PREFIX prefix]\n\n\n\n\nThe \nDELETE\n option removes a secondary index.\n\n\nHashes that match the prefix are not inserted anymore in the table after the index is removed.\n\n\nThe \nDELETE\n option takes as input the table and the prefix that identifies the secondary index to remove.\n\n\nIf the prefix is omitted the \n*\n (catch-all) prefix is assumed.\n\n\nExample\n:\n\n\n127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE users PREFIX user:* SCHEMA username STRING score INT\nOK\n127.0.0.1:6379> HMSET user:1001 username first_user score 12\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from users\" NO_HEADER\n1) 1) \"RESULT\"\n2) 1) \"user:1001\"\n 2) \"first_user\"\n 3) (integer) 12\n127.0.0.1:6379> ZEESQL.INDEX DB DELETE TABLE users PREFIX user:*\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> HMSET user:1002 username second_user score 5\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from users\" NO_HEADER\n1) 1) \"RESULT\"\n2) 1) \"user:1001\"\n 2) \"first_user\"\n 3) (integer) 12\n\n\n\n\nIn the example, we first create an index.\n\n\nThen we add a Redis hash that matches the secondary index prefix, so it is added to the secondary index table.\n\n\nThen, delete the index.\n\n\nAnd we can confirm that new users are not added any more to the secondary index table.\n\n\nZEESQL.LICENSE\n\n\nZEESQL.LICENSE\n ( SET \"license\" ) | SHOW\n\n\n\n\nThe \nSET\n option will set the license to use for \nzeeSQL\n.\n\n\nThe license is first checked against our backend server, and if the license is correct, it will return \nOK\n otherwise it will return an error.\n\n\nIt is required an internet connection to set the license.\n\n\nThe \nSHOW\n option will show the license that is actually in use in your \nzeeSQL\n process.",
+ "title": "References"
+ },
+ {
+ "location": "/references/#references",
+ "text": "This document explains all the API that zeeSQL provide to the users. This document refers to the latest API, but we commit to backward-compatible API. For each command, it exposes first the name and then the syntax, and finally a brief explanation of what is going on inside the code. Where is possible, it provides also an estimate of the complexity but since we are talking about databases not all queries have the same time and spatial complexity. Finally, if it is appropriate the document also provides several references to external material that the interested reader can use to understand better the dynamics of every command.",
+ "title": "References"
+ },
+ {
+ "location": "/references/#zeesqlcreate_db",
+ "text": "ZEESQL.CREATE_DB db_key [PATH path] This command creates a new DB and associates it with the key. The path argument is optional and, if provided is the file that SQLite will use.\nIt can be an existing SQLite file or it can be a not existing file. If the file exists and if it is a regular SQLite file that database will be used.\nIf the file does not exist a new file will be created. If the path is not provided it will open an in-memory database. Not providing a path is equivalent to provide the special string :memory: as the path argument. After opening the database it inserts metadata into it and then starts a thread loop. Complexity : O(1), it means constant, it does not necessarily mean fast . However, is fast enough for any use case facing human users (eg create a new database for every user logging into a website.) Examples : 127.0.0.1:6379> ZEESQL.CREATE_DB DB \n1) 1) \"OK\" This command created an in-memory database.\nPersistency is managed by Redis with AOF or RDB following the setting of your Redis instance. 127.0.0.1:6379> ZEESQL.CREATE_DB on_disk_db PATH /tmp/foo.sqlite\n1) 1) \"OK\" This command created a database that uses a file as storage support, in this case /tmp/foo.sqlite . If the file does not exist, it is created. If the file is already an SQLite database, it gets used immediately with all the data already loaded. If the file is not an SQLite database, an error is raised. See also : SQLite sqlite3_open_v2",
+ "title": "ZEESQL.CREATE_DB"
+ },
+ {
+ "location": "/references/#del",
+ "text": "DEL db_key [key ...] This command is a generic command from Redis. It eliminates keys from Redis itself, as well if the key is a RediSQL database create with ZEESQL.CREATE_DB it will eliminate the SQLite database, stop the thread loop and clean up everything left. If the database is backed by a file the file will be closed, but it won't be deleted. Complexity : DEL is O(N) on the number of keys, if you are only eliminating the key associated with the SQLite database will be constant, O(1). Examples : 127.0.0.1:6379> ZEESQL.CREATE_DB DB \n1) 1) \"OK\"\n127.0.0.1:6379> DEL DB\n(integer) 1 See also : SQLite sqlite3_close Redis DEL",
+ "title": "DEL"
+ },
+ {
+ "location": "/references/#zeesqlexec",
+ "text": "ZEESQL.EXEC db_key \n ( (COMMAND \"command\") | (STATEMENT statement) ) \n [NOW] \n [READ_ONLY] \n [INTO stream] \n [NO_HEADER] \n [JSON] \n [ARGS arg1 arg2 ... argn] The EXEC command is the main command of zeeSQL. It allows interaction with the database stored in the db_key . It takes as input the database db_key , either a COMMAND or a STATEMENT , an optional series of flags, and an optional variadic number of arguments. You need to supply EITHER a command (using the COMMAND flag) or a statement (using the STATEMENT flag), but you need one of them.",
+ "title": "ZEESQL.EXEC"
+ },
+ {
+ "location": "/references/#command-vs-statement",
+ "text": "The command is a valid SQL string.\nThe command SQL string can contain arguments in the form ?n . \nThose arguments will be matched to the one provided at the end of the command.\nThe first argument is bound against ?1 , NOT against ?0 .\nArguments that are not provided will be bound to NULL . The statement can be created with the ZEESQL.STATEMENT command.\nThe arguments follow the same logic of the COMMAND variants. Examples : 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"create table foo(a INT, b string);\"\n1) 1) \"DONE\"\n2) 1) (integer) 0 In this example, we create a new table. 127.0.0.1:6379> ZEESQL.STATEMENT DB NEW insert \"insert into foo values(?1, ?2);\"\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT insert ARGS 1 one\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT insert ARGS 2 two\n1) 1) \"DONE\"\n2) 1) (integer) 1 Then we create a new STATEMENT to insert values, and we execute the statement twice. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo;\"\n1) 1) \"RESULT\"\n2) 1) \"a\"\n 2) \"b\"\n3) 1) \"INT\"\n 2) \"TEXT\"\n4) 1) (integer) 1\n 2) \"one\"\n5) 1) (integer) 2\n 2) \"two\" We queried the values just inserted in the table executing another command.",
+ "title": "Command vs Statement"
+ },
+ {
+ "location": "/references/#now-flag",
+ "text": "By default zeeSQL offload the SQL computation to a secondary thread.\nThis free the main Redis thread and keep the Redis instance reactive. The NOW flags force zeeSQL to run the SQL computation in the main Redis thread.",
+ "title": "NOW flag"
+ },
+ {
+ "location": "/references/#read_only-flag",
+ "text": "The READ_ONLY flags communicate to zeeSQL that the execution will not modify the database. If the execution might modify the database, and the READ_ONLY flag is passed, zeeSQL will return an error. Passing the READ_ONLY flags allow zeeSQL to not replicate the command.\nPossibly saving computing resources of the replicas. Examples : 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo where a > ?1;\" READ_ONLY ARGS 1\n1) 1) \"RESULT\"\n2) 1) \"a\"\n 2) \"b\"\n3) 1) \"INT\"\n 2) \"TEXT\"\n4) 1) (integer) 2\n 2) \"two\" Here we correctly used the READ_ONLY flag to communicate with zeeSQL that the command will not modify the database. zeeSQL correctly executes the query. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"insert into foo values(3, 'three')\" READ_ONLY\n(error) Statement is not read only but it may modify the database, use `EXEC` instead. In this other case, we ask zeeSQL to modify the database while using the READ_ONLY flag. zeeSQL correctly refuses to modify the database and returns an error.",
+ "title": "READ_ONLY flag"
+ },
+ {
+ "location": "/references/#no_header-flag",
+ "text": "By default zeeSQL returns information about the result set.\nIt returns the name of the columns and their type. This information might not be useful nor desirable. With the NO_HEADER flag, only the result itself is returned. Examples : 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\"\n1) 1) \"RESULT\"\n2) 1) \"number_as_integer\"\n 2) \"number_as_string\"\n3) 1) \"INT\"\n 2) \"TEXT\"\n4) 1) (integer) 1\n 2) \"one\"\n5) 1) (integer) 2\n 2) \"two\" This is the default result from zeeSQL . It reports the name of the columns (in this case number_as_integer and number_as_string and their type INT and TEXT ). If we are not intereted in such information: 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\" NO_HEADER\n1) 1) \"RESULT\"\n2) 1) (integer) 1\n 2) \"one\"\n3) 1) (integer) 2\n 2) \"two\" the NO_HEADER flags will omit it for us.",
+ "title": "NO_HEADER flag"
+ },
+ {
+ "location": "/references/#json-flag",
+ "text": "By default zeeSQL returns its result as an array of array.\nThis makes parsing the result a little complex in some programming languages. The JSON flags instruct zeeSQL to return a single JSON string as result. Examples : 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\" JSON\n\"{\\\"rows\\\":[{\\\"number_as_integer\\\":1,\\\"number_as_string\\\":\\\"one\\\"},{\\\"number_as_integer\\\":2,\\\"number_as_string\\\":\\\"two\\\"}],\\\"number_of_rows\\\":2,\\\"columns\\\":{\\\"number_as_integer\\\":\\\"INT\\\",\\\"number_as_strin\ng\\\":\\\"TEXT\\\"}}\" The JSON is valid JSON even if compressed: $ redis-cli ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\" JSON | jq\n{\n \"rows\": [\n {\n \"number_as_integer\": 1,\n \"number_as_string\": \"one\"\n },\n {\n \"number_as_integer\": 2,\n \"number_as_string\": \"two\"\n }\n ],\n \"number_of_rows\": 2,\n \"columns\": {\n \"number_as_integer\": \"INT\",\n \"number_as_string\": \"TEXT\"\n }\n} Of course, this can be combined with the NO_HEADER flag. $ redis-cli ZEESQL.EXEC DB COMMAND \"select a as number_as_integer, b as number_as_string from foo;\" JSON NO_HEADER | jq\n{\n \"rows\": [\n {\n \"number_as_integer\": 1,\n \"number_as_string\": \"one\"\n },\n {\n \"number_as_integer\": 2,\n \"number_as_string\": \"two\"\n }\n ]\n}",
+ "title": "JSON flag"
+ },
+ {
+ "location": "/references/#into-stream",
+ "text": "zeeSQL can push the result of a computation in a Redis Stream. This is desirable if you want to: consume the result at a later time, or cache the result, or if the result is rather big and you don't want to send all of it over the network. The INTO stream option will inform zeeSQL to push the result of the computation into the Redis STREAM called stream . The INTO stream option is available only if the query is marked as READ_ONLY . The command executes XADD to the stream. If the stream does not exist a new one is created. If the stream already exists the rows are simply appended. The command itself is eager, hence it computes the whole result, append it into the stream, and then it returns. \nOnce the command returns, the whole result set is already in the Redis stream. The return value of the command depends on the result of the query: If the result of the query is empty, it simply returns [\"DONE\", 0] . If at least one row is returned by the query the command returns: 1.the name of the stream where it appended the resulting rows, which is always the one passed as input\n2. the first ID added to the stream \n3. the last ID added to the stream \n4. and the total number of entries added to the stream. Using a standard Redis Stream all the standard consideration applies. The stream is not deleted by zeeSQL, hence it can be used for caching, on the other hand too many streams will use memory. The stream uses a standard Redis key, in a cluster environment you should be sure that the database that is executing the query and the stream that will accommodate the results are on the same cluster node. This can be accomplished easily by forcing the stream name to hash to the same cluster node of the database, it is sufficient to use a stream_name composed as such {db_key}:what:ever:here . Redis will hash only the part between the { and } to compute the cluster node.\n3. The result can be consumed using the standard Redis streams commands , two good starting points are XREAD and XRANGE . The key of the stream elements are the tuple (type, column name) separated by a colon : . Examples : 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo;\" INTO foo_stream\n(error) Asked a STREAM, but the query is not `READ_ONLY` (flag not set), this is not supported. At first, we tried to push the result of a query that is not marked as READ_ONLY and this correctly fails. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo where a > 100;\" READ_ONLY INTO foo_stream\n1) 1) \"DONE\"\n2) 1) (integer) 0 Above we execute a query that returns an empty result. zeeSQL simply communicates to us that the result is empty. 127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo;\" READ_ONLY INTO foo_stream 1) 1) \"RESULT\"\n2) 1) \"foo_stream\"\n 2) \"1612797707753-0\"\n 3) \"1612797707753-1\"\n 4) (integer) 2\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from foo;\" READ_ONLY INTO foo_stream JSON\n\"{\\\"rows\\\":[{\\\"stream\\\":\\\"foo_stream\\\",\\\"first_id\\\":\\\"1612797722505-0\\\",\\\"last_id\\\":\\\"1612797722505-1\\\",\\\"size\\\":2}]}\" Then we push into the Redis stream foo_stream the result of the query select * from foo . We do it twice, once using the standard return and the second time using the JSON return. We pushed twice, a query that returned two results, so we expect 4 elements in the stream. 127.0.0.1:6379> XLEN foo_stream\n(integer) 4 We can read the elements from the stream using the standard Redis stream interface.\nIn this case, we are going to read only the first two elements. 127.0.0.1:6379> XRANGE foo_stream - + COUNT 2\n1) 1) \"1612797707753-0\"\n 2) 1) \"int:a\"\n 2) \"1\"\n 3) \"text:b\"\n 4) \"one\"\n2) 1) \"1612797707753-1\"\n 2) 1) \"int:a\"\n 2) \"2\"\n 3) \"text:b\"\n 4) \"two\" Complexity : Besides the complexity of the query, the INTO stream options add the complexity of adding each row to the Redis stream, which is O(n) where n is the amount of row returned by the query. See also : Redis Streams Intro Redis Streams Commands XADD XREAD XRANGE",
+ "title": "INTO stream"
+ },
+ {
+ "location": "/references/#args-arguments",
+ "text": "The ARGS arguments are used to pass arguments to the statement or command. They are variadic, and you can pass as many as you need. In the SQL, the first argument will be bound to ?1 , the second to ?2 , and so on.\nPlease note that the first argument is NOT bound to ?0 . If an argument is not bound, for instance, you pass a query with ?4 but only provide 3 arguments, then, that argument is bound to NULL . Redis works using a text protocol, all the arguments are encoded as text, hence the module is forced to use the procedure sqlite3_bind_text , however, SQLite is smart enough to recognize numbers and treat them correctly. Numbers will be treated as numbers and text will be treated as text. See also : SQLite sqlite3_prepare_v2 SQLite statement aka sqlite3_stmt SQLite sqlite3_step SQLite PRAGMA s Redis Blocking Command",
+ "title": "ARGS arguments"
+ },
+ {
+ "location": "/references/#zeesqlquery",
+ "text": "ZEESQL.QUERY db_key \n ( (COMMAND \"command\") | (STATEMENT statement) ) \n [NOW] \n [INTO stream] \n [NO_HEADER] \n [JSON] \n [ARGS arg1 arg2 ... argn] This command behaves similarly to ZEESQL.EXEC but it imposes an additional constraint on the statement it executes. It only executes the statement if it is a read-only operation, otherwise, it returns an error. A read-only operation is defined by the result of calling sqlite3_stmt_readonly on the compiled statement. The statement is executed if and only if sqlite3_stmt_readonly returns true. This command is exactly like ZEESQL.EXEC ... READ_ONLY however it can be executed against Redis replicas. Complexity : Similar to ZEESQL.EXEC , however, if a statement is not read-only it is aborted immediately and it does return an appropriate error. See also : SQLite sqlite3_prepare_v2 SQLite statement aka sqlite3_stmt SQLite sqlite3_step SQLite PRAGMA s Redis Blocking Command ZEESQL.EXEC SQLite sqlite3_stmt_readonly ZEESQL.QUERY_STATEMENT",
+ "title": "ZEESQL.QUERY"
+ },
+ {
+ "location": "/references/#zeesqlstatement",
+ "text": "ZEESQL.STATEMENT db_key\n (\n (NEW stmt \"query\" [CAN_UPDATE]) | \n (DELETE stmt) | \n (UPDATE stmt \"query\" [CAN_CREATE]) |\n (SHOW stmt) |\n LIST\n )\n [NOW] This command manages zeeSQL statements. A statement is a pre-compiled SQL query, if you are going to execute your query over and over again, it is a good idea to make it into a statement.\nUnder the hood it is a sqlite statement . Statements can be used in the ZEESQL.EXEC db_key STATEMENT stmt command and in the ZEESQL.QUERY db_key STATEMENT stmt command. Five different actions can be invoked with the STATEMENT command. Create a new statement with the NEW option. Delete a statement with the DELETE option. Update a statement with the UPDATE option. Show the SQL behind a statement with the SHOW option. List all the statements with the LIST option. The STATEMENT command includes the NOW flag. \nThe NOW flag forces zeeSQL to execute the action in the main Redis thread.\nIn standard operations mode, it should not be used.",
+ "title": "ZEESQL.STATEMENT"
+ },
+ {
+ "location": "/references/#new",
+ "text": "The NEW option takes as input the name to associate with the statement and an SQL query to compile. The command compiles the SQL query into a pre-compiled statement, and associate it with the name. The CAN_UPDATE flag to the NEW command, instruct zeeSQL to behave as an UPDATE if the statement name is already allocated to an old statement.\nOtherwise, without the CAN_UPDATE flag, if the statement name is already used by a different statement, the command fails with an error.",
+ "title": "NEW"
+ },
+ {
+ "location": "/references/#delete",
+ "text": "The DELETE option deletes a statement.",
+ "title": "DELETE"
+ },
+ {
+ "location": "/references/#update",
+ "text": "The UPDATE option updates a statement, associating the old name with the statement compiled from the SQL query. If the name does not exists, UPDATE fails, unless the CAN_CREATE flag is provided.\nIn such a case UPDATE behave like NEW .",
+ "title": "UPDATE"
+ },
+ {
+ "location": "/references/#show",
+ "text": "The SHOW option returns the SQL query behind one statement.",
+ "title": "SHOW"
+ },
+ {
+ "location": "/references/#list",
+ "text": "The LIST option returns all the statements and their SQL queries. Both SHOW and LIST will report: The name of the statement The SQL query associate with the statement The number of parameters the statement expects If the statement is read only or not Complexity : Operation on the statements happens in constant time O(1). Listing the statements happens in O(n) with n number of statements present in the database. Examples : At first we create a new statement, 127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 \"SELECT 1;\"\n1) 1) \"OK\" We can then list, the statement: 127.0.0.1:6379> ZEESQL.STATEMENT DB LIST\n1) 1) \"RESULT\"\n2) 1) \"identifier\"\n 2) \"SQL\"\n 3) \"parameters_count\"\n 4) \"read_only\"\n3) 1) \"TEXT\"\n 2) \"TEXT\"\n 3) \"INT\"\n 4) \"INT\"\n4) 1) \"select_1\"\n 2) \"SELECT 1;\"\n 3) (integer) 0\n 4) (integer) 1 The statement can be updated, but we need to use the UPDATE command or the CAN_UPDATE flag. 127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 \"SELECT '1';\"\n(error) The statement is already present in the database, try with UPDATE_STATEMENT\n127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 \"SELECT '1';\" CAN_UPDATE\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.STATEMENT DB UPDATE select_1 \"SELECT '1';\"\n1) 1) \"OK\" We change select_1 to return a string and not an integer. 127.0.0.1:6379> ZEESQL.STATEMENT DB UPDATE select_plus_one \"SELECT ?1 + 1;\" CAN_CREATE\n1) 1) \"OK\" We create another statement, this time we create the statement with the UPDATE command and the CAN_CREATE flag. 127.0.0.1:6379> ZEESQL.STATEMENT DB LIST\n1) 1) \"RESULT\"\n2) 1) \"identifier\"\n 2) \"SQL\"\n 3) \"parameters_count\"\n 4) \"read_only\"\n3) 1) \"TEXT\"\n 2) \"TEXT\"\n 3) \"INT\"\n 4) \"INT\"\n4) 1) \"select_1\"\n 2) \"SELECT '1';\"\n 3) (integer) 0\n 4) (integer) 1\n5) 1) \"select_plus_one\"\n 2) \"SELECT ?1 + 1;\"\n 3) (integer) 1\n 4) (integer) 1\n127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT select_plus_one NO_HEADER ARGS 5\n1) 1) \"RESULT\"\n2) 1) (integer) 6 See also : SQLite sqlite3_prepare_v2 SQLite statement aka sqlite3_stmt SQLite bindings, sqlite3_bind_text Redis Blocking Command",
+ "title": "LIST"
+ },
+ {
+ "location": "/references/#zeesqlcopy",
+ "text": "ZEESQL.COPY \n FROM db_key_source \n TO db_key_destination \n [NOW] The command copies the source database into the destination database. The content of the destination databases is completely ignored and lost. It is not important if the databases are stored in memory or backed by disk, the COPY command will work nevertheless. This command is useful to: Create backups of databases Load data from slow, disk-based, databases into a fast in-memory one To persist data from an in-memory database into a disk-based database Initialize a database with a predefined status Usually, the destination database is an empty database just created, while the source one is a database where we have been working for a while. This command use the backup API of sqlite. Complexity : The complexity is linear on the number of pages (dimension) of the source database, beware it can be \"slow\" if the source database is big, during the copy the source database is busy and it cannot serve other queries. Example : 127.0.0.1:6379> ZEESQL.CREATE_DB DB01\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND \"create table foo(a, b);\"\n1) 1) \"DONE\"\n2) 1) (integer) 0\n127.0.0.1:6379> ZEESQL.EXEC DB01 COMMAND \"insert into foo values(1,2),(3,4);\"\n1) 1) \"DONE\"\n2) 1) (integer) 2\n127.0.0.1:6379> ZEESQL.CREATE_DB DB02\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.EXEC DB02 COMMAND \"select * from foo\"\n(error) no such table: foo\n127.0.0.1:6379> ZEESQL.COPY FROM DB01 TO DB02\n1) 1) \"OK\"\n127.0.0.1:6379> ZEESQL.EXEC DB02 COMMAND \"select * from foo\"\n1) 1) \"RESULT\"\n2) 1) \"a\"\n 2) \"b\"\n3) 1) \"INT\"\n 2) \"INT\"\n4) 1) (integer) 1\n 2) (integer) 2\n5) 1) (integer) 3\n 2) (integer) 4 In the example we create a database, we create a table, and then we pushed few rows into the table. We then create another database, but this time we didn't create the table, neither pushed any row. As expected, trying to query the second database returned an error. After copying the content of the first database into the second, the second database has become a perfect copy of the first one. See also : Backup API",
+ "title": "ZEESQL.COPY"
+ },
+ {
+ "location": "/references/#zeesqlindex",
+ "text": "The index command accepts 3 different options: NEW LIST DELETE We will illustrate them separately.",
+ "title": "ZEESQL.INDEX"
+ },
+ {
+ "location": "/references/#zeesqlindex-new",
+ "text": "ZEESQL.INDEX db_key \n NEW\n TABLE table_name\n [PREFIX prefix]\n SCHEMA column_name column_type [column_name column_type ...] Creates a new secondary index table for the Redis hashes. The secondary index will refer to the table table_name and will use the columns indicated in the SCHEMA parameter. column_type can be whatever is accepted by SQLite as column name, suggestions are TEXT , INT , FLOAT or BLOB . If a prefix is provided, only the Redis hashes that start with that prefix are indexed in the table.\nIf the prefix is omitted, the * prefix (catch-all) is assumed. If the table does not exists when the index is created, zeeSQL creates it. If the table already exists, zeeSQL takes no action.\nHowever, if the table exists but contains the wrong columns, zeeSQL may find it impossible to insert the hashes into the secondary index. It is possible to create multiple indexes, with the same table, same schema, but different prefix. zeeSQL store in the secondary index table, the main Redis hash key, as primary key. The table created by zeeSQL behaves like any other table, so it can be queried, modified, and indexed, using the standard ZEESQL.EXEC interface. No steps are taken to avoid manual deletions or updates of the secondary index table by the user. Secondary indexes are univocally identified by the combination of the table in which they write and the prefix. Example : In this example, we can see how to create a secondary index, and how the secondary index automatically keeps the values between Redis and zeeSQL in synchronism. 127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE users prefix user:* SCHEMA username STRING score INT\nOK\n127.0.0.1:6379> HMSET user:1001 username aaa score 0\nOK\n127.0.0.1:6379> HMSET user:1002 username bbb score 0\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from users\"\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"username\"\n 3) \"score\"\n3) 1) \"TEXT\"\n 2) \"TEXT\"\n 3) \"INT\"\n4) 1) \"user:1001\"\n 2) \"aaa\"\n 3) (integer) 0\n5) 1) \"user:1002\"\n 2) \"bbb\"\n 3) (integer) 0\n127.0.0.1:6379> HINCRBY user:1002 score 3\n(integer) 3\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from users\"\n1) 1) \"RESULT\"\n2) 1) \"key\"\n 2) \"username\"\n 3) \"score\"\n3) 1) \"TEXT\"\n 2) \"TEXT\"\n 3) \"INT\"\n4) 1) \"user:1001\"\n 2) \"aaa\"\n 3) (integer) 0\n5) 1) \"user:1002\"\n 2) \"bbb\"\n 3) (integer) 3",
+ "title": "ZEESQL.INDEX NEW"
+ },
+ {
+ "location": "/references/#zeesqlindex-list",
+ "text": "The list option shows the active secondary index. The secondary indexes are identified by the table in which they write and by the prefix they use to filter the keys. Example : 127.0.0.1:6379> ZEESQL.INDEX DB LIST\n1) 1) \"RESULT\"\n2) 1) \"users\"\n 2) \"user:*\"\n127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE games prefix games:* SCHEMA first_player STRING second_player STRING score_player_1 INT score_player_2 INT\nOK\n127.0.0.1:6379> ZEESQL.INDEX DB LIST\n1) 1) \"RESULT\"\n2) 1) \"users\"\n 2) \"user:*\"\n3) 1) \"games\"\n 2) \"games:*\"",
+ "title": "ZEESQL.INDEX LIST"
+ },
+ {
+ "location": "/references/#zeesqlindex-delete",
+ "text": "ZEESQL.INDEX db_key \n DELETE\n TABLE table_name\n [PREFIX prefix] The DELETE option removes a secondary index. Hashes that match the prefix are not inserted anymore in the table after the index is removed. The DELETE option takes as input the table and the prefix that identifies the secondary index to remove. If the prefix is omitted the * (catch-all) prefix is assumed. Example : 127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE users PREFIX user:* SCHEMA username STRING score INT\nOK\n127.0.0.1:6379> HMSET user:1001 username first_user score 12\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from users\" NO_HEADER\n1) 1) \"RESULT\"\n2) 1) \"user:1001\"\n 2) \"first_user\"\n 3) (integer) 12\n127.0.0.1:6379> ZEESQL.INDEX DB DELETE TABLE users PREFIX user:*\n1) 1) \"DONE\"\n2) 1) (integer) 1\n127.0.0.1:6379> HMSET user:1002 username second_user score 5\nOK\n127.0.0.1:6379> ZEESQL.EXEC DB COMMAND \"select * from users\" NO_HEADER\n1) 1) \"RESULT\"\n2) 1) \"user:1001\"\n 2) \"first_user\"\n 3) (integer) 12 In the example, we first create an index. Then we add a Redis hash that matches the secondary index prefix, so it is added to the secondary index table. Then, delete the index. And we can confirm that new users are not added any more to the secondary index table.",
+ "title": "ZEESQL.INDEX DELETE"
+ },
+ {
+ "location": "/references/#zeesqllicense",
+ "text": "ZEESQL.LICENSE\n ( SET \"license\" ) | SHOW The SET option will set the license to use for zeeSQL . The license is first checked against our backend server, and if the license is correct, it will return OK otherwise it will return an error. It is required an internet connection to set the license. The SHOW option will show the license that is actually in use in your zeeSQL process.",
+ "title": "ZEESQL.LICENSE"
+ },
+ {
+ "location": "/pricing/",
+ "text": "Pricing for zeeSQL\n\n\nzeeSQL is not a free product.\n\n\nWe offer a generous free tier, but the product itself is not free.\n\n\nWe try our best to support zeeSQL and RediSQL before it on open source work, unfortunately it didn't workout.\nHence the difficult decision to steer the product.\n\n\nBuying \nzeeSQL\n your are buying yourself the time that would would need to invest to replicate its features.\nMoreover you are buying great documentation to quickly start using the product and support to resolve problems quickly.\n\n\nzeeSQL\n is a product for busy developers and technical leaders, who need a stable and reliable solution today.\n\nzeeSQL\n can be deployed now in any redis instance.\n\n\nWe are not aware of any solution in the market that offers the same features.\n\n\nCredit system\n\n\nzeeSQL\n use a credit system.\n\n\nzeeSQL\n reports back its usage to our central infrastructure and you are billed based on many credits you spend.\n\n\nRunning either one database or one secondary index cost 1 credit every hour.\nOne credit costs 0,01\u20ac\n\n\nThere is a free tier / allowance of 2160 credits each month.\n2160 credits corrisponds to 3 free credit each hour, for 30 days.\n\n\nThe free tier is computed over the course of one month.\nHence, if your usage goes slightly above the 3 credits and then slightly below, you will still be inside the free tier.\n\n\nTo use \nzeeSQL\n you do NOT need a license. You need a license to use more than 3 credits every hour.\n\n\nIf you are just testing, do NOT buy a license nor input any license.\nIn this way you are sure that you will never incur in unexpected charges.\n\n\nExample\n\n\nThe following examples assumes a steady state operation.\n\n\nObviously this is rarely the case, but it is still illustrative.\n\n\n\n\n\n\n\n\nNumber of databases\n\n\nNumbre of indexes\n\n\nCredit per hour\n\n\nCost per hour\n\n\nCredit per month\n\n\nCost per month\n\n\n\n\n\n\n\n\n\n\n1\n\n\n0\n\n\n1\n\n\nFREE\n\n\n720\n\n\nFREE\n\n\n\n\n\n\n3\n\n\n0\n\n\n3\n\n\nFREE\n\n\n2160\n\n\nFREE\n\n\n\n\n\n\n4\n\n\n0\n\n\n4\n\n\n0.01\n\n\n2880\n\n\n7.20\n\n\n\n\n\n\n5\n\n\n0\n\n\n5\n\n\n0.02\n\n\n3600\n\n\n14.40\n\n\n\n\n\n\n1\n\n\n2\n\n\n3\n\n\nFREE\n\n\n2160\n\n\nFREE\n\n\n\n\n\n\n1\n\n\n3\n\n\n4\n\n\n0.01\n\n\n2880\n\n\n7.20\n\n\n\n\n\n\n2\n\n\n3\n\n\n5\n\n\n0.02\n\n\n3600\n\n\n14.40\n\n\n\n\n\n\n2\n\n\n4\n\n\n6\n\n\n0.03\n\n\n4320\n\n\n21.60\n\n\n\n\n\n\n\n\nFor instance, if you are creating 4 databases, each database consume 1 credit each hour, hence a total consumption of 4 credit every hour.\nOver the course of one day, 4 databases will consume (4*24 =) 96 credits.\nOver the course of one month, 4 databases will consume (96 * 30 =) 2880 credits.\nOf this 2880 credits, 2160 credits are in the free tier, hence they are free.\nThe user pays only for (2880 - 2160 =) 720 credits.\n720 credits at the rate of one euro cent per credit, sum up to 7,20 euros. \n\n\nPathological cases\n\n\nPlease get in touch if your application is a patological cases.\n\n\nFor instance if you design your application to have one database for each user.",
+ "title": "Pricing"
+ },
+ {
+ "location": "/pricing/#pricing-for-zeesql",
+ "text": "zeeSQL is not a free product. We offer a generous free tier, but the product itself is not free. We try our best to support zeeSQL and RediSQL before it on open source work, unfortunately it didn't workout.\nHence the difficult decision to steer the product. Buying zeeSQL your are buying yourself the time that would would need to invest to replicate its features.\nMoreover you are buying great documentation to quickly start using the product and support to resolve problems quickly. zeeSQL is a product for busy developers and technical leaders, who need a stable and reliable solution today. zeeSQL can be deployed now in any redis instance. We are not aware of any solution in the market that offers the same features.",
+ "title": "Pricing for zeeSQL"
+ },
+ {
+ "location": "/pricing/#credit-system",
+ "text": "zeeSQL use a credit system. zeeSQL reports back its usage to our central infrastructure and you are billed based on many credits you spend. Running either one database or one secondary index cost 1 credit every hour.\nOne credit costs 0,01\u20ac There is a free tier / allowance of 2160 credits each month.\n2160 credits corrisponds to 3 free credit each hour, for 30 days. The free tier is computed over the course of one month.\nHence, if your usage goes slightly above the 3 credits and then slightly below, you will still be inside the free tier. To use zeeSQL you do NOT need a license. You need a license to use more than 3 credits every hour. If you are just testing, do NOT buy a license nor input any license.\nIn this way you are sure that you will never incur in unexpected charges.",
+ "title": "Credit system"
+ },
+ {
+ "location": "/pricing/#example",
+ "text": "The following examples assumes a steady state operation. Obviously this is rarely the case, but it is still illustrative. Number of databases Numbre of indexes Credit per hour Cost per hour Credit per month Cost per month 1 0 1 FREE 720 FREE 3 0 3 FREE 2160 FREE 4 0 4 0.01 2880 7.20 5 0 5 0.02 3600 14.40 1 2 3 FREE 2160 FREE 1 3 4 0.01 2880 7.20 2 3 5 0.02 3600 14.40 2 4 6 0.03 4320 21.60 For instance, if you are creating 4 databases, each database consume 1 credit each hour, hence a total consumption of 4 credit every hour.\nOver the course of one day, 4 databases will consume (4*24 =) 96 credits.\nOver the course of one month, 4 databases will consume (96 * 30 =) 2880 credits.\nOf this 2880 credits, 2160 credits are in the free tier, hence they are free.\nThe user pays only for (2880 - 2160 =) 720 credits.\n720 credits at the rate of one euro cent per credit, sum up to 7,20 euros.",
+ "title": "Example"
+ },
+ {
+ "location": "/pricing/#pathological-cases",
+ "text": "Please get in touch if your application is a patological cases. For instance if you design your application to have one database for each user.",
+ "title": "Pathological cases"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/pricing/index.html b/pricing/index.html
new file mode 100644
index 0000000..45c24d5
--- /dev/null
+++ b/pricing/index.html
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
+
+
+ Pricing - zeeSQL
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
We offer a generous free tier, but the product itself is not free.
+
We try our best to support zeeSQL and RediSQL before it on open source work, unfortunately it didn't workout.
+Hence the difficult decision to steer the product.
+
Buying zeeSQL your are buying yourself the time that would would need to invest to replicate its features.
+Moreover you are buying great documentation to quickly start using the product and support to resolve problems quickly.
+
zeeSQL is a product for busy developers and technical leaders, who need a stable and reliable solution today.
+zeeSQL can be deployed now in any redis instance.
+
We are not aware of any solution in the market that offers the same features.
+
Credit system
+
zeeSQL use a credit system.
+
zeeSQL reports back its usage to our central infrastructure and you are billed based on many credits you spend.
+
Running either one database or one secondary index cost 1 credit every hour.
+One credit costs 0,01€
+
There is a free tier / allowance of 2160 credits each month.
+2160 credits corrisponds to 3 free credit each hour, for 30 days.
+
The free tier is computed over the course of one month.
+Hence, if your usage goes slightly above the 3 credits and then slightly below, you will still be inside the free tier.
+
To use zeeSQL you do NOT need a license. You need a license to use more than 3 credits every hour.
+
If you are just testing, do NOT buy a license nor input any license.
+In this way you are sure that you will never incur in unexpected charges.
+
Example
+
The following examples assumes a steady state operation.
+
Obviously this is rarely the case, but it is still illustrative.
+
+
+
+
Number of databases
+
Numbre of indexes
+
Credit per hour
+
Cost per hour
+
Credit per month
+
Cost per month
+
+
+
+
+
1
+
0
+
1
+
FREE
+
720
+
FREE
+
+
+
3
+
0
+
3
+
FREE
+
2160
+
FREE
+
+
+
4
+
0
+
4
+
0.01
+
2880
+
7.20
+
+
+
5
+
0
+
5
+
0.02
+
3600
+
14.40
+
+
+
1
+
2
+
3
+
FREE
+
2160
+
FREE
+
+
+
1
+
3
+
4
+
0.01
+
2880
+
7.20
+
+
+
2
+
3
+
5
+
0.02
+
3600
+
14.40
+
+
+
2
+
4
+
6
+
0.03
+
4320
+
21.60
+
+
+
+
For instance, if you are creating 4 databases, each database consume 1 credit each hour, hence a total consumption of 4 credit every hour.
+Over the course of one day, 4 databases will consume (4*24 =) 96 credits.
+Over the course of one month, 4 databases will consume (96 * 30 =) 2880 credits.
+Of this 2880 credits, 2160 credits are in the free tier, hence they are free.
+The user pays only for (2880 - 2160 =) 720 credits.
+720 credits at the rate of one euro cent per credit, sum up to 7,20 euros.
+
Pathological cases
+
Please get in touch if your application is a patological cases.
+
For instance if you design your application to have one database for each user.
+
+
+
+
+
+
+
+
+
+
+
+
Search
+
+
+
+ From here you can search these documents. Enter
+ your search terms below.
+
This document explains all the API that zeeSQL provide to the users.
+
This document refers to the latest API, but we commit to backward-compatible API.
+
For each command, it exposes first the name and then the syntax, and finally a brief explanation of what is going on inside the code.
+
Where is possible, it provides also an estimate of the complexity but since we are talking about databases not all queries have the same time and spatial complexity.
+
Finally, if it is appropriate the document also provides several references to external material that the interested reader can use to understand better the dynamics of every command.
+
ZEESQL.CREATE_DB
+
ZEESQL.CREATE_DB db_key [PATH path]
+
+
+
This command creates a new DB and associates it with the key.
+
The path argument is optional and, if provided is the file that SQLite will use.
+It can be an existing SQLite file or it can be a not existing file.
+
If the file exists and if it is a regular SQLite file that database will be used.
+If the file does not exist a new file will be created.
+
If the path is not provided it will open an in-memory database. Not providing a path is equivalent to provide the special string :memory: as the path argument.
+
After opening the database it inserts metadata into it and then starts a thread loop.
+
Complexity: O(1), it means constant, it does not necessarily mean fast. However, is fast enough for any use case facing human users (eg create a new database for every user logging into a website.)
+
Examples:
+
127.0.0.1:6379> ZEESQL.CREATE_DB DB
+1) 1) "OK"
+
+
+
This command created an in-memory database.
+Persistency is managed by Redis with AOF or RDB following the setting of your Redis instance.
It eliminates keys from Redis itself, as well if the key is a RediSQL database create with ZEESQL.CREATE_DB it will eliminate the SQLite database, stop the thread loop and clean up everything left.
+
If the database is backed by a file the file will be closed, but it won't be deleted.
+
Complexity: DEL is O(N) on the number of keys, if you are only eliminating the key associated with the SQLite database will be constant, O(1).
+
Examples:
+
127.0.0.1:6379> ZEESQL.CREATE_DB DB
+1) 1) "OK"
+127.0.0.1:6379> DEL DB
+(integer) 1
+
The EXEC command is the main command of zeeSQL. It allows interaction with the database stored in the db_key.
+
It takes as input the database db_key, either a COMMAND or a STATEMENT, an optional series of flags, and an optional variadic number of arguments.
+
You need to supply EITHER a command (using the COMMAND flag) or a statement (using the STATEMENT flag), but you need one of them.
+
Command vs Statement
+
The command is a valid SQL string.
+The command SQL string can contain arguments in the form ?n.
+Those arguments will be matched to the one provided at the end of the command.
+The first argument is bound against ?1, NOT against ?0.
+Arguments that are not provided will be bound to NULL.
+
The statement can be created with the ZEESQL.STATEMENT command.
+The arguments follow the same logic of the COMMAND variants.
+
Examples:
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "create table foo(a INT, b string);"
+1) 1) "DONE"
+2) 1) (integer) 0
+
+
+
In this example, we create a new table.
+
127.0.0.1:6379> ZEESQL.STATEMENT DB NEW insert "insert into foo values(?1, ?2);"
+1) 1) "OK"
+127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT insert ARGS 1 one
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB STATEMENT insert ARGS 2 two
+1) 1) "DONE"
+2) 1) (integer) 1
+
+
+
Then we create a new STATEMENT to insert values, and we execute the statement twice.
We queried the values just inserted in the table executing another command.
+
NOW flag
+
By default zeeSQL offload the SQL computation to a secondary thread.
+This free the main Redis thread and keep the Redis instance reactive.
+
The NOW flags force zeeSQL to run the SQL computation in the main Redis thread.
+
READ_ONLY flag
+
The READ_ONLY flags communicate to zeeSQL that the execution will not modify the database.
+
If the execution might modify the database, and the READ_ONLY flag is passed, zeeSQL will return an error.
+
Passing the READ_ONLY flags allow zeeSQL to not replicate the command.
+Possibly saving computing resources of the replicas.
+
Examples:
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo where a > ?1;" READ_ONLY ARGS 1
+1) 1) "RESULT"
+2) 1) "a"
+ 2) "b"
+3) 1) "INT"
+ 2) "TEXT"
+4) 1) (integer) 2
+ 2) "two"
+
+
+
Here we correctly used the READ_ONLY flag to communicate with zeeSQL that the command will not modify the database.
+
zeeSQL correctly executes the query.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "insert into foo values(3, 'three')" READ_ONLY
+(error) Statement is not read only but it may modify the database, use `EXEC` instead.
+
+
+
In this other case, we ask zeeSQL to modify the database while using the READ_ONLY flag.
+
zeeSQL correctly refuses to modify the database and returns an error.
+
NO_HEADER flag
+
By default zeeSQL returns information about the result set.
+It returns the name of the columns and their type.
+
This information might not be useful nor desirable.
+
With the NO_HEADER flag, only the result itself is returned.
+
Examples:
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;"
+1) 1) "RESULT"
+2) 1) "number_as_integer"
+ 2) "number_as_string"
+3) 1) "INT"
+ 2) "TEXT"
+4) 1) (integer) 1
+ 2) "one"
+5) 1) (integer) 2
+ 2) "two"
+
+
+
This is the default result from zeeSQL. It reports the name of the columns (in this case number_as_integer and number_as_string and their type INT and TEXT).
+
If we are not intereted in such information:
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;" NO_HEADER
+1) 1) "RESULT"
+2) 1) (integer) 1
+ 2) "one"
+3) 1) (integer) 2
+ 2) "two"
+
+
+
the NO_HEADER flags will omit it for us.
+
JSON flag
+
By default zeeSQL returns its result as an array of array.
+This makes parsing the result a little complex in some programming languages.
+
The JSON flags instruct zeeSQL to return a single JSON string as result.
+
Examples:
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;" JSON
+"{\"rows\":[{\"number_as_integer\":1,\"number_as_string\":\"one\"},{\"number_as_integer\":2,\"number_as_string\":\"two\"}],\"number_of_rows\":2,\"columns\":{\"number_as_integer\":\"INT\",\"number_as_strin
+g\":\"TEXT\"}}"
+
+
+
The JSON is valid JSON even if compressed:
+
$ redis-cli ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;" JSON | jq
+{
+ "rows": [
+ {
+ "number_as_integer": 1,
+ "number_as_string": "one"
+ },
+ {
+ "number_as_integer": 2,
+ "number_as_string": "two"
+ }
+ ],
+ "number_of_rows": 2,
+ "columns": {
+ "number_as_integer": "INT",
+ "number_as_string": "TEXT"
+ }
+}
+
+
+
Of course, this can be combined with the NO_HEADER flag.
+
$ redis-cli ZEESQL.EXEC DB COMMAND "select a as number_as_integer, b as number_as_string from foo;" JSON NO_HEADER | jq
+{
+ "rows": [
+ {
+ "number_as_integer": 1,
+ "number_as_string": "one"
+ },
+ {
+ "number_as_integer": 2,
+ "number_as_string": "two"
+ }
+ ]
+}
+
+
+
INTO stream
+
zeeSQL can push the result of a computation in a Redis Stream.
+
This is desirable if you want to:
+
+
consume the result at a later time,
+
or cache the result,
+
or if the result is rather big and you don't want to send all of it over the network.
+
+
The INTO stream option will inform zeeSQL to push the result of the computation into the Redis STREAM called stream.
+
The INTO stream option is available only if the query is marked as READ_ONLY.
If the stream does not exist a new one is created.
+
If the stream already exists the rows are simply appended.
+
The command itself is eager, hence it computes the whole result, append it into the stream, and then it returns.
+Once the command returns, the whole result set is already in the Redis stream.
+
The return value of the command depends on the result of the query:
+
If the result of the query is empty, it simply returns ["DONE", 0].
+
If at least one row is returned by the query the command returns:
+
1.the name of the stream where it appended the resulting rows, which is always the one passed as input
+2. the first ID added to the stream
+3. the last ID added to the stream
+4. and the total number of entries added to the stream.
+
Using a standard Redis Stream all the standard consideration applies.
+
+
The stream is not deleted by zeeSQL, hence it can be used for caching, on the other hand too many streams will use memory.
+
The stream uses a standard Redis key, in a cluster environment you should be sure that the database that is executing the query and the stream that will accommodate the results are on the same cluster node.
+
+
This can be accomplished easily by forcing the stream name to hash to the same cluster node of the database, it is sufficient to use a stream_name composed as such {db_key}:what:ever:here. Redis will hash only the part between the { and } to compute the cluster node.
+3. The result can be consumed using the standard Redis streams commands, two good starting points are XREAD and XRANGE.
+
The key of the stream elements are the tuple (type, column name) separated by a colon :.
+
Examples:
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo;" INTO foo_stream
+(error) Asked a STREAM, but the query is not `READ_ONLY` (flag not set), this is not supported.
+
+
+
At first, we tried to push the result of a query that is not marked as READ_ONLY and this correctly fails.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo where a > 100;" READ_ONLY INTO foo_stream
+1) 1) "DONE"
+2) 1) (integer) 0
+
+
+
Above we execute a query that returns an empty result.
+
zeeSQL simply communicates to us that the result is empty.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo;" READ_ONLY INTO foo_stream 1) 1) "RESULT"
+2) 1) "foo_stream"
+ 2) "1612797707753-0"
+ 3) "1612797707753-1"
+ 4) (integer) 2
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND "select * from foo;" READ_ONLY INTO foo_stream JSON
+"{\"rows\":[{\"stream\":\"foo_stream\",\"first_id\":\"1612797722505-0\",\"last_id\":\"1612797722505-1\",\"size\":2}]}"
+
+
+
Then we push into the Redis stream foo_stream the result of the query select * from foo.
+
We do it twice, once using the standard return and the second time using the JSON return.
+
We pushed twice, a query that returned two results, so we expect 4 elements in the stream.
+
127.0.0.1:6379> XLEN foo_stream
+(integer) 4
+
+
+
We can read the elements from the stream using the standard Redis stream interface.
+In this case, we are going to read only the first two elements.
Complexity: Besides the complexity of the query, the INTO stream options add the complexity of adding each row to the Redis stream, which is O(n) where n is the amount of row returned by the query.
The ARGS arguments are used to pass arguments to the statement or command.
+
They are variadic, and you can pass as many as you need.
+
In the SQL, the first argument will be bound to ?1, the second to ?2, and so on.
+Please note that the first argument is NOT bound to ?0.
+
If an argument is not bound, for instance, you pass a query with ?4 but only provide 3 arguments, then, that argument is bound to NULL.
+
Redis works using a text protocol, all the arguments are encoded as text, hence the module is forced to use the procedure sqlite3_bind_text, however, SQLite is smart enough to recognize numbers and treat them correctly. Numbers will be treated as numbers and text will be treated as text.
A statement is a pre-compiled SQL query, if you are going to execute your query over and over again, it is a good idea to make it into a statement.
+Under the hood it is a sqlite statement.
+
Statements can be used in the ZEESQL.EXEC db_key STATEMENT stmt command and in the ZEESQL.QUERY db_key STATEMENT stmt command.
+
Five different actions can be invoked with the STATEMENT command.
+
+
Create a new statement with the NEW option.
+
Delete a statement with the DELETE option.
+
Update a statement with the UPDATE option.
+
Show the SQL behind a statement with the SHOW option.
+
List all the statements with the LIST option.
+
+
The STATEMENT command includes the NOW flag.
+The NOW flag forces zeeSQL to execute the action in the main Redis thread.
+In standard operations mode, it should not be used.
+
NEW
+
The NEW option takes as input the name to associate with the statement and an SQL query to compile.
+
The command compiles the SQL query into a pre-compiled statement, and associate it with the name.
+
The CAN_UPDATE flag to the NEW command, instruct zeeSQL to behave as an UPDATE if the statement name is already allocated to an old statement.
+Otherwise, without the CAN_UPDATE flag, if the statement name is already used by a different statement, the command fails with an error.
+
DELETE
+
The DELETE option deletes a statement.
+
UPDATE
+
The UPDATE option updates a statement, associating the old name with the statement compiled from the SQL query.
+
If the name does not exists, UPDATE fails, unless the CAN_CREATE flag is provided.
+In such a case UPDATE behave like NEW.
+
SHOW
+
The SHOW option returns the SQL query behind one statement.
+
LIST
+
The LIST option returns all the statements and their SQL queries.
+
Both SHOW and LIST will report:
+
+
The name of the statement
+
The SQL query associate with the statement
+
The number of parameters the statement expects
+
If the statement is read only or not
+
+
Complexity: Operation on the statements happens in constant time O(1). Listing the statements happens in O(n) with n number of statements present in the database.
+
Examples:
+
At first we create a new statement,
+
127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 "SELECT 1;"
+1) 1) "OK"
+
The statement can be updated, but we need to use the UPDATE command or the CAN_UPDATE flag.
+
127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 "SELECT '1';"
+(error) The statement is already present in the database, try with UPDATE_STATEMENT
+127.0.0.1:6379> ZEESQL.STATEMENT DB NEW select_1 "SELECT '1';" CAN_UPDATE
+1) 1) "OK"
+127.0.0.1:6379> ZEESQL.STATEMENT DB UPDATE select_1 "SELECT '1';"
+1) 1) "OK"
+
+
+
We change select_1 to return a string and not an integer.
Complexity: The complexity is linear on the number of pages (dimension) of the source database, beware it can be "slow" if the source database is big, during the copy the source database is busy and it cannot serve other queries.
Creates a new secondary index table for the Redis hashes.
+
The secondary index will refer to the table table_name and will use the columns indicated in the SCHEMA parameter.
+
column_type can be whatever is accepted by SQLite as column name, suggestions are TEXT, INT, FLOAT or BLOB.
+
If a prefix is provided, only the Redis hashes that start with that prefix are indexed in the table.
+If the prefix is omitted, the * prefix (catch-all) is assumed.
+
If the table does not exists when the index is created, zeeSQL creates it.
+
If the table already exists, zeeSQL takes no action.
+However, if the table exists but contains the wrong columns, zeeSQL may find it impossible to insert the hashes into the secondary index.
+
It is possible to create multiple indexes, with the same table, same schema, but different prefix.
+
zeeSQL store in the secondary index table, the main Redis hash key, as primary key.
+
The table created by zeeSQL behaves like any other table, so it can be queried, modified, and indexed, using the standard ZEESQL.EXEC interface.
+
No steps are taken to avoid manual deletions or updates of the secondary index table by the user.
+
Secondary indexes are univocally identified by the combination of the table in which they write and the prefix.
+
Example:
+
In this example, we can see how to create a secondary index, and how the secondary index automatically keeps the values between Redis and zeeSQL in synchronism.
We have successfully sent our first command to zeeSQL and get our first RESULT, the integer 1.
+
Modify the database structure
+
A database without tables is not very useful.
+We will now create a table to store information about users.
+
In the table we want to store the username, its score and the user email.
+The username and the email will be text fields, while the score will be an integer field.
The operation was successfully and 0 rows have been modified.
+
However, we now have a table where we can store information about the user.
+
Add data to the database
+
We can now start to add users to our table.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("jsmith", 3, "jon.smith@gmail.com");'
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("EvelineInArgentina", 3, "eve.frank@yahoo.com");'
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("DuffyAlone", 12, "mr.duffy@proton.com");'
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'INSERT INTO users VALUES("far", 6, "farrington@nv.ru");'
+1) 1) "DONE"
+2) 1) (integer) 1
+
+
+
Each insert was successful and each one added one more row to the database.
+
Query the database
+
After having added data to the database, we want to query those data back.
+
We can ask for the score of the user jsmith
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT score FROM users WHERE username = "jsmith"'
+1) 1) "RESULT"
+2) 1) "score"
+3) 1) "INT"
+4) 1) (integer) 3
+
+
+
In this case the score is an integer, and it is of value 3.
+
Or to know what users have a score greater than 5
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'SELECT username FROM users WHERE score > 5'
+1) 1) "RESULT"
+2) 1) "username"
+3) 1) "TEXT"
+4) 1) "DuffyAlone"
+5) 1) "far"
+
+
+
In this other case the usernames are of type TEXT and are: DuffyAlone and far.
+
Since we are not modifying the database, instead of EXECUTING a command with EXEC we can just QUERY.
+
127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT username FROM users WHERE score > 5'
+1) 1) "RESULT"
+2) 1) "username"
+3) 1) "TEXT"
+4) 1) "DuffyAlone"
+5) 1) "far"
+
+
+
QUERY does not work when trying to modify the database.
+
127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'INSERT INTO users VALUES("far", 6, "farrington@nv.ru");'
+(error) Statement is not read only but it may modify the database, use `EXEC_STATEMENT` instead.
+
+
+
Modify the data
+
Our users, keep using our platform, are increasing their score. We can increase the score with an update.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + 1 WHERE username = "jsmith";'
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = "jsmith"'
+1) 1) "RESULT"
+2) 1) "score"
+3) 1) "INT"
+4) 1) (integer) 4
+
+
+
In this example, we first increase the score of the user jsmith of one, and then we query the same score.
+
Delete the data
+
Eventually our user will leave the platform, in this case we can delete them.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'DELETE FROM users WHERE username = "far";'
+1) 1) "DONE"
+2) 1) (integer) 1
+
+
+
Use arguments for your queries
+
Up to now, we send only SQL queries that contains all the parameters.
+It is also possible to send a query with placeholders followed by arguments.
+This is useful to avoid SQL injections attacks and to avoid string constructions at runtime.
+
In our example we can increment the score of a player by a specific amount.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'UPDATE users SET score = score + ?2 WHERE username = ?1;' ARGS jsmith 3
+1) 1) "DONE"
+2) 1) (integer) 1
+127.0.0.1:6379> ZEESQL.QUERY DB COMMAND 'SELECT score FROM users WHERE username = ?1' ARGS jsmith
+1) 1) "RESULT"
+2) 1) "score"
+3) 1) "INT"
+4) 1) (integer) 7
+
+
+
The first argument is ?1 (not ?0) and the second argument is ?2.
+
Using secondary indexes (or search by values) in Redis
+
Now that we have understood how to deal with standard zeeSQL databases and how to query them, we can move forward.
+
Now we will introduce zeeSQL secondary indexes, or how to search and project Redis hash data.
+
In Redis, it is common to store values as hash.
+Each hash is univocally identify by a key, and it has one of more field.
+Each field has a value associated with.
+
Redis already provide fast access to elements by their key.
+But it is not possible to search keys from their values.
+
With zeeSQL we can solve this problem, but automatically push the hashes keys and values to a specific table.
+
We will work with a simple telemetric system.
+We have different sensors, each sensor send a timestamp, a temperature value and a humidity value.
+
Saving the data into Redis
+
As first step let's see how we model the data in raw Redis, using Redis Hashes.
The key is in the form sensor:$sendor_id:$timestamp and the other fields contains the telemetries' data.
+
Creating an index
+
We now want to store the information in the sensor in an SQL table, for easier access.
+
127.0.0.1:6379> ZEESQL.INDEX DB NEW TABLE sensors PREFIX sensor:* SCHEMA timestamp INT sensor INT temperature INT humidity INT
+OK
+
+
+
The command creates a new secondary index associate with the table sensors.
+The index will be concerned only for the hashes which key start with the prefix sensor: (* being a catch-all).
+The schema used by the index will have 4 rows, each of them will be an INTEGER, and the name of those columns are respectively timestamp. sensor, temperature and humidity.
+
The creation of an index, imply the creation of the table in the database.
+If the table already exists, it is assumed to contain the correct columns.
+
Reading data from the index
+
As soon as the index is created, the Redis keys space is scanned and the hashes are added to the table.
+Which means that we can immediately query the table.
In this example we added the sensor with ID 3, after the secondary index was already in place.
+
Removing hashes
+
Similarly, if a hash is deleted, the correct row is deleted from the table.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'
+1) 1) "RESULT"
+2) 1) "key"
+3) 1) "TEXT"
+4) 1) "sensor:002:1612733809"
+5) 1) "sensor:002:1612633819"
+6) 1) "sensor:002:1612633809"
+127.0.0.1:6379> DEL sensor:002:1612633809
+(integer) 1
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key from sensors where sensor = 2;'
+1) 1) "RESULT"
+2) 1) "key"
+3) 1) "TEXT"
+4) 1) "sensor:002:1612733809"
+5) 1) "sensor:002:1612633819"
+
+
+
As you can see we delete a hash, and the correct row was deleted also from the table.
+
Updating hashes
+
As with deletion, updating a hash is also reflected on the index table.
+
127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'
+1) 1) "RESULT"
+2) 1) "key"
+ 2) "temperature"
+3) 1) "TEXT"
+ 2) "INT"
+4) 1) "sensor:003:1612633819"
+ 2) (integer) 50
+127.0.0.1:6379> HINCRBY sensor:003:1612633819 temperature 33
+(integer) 83
+127.0.0.1:6379> ZEESQL.EXEC DB COMMAND 'select key, temperature from sensors where sensor = 3;'
+1) 1) "RESULT"
+2) 1) "key"
+ 2) "temperature"
+3) 1) "TEXT"
+ 2) "INT"
+4) 1) "sensor:003:1612633819"
+ 2) (integer) 83
+
+
+
In this case we update a hash, and also the table was updated.
+
Querying the secondary index table
+
The secondary index table, it is just a plain SQL table.
+zeeSQL does not add any index on the table.
+User is free to add the SQL indexes it desired to the secondary index table.
+
Without any index, each query will go through a full table scan.
+
End
+
I hope that this tutorial was helpful :)
+
If you have any question, feel free to contact me simone@redbeardlab.com or on github: RedBeardLab/zeeSQL-doc
+
+
+
+
+
+
+
+
+
+
+
+
Search
+
+
+
+ From here you can search these documents. Enter
+ your search terms below.
+