aboutsummaryrefslogtreecommitdiffstats
path: root/syte
diff options
context:
space:
mode:
authorArnaud Bos <arnaud.bos@aeon-consulting.fr>2012-10-20 02:52:02 +0200
committerArnaud Bos <arnaud.bos@aeon-consulting.fr>2012-10-20 02:52:02 +0200
commit3ffd14fa4da0ca71e1f97a070973e4994bae8f61 (patch)
treedd7fea1a54417fc5df25eb559870c6ad06019ef1 /syte
parent01a8792a5116a305368d9d98fa366923086e0633 (diff)
downloadpelican-themes-3ffd14fa4da0ca71e1f97a070973e4994bae8f61.zip
pelican-themes-3ffd14fa4da0ca71e1f97a070973e4994bae8f61.tar.gz
pelican-themes-3ffd14fa4da0ca71e1f97a070973e4994bae8f61.tar.bz2
add client side social integration, use webassets
Diffstat (limited to 'syte')
-rw-r--r--syte/.gitignore2
-rw-r--r--syte/README.md54
-rw-r--r--syte/compress.py91
-rw-r--r--syte/screenshot.pngbin122896 -> 220501 bytes
-rwxr-xr-xsyte/static/css/less-1.1.5.min.js9
-rw-r--r--syte/static/css/pygments.css63
-rw-r--r--syte/static/css/styles.css1413
-rw-r--r--syte/static/css/styles.min.css1
-rw-r--r--syte/static/imgs/favicon.icobin5277 -> 1406 bytes
-rw-r--r--syte/static/imgs/ico-plusoners copy.pngbin0 -> 398 bytes
-rw-r--r--syte/static/imgs/ico-plusoners.pngbin0 -> 3106 bytes
-rw-r--r--syte/static/imgs/ico-resharers copy.pngbin0 -> 3471 bytes
-rw-r--r--syte/static/imgs/ico-resharers.pngbin0 -> 3223 bytes
-rw-r--r--syte/static/imgs/pic.pngbin16498 -> 0 bytes
-rw-r--r--syte/static/imgs/twitter_pic.jpgbin17144 -> 0 bytes
-rw-r--r--syte/static/js/common.js48
-rw-r--r--syte/static/js/components/base.js32
-rw-r--r--syte/static/js/components/blog-posts.js143
-rw-r--r--syte/static/js/components/dribbble.js53
-rw-r--r--syte/static/js/components/github.js46
-rw-r--r--syte/static/js/components/instagram.js66
-rw-r--r--syte/static/js/components/links.js67
-rw-r--r--syte/static/js/components/mobile.js15
-rw-r--r--syte/static/js/components/twitter.js82
-rw-r--r--syte/static/js/libs/github.js92
-rw-r--r--syte/static/js/libs/google+.js86
-rw-r--r--syte/static/js/libs/instagram.js103
-rw-r--r--syte/static/js/libs/jquery-1.7.2.min.js4
-rw-r--r--syte/static/js/libs/twitter.js112
-rw-r--r--syte/static/js/min/scripts.min.js8
-rw-r--r--syte/static/less/base.less68
-rw-r--r--syte/static/less/buttons.less27
-rw-r--r--syte/static/less/code.less86
-rwxr-xr-xsyte/static/less/less-1.1.5.min.js9
-rw-r--r--syte/static/less/mixins.less250
-rw-r--r--syte/static/less/modals.less67
-rw-r--r--syte/static/less/profiles.less354
-rw-r--r--syte/static/less/reset.less24
-rw-r--r--syte/static/less/styles-mobile.less165
-rw-r--r--syte/static/less/styles.css1221
-rw-r--r--syte/static/less/styles.less253
-rw-r--r--syte/static/less/variables.css0
-rw-r--r--syte/static/less/variables.less6
-rw-r--r--syte/static/styles.less252
-rw-r--r--syte/static/templates/500.html10
-rw-r--r--syte/static/templates/blog-post-audio.html20
-rw-r--r--syte/static/templates/blog-post-link.html17
-rw-r--r--syte/static/templates/blog-post-photo.html27
-rw-r--r--syte/static/templates/blog-post-quote.html22
-rw-r--r--syte/static/templates/blog-post-text.html17
-rw-r--r--syte/static/templates/blog-post-video.html19
-rw-r--r--syte/static/templates/dribbble-view.html46
-rw-r--r--syte/static/templates/github-view.html12
-rw-r--r--syte/static/templates/google-view.html46
-rw-r--r--syte/static/templates/instagram-view-more.html25
-rw-r--r--syte/static/templates/instagram-view.html8
-rw-r--r--syte/static/templates/twitter-view.html4
-rw-r--r--syte/templates/404.html10
-rw-r--r--syte/templates/analytics.html17
-rw-r--r--syte/templates/article.html19
-rw-r--r--syte/templates/base.html96
-rw-r--r--syte/templates/github.html5
-rw-r--r--syte/templates/google_plusone.html3
-rw-r--r--syte/templates/hacker_news.html7
-rw-r--r--syte/templates/index.html2
-rw-r--r--syte/templates/instagram_auth.html21
-rw-r--r--syte/templates/page.html11
-rw-r--r--syte/templates/tag.html4
-rw-r--r--syte/templates/translations.html16
69 files changed, 2157 insertions, 3699 deletions
diff --git a/syte/.gitignore b/syte/.gitignore
deleted file mode 100644
index b948985..0000000
--- a/syte/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*.swp
-*.pyc
diff --git a/syte/README.md b/syte/README.md
index 0d86f68..c9159ec 100644
--- a/syte/README.md
+++ b/syte/README.md
@@ -1,13 +1,59 @@
Syte theme for Pelican
======================
-This theme is based on [Syte][syte] and is for Pelican. Right now, its a bit messy. But I'll clean this up later.
+This theme is based on [Syte][syte] and is for Pelican. It has been instanciated by [samrat][samrat] and continued by [arnaudbos][arnaudbos].
-Anyway, you can [see this theme in action here][samrat].
+You can [see this theme in action here][sneakernet].
-![screenshot](https://github.com/samrat/syte-pelican/raw/master/screenshot.png)
+![screenshot](https://raw.github.com/arnaudbos/pelican-themes/master/syte/screenshot.png)
-To try this out, clone this repo and in your `settings.py`, set `THEME = /path/to/syte-pelican` and `MEDIA_URL= /path/to/syte-pelican/static`.
+Settings
+--------
+
+This theme uses the SOCIAL setting from Pelican and build social integration on top of it with JavaScript calls.
+All these settings are optional, not using them will simply not enable the social integration and the links will remain just links.
+
+#### HTML (OPTIONAL)
+
+* ABOUT = u'Describe yourself or your site here, this will go right under the site name'
+* SITE_DESCRIPTION = u'Used in HTML meta tag for description'
+* SITE_KEYWORDS = u'Used in the HTML meta tag for keywords'
+
+###### Not so optional
+
+Pelican-syte uses the webassets module integrated into Pelican, so you will also need to install it ( `pip install webassets` ) and add the `WEBASSETS = True` setting.
+
+#### Links
+
+* DISPLAY_HOME_ON_MENU = True (If you still want to display a 'Home' link, note that the site name is already a link to the home page)
+* GOOGLE_PLUSONE = True (If you want a Google +1 button aside the Tweet button on each article)
+* CONTACT = u'your@email.com' (Pretty explicit)
+
+#### Social integration
+
+###### Github integration
+
+* GITHUB_INTEGRATION_ENABLED = True (If you want to integrate Github)
+* GITHUB_USERNAME = 'your_username' (Needed if GITHUB_INTEGRATION_ENABLED is set to True)
+
+###### Google integration
+
+* GPLUS_INTEGRATION_ENABLED = True (If you want to integrate Google+)
+* GPLUS_USERNAME = 'your_username|identifier' (Needed if GPLUS_INTEGRATION_ENABLED is set to True)
+* GPLUS_API_ACCESS = 'your_api_access_key' (Needed if GPLUS_INTEGRATION_ENABLED is set to True)
+
+###### Twitter+ integration
+
+* TWITTER_INTEGRATION_ENABLED = True (If you want to integrate Twitter)
+* TWITTER_USERNAME = 'your_username' (Needed if TWITTER_INTEGRATION_ENABLED is set to True)
+
+###### Instagram integration
+
+* INSTAGRAM_INTEGRATION_ENABLED = True (If you want to integrate Instagram)
+* INSTAGRAM_USERNAME = 'your_username' (Needed if INSTAGRAM_INTEGRATION_ENABLED is set to True)
+* INSTAGRAM_API_ACCESS = 'your_api_access_key' (Needed if INSTAGRAM_INTEGRATION_ENABLED is set to True)
[syte]: http://rigoneri.github.com/syte/
[samrat]: http://samrat.github.com
+[arnaudbos]: http://github.com/arnaudbos/
+[sneakernet]: http://www.sneakernet.fr/
diff --git a/syte/compress.py b/syte/compress.py
deleted file mode 100644
index 99fec93..0000000
--- a/syte/compress.py
+++ /dev/null
@@ -1,91 +0,0 @@
-
-import os
-import sys
-import subprocess
-import shlex
-import traceback
-
-path_to_here = os.path.abspath(os.path.dirname(__file__))
-path_before_site = path_to_here[0:path_to_here.rfind('syte')]
-sys.path.append(path_before_site)
-
-#os.environ['DJANGO_SETTINGS_MODULE'] = 'syte.settings'
-
-#from django.conf import settings
-import settings
-
-def compress_statics():
- try:
- #This won't work on windows.
- subprocess.check_call(shlex.split('mkdir -p static/css static/js/min'))
- except Exception:
- print 'Make sure to create "syte > static > css" and "syte > static > js > min" before compressing statics.'
-
- compress_styles()
- compress_js()
-
-def compress_styles():
- less_path = 'static/less/styles.less'
- css_path = 'static/css/'
-
- try:
- subprocess.check_call(shlex.split('lessc {0} {1}styles.min.css -yui-compress'.format(less_path, css_path)))
- print 'CSS Styles Generated: styles.min.css'
- except Exception:
- exc_type, exc_value, exc_traceback = sys.exc_info()
- stack_trace = traceback.format_exception(exc_type, exc_value, exc_traceback)
- print stack_trace
-
-def compress_js():
- js_files = [
- 'libs/jquery.url.js',
- 'libs/require.js',
- 'libs/handlebars.js',
- 'libs/moment.min.js',
- 'libs/bootstrap-modal.js',
- 'libs/spin.min.js',
- 'libs/prettify.js',
-
- 'components/base.js',
- 'components/mobile.js',
- 'components/blog-posts.js',
- 'components/links.js',
- ]
-
- if settings.TWITTER_INTEGRATION_ENABLED:
- js_files.append('components/twitter.js')
-
- if settings.GITHUB_INTEGRATION_ENABLED:
- js_files.append('components/github.js')
-
- if settings.DRIBBBLE_INTEGRATION_ENABLED:
- js_files.append('components/dribbble.js')
-
- if settings.INSTAGRAM_INTEGRATION_ENABLED:
- js_files.append('components/instagram.js')
-
- if settings.DISQUS_INTEGRATION_ENABLED:
- js_files.append('components/disqus.js')
-
- combined = ''
- for js in js_files:
- f = open('static/js/' + js, 'r')
- combined += f.read()
- f.close()
-
- f = open('static/js/combined.js', 'w')
- f.write(combined)
- f.close()
-
- try:
- subprocess.check_call(shlex.split('uglifyjs -o static/js/min/scripts.min.js static/js/combined.js'))
- subprocess.check_call(shlex.split('rm -f static/js/combined.js'))
- print 'JavaScript Combined and Minified: scripts.min.js'
- except Exception:
- exc_type, exc_value, exc_traceback = sys.exc_info()
- stack_trace = traceback.format_exception(exc_type, exc_value, exc_traceback)
- print stack_trace
-
-if __name__ == "__main__":
- compress_statics()
- sys.exit()
diff --git a/syte/screenshot.png b/syte/screenshot.png
index 51eb2cf..77ab905 100644
--- a/syte/screenshot.png
+++ b/syte/screenshot.png
Binary files differ
diff --git a/syte/static/css/less-1.1.5.min.js b/syte/static/css/less-1.1.5.min.js
deleted file mode 100755
index 49949fb..0000000
--- a/syte/static/css/less-1.1.5.min.js
+++ /dev/null
@@ -1,9 +0,0 @@
-//
-// LESS - Leaner CSS v1.1.5
-// http://lesscss.org
-//
-// Copyright (c) 2009-2011, Alexis Sellier
-// Licensed under the Apache 2.0 License.
-//
-(function(a,b){function c(b){return a.less[b.split("/")[1]]}function l(){var a=document.getElementsByTagName("style");for(var b=0;b<a.length;b++)a[b].type.match(j)&&(new d.Parser).parse(a[b].innerHTML||"",function(c,d){var e=d.toCSS(),f=a[b];try{f.innerHTML=e}catch(g){f.styleSheets.cssText=e}f.type="text/css"})}function m(a,b){for(var c=0;c<d.sheets.length;c++)n(d.sheets[c],a,b,d.sheets.length-(c+1))}function n(b,c,e,f){var h=a.location.href.replace(/[#?].*$/,""),i=b.href.replace(/\?.*$/,""),j=g&&g.getItem(i),k=g&&g.getItem(i+":timestamp"),l={css:j,timestamp:k};/^(https?|file):/.test(i)||(i.charAt(0)=="/"?i=a.location.protocol+"//"+a.location.host+i:i=h.slice(0,h.lastIndexOf("/")+1)+i),q(b.href,b.type,function(a,g){if(!e&&l&&g&&(new Date(g)).valueOf()===(new Date(l.timestamp)).valueOf())p(l.css,b),c(null,b,{local:!0,remaining:f});else try{(new d.Parser({optimization:d.optimization,paths:[i.replace(/[\w\.-]+$/,"")],mime:b.type})).parse(a,function(a,d){if(a)return u(a,i);try{c(d,b,{local:!1,lastModified:g,remaining:f}),s(document.getElementById("less-error-message:"+o(i)))}catch(a){u(a,i)}})}catch(h){u(h,i)}},function(a,b){throw new Error("Couldn't load "+b+" ("+a+")")})}function o(a){return a.replace(/^[a-z]+:\/\/?[^\/]+/,"").replace(/^\//,"").replace(/\?.*$/,"").replace(/\.[^\.\/]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function p(a,b,c){var d,e=b.href?b.href.replace(/\?.*$/,""):"",f="less:"+(b.title||o(e));(d=document.getElementById(f))===null&&(d=document.createElement("style"),d.type="text/css",d.media=b.media||"screen",d.id=f,document.getElementsByTagName("head")[0].appendChild(d));if(d.styleSheet)try{d.styleSheet.cssText=a}catch(h){throw new Error("Couldn't reassign styleSheet.cssText.")}else(function(a){d.childNodes.length>0?d.firstChild.nodeValue!==a.nodeValue&&d.replaceChild(a,d.firstChild):d.appendChild(a)})(document.createTextNode(a));c&&g&&(t("saving "+e+" to cache."),g.setItem(e,a),g.setItem(e+":timestamp",c))}function q(a,b,c,e){function i(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):typeof d=="function"&&d(b.status,a)}var g=r(),h=f?!1:d.async;typeof g.overrideMimeType=="function"&&g.overrideMimeType("text/css"),g.open("GET",a,h),g.setRequestHeader("Accept",b||"text/x-less, text/css; q=0.9, */*; q=0.5"),g.send(null),f?g.status===0?c(g.responseText):e(g.status,a):h?g.onreadystatechange=function(){g.readyState==4&&i(g,c,e)}:i(g,c,e)}function r(){if(a.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(b){return t("browser doesn't support AJAX."),null}}function s(a){return a&&a.parentNode.removeChild(a)}function t(a){d.env=="development"&&typeof console!="undefined"&&console.log("less: "+a)}function u(a,b){var c="less-error-message:"+o(b),e=["<ul>",'<li><label>[-1]</label><pre class="ctx">{0}</pre></li>',"<li><label>[0]</label><pre>{current}</pre></li>",'<li><label>[1]</label><pre class="ctx">{2}</pre></li>',"</ul>"].join("\n"),f=document.createElement("div"),g,h;f.id=c,f.className="less-error-message",h="<h3>"+(a.message||"There is an error in your .less file")+"</h3>"+'<p><a href="'+b+'">'+b+"</a> ",a.extract&&(h+="on line "+a.line+", column "+(a.column+1)+":</p>"+e.replace(/\[(-?\d)\]/g,function(b,c){return parseInt(a.line)+parseInt(c)||""}).replace(/\{(\d)\}/g,function(b,c){return a.extract[parseInt(c)]||""}).replace(/\{current\}/,a.extract[1].slice(0,a.column)+'<span class="error">'+a.extract[1].slice(a.column)+"</span>")),f.innerHTML=h,p([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #ee4444;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.ctx {","color: #dd4444;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),f.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),d.env=="development"&&(g=setInterval(function(){document.body&&(document.getElementById(c)?document.body.replaceChild(f,document.getElementById(c)):document.body.insertBefore(f,document.body.firstChild),clearInterval(g))},10))}Array.isArray||(Array.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"||a instanceof Array}),Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c=this.length>>>0;for(var d=0;d<c;d++)d in this&&a.call(b,this[d],d,this)}),Array.prototype.map||(Array.prototype.map=function(a){var b=this.length>>>0,c=new Array(b),d=arguments[1];for(var e=0;e<b;e++)e in this&&(c[e]=a.call(d,this[e],e,this));return c}),Array.prototype.filter||(Array.prototype.filter=function(a){var b=[],c=arguments[1];for(var d=0;d<this.length;d++)a.call(c,this[d])&&b.push(this[d]);return b}),Array.prototype.reduce||(Array.prototype.reduce=function(a){var b=this.length>>>0,c=0;if(b===0&&arguments.length===1)throw new TypeError;if(arguments.length>=2)var d=arguments[1];else do{if(c in this){d=this[c++];break}if(++c>=b)throw new TypeError}while(!0);for(;c<b;c++)c in this&&(d=a.call(null,d,this[c],c,this));return d}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=arguments[1]||0;if(!b)return-1;if(c>=b)return-1;c<0&&(c+=b);for(;c<b;c++){if(!Object.prototype.hasOwnProperty.call(this,c))continue;if(a===this[c])return c}return-1}),Object.keys||(Object.keys=function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}),String.prototype.trim||(String.prototype.trim=function(){return String(this).replace(/^\s\s*/,"").replace(/\s\s*$/,"")});var d,e;typeof environment=="object"&&{}.toString.call(environment)==="[object Environment]"?(d={},e=d.tree={},d.mode="rhino"):typeof a=="undefined"?(d=exports,e=c("./tree"),d.mode="node"):(typeof a.less=="undefined"&&(a.less={}),d=a.less,e=a.less.tree={},d.mode="browser"),d.Parser=function(a){function p(){g=j[f],h=c,k=c}function q(){j[f]=g,c=h,k=c}function r(){c>k&&(j[f]=j[f].slice(c-k),k=c)}function s(a){var d,e,g,h,i,m,n,o;if(a instanceof Function)return a.call(l.parsers);if(typeof a=="string")d=b.charAt(c)===a?a:null,g=1,r();else{r();if(d=a.exec(j[f]))g=d[0].length;else return null}if(d){o=c+=g,m=c+j[f].length-g;while(c<m){h=b.charCodeAt(c);if(h!==32&&h!==10&&h!==9)break;c++}return j[f]=j[f].slice(g+(c-o)),k=c,j[f].length===0&&f<j.length-1&&f++,typeof d=="string"?d:d.length===1?d[0]:d}}function t(a){return typeof a=="string"?b.charAt(c)===a:a.test(j[f])?!0:!1}var b,c,f,g,h,i,j,k,l,m=this,n=function(){},o=this.imports={paths:a&&a.paths||[],queue:[],files:{},mime:a&&a.mime,push:function(b,c){var e=this;this.queue.push(b),d.Parser.importer(b,this.paths,function(a){e.queue.splice(e.queue.indexOf(b),1),e.files[b]=a,c(a),e.queue.length===0&&n()},a)}};return this.env=a=a||{},this.optimization="optimization"in this.env?this.env.optimization:1,this.env.filename=this.env.filename||null,l={imports:o,parse:function(d,g){var h,l,m,o,p,q,r=[],t,u=null;c=f=k=i=0,j=[],b=d.replace(/\r\n/g,"\n"),j=function(c){var d=0,e=/[^"'`\{\}\/\(\)]+/g,f=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,g=0,h,i=c[0],j,k;for(var l=0,m,n;l<b.length;l++){e.lastIndex=l,(h=e.exec(b))&&h.index===l&&(l+=h[0].length,i.push(h[0])),m=b.charAt(l),f.lastIndex=l,!k&&!j&&m==="/"&&(n=b.charAt(l+1),(n==="/"||n==="*")&&(h=f.exec(b))&&h.index===l&&(l+=h[0].length,i.push(h[0]),m=b.charAt(l)));if(m==="{"&&!k&&!j)g++,i.push(m);else if(m==="}"&&!k&&!j)g--,i.push(m),c[++d]=i=[];else if(m==="("&&!k&&!j)i.push(m),j=!0;else if(m===")"&&!k&&j)i.push(m),j=!1;else{if(m==='"'||m==="'"||m==="`")k?k=k===m?!1:k:k=m;i.push(m)}}if(g>0)throw{type:"Syntax",message:"Missing closing `}`",filename:a.filename};return c.map(function(a){return a.join("")})}([[]]),h=new e.Ruleset([],s(this.parsers.primary)),h.root=!0,h.toCSS=function(c){var d,f,g;return function(g,h){function n(a){return a?(b.slice(0,a).match(/\n/g)||"").length:null}var i=[];g=g||{},typeof h=="object"&&!Array.isArray(h)&&(h=Object.keys(h).map(function(a){var b=h[a];return b instanceof e.Value||(b instanceof e.Expression||(b=new e.Expression([b])),b=new e.Value([b])),new e.Rule("@"+a,b,!1,0)}),i=[new e.Ruleset(null,h)]);try{var j=c.call(this,{frames:i}).toCSS([],{compress:g.compress||!1})}catch(k){f=b.split("\n"),d=n(k.index);for(var l=k.index,m=-1;l>=0&&b.charAt(l)!=="\n";l--)m++;throw{type:k.type,message:k.message,filename:a.filename,index:k.index,line:typeof d=="number"?d+1:null,callLine:k.call&&n(k.call)+1,callExtract:f[n(k.call)],stack:k.stack,column:m,extract:[f[d-1],f[d],f[d+1]]}}return g.compress?j.replace(/(\s)+/g,"$1"):j}}(h.eval);if(c<b.length-1){c=i,q=b.split("\n"),p=(b.slice(0,c).match(/\n/g)||"").length+1;for(var v=c,w=-1;v>=0&&b.charAt(v)!=="\n";v--)w++;u={name:"ParseError",message:"Syntax Error on line "+p,index:c,filename:a.filename,line:p,column:w,extract:[q[p-2],q[p-1],q[p]]}}this.imports.queue.length>0?n=function(){g(u,h)}:g(u,h)},parsers:{primary:function(){var a,b=[];while((a=s(this.mixin.definition)||s(this.rule)||s(this.ruleset)||s(this.mixin.call)||s(this.comment)||s(this.directive))||s(/^[\s\n]+/))a&&b.push(a);return b},comment:function(){var a;if(b.charAt(c)!=="/")return;if(b.charAt(c+1)==="/")return new e.Comment(s(/^\/\/.*/),!0);if(a=s(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))return new e.Comment(a)},entities:{quoted:function(){var a,d=c,f;b.charAt(d)==="~"&&(d++,f=!0);if(b.charAt(d)!=='"'&&b.charAt(d)!=="'")return;f&&s("~");if(a=s(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))return new e.Quoted(a[0],a[1]||a[2],f)},keyword:function(){var a;if(a=s(/^[_A-Za-z-][_A-Za-z0-9-]*/))return new e.Keyword(a)},call:function(){var a,b,d=c;if(!(a=/^([\w-]+|%)\(/.exec(j[f])))return;a=a[1].toLowerCase();if(a==="url")return null;c+=a.length;if(a==="alpha")return s(this.alpha);s("("),b=s(this.entities.arguments);if(!s(")"))return;if(a)return new e.Call(a,b,d)},arguments:function(){var a=[],b;while(b=s(this.expression)){a.push(b);if(!s(","))break}return a},literal:function(){return s(this.entities.dimension)||s(this.entities.color)||s(this.entities.quoted)},url:function(){var a;if(b.charAt(c)!=="u"||!s(/^url\(/))return;a=s(this.entities.quoted)||s(this.entities.variable)||s(this.entities.dataURI)||s(/^[-\w%@$\/.&=:;#+?~]+/)||"";if(!s(")"))throw new Error("missing closing ) for url()");return new e.URL(a.value||a.data||a instanceof e.Variable?a:new e.Anonymous(a),o.paths)},dataURI:function(){var a;if(s(/^data:/)){a={},a.mime=s(/^[^\/]+\/[^,;)]+/)||"",a.charset=s(/^;\s*charset=[^,;)]+/)||"",a.base64=s(/^;\s*base64/)||"",a.data=s(/^,\s*[^)]+/);if(a.data)return a}},variable:function(){var a,d=c;if(b.charAt(c)==="@"&&(a=s(/^@@?[\w-]+/)))return new e.Variable(a,d)},color:function(){var a;if(b.charAt(c)==="#"&&(a=s(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/)))return new e.Color(a[1])},dimension:function(){var a,d=b.charCodeAt(c);if(d>57||d<45||d===47)return;if(a=s(/^(-?\d*\.?\d+)(px|%|em|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/))return new e.Dimension(a[1],a[2])},javascript:function(){var a,d=c,f;b.charAt(d)==="~"&&(d++,f=!0);if(b.charAt(d)!=="`")return;f&&s("~");if(a=s(/^`([^`]*)`/))return new e.JavaScript(a[1],c,f)}},variable:function(){var a;if(b.charAt(c)==="@"&&(a=s(/^(@[\w-]+)\s*:/)))return a[1]},shorthand:function(){var a,b;if(!t(/^[@\w.%-]+\/[@\w.-]+/))return;if((a=s(this.entity))&&s("/")&&(b=s(this.entity)))return new e.Shorthand(a,b)},mixin:{call:function(){var a=[],d,f,g,h=c,i=b.charAt(c);if(i!=="."&&i!=="#")return;while(d=s(/^[#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/))a.push(new e.Element(f,d,c)),f=s(">");s("(")&&(g=s(this.entities.arguments))&&s(")");if(a.length>0&&(s(";")||t("}")))return new e.mixin.Call(a,g,h)},definition:function(){var a,d=[],f,g,h,i;if(b.charAt(c)!=="."&&b.charAt(c)!=="#"||t(/^[^{]*(;|})/))return;if(f=s(/^([#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+)\s*\(/)){a=f[1];while(h=s(this.entities.variable)||s(this.entities.literal)||s(this.entities.keyword)){if(h instanceof e.Variable)if(s(":"))if(i=s(this.expression))d.push({name:h.name,value:i});else throw new Error("Expected value");else d.push({name:h.name});else d.push({value:h});if(!s(","))break}if(!s(")"))throw new Error("Expected )");g=s(this.block);if(g)return new e.mixin.Definition(a,d,g)}}},entity:function(){return s(this.entities.literal)||s(this.entities.variable)||s(this.entities.url)||s(this.entities.call)||s(this.entities.keyword)||s(this.entities.javascript)||s(this.comment)},end:function(){return s(";")||t("}")},alpha:function(){var a;if(!s(/^\(opacity=/i))return;if(a=s(/^\d+/)||s(this.entities.variable)){if(!s(")"))throw new Error("missing closing ) for alpha()");return new e.Alpha(a)}},element:function(){var a,b,d;d=s(this.combinator),a=s(/^(?:\d+\.\d+|\d+)%/)||s(/^(?:[.#]?|:*)(?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/)||s("*")||s(this.attribute)||s(/^\([^)@]+\)/);if(a)return new e.Element(d,a,c);if(d.value&&d.value.charAt(0)==="&")return new e.Element(d,null,c)},combinator:function(){var a,d=b.charAt(c);if(d===">"||d==="+"||d==="~"){c++;while(b.charAt(c)===" ")c++;return new e.Combinator(d)}if(d==="&"){a="&",c++,b.charAt(c)===" "&&(a="& ");while(b.charAt(c)===" ")c++;return new e.Combinator(a)}if(d===":"&&b.charAt(c+1)===":"){c+=2;while(b.charAt(c)===" ")c++;return new e.Combinator("::")}return b.charAt(c-1)===" "?new e.Combinator(" "):new e.Combinator(null)},selector:function(){var a,d,f=[],g,h;while(d=s(this.element)){g=b.charAt(c),f.push(d);if(g==="{"||g==="}"||g===";"||g===",")break}if(f.length>0)return new e.Selector(f)},tag:function(){return s(/^[a-zA-Z][a-zA-Z-]*[0-9]?/)||s("*")},attribute:function(){var a="",b,c,d;if(!s("["))return;if(b=s(/^[a-zA-Z-]+/)||s(this.entities.quoted))(d=s(/^[|~*$^]?=/))&&(c=s(this.entities.quoted)||s(/^[\w-]+/))?a=[b,d,c.toCSS?c.toCSS():c].join(""):a=b;if(!s("]"))return;if(a)return"["+a+"]"},block:function(){var a;if(s("{")&&(a=s(this.primary))&&s("}"))return a},ruleset:function(){var a=[],b,d,f;p();while(b=s(this.selector)){a.push(b),s(this.comment);if(!s(","))break;s(this.comment)}if(a.length>0&&(d=s(this.block)))return new e.Ruleset(a,d);i=c,q()},rule:function(){var a,d,g=b.charAt(c),k,l;p();if(g==="."||g==="#"||g==="&")return;if(a=s(this.variable)||s(this.property)){a.charAt(0)!="@"&&(l=/^([^@+\/'"*`(;{}-]*);/.exec(j[f]))?(c+=l[0].length-1,d=new e.Anonymous(l[1])):a==="font"?d=s(this.font):d=s(this.value),k=s(this.important);if(d&&s(this.end))return new e.Rule(a,d,k,h);i=c,q()}},"import":function(){var a;if(s(/^@import\s+/)&&(a=s(this.entities.quoted)||s(this.entities.url))&&s(";"))return new e.Import(a,o)},directive:function(){var a,d,f,g;if(b.charAt(c)!=="@")return;if(d=s(this["import"]))return d;if(a=s(/^@media|@page/)||s(/^@(?:-webkit-|-moz-)?keyframes/)){g=(s(/^[^{]+/)||"").trim();if(f=s(this.block))return new e.Directive(a+" "+g,f)}else if(a=s(/^@[-a-z]+/))if(a==="@font-face"){if(f=s(this.block))return new e.Directive(a,f)}else if((d=s(this.entity))&&s(";"))return new e.Directive(a,d)},font:function(){var a=[],b=[],c,d,f,g;while(g=s(this.shorthand)||s(this.entity))b.push(g);a.push(new e.Expression(b));if(s(","))while(g=s(this.expression)){a.push(g);if(!s(","))break}return new e.Value(a)},value:function(){var a,b=[],c;while(a=s(this.expression)){b.push(a);if(!s(","))break}if(b.length>0)return new e.Value(b)},important:function(){if(b.charAt(c)==="!")return s(/^! *important/)},sub:function(){var a;if(s("(")&&(a=s(this.expression))&&s(")"))return a},multiplication:function(){var a,b,c,d;if(a=s(this.operand)){while((c=s("/")||s("*"))&&(b=s(this.operand)))d=new e.Operation(c,[d||a,b]);return d||a}},addition:function(){var a,d,f,g;if(a=s(this.multiplication)){while((f=s(/^[-+]\s+/)||b.charAt(c-1)!=" "&&(s("+")||s("-")))&&(d=s(this.multiplication)))g=new e.Operation(f,[g||a,d]);return g||a}},operand:function(){var a,d=b.charAt(c+1);b.charAt(c)==="-"&&(d==="@"||d==="(")&&(a=s("-"));var f=s(this.sub)||s(this.entities.dimension)||s(this.entities.color)||s(this.entities.variable)||s(this.entities.call);return a?new e.Operation("*",[new e.Dimension(-1),f]):f},expression:function(){var a,b,c=[],d;while(a=s(this.addition)||s(this.entity))c.push(a);if(c.length>0)return new e.Expression(c)},property:function(){var a;if(a=s(/^(\*?-?[-a-z_0-9]+)\s*:/))return a[1]}}}};if(d.mode==="browser"||d.mode==="rhino")d.Parser.importer=function(a,b,c,d){a.charAt(0)!=="/"&&b.length>0&&(a=b[0]+a),n({href:a,title:a,type:d.mime},c,!0)};(function(a){function b(b){return a.functions.hsla(b.h,b.s,b.l,b.a)}function c(b){if(b instanceof a.Dimension)return parseFloat(b.unit=="%"?b.value/100:b.value);if(typeof b=="number")return b;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function d(a){return Math.min(1,Math.max(0,a))}a.functions={rgb:function(a,b,c){return this.rgba(a,b,c,1)},rgba:function(b,d,e,f){var g=[b,d,e].map(function(a){return c(a)}),f=c(f);return new a.Color(g,f)},hsl:function(a,b,c){return this.hsla(a,b,c,1)},hsla:function(a,b,d,e){function h(a){return a=a<0?a+1:a>1?a-1:a,a*6<1?g+(f-g)*a*6:a*2<1?f:a*3<2?g+(f-g)*(2/3-a)*6:g}a=c(a)%360/360,b=c(b),d=c(d),e=c(e);var f=d<=.5?d*(b+1):d+b-d*b,g=d*2-f;return this.rgba(h(a+1/3)*255,h(a)*255,h(a-1/3)*255,e)},hue:function(b){return new a.Dimension(Math.round(b.toHSL().h))},saturation:function(b){return new a.Dimension(Math.round(b.toHSL().s*100),"%")},lightness:function(b){return new a.Dimension(Math.round(b.toHSL().l*100),"%")},alpha:function(b){return new a.Dimension(b.toHSL().a)},saturate:function(a,c){var e=a.toHSL();return e.s+=c.value/100,e.s=d(e.s),b(e)},desaturate:function(a,c){var e=a.toHSL();return e.s-=c.value/100,e.s=d(e.s),b(e)},lighten:function(a,c){var e=a.toHSL();return e.l+=c.value/100,e.l=d(e.l),b(e)},darken:function(a,c){var e=a.toHSL();return e.l-=c.value/100,e.l=d(e.l),b(e)},fadein:function(a,c){var e=a.toHSL();return e.a+=c.value/100,e.a=d(e.a),b(e)},fadeout:function(a,c){var e=a.toHSL();return e.a-=c.value/100,e.a=d(e.a),b(e)},fade:function(a,c){var e=a.toHSL();return e.a=c.value/100,e.a=d(e.a),b(e)},spin:function(a,c){var d=a.toHSL(),e=(d.h+c.value)%360;return d.h=e<0?360+e:e,b(d)},mix:function(b,c,d){var e=d.value/100,f=e*2-1,g=b.toHSL().a-c.toHSL().a,h=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,i=1-h,j=[b.rgb[0]*h+c.rgb[0]*i,b.rgb[1]*h+c.rgb[1]*i,b.rgb[2]*h+c.rgb[2]*i],k=b.alpha*e+c.alpha*(1-e);return new a.Color(j,k)},greyscale:function(b){return this.desaturate(b,new a.Dimension(100))},e:function(b){return new a.Anonymous(b instanceof a.JavaScript?b.evaluated:b)},escape:function(b){return new a.Anonymous(encodeURI(b.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},"%":function(b){var c=Array.prototype.slice.call(arguments,1),d=b.value;for(var e=0;e<c.length;e++)d=d.replace(/%[sda]/i,function(a){var b=a.match(/s/i)?c[e].value:c[e].toCSS();return a.match(/[A-Z]$/)?encodeURIComponent(b):b});return d=d.replace(/%%/g,"%"),new a.Quoted('"'+d+'"',d)},round:function(b){if(b instanceof a.Dimension)return new a.Dimension(Math.round(c(b)),b.unit);if(typeof b=="number")return Math.round(b);throw{error:"RuntimeError",message:"math functions take numbers as parameters"}},argb:function(b){return new a.Anonymous(b.toARGB())}}})(c("./tree")),function(a){a.Alpha=function(a){this.value=a},a.Alpha.prototype={toCSS:function(){return"alpha(opacity="+(this.value.toCSS?this.value.toCSS():this.value)+")"},eval:function(a){return this.value.eval&&(this.value=this.value.eval(a)),this}}}(c("../tree")),function(a){a.Anonymous=function(a){this.value=a.value||a},a.Anonymous.prototype={toCSS:function(){return this.value},eval:function(){return this}}}(c("../tree")),function(a){a.Call=function(a,b,c){this.name=a,this.args=b,this.index=c},a.Call.prototype={eval:function(b){var c=this.args.map(function(a){return a.eval(b)});if(!(this.name in a.functions))return new a.Anonymous(this.name+"("+c.map(function(a){return a.toCSS()}).join(", ")+")");try{return a.functions[this.name].apply(a.functions,c)}catch(d){throw{message:"error evaluating function `"+this.name+"`",index:this.index}}},toCSS:function(a){return this.eval(a).toCSS()}}}(c("../tree")),function(a){a.Color=function(a,b){Array.isArray(a)?this.rgb=a:a.length==6?this.rgb=a.match(/.{2}/g).map(function(a){return parseInt(a,16)}):this.rgb=a.split("").map(function(a){return parseInt(a+a,16)}),this.alpha=typeof b=="number"?b:1},a.Color.prototype={eval:function(){return this},toCSS:function(){return this.alpha<1?"rgba("+this.rgb.map(function(a){return Math.round(a)}).concat(this.alpha).join(", ")+")":"#"+this.rgb.map(function(a){return a=Math.round(a),a=(a>255?255:a<0?0:a).toString(16),a.length===1?"0"+a:a}).join("")},operate:function(b,c){var d=[];c instanceof a.Color||(c=c.toColor());for(var e=0;e<3;e++)d[e]=a.operate(b,this.rgb[e],c.rgb[e]);return new a.Color(d,this.alpha+c.alpha)},toHSL:function(){var a=this.rgb[0]/255,b=this.rgb[1]/255,c=this.rgb[2]/255,d=this.alpha,e=Math.max(a,b,c),f=Math.min(a,b,c),g,h,i=(e+f)/2,j=e-f;if(e===f)g=h=0;else{h=i>.5?j/(2-e-f):j/(e+f);switch(e){case a:g=(b-c)/j+(b<c?6:0);break;case b:g=(c-a)/j+2;break;case c:g=(a-b)/j+4}g/=6}return{h:g*360,s:h,l:i,a:d}},toARGB:function(){var a=[Math.round(this.alpha*255)].concat(this.rgb);return"#"+a.map(function(a){return a=Math.round(a),a=(a>255?255:a<0?0:a).toString(16),a.length===1?"0"+a:a}).join("")}}}(c("../tree")),function(a){a.Comment=function(a,b){this.value=a,this.silent=!!b},a.Comment.prototype={toCSS:function(a){return a.compress?"":this.value},eval:function(){return this}}}(c("../tree")),function(a){a.Dimension=function(a,b){this.value=parseFloat(a),this.unit=b||null},a.Dimension.prototype={eval:function(){return this},toColor:function(){return new a.Color([this.value,this.value,this.value])},toCSS:function(){var a=this.value+this.unit;return a},operate:function(b,c){return new a.Dimension(a.operate(b,this.value,c.value),this.unit||c.unit)}}}(c("../tree")),function(a){a.Directive=function(b,c){this.name=b,Array.isArray(c)?this.ruleset=new a.Ruleset([],c):this.value=c},a.Directive.prototype={toCSS:function(a,b){return this.ruleset?(this.ruleset.root=!0,this.name+(b.compress?"{":" {\n ")+this.ruleset.toCSS(a,b).trim().replace(/\n/g,"\n ")+(b.compress?"}":"\n}\n")):this.name+" "+this.value.toCSS()+";\n"},eval:function(a){return a.frames.unshift(this),this.ruleset=this.ruleset&&this.ruleset.eval(a),a.frames.shift(),this},variable:function(b){return a.Ruleset.prototype.variable.call(this.ruleset,b)},find:function(){return a.Ruleset.prototype.find.apply(this.ruleset,arguments)},rulesets:function(){return a.Ruleset.prototype.rulesets.apply(this.ruleset)}}}(c("../tree")),function(a){a.Element=function(b,c,d){this.combinator=b instanceof a.Combinator?b:new a.Combinator(b),this.value=c?c.trim():"",this.index=d},a.Element.prototype.toCSS=function(a){return this.combinator.toCSS(a||{})+this.value},a.Combinator=function(a){a===" "?this.value=" ":a==="& "?this.value="& ":this.value=a?a.trim():""},a.Combinator.prototype.toCSS=function(a){return{"":""," ":" ","&":"","& ":" ",":":" :","::":"::","+":a.compress?"+":" + ","~":a.compress?"~":" ~ ",">":a.compress?">":" > "}[this.value]}}(c("../tree")),function(a){a.Expression=function(a){this.value=a},a.Expression.prototype={eval:function(b){return this.value.length>1?new a.Expression(this.value.map(function(a){return a.eval(b)})):this.value.length===1?this.value[0].eval(b):this},toCSS:function(a){return this.value.map(function(b){return b.toCSS(a)}).join(" ")}}}(c("../tree")),function(a){a.Import=function(b,c){var d=this;this._path=b,b instanceof a.Quoted?this.path=/\.(le?|c)ss(\?.*)?$/.test(b.value)?b.value:b.value+".less":this.path=b.value.value||b.value,this.css=/css(\?.*)?$/.test(this.path),this.css||c.push(this.path,function(a){if(!a)throw new Error("Error parsing "+d.path);d.root=a})},a.Import.prototype={toCSS:function(){return this.css?"@import "+this._path.toCSS()+";\n":""},eval:function(b){var c;if(this.css)return this;c=new a.Ruleset(null,this.root.rules.slice(0));for(var d=0;d<c.rules.length;d++)c.rules[d]instanceof a.Import&&Array.prototype.splice.apply(c.rules,[d,1].concat(c.rules[d].eval(b)));return c.rules}}}(c("../tree")),function(a){a.JavaScript=function(a,b,c){this.escaped=c,this.expression=a,this.index=b},a.JavaScript.prototype={eval:function(b){var c,d=this,e={},f=this.expression.replace(/@\{([\w-]+)\}/g,function(c,e){return a.jsify((new a.Variable("@"+e,d.index)).eval(b))});try{f=new Function("return ("+f+")")}catch(g){throw{message:"JavaScript evaluation error: `"+f+"`",index:this.index}}for(var h in b.frames[0].variables())e[h.slice(1)]={value:b.frames[0].variables()[h].value,toJS:function(){return this.value.eval(b).toCSS()}};try{c=f.call(e)}catch(g){throw{message:"JavaScript evaluation error: '"+g.name+": "+g.message+"'",index:this.index}}return typeof c=="string"?new a.Quoted('"'+c+'"',c,this.escaped,this.index):Array.isArray(c)?new a.Anonymous(c.join(", ")):new a.Anonymous(c)}}}(c("../tree")),function(a){a.Keyword=function(a){this.value=a},a.Keyword.prototype={eval:function(){return this},toCSS:function(){return this.value}}}(c("../tree")),function(a){a.mixin={},a.mixin.Call=function(b,c,d){this.selector=new a.Selector(b),this.arguments=c,this.index=d},a.mixin.Call.prototype={eval:function(a){var b,c,d=[],e=!1;for(var f=0;f<a.frames.length;f++)if((b=a.frames[f].find(this.selector)).length>0){c=this.arguments&&this.arguments.map(function(b){return b.eval(a)});for(var g=0;g<b.length;g++)if(b[g].match(c,a))try{Array.prototype.push.apply(d,b[g].eval(a,this.arguments).rules),e=!0}catch(h){throw{message:h.message,index:h.index,stack:h.stack,call:this.index}}if(e)return d;throw{message:"No matching definition was found for `"+this.selector.toCSS().trim()+"("+this.arguments.map(function(a){return a.toCSS()}).join(", ")+")`",index:this.index}}throw{message:this.selector.toCSS().trim()+" is undefined",index:this.index}}},a.mixin.Definition=function(b,c,d){this.name=b,this.selectors=[new a.Selector([new a.Element(null,b)])],this.params=c,this.arity=c.length,this.rules=d,this._lookups={},this.required=c.reduce(function(a,b){return!b.name||b.name&&!b.value?a+1:a},0),this.parent=a.Ruleset.prototype,this.frames=[]},a.mixin.Definition.prototype={toCSS:function(){return""},variable:function(a){return this.parent.variable.call(this,a)},variables:function(){return this.parent.variables.call(this)},find:function(){return this.parent.find.apply(this,arguments)},rulesets:function(){return this.parent.rulesets.apply(this)},eval:function(b,c){var d=new a.Ruleset(null,[]),e,f=[];for(var g=0,h;g<this.params.length;g++)if(this.params[g].name)if(h=c&&c[g]||this.params[g].value)d.rules.unshift(new a.Rule(this.params[g].name,h.eval(b)));else throw{message:"wrong number of arguments for "+this.name+" ("+c.length+" for "+this.arity+")"};for(var g=0;g<Math.max(this.params.length,c&&c.length);g++)f.push(c[g]||this.params[g].value);return d.rules.unshift(new a.Rule("@arguments",(new a.Expression(f)).eval(b))),(new a.Ruleset(null,this.rules.slice(0))).eval({frames:[this,d].concat(this.frames,b.frames)})},match:function(a,b){var c=a&&a.length||0,d;if(c<this.required)return!1;if(this.required>0&&c>this.params.length)return!1;d=Math.min(c,this.arity);for(var e=0;e<d;e++)if(!this.params[e].name&&a[e].eval(b).toCSS()!=this.params[e].value.eval(b).toCSS())return!1;return!0}}}(c("../tree")),function(a){a.Operation=function(a,b){this.op=a.trim(),this.operands=b},a.Operation.prototype.eval=function(b){var c=this.operands[0].eval(b),d=this.operands[1].eval(b),e;if(c instanceof a.Dimension&&d instanceof a.Color)if(this.op==="*"||this.op==="+")e=d,d=c,c=e;else throw{name:"OperationError",message:"Can't substract or divide a color from a number"};return c.operate(this.op,d)},a.operate=function(a,b,c){switch(a){case"+":return b+c;case"-":return b-c;case"*":return b*c;case"/":return b/c}}}(c("../tree")),function(a){a.Quoted=function(a,b,c,d){this.escaped=c,this.value=b||"",this.quote=a.charAt(0),this.index=d},a.Quoted.prototype={toCSS:function(){return this.escaped?this.value:this.quote+this.value+this.quote},eval:function(b){var c=this,d=this.value.replace(/`([^`]+)`/g,function(d,e){return(new a.JavaScript(e,c.index,!0)).eval(b).value}).replace(/@\{([\w-]+)\}/g,function(d,e){var f=(new a.Variable("@"+e,c.index)).eval(b);return f.value||f.toCSS()});return new a.Quoted(this.quote+d+this.quote,d,this.escaped,this.index)}}}(c("../tree")),function(a){a.Rule=function(b,c,d,e){this.name=b,this.value=c instanceof a.Value?c:new a.Value([c]),this.important=d?" "+d.trim():"",this.index=e,b.charAt(0)==="@"?this.variable=!0:this.variable=!1},a.Rule.prototype.toCSS=function(a){return this.variable?"":this.name+(a.compress?":":": ")+this.value.toCSS(a)+this.important+";"},a.Rule.prototype.eval=function(b){return new a.Rule(this.name,this.value.eval(b),this.important,this.index)},a.Shorthand=function(a,b){this.a=a,this.b=b},a.Shorthand.prototype={toCSS:function(a){return this.a.toCSS(a)+"/"+this.b.toCSS(a)},eval:function(){return this}}}(c("../tree")),function(a){a.Ruleset=function(a,b){this.selectors=a,this.rules=b,this._lookups={}},a.Ruleset.prototype={eval:function(b){var c=new a.Ruleset(this.selectors,this.rules.slice(0));c.root=this.root,b.frames.unshift(c);if(c.root)for(var d=0;d<c.rules.length;d++)c.rules[d]instanceof a.Import&&Array.prototype.splice.apply(c.rules,[d,1].concat(c.rules[d].eval(b)));for(var d=0;d<c.rules.length;d++)c.rules[d]instanceof a.mixin.Definition&&(c.rules[d].frames=b.frames.slice(0));for(var d=0;d<c.rules.length;d++)c.rules[d]instanceof a.mixin.Call&&Array.prototype.splice.apply(c.rules,[d,1].concat(c.rules[d].eval(b)));for(var d=0,e;d<c.rules.length;d++)e=c.rules[d],e instanceof a.mixin.Definition||(c.rules[d]=e.eval?e.eval(b):e);return b.frames.shift(),c},match:function(a){return!a||a.length===0},variables:function(){return this._variables?this._variables:this._variables=this.rules.reduce(function(b,c){return c instanceof a.Rule&&c.variable===!0&&(b[c.name]=c),b},{})},variable:function(a){return this.variables()[a]},rulesets:function(){return this._rulesets?this._rulesets:this._rulesets=this.rules.filter(function(b){return b instanceof a.Ruleset||b instanceof a.mixin.Definition})},find:function(b,c){c=c||this;var d=[],e,f,g=b.toCSS();return g in this._lookups?this._lookups[g]:(this.rulesets().forEach(function(e){if(e!==c)for(var g=0;g<e.selectors.length;g++)if(f=b.match(e.selectors[g])){b.elements.length>e.selectors[g].elements.length?Array.prototype.push.apply(d,e.find(new a.Selector(b.elements.slice(1)),c)):d.push(e);break}}),this._lookups[g]=d)},toCSS:function(b,c){var d=[],e=[],f=[],g=[],h,i;this.root||(b.length===0?g=this.selectors.map(function(a){return[a]}):this.joinSelectors(g,b,this.selectors));for(var j=0;j<this.rules.length;j++)i=this.rules[j],i.rules||i instanceof a.Directive?f.push(i.toCSS(g,c)):i instanceof a.Comment?i.silent||(this.root?f.push(i.toCSS(c)):e.push(i.toCSS(c))):i.toCSS&&!i.variable?e.push(i.toCSS(c)):i.value&&!i.variable&&e.push(i.value.toString());return f=f.join(""),this.root?d.push(e.join(c.compress?"":"\n")):e.length>0&&(h=g.map(function(a){return a.map(function(a){return a.toCSS(c)}).join("").trim()}).join(c.compress?",":g.length>3?",\n":", "),d.push(h,(c.compress?"{":" {\n ")+e.join(c.compress?"":"\n ")+(c.compress?"}":"\n}\n"))),d.push(f),d.join("")+(c.compress?"\n":"")},joinSelectors:function(a,b,c){for(var d=0;d<c.length;d++)this.joinSelector(a,b,c[d])},joinSelector:function(b,c,d){var e=[],f=[],g=[],h=[],i=!1,j;for(var k=0;k<d.elements.length;k++)j=d.elements[k],j.combinator.value.charAt(0)==="&"&&(i=!0),i?h.push(j):g.push(j);i||(h=g,g=[]),g.length>0&&e.push(new a.Selector(g)),h.length>0&&f.push(new a.Selector(h));for(var l=0;l<c.length;l++)b.push(e.concat(c[l]).concat(f))}}}(c("../tree")),function(a){a.Selector=function(a){this.elements=a,this.elements[0].combinator.value===""&&(this.elements[0].combinator.value=" ")},a.Selector.prototype.match=function(a){var b=this.elements.length,c=a.elements.length,d=Math.min(b,c);if(b<c)return!1;for(var e=0;e<d;e++)if(this.elements[e].value!==a.elements[e].value)return!1
-;return!0},a.Selector.prototype.toCSS=function(a){return this._css?this._css:this._css=this.elements.map(function(b){return typeof b=="string"?" "+b.trim():b.toCSS(a)}).join("")}}(c("../tree")),function(a){a.URL=function(a,b){a.data?this.attrs=a:(d.mode==="browser"&&!/^(?:https?:\/\/|file:\/\/|data:|\/)/.test(a.value)&&b.length>0&&(a.value=b[0]+(a.value.charAt(0)==="/"?a.value.slice(1):a.value)),this.value=a,this.paths=b)},a.URL.prototype={toCSS:function(){return"url("+(this.attrs?"data:"+this.attrs.mime+this.attrs.charset+this.attrs.base64+this.attrs.data:this.value.toCSS())+")"},eval:function(b){return this.attrs?this:new a.URL(this.value.eval(b),this.paths)}}}(c("../tree")),function(a){a.Value=function(a){this.value=a,this.is="value"},a.Value.prototype={eval:function(b){return this.value.length===1?this.value[0].eval(b):new a.Value(this.value.map(function(a){return a.eval(b)}))},toCSS:function(a){return this.value.map(function(b){return b.toCSS(a)}).join(a.compress?",":", ")}}}(c("../tree")),function(a){a.Variable=function(a,b){this.name=a,this.index=b},a.Variable.prototype={eval:function(b){var c,d,e=this.name;e.indexOf("@@")==0&&(e="@"+(new a.Variable(e.slice(1))).eval(b).value);if(c=a.find(b.frames,function(a){if(d=a.variable(e))return d.value.eval(b)}))return c;throw{message:"variable "+e+" is undefined",index:this.index}}}}(c("../tree")),c("./tree").find=function(a,b){for(var c=0,d;c<a.length;c++)if(d=b.call(a,a[c]))return d;return null},c("./tree").jsify=function(a){return Array.isArray(a.value)&&a.value.length>1?"["+a.value.map(function(a){return a.toCSS(!1)}).join(", ")+"]":a.toCSS(!1)};var f=location.protocol==="file:"||location.protocol==="chrome:"||location.protocol==="chrome-extension:"||location.protocol==="resource:";d.env=d.env||(location.hostname=="127.0.0.1"||location.hostname=="0.0.0.0"||location.hostname=="localhost"||location.port.length>0||f?"development":"production"),d.async=!1,d.poll=d.poll||(f?1e3:1500),d.watch=function(){return this.watchMode=!0},d.unwatch=function(){return this.watchMode=!1},d.env==="development"?(d.optimization=0,/!watch/.test(location.hash)&&d.watch(),d.watchTimer=setInterval(function(){d.watchMode&&m(function(a,b,c){a&&p(a.toCSS(),b,c.lastModified)})},d.poll)):d.optimization=3;var g;try{g=typeof a.localStorage=="undefined"?null:a.localStorage}catch(h){g=null}var i=document.getElementsByTagName("link"),j=/^text\/(x-)?less$/;d.sheets=[];for(var k=0;k<i.length;k++)(i[k].rel==="stylesheet/less"||i[k].rel.match(/stylesheet/)&&i[k].type.match(j))&&d.sheets.push(i[k]);d.refresh=function(a){var b,c;b=c=new Date,m(function(a,d,e){e.local?t("loading "+d.href+" from cache."):(t("parsed "+d.href+" successfully."),p(a.toCSS(),d,e.lastModified)),t("css for "+d.href+" generated in "+(new Date-c)+"ms"),e.remaining===0&&t("css generated in "+(new Date-b)+"ms"),c=new Date},a),l()},d.refreshStyles=l,d.refresh(d.env==="development")})(window);
diff --git a/syte/static/css/pygments.css b/syte/static/css/pygments.css
new file mode 100644
index 0000000..68a16e7
--- /dev/null
+++ b/syte/static/css/pygments.css
@@ -0,0 +1,63 @@
+/* HIGHLIGHT*/
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #f0f0f0; }
+.highlight .c { color: #60a0b0; font-style: italic } /* Comment */
+.highlight .err { border: 1px solid #FF0000 } /* Error */
+.highlight .k { color: #007020; font-weight: bold } /* Keyword */
+.highlight .o { color: #666666 } /* Operator */
+.highlight .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #007020 } /* Comment.Preproc */
+.highlight .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #808080 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0040D0 } /* Generic.Traceback */
+.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #007020 } /* Keyword.Pseudo */
+.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #902000 } /* Keyword.Type */
+.highlight .m { color: #40a070 } /* Literal.Number */
+.highlight .s { color: #4070a0 } /* Literal.String */
+.highlight .na { color: #4070a0 } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
+.highlight .no { color: #60add5 } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #007020 } /* Name.Exception */
+.highlight .nf { color: #06287e } /* Name.Function */
+.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
+.highlight .nv { color: #bb60d5 } /* Name.Variable */
+.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #40a070 } /* Literal.Number.Float */
+.highlight .mh { color: #40a070 } /* Literal.Number.Hex */
+.highlight .mi { color: #40a070 } /* Literal.Number.Integer */
+.highlight .mo { color: #40a070 } /* Literal.Number.Oct */
+.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
+.highlight .sc { color: #4070a0 } /* Literal.String.Char */
+.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
+.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
+.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
+.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */
+.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
+.highlight .sx { color: #c65d09 } /* Literal.String.Other */
+.highlight .sr { color: #235388 } /* Literal.String.Regex */
+.highlight .s1 { color: #4070a0 } /* Literal.String.Single */
+.highlight .ss { color: #517918 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
+.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
+.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
+.highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */
diff --git a/syte/static/css/styles.css b/syte/static/css/styles.css
new file mode 100644
index 0000000..09b7be3
--- /dev/null
+++ b/syte/static/css/styles.css
@@ -0,0 +1,1413 @@
+html,body {
+margin:0;
+padding:0;
+}
+
+h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,cite,code,del,dfn,em,img,q,s,samp,small,strike,strong,sub,sup,tt,var,dd,dl,dt,li,ol,ul,fieldset,form,label,legend,button,table,caption,tbody,tfoot,thead,tr,th,td {
+border:0;
+font-weight:400;
+font-style:normal;
+font-size:100%;
+font-family:inherit;
+margin:0;
+padding:0;
+}
+
+em,i {
+font-style:italic;
+}
+
+body {
+line-height:1;
+font-family:Helvetica Neue,Helvetica,Arial,sans-serif;
+font-size:15px;
+color:#404040;
+}
+
+table {
+border-collapse:collapse;
+border-spacing:0;
+}
+
+q:before,q:after,blockquote:before,blockquote:after {
+content:"";
+}
+
+html {
+overflow-y:scroll;
+font-size:100%;
+-webkit-text-size-adjust:100%;
+-ms-text-size-adjust:100%;
+}
+
+a:focus {
+outline:thin dotted;
+}
+
+article,aside,details,figcaption,figure,footer,header,hgroup,nav,section {
+display:block;
+}
+
+hgroup {
+margin-top:0px;
+}
+
+audio,canvas,video {
+display:inline;
+zoom:1;
+}
+
+sub,sup {
+font-size:75%;
+line-height:0;
+position:relative;
+vertical-align:baseline;
+}
+
+sup {
+top:-.5em;
+}
+
+sub {
+bottom:-.25em;
+}
+
+img {
+border:0;
+-ms-interpolation-mode:bicubic;
+}
+
+button,input,select,textarea {
+font-size:100%;
+vertical-align:middle;
+margin:0;
+}
+
+button,input {
+line-height:normal;
+overflow:visible;
+}
+
+button::-moz-focus-inner,input::-moz-focus-inner {
+border:0;
+padding:0;
+}
+
+button,input[type="button"],input[type="reset"],input[type="submit"] {
+cursor:pointer;
+-webkit-appearance:button;
+}
+
+input[type="search"] {
+-webkit-appearance:textfield;
+-webkit-box-sizing:content-box;
+-moz-box-sizing:content-box;
+box-sizing:content-box;
+}
+
+input[type="search"]::-webkit-search-decoration {
+-webkit-appearance:none;
+}
+
+textarea {
+overflow:auto;
+vertical-align:top;
+}
+
+.fade {
+-webkit-transition:opacity .15s linear;
+-moz-transition:opacity .15s linear;
+-o-transition:opacity .15s linear;
+transition:opacity .15s linear;
+opacity:0;
+}
+
+.fade.in {
+opacity:1;
+}
+
+::selection,::-moz-selection {
+background:#D75701;
+color:#fff;
+text-shadow:none;
+}
+
+h1,.h1 {
+font-size:30px;
+line-height:35px;
+font-weight:500;
+}
+
+h2,.h2 {
+font-size:24px;
+line-height:30px;
+font-weight:500;
+}
+
+h3,.h3 {
+font-size:18px;
+line-height:25px;
+font-weight:500;
+}
+
+h6,.h6 {
+font-size:14px;
+line-height:20px;
+font-weight:500;
+}
+
+ul {
+margin:0 0 15px 15px;
+}
+
+ol {
+margin:0 0 15px 20px;
+}
+
+li {
+margin-bottom:5px;
+}
+
+dl {
+margin-bottom:10px;
+}
+
+dl dd {
+margin:0 0 5px 10px;
+}
+
+p {
+line-height:25px;
+margin-top:20px;
+margin-bottom:20px;
+}
+
+a {
+color:black;
+text-decoration:none;
+border-bottom: 1px solid #404040;
+}
+
+a:hover {
+color: #D75701;
+border-bottom: 1px solid #D75701;
+}
+
+blockquote {
+margin-top:20px 0;
+border-left:5px solid #D75701;
+padding:0 0 0 20px;
+}
+
+blockquote p:first-child {
+margin-top:5px;
+}
+
+.descr {
+display:block;
+font-size:12px;
+line-height:20px;
+color:#7f7e7e;
+}
+
+.btn {
+display:inline-block;
+font-size:13px;
+line-height:18px;
+color:#333;
+text-align:center;
+text-shadow:0 1px 1px rgba(255,255,255,0.75);
+vertical-align:middle;
+cursor:pointer;
+background-color:#e6e6e6;
+background-repeat:repeat-x;
+background-image:linear-gradient(top,#fff,#e6e6e6);
+filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);
+border:1px solid #ccc;
+border-bottom-color:#b3b3b3;
+-webkit-border-radius:4px;
+-moz-border-radius:4px;
+border-radius:4px;
+-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);
+-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);
+box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);
+padding:4px 10px;
+}
+
+.btn:hover {
+color:#333;
+text-decoration:none;
+background-color:#e6e6e6;
+background-position:0 -15px;
+border-bottom-color:#b3b3b3;
+-webkit-transition:background-position .1s linear;
+-moz-transition:background-position .1s linear;
+-o-transition:background-position .1s linear;
+transition:background-position .1s linear;
+}
+
+.modal-backdrop {
+position:fixed;
+z-index:1000;
+top:0;
+right:0;
+bottom:0;
+left:0;
+background:#000;
+}
+
+.modal-backdrop.fade,.modal-backdrop.fade-large {
+-webkit-transition:opacity .2s linear;
+-moz-transition:opacity .2s linear;
+-o-transition:opacity .2s linear;
+transition:opacity .2s linear;
+filter:alpha(opacity=0);
+-khtml-opacity:0;
+-moz-opacity:0;
+opacity:0;
+}
+
+.modal-backdrop,.modal-backdrop.fade.in {
+filter:alpha(opacity=50);
+-khtml-opacity:.5;
+-moz-opacity:.5;
+opacity:.5;
+}
+
+.modal {
+position:fixed;
+top:0;
+left:240px;
+z-index:1050;
+overflow:auto;
+width:400px;
+height:100%;
+background-color:#fff;
+border-right:1px solid #404040;
+-webkit-box-shadow:0 0 7px rgba(0,0,0,0.5);
+-moz-box-shadow:0 0 7px rgba(0,0,0,0.5);
+box-shadow:0 0 7px rgba(0,0,0,0.5);
+}
+
+.modal.fade-large {
+width:700px;
+-webkit-transition:left .4s ease-out;
+-moz-transition:left .4s ease-out;
+-o-transition:left .4s ease-out;
+transition:left .4s ease-out;
+left:-1100px;
+}
+
+.modal.fade {
+-webkit-transition:left .4s ease-out;
+-moz-transition:left .4s ease-out;
+-o-transition:left .4s ease-out;
+transition:left .4s ease-out;
+left:-700px;
+}
+
+.modal.fade.in,.modal.fade-large.in {
+left:247px;
+width:347px;
+}
+
+.close {
+float:right;
+font-size:26px;
+line-height:30px;
+font-weight:700;
+color:#000;
+background-color:#fff;
+text-shadow:0 1px 0 #fff;
+filter:alpha(opacity=20);
+-khtml-opacity:.2;
+-moz-opacity:.2;
+opacity:.2;
+}
+
+.close:hover {
+color:#000;
+text-decoration:none;
+cursor:pointer;
+filter:alpha(opacity=40);
+-khtml-opacity:.4;
+-moz-opacity:.4;
+opacity:.4;
+}
+
+.profile {
+background:#e9e9e9 url(../imgs/b.png);
+}
+
+.profile-info {
+position:relative;
+background:#fff;
+padding:15px;
+}
+
+.profile-info .close {
+line-height:20px;
+}
+
+.profile-info .btn {
+position:absolute;
+right:17px;
+bottom:20px;
+}
+
+.profile-avatar {
+display:inline-block;
+float:left;
+border-bottom:0;
+}
+
+.profile-avatar img {
+height:52px;
+width:52px;
+border:2px solid #D75701;
+}
+
+.profile-name {
+display:block;
+float:left;
+margin:0 0 10px 10px;
+}
+
+.profile-name h2 {
+font-size:22px;
+line-height:30px;
+}
+
+.profile-name h2 a {
+font-weight:500;
+color:#404040;
+border-bottom:0;
+}
+
+.profile-name h3 {
+font-size:16px;
+line-height:20px;
+}
+
+.profile-name h3 a {
+color:#777;
+border-bottom:0;
+}
+
+.profile-description {
+clear:left;
+font-size:13px;
+line-height:18px;
+font-style:italic;
+color:#777;
+margin:0;
+padding:5px 0;
+}
+
+.profile-location-url {
+clear:left;
+margin:0;
+}
+
+.profile-location-url span {
+display:inline-block;
+font-size:13px;
+line-height:18px;
+color:#777;
+}
+
+.profile-location-url .divider {
+color:#ccc;
+padding:0 4px;
+}
+
+.profile-stats {
+list-style:none;
+overflow:hidden;
+border-top:1px solid #c2c2c2;
+border-bottom:1px solid #c2c2c2;
+background:#fff;
+margin:0;
+}
+
+.profile-stats li {
+display:inline;
+}
+
+.profile-stats li a,.profile-stats li span {
+float:left;
+color:#777;
+font-size:10px;
+line-height:16px;
+text-transform:uppercase;
+border-left:1px solid #c2c2c2;
+border-bottom:0;
+padding:7px 15px;
+}
+
+.profile-stats li strong {
+display:block;
+color:#404040;
+font-size:14px;
+}
+
+.profile-stats li:first-child span {
+border-left:0;
+}
+
+.profile-watchers {
+display:inline-block;
+background:url(/theme/imgs/ico-watchers.png) no-repeat;
+margin-left:10px;
+padding-left:20px;
+}
+
+.profile-forks {
+display:inline-block;
+background:url(/theme/imgs/ico-forks.png) no-repeat;
+margin-left:10px;
+padding-left:20px;
+}
+
+.profile-comments {
+display:inline-block;
+background:url(/theme/imgs/ico-comments.png) no-repeat;
+margin-left:10px;
+padding-left:20px;
+}
+
+.profile-likes {
+display:inline-block;
+background:url(/theme/imgs/ico-likes.png) no-repeat;
+margin-left:10px;
+padding-left:20px;
+}
+
+.profile-resharers {
+display:inline-block;
+background:url(/theme/imgs/ico-resharers.png) no-repeat;
+margin-left:10px;
+padding-left:20px;
+}
+
+.profile-plusoners {
+display:inline-block;
+background:url(/theme/imgs/ico-plusoners.png) no-repeat;
+margin-left:10px;
+padding-left:20px;
+}
+
+.profile.twitter {
+overflow:hidden;
+}
+
+.tweet-title {
+border-bottom:0;
+position:relative;
+padding-left:45px;
+}
+
+.tweet-title img {
+position:absolute;
+left:0;
+width:32px;
+height:32px;
+border:2px solid #D75701;
+}
+
+.tweet-title span {
+color:#777;
+font-size:13px;
+padding-left:3px;
+}
+
+.tweet-text {
+color:#777;
+font-size:12px;
+line-height:18px;
+margin:0 0 0 45px;
+padding:3px 0;
+}
+
+.tweet-date {
+font-size:12px;
+line-height:18px;
+color:#999;
+margin:0 0 0 45px;
+}
+
+.profile-repo-text {
+color:#777;
+font-size:13px;
+line-height:18px;
+margin:0;
+padding:5px 0;
+}
+
+.profile-repo-stats li {
+border:0;
+zoom:1;
+display:inline;
+padding:0;
+}
+
+.profile-shots {
+list-style:none;
+margin:0;
+padding:15px 0;
+}
+
+.profile-shots>li {
+float:left;
+width:300px;
+background:#fff;
+-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+box-shadow:0 1px 3px rgba(0,0,0,0.25);
+margin:0 0 20px 20px;
+padding:10px;
+}
+
+.profile-shot {
+border-bottom:0;
+display:block;
+}
+
+.profile-shot img {
+width:300px;
+height:225px;
+}
+
+.profile-shot-title {
+display:block;
+font-size:13px;
+line-height:18px;
+color:#4b4b4b;
+overflow:hidden;
+text-overflow:ellipsis;
+white-space:nowrap;
+padding:5px 0;
+}
+
+.profile-shot-stats li {
+margin-bottom:0;
+border:0;
+zoom:1;
+display:inline;
+padding:0;
+}
+
+.profile-shot-stats li:first-child a,.profile-shot-stats li:first-child span {
+margin-left:0;
+}
+
+.profile-shot-date {
+float:right;
+color:#999;
+}
+
+.instagram .profile-shot img {
+width:300px;
+height:300px;
+}
+
+code,pre {
+color:#333;
+font-family:Monaco,Courier New,monospace;
+font-size:12px;
+font-weight:400;
+line-height:20px;
+-webkit-border-radius:3px;
+-moz-border-radius:3px;
+border-radius:3px;
+padding:0 3px 2px;
+}
+
+code {
+color:#D75701;
+background-color:#f7f7f9;
+border:1px solid #e1e1e8;
+padding:2px 4px;
+}
+
+pre {
+display:block;
+word-break:break-all;
+word-wrap:break-word;
+white-space:pre-wrap;
+background-color:#f5f5f5;
+border:1px solid rgba(0,0,0,0.15);
+-webkit-border-radius:4px;
+-moz-border-radius:4px;
+border-radius:4px;
+margin:0 0 9px;
+padding:8px;
+}
+
+pre.prettyprint {
+margin-bottom:20px;
+}
+
+.pre-scrollable {
+max-height:340px;
+overflow-y:scroll;
+}
+
+.lit {
+color:#195f91;
+}
+
+.fun {
+color:#dc322f;
+}
+
+.str,.atv {
+color:#da3f47;
+}
+
+.kwd,.linenums .tag {
+color:#1e347b;
+}
+
+.typ,.atn,.dec,.var {
+color:teal;
+}
+
+.pln {
+color:#48484c;
+}
+
+.prettyprint {
+background-color:#f7f7f9;
+border:1px solid #e1e1e8;
+padding:8px;
+}
+
+.prettyprint.linenums {
+-webkit-box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;
+-moz-box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;
+box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;
+}
+
+ol.linenums {
+margin:0 0 0 33px;
+}
+
+ol.linenums li {
+padding-left:12px;
+color:#bebec5;
+line-height:18px;
+text-shadow:0 1px 0 #fff;
+}
+
+.main-header {
+width:247px;
+position:absolute;
+z-index:1100;
+float:left;
+border-right:1px solid #c2c2c2;
+background:#e9e9e9 url(../imgs/b.png);
+}
+
+.main-header hgroup .picture a {
+display:inline-block;
+height:84px;
+width:84px;
+border:3px solid #D75701;
+background:#000 0 url(https://twimg0-a.akamaihd.net/profile_images/1149409097/20101018060848_samrat94_6HR8FZ5V2JQDPU34ENIKCWBL0STAMO91XG7Y.jpg);
+-webkit-box-shadow:0 1px 1px #f9f9f9,inset 0 0 6px #000;
+-moz-box-shadow:0 1px 1px #f9f9f9,inset 0 0 6px #000;
+box-shadow:0 1px 1px #f9f9f9,inset 0 0 6px #000;
+margin:60px 35px 20px;
+}
+
+.main-header hgroup h1 {
+font-size:24px;
+text-shadow:0 1px 1px #f9f9f9;
+margin:0 35px;
+}
+
+.main-header hgroup h2 {
+font-size:14px;
+font-weight:400;
+line-height:25px;
+color:#4b4b4b;
+margin:10px 35px;
+}
+
+.main-header nav {
+margin:40px 0;
+}
+
+.main-header nav ul {
+border-top:1px solid #d2d2d2;
+list-style:none;
+margin-left:0;
+}
+
+.main-header nav a,.main-header nav a:hover {
+border-bottom:1px solid #d2d2d2;
+}
+
+.main-header nav a {
+position:relative;
+color:#404040;
+display:block;
+font-weight:500;
+text-shadow:0 1px 1px #f9f9f9;
+padding:15px 30px;
+}
+
+.main-header nav a:hover {
+color:#fff;
+background:#D75701;
+border-right:0;
+text-shadow:none;
+}
+
+.main-header nav .sel {
+border-right:6px solid #D75701;
+}
+
+.main-header .spinner {
+position:absolute!important;
+right:30px;
+top:23px;
+}
+
+.main-header .fork-me {
+margin-left:30px;
+font-size:13px;
+color:#4b4b4b;
+border-bottom:0;
+}
+
+.main-section {
+font-size:14px;
+position:relative;
+overflow:hidden;
+margin-left:247px;
+padding:35px 0px 0px 35px;
+}
+
+.main-section h3.date {
+width:100%;
+display:block;
+margin-left:-34px;
+border-bottom:1px solid #c2c2c2;
+border-top:1px solid #c2c2c2;
+font-size:16px;
+font-weight:700;
+background-color:rgba(255,255,255,0.8);
+color:#D75701;
+padding:20px 35px 30px 75px;
+}
+
+a.button_accent {
+display:inline-block;
+border:3px solid #D75701;
+border-radius:70px;
+-moz-border-radius:70px;
+-webkit-border-radius:70px;
+text-transform:uppercase;
+color:#D75701;
+font-size:17px;
+font-weight:400;
+margin:40px 50px;
+padding:10px 20px;
+}
+
+a.button_accent:link {
+color:#0e94ec;
+}
+
+a.button_accent:hover {
+color:#fff;
+background-color:#D75701;
+outline:0;
+}
+
+a.button_accent:active {
+color:#fff;
+background-color:#339;
+outline:0;
+}
+
+.blog-section {
+padding:0;
+}
+
+.blog-section hgroup h2,.blog-section hgroup h1 {
+font-size:30px;
+font-weight:500;
+line-height:40px;
+margin:50px 0 25px;
+}
+
+.blog-section hgroup h3 a.active {
+position:fixed;
+top:0;
+bottom:auto;
+margin-top:0;
+}
+
+.blog-section article {
+width:700px;
+overflow:hidden;
+line-height:25px;
+padding:5px 35px 50px 34px;
+}
+
+.blog-section article img {
+margin:0 15px 5px 0;
+padding:2px;
+}
+
+.blog-section article a.img-link:hover img {
+border-color:#D75701;
+}
+
+.blog-section footer {
+padding-top:10px;
+}
+
+.blog-section footer h4 {
+float:left;
+text-transform:uppercase;
+font-size:13px;
+line-height:28px;
+padding:0 15px 0 0;
+}
+
+.tags {
+list-style:none;
+margin:0;
+}
+
+.tags li {
+zoom:1;
+display:inline;
+}
+
+.tags a {
+font-size:13px;
+text-shadow:0 1px 1px #f9f9f9;
+background:#e9e9e9;
+border:1px solid #c2c2c2;
+padding:3px 10px;
+}
+
+.tags a:hover {
+background:#D75701;
+color:#fff;
+text-shadow:none;
+border:1px solid #D75701;
+}
+
+.load-more-button {
+display:inline-block;
+background-color:#D75701;
+color:#fff;
+margin:0 20px 50px;
+padding:10px 30px;
+}
+
+.load-more-button:hover {
+border:1px solid #D75701;
+background:#fff;
+color:#D75701;
+}
+
+.load-more-button .spinner {
+left:140px;
+top:-8px;
+}
+
+strong,b,dl dt {
+font-weight:700;
+}
+
+audio:not([controls]),.blog-section hgroup h3 a,.mobile-nav {
+display:none;
+}
+
+h4,.h4,h5,.h5 {
+font-size:16px;
+line-height:20px;
+font-weight:500;
+}
+
+li ul,li ol,.main-header nav li {
+margin-bottom:0;
+}
+
+a.no-border,.profile-avatar:hover,.profile-description a,.profile-location-url a,.tweet-title:hover,.tweet-text a,.profile-repo-name:hover,.profile-repo-stats a,.profile-shot:hover,.profile-shot-stats a,.blog-section article a.img-link {
+border-bottom:0;
+}
+
+.profile-name h2 a:hover,.profile-name h3 a:hover,.profile-stats li a:hover,.profile-stats li a:hover strong,.main-header .fork-me:hover {
+color:#D75701;
+}
+
+.profile-info-footer,.profile-tweets li,.profile-repos li {
+border-bottom:1px solid #c2c2c2;
+padding:10px 15px;
+}
+
+.profile-tweets,.profile-repos {
+font-size:13px;
+list-style:none;
+background:#fff;
+margin:0;
+}
+
+.profile-repo-name,.blog-section hgroup h2 a {
+border-bottom:0;
+font-weight:500;
+}
+
+.profile-repo-stats,.profile-shot-stats {
+list-style:none;
+font-size:13px;
+line-height:18px;
+margin:0;
+}
+
+.profile-repo-stats li {
+border-bottom: none;
+}
+
+.profile-repo-stats a:hover,.profile-shot-stats a:hover {
+border-bottom:0;
+color:#D75701;
+}
+
+pre code,blockquote code {
+color:inherit;
+background-color:transparent;
+border:0;
+padding:0;
+}
+
+.com,.pun,.opn,.clo {
+color:#93a1a1;
+}
+
+.blog-section article img {
+max-width:400px;
+}
+}
+
+.blog-section article img {
+max-width:400px;
+}
+}
+
+.mobile-nav {
+display:block;
+position:fixed;
+top:0;
+height:45px;
+width:100%;
+z-index:3000;
+background:#e9e9e9 url(../imgs/b.png);
+border-top:3px solid #D75701;
+-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+box-shadow:0 1px 3px rgba(0,0,0,0.25);
+}
+
+.mobile-nav h3 {
+float:right;
+padding:10px;
+}
+
+.mobile-nav h3 a {
+border-bottom:0;
+font-weight:700;
+color:#404040;
+text-shadow:0 1px 1px #f9f9f9;
+}
+
+.mobile-nav .nav-btn {
+float:left;
+background-color:#333;
+background-repeat:repeat-x;
+background-image:linear-gradient(top,#404040,#333);
+filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#404040',endColorstr='#333333',GradientType=0);
+-webkit-border-radius:4px;
+-moz-border-radius:4px;
+border-radius:4px;
+-webkit-box-shadow:0 1px 1px #f9f9f9;
+-moz-box-shadow:0 1px 1px #f9f9f9;
+box-shadow:0 1px 1px #f9f9f9;
+margin:8px 10px;
+padding:7px 10px 4px;
+}
+
+.mobile-nav .nav-btn-bar {
+display:block;
+width:18px;
+height:2px;
+margin-bottom:3px;
+background-color:#f9f9f9;
+-webkit-border-radius:1px;
+-moz-border-radius:1px;
+border-radius:1px;
+-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.25);
+-moz-box-shadow:0 1px 0 rgba(0,0,0,0.25);
+box-shadow:0 1px 0 rgba(0,0,0,0.25);
+}
+
+header.main-header {
+position:absolute;
+}
+
+header.main-header hgroup .picture a {
+margin:60px 0 10px 10px;
+}
+
+header.main-header nav {
+margin:20px 0;
+}
+
+.main-section {
+position:relative;
+min-height:500px;
+left:0;
+z-index:2000;
+background-color:#fff;
+-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+box-shadow:0 1px 3px rgba(0,0,0,0.25);
+-webkit-transition:left .3s ease-out;
+-moz-transition:left .3s ease-out;
+-o-transition:left .3s ease-out;
+transition:left .3s ease-out;
+}
+
+.main-section.nav-opened {
+left:247px;
+}
+
+.blog-section hgroup h2,.blog-section hgroup h1 {
+font-size:24px;
+line-height:30px;
+font-weight:500;
+margin:10px 0 5px;
+}
+
+.blog-section hgroup h3 a {
+position:static;
+border:0;
+font-weight:300;
+margin:0;
+padding:5px 0;
+}
+
+.blog-section article {
+width:95%;
+border-bottom:1px solid #c2c2c2;
+padding:10px 10px 30px;
+}
+
+.blog-section article img {
+max-width:300px;
+}
+
+.blog-section .loading {
+padding:15px;
+}
+
+.modal-backdrop {
+z-index:3500;
+}
+
+.modal {
+position:absolute;
+width:100%;
+height:1500px;
+z-index:4000;
+}
+
+.modal.fade-large {
+width:100%;
+}
+
+.modal.fade.in,.modal.fade-large.in {
+left:247px;
+}
+
+.profile.twitter,.profile.github,.profile.dribbble,.profile.instagram {
+overflow:scroll;
+}
+
+.profile-info .btn {
+position:static;
+margin-top:5px;
+}
+
+.profile-shots {
+padding:10px 0;
+}
+
+.profile-shots>li {
+width:280px;
+margin:0 0 20px 10px;
+}
+
+.profile-shots img {
+width:280px;
+height:210px;
+}
+
+.instagram .profile-shot img {
+width:280px;
+height:280px;
+}
+
+header.main-header .fork-me,.shots-likes-received,.shots-likes-given {
+display:none;
+}
+
+@media (max-width:1024px), (max-height:800px) {
+header.main-header hgroup .picture a,header.main-header nav {
+margin-top:30px;
+}
+}
+
+@media (max-height:700px) and (min-width:800px) {
+header.main-header h1 {
+padding-top:15px;
+}
+
+header.main-header nav {
+margin-top:15px;
+}
+
+header.main-header hgroup .picture a {
+margin:15px 35px 0;
+}
+}
+
+@media (max-height:600px) and (min-width:800px) {
+header.main-header .picture {
+display:none;
+}
+}
+
+@media (max-height:500px) and (min-width:800px) {
+header.main-header hgroup h2 {
+display:none;
+}
+}
+
+@media (max-width:800px) {
+.blog-section article {
+width:400px;
+}
+
+.blog-section article img {
+max-width:400px;
+}
+}
+
+@media (min-width:801px) and (max-width:1024px) {
+.blog-section article {
+width:500px;
+}
+
+.blog-section article img {
+max-width:400px;
+}
+}
+
+@media (max-width:799px) {
+body {
+background:#e9e9e9 url(/static/imgs/b.png);
+overflow-x:hidden;
+}
+
+.mobile-nav {
+display:block;
+position:fixed;
+top:0;
+height:45px;
+width:100%;
+z-index:3000;
+background:#e9e9e9 url(/static/imgs/b.png);
+border-top:3px solid #d75701;
+-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+box-shadow:0 1px 3px rgba(0,0,0,0.25);
+}
+
+.mobile-nav h3 {
+float:right;
+padding:10px;
+}
+
+.mobile-nav h3 a {
+border-bottom:0;
+font-weight:700;
+color:#404040;
+text-shadow:0 1px 1px #f9f9f9;
+}
+
+.mobile-nav .nav-btn {
+float:left;
+background-color:#333;
+background-repeat:repeat-x;
+background-image:linear-gradient(top,#404040,#333);
+filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#404040',endColorstr='#333333',GradientType=0);
+-webkit-border-radius:4px;
+-moz-border-radius:4px;
+border-radius:4px;
+-webkit-box-shadow:0 1px 1px #f9f9f9;
+-moz-box-shadow:0 1px 1px #f9f9f9;
+box-shadow:0 1px 1px #f9f9f9;
+margin:8px 10px;
+padding:7px 10px 4px;
+}
+
+.mobile-nav .nav-btn-bar {
+display:block;
+width:18px;
+height:2px;
+margin-bottom:3px;
+background-color:#f9f9f9;
+-webkit-border-radius:1px;
+-moz-border-radius:1px;
+border-radius:1px;
+-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.25);
+-moz-box-shadow:0 1px 0 rgba(0,0,0,0.25);
+box-shadow:0 1px 0 rgba(0,0,0,0.25);
+}
+
+header.main-header {
+position:absolute;
+margin-top: 49px;
+}
+
+header.main-header hgroup .picture a {
+margin:60px 0 10px 10px;
+}
+
+header.main-header hgroup h1 {
+font-size:18px;
+margin:0 10px;
+}
+
+header.main-header hgroup h2 {
+margin:0 10px 10px;
+}
+
+header.main-header nav {
+margin:20px 0;
+}
+
+.main-section {
+position:relative;
+min-height:500px;
+left:0;
+z-index:2000;
+background-color:#fff;
+-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25);
+box-shadow:0 1px 3px rgba(0,0,0,0.25);
+-webkit-transition:left .3s ease-out;
+-moz-transition:left .3s ease-out;
+-o-transition:left .3s ease-out;
+transition:left .3s ease-out;
+margin:45px 0 0;
+}
+
+.main-section.nav-opened {
+left:240px;
+}
+
+.blog-section hgroup h2,.blog-section hgroup h1 {
+font-size:24px;
+line-height:30px;
+font-weight:500;
+margin:10px 0 5px;
+}
+
+.blog-section hgroup h3 a {
+position:static;
+border:0;
+font-weight:300;
+display:block;
+margin:0;
+padding:5px 0;
+}
+
+.blog-section article {
+width:95%;
+border-bottom:1px solid #c2c2c2;
+padding:10px 10px 30px;
+}
+
+.blog-section article img {
+max-width:300px;
+}
+
+.blog-section .loading {
+padding:15px;
+}
+
+.modal-backdrop {
+z-index:3500;
+}
+
+.modal {
+position:absolute;
+width:100%;
+z-index:4000;
+top:45px;
+}
+
+.modal.fade-large {
+width:100%;
+}
+
+.modal.fade.in,.modal.fade-large.in {
+left:0;
+}
+
+.profile.twitter,.profile.github,.profile.bitbucket,.profile.dribbble,.profile.instagram {
+overflow:scroll;
+}
+
+.apps a {
+width:90%;
+}
+
+.profile-info .btn {
+position:static;
+margin-top:5px;
+}
+
+.profile-shots {
+padding:10px 0;
+}
+
+.profile-shots>li {
+width:280px;
+margin:0 0 20px 10px;
+}
+
+.profile-shots img {
+width:280px;
+height:210px;
+}
+
+.instagram .profile-shot img {
+width:280px;
+height:280px;
+}
+
+header.main-header .fork-me,.shots-likes-received,.shots-likes-given {
+display:none;
+}
+}
diff --git a/syte/static/css/styles.min.css b/syte/static/css/styles.min.css
deleted file mode 100644
index 81eefdc..0000000
--- a/syte/static/css/styles.min.css
+++ /dev/null
@@ -1 +0,0 @@
-html,body{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,cite,code,del,dfn,em,img,q,s,samp,small,strike,strong,sub,sup,tt,var,dd,dl,dt,li,ol,ul,fieldset,form,label,legend,button,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-weight:normal;font-style:normal;font-size:100%;font-family:inherit}strong,b{font-weight:bold}em,i{font-style:italic}body{line-height:1}table{border-collapse:collapse;border-spacing:0}q:before,q:after,blockquote:before,blockquote:after{content:""}html{overflow-y:scroll;font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0;-ms-interpolation-mode:bicubic}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal;*overflow:visible}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}.fade{-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear;opacity:0}.fade.in{opacity:1}body{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:15px;color:#404040}::selection,::-moz-selection{background:#336;color:#fff;text-shadow:none}h1,.h1{font-size:30px;line-height:35px;font-weight:500}h2,.h2{font-size:24px;line-height:30px;font-weight:500}h3,.h3{font-size:18px;line-height:25px;font-weight:500}h4,.h4{font-size:16px;line-height:20px;font-weight:500}h5,.h5{font-size:16px;line-height:20px;font-weight:500}h6,.h6{font-size:14px;line-height:20px;font-weight:500}ul{margin:0 0 15px 15px}ol{margin:0 0 15px 20px}li{margin-bottom:5px}li ul,li ol{margin-bottom:0}dl{margin-bottom:10px}dl dt{font-weight:bold}dl dd{margin:0 0 5px 10px}p{line-height:25px;margin-top:20px;margin-bottom:20px}a{color:#000;text-decoration:none;border-bottom:1px solid #404040}a:hover{color:#336;border-bottom:1px solid #336}a.no-border{border-bottom:0}blockquote{margin-top:20px 0;padding:0 0 0 20px;border-left:5px solid #336}blockquote p:first-child{margin-top:5px}.descr{display:block;font-size:12px;line-height:20px;color:#7f7e7e}.btn{display:inline-block;padding:4px 10px 4px;font-size:13px;line-height:18px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,0.75);vertical-align:middle;cursor:pointer;background-color:#e6e6e6;background-repeat:repeat-x;background-image:-khtml-gradient(linear,left top,left bottom,from(#fff),to(#e6e6e6));background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#fff),color-stop(100%,#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);border:1px solid #ccc;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn:hover{color:#333;text-decoration:none;background-color:#e6e6e6;background-position:0 -15px;border-bottom-color:#b3b3b3;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.modal-backdrop{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;background:#000}.modal-backdrop.fade,.modal-backdrop.fade-large{-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear;filter:alpha(opacity=0);-khtml-opacity:0;-moz-opacity:0;opacity:0}.modal-backdrop,.modal-backdrop.fade.in{filter:alpha(opacity=50);-khtml-opacity:.5;-moz-opacity:.5;opacity:.5}.modal{position:fixed;top:0;left:240px;z-index:1050;overflow:auto;width:400px;height:100%;background-color:#fff;border-right:1px solid #404040;-webkit-box-shadow:0 0 7px rgba(0,0,0,0.5);-moz-box-shadow:0 0 7px rgba(0,0,0,0.5);box-shadow:0 0 7px rgba(0,0,0,0.5)}.modal.fade-large{width:700px;-webkit-transition:left .4s ease-out;-moz-transition:left .4s ease-out;-o-transition:left .4s ease-out;transition:left .4s ease-out;left:-1100px}.modal.fade{-webkit-transition:left .4s ease-out;-moz-transition:left .4s ease-out;-o-transition:left .4s ease-out;transition:left .4s ease-out;left:-700px}.modal.fade.in,.modal.fade-large.in{left:240px}.close{float:right;font-size:26px;line-height:30px;font-weight:bold;color:#000;background-color:#fff;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);-khtml-opacity:.2;-moz-opacity:.2;opacity:.2}.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=40);-khtml-opacity:.4;-moz-opacity:.4;opacity:.4}.profile{background:#e9e9e9 url('/static/imgs/b.png')}.profile-info{position:relative;padding:15px;background:#fff}.profile-info .close{line-height:20px}.profile-info .btn{position:absolute;right:17px;bottom:20px}.profile-avatar{display:inline-block;float:left;border-bottom:0}.profile-avatar img{height:52px;width:52px;border:2px solid #336}.profile-avatar:hover{border-bottom:0}.profile-name{display:block;float:left;margin:0 0 10px 10px}.profile-name h2{font-size:22px;line-height:30px}.profile-name h2 a{font-weight:500;color:#404040;border-bottom:0}.profile-name h3{font-size:16px;line-height:20px}.profile-name h3 a{color:#777;border-bottom:0}.profile-name h2 a:hover,.profile-name h3 a:hover{color:#336}.profile-description{clear:left;font-size:13px;line-height:18px;font-style:italic;color:#777;margin:0;padding:5px 0}.profile-description a{border-bottom:0}.profile-location-url{clear:left;margin:0}.profile-location-url span{display:inline-block;font-size:13px;line-height:18px;color:#777}.profile-location-url .divider{padding:0 4px;color:#ccc}.profile-location-url a{border-bottom:0}.profile-stats{margin:0;list-style:none;overflow:hidden;border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;background:#fff}.profile-stats li{display:inline}.profile-stats li a,.profile-stats li span{float:left;padding:7px 15px;color:#777;font-size:10px;line-height:16px;text-transform:uppercase;border-left:1px solid #c2c2c2;border-bottom:0}.profile-stats li strong{display:block;color:#404040;font-size:14px}.profile-stats li a:hover,.profile-stats li a:hover strong{color:#336}.profile-stats li:first-child span{border-left:0}.profile-info-footer{padding:10px 15px;border-bottom:1px solid #c2c2c2}.profile-watchers{display:inline-block;background:url('/static/imgs/ico-watchers.png') no-repeat;margin-left:10px;padding-left:20px}.profile-forks{display:inline-block;background:url('/static/imgs/ico-forks.png') no-repeat;margin-left:10px;padding-left:20px}.profile-comments{display:inline-block;background:url('/static/imgs/ico-comments.png') no-repeat;margin-left:10px;padding-left:20px}.profile-likes{display:inline-block;background:url('/static/imgs/ico-likes.png') no-repeat;margin-left:10px;padding-left:20px}.profile.twitter{overflow:hidden}.profile-tweets{list-style:none;margin:0;background:#fff}.profile-tweets li{padding:10px 15px;border-bottom:1px solid #c2c2c2}.tweet-title{border-bottom:0;position:relative;padding-left:45px}.tweet-title img{position:absolute;left:0;width:32px;height:32px;border:2px solid #336}.tweet-title span{color:#777;font-size:13px;padding-left:3px}.tweet-title:hover{border-bottom:0}.tweet-text{color:#777;margin:0;padding:3px 0;font-size:13px;line-height:18px;margin-left:45px}.tweet-text a{border-bottom:0}.tweet-date{margin:0;font-size:13px;line-height:18px;margin-left:45px;color:#999}.profile-repos{list-style:none;margin:0;background:#fff}.profile-repos li{padding:10px 15px;border-bottom:1px solid #c2c2c2}.profile-repo-name{border-bottom:0;font-weight:500}.profile-repo-name:hover{border-bottom:0}.profile-repo-text{color:#777;margin:0;padding:5px 0;font-size:13px;line-height:18px}.profile-repo-stats{list-style:none;margin:0;font-size:13px;line-height:18px}.profile-repo-stats li{padding:0;border:0;display:inline-block;zoom:1;*display:inline}.profile-repo-stats a{border-bottom:0}.profile-repo-stats a:hover{border-bottom:0;color:#336}.profile-shots{list-style:none;margin:0;padding:15px 0}.profile-shots>li{float:left;width:300px;padding:10px;margin:0 0 20px 20px;background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.25)}.profile-shot{border-bottom:0;display:block}.profile-shot img{width:300px;height:225px}.profile-shot:hover{border-bottom:0}.profile-shot-title{display:block;padding:5px 0;font-size:13px;line-height:18px;color:#4b4b4b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-shot-stats{list-style:none;margin:0;font-size:13px;line-height:18px}.profile-shot-stats li{margin-bottom:0;padding:0;border:0;display:inline-block;zoom:1;*display:inline}.profile-shot-stats li:first-child a,.profile-shot-stats li:first-child span{margin-left:0}.profile-shot-stats a{border-bottom:0}.profile-shot-stats a:hover{border-bottom:0;color:#336}.profile-shot-date{float:right;color:#999}.instagram .profile-shot img{width:300px;height:300px}code,pre{padding:0 3px 2px;color:#333;font-family:"Monaco",Courier New,monospace;font-size:12px;font-weight:normal;line-height:20px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}code{padding:2px 4px;color:#336;background-color:#f7f7f9;border:1px solid #e1e1e8}pre{display:block;padding:8px;margin:0 0 9px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}pre.prettyprint{margin-bottom:20px}pre code{padding:0;color:inherit;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}blockquote code{padding:0;color:inherit;background-color:transparent;border:0}.com{color:#93a1a1}.lit{color:#195f91}.pun,.opn,.clo{color:#93a1a1}.fun{color:#dc322f}.str,.atv{color:#da3f47}.kwd,.linenums .tag{color:#1e347b}.typ,.atn,.dec,.var{color:teal}.pln{color:#48484c}.prettyprint{padding:8px;background-color:#f7f7f9;border:1px solid #e1e1e8}.prettyprint.linenums{-webkit-box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;-moz-box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0}ol.linenums{margin:0 0 0 33px}ol.linenums li{padding-left:12px;color:#bebec5;line-height:18px;text-shadow:0 1px 0 #fff}.main-header{position:fixed;z-index:1100;top:0;left:0;width:240px;height:100%;min-height:700px;float:left;border-right:1px solid #c2c2c2;background:#e9e9e9 url('/static/imgs/b.png')}.main-header hgroup .picture a{display:inline-block;height:84px;width:84px;margin:60px 35px 20px 35px;border:3px solid #336;background:#000 0 url('https://twimg0-a.akamaihd.net/profile_images/1149409097/20101018060848_samrat94_6HR8FZ5V2JQDPU34ENIKCWBL0STAMO91XG7Y.jpg');-webkit-box-shadow:0 1px 1px #f9f9f9,inset 0 0 6px #000;-moz-box-shadow:0 1px 1px #f9f9f9,inset 0 0 6px #000;box-shadow:0 1px 1px #f9f9f9,inset 0 0 6px #000}.main-header hgroup h1{font-size:24px;margin:0 35px;text-shadow:0 1px 1px #f9f9f9}.main-header hgroup h2{margin:10px 35px;font-size:14px;font-weight:normal;line-height:25px;color:#4b4b4b}.main-header nav{margin:65px 0}.main-header nav ul{border-top:1px solid #d2d2d2;list-style:none;margin-left:0}.main-header nav li{margin-bottom:0}.main-header nav a,.main-header nav a:hover{border-bottom:1px solid #d2d2d2}.main-header nav a{position:relative;padding:15px 30px;color:#404040;display:block;font-weight:500;text-shadow:0 1px 1px #f9f9f9}.main-header nav a:hover{color:#fff;background:#336;border-right:0;text-shadow:none}.main-header nav .sel{border-right:6px solid #336}.main-header .spinner{position:absolute!important;right:30px;top:23px}.main-header .fork-me{position:absolute;left:30px;bottom:20px;font-size:13px;color:#4b4b4b;border-bottom:0}.main-header .fork-me:hover{color:#336}.main-section{position:relative;overflow:hidden;margin-left:241px;padding:35px}.main-section h3.date{width:100%;display:block;margin-left:-34px;padding:20px 35px 30px 75px;border-bottom:1px solid #c2c2c2;border-top:1px solid #c2c2c2;font-size:16px;font-weight:bold;background-color:#fff;background-color:rgba(255,255,255,0.8);color:#336}a.button_accent{margin:40px 50px;padding:10px 20px;display:inline-block;border:3px solid #336;border-radius:70px;-moz-border-radius:70px;-webkit-border-radius:70px;text-transform:uppercase;color:#336;font-size:17px;font-weight:400}a.button_accent:link{color:#0e94ec}a.button_accent:hover{color:#fff;background-color:#336;outline:0}a.button_accent:active{color:#fff;background-color:#339;outline:0}.blog-section{padding:0}.blog-section hgroup h2,.blog-section hgroup h1{font-size:30px;line-height:35px;font-weight:500;line-height:40px;margin:50px 0 25px 0}.blog-section hgroup h2 a{border-bottom:0;font-weight:500}.blog-section hgroup h3 a{display:none}.blog-section hgroup h3 a.active{position:fixed;top:0;bottom:auto;margin-top:0}.blog-section article{width:700px;overflow:hidden;line-height:25px;padding:5px 35px 50px 34px}.blog-section article img{padding:2px;border:1px solid #c2c2c2;margin:0 15px 5px 0}.blog-section article a.img-link{border-bottom:0}.blog-section article a.img-link:hover img{border-color:#336}.blog-section footer{padding-top:10px}.blog-section footer h4{float:left;text-transform:uppercase;font-size:13px;line-height:28px;padding:0 15px 0 0}.tags{list-style:none;margin:0}.tags li{display:inline-block;zoom:1;*display:inline}.tags a{padding:3px 10px;font-size:13px;text-shadow:0 1px 1px #f9f9f9;background:#e9e9e9;border:1px solid #c2c2c2}.tags a:hover{background:#336;color:#fff;text-shadow:none;border:1px solid #336}.mobile-nav{display:none}.load-more-button{display:inline-block;margin:0 20px 50px 20px;padding:10px 30px;background-color:#336;color:#fff}.load-more-button:hover{border:1px solid #336;background:#fff;color:#336}.load-more-button .spinner{left:140px;top:-8px}@media(max-width:767px){header.main-header hgroup .picture a,header.main-header nav{margin-top:30px}.blog-section article{width:400px}.blog-section article img{max-width:400px}}@media(max-width:600px){body{background:#e9e9e9 url('/static/imgs/b.png');overflow-x:hidden}.mobile-nav{display:block;position:fixed;top:0;height:45px;width:100%;z-index:3000;background:#e9e9e9 url('/static/imgs/b.png');border-top:3px solid #336;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.25)}.mobile-nav h3{float:right;padding:10px}.mobile-nav h3 a{border-bottom:0;font-weight:bold;color:#404040;text-shadow:0 1px 1px #f9f9f9}.mobile-nav .nav-btn{float:left;padding:7px 10px 4px;margin:8px 10px;background-color:#333;background-repeat:repeat-x;background-image:-khtml-gradient(linear,left top,left bottom,from(#404040),to(#333));background-image:-moz-linear-gradient(top,#404040,#333);background-image:-ms-linear-gradient(top,#404040,#333);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#404040),color-stop(100%,#333));background-image:-webkit-linear-gradient(top,#404040,#333);background-image:-o-linear-gradient(top,#404040,#333);background-image:linear-gradient(top,#404040,#333);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#404040',endColorstr='#333333',GradientType=0);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px #f9f9f9;-moz-box-shadow:0 1px 1px #f9f9f9;box-shadow:0 1px 1px #f9f9f9}.mobile-nav .nav-btn-bar{display:block;width:18px;height:2px;margin-bottom:3px;background-color:#f9f9f9;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,0.25);box-shadow:0 1px 0 rgba(0,0,0,0.25)}header.main-header{position:absolute}header.main-header hgroup .picture a{margin:60px 0 10px 10px}header.main-header hgroup h1{font-size:18px;margin:0 10px}header.main-header hgroup h2{margin:0 10px 10px 10px}header.main-header nav{margin:20px 0}header.main-header .fork-me{display:none}.main-section{margin:45px 0 0 0;position:relative;min-height:500px;left:0;z-index:2000;background-color:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.25);-webkit-transition:left .3s ease-out;-moz-transition:left .3s ease-out;-o-transition:left .3s ease-out;transition:left .3s ease-out}.main-section.nav-opened{left:240px}.blog-section hgroup h2,.blog-section hgroup h1{font-size:24px;line-height:30px;font-weight:500;margin:10px 0 5px 0}.blog-section hgroup h3 a{position:static;margin:0;padding:5px 0;border:0;font-weight:300}.blog-section article{width:95%;padding:10px 10px 30px;border-bottom:1px solid #c2c2c2}.blog-section article img{max-width:300px}.blog-section .loading{padding:15px}.modal-backdrop{z-index:3500}.modal{position:absolute;width:100%;height:1500px;z-index:4000;top:45px}.modal.fade-large{width:100%}.modal.fade.in,.modal.fade-large.in{left:0}.profile.twitter,.profile.github,.profile.dribbble,.profile.instagram{overflow:scroll}.profile-info .btn{position:static;margin-top:5px}.shots-likes-received,.shots-likes-given{display:none}.profile-shots{padding:10px 0}.profile-shots>li{margin:0 0 20px 10px;width:280px}.profile-shots img{width:280px;height:210px}.instagram .profile-shot img{width:280px;height:280px}} \ No newline at end of file
diff --git a/syte/static/imgs/favicon.ico b/syte/static/imgs/favicon.ico
index 5b8796d..00b0459 100644
--- a/syte/static/imgs/favicon.ico
+++ b/syte/static/imgs/favicon.ico
Binary files differ
diff --git a/syte/static/imgs/ico-plusoners copy.png b/syte/static/imgs/ico-plusoners copy.png
new file mode 100644
index 0000000..43cebe6
--- /dev/null
+++ b/syte/static/imgs/ico-plusoners copy.png
Binary files differ
diff --git a/syte/static/imgs/ico-plusoners.png b/syte/static/imgs/ico-plusoners.png
new file mode 100644
index 0000000..7ed7ed2
--- /dev/null
+++ b/syte/static/imgs/ico-plusoners.png
Binary files differ
diff --git a/syte/static/imgs/ico-resharers copy.png b/syte/static/imgs/ico-resharers copy.png
new file mode 100644
index 0000000..7801e84
--- /dev/null
+++ b/syte/static/imgs/ico-resharers copy.png
Binary files differ
diff --git a/syte/static/imgs/ico-resharers.png b/syte/static/imgs/ico-resharers.png
new file mode 100644
index 0000000..97336b5
--- /dev/null
+++ b/syte/static/imgs/ico-resharers.png
Binary files differ
diff --git a/syte/static/imgs/pic.png b/syte/static/imgs/pic.png
deleted file mode 100644
index c723ab5..0000000
--- a/syte/static/imgs/pic.png
+++ /dev/null
Binary files differ
diff --git a/syte/static/imgs/twitter_pic.jpg b/syte/static/imgs/twitter_pic.jpg
deleted file mode 100644
index 6f48afd..0000000
--- a/syte/static/imgs/twitter_pic.jpg
+++ /dev/null
Binary files differ
diff --git a/syte/static/js/common.js b/syte/static/js/common.js
new file mode 100644
index 0000000..a504468
--- /dev/null
+++ b/syte/static/js/common.js
@@ -0,0 +1,48 @@
+/*
+Set of functions common for other script in this theme
+*/
+function adjustSelection(e) {
+ $(".main-nav").children("li").removeClass("sel"), $("#" + e).parent().addClass("sel")
+}
+
+function numberWithCommas(e) {
+ return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
+}
+
+function prepare_link(event, element) {
+ event.preventDefault(), event.stopPropagation();
+ return $.url(element.href.replace("/#!",""));
+}
+
+function remove_modal() {
+ $("div[id$=-profile]").modal('hide');
+ $(".modal-backdrop").modal('hide');
+}
+
+var spin_opts = {
+ lines: 9,
+ length: 5,
+ width: 2,
+ radius: 4,
+ rotate: 9,
+ color: "#4c4c4c",
+ speed: 1.5,
+ trail: 40,
+ shadow: !1,
+ hwaccel: !1,
+ className: "spinner",
+ zIndex: 2e9
+}
+
+var isMobileView = !1
+if (typeof window.matchMedia != "undefined") {
+ var mediaQuery = window.matchMedia("(max-width:799px)");
+ mediaQuery.matches && (isMobileView = !0)
+}
+$(function () {
+ $("#mobile-nav-btn")
+ .click(function () {
+ $(".main-section")
+ .toggleClass("nav-opened")
+ })
+});
diff --git a/syte/static/js/components/base.js b/syte/static/js/components/base.js
deleted file mode 100644
index 0d60276..0000000
--- a/syte/static/js/components/base.js
+++ /dev/null
@@ -1,32 +0,0 @@
-//Global configs and functions shared between js
-
-function numberWithCommas(x) {
- return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
-}
-
-require.config({
- baseUrl: "/static/",
- paths: {
- "text": "js/libs/text",
- "json": "js/libs/json"
- },
- waitSeconds: 15
-});
-
-var spin_opts = {
- lines: 9,
- length: 5,
- width: 2,
- radius: 4,
- rotate: 9,
- color: '#4c4c4c',
- speed: 1.5,
- trail: 40,
- shadow: false,
- hwaccel: false,
- className: 'spinner',
- zIndex: 2e9
-};
-
-
-
diff --git a/syte/static/js/components/blog-posts.js b/syte/static/js/components/blog-posts.js
deleted file mode 100644
index 27f8ab5..0000000
--- a/syte/static/js/components/blog-posts.js
+++ /dev/null
@@ -1,143 +0,0 @@
-
-function fetchBlogPosts(post, tag) {
- var blog_fetch_url = '/blog.json';
-
- if (post)
- blog_fetch_url = '/post/' + post;
- else if (tag)
- blog_fetch_url = '/tags/' + tag;
-
- $.getJSON(blog_fetch_url, function(blog_posts) {
- require(["text!templates/blog-post-text.html",
- "text!templates/blog-post-photo.html",
- "text!templates/blog-post-link.html",
- "text!templates/blog-post-video.html",
- "text!templates/blog-post-audio.html",
- "text!templates/blog-post-quote.html"],
-
- function(text_post_template, photo_post_template,
- link_post_template, video_post_template, audio_post_template,
- quote_post_template) {
-
- var text_template = Handlebars.compile(text_post_template);
- var photo_template = Handlebars.compile(photo_post_template);
- var link_template = Handlebars.compile(link_post_template);
- var video_template = Handlebars.compile(video_post_template);
- var audio_template = Handlebars.compile(audio_post_template);
- var quote_template = Handlebars.compile(quote_post_template);
-
- $('.loading').remove();
- $.each(blog_posts.response.posts, function(i, p) {
- p.formated_date = moment(p.date).format('MMMM DD, YYYY')
-
- if (p.type == 'text')
- $('#blog-posts').append(text_template(p));
- else if (p.type == 'photo')
- $('#blog-posts').append(photo_template(p));
- else if (p.type == 'link')
- $('#blog-posts').append(link_template(p));
- else if (p.type == 'video')
- $('#blog-posts').append(video_template(p));
- else if (p.type == 'audio')
- $('#blog-posts').append(audio_template(p));
- else if (p.type == 'quote')
- $('#blog-posts').append(quote_template(p));
-
- });
-
- setupLinks();
- adjustBlogHeaders();
- prettyPrint();
- setTimeout(setupBlogHeaderScroll, 1000);
- adjustSelection('home-link');
- });
- });
-}
-
-function adjustBlogHeaders() {
- if(isMobileView)
- return;
-
- $('.blog-section article hgroup').each(function(i, e) {
- $(e).find('h3 a').css({
- 'margin-top': '-' + ($(e).height() + 100) + 'px'
- }).addClass('adjusted');
- });
-}
-
-function setupBlogHeaderScroll() {
-
- if(isMobileView)
- return;
-
- var previousTarget,
- activeTarget,
- $window = $(window),
- offsets = [],
- targets = [],
- $posts = $('.blog-section article hgroup h3 a').each(function() {
- if (this.hash) {
- targets.push(this.hash);
- offsets.push($(this.hash).offset().top);
- }
- });
-
- function processScroll(e) {
- var scrollTop = $window.scrollTop(),
- i = offsets.length;
-
- for (i; i--;) {
- if (activeTarget != targets[i] && scrollTop > offsets[i] && (!offsets[i + 1] || scrollTop < offsets[i + 1])) {
-
- var hgroup = $(activeTarget).find("hgroup");
- var margintop = '';
- if (hgroup.length) {
- margintop = '-' + ($(hgroup[0]).height() + 100) + 'px';
- }
-
- //set current target to be absolute
- $("h3 a[href=" + activeTarget + "]").removeClass("active").css({
- position: "absolute",
- top: "auto",
- 'margin-top': margintop
- });
-
- //set new target to be fixed
- activeTarget = targets[i];
- $("h3 a[href=" + activeTarget + "]").attr('style', '').addClass("active");
- }
-
- if (activeTarget && activeTarget != targets[i] && scrollTop + 50 >= offsets[i] && (!offsets[i + 1] || scrollTop + 50 <= offsets[i + 1])) {
-
- // if it's close to the new target scroll the current target up
- $("h3 a[href=" + activeTarget + "]")
- .removeClass("active")
- .css({
- position: "absolute",
- top: ($(activeTarget).outerHeight(true) + $(activeTarget).offset().top - 50) + "px",
- bottom: "auto"
- });
- }
-
- if (activeTarget == targets[i] && scrollTop > offsets[i] - 50 && (!offsets[i + 1] || scrollTop <= offsets[i + 1] - 50)) {
- // if the current target is not fixed make it fixed.
- if (!$("h3 a[href=" + activeTarget + "]").hasClass("active")) {
- $("h3 a[href=" + activeTarget + "]").attr('style', '').addClass("active");
- }
- }
- }
- }
-
- $posts.click(function(e) {
- if (!this.hash)
- return;
- $('html, body').stop().animate({
- scrollTop: $(this.hash).offset().top
- }, 500, 'linear');
-
- processScroll();
- e.preventDefault();
- });
-
- $window.scroll(processScroll).trigger("scroll");
-}
diff --git a/syte/static/js/components/dribbble.js b/syte/static/js/components/dribbble.js
deleted file mode 100644
index 7c2ed59..0000000
--- a/syte/static/js/components/dribbble.js
+++ /dev/null
@@ -1,53 +0,0 @@
-
-function setupDribbble(url, el) {
- var href = el.href;
-
- if ($('#dribbble-profile').length > 0) {
- window.location = href;
- return;
- }
-
- var params = url.attr('path').split('/').filter(function(w) {
- if (w.length)
- return true;
- return false;
- })
-
- if (params.length == 1) {
- var username = params[0];
-
- var spinner = new Spinner(spin_opts).spin();
- $('#dribbble-link').append(spinner.el);
-
- require(["json!/dribbble/" + username, "text!templates/dribbble-view.html"],
- function(dribbble_data, dribbble_view) {
- if (dribbble_data.message || dribbble_data.length == 0) {
- window.location = href;
- return;
- }
-
- var template = Handlebars.compile(dribbble_view);
-
- var user = dribbble_data.shots[0].player;
- user.following_count = numberWithCommas(user.following_count);
- user.followers_count = numberWithCommas(user.followers_count);
- user.likes_count = numberWithCommas(user.likes_count);
-
- var template_data = {
- "user": user,
- "shots": dribbble_data.shots
- }
-
- $(template(template_data)).modal().on('hidden', function () {
- $(this).remove();
- adjustSelection('home-link');
- })
-
- spinner.stop();
- });
-
- return;
- }
-
- window.location = href;
-}
diff --git a/syte/static/js/components/github.js b/syte/static/js/components/github.js
deleted file mode 100644
index 7bad5ea..0000000
--- a/syte/static/js/components/github.js
+++ /dev/null
@@ -1,46 +0,0 @@
-
-function setupGithub(url, el) {
- var href = el.href;
-
- if ($('#github-profile').length > 0) {
- window.location = href;
- return;
- }
-
- var params = url.attr('path').split('/').filter(function(w) {
- if (w.length)
- return true;
- return false;
- })
-
- if (params.length == 1) {
- var username = params[0];
-
- var spinner = new Spinner(spin_opts).spin();
- $('#github-link').append(spinner.el);
-
- require(["json!/github/" + username, "text!templates/github-view.html"],
- function(github_data, github_view) {
- if (github_data.error || github_data.length == 0) {
- window.location = href;
- return;
- }
-
- var template = Handlebars.compile(github_view);
- github_data.user.following_count = numberWithCommas(github_data.user.following_count)
- github_data.user.followers_count = numberWithCommas(github_data.user.followers_count)
-
- $(template(github_data)).modal().on('hidden', function () {
- $(this).remove();
- adjustSelection('home-link');
- })
-
- spinner.stop();
-
- });
-
- return;
- }
-
- window.location = href;
-}
diff --git a/syte/static/js/components/instagram.js b/syte/static/js/components/instagram.js
deleted file mode 100644
index 3c6dc3a..0000000
--- a/syte/static/js/components/instagram.js
+++ /dev/null
@@ -1,66 +0,0 @@
-
-function setupInstagram(el) {
- var href = el.href;
-
- if($('#instagram-profile').length > 0) {
- window.location = href;
- return;
- }
-
- var spinner = new Spinner(spin_opts).spin();
- $('#instagram-link').append(spinner.el);
-
- require(["json!/instagram/",
- "text!templates/instagram-view.html",
- "text!templates/instagram-view-more.html"],
- function(instagram_data, instagram_view, instagram_view_more) {
- if (instagram_data.media == 0){
- window.location = href;
- return;
- }
-
- var template = Handlebars.compile(instagram_view);
-
- var user_counts = instagram_data.user['counts'];
- user_counts.media = numberWithCommas(user_counts.media);
- user_counts.followed_by = numberWithCommas(user_counts.followed_by);
- user_counts.follows = numberWithCommas(user_counts.follows);
-
- $.each(instagram_data.media, function(i, p) {
- p.formated_date = moment.unix(parseInt(p.created_time)).fromNow();
- });
-
- $(template(instagram_data)).modal().on('hidden', function () {
- $(this).remove();
- adjustSelection('home-link');
- })
-
- var more_template = Handlebars.compile(instagram_view_more);
-
- $('#load-more-pics').click(function(e) {
- next = $(this).attr('data-control-next');
-
- var spinner = new Spinner(spin_opts).spin();
- $('#load-more-pics').append(spinner.el);
-
- $.getJSON('/instagram/' + next, function(data) {
-
- $.each(data.media, function(i, p) {
- p.formated_date = moment.unix(parseInt(p.created_time)).fromNow();
- });
-
- $('.instagram .profile-shots').append(more_template(data));
-
- if (data.pagination && data.pagination['next_max_id'])
- $('#load-more-pics').attr('data-control-next', data.pagination['next_max_id']);
- else
- $('#load-more-pics').remove();
-
- spinner.stop();
- });
-
- })
-
- spinner.stop();
- });
-}
diff --git a/syte/static/js/components/links.js b/syte/static/js/components/links.js
deleted file mode 100644
index 0671f6a..0000000
--- a/syte/static/js/components/links.js
+++ /dev/null
@@ -1,67 +0,0 @@
-
-function setupLinks() {
-
- $('a').click(function(e) {
- e.preventDefault();
- e.stopPropagation();
-
- var url = $.url(this.href.replace('/#!', ''));
-
- if (this.id == 'home-link' && window.location.pathname == '/') {
- $('#github-profile').remove();
- $('#dribbble-profile').remove();
- $('#twitter-profile').remove();
- $('#instagram-profile').remove();
- $('.modal-backdrop').remove();
- adjustSelection('home-link');
- }
- else if(this.id == 'instagram-link' && instagram_integration_enabled) {
- $('#github-profile').remove();
- $('#dribbble-profile').remove();
- $('#twitter-profile').remove();
- $('.modal-backdrop').remove();
- adjustSelection('instagram-link');
-
- setupInstagram(this);
- }
- else if (twitter_integration_enabled && (url.attr('host') == 'twitter.com' || url.attr('host') == 'www.twitter.com')) {
-
- $('#github-profile').remove();
- $('#dribbble-profile').remove();
- $('#instagram-profile').remove();
- $('.modal-backdrop').remove();
- adjustSelection('twitter-link');
-
- setupTwitter(url, this);
- }
- else if (github_integration_enabled && (url.attr('host') == 'github.com' || url.attr('host') == 'www.github.com')) {
-
- $('#twitter-profile').remove();
- $('#dribbble-profile').remove();
- $('#instagram-profile').remove();
- $('.modal-backdrop').remove();
- adjustSelection('github-link');
-
- setupGithub(url, this);
- }
- else if (dribbble_integration_enabled && (url.attr('host') == 'dribbble.com' || url.attr('host') == 'www.dribbble.com')) {
-
- $('#twitter-profile').remove();
- $('#github-profile').remove();
- $('#instagram-profile').remove();
- $('.modal-backdrop').remove();
- adjustSelection('dribbble-link');
-
- setupDribbble(url, this);
- }
- else {
- window.location = this.href;
- }
- });
-}
-
-function adjustSelection(el) {
- $('.main-nav').children('li').removeClass('sel');
- $('#' + el).parent().addClass('sel');
-}
-
diff --git a/syte/static/js/components/mobile.js b/syte/static/js/components/mobile.js
deleted file mode 100644
index 4b530b3..0000000
--- a/syte/static/js/components/mobile.js
+++ /dev/null
@@ -1,15 +0,0 @@
-
-var isMobileView = false;
-var mediaQuery = window.matchMedia("(max-width:600px)");
-
-if (mediaQuery.matches) {
- isMobileView = true;
-}
-
-$(function() {
- $('#mobile-nav-btn').click(function() {
- $('.main-section').toggleClass('nav-opened');
- });
-});
-
-
diff --git a/syte/static/js/components/twitter.js b/syte/static/js/components/twitter.js
deleted file mode 100644
index 4a8bb30..0000000
--- a/syte/static/js/components/twitter.js
+++ /dev/null
@@ -1,82 +0,0 @@
-
-function setupTwitter(url, el) {
- var href = el.href;
-
- if ($('#twitter-profile').length > 0) {
- window.location = href;
- return;
- }
-
- var params = url.attr('path').split('/').filter(function(w) {
- if (w.length)
- return true;
- return false;
- })
-
- if (params.length == 1) {
- var username = params[0];
-
- var spinner = new Spinner(spin_opts).spin();
- $('#twitter-link').append(spinner.el);
-
- require(["json!/twitter/" + username, "text!templates/twitter-view.html"],
- function(twitter_data, twitter_view) {
- if (twitter_data.error || twitter_data.length == 0) {
- window.location = href;
- return;
- }
-
- var template = Handlebars.compile(twitter_view);
-
- var tweets = [];
- $.each(twitter_data, function(i, t) {
- if (i > 3)
- return;
-
- //'ddd MMM DD HH:mm:ss ZZ YYYY'
- t.formated_date = moment(t.created_at).fromNow();
- t.f_text = twitterLinkify(t.text);
- tweets.push(t);
- });
-
- var user = twitter_data[0].user;
- user.statuses_count = numberWithCommas(user.statuses_count);
- user.friends_count = numberWithCommas(user.friends_count);
- user.followers_count = numberWithCommas(user.followers_count);
- user.f_description = twitterLinkify(user.description);
-
- var template_data = {
- "user": user,
- "tweets": tweets
- }
-
- $(template(template_data)).modal().on('hidden', function () {
- $(this).remove();
- adjustSelection('home-link');
- })
-
- spinner.stop();
- });
-
- return;
- }
-
- window.location = href;
-}
-
-function twitterLinkify(text) {
- text = text.replace(/(https?:\/\/\S+)/gi, function (s) {
- return '<a href="' + s + '">' + s + '</a>';
- });
-
- text = text.replace(/(^|) @(\w+)/gi, function (s) {
- return '<a href="http://twitter.com/' + s + '">' + s + '</a>';
- });
-
- text = text.replace(/(^|) #(\w+)/gi, function (s) {
- return '<a href="http://search.twitter.com/search?q=' + s.replace(/#/,'%23') + '">' + s + '</a>';
- });
-
- return text;
-}
-
diff --git a/syte/static/js/libs/github.js b/syte/static/js/libs/github.js
new file mode 100644
index 0000000..dfb12fb
--- /dev/null
+++ b/syte/static/js/libs/github.js
@@ -0,0 +1,92 @@
+/*
+UI functions dedicated to the Github modal panel
+*/
+
+var github_api_user = 'https://api.github.com/users/';
+var github_api_repos = '/repos';
+
+var spinner = (new Spinner(spin_opts)).spin();
+var template = null;
+var url = null;
+var github_data = {};
+
+$('a[id^="Github-link"]').click(function (e)
+{
+ var url = prepare_link(e, this);
+ adjustSelection("Github-link");
+ remove_modal();
+ showGithub(url, this);
+});
+
+function showGithub(e, t) {
+ url = t.href;
+ var github_profile = $("#github-profile");
+ if (github_profile.length > 0) {
+ github_profile.modal('show');
+ }
+ else {
+ $("#Github-link").append(spinner.el);
+
+ $.get('/theme/templates/github-view.html', function(data) {
+ // Request succeeded, data contains HTML template, we can load data
+ template = Handlebars.compile(data);
+ var user_url = github_api_user+github_username;
+
+ try {
+ $.ajax({
+ url: user_url,
+ dataType: "jsonp",
+ jsonpCallback: "readGithubData",
+ error: function(s, statusCode, errorThrown) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ });
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ })
+ .error(function() {
+ window.location.href = url;
+ spinner.stop();
+ });
+ }
+}
+
+function readGithubData(user) {
+ try {
+ github_data['user'] = user.data
+
+ var repos_url = github_api_user+github_username+github_api_repos;
+ $.ajax({
+ url: repos_url,
+ dataType: "jsonp",
+ jsonpCallback: "readRepositories",
+ error: function(s, statusCode, errorThrown) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ });
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+}
+
+function readRepositories(repos) {
+ try {
+ github_data['repositories'] = repos.data
+
+ var html = template(github_data);
+ $('body').append(html);
+ $("#github-profile").modal();
+ spinner.stop();
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+}
diff --git a/syte/static/js/libs/google+.js b/syte/static/js/libs/google+.js
new file mode 100644
index 0000000..3647216
--- /dev/null
+++ b/syte/static/js/libs/google+.js
@@ -0,0 +1,86 @@
+/*
+UI functions dedicated to the Google+ modal panel
+*/
+
+var gplus_api_user = 'https://www.googleapis.com/plus/v1/people/';
+var gplus_api_posts = '/activities/public?maxResults=20';
+var gplus_api_access = 'key='
+
+var url = null;
+
+$('a[id^="Google-link"]').click(function (e)
+{
+ var url = prepare_link(e, this);
+ adjustSelection("Google-link");
+ remove_modal();
+ showGoogle(url, this);
+});
+
+function showGoogle(e, t) {
+ url = t.href;
+ var google_profile = $("#google-profile");
+ if (google_profile.length > 0) {
+ google_profile.modal('show');
+ }
+ else {
+ var spinner = (new Spinner(spin_opts)).spin();
+
+ $("#Google-link").append(spinner.el);
+
+ $.get('/theme/templates/google-view.html', function(data) {
+ // Request succeeded, data contains HTML template, we can load data
+ var template = Handlebars.compile(data);
+ var google_data = {};
+ var user_url = gplus_api_user+google_username+'?'+gplus_api_access+google_accesskey;
+
+ try {
+ $.get(user_url, function(user) {
+ google_data['user'] = user
+
+ var posts_url = gplus_api_user+google_username+gplus_api_posts+'&'+gplus_api_access+google_accesskey;
+ $.get(posts_url, function(data) {
+ var posts = data.items;
+ var index = 0;
+ while(index < posts.length) {
+ var post = posts[index];
+ if(post.title == "") {
+ posts.splice(index,1)
+ }
+ else {
+ post.published = moment(post.published).fromNow();
+ post.plusoners = numberWithCommas(post.object.plusoners.totalItems);
+ post.resharers = numberWithCommas(post.object.resharers.totalItems);
+ if(typeof post.placeName !== "undefined" && post.placeName != "") {
+ post.title = post.title+" (@"+post.placeName+")";
+ }
+ index++;
+ }
+ }
+ google_data['posts'] = posts
+
+ var html = template(google_data);
+ $('body').append(html);
+ $("#google-profile").modal();
+ spinner.stop();
+ })
+ .error(function() {
+ window.location.href = url;
+ spinner.stop();
+ });
+ })
+ .error(function() {
+ window.location.href = url;
+ spinner.stop();
+ });
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ })
+ .error(function() {
+ window.location.href = url;
+ spinner.stop();
+ });
+ }
+}
diff --git a/syte/static/js/libs/instagram.js b/syte/static/js/libs/instagram.js
new file mode 100644
index 0000000..5b22fea
--- /dev/null
+++ b/syte/static/js/libs/instagram.js
@@ -0,0 +1,103 @@
+/*
+UI functions dedicated to the Instagram modal panel
+*/
+
+var instagram_api_user = 'https://api.instagram.com/v1/users/';
+var instagram_api_media = '/media/recent';
+var instagram_api_token = '/?access_token=';
+
+var url = null;
+var spinner = (new Spinner(spin_opts)).spin();
+var template = null;
+var instagram_data = {};
+
+$('a[id^="Instagram-link"]').click(function (e)
+{
+ var url = prepare_link(e, this);
+ adjustSelection("Instagram-link");
+ remove_modal();
+ showInstagram(url, this);
+});
+
+function showInstagram(e, t) {
+ url = t.href;
+ var instagram_profile = $("#instagram-profile");
+ if (instagram_profile.length > 0) {
+ instagram_profile.modal('show');
+ }
+ else {
+ $("#Instagram-link").append(spinner.el);
+
+ $.get('/theme/templates/instagram-view.html', function(data) {
+ // Request succeeded, data contains HTML template, we can load data
+ template = Handlebars.compile(data);
+ var user_url = instagram_api_user+instagram_username+instagram_api_token+instagram_accesskey;
+
+ try {
+ $.ajax({
+ url: user_url,
+ dataType: "jsonp",
+ jsonpCallback: "readInstagramData",
+ error: function(s, statusCode, errorThrown) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ });
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ })
+ .error(function() {
+ window.location.href = url;
+ spinner.stop();
+ });
+ }
+}
+
+function readInstagramData(result) {
+ try {
+ var user = result.data;
+ user.media = numberWithCommas( user.counts.media );
+ user.followed_by = numberWithCommas( user.counts.followed_by );
+ user.follows = numberWithCommas( user.counts.follows );
+ user.url = url;
+ instagram_data['user'] = user
+
+ var posts_url = instagram_api_user+instagram_username+instagram_api_media+instagram_api_token+instagram_accesskey;
+ $.ajax({
+ url: posts_url,
+ dataType: "jsonp",
+ jsonpCallback: "readPictures",
+ error: function(s, statusCode, errorThrown) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ });
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+}
+
+function readPictures(result) {
+ try {
+ var posts = result.data;
+ for(var index = 0; index < posts.length; index++) {
+ var post = posts[index];
+ post.formated_date = moment.unix( parseInt( post.created_time ) ).fromNow();
+ }
+ instagram_data['media'] = posts
+
+ var html = template(instagram_data);
+ $('body').append(html);
+ $("#instagram-profile").modal();
+ spinner.stop();
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+}
diff --git a/syte/static/js/libs/jquery-1.7.2.min.js b/syte/static/js/libs/jquery-1.7.2.min.js
new file mode 100644
index 0000000..5627896
--- /dev/null
+++ b/syte/static/js/libs/jquery-1.7.2.min.js
@@ -0,0 +1,4 @@
+/*! jQuery v1.7.2 jquery.com | jquery.org/license */
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function b_(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bD.test(a)?d(a,e):b_(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&f.type(b)==="object")for(var e in b)b_(a+"["+e+"]",b[e],c,d);else d(a,b)}function b$(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bZ(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bS,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bZ(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bZ(a,c,d,e,"*",g));return l}function bY(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bO),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?1:0,g=4;if(d>0){if(c!=="border")for(;e<g;e+=2)c||(d-=parseFloat(f.css(a,"padding"+bx[e]))||0),c==="margin"?d+=parseFloat(f.css(a,c+bx[e]))||0:d-=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0;return d+"px"}d=by(a,b);if(d<0||d==null)d=a.style[b];if(bt.test(d))return d;d=parseFloat(d)||0;if(c)for(;e<g;e+=2)d+=parseFloat(f.css(a,"padding"+bx[e]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+bx[e]))||0);return d+"px"}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;b.nodeType===1&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?b.outerHTML=a.outerHTML:c!=="input"||a.type!=="checkbox"&&a.type!=="radio"?c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(f.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c,i[c][d])}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h,i){var j,k=d==null,l=0,m=a.length;if(d&&typeof d=="object"){for(l in d)e.access(a,c,l,d[l],1,h,f);g=1}else if(f!==b){j=i===b&&e.isFunction(f),k&&(j?(j=c,c=function(a,b,c){return j.call(e(a),c)}):(c.call(a,f),c=null));if(c)for(;l<m;l++)c(a[l],d,j?f.call(a[l],l,c(a[l],d)):f,i);g=1}return g?a:k?c.call(a):m?c(a[0],d):h},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m,n=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?n(g):h==="function"&&(!a.unique||!p.has(g))&&c.push(g)},o=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,j=!0,m=k||0,k=0,l=c.length;for(;c&&m<l;m++)if(c[m].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}j=!1,c&&(a.once?e===!0?p.disable():c=[]:d&&d.length&&(e=d.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){j&&f<=l&&(l--,f<=m&&m--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&p.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));return this},fire:function(){p.fireWith(this,arguments);return this},fired:function(){return!!i}};return p};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p=c.createElement("div"),q=c.documentElement;p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="<div "+n+"display:block;'><div style='"+t+"0;display:block;overflow:hidden;'></div></div>"+"<table "+n+"' cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="<table><tr><td style='"+t+"0;display:none'></td><td>t</td></tr></table>",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="<div style='width:5px;'></div>",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h,i,j=this[0],k=0,m=null;if(a===b){if(this.length){m=f.data(j);if(j.nodeType===1&&!f._data(j,"parsedAttrs")){g=j.attributes;for(i=g.length;k<i;k++)h=g[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),l(j,h,m[h]));f._data(j,"parsedAttrs",!0)}}return m}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!";return f.access(this,function(c){if(c===b){m=this.triggerHandler("getData"+e,[d[0]]),m===b&&j&&(m=f.data(j,a),m=l(j,a,m));return m===b&&d[1]?this.data(d[0]):m}d[1]=c,this.each(function(){var b=f(this);b.triggerHandler("setData"+e,d),f.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length<d)return f.queue(this[0],a);return c===b?this:this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise(c)}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i<g;i++)e=d[i],e&&(c=f.propFix[e]||e,h=u.test(e),h||f.attr(a,e,""),a.removeAttribute(v?e:c),h&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(
+a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:g&&G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=f.event.special[c.type]||{},j=[],k,l,m,n,o,p,q,r,s,t,u;g[0]=c,c.delegateTarget=this;if(!i.preDispatch||i.preDispatch.call(this,c)!==!1){if(e&&(!c.button||c.type!=="click")){n=f(this),n.context=this.ownerDocument||this;for(m=c.target;m!=this;m=m.parentNode||this)if(m.disabled!==!0){p={},r=[],n[0]=m;for(k=0;k<e;k++)s=d[k],t=s.selector,p[t]===b&&(p[t]=s.quick?H(m,s.quick):n.is(t)),p[t]&&r.push(s);r.length&&j.push({elem:m,matches:r})}}d.length>e&&j.push({elem:this,matches:d.slice(e)});for(k=0;k<j.length&&!c.isPropagationStopped();k++){q=j[k],c.currentTarget=q.elem;for(l=0;l<q.matches.length&&!c.isImmediatePropagationStopped();l++){s=q.matches[l];if(h||!c.namespace&&!s.namespace||c.namespace_re&&c.namespace_re.test(s.namespace))c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))}}i.postDispatch&&i.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),d._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9||d===11){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.globalPOS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")[\\s/>]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f
+.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(g){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1></$2>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]==="<table>"&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i<u;i++)bn(l[i]);else bn(l);l.nodeType?j.push(l):j=f.merge(j,l)}if(d){g=function(a){return!a.type||be.test(a.type)};for(k=0;j[k];k++){h=j[k];if(e&&f.nodeName(h,"script")&&(!h.type||be.test(h.type)))e.push(h.parentNode?h.parentNode.removeChild(h):h);else{if(h.nodeType===1){var v=f.grep(h.getElementsByTagName("script"),g);j.splice.apply(j,[k+1,0].concat(v))}d.appendChild(h)}}}return j},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^[\-+]?(?:\d*\.)?\d+$/i,bt=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,bu=/^([\-+])=([\-+.\de]+)/,bv=/^margin/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Top","Right","Bottom","Left"],by,bz,bA;f.fn.css=function(a,c){return f.access(this,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)},a,c,arguments.length>1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),(e===""&&f.css(d,"display")==="none"||!f.contains(d.ownerDocument.documentElement,d))&&f._data(d,"olddisplay",cu(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ct("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(ct("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o,p,q;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]);if((k=f.cssHooks[g])&&"expand"in k){l=k.expand(a[g]),delete a[g];for(i in l)i in a||(a[i]=l[i])}}for(g in a){h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cm.test(h)?(q=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),q?(f._data(this,"toggle"+i,q==="show"?"hide":"show"),j[q]()):j[h]()):(m=cn.exec(h),n=j.cur(),m?(o=parseFloat(m[2]),p=m[3]||(f.cssNumber[i]?"":"px"),p!=="px"&&(f.style(this,i,(o||1)+p),n=(o||1)/j.cur()*n,f.style(this,i,n+p)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),j.custom(n,o,p)):j.custom(n,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+.5}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cq||cr(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){f._data(e.elem,"fxshow"+e.prop)===b&&(e.options.hide?f._data(e.elem,"fxshow"+e.prop,e.start):e.options.show&&f._data(e.elem,"fxshow"+e.prop,e.end))},h()&&f.timers.push(h)&&!co&&(co=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(cp.concat.apply([],cp),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cv,cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?cv=function(a,b,c,d){try{d=a.getBoundingClientRect()}catch(e){}if(!d||!f.contains(c,a))return d?{top:d.top,left:d.left}:{top:0,left:0};var g=b.body,h=cy(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||f.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||f.support.boxModel&&c.scrollLeft||g.scrollLeft,m=d.top+k-i,n=d.left+l-j;return{top:m,left:n}}:cv=function(a,b,c){var d,e=a.offsetParent,g=a,h=b.body,i=b.defaultView,j=i?i.getComputedStyle(a,null):a.currentStyle,k=a.offsetTop,l=a.offsetLeft;while((a=a.parentNode)&&a!==h&&a!==c){if(f.support.fixedPosition&&j.position==="fixed")break;d=i?i.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,l-=a.scrollLeft,a===e&&(k+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(a.nodeName))&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),g=e,e=a.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),j=d}if(j.position==="relative"||j.position==="static")k+=h.offsetTop,l+=h.offsetLeft;f.support.fixedPosition&&j.position==="fixed"&&(k+=Math.max(c.scrollTop,h.scrollTop),l+=Math.max(c.scrollLeft,h.scrollLeft));return{top:k,left:l}},f.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){f.offset.setOffset(this,a,b)});var c=this[0],d=c&&c.ownerDocument;if(!d)return null;if(c===d.body)return f.offset.bodyOffset(c);return cv(c,d,d.documentElement)},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
diff --git a/syte/static/js/libs/twitter.js b/syte/static/js/libs/twitter.js
new file mode 100644
index 0000000..2b61c3d
--- /dev/null
+++ b/syte/static/js/libs/twitter.js
@@ -0,0 +1,112 @@
+/*
+UI functions dedicated to the Twitter modal panel
+*/
+
+var twitter_api_user = 'https://twitter.com/users/';
+var twitter_api_timeline = 'https://api.twitter.com/1/statuses/user_timeline.json?screen_name=';
+var twitter_api_json = '.json';
+
+var spinner = (new Spinner(spin_opts)).spin();
+var template = null;
+var url = null;
+var twitter_data = {};
+
+$('a[id^="Twitter-link"]').click(function (e)
+{
+ var url = prepare_link(e, this);
+ adjustSelection("Twitter-link");
+ remove_modal();
+ showTwitter(url, this);
+});
+
+function showTwitter(e, t) {
+ url = t.href;
+ var twitter_profile = $("#twitter-profile");
+ if (twitter_profile.length > 0) {
+ twitter_profile.modal('show');
+ }
+ else {
+ $("#Twitter-link").append(spinner.el);
+
+ $.get('/theme/templates/twitter-view.html', function(data) {
+ // Request succeeded, data contains HTML template, we can load data
+ template = Handlebars.compile(data);
+ var user_url = twitter_api_user+twitter_username+twitter_api_json;
+
+ try {
+ $.ajax({
+ url: user_url,
+ dataType: "jsonp",
+ jsonpCallback: "readTwitterData",
+ error: function(s, statusCode, errorThrown) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ });
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ })
+ .error(function() {
+ window.location.href = url;
+ spinner.stop();
+ });
+ }
+}
+
+function readTwitterData(user) {
+ try {
+ user.statuses_count = numberWithCommas(user.statuses_count);
+ user.friends_count = numberWithCommas(user.friends_count);
+ user.followers_count = numberWithCommas(user.followers_count);
+ user.description = twitterLinkify(user.description);
+ twitter_data['user'] = user
+
+ var tweets_url = twitter_api_timeline+twitter_username;
+ $.ajax({
+ url: tweets_url,
+ dataType: "jsonp",
+ jsonpCallback: "readTweets",
+ error: function(s, statusCode, errorThrown) {
+ window.location.href = url;
+ spinner.stop();
+ }
+ });
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+}
+
+function readTweets(tweets) {
+ try {
+ for(var index = 0 ; index < tweets.length ; index++) {
+ var tweet = tweets[index];
+ tweet.formated_date = moment(tweet.created_at).fromNow();
+ tweet.text = twitterLinkify(tweet.text);
+ }
+ twitter_data['tweets'] = tweets
+
+ var html = template(twitter_data);
+ $('body').append(html);
+ $("#twitter-profile").modal();
+ spinner.stop();
+ }
+ catch (err) {
+ window.location.href = url;
+ spinner.stop();
+ }
+}
+
+function twitterLinkify(e) {
+ return e = e.replace(/(https?:\/\/\S+)/gi, function (e) {
+ return '<a href="' + e + '">' + e + "</a>"
+ }), e = e.replace(/(^|) @(\w+)/gi, function (e) {
+ return '<a href="http://twitter.com/' + e + '">' + e + "</a>"
+ }), e = e.replace(/(^|) #(\w+)/gi, function (e) {
+ return '<a href="http://search.twitter.com/search?q=' + e.replace(/#/, "%23") + '">' + e + "</a>"
+ }), e
+}
diff --git a/syte/static/js/min/scripts.min.js b/syte/static/js/min/scripts.min.js
deleted file mode 100644
index a732d8d..0000000
--- a/syte/static/js/min/scripts.min.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
- * JQuery URL Parser plugin
- * Developed and maintanined by Mark Perkins, mark@allmarkedup.com
- * Source repository: https://github.com/allmarkedup/jQuery-URL-Parser
- * Licensed under an MIT-style license. See https://github.com/allmarkedup/jQuery-URL-Parser/blob/master/LICENSE for details.
- */function numberWithCommas(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function fetchBlogPosts(e,t){var n="/blog.json";e?n="/post/"+e:t&&(n="/tags/"+t),$.getJSON(n,function(e){require(["text!templates/blog-post-text.html","text!templates/blog-post-photo.html","text!templates/blog-post-link.html","text!templates/blog-post-video.html","text!templates/blog-post-audio.html","text!templates/blog-post-quote.html"],function(t,n,r,i,s,o){var u=Handlebars.compile(t),a=Handlebars.compile(n),f=Handlebars.compile(r),l=Handlebars.compile(i),c=Handlebars.compile(s),h=Handlebars.compile(o);$(".loading").remove(),$.each(e.response.posts,function(e,t){t.formated_date=moment(t.date).format("MMMM DD, YYYY"),t.type=="text"?$("#blog-posts").append(u(t)):t.type=="photo"?$("#blog-posts").append(a(t)):t.type=="link"?$("#blog-posts").append(f(t)):t.type=="video"?$("#blog-posts").append(l(t)):t.type=="audio"?$("#blog-posts").append(c(t)):t.type=="quote"&&$("#blog-posts").append(h(t))}),setupLinks(),adjustBlogHeaders(),prettyPrint(),setTimeout(setupBlogHeaderScroll,1e3),adjustSelection("home-link")})})}function adjustBlogHeaders(){if(isMobileView)return;$(".blog-section article hgroup").each(function(e,t){$(t).find("h3 a").css({"margin-top":"-"+($(t).height()+100)+"px"}).addClass("adjusted")})}function setupBlogHeaderScroll(){function o(e){var s=n.scrollTop(),o=r.length;for(o;o--;){if(t!=i[o]&&s>r[o]&&(!r[o+1]||s<r[o+1])){var u=$(t).find("hgroup"),a="";u.length&&(a="-"+($(u[0]).height()+100)+"px"),$("h3 a[href="+t+"]").removeClass("active").css({position:"absolute",top:"auto","margin-top":a}),t=i[o],$("h3 a[href="+t+"]").attr("style","").addClass("active")}t&&t!=i[o]&&s+50>=r[o]&&(!r[o+1]||s+50<=r[o+1])&&$("h3 a[href="+t+"]").removeClass("active").css({position:"absolute",top:$(t).outerHeight(!0)+$(t).offset().top-50+"px",bottom:"auto"}),t==i[o]&&s>r[o]-50&&(!r[o+1]||s<=r[o+1]-50)&&($("h3 a[href="+t+"]").hasClass("active")||$("h3 a[href="+t+"]").attr("style","").addClass("active"))}}if(isMobileView)return;var e,t,n=$(window),r=[],i=[],s=$(".blog-section article hgroup h3 a").each(function(){this.hash&&(i.push(this.hash),r.push($(this.hash).offset().top))});s.click(function(e){if(!this.hash)return;$("html, body").stop().animate({scrollTop:$(this.hash).offset().top},500,"linear"),o(),e.preventDefault()}),n.scroll(o).trigger("scroll")}function setupLinks(){$("a").click(function(e){e.preventDefault(),e.stopPropagation();var t=$.url(this.href.replace("/#!",""));this.id=="home-link"&&window.location.pathname=="/"?($("#github-profile").remove(),$("#dribbble-profile").remove(),$("#twitter-profile").remove(),$("#instagram-profile").remove(),$(".modal-backdrop").remove(),adjustSelection("home-link")):this.id=="instagram-link"&&instagram_integration_enabled?($("#github-profile").remove(),$("#dribbble-profile").remove(),$("#twitter-profile").remove(),$(".modal-backdrop").remove(),adjustSelection("instagram-link"),setupInstagram(this)):!twitter_integration_enabled||t.attr("host")!="twitter.com"&&t.attr("host")!="www.twitter.com"?!github_integration_enabled||t.attr("host")!="github.com"&&t.attr("host")!="www.github.com"?!dribbble_integration_enabled||t.attr("host")!="dribbble.com"&&t.attr("host")!="www.dribbble.com"?window.location=this.href:($("#twitter-profile").remove(),$("#github-profile").remove(),$("#instagram-profile").remove(),$(".modal-backdrop").remove(),adjustSelection("dribbble-link"),setupDribbble(t,this)):($("#twitter-profile").remove(),$("#dribbble-profile").remove(),$("#instagram-profile").remove(),$(".modal-backdrop").remove(),adjustSelection("github-link"),setupGithub(t,this)):($("#github-profile").remove(),$("#dribbble-profile").remove(),$("#instagram-profile").remove(),$(".modal-backdrop").remove(),adjustSelection("twitter-link"),setupTwitter(t,this))})}function adjustSelection(e){$(".main-nav").children("li").removeClass("sel"),$("#"+e).parent().addClass("sel")}function setupTwitter(e,t){var n=t.href;if($("#twitter-profile").length>0){window.location=n;return}var r=e.attr("path").split("/").filter(function(e){return e.length?!0:!1});if(r.length==1){var i=r[0],s=(new Spinner(spin_opts)).spin();$("#twitter-link").append(s.el),require(["json!/twitter/"+i,"text!templates/twitter-view.html"],function(e,t){if(e.error||e.length==0){window.location=n;return}var r=Handlebars.compile(t),i=[];$.each(e,function(e,t){if(e>3)return;t.formated_date=moment(t.created_at).fromNow(),t.f_text=twitterLinkify(t.text),i.push(t)});var o=e[0].user;o.statuses_count=numberWithCommas(o.statuses_count),o.friends_count=numberWithCommas(o.friends_count),o.followers_count=numberWithCommas(o.followers_count),o.f_description=twitterLinkify(o.description);var u={user:o,tweets:i};$(r(u)).modal().on("hidden",function(){$(this).remove(),adjustSelection("home-link")}),s.stop()});return}window.location=n}function twitterLinkify(e){return e=e.replace(/(https?:\/\/\S+)/gi,function(e){return'<a href="'+e+'">'+e+"</a>"}),e=e.replace(/(^|) @(\w+)/gi,function(e){return'<a href="http://twitter.com/'+e+'">'+e+"</a>"}),e=e.replace(/(^|) #(\w+)/gi,function(e){return'<a href="http://search.twitter.com/search?q='+e.replace(/#/,"%23")+'">'+e+"</a>"}),e}function setupGithub(e,t){var n=t.href;if($("#github-profile").length>0){window.location=n;return}var r=e.attr("path").split("/").filter(function(e){return e.length?!0:!1});if(r.length==1){var i=r[0],s=(new Spinner(spin_opts)).spin();$("#github-link").append(s.el),require(["json!/github/"+i,"text!templates/github-view.html"],function(e,t){if(e.error||e.length==0){window.location=n;return}var r=Handlebars.compile(t);e.user.following_count=numberWithCommas(e.user.following_count),e.user.followers_count=numberWithCommas(e.user.followers_count),$(r(e)).modal().on("hidden",function(){$(this).remove(),adjustSelection("home-link")}),s.stop()});return}window.location=n}function setupInstagram(e){var t=e.href;if($("#instagram-profile").length>0){window.location=t;return}var n=(new Spinner(spin_opts)).spin();$("#instagram-link").append(n.el),require(["json!/instagram/","text!templates/instagram-view.html","text!templates/instagram-view-more.html"],function(e,r,i){if(e.media==0){window.location=t;return}var s=Handlebars.compile(r),o=e.user.counts;o.media=numberWithCommas(o.media),o.followed_by=numberWithCommas(o.followed_by),o.follows=numberWithCommas(o.follows),$.each(e.media,function(e,t){t.formated_date=moment.unix(parseInt(t.created_time)).fromNow()}),$(s(e)).modal().on("hidden",function(){$(this).remove(),adjustSelection("home-link")});var u=Handlebars.compile(i);$("#load-more-pics").click(function(e){next=$(this).attr("data-control-next");var t=(new Spinner(spin_opts)).spin();$("#load-more-pics").append(t.el),$.getJSON("/instagram/"+next,function(e){$.each(e.media,function(e,t){t.formated_date=moment.unix(parseInt(t.created_time)).fromNow()}),$(".instagram .profile-shots").append(u(e)),e.pagination&&e.pagination.next_max_id?$("#load-more-pics").attr("data-control-next",e.pagination.next_max_id):$("#load-more-pics").remove(),t.stop()})}),n.stop()})}(function(e,t){function a(e,t){var n=decodeURI(e),i=s[t||!1?"strict":"loose"].exec(n),a={attr:{},param:{},seg:{}},f=14;while(f--)a.attr[r[f]]=i[f]||"";return a.param.query={},a.param.fragment={},a.attr.query.replace(o,function(e,t,n){t&&(a.param.query[t]=n)}),a.attr.fragment.replace(u,function(e,t,n){t&&(a.param.fragment[t]=n)}),a.seg.path=a.attr.path.replace(/^\/+|\/+$/g,"").split("/"),a.seg.fragment=a.attr.fragment.replace(/^\/+|\/+$/g,"").split("/"),a.attr.base=a.attr.host?a.attr.protocol+"://"+a.attr.host+(a.attr.port?":"+a.attr.port:""):"",a}function f(e){var r=e.tagName;return r!==t?n[r.toLowerCase()]:r}var n={a:"href",img:"src",form:"action",base:"href",script:"src",iframe:"src",link:"href"},r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],i={anchor:"fragment"},s={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},o=/(?:^|&|;)([^&=;]*)=?([^&;]*)/g,u=/(?:^|&|;)([^&=;]*)=?([^&;]*)/g;e.fn.url=function(t){var n="";return this.length&&(n=e(this).attr(f(this[0]))||""),e.url(n,t)},e.url=function(e,n){return arguments.length===1&&e===!0&&(n=!0,e=t),n=n||!1,e=e||window.location.toString(),{data:a(e,n),attr:function(e){return e=i[e]||e,e!==t?this.data.attr[e]:this.data.attr},param:function(e){return e!==t?this.data.param.query[e]:this.data.param.query},fparam:function(e){return e!==t?this.data.param.fragment[e]:this.data.param.fragment},segment:function(e){return e===t?this.data.seg.path:(e=e<0?this.data.seg.path.length+e:e-1,this.data.seg.path[e])},fsegment:function(e){return e===t?this.data.seg.fragment:(e=e<0?this.data.seg.fragment.length+e:e-1,this.data.seg.fragment[e])}}}})(jQuery);var requirejs,require,define;(function(r){function K(e){return O.call(e)==="[object Function]"}function G(e){return O.call(e)==="[object Array]"}function $(e,t,n){for(var r in t)!(r in L)&&(!(r in e)||n)&&(e[r]=t[r]);return d}function P(e,t,n){return e=Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e),n&&(e.originalError=n),e}function aa(e,t,n){var r,i,s;for(r=0;s=t[r];r++)s=typeof s=="string"?{name:s}:s,i=s.location,n&&(!i||i.indexOf("/")!==0&&i.indexOf(":")===-1)&&(i=n+"/"+(i||s.name)),e[s.name]={name:s.name,location:i||s.name,main:(s.main||"main").replace(fa,"").replace(ba,"")}}function V(e,t){e.holdReady?e.holdReady(t):t?e.readyWait+=1:e.ready(!0)}function ga(e){function t(e,t){var n,r;if(e&&e.charAt(0)===".")if(t){E.pkgs[t]?t=[t]:(t=t.split("/"),t=t.slice(0,t.length-1)),n=e=t.concat(e.split("/"));var i;for(r=0;i=n[r];r++)if(i===".")n.splice(r,1),r-=1;else if(i===".."){if(r===1&&(n[2]===".."||n[0]===".."))break;r>0&&(n.splice(r-1,2),r-=2)}r=E.pkgs[n=e[0]],e=e.join("/"),r&&e===n+"/"+r.main&&(e=n)}else e.indexOf("./")===0&&(e=e.substring(2));return e}function n(e,n){var r=e?e.indexOf("!"):-1,i=null,s=n?n.name:null,o=e,u,a;return r!==-1&&(i=e.substring(0,r),e=e.substring(r+1,e.length)),i&&(i=t(i,s)),e&&(i?u=(r=N[i])&&r.normalize?r.normalize(e,function(e){return t(e,s)}):t(e,s):(u=t(e,s),a=T[u],a||(a=b.nameToUrl(e,null,n),T[u]=a))),{prefix:i,name:u,parentMap:n,url:a,originalName:o,fullName:i?i+"!"+(u||""):u}}function i(){var e=!0,t=E.priorityWait,n,r;if(t){for(r=0;n=t[r];r++)if(!C[n]){e=!1;break}e&&delete E.priorityWait}return e}function s(e,t,n){return function(){var r=ha.call(arguments,0),i;return n&&K(i=r[r.length-1])&&(i.__requireJsBuild=!0),r.push(t),e.apply(null,r)}}function o(e,t,n){return t=s(n||b.require,e,t),$(t,{nameToUrl:s(b.nameToUrl,e),toUrl:s(b.toUrl,e),defined:s(b.requireDefined,e),specified:s(b.requireSpecified,e),isBrowser:d.isBrowser}),t}function u(e){var t,i,s,o=e.callback,u=e.map,a=u.fullName,f=e.deps;s=e.listeners;var l=E.requireExecCb||d.execCb;if(o&&K(o)){if(E.catchError.define)try{i=l(a,e.callback,f,N[a])}catch(c){t=c}else i=l(a,e.callback,f,N[a]);a&&((o=e.cjsModule)&&o.exports!==r&&o.exports!==N[a]?i=N[a]=e.cjsModule.exports:i===r&&e.usingExports?i=N[a]:(N[a]=i,H[a]&&(B[a]=!0)))}else a&&(i=N[a]=o,H[a]&&(B[a]=!0));k[e.id]&&(delete k[e.id],e.isDone=!0,b.waitCount-=1,b.waitCount===0&&(A=[])),delete _[a],d.onResourceLoad&&!e.placeholder&&d.onResourceLoad(b,u,e.depArray);if(t)return i=(a?n(a).url:"")||t.fileName||t.sourceURL,s=t.moduleTree,t=P("defineerror",'Error evaluating module "'+a+'" at location "'+i+'":\n'+t+"\nfileName:"+i+"\nlineNumber: "+(t.lineNumber||t.line),t),t.moduleName=a,t.moduleTree=s,d.onError(t);for(t=0;o=s[t];t++)o(i);return r}function a(e,t){return function(n){e.depDone[t]||(e.depDone[t]=!0,e.deps[t]=n,e.depCount-=1,e.depCount||u(e))}}function f(e,t){var r=t.map,i=r.fullName,s=r.name,a=D[e]||(D[e]=N[e]),f;t.loading||(t.loading=!0,f=function(e){t.callback=function(){return e},u(t),C[t.id]=!0,w()},f.fromText=function(e,t){var n=Q;C[e]=!1,b.scriptCount+=1,b.fake[e]=!0,n&&(Q=!1),d.exec(t),n&&(Q=!0),b.completeLoad(e)},i in N?f(N[i]):a.load(s,o(r.parentMap,!0,function(e,i){var s=[],o,u;for(o=0;u=e[o];o++)u=n(u,r.parentMap),e[o]=u.fullName,u.prefix||s.push(e[o]);return t.moduleDeps=(t.moduleDeps||[]).concat(s),b.require(e,i)}),f,E))}function l(e){k[e.id]||(k[e.id]=e,A.push(e),b.waitCount+=1)}function c(e){this.listeners.push(e)}function h(e,t){var r=e.fullName,i=e.prefix,s=i?D[i]||(D[i]=N[i]):null,o,a;return r&&(o=_[r]),!o&&(a=!0,o={id:(i&&!s?M++ +"__p@:":"")+(r||"__r@"+M++),map:e,depCount:0,depDone:[],depCallbacks:[],deps:[],listeners:[],add:c},x[o.id]=!0,r&&(!i||D[i]))&&(_[r]=o),i&&!s?(r=n(i),i in N&&!N[i]&&(delete N[i],delete O[r.url]),i=h(r,!0),i.add(function(){var t=n(e.originalName,e.parentMap),t=h(t,!0);o.placeholder=!0,t.add(function(e){o.callback=function(){return e},u(o)})})):a&&t&&(C[o.id]=!1,b.paused.push(o),l(o)),o}function p(e,t,i,s){var e=n(e,s),f=e.name,c=e.fullName,p=h(e),d=p.id,v=p.deps,m;if(c){if(c in N||C[d]===!0||c==="jquery"&&E.jQuery&&E.jQuery!==i().fn.jquery)return;x[d]=!0,C[d]=!0,c==="jquery"&&i&&W(i())}p.depArray=t,p.callback=i;for(i=0;i<t.length;i++)if(d=t[i])d=n(d,f?e:s),m=d.fullName,t[i]=m,m==="require"?v[i]=o(e):m==="exports"?(v[i]=N[c]={},p.usingExports=!0):m==="module"?p.cjsModule=v[i]={id:f,uri:f?b.nameToUrl(f,null,s):r,exports:N[c]}:!(m in N)||m in k||c in H&&!(c in H&&B[m])?(c in H&&(H[m]=!0,delete N[m],O[d.url]=!1),p.depCount+=1,p.depCallbacks[i]=a(p,i),h(d,!0).add(p.depCallbacks[i])):v[i]=N[m];p.depCount?l(p):u(p)}function v(e){p.apply(null,e)}function m(e,t){var n=e.map.fullName,i=e.depArray,s=!0,o,u,a,f;if(e.isDone||!n||!C[n])return f;if(t[n])return e;t[n]=!0;if(i){for(o=0;o<i.length;o++){u=i[o];if(!C[u]&&!ia[u]){s=!1;break}if((a=k[u])&&!a.isDone&&C[u])if(f=m(a,t))break}s||(f=r,delete t[n])}return f}function g(e,t){var i=e.map.fullName,s=e.depArray,o,u,a,f;if(e.isDone||!i||!C[i])return r;if(i){if(t[i])return N[i];t[i]=!0}if(s)for(o=0;o<s.length;o++)if(u=s[o])if((a=n(u).prefix)&&(f=k[a])&&g(f,t),(a=k[u])&&!a.isDone&&C[u])u=g(a,t),e.depCallbacks[o](u);return N[i]}function y(){var e=E.waitSeconds*1e3,e=e&&b.startTime+e<(new Date).getTime(),t="",n=!1,s=!1,o=[],u,a;if(b.pausedCount>0)return r;if(E.priorityWait){if(!i())return r;w()}for(u in C)if(!(u in L)&&(n=!0,!C[u]))if(e)t+=u+" ";else{if(s=!0,u.indexOf("!")===-1){o=[];break}(a=_[u]&&_[u].moduleDeps)&&o.push.apply(o,a)}if(!n&&!b.waitCount)return r;if(e&&t)return e=P("timeout","Load timeout for modules: "+t),e.requireType="timeout",e.requireModules=t,e.contextName=b.contextName,d.onError(e);if(s&&o.length)for(t=0;u=k[o[t]];t++)if(u=m(u,{})){g(u,{});break}if(!e&&(s||b.scriptCount))return(I||da)&&!X&&(X=setTimeout(function(){X=0,y()},50)),r;if(b.waitCount){for(t=0;u=A[t];t++)g(u,{});b.paused.length&&w(),Y<5&&(Y+=1,y())}return Y=0,d.checkReadyState(),r}var b,w,E={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},catchError:{}},S=[],x={require:!0,exports:!0,module:!0},T={},N={},C={},k={},A=[],O={},M=0,_={},D={},H={},B={},j=0;return W=function(e){!b.jQuery&&(e=e||(typeof jQuery!="undefined"?jQuery:null))&&(!E.jQuery||e.fn.jquery===E.jQuery)&&("holdReady"in e||"readyWait"in e)&&(b.jQuery=e,v(["jquery",[],function(){return jQuery}]),b.scriptCount)&&(V(e,!0),b.jQueryIncremented=!0)},w=function(){var e,t,n,s,o,u;b.takeGlobalQueue(),j+=1,b.scriptCount<=0&&(b.scriptCount=0);for(;S.length;){if(e=S.shift(),e[0]===null)return d.onError(P("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));v(e)}if(!E.priorityWait||i())for(;b.paused.length;){o=b.paused,b.pausedCount+=o.length,b.paused=[];for(s=0;e=o[s];s++)t=e.map,n=t.url,u=t.fullName,t.prefix?f(t.prefix,e):!O[n]&&!C[u]&&((E.requireLoad||d.load)(b,u,n),n.indexOf("empty:")!==0&&(O[n]=!0));b.startTime=(new Date).getTime(),b.pausedCount-=o.length}return j===1&&y(),j-=1,r},b={contextName:e,config:E,defQueue:S,waiting:k,waitCount:0,specified:x,loaded:C,urlMap:T,urlFetched:O,scriptCount:0,defined:N,paused:[],pausedCount:0,plugins:D,needFullExec:H,fake:{},fullExec:B,managerCallbacks:_,makeModuleMap:n,normalize:t,configure:function(e){var t,n,r;e.baseUrl&&e.baseUrl.charAt(e.baseUrl.length-1)!=="/"&&(e.baseUrl+="/"),t=E.paths,r=E.pkgs,$(E,e,!0);if(e.paths){for(n in e.paths)n in L||(t[n]=e.paths[n]);E.paths=t}if((t=e.packagePaths)||e.packages){if(t)for(n in t)n in L||aa(r,t[n],n);e.packages&&aa(r,e.packages),E.pkgs=r}e.priority&&(n=b.requireWait,b.requireWait=!1,w(),b.require(e.priority),w(),b.requireWait=n,E.priorityWait=e.priority),(e.deps||e.callback)&&b.require(e.deps||[],e.callback)},requireDefined:function(e,t){return n(e,t).fullName in N},requireSpecified:function(e,t){return n(e,t).fullName in x},require:function(t,r,i){if(typeof t=="string")return K(r)?d.onError(P("requireargs","Invalid require call")):d.get?d.get(b,t,r):(r=n(t,r),t=r.fullName,t in N?N[t]:d.onError(P("notloaded","Module name '"+r.fullName+"' has not been loaded yet for context: "+e)));(t&&t.length||r)&&p(null,t,r,i);if(!b.requireWait)for(;!b.scriptCount&&b.paused.length;)w();return b.require},takeGlobalQueue:function(){U.length&&(ja.apply(b.defQueue,[b.defQueue.length-1,0].concat(U)),U=[])},completeLoad:function(e){var t;for(b.takeGlobalQueue();S.length;){if(t=S.shift(),t[0]===null){t[0]=e;break}if(t[0]===e)break;v(t),t=null}t?v(t):v([e,[],e==="jquery"&&typeof jQuery!="undefined"?function(){return jQuery}:null]),d.isAsync&&(b.scriptCount-=1),w(),d.isAsync||(b.scriptCount-=1)},toUrl:function(e,t){var n=e.lastIndexOf("."),r=null;return n!==-1&&(r=e.substring(n,e.length),e=e.substring(0,n)),b.nameToUrl(e,r,t)},nameToUrl:function(e,n,r){var i,s,o,u,a=b.config,e=t(e,r&&r.fullName);if(d.jsExtRegExp.test(e))n=e+(n?n:"");else{i=a.paths,s=a.pkgs,r=e.split("/");for(u=r.length;u>0;u--){if(o=r.slice(0,u).join("/"),i[o]){r.splice(0,u,i[o]);break}if(o=s[o]){e=e===o.name?o.location+"/"+o.main:o.location,r.splice(0,u,e);break}}n=r.join("/")+(n||".js"),n=(n.charAt(0)==="/"||n.match(/^[\w\+\.\-]+:/)?"":a.baseUrl)+n}return a.urlArgs?n+((n.indexOf("?")===-1?"?":"&")+a.urlArgs):n}},b.jQueryCheck=W,b.resume=w,b}function ka(){var e,t,n;if(C&&C.readyState==="interactive")return C;e=document.getElementsByTagName("script");for(t=e.length-1;t>-1&&(n=e[t]);t--)if(n.readyState==="interactive")return C=n;return null}var la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/require\(\s*["']([^'"\s]+)["']\s*\)/g,fa=/^\.\//,ba=/\.js$/,O=Object.prototype.toString,u=Array.prototype,ha=u.slice,ja=u.splice,I=typeof window!="undefined"&&!!navigator&&!!document,da=!I&&typeof importScripts!="undefined",na=I&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,ea=typeof opera!="undefined"&&opera.toString()==="[object Opera]",L={},D={},U=[],C=null,Y=0,Q=!1,ia={require:!0,module:!0,exports:!0},d,u={},J,y,v,E,o,w,F,B,z,W,X;if(typeof define=="undefined"){if(typeof requirejs!="undefined"){if(K(requirejs))return;u=requirejs,requirejs=r}typeof require!="undefined"&&!K(require)&&(u=require,require=r),d=requirejs=function(e,t,n){var r="_",i;return!G(e)&&typeof e!="string"&&(i=e,G(t)?(e=t,t=n):e=[]),i&&i.context&&(r=i.context),n=D[r]||(D[r]=ga(r)),i&&n.configure(i),n.require(e,t)},d.config=function(e){return d(e)},require||(require=d),d.toUrl=function(e){return D._.toUrl(e)},d.version="1.0.8",d.jsExtRegExp=/^\/|:|\?|\.js$/,y=d.s={contexts:D,skipAsync:{}};if(d.isAsync=d.isBrowser=I)if(v=y.head=document.getElementsByTagName("head")[0],E=document.getElementsByTagName("base")[0])v=y.head=E.parentNode;d.onError=function(e){throw e},d.load=function(e,t,n){d.resourcesReady(!1),e.scriptCount+=1,d.attach(n,e,t),e.jQuery&&!e.jQueryIncremented&&(V(e.jQuery,!0),e.jQueryIncremented=!0)},define=function(e,t,n){var i,s;return typeof e!="string"&&(n=t,t=e,e=null),G(t)||(n=t,t=[]),!t.length&&K(n)&&n.length&&(n.toString().replace(la,"").replace(ma,function(e,n){t.push(n)}),t=(n.length===1?["require"]:["require","exports","module"]).concat(t)),Q&&(i=J||ka())&&(e||(e=i.getAttribute("data-requiremodule")),s=D[i.getAttribute("data-requirecontext")]),(s?s.defQueue:U).push([e,t,n]),r},define.amd={multiversion:!0,plugins:!0,jQuery:!0},d.exec=function(a){return eval(a)},d.execCb=function(e,t,n,r){return t.apply(r,n)},d.addScriptToDom=function(e){J=e,E?v.insertBefore(e,E):v.appendChild(e),J=null},d.onScriptLoad=function(e){var t=e.currentTarget||e.srcElement,n;if(e.type==="load"||t&&na.test(t.readyState))C=null,e=t.getAttribute("data-requirecontext"),n=t.getAttribute("data-requiremodule"),D[e].completeLoad(n),t.detachEvent&&!ea?t.detachEvent("onreadystatechange",d.onScriptLoad):t.removeEventListener("load",d.onScriptLoad,!1)},d.attach=function(e,t,n,r,i,s){var o;return I?(r=r||d.onScriptLoad,o=t&&t.config&&t.config.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),o.type=i||t&&t.config.scriptType||"text/javascript",o.charset="utf-8",o.async=!y.skipAsync[e],t&&o.setAttribute("data-requirecontext",t.contextName),o.setAttribute("data-requiremodule",n),o.attachEvent&&!(o.attachEvent.toString&&o.attachEvent.toString().indexOf("[native code]")<0)&&!ea?(Q=!0,s?o.onreadystatechange=function(){o.readyState==="loaded"&&(o.onreadystatechange=null,o.attachEvent("onreadystatechange",r),s(o))}:o.attachEvent("onreadystatechange",r)):o.addEventListener("load",r,!1),o.src=e,s||d.addScriptToDom(o),o):(da&&(importScripts(e),t.completeLoad(n)),null)};if(I){o=document.getElementsByTagName("script");for(B=o.length-1;B>-1&&(w=o[B]);B--){v||(v=w.parentNode);if(F=w.getAttribute("data-main")){u.baseUrl||(o=F.split("/"),w=o.pop(),o=o.length?o.join("/")+"/":"./",u.baseUrl=o,F=w.replace(ba,"")),u.deps=u.deps?u.deps.concat(F):[F];break}}}d.checkReadyState=function(){var e=y.contexts,t;for(t in e)if(!(t in L)&&e[t].waitCount)return;d.resourcesReady(!0)},d.resourcesReady=function(e){var t,n;d.resourcesDone=e;if(d.resourcesDone)for(n in e=y.contexts,e)!(n in L)&&(t=e[n],t.jQueryIncremented)&&(V(t.jQuery,!1),t.jQueryIncremented=!1)},d.pageLoaded=function(){document.readyState!=="complete"&&(document.readyState="complete")},I&&document.addEventListener&&!document.readyState&&(document.readyState="loading",window.addEventListener("load",d.pageLoaded,!1)),d(u),d.isAsync&&typeof setTimeout!="undefined"&&(z=y.contexts[u.context||"_"],z.requireWait=!0,setTimeout(function(){z.requireWait=!1,z.scriptCount||z.resume(),d.checkReadyState()},0))}})();var Handlebars={};Handlebars.VERSION="1.0.beta.6",Handlebars.helpers={},Handlebars.partials={},Handlebars.registerHelper=function(e,t,n){n&&(t.not=n),this.helpers[e]=t},Handlebars.registerPartial=function(e,t){this.partials[e]=t},Handlebars.registerHelper("helperMissing",function(e){if(arguments.length===2)return undefined;throw new Error("Could not find property '"+e+"'")});var toString=Object.prototype.toString,functionType="[object Function]";Handlebars.registerHelper("blockHelperMissing",function(e,t){var n=t.inverse||function(){},r=t.fn,i="",s=toString.call(e);s===functionType&&(e=e.call(this));if(e===!0)return r(this);if(e===!1||e==null)return n(this);if(s==="[object Array]"){if(e.length>0)for(var o=0,u=e.length;o<u;o++)i+=r(e[o]);else i=n(this);return i}return r(e)}),Handlebars.registerHelper("each",function(e,t){var n=t.fn,r=t.inverse,i="";if(e&&e.length>0)for(var s=0,o=e.length;s<o;s++)i+=n(e[s]);else i=r(this);return i}),Handlebars.registerHelper("if",function(e,t){var n=toString.call(e);return n===functionType&&(e=e.call(this)),!e||Handlebars.Utils.isEmpty(e)?t.inverse(this):t.fn(this)}),Handlebars.registerHelper("unless",function(e,t){var n=t.fn,r=t.inverse;return t.fn=r,t.inverse=n,Handlebars.helpers["if"].call(this,e,t)}),Handlebars.registerHelper("with",function(e,t){return t.fn(e)}),Handlebars.registerHelper("log",function(e){Handlebars.log(e)});var handlebars=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,statements:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,inMustache:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,OPEN_PARTIAL:24,params:25,hash:26,param:27,STRING:28,INTEGER:29,BOOLEAN:30,hashSegments:31,hashSegment:32,ID:33,EQUALS:34,pathSegments:35,SEP:36,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",28:"STRING",29:"INTEGER",30:"BOOLEAN",33:"ID",34:"EQUALS",36:"SEP"},productions_:[0,[3,2],[4,3],[4,1],[4,0],[6,1],[6,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[7,2],[17,3],[17,2],[17,2],[17,1],[25,2],[25,1],[27,1],[27,1],[27,1],[27,1],[26,1],[31,2],[31,1],[32,3],[32,3],[32,3],[32,3],[21,1],[35,3],[35,1]],performAction:function(t,n,r,i,s,o,u){var a=o.length-1;switch(s){case 1:return o[a-1];case 2:this.$=new i.ProgramNode(o[a-2],o[a]);break;case 3:this.$=new i.ProgramNode(o[a]);break;case 4:this.$=new i.ProgramNode([]);break;case 5:this.$=[o[a]];break;case 6:o[a-1].push(o[a]),this.$=o[a-1];break;case 7:this.$=new i.InverseNode(o[a-2],o[a-1],o[a]);break;case 8:this.$=new i.BlockNode(o[a-2],o[a-1],o[a]);break;case 9:this.$=o[a];break;case 10:this.$=o[a];break;case 11:this.$=new i.ContentNode(o[a]);break;case 12:this.$=new i.CommentNode(o[a]);break;case 13:this.$=new i.MustacheNode(o[a-1][0],o[a-1][1]);break;case 14:this.$=new i.MustacheNode(o[a-1][0],o[a-1][1]);break;case 15:this.$=o[a-1];break;case 16:this.$=new i.MustacheNode(o[a-1][0],o[a-1][1]);break;case 17:this.$=new i.MustacheNode(o[a-1][0],o[a-1][1],!0);break;case 18:this.$=new i.PartialNode(o[a-1]);break;case 19:this.$=new i.PartialNode(o[a-2],o[a-1]);break;case 20:break;case 21:this.$=[[o[a-2]].concat(o[a-1]),o[a]];break;case 22:this.$=[[o[a-1]].concat(o[a]),null];break;case 23:this.$=[[o[a-1]],o[a]];break;case 24:this.$=[[o[a]],null];break;case 25:o[a-1].push(o[a]),this.$=o[a-1];break;case 26:this.$=[o[a]];break;case 27:this.$=o[a];break;case 28:this.$=new i.StringNode(o[a]);break;case 29:this.$=new i.IntegerNode(o[a]);break;case 30:this.$=new i.BooleanNode(o[a]);break;case 31:this.$=new i.HashNode(o[a]);break;case 32:o[a-1].push(o[a]),this.$=o[a-1];break;case 33:this.$=[o[a]];break;case 34:this.$=[o[a-2],o[a]];break;case 35:this.$=[o[a-2],new i.StringNode(o[a])];break;case 36:this.$=[o[a-2],new i.IntegerNode(o[a])];break;case 37:this.$=[o[a-2],new i.BooleanNode(o[a])];break;case 38:this.$=new i.IdNode(o[a]);break;case 39:o[a-2].push(o[a]),this.$=o[a-2];break;case 40:this.$=[o[a]]}},table:[{3:1,4:2,5:[2,4],6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{1:[3]},{5:[1,16]},{5:[2,3],7:17,8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,19],20:[2,3],22:[1,13],23:[1,14],24:[1,15]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],19:[2,5],20:[2,5],22:[2,5],23:[2,5],24:[2,5]},{4:20,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{4:21,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{17:22,21:23,33:[1,25],35:24},{17:26,21:23,33:[1,25],35:24},{17:27,21:23,33:[1,25],35:24},{17:28,21:23,33:[1,25],35:24},{21:29,33:[1,25],35:24},{1:[2,1]},{6:30,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],19:[2,6],20:[2,6],22:[2,6],23:[2,6],24:[2,6]},{17:22,18:[1,31],21:23,33:[1,25],35:24},{10:32,20:[1,33]},{10:34,20:[1,33]},{18:[1,35]},{18:[2,24],21:40,25:36,26:37,27:38,28:[1,41],29:[1,42],30:[1,43],31:39,32:44,33:[1,45],35:24},{18:[2,38],28:[2,38],29:[2,38],30:[2,38],33:[2,38],36:[1,46]},{18:[2,40],28:[2,40],29:[2,40],30:[2,40],33:[2,40],36:[2,40]},{18:[1,47]},{18:[1,48]},{18:[1,49]},{18:[1,50],21:51,33:[1,25],35:24},{5:[2,2],8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,2],22:[1,13],23:[1,14],24:[1,15]},{14:[2,20],15:[2,20],16:[2,20],19:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],19:[2,7],20:[2,7],22:[2,7],23:[2,7],24:[2,7]},{21:52,33:[1,25],35:24},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{18:[2,22],21:40,26:53,27:54,28:[1,41],29:[1,42],30:[1,43],31:39,32:44,33:[1,45],35:24},{18:[2,23]},{18:[2,26],28:[2,26],29:[2,26],30:[2,26],33:[2,26]},{18:[2,31],32:55,33:[1,56]},{18:[2,27],28:[2,27],29:[2,27],30:[2,27],33:[2,27]},{18:[2,28],28:[2,28],29:[2,28],30:[2,28],33:[2,28]},{18:[2,29],28:[2,29],29:[2,29],30:[2,29],33:[2,29]},{18:[2,30],28:[2,30],29:[2,30],30:[2,30],33:[2,30]},{18:[2,33],33:[2,33]},{18:[2,40],28:[2,40],29:[2,40],30:[2,40],33:[2,40],34:[1,57],36:[2,40]},{33:[1,58]},{14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,17],14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],24:[2,17]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]},{18:[1,59]},{18:[1,60]},{18:[2,21]},{18:[2,25],28:[2,25],29:[2,25],30:[2,25],33:[2,25]},{18:[2,32],33:[2,32]},{34:[1,57]},{21:61,28:[1,62],29:[1,63],30:[1,64],33:[1,25],35:24},{18:[2,39],28:[2,39],29:[2,39],30:[2,39],33:[2,39],36:[2,39]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{18:[2,34],33:[2,34]},{18:[2,35],33:[2,35]},{18:[2,36],33:[2,36]},{18:[2,37],33:[2,37]}],defaultActions:{16:[2,1],37:[2,23],53:[2,21]},parseError:function(t,n){throw new Error(t)},parse:function(t){function d(e){r.length=r.length-2*e,i.length=i.length-e,s.length=s.length-e}function v(){var e;return e=n.lexer.lex()||1,typeof e!="number"&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],s=[],o=this.table,u="",a=0,f=0,l=0,c=2,h=1;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var p=this.lexer.yylloc;s.push(p),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);var m,g,y,b,w,E,S={},x,T,N,C;for(;;){y=r[r.length-1],this.defaultActions[y]?b=this.defaultActions[y]:(m==null&&(m=v()),b=o[y]&&o[y][m]);if(typeof b=="undefined"||!b.length||!b[0])if(!l){C=[];for(x in o[y])this.terminals_[x]&&x>2&&C.push("'"+this.terminals_[x]+"'");var k="";this.lexer.showPosition?k="Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+C.join(", ")+", got '"+this.terminals_[m]+"'":k="Parse error on line "+(a+1)+": Unexpected "+(m==1?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:p,expected:C})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+m);switch(b[0]){case 1:r.push(m),i.push(this.lexer.yytext),s.push(this.lexer.yylloc),r.push(b[1]),m=null,g?(m=g,g=null):(f=this.lexer.yyleng,u=this.lexer.yytext,a=this.lexer.yylineno,p=this.lexer.yylloc,l>0&&l--);break;case 2:T=this.productions_[b[1]][1],S.$=i[i.length-T],S._$={first_line:s[s.length-(T||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(T||1)].first_column,last_column:s[s.length-1].last_column},E=this.performAction.call(S,u,f,a,this.yy,b[1],i,s);if(typeof E!="undefined")return E;T&&(r=r.slice(0,-1*T*2),i=i.slice(0,-1*T),s=s.slice(0,-1*T)),r.push(this.productions_[b[1]][0]),i.push(S.$),s.push(S._$),N=o[r[r.length-2]][r[r.length-1]],r.push(N);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(t,n){if(!this.yy.parseError)throw new Error(t);this.yy.parseError(t,n)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column
-:0},this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e;var t=e.match(/\n/);return t&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=(new Array(e.length+1)).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");var i=this._currentRules();for(var s=0;s<i.length;s++){t=this._input.match(this.rules[i[s]]);if(t){r=t[0].match(/\n.*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-1:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i[s],this.conditionStack[this.conditionStack.length-1]);if(e)return e;return}}if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return typeof t!="undefined"?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)}};return e.performAction=function(t,n,r,i){var s=i;switch(r){case 0:n.yytext.slice(-1)!=="\\"&&this.begin("mu"),n.yytext.slice(-1)==="\\"&&(n.yytext=n.yytext.substr(0,n.yyleng-1),this.begin("emu"));if(n.yytext)return 14;break;case 1:return 14;case 2:return this.popState(),14;case 3:return 24;case 4:return 16;case 5:return 20;case 6:return 19;case 7:return 19;case 8:return 23;case 9:return 23;case 10:return n.yytext=n.yytext.substr(3,n.yyleng-5),this.popState(),15;case 11:return 22;case 12:return 34;case 13:return 33;case 14:return 33;case 15:return 36;case 16:break;case 17:return this.popState(),18;case 18:return this.popState(),18;case 19:return n.yytext=n.yytext.substr(1,n.yyleng-2).replace(/\\"/g,'"'),28;case 20:return 30;case 21:return 30;case 22:return 29;case 23:return 33;case 24:return n.yytext=n.yytext.substr(1,n.yyleng-2),33;case 25:return"INVALID";case 26:return 5}},e.rules=[/^[^\x00]*?(?=(\{\{))/,/^[^\x00]+/,/^[^\x00]{2,}?(?=(\{\{))/,/^\{\{>/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[\/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^true(?=[}\s])/,/^false(?=[}\s])/,/^[0-9]+(?=[}\s])/,/^[a-zA-Z0-9_$-]+(?=[=}\s\/.])/,/^\[[^\]]*\]/,/^./,/^$/],e.conditions={mu:{rules:[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],inclusive:!1},emu:{rules:[2],inclusive:!1},INITIAL:{rules:[0,1,26],inclusive:!0}},e}();return e.lexer=t,e}();typeof require!="undefined"&&typeof exports!="undefined"&&(exports.parser=handlebars,exports.parse=function(){return handlebars.parse.apply(handlebars,arguments)},exports.main=function(t){if(!t[1])throw new Error("Usage: "+t[0]+" FILE");if(typeof process!="undefined")var n=require("fs").readFileSync(require("path").join(process.cwd(),t[1]),"utf8");else var r=require("file").path(require("file").cwd()),n=r.join(t[1]).read({charset:"utf-8"});return exports.parser.parse(n)},typeof module!="undefined"&&require.main===module&&exports.main(typeof process!="undefined"?process.argv.slice(1):require("system").args)),Handlebars.Parser=handlebars,Handlebars.parse=function(e){return Handlebars.Parser.yy=Handlebars.AST,Handlebars.Parser.parse(e)},Handlebars.print=function(e){return(new Handlebars.PrintVisitor).accept(e)},Handlebars.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){}},Handlebars.log=function(e,t){Handlebars.logger.log(e,t)},function(){Handlebars.AST={},Handlebars.AST.ProgramNode=function(e,t){this.type="program",this.statements=e,t&&(this.inverse=new Handlebars.AST.ProgramNode(t))},Handlebars.AST.MustacheNode=function(e,t,n){this.type="mustache",this.id=e[0],this.params=e.slice(1),this.hash=t,this.escaped=!n},Handlebars.AST.PartialNode=function(e,t){this.type="partial",this.id=e,this.context=t};var e=function(e,t){if(e.original!==t.original)throw new Handlebars.Exception(e.original+" doesn't match "+t.original)};Handlebars.AST.BlockNode=function(t,n,r){e(t.id,r),this.type="block",this.mustache=t,this.program=n},Handlebars.AST.InverseNode=function(t,n,r){e(t.id,r),this.type="inverse",this.mustache=t,this.program=n},Handlebars.AST.ContentNode=function(e){this.type="content",this.string=e},Handlebars.AST.HashNode=function(e){this.type="hash",this.pairs=e},Handlebars.AST.IdNode=function(e){this.type="ID",this.original=e.join(".");var t=[],n=0;for(var r=0,i=e.length;r<i;r++){var s=e[r];s===".."?n++:s==="."||s==="this"?this.isScoped=!0:t.push(s)}this.parts=t,this.string=t.join("."),this.depth=n,this.isSimple=t.length===1&&n===0},Handlebars.AST.StringNode=function(e){this.type="STRING",this.string=e},Handlebars.AST.IntegerNode=function(e){this.type="INTEGER",this.integer=e},Handlebars.AST.BooleanNode=function(e){this.type="BOOLEAN",this.bool=e},Handlebars.AST.CommentNode=function(e){this.type="comment",this.comment=e}}(),Handlebars.Exception=function(e){var t=Error.prototype.constructor.apply(this,arguments);for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.message=t.message},Handlebars.Exception.prototype=new Error,Handlebars.SafeString=function(e){this.string=e},Handlebars.SafeString.prototype.toString=function(){return this.string.toString()},function(){var e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},t=/&(?!\w+;)|[<>"'`]/g,n=/[&<>"'`]/,r=function(t){return e[t]||"&amp;"};Handlebars.Utils={escapeExpression:function(e){return e instanceof Handlebars.SafeString?e.toString():e==null||e===!1?"":n.test(e)?e.replace(t,r):e},isEmpty:function(e){return typeof e=="undefined"?!0:e===null?!0:e===!1?!0:Object.prototype.toString.call(e)==="[object Array]"&&e.length===0?!0:!1}}}(),Handlebars.Compiler=function(){},Handlebars.JavaScriptCompiler=function(){},function(e,t){e.OPCODE_MAP={appendContent:1,getContext:2,lookupWithHelpers:3,lookup:4,append:5,invokeMustache:6,appendEscaped:7,pushString:8,truthyOrFallback:9,functionOrFallback:10,invokeProgram:11,invokePartial:12,push:13,assignToHash:15,pushStringParam:16},e.MULTI_PARAM_OPCODES={appendContent:1,getContext:1,lookupWithHelpers:2,lookup:1,invokeMustache:3,pushString:1,truthyOrFallback:1,functionOrFallback:1,invokeProgram:3,invokePartial:1,push:1,assignToHash:1,pushStringParam:1},e.DISASSEMBLE_MAP={};for(var n in e.OPCODE_MAP){var r=e.OPCODE_MAP[n];e.DISASSEMBLE_MAP[r]=n}e.multiParamSize=function(t){return e.MULTI_PARAM_OPCODES[e.DISASSEMBLE_MAP[t]]},e.prototype={compiler:e,disassemble:function(){var t=this.opcodes,n,r,i=[],s,o,u;for(var a=0,f=t.length;a<f;a++){n=t[a];if(n==="DECLARE")o=t[++a],u=t[++a],i.push("DECLARE "+o+" = "+u);else{s=e.DISASSEMBLE_MAP[n];var l=e.multiParamSize(n),c=[];for(var h=0;h<l;h++)r=t[++a],typeof r=="string"&&(r='"'+r.replace("\n","\\n")+'"'),c.push(r);s=s+" "+c.join(" "),i.push(s)}}return i.join("\n")},guid:0,compile:function(e,t){this.children=[],this.depths={list:[]},this.options=t;var n=this.options.knownHelpers;this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0};if(n)for(var r in n)this.options.knownHelpers[r]=n[r];return this.program(e)},accept:function(e){return this[e.type](e)},program:function(e){var t=e.statements,n;this.opcodes=[];for(var r=0,i=t.length;r<i;r++)n=t[r],this[n.type](n);return this.isSimple=i===1,this.depths.list=this.depths.list.sort(function(e,t){return e-t}),this},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++;this.usePartial=this.usePartial||t.usePartial,this.children[n]=t;for(var r=0,i=t.depths.list.length;r<i;r++){depth=t.depths.list[r];if(depth<2)continue;this.addDepth(depth-1)}return n},block:function(e){var t=e.mustache,n,r,i,s,o=this.setupStackForMustache(t),u=this.compileProgram(e.program);e.program.inverse&&(s=this.compileProgram(e.program.inverse),this.declare("inverse",s)),this.opcode("invokeProgram",u,o.length,!!t.hash),this.declare("inverse",null),this.opcode("append")},inverse:function(e){var t=this.setupStackForMustache(e.mustache),n=this.compileProgram(e.program);this.declare("inverse",n),this.opcode("invokeProgram",null,t.length,!!e.mustache.hash),this.declare("inverse",null),this.opcode("append")},hash:function(e){var t=e.pairs,n,r;this.opcode("push","{}");for(var i=0,s=t.length;i<s;i++)n=t[i],r=n[1],this.accept(r),this.opcode("assignToHash",n[0])},partial:function(e){var t=e.id;this.usePartial=!0,e.context?this.ID(e.context):this.opcode("push","depth0"),this.opcode("invokePartial",t.original),this.opcode("append")},content:function(e){this.opcode("appendContent",e.string)},mustache:function(e){var t=this.setupStackForMustache(e);this.opcode("invokeMustache",t.length,e.id.original,!!e.hash),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ID:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth),this.opcode("lookupWithHelpers",e.parts[0]||null,e.isScoped||!1);for(var t=1,n=e.parts.length;t<n;t++)this.opcode("lookup",e.parts[t])},STRING:function(e){this.opcode("pushString",e.string)},INTEGER:function(e){this.opcode("push",e.integer)},BOOLEAN:function(e){this.opcode("push",e.bool)},comment:function(){},pushParams:function(e){var t=e.length,n;while(t--)n=e[t],this.options.stringParams?(n.depth&&this.addDepth(n.depth),this.opcode("getContext",n.depth||0),this.opcode("pushStringParam",n.string)):this[n.type](n)},opcode:function(t,n,r,i){this.opcodes.push(e.OPCODE_MAP[t]),n!==undefined&&this.opcodes.push(n),r!==undefined&&this.opcodes.push(r),i!==undefined&&this.opcodes.push(i)},declare:function(e,t){this.opcodes.push("DECLARE"),this.opcodes.push(e),this.opcodes.push(t)},addDepth:function(e){if(e===0)return;this.depths[e]||(this.depths[e]=!0,this.depths.list.push(e))},setupStackForMustache:function(e){var t=e.params;return this.pushParams(t),e.hash&&this.hash(e.hash),this.ID(e.id),t}},t.prototype={nameLookup:function(e,n,r){return/^[0-9]+$/.test(n)?e+"["+n+"]":t.isValidJavaScriptVariableName(n)?e+"."+n:e+"['"+n+"']"},appendToBuffer:function(e){return this.environment.isSimple?"return "+e+";":"buffer += "+e+";"},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(e,t,n,r){this.environment=e,this.options=t||{},this.name=this.environment.name,this.isChild=!!n,this.context=n||{programs:[],aliases:{self:"this"},registers:{list:[]}},this.preamble(),this.stackSlot=0,this.stackVars=[],this.compileChildren(e,t);var i=e.opcodes,s;this.i=0;for(u=i.length;this.i<u;this.i++)s=this.nextOpcode(0),s[0]==="DECLARE"?(this.i=this.i+2,this[s[1]]=s[2]):(this.i=this.i+s[1].length,this[s[0]].apply(this,s[1]));return this.createFunctionContext(r)},nextOpcode:function(t){var n=this.environment.opcodes,r=n[this.i+t],i,s,o,u;if(r==="DECLARE")return i=n[this.i+1],s=n[this.i+2],["DECLARE",i,s];i=e.DISASSEMBLE_MAP[r],o=e.multiParamSize(r),u=[];for(var a=0;a<o;a++)u.push(n[this.i+a+1+t]);return[i,u]},eat:function(e){this.i=this.i+e.length},preamble:function(){var e=[];this.useRegister("foundHelper");if(!this.isChild){var t=this.namespace,n="helpers = helpers || "+t+".helpers;";this.environment.usePartial&&(n=n+" partials = partials || "+t+".partials;"),e.push(n)}else e.push("");this.environment.isSimple?e.push(""):e.push(", buffer = "+this.initializeBuffer()),this.lastContext=0,this.source=e},createFunctionContext:function(e){var t=this.stackVars;this.isChild||(t=t.concat(this.context.registers.list)),t.length>0&&(this.source[1]=this.source[1]+", "+t.join(", "));if(!this.isChild){var n=[];for(var r in this.context.aliases)this.source[1]=this.source[1]+", "+r+"="+this.context.aliases[r]}this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+";"),this.isChild||(this.source[1]+="\n"+this.context.programs.join("\n")+"\n"),this.environment.isSimple||this.source.push("return buffer;");var i=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"];for(var s=0,o=this.environment.depths.list.length;s<o;s++)i.push("depth"+this.environment.depths.list[s]);if(e)return i.push(this.source.join("\n ")),Function.apply(this,i);var u="function "+(this.name||"")+"("+i.join(",")+") {\n "+this.source.join("\n ")+"}";return Handlebars.log(Handlebars.logger.DEBUG,u+"\n\n"),u},appendContent:function(e){this.source.push(this.appendToBuffer(this.quotedString(e)))},append:function(){var e=this.popStack();this.source.push("if("+e+" || "+e+" === 0) { "+this.appendToBuffer(e)+" }"),this.environment.isSimple&&this.source.push("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){var e=this.nextOpcode(1),t="";this.context.aliases.escapeExpression="this.escapeExpression",e[0]==="appendContent"&&(t=" + "+this.quotedString(e[1][0]),this.eat(e)),this.source.push(this.appendToBuffer("escapeExpression("+this.popStack()+")"+t))},getContext:function(e){this.lastContext!==e&&(this.lastContext=e)},lookupWithHelpers:function(e,t){if(e){var n=this.nextStack();this.usingKnownHelper=!1;var r;!t&&this.options.knownHelpers[e]?(r=n+" = "+this.nameLookup("helpers",e,"helper"),this.usingKnownHelper=!0):t||this.options.knownHelpersOnly?r=n+" = "+this.nameLookup("depth"+this.lastContext,e,"context"):(this.register("foundHelper",this.nameLookup("helpers",e,"helper")),r=n+" = foundHelper || "+this.nameLookup("depth"+this.lastContext,e,"context")),r+=";",this.source.push(r)}else this.pushStack("depth"+this.lastContext)},lookup:function(e){var t=this.topStack();this.source.push(t+" = ("+t+" === null || "+t+" === undefined || "+t+" === false ? "+t+" : "+this.nameLookup(t,e,"context")+");")},pushStringParam:function(e){this.pushStack("depth"+this.lastContext),this.pushString(e)},pushString:function(e){this.pushStack(this.quotedString(e))},push:function(e){this.pushStack(e)},invokeMustache:function(e,t,n){this.populateParams(e,this.quotedString(t),"{}",null,n,function(e,t,n){this.usingKnownHelper||(this.context.aliases.helperMissing="helpers.helperMissing",this.context.aliases.undef="void 0",this.source.push("else if("+n+"=== undef) { "+e+" = helperMissing.call("+t+"); }"),e!==n&&this.source.push("else { "+e+" = "+n+"; }"))})},invokeProgram:function(e,t,n){var r=this.programExpression(this.inverse),i=this.programExpression(e);this.populateParams(t,null,i,r,n,function(e,t,n){this.usingKnownHelper||(this.context.aliases.blockHelperMissing="helpers.blockHelperMissing",this.source.push("else { "+e+" = blockHelperMissing.call("+t+"); }"))})},populateParams:function(e,t,n,r,i,s){var o=i||this.options.stringParams||r||this.options.data,u=this.popStack(),a,f=[],l,c,h;o?(this.register("tmp1",n),h="tmp1"):h="{ hash: {} }";if(o){var p=i?this.popStack():"{}";this.source.push("tmp1.hash = "+p+";")}this.options.stringParams&&this.source.push("tmp1.contexts = [];");for(var d=0;d<e;d++)l=this.popStack(),f.push(l),this.options.stringParams&&this.source.push("tmp1.contexts.push("+this.popStack()+");");r&&(this.source.push("tmp1.fn = tmp1;"),this.source.push("tmp1.inverse = "+r+";")),this.options.data&&this.source.push("tmp1.data = data;"),f.push(h),this.populateCall(f,u,t||u,s,n!=="{}")},populateCall:function(e,t,n,r,i){var s=["depth0"].concat(e).join(", "),o=["depth0"].concat(n).concat(e).join(", "),u=this.nextStack();if(this.usingKnownHelper)this.source.push(u+" = "+t+".call("+s+");");else{this.context.aliases.functionType='"function"';var a=i?"foundHelper && ":"";this.source.push("if("+a+"typeof "+t+" === functionType) { "+u+" = "+t+".call("+s+"); }")}r.call(this,u,o,t),this.usingKnownHelper=!1},invokePartial:function(e){params=[this.nameLookup("partials",e,"partial"),"'"+e+"'",this.popStack(),"helpers","partials"],this.options.data&&params.push("data"),this.pushStack("self.invokePartial("+params.join(", ")+");")},assignToHash:function(e){var t=this.popStack(),n=this.topStack();this.source.push(n+"['"+e+"'] = "+t+";")},compiler:t,compileChildren:function(e,t){var n=e.children,r,i;for(var s=0,o=n.length;s<o;s++){r=n[s],i=new this.compiler,this.context.programs.push("");var u=this.context.programs.length;r.index=u,r.name="program"+u,this.context.programs[u]=i.compile(r,t,this.context)}},programExpression:function(e){if(e==null)return"self.noop";var t=this.environment.children[e],n=t.depths.list,r=[t.index,t.name,"data"];for(var i=0,s=n.length;i<s;i++)depth=n[i],depth===1?r.push("depth0"):r.push("depth"+(depth-1));return n.length===0?"self.program("+r.join(", ")+")":(r.shift(),"self.programWithDepth("+r.join(", ")+")")},register:function(e,t){this.useRegister(e),this.source.push(e+" = "+t+";")},useRegister:function(e){this.context.registers[e]||(this.context.registers[e]=!0,this.context.registers.list.push(e))},pushStack:function(e){return this.source.push(this.nextStack()+" = "+e+";"),"stack"+this.stackSlot},nextStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),"stack"+this.stackSlot},popStack:function(){return"stack"+this.stackSlot--},topStack:function(){return"stack"+this.stackSlot},quotedString:function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"'}};var i="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),s=t.RESERVED_WORDS={};for(var o=0,u=i.length;o<u;o++)s[i[o]]=!0;t.isValidJavaScriptVariableName=function(e){return!t.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]+$/.test(e)?!0:!1}}(Handlebars.Compiler,Handlebars.JavaScriptCompiler),Handlebars.precompile=function(e,t){t=t||{};var n=Handlebars.parse(e),r=(new Handlebars.Compiler).compile(n,t);return(new Handlebars.JavaScriptCompiler).compile(r,t)},Handlebars.compile=function(e,t){function r(){var n=Handlebars.parse(e),r=(new Handlebars.Compiler).compile(n,t),i=(new Handlebars.JavaScriptCompiler).compile(r,t,undefined,!0);return Handlebars.template(i)}t=t||{};var n;return function(e,t){return n||(n=r()),n.call(this,e,t)}},Handlebars.VM={template:function(e){var t={escapeExpression:Handlebars.Utils.escapeExpression,invokePartial:Handlebars.VM.invokePartial,programs:[],program:function(e,t,n){var r=this.programs[e];return n?Handlebars.VM.program(t,n):r?r:(r=this.programs[e]=Handlebars.VM.program(t),r)},programWithDepth:Handlebars.VM.programWithDepth,noop:Handlebars.VM.noop};return function(n,r){return r=r||{},e.call(t,Handlebars,n,r.helpers,r.partials,r.data)}},programWithDepth:function(e,t,n){var r=Array.prototype.slice.call(arguments,2);return function(n,i){return i=i||{},e.apply(this,[n,i.data||t].concat(r))}},program:function(e,t){return function(n,r){return r=r||{},e(n,r.data||t)}},noop:function(){return""},invokePartial:function(e,t,n,r,i,s){options={helpers:r,partials:i,data:s};if(e===undefined)throw new Handlebars.Exception("The partial "+t+" could not be found");if(e instanceof Function)return e(n,options);if(!Handlebars.compile)throw new Handlebars.Exception("The partial "+t+" could not be compiled when running in runtime-only mode");return i[t]=Handlebars.compile(e),i[t](n,options)}},Handlebars.template=Handlebars.VM.template,function(e,t){function n(e,t){this._d=e,this._isUTC=!!t}function r(e){return e<0?Math.ceil(e):Math.floor(e)}function i(e){var t=this._data={},n=e.years||e.y||0,i=e.months||e.M||0,s=e.weeks||e.w||0,o=e.days||e.d||0,u=e.hours||e.h||0,a=e.minutes||e.m||0,f=e.seconds||e.s||0,l=e.milliseconds||e.ms||0;this._milliseconds=l+f*1e3+a*6e4+u*36e5,this._days=o+s*7,this._months=i+n*12,t.milliseconds=l%1e3,f+=r(l/1e3),t.seconds=f%60,a+=r(f/60),t.minutes=a%60,u+=r(a/60),t.hours=u%24,o+=r(u/24),o+=s*7,t.days=o%30,i+=r(o/30),t.months=i%12,n+=r(i/12),t.years=n}function s(e,t){var n=e+"";while(n.length<t)n="0"+n;return n}function o(e,t,n){var r=t._milliseconds,i=t._days,s=t._months,o;r&&e._d.setTime(+e+r*n),i&&e.date(e.date()+i*n),s&&(o=e.date(),e.date(1).month(e.month()+s*n).date(Math.min(o,e.daysInMonth())))}function u(e){return Object.prototype.toString.call(e)==="[object Array]"}function a(t){return new e(t[0],t[1]||0,t[2]||1,t[3]||0,t[4]||0,t[5]||0,t[6]||0)}function f(t,n){function r(n){var g,y;switch(n){case"M":return i+1;case"Mo":return i+1+v(i+1);case"MM":return s(i+1,2);case"MMM":return E.monthsShort[i];case"MMMM":return E.months[i];case"D":return o;case"Do":return o+v(o);case"DD":return s(o,2);case"DDD":return g=new e(u,i,o),y=new e(u,0,1),~~((g-y)/864e5+1.5);case"DDDo":return g=r("DDD"),g+v(g);case"DDDD":return s(r("DDD"),3);case"d":return a;case"do":return a+v(a);case"ddd":return E.weekdaysShort[a];case"dddd":return E.weekdays[a];case"w":return g=new e(u,i,o-a+5),y=new e(g.getFullYear(),0,4),~~((g-y)/864e5/7+1.5);case"wo":return g=r("w"),g+v(g);case"ww":return s(r("w"),2);case"YY":return s(u%100,2);case"YYYY":return u;case"a":return m?m(l,c,!1):l>11?"pm":"am";case"A":return m?m(l,c,!0):l>11?"PM":"AM";case"H":return l;case"HH":return s(l,2);case"h":return l%12||12;case"hh":return s(l%12||12,2);case"m":return c;case"mm":return s(c,2);case"s":return h;case"ss":return s(h,2);case"S":return~~(p/100);case"SS":return s(~~(p/10),2);case"SSS":return s(p,3);case"Z":return(d<0?"-":"+")+s(~~(Math.abs(d)/60),2)+":"+s(~~(Math.abs(d)%60),2);case"ZZ":return(d<0?"-":"+")+s(~~(10*Math.abs(d)/6),4);case"L":case"LL":case"LLL":case"LLLL":case"LT":return f(t,E.longDateFormat[n]);default:return n.replace(/(^\[)|(\\)|\]$/g,"")}}var i=t.month(),o=t.date(),u=t.year(),a=t.day(),l=t.hours(),c=t.minutes(),h=t.seconds(),p=t.milliseconds(),d=-t.zone(),v=E.ordinal,m=E.meridiem;return n.replace(O,r)}function l(e){switch(e){case"DDDD":return P;case"YYYY":return H;case"S":case"SS":case"SSS":case"DDD":return D;case"MMM":case"MMMM":case"ddd":case"dddd":case"a":case"A":return B;case"Z":case"ZZ":return j;case"T":return F;case"MM":case"DD":case"dd":case"YY":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":return _;default:return new RegExp(e.replace("\\",""))}}function c(e,t,n,r){var i;switch(e){case"M":case"MM":n[1]=t==null?0:~~t-1;break;case"MMM":case"MMMM":for(i=0;i<12;i++)if(E.monthsParse[i].test(t)){n[1]=i;break}break;case"D":case"DD":case"DDD":case"DDDD":n[2]=~~t;break;case"YY":t=~~t,n[0]=t+(t>70?1900:2e3);break;case"YYYY":n[0]=~~Math.abs(t);break;case"a":case"A":r.isPm=(t+"").toLowerCase()==="pm";break;case"H":case"HH":case"h":case"hh":n[3]=~~t;break;case"m":case"mm":n[4]=~~t;break;case"s":case"ss":n[5]=~~t;break;case"S":case"SS":case"SSS":n[6]=~~(("0."+t)*1e3);break;case"Z":case"ZZ":r.isUTC=!0,i=(t+"").match(U),i&&i[1]&&(r.tzh=~~i[1]),i&&i[2]&&(r.tzm=~~i[2]),i&&i[0]==="+"&&(r.tzh=-r.tzh,r.tzm=-r.tzm)}}function h(t,n){var r=[0,0,1,0,0,0,0],i={tzh:0,tzm:0},s=n.match(O),o,u;for(o=0;o<s.length;o++)u=(l(s[o]).exec(t)||[])[0],t=t.replace(l(s[o]),""),c(s[o],u,r,i);return i.isPm&&r[3]<12&&(r[3]+=12),i.isPm===!1&&r[3]===12&&(r[3]=0),r[3]+=i.tzh,r[4]+=i.tzm,i.isUTC?new e(e.UTC.apply({},r)):a(r)}function p(e,t){var n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,s;for(s=0;s<n;s++)~~e[s]!==~~t[s]&&i++;return i+r}function d(e,t){var r,i=e.match(M)||[],s,o=99,u,a,l;for(u=0;u<t.length;u++)a=h(e,t[u]),s=f(new n(a),t[u]).match(M)||[],l=p(i,s),l<o&&(o=l,r=a);return r}function v(t){var n="YYYY-MM-DDT",r;if(I.exec(t)){for(r=0;r<4;r++)if(R[r][1].exec(t)){n+=R[r][0];break}return j.exec(t)?h(t,n+" Z"):h(t,n)}return new e(t)}function m(e,t,n,r){var i=E.relativeTime[e];return typeof i=="function"?i(t||1,!!n,e,r):i.replace(/%d/i,t||1)}function g(e,t){var n=x(Math.abs(e)/1e3),r=x(n/60),i=x(r/60),s=x(i/24),o=x(s/365),u=n<45&&["s",n]||r===1&&["m"]||r<45&&["mm",r]||i===1&&["h"]||i<22&&["hh",i]||s===1&&["d"]||s<=25&&["dd",s]||s<=45&&["M"]||s<345&&["MM",x(s/30)]||o===1&&["y"]||["yy",o];return u[2]=t,u[3]=e>0,m.apply({},u)}function y(e,t){E.fn[e]=function(e){var n=this._isUTC?"UTC":"";return e!=null?(this._d["set"+n+t](e),this):this._d["get"+n+t]()}}function b(e){E.duration.fn[e]=function(){return this._data[e]}}function w(e,t){E.duration.fn["as"+e]=function(){return+this/t}}var E,S="1.6.2",x=Math.round,T,N={},C="en",k=typeof module!="undefined",L="months|monthsShort|monthsParse|weekdays|weekdaysShort|longDateFormat|calendar|relativeTime|ordinal|meridiem".split("|"),A=/^\/?Date\((\-?\d+)/i,O=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|dddd?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?|LT|LL?L?L?)/g,M=/([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi,_=/\d\d?/,D=/\d{1,3}/,P=/\d{3}/,H=/\d{4}/,B=/[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i,j=/Z|[\+\-]\d\d:?\d\d/i,F=/T/i,I=/^\s*\d{4}-\d\d-\d\d(T(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/,q="YYYY-MM-DDTHH:mm:ssZ",R=[["HH:mm:ss.S",/T\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/T\d\d:\d\d:\d\d/],["HH:mm",/T\d\d:\d\d/],["HH",/T\d\d/]],U=/([\+\-]|\d\d)/gi,z="Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|"),W={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6};E=function(r,i){if(r===null||r==="")return null;var s,o,f;return E.isMoment(r)?(s=new e(+r._d),f=r._isUTC):i?u(i)?s=d(r,i):s=h(r,i):(o=A.exec(r),s=r===t?new e:o?new e(+o[1]):r instanceof e?r:u(r)?a(r):typeof r=="string"?v(r):new e(r)),new n(s,f)},E.utc=function(t,r){return u(t)?new n(new e(e.UTC.apply({},t)),!0):r&&t?E(t+" +0000",r+" Z").utc():E(t&&!j.exec(t)?t+"+0000":t).utc()},E.unix=function(e){return E(e*1e3)},E.duration=function(e,t){var n=E.isDuration(e),r=typeof e=="number",s=n?e._data:r?{}:e;return r&&(t?s[t]=e:s.milliseconds=e),new i(s)},E.humanizeDuration=function(e,t,n){return E.duration(e,t===!0?null:t).humanize(t===!0?!0:n)},E.version=S,E.defaultFormat=q,E.lang=function(e,t){var n,r,i=[];if(!e)return C;if(t){for(n=0;n<12;n++)i[n]=new RegExp("^"+t.months[n]+"|^"+t.monthsShort[n].replace(".",""),"i");t.monthsParse=t.monthsParse||i,N[e]=t}if(N[e]){for(n=0;n<L.length;n++)E[L[n]]=N[e][L[n]]||N.en[L[n]];C=e}else k&&(r=require("./lang/"+e),E.lang(e,r))},E.lang("en",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},meridiem:!1,calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(e){var t=e%10;return~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"}}),E.isMoment=function(e){return e instanceof n},E.isDuration=function(e){return e instanceof i},E.fn=n.prototype={clone:function(){return E(this)},valueOf:function(){return+this._d},unix:function(){return Math.floor(+this._d/1e3)},toString:function(){return this._d.toString()},toDate:function(){return this._d},utc:function(){return this._isUTC=!0,this},local:function(){return this._isUTC=!1,this},format:function(e){return f(this,e?e:E.defaultFormat)},add:function(e,t){var n=t?E.duration(+t,e):E.duration(e);return o(this,n,1),this},subtract:function(e,t){var n=t?E.duration(+t,e):E.duration(e);return o(this,n,-1),this},diff:function(e,t,n){var r=this._isUTC?E(e).utc():E(e).local(),i=(this.zone()-r.zone())*6e4,s=this._d-r._d-i,o=this.year()-r.year(),u=this.month()-r.month(),a=this.date()-r.date(),f;return t==="months"?f=o*12+u+a/30:t==="years"?f=o+(u+a/30)/12:f=t==="seconds"?s/1e3:t==="minutes"?s/6e4:t==="hours"?s/36e5:t==="days"?s/864e5:t==="weeks"?s/6048e5:s,n?f:x(f)},from:function(e,t){return E.duration(this.diff(e)).humanize(!t)},fromNow:function(e){return this.from(E(),e)},calendar:function(){var e=this.diff(E().sod(),"days",!0),t=E.calendar,n=t.sameElse,r=e<-6?n:e<-1?t.lastWeek:e<0?t.lastDay:e<1?t.sameDay:e<2?t.nextDay:e<7?t.nextWeek:n;return this.format(typeof r=="function"?r.apply(this):r)},isLeapYear:function(){var e=this.year();return e%4===0&&e%100!==0||e%400===0},isDST:function(){return this.zone()<E([this.year()]).zone()||this.zone()<E([this.year(),5]).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e==null?t:this.add({d:e-t})},sod:function(){return E(this).hours(0).minutes(0).seconds(0).milliseconds(0)},eod:function(){return this.sod().add({d:1,ms:-1})},zone:function(){return this._isUTC?0:this._d.getTimezoneOffset()},daysInMonth:function(){return E(this).month(this.month()+1).date(0).date()}};for(T=0;T<z.length;T++)y(z[T].toLowerCase(),z[T]);y("year","FullYear"),E.duration.fn=i.prototype={weeks:function(){return r(this.days()/7)},valueOf:function(){return this._milliseconds+this._days*864e5+this._months*2592e6},humanize:function(e){var t=+this,n=E.relativeTime,r=g(t,!e);return e&&(r=(t<=0?n.past:n.future).replace(/%s/i,r)),r}};for(T in W)W.hasOwnProperty(T)&&(w(T,W[T]),b(T.toLowerCase()));w("Weeks",6048e5),k&&(module.exports=E),typeof window!="undefined"&&typeof ender=="undefined"&&(window.moment=E),typeof define=="function"&&define.amd&&define("moment",[],function(){return E})}(Date),!function(e){"use strict";function n(){var t=this,n=setTimeout(function(){t.$element.off(e.support.transition.end),r.call(t)},500);this.$element.one(e.support.transition.end,function(){clearTimeout(n),r.call(t)})}function r(e){this.$element.hide().trigger("hidden"),i.call(this)}function i(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&r;this.$backdrop=e('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,e.proxy(s,this)):s.call(this)):t&&t()}function s(){this.$backdrop.remove(),this.$backdrop=null}function o(){var t=this;this.isShown&&this.options.keyboard?e(document).on("keyup.dismiss.modal",function(e){e.which==27&&t.hide()}):this.isShown||e(document).off("keyup.dismiss.modal")}var t=function(t,n){this.options=n,this.$element=e(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",e.proxy(this.hide,this))};t.prototype={constructor:t,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=this,n=e.Event("show");this.$element.trigger(n);if(this.isShown||n.isDefaultPrevented())return;e("body").addClass("modal-open"),this.isShown=!0,o.call(this),i.call(this,function(){var n=e.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body),t.$element.show(),n&&t.$element[0].offsetWidth,isMobileView&&t.$element.css("top",window.pageYOffset+45+"px"),t.$element.addClass("in"),n?t.$element.one(e.support.transition.end,function(){t.$element.trigger("shown")}):t.$element.trigger("shown")})},hide:function(t){t&&t.preventDefault();var i=this;t=e.Event("hide"),this.$element.trigger(t);if(!this.isShown||t.isDefaultPrevented())return;this.isShown=!1,e("body").removeClass("modal-open"),o.call(this),this.$element.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?n.call(this):r.call(this)}},e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof
-n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e(function(){e("body").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({},i.data(),n.data());t.preventDefault(),i.modal(s)})})}(window.jQuery),function(e,t,n){function r(e,n){var r=t.createElement(e||"div"),i;for(i in n)r[i]=n[i];return r}function i(e){for(var t=1,n=arguments.length;t<n;t++)e.appendChild(arguments[t]);return e}function s(e,t,n,r){var i=["opacity",t,~~(e*100),n,r].join("-"),s=.01+n/r*100,o=Math.max(1-(1-e)/t*(100-s),e),u=h.substring(0,h.indexOf("Animation")).toLowerCase(),a=u&&"-"+u+"-"||"";return c[i]||(p.insertRule("@"+a+"keyframes "+i+"{"+"0%{opacity:"+o+"}"+s+"%{opacity:"+e+"}"+(s+.01)+"%{opacity:1}"+(s+t)%100+"%{opacity:"+e+"}"+"100%{opacity:"+o+"}"+"}",0),c[i]=1),i}function o(e,t){var r=e.style,i,s;if(r[t]!==n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(s=0;s<l.length;s++){i=l[s]+t;if(r[i]!==n)return i}}function u(e,t){for(var n in t)e.style[o(e,n)||n]=t[n];return e}function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]===n&&(e[i]=r[i])}return e}function f(e){var t={x:e.offsetLeft,y:e.offsetTop};while(e=e.offsetParent)t.x+=e.offsetLeft,t.y+=e.offsetTop;return t}var l=["webkit","Moz","ms","O"],c={},h,p=function(){var e=r("style");return i(t.getElementsByTagName("head")[0],e),e.sheet||e.styleSheet}(),d={lines:12,length:7,width:5,radius:10,rotate:0,color:"#000",speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto"},v=function m(e){if(!this.spin)return new m(e);this.opts=a(e||{},m.defaults,d)};v.defaults={},a(v.prototype,{spin:function(e){this.stop();var t=this,n=t.opts,i=t.el=u(r(0,{className:n.className}),{position:"relative",zIndex:n.zIndex}),s=n.radius+n.length+n.width,o,a;e&&(e.insertBefore(i,e.firstChild||null),a=f(e),o=f(i),u(i,{left:(n.left=="auto"?a.x-o.x+(e.offsetWidth>>1):n.left+s)+"px",top:(n.top=="auto"?a.y-o.y+(e.offsetHeight>>1):n.top+s)+"px"})),i.setAttribute("aria-role","progressbar"),t.lines(i,t.opts);if(!h){var l=0,c=n.fps,p=c/n.speed,d=(1-n.opacity)/(p*n.trail/100),v=p/n.lines;!function m(){l++;for(var e=n.lines;e;e--){var r=Math.max(1-(l+e*v)%p*d,n.opacity);t.opacity(i,n.lines-e,r,n)}t.timeout=t.el&&setTimeout(m,~~(1e3/c))}()}return t},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=n),this},lines:function(e,t){function n(e,n){return u(r(),{position:"absolute",width:t.length+t.width+"px",height:t.width+"px",background:e,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/t.lines*o+t.rotate)+"deg) translate("+t.radius+"px"+",0)",borderRadius:(t.width>>1)+"px"})}var o=0,a;for(;o<t.lines;o++)a=u(r(),{position:"absolute",top:1+~(t.width/2)+"px",transform:t.hwaccel?"translate3d(0,0,0)":"",opacity:t.opacity,animation:h&&s(t.opacity,t.trail,o,t.lines)+" "+1/t.speed+"s linear infinite"}),t.shadow&&i(a,u(n("#000","0 0 4px #000"),{top:"2px"})),i(e,i(a,n(t.color,"0 0 1px rgba(0,0,0,.1)")));return e},opacity:function(e,t,n){t<e.childNodes.length&&(e.childNodes[t].style.opacity=n)}}),!function(){function e(e,t){return r("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}var t=u(r("group"),{behavior:"url(#default#VML)"});!o(t,"transform")&&t.adj?(p.addRule(".spin-vml","behavior:url(#default#VML)"),v.prototype.lines=function(t,n){function r(){return u(e("group",{coordsize:a+" "+a,coordorigin:-o+" "+ -o}),{width:a,height:a})}function s(t,s,a){i(l,i(u(r(),{rotation:360/n.lines*t+"deg",left:~~s}),i(u(e("roundrect",{arcsize:1}),{width:o,height:n.width,left:n.radius,top:-n.width>>1,filter:a}),e("fill",{color:n.color,opacity:n.opacity}),e("stroke",{opacity:0}))))}var o=n.length+n.width,a=2*o,f=-(n.width+n.length)*2+"px",l=u(r(),{position:"absolute",top:f,left:f}),c;if(n.shadow)for(c=1;c<=n.lines;c++)s(c,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(c=1;c<=n.lines;c++)s(c);return i(t,l)},v.prototype.opacity=function(e,t,n,r){var i=e.firstChild;r=r.shadow&&r.lines||0,i&&t+r<i.childNodes.length&&(i=i.childNodes[t+r],i=i&&i.firstChild,i=i&&i.firstChild,i&&(i.opacity=n))}):h=o(t,"animation")}(),e.Spinner=v}(window,document);var q=null;window.PR_SHOULD_USE_CONTINUATION=!0,function(){function e(e){function t(e){var t=e.charCodeAt(0);if(t!==92)return t;var n=e.charAt(1);return(t=c[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):n==="u"||n==="x"?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);if(e==="\\"||e==="-"||e==="["||e==="]")e="\\"+e;return e}function r(e){for(var r=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),e=[],i=[],s=r[0]==="^",o=s?1:0,u=r.length;o<u;++o){var a=r[o];if(/\\[bdsw]/i.test(a))e.push(a);else{var a=t(a),f;o+2<u&&"-"===r[o+1]?(f=t(r[o+2]),o+=2):f=a,i.push([a,f]),f<65||a>122||(f<65||a>90||i.push([Math.max(65,a)|32,Math.min(f,90)|32]),f<97||a>122||i.push([Math.max(97,a)&-33,Math.min(f,122)&-33]))}}i.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),r=[],a=[NaN,NaN];for(o=0;o<i.length;++o)u=i[o],u[0]<=a[1]+1?a[1]=Math.max(a[1],u[1]):r.push(a=u);i=["["],s&&i.push("^"),i.push.apply(i,e);for(o=0;o<r.length;++o)u=r[o],i.push(n(u[0])),u[1]>u[0]&&(u[1]+1>u[0]&&i.push("-"),i.push(n(u[1])));return i.push("]"),i.join("")}function i(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),n=t.length,i=[],u=0,a=0;u<n;++u){var f=t[u];f==="("?++a:"\\"===f.charAt(0)&&(f=+f.substring(1))&&f<=a&&(i[f]=-1)}for(u=1;u<i.length;++u)-1===i[u]&&(i[u]=++s);for(a=u=0;u<n;++u)f=t[u],f==="("?(++a,i[a]===void 0&&(t[u]="(?:")):"\\"===f.charAt(0)&&(f=+f.substring(1))&&f<=a&&(t[u]="\\"+i[a]);for(a=u=0;u<n;++u)"^"===t[u]&&"^"!==t[u+1]&&(t[u]="");if(e.ignoreCase&&o)for(u=0;u<n;++u)f=t[u],e=f.charAt(0),f.length>=2&&e==="["?t[u]=r(f):e!=="\\"&&(t[u]=f.replace(/[A-Za-z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(e&-33,e|32)+"]"}));return t.join("")}for(var s=0,o=!1,u=!1,a=0,f=e.length;a<f;++a){var l=e[a];if(l.ignoreCase)u=!0;else if(/[a-z]/i.test(l.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){o=!0,u=!1;break}}for(var c={b:8,t:9,n:10,v:11,f:12,r:13},h=[],a=0,f=e.length;a<f;++a){l=e[a];if(l.global||l.multiline)throw Error(""+l);h.push("(?:"+i(l)+")")}return RegExp(h.join("|"),u?"gi":"g")}function t(e){function t(e){switch(e.nodeType){case 1:if(n.test(e.className))break;for(var u=e.firstChild;u;u=u.nextSibling)t(u);u=e.nodeName;if("BR"===u||"LI"===u)r[o]="\n",s[o<<1]=i++,s[o++<<1|1]=e;break;case 3:case 4:u=e.nodeValue,u.length&&(u=a?u.replace(/\r\n?/g,"\n"):u.replace(/[\t\n\r ]+/g," "),r[o]=u,s[o<<1]=i,i+=u.length,s[o++<<1|1]=e)}}var n=/(?:^|\s)nocode(?:\s|$)/,r=[],i=0,s=[],o=0,u;e.currentStyle?u=e.currentStyle.whiteSpace:window.getComputedStyle&&(u=document.defaultView.getComputedStyle(e,q).getPropertyValue("white-space"));var a=u&&"pre"===u.substring(0,3);return t(e),{a:r.join("").replace(/\n$/,""),c:s}}function n(e,t,n,r){t&&(e={a:t,d:e},n(e),r.push.apply(r,e.e))}function r(t,r){function i(e){for(var t=e.d,f=[t,"pln"],l=0,c=e.a.match(o)||[],h={},p=0,d=c.length;p<d;++p){var v=c[p],m=h[v],g=void 0,y;if(typeof m=="string")y=!1;else{var b=s[v.charAt(0)];if(b)g=v.match(b[1]),m=b[0];else{for(y=0;y<a;++y)if(b=r[y],g=v.match(b[1])){m=b[0];break}g||(m="pln")}(y=m.length>=5&&"lang-"===m.substring(0,5))&&(!g||typeof g[1]!="string")&&(y=!1,m="src"),y||(h[v]=m)}b=l,l+=v.length;if(y){y=g[1];var w=v.indexOf(y),E=w+y.length;g[2]&&(E=v.length-g[2].length,w=E-y.length),m=m.substring(5),n(t+b,v.substring(0,w),i,f),n(t+b+w,y,u(m,y),f),n(t+b+E,v.substring(E),i,f)}else f.push(t+b,m)}e.e=f}var s={},o;(function(){for(var n=t.concat(r),i=[],u={},a=0,f=n.length;a<f;++a){var l=n[a],c=l[3];if(c)for(var h=c.length;--h>=0;)s[c.charAt(h)]=l;l=l[1],c=""+l,u.hasOwnProperty(c)||(i.push(l),u[c]=q)}i.push(/[\S\s]/),o=e(i)})();var a=r.length;return i}function i(e){var t=[],n=[];e.tripleQuotedStrings?t.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):e.multiLineStrings?t.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,q,"'\"`"]):t.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var i=e.hashComments;return i&&(e.cStyleComments?(i>1?t.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):t.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):t.push(["com",/^#[^\n\r]*/,q,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,q]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q])),e.regexLiterals&&n.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]),(i=e.types)&&n.push(["typ",i]),e=(""+e.keywords).replace(/^ | $/g,""),e.length&&n.push(["kwd",RegExp("^(?:"+e.replace(/[\s,]+/g,"|")+")\\b"),q]),t.push(["pln",/^\s+/,q," \r\n  "]),n.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]),r(t,n)}function s(e,t){function n(e){switch(e.nodeType){case 1:if(i.test(e.className))break;if("BR"===e.nodeName)r(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)n(e);break;case 3:case 4:if(a){var t=e.nodeValue,u=t.match(s);if(u){var f=t.substring(0,u.index);e.nodeValue=f,(t=t.substring(u.index+u[0].length))&&e.parentNode.insertBefore(o.createTextNode(t),e.nextSibling),r(e),f||e.parentNode.removeChild(e)}}}}function r(e){function t(e,n){var r=n?e.cloneNode(!1):e,i=e.parentNode;if(i){var i=t(i,1),s=e.nextSibling;i.appendChild(r);for(var o=s;o;o=s)s=o.nextSibling,i.appendChild(o)}return r}for(;!e.nextSibling;)if(e=e.parentNode,!e)return;for(var e=t(e.nextSibling,0),n;(n=e.parentNode)&&n.nodeType===1;)e=n;f.push(e)}var i=/(?:^|\s)nocode(?:\s|$)/,s=/\r\n?|\n/,o=e.ownerDocument,u;e.currentStyle?u=e.currentStyle.whiteSpace:window.getComputedStyle&&(u=o.defaultView.getComputedStyle(e,q).getPropertyValue("white-space"));var a=u&&"pre"===u.substring(0,3);for(u=o.createElement("LI");e.firstChild;)u.appendChild(e.firstChild);for(var f=[u],l=0;l<f.length;++l)n(f[l]);t===(t|0)&&f[0].setAttribute("value",t);var c=o.createElement("OL");c.className="linenums";for(var h=Math.max(0,t-1|0)||0,l=0,p=f.length;l<p;++l)u=f[l],u.className="L"+(l+h)%10,u.firstChild||u.appendChild(o.createTextNode(" ")),c.appendChild(u);e.appendChild(c)}function o(e,t){for(var n=t.length;--n>=0;){var r=t[n];b.hasOwnProperty(r)?window.console&&console.warn("cannot override language handler %s",r):b[r]=e}}function u(e,t){if(!e||!b.hasOwnProperty(e))e=/^\s*</.test(t)?"default-markup":"default-code";return b[e]}function a(e){var n=e.g;try{var r=t(e.h),i=r.a;e.a=i,e.c=r.c,e.d=0,u(n,i)(e);var s=/\bMSIE\b/.test(navigator.userAgent),n=/\n/g,o=e.a,a=o.length,r=0,f=e.c,l=f.length,i=0,c=e.e,h=c.length,e=0;c[h]=a;var p,d;for(d=p=0;d<h;)c[d]!==c[d+2]?(c[p++]=c[d++],c[p++]=c[d++]):d+=2;h=p;for(d=p=0;d<h;){for(var v=c[d],m=c[d+1],g=d+2;g+2<=h&&c[g+1]===m;)g+=2;c[p++]=v,c[p++]=m,d=g}for(c.length=p;i<l;){var y=f[i+2]||a,b=c[e+2]||a,g=Math.min(y,b),w=f[i+1],E;if(w.nodeType!==1&&(E=o.substring(r,g))){s&&(E=E.replace(n,"\r")),w.nodeValue=E;var S=w.ownerDocument,x=S.createElement("SPAN");x.className=c[e+1];var T=w.parentNode;T.replaceChild(x,w),x.appendChild(w),r<y&&(f[i+1]=w=S.createTextNode(o.substring(g,y)),T.insertBefore(w,x.nextSibling))}r=g,r>=y&&(i+=2),r>=b&&(e+=2)}}catch(N){"console"in window&&console.log(N&&N.stack?N.stack:N)}}var f=["break,continue,do,else,for,if,return,while"],l=[[f,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],c=[l,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],h=[l,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],p=[h,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],l=[l,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],d=[f,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],v=[f,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],f=[f,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],m=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,g=/\S/,y=i({keywords:[c,p,l,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+d,v,f],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),b={};o(y,["default-code"]),o(r([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),o(r([["pln",/^\s+/,q," \r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),o(r([],[["atv",/^[\S\s]+/]]),["uq.val"]),o(i({keywords:c,hashComments:!0,cStyleComments:!0,types:m}),["c","cc","cpp","cxx","cyc","m"]),o(i({keywords:"null,true,false"}),["json"]),o(i({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:m}),["cs"]),o(i({keywords:h,cStyleComments:!0}),["java"]),o(i({keywords:f,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]),o(i({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py"]),o(i({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]),o(i({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]),o(i({keywords:l,cStyleComments:!0,regexLiterals:!0}),["js"]),o(i({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),o(r([],[["str",/^[\S\s]+/]]),["regex"]),window.prettyPrintOne=function(e,t,n){var r=document.createElement("PRE");return r.innerHTML=e,n&&s(r,n),a({g:t,i:n,h:r}),r.innerHTML},window.prettyPrint=function(e){function t(){for(var n=window.PR_SHOULD_USE_CONTINUATION?f.now()+250:Infinity;l<r.length&&f.now()<n;l++){var i=r[l],o=i.className;if(o.indexOf("prettyprint")>=0){var o=o.match(h),u,p;if(p=!o){p=i;for(var d=void 0,v=p.firstChild;v;v=v.nextSibling)var m=v.nodeType,d=m===1?d?p:v:m===3?g.test(v.nodeValue)?p:d:d;p=(u=d===p?void 0:d)&&"CODE"===u.tagName}p&&(o=u.className.match(h)),o&&(o=o[1]),p=!1;for(d=i.parentNode;d;d=d.parentNode)if((d.tagName==="pre"||d.tagName==="code"||d.tagName==="xmp")&&d.className&&d.className.indexOf("prettyprint")>=0){p=!0;break}p||((p=(p=i.className.match(/\blinenums\b(?::(\d+))?/))?p[1]&&p[1].length?+p[1]:!0:!1)&&s(i,p),c={g:o,h:i,i:p},a(c))}}l<r.length?setTimeout(t,250):e&&e()}for(var n=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],r=[],i=0;i<n.length;++i)for(var o=0,u=n[i].length;o<u;++o)r.push(n[i][o]);var n=q,f=Date;f.now||(f={now:function(){return+(new Date)}});var l=0,c,h=/\blang(?:uage)?-([\w.]+)(?!\S)/;t()},window.PR={createSimpleLexer:r,registerLangHandler:o,sourceDecorator:i,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}}(),require.config({baseUrl:"/static/",paths:{text:"js/libs/text",json:"js/libs/json"},waitSeconds:15});var spin_opts={lines:9,length:5,width:2,radius:4,rotate:9,color:"#4c4c4c",speed:1.5,trail:40,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9},isMobileView=!1,mediaQuery=window.matchMedia("(max-width:600px)");mediaQuery.matches&&(isMobileView=!0),$(function(){$("#mobile-nav-btn").click(function(){$(".main-section").toggleClass("nav-opened")})}); \ No newline at end of file
diff --git a/syte/static/less/base.less b/syte/static/less/base.less
deleted file mode 100644
index b801e3f..0000000
--- a/syte/static/less/base.less
+++ /dev/null
@@ -1,68 +0,0 @@
-
-body {
- font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
- font-size: 15px;
- color: @text-color;
-}
-
-::selection, ::-moz-selection {
- background: @adjacent-color;
- color: #fff;
- text-shadow: none;
-}
-
-h1, .h1 { font-size: 30px; line-height: 35px; font-weight: 500; }
-h2, .h2 { font-size: 24px; line-height: 30px; font-weight: 500; }
-h3, .h3 { font-size: 18px; line-height: 25px; font-weight: 500; }
-h4, .h4 { font-size: 16px; line-height: 20px; font-weight: 500; }
-h5, .h5 { font-size: 16px; line-height: 20px; font-weight: 500; }
-h6, .h6 { font-size: 14px; line-height: 20px; font-weight: 500; }
-
-ul { margin: 0 0 15px 15px; }
-ol { margin: 0 0 15px 20px;}
-li { margin-bottom: 5px;
- ul, ol { margin-bottom: 0; }
-}
-
-dl {
- margin-bottom: 10px;
- dt { font-weight: bold; }
- dd { margin: 0 0 5px 10px; }
-}
-
-p {
- line-height: 25px;
- margin-top: 20px;
- margin-bottom: 20px;
-}
-
-a {
- color: @link-color;
- text-decoration: none;
- border-bottom: 1px solid @text-color;
-
- &:hover {
- color: @adjacent-color;
- border-bottom: 1px solid @adjacent-color;
- }
-
- &.no-border {border-bottom: 0;}
-}
-
-blockquote {
- margin-top: 20px 0;
- padding: 0 0 0 20px;
- border-left: 5px solid @adjacent-color;
-
- p:first-child {
- margin-top: 5px;
- }
-}
-
-.descr {
- display: block;
- font-size: 12px;
- line-height: 20px;
- color: #7f7e7e;
-}
-
diff --git a/syte/static/less/buttons.less b/syte/static/less/buttons.less
deleted file mode 100644
index 67547d8..0000000
--- a/syte/static/less/buttons.less
+++ /dev/null
@@ -1,27 +0,0 @@
-//Button
-.btn {
- display: inline-block;
- padding: 4px 10px 4px;
- font-size: 13px;
- line-height: 18px;
- color: #333;
- text-align: center;
- text-shadow: 0 1px 1px rgba(255,255,255,.75);
- vertical-align: middle;
- cursor: pointer;
- .gradient(#fff, darken(#fff, 10%));
- border: 1px solid #ccc;
- border-bottom-color: darken(#ccc, 10%);
- .border-radius(4px);
- .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
-}
-
-.btn:hover {
- color: #333;
- text-decoration: none;
- background-color: darken(#fff, 10%);
- background-position: 0 -15px;
- border-bottom-color: darken(#ccc, 10%);
-
- .transition(background-position .1s linear);
-}
diff --git a/syte/static/less/code.less b/syte/static/less/code.less
deleted file mode 100644
index 7861274..0000000
--- a/syte/static/less/code.less
+++ /dev/null
@@ -1,86 +0,0 @@
-
-code, pre {
- padding: 0 3px 2px;
- color: #333;
-
- .font-monospace();
- .border-radius(3px);
-}
-
-// Inline code
-code {
- padding: 2px 4px;
- color: @adjacent-color;
- background-color: #f7f7f9;
- border: 1px solid #e1e1e8;
-}
-
-.reset-code() {
- padding: 0;
- color: inherit;
- background-color: transparent;
- border: 0;
-}
-
-// Blocks of code
-pre {
- display: block;
- padding: 8px;
- margin: 0 0 9px;
- word-break: break-all;
- word-wrap: break-word;
- white-space: pre;
- white-space: pre-wrap;
- background-color: #f5f5f5;
-
- border: 1px solid #ccc; // IE8-
- border: 1px solid rgba(0,0,0,.15);
- .border-radius(4px);
-
- &.prettyprint { margin-bottom: 20px; }
-
- code {
- .reset-code();
- }
-}
-
-.pre-scrollable {
- max-height: 340px;
- overflow-y: scroll;
-}
-
-blockquote code {
- .reset-code();
-}
-
-//Pretty print
-.com { color: #93a1a1; }
-.lit { color: #195f91; }
-.pun, .opn, .clo { color: #93a1a1; }
-.fun { color: #dc322f; }
-.str, .atv { color: #da3f47; }
-.kwd, .linenums .tag { color: #1e347b; }
-.typ, .atn, .dec, .var { color: teal; }
-.pln { color: #48484c; }
-
-.prettyprint {
- padding: 8px;
- background-color: #f7f7f9;
- border: 1px solid #e1e1e8;
-}
-.prettyprint.linenums {
- @linenums-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
- .box-shadow(@linenums-shadow);
-}
-
-ol.linenums {
- margin: 0 0 0 33px; /* IE indents via margin-left */
-
- li {
- padding-left: 12px;
- color: #bebec5;
- line-height: 18px;
- text-shadow: 0 1px 0 #fff;
- }
-}
-
diff --git a/syte/static/less/less-1.1.5.min.js b/syte/static/less/less-1.1.5.min.js
deleted file mode 100755
index 49949fb..0000000
--- a/syte/static/less/less-1.1.5.min.js
+++ /dev/null
@@ -1,9 +0,0 @@
-//
-// LESS - Leaner CSS v1.1.5
-// http://lesscss.org
-//
-// Copyright (c) 2009-2011, Alexis Sellier
-// Licensed under the Apache 2.0 License.
-//
-(function(a,b){function c(b){return a.less[b.split("/")[1]]}function l(){var a=document.getElementsByTagName("style");for(var b=0;b<a.length;b++)a[b].type.match(j)&&(new d.Parser).parse(a[b].innerHTML||"",function(c,d){var e=d.toCSS(),f=a[b];try{f.innerHTML=e}catch(g){f.styleSheets.cssText=e}f.type="text/css"})}function m(a,b){for(var c=0;c<d.sheets.length;c++)n(d.sheets[c],a,b,d.sheets.length-(c+1))}function n(b,c,e,f){var h=a.location.href.replace(/[#?].*$/,""),i=b.href.replace(/\?.*$/,""),j=g&&g.getItem(i),k=g&&g.getItem(i+":timestamp"),l={css:j,timestamp:k};/^(https?|file):/.test(i)||(i.charAt(0)=="/"?i=a.location.protocol+"//"+a.location.host+i:i=h.slice(0,h.lastIndexOf("/")+1)+i),q(b.href,b.type,function(a,g){if(!e&&l&&g&&(new Date(g)).valueOf()===(new Date(l.timestamp)).valueOf())p(l.css,b),c(null,b,{local:!0,remaining:f});else try{(new d.Parser({optimization:d.optimization,paths:[i.replace(/[\w\.-]+$/,"")],mime:b.type})).parse(a,function(a,d){if(a)return u(a,i);try{c(d,b,{local:!1,lastModified:g,remaining:f}),s(document.getElementById("less-error-message:"+o(i)))}catch(a){u(a,i)}})}catch(h){u(h,i)}},function(a,b){throw new Error("Couldn't load "+b+" ("+a+")")})}function o(a){return a.replace(/^[a-z]+:\/\/?[^\/]+/,"").replace(/^\//,"").replace(/\?.*$/,"").replace(/\.[^\.\/]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function p(a,b,c){var d,e=b.href?b.href.replace(/\?.*$/,""):"",f="less:"+(b.title||o(e));(d=document.getElementById(f))===null&&(d=document.createElement("style"),d.type="text/css",d.media=b.media||"screen",d.id=f,document.getElementsByTagName("head")[0].appendChild(d));if(d.styleSheet)try{d.styleSheet.cssText=a}catch(h){throw new Error("Couldn't reassign styleSheet.cssText.")}else(function(a){d.childNodes.length>0?d.firstChild.nodeValue!==a.nodeValue&&d.replaceChild(a,d.firstChild):d.appendChild(a)})(document.createTextNode(a));c&&g&&(t("saving "+e+" to cache."),g.setItem(e,a),g.setItem(e+":timestamp",c))}function q(a,b,c,e){function i(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):typeof d=="function"&&d(b.status,a)}var g=r(),h=f?!1:d.async;typeof g.overrideMimeType=="function"&&g.overrideMimeType("text/css"),g.open("GET",a,h),g.setRequestHeader("Accept",b||"text/x-less, text/css; q=0.9, */*; q=0.5"),g.send(null),f?g.status===0?c(g.responseText):e(g.status,a):h?g.onreadystatechange=function(){g.readyState==4&&i(g,c,e)}:i(g,c,e)}function r(){if(a.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(b){return t("browser doesn't support AJAX."),null}}function s(a){return a&&a.parentNode.removeChild(a)}function t(a){d.env=="development"&&typeof console!="undefined"&&console.log("less: "+a)}function u(a,b){var c="less-error-message:"+o(b),e=["<ul>",'<li><label>[-1]</label><pre class="ctx">{0}</pre></li>',"<li><label>[0]</label><pre>{current}</pre></li>",'<li><label>[1]</label><pre class="ctx">{2}</pre></li>',"</ul>"].join("\n"),f=document.createElement("div"),g,h;f.id=c,f.className="less-error-message",h="<h3>"+(a.message||"There is an error in your .less file")+"</h3>"+'<p><a href="'+b+'">'+b+"</a> ",a.extract&&(h+="on line "+a.line+", column "+(a.column+1)+":</p>"+e.replace(/\[(-?\d)\]/g,function(b,c){return parseInt(a.line)+parseInt(c)||""}).replace(/\{(\d)\}/g,function(b,c){return a.extract[parseInt(c)]||""}).replace(/\{current\}/,a.extract[1].slice(0,a.column)+'<span class="error">'+a.extract[1].slice(a.column)+"</span>")),f.innerHTML=h,p([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #ee4444;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.ctx {","color: #dd4444;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),f.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),d.env=="development"&&(g=setInterval(function(){document.body&&(document.getElementById(c)?document.body.replaceChild(f,document.getElementById(c)):document.body.insertBefore(f,document.body.firstChild),clearInterval(g))},10))}Array.isArray||(Array.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"||a instanceof Array}),Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c=this.length>>>0;for(var d=0;d<c;d++)d in this&&a.call(b,this[d],d,this)}),Array.prototype.map||(Array.prototype.map=function(a){var b=this.length>>>0,c=new Array(b),d=arguments[1];for(var e=0;e<b;e++)e in this&&(c[e]=a.call(d,this[e],e,this));return c}),Array.prototype.filter||(Array.prototype.filter=function(a){var b=[],c=arguments[1];for(var d=0;d<this.length;d++)a.call(c,this[d])&&b.push(this[d]);return b}),Array.prototype.reduce||(Array.prototype.reduce=function(a){var b=this.length>>>0,c=0;if(b===0&&arguments.length===1)throw new TypeError;if(arguments.length>=2)var d=arguments[1];else do{if(c in this){d=this[c++];break}if(++c>=b)throw new TypeError}while(!0);for(;c<b;c++)c in this&&(d=a.call(null,d,this[c],c,this));return d}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=arguments[1]||0;if(!b)return-1;if(c>=b)return-1;c<0&&(c+=b);for(;c<b;c++){if(!Object.prototype.hasOwnProperty.call(this,c))continue;if(a===this[c])return c}return-1}),Object.keys||(Object.keys=function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}),String.prototype.trim||(String.prototype.trim=function(){return String(this).replace(/^\s\s*/,"").replace(/\s\s*$/,"")});var d,e;typeof environment=="object"&&{}.toString.call(environment)==="[object Environment]"?(d={},e=d.tree={},d.mode="rhino"):typeof a=="undefined"?(d=exports,e=c("./tree"),d.mode="node"):(typeof a.less=="undefined"&&(a.less={}),d=a.less,e=a.less.tree={},d.mode="browser"),d.Parser=function(a){function p(){g=j[f],h=c,k=c}function q(){j[f]=g,c=h,k=c}function r(){c>k&&(j[f]=j[f].slice(c-k),k=c)}function s(a){var d,e,g,h,i,m,n,o;if(a instanceof Function)return a.call(l.parsers);if(typeof a=="string")d=b.charAt(c)===a?a:null,g=1,r();else{r();if(d=a.exec(j[f]))g=d[0].length;else return null}if(d){o=c+=g,m=c+j[f].length-g;while(c<m){h=b.charCodeAt(c);if(h!==32&&h!==10&&h!==9)break;c++}return j[f]=j[f].slice(g+(c-o)),k=c,j[f].length===0&&f<j.length-1&&f++,typeof d=="string"?d:d.length===1?d[0]:d}}function t(a){return typeof a=="string"?b.charAt(c)===a:a.test(j[f])?!0:!1}var b,c,f,g,h,i,j,k,l,m=this,n=function(){},o=this.imports={paths:a&&a.paths||[],queue:[],files:{},mime:a&&a.mime,push:function(b,c){var e=this;this.queue.push(b),d.Parser.importer(b,this.paths,function(a){e.queue.splice(e.queue.indexOf(b),1),e.files[b]=a,c(a),e.queue.length===0&&n()},a)}};return this.env=a=a||{},this.optimization="optimization"in this.env?this.env.optimization:1,this.env.filename=this.env.filename||null,l={imports:o,parse:function(d,g){var h,l,m,o,p,q,r=[],t,u=null;c=f=k=i=0,j=[],b=d.replace(/\r\n/g,"\n"),j=function(c){var d=0,e=/[^"'`\{\}\/\(\)]+/g,f=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,g=0,h,i=c[0],j,k;for(var l=0,m,n;l<b.length;l++){e.lastIndex=l,(h=e.exec(b))&&h.index===l&&(l+=h[0].length,i.push(h[0])),m=b.charAt(l),f.lastIndex=l,!k&&!j&&m==="/"&&(n=b.charAt(l+1),(n==="/"||n==="*")&&(h=f.exec(b))&&h.index===l&&(l+=h[0].length,i.push(h[0]),m=b.charAt(l)));if(m==="{"&&!k&&!j)g++,i.push(m);else if(m==="}"&&!k&&!j)g--,i.push(m),c[++d]=i=[];else if(m==="("&&!k&&!j)i.push(m),j=!0;else if(m===")"&&!k&&j)i.push(m),j=!1;else{if(m==='"'||m==="'"||m==="`")k?k=k===m?!1:k:k=m;i.push(m)}}if(g>0)throw{type:"Syntax",message:"Missing closing `}`",filename:a.filename};return c.map(function(a){return a.join("")})}([[]]),h=new e.Ruleset([],s(this.parsers.primary)),h.root=!0,h.toCSS=function(c){var d,f,g;return function(g,h){function n(a){return a?(b.slice(0,a).match(/\n/g)||"").length:null}var i=[];g=g||{},typeof h=="object"&&!Array.isArray(h)&&(h=Object.keys(h).map(function(a){var b=h[a];return b instanceof e.Value||(b instanceof e.Expression||(b=new e.Expression([b])),b=new e.Value([b])),new e.Rule("@"+a,b,!1,0)}),i=[new e.Ruleset(null,h)]);try{var j=c.call(this,{frames:i}).toCSS([],{compress:g.compress||!1})}catch(k){f=b.split("\n"),d=n(k.index);for(var l=k.index,m=-1;l>=0&&b.charAt(l)!=="\n";l--)m++;throw{type:k.type,message:k.message,filename:a.filename,index:k.index,line:typeof d=="number"?d+1:null,callLine:k.call&&n(k.call)+1,callExtract:f[n(k.call)],stack:k.stack,column:m,extract:[f[d-1],f[d],f[d+1]]}}return g.compress?j.replace(/(\s)+/g,"$1"):j}}(h.eval);if(c<b.length-1){c=i,q=b.split("\n"),p=(b.slice(0,c).match(/\n/g)||"").length+1;for(var v=c,w=-1;v>=0&&b.charAt(v)!=="\n";v--)w++;u={name:"ParseError",message:"Syntax Error on line "+p,index:c,filename:a.filename,line:p,column:w,extract:[q[p-2],q[p-1],q[p]]}}this.imports.queue.length>0?n=function(){g(u,h)}:g(u,h)},parsers:{primary:function(){var a,b=[];while((a=s(this.mixin.definition)||s(this.rule)||s(this.ruleset)||s(this.mixin.call)||s(this.comment)||s(this.directive))||s(/^[\s\n]+/))a&&b.push(a);return b},comment:function(){var a;if(b.charAt(c)!=="/")return;if(b.charAt(c+1)==="/")return new e.Comment(s(/^\/\/.*/),!0);if(a=s(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))return new e.Comment(a)},entities:{quoted:function(){var a,d=c,f;b.charAt(d)==="~"&&(d++,f=!0);if(b.charAt(d)!=='"'&&b.charAt(d)!=="'")return;f&&s("~");if(a=s(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))return new e.Quoted(a[0],a[1]||a[2],f)},keyword:function(){var a;if(a=s(/^[_A-Za-z-][_A-Za-z0-9-]*/))return new e.Keyword(a)},call:function(){var a,b,d=c;if(!(a=/^([\w-]+|%)\(/.exec(j[f])))return;a=a[1].toLowerCase();if(a==="url")return null;c+=a.length;if(a==="alpha")return s(this.alpha);s("("),b=s(this.entities.arguments);if(!s(")"))return;if(a)return new e.Call(a,b,d)},arguments:function(){var a=[],b;while(b=s(this.expression)){a.push(b);if(!s(","))break}return a},literal:function(){return s(this.entities.dimension)||s(this.entities.color)||s(this.entities.quoted)},url:function(){var a;if(b.charAt(c)!=="u"||!s(/^url\(/))return;a=s(this.entities.quoted)||s(this.entities.variable)||s(this.entities.dataURI)||s(/^[-\w%@$\/.&=:;#+?~]+/)||"";if(!s(")"))throw new Error("missing closing ) for url()");return new e.URL(a.value||a.data||a instanceof e.Variable?a:new e.Anonymous(a),o.paths)},dataURI:function(){var a;if(s(/^data:/)){a={},a.mime=s(/^[^\/]+\/[^,;)]+/)||"",a.charset=s(/^;\s*charset=[^,;)]+/)||"",a.base64=s(/^;\s*base64/)||"",a.data=s(/^,\s*[^)]+/);if(a.data)return a}},variable:function(){var a,d=c;if(b.charAt(c)==="@"&&(a=s(/^@@?[\w-]+/)))return new e.Variable(a,d)},color:function(){var a;if(b.charAt(c)==="#"&&(a=s(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/)))return new e.Color(a[1])},dimension:function(){var a,d=b.charCodeAt(c);if(d>57||d<45||d===47)return;if(a=s(/^(-?\d*\.?\d+)(px|%|em|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/))return new e.Dimension(a[1],a[2])},javascript:function(){var a,d=c,f;b.charAt(d)==="~"&&(d++,f=!0);if(b.charAt(d)!=="`")return;f&&s("~");if(a=s(/^`([^`]*)`/))return new e.JavaScript(a[1],c,f)}},variable:function(){var a;if(b.charAt(c)==="@"&&(a=s(/^(@[\w-]+)\s*:/)))return a[1]},shorthand:function(){var a,b;if(!t(/^[@\w.%-]+\/[@\w.-]+/))return;if((a=s(this.entity))&&s("/")&&(b=s(this.entity)))return new e.Shorthand(a,b)},mixin:{call:function(){var a=[],d,f,g,h=c,i=b.charAt(c);if(i!=="."&&i!=="#")return;while(d=s(/^[#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/))a.push(new e.Element(f,d,c)),f=s(">");s("(")&&(g=s(this.entities.arguments))&&s(")");if(a.length>0&&(s(";")||t("}")))return new e.mixin.Call(a,g,h)},definition:function(){var a,d=[],f,g,h,i;if(b.charAt(c)!=="."&&b.charAt(c)!=="#"||t(/^[^{]*(;|})/))return;if(f=s(/^([#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+)\s*\(/)){a=f[1];while(h=s(this.entities.variable)||s(this.entities.literal)||s(this.entities.keyword)){if(h instanceof e.Variable)if(s(":"))if(i=s(this.expression))d.push({name:h.name,value:i});else throw new Error("Expected value");else d.push({name:h.name});else d.push({value:h});if(!s(","))break}if(!s(")"))throw new Error("Expected )");g=s(this.block);if(g)return new e.mixin.Definition(a,d,g)}}},entity:function(){return s(this.entities.literal)||s(this.entities.variable)||s(this.entities.url)||s(this.entities.call)||s(this.entities.keyword)||s(this.entities.javascript)||s(this.comment)},end:function(){return s(";")||t("}")},alpha:function(){var a;if(!s(/^\(opacity=/i))return;if(a=s(/^\d+/)||s(this.entities.variable)){if(!s(")"))throw new Error("missing closing ) for alpha()");return new e.Alpha(a)}},element:function(){var a,b,d;d=s(this.combinator),a=s(/^(?:\d+\.\d+|\d+)%/)||s(/^(?:[.#]?|:*)(?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/)||s("*")||s(this.attribute)||s(/^\([^)@]+\)/);if(a)return new e.Element(d,a,c);if(d.value&&d.value.charAt(0)==="&")return new e.Element(d,null,c)},combinator:function(){var a,d=b.charAt(c);if(d===">"||d==="+"||d==="~"){c++;while(b.charAt(c)===" ")c++;return new e.Combinator(d)}if(d==="&"){a="&",c++,b.charAt(c)===" "&&(a="& ");while(b.charAt(c)===" ")c++;return new e.Combinator(a)}if(d===":"&&b.charAt(c+1)===":"){c+=2;while(b.charAt(c)===" ")c++;return new e.Combinator("::")}return b.charAt(c-1)===" "?new e.Combinator(" "):new e.Combinator(null)},selector:function(){var a,d,f=[],g,h;while(d=s(this.element)){g=b.charAt(c),f.push(d);if(g==="{"||g==="}"||g===";"||g===",")break}if(f.length>0)return new e.Selector(f)},tag:function(){return s(/^[a-zA-Z][a-zA-Z-]*[0-9]?/)||s("*")},attribute:function(){var a="",b,c,d;if(!s("["))return;if(b=s(/^[a-zA-Z-]+/)||s(this.entities.quoted))(d=s(/^[|~*$^]?=/))&&(c=s(this.entities.quoted)||s(/^[\w-]+/))?a=[b,d,c.toCSS?c.toCSS():c].join(""):a=b;if(!s("]"))return;if(a)return"["+a+"]"},block:function(){var a;if(s("{")&&(a=s(this.primary))&&s("}"))return a},ruleset:function(){var a=[],b,d,f;p();while(b=s(this.selector)){a.push(b),s(this.comment);if(!s(","))break;s(this.comment)}if(a.length>0&&(d=s(this.block)))return new e.Ruleset(a,d);i=c,q()},rule:function(){var a,d,g=b.charAt(c),k,l;p();if(g==="."||g==="#"||g==="&")return;if(a=s(this.variable)||s(this.property)){a.charAt(0)!="@"&&(l=/^([^@+\/'"*`(;{}-]*);/.exec(j[f]))?(c+=l[0].length-1,d=new e.Anonymous(l[1])):a==="font"?d=s(this.font):d=s(this.value),k=s(this.important);if(d&&s(this.end))return new e.Rule(a,d,k,h);i=c,q()}},"import":function(){var a;if(s(/^@import\s+/)&&(a=s(this.entities.quoted)||s(this.entities.url))&&s(";"))return new e.Import(a,o)},directive:function(){var a,d,f,g;if(b.charAt(c)!=="@")return;if(d=s(this["import"]))return d;if(a=s(/^@media|@page/)||s(/^@(?:-webkit-|-moz-)?keyframes/)){g=(s(/^[^{]+/)||"").trim();if(f=s(this.block))return new e.Directive(a+" "+g,f)}else if(a=s(/^@[-a-z]+/))if(a==="@font-face"){if(f=s(this.block))return new e.Directive(a,f)}else if((d=s(this.entity))&&s(";"))return new e.Directive(a,d)},font:function(){var a=[],b=[],c,d,f,g;while(g=s(this.shorthand)||s(this.entity))b.push(g);a.push(new e.Expression(b));if(s(","))while(g=s(this.expression)){a.push(g);if(!s(","))break}return new e.Value(a)},value:function(){var a,b=[],c;while(a=s(this.expression)){b.push(a);if(!s(","))break}if(b.length>0)return new e.Value(b)},important:function(){if(b.charAt(c)==="!")return s(/^! *important/)},sub:function(){var a;if(s("(")&&(a=s(this.expression))&&s(")"))return a},multiplication:function(){var a,b,c,d;if(a=s(this.operand)){while((c=s("/")||s("*"))&&(b=s(this.operand)))d=new e.Operation(c,[d||a,b]);return d||a}},addition:function(){var a,d,f,g;if(a=s(this.multiplication)){while((f=s(/^[-+]\s+/)||b.charAt(c-1)!=" "&&(s("+")||s("-")))&&(d=s(this.multiplication)))g=new e.Operation(f,[g||a,d]);return g||a}},operand:function(){var a,d=b.charAt(c+1);b.charAt(c)==="-"&&(d==="@"||d==="(")&&(a=s("-"));var f=s(this.sub)||s(this.entities.dimension)||s(this.entities.color)||s(this.entities.variable)||s(this.entities.call);return a?new e.Operation("*",[new e.Dimension(-1),f]):f},expression:function(){var a,b,c=[],d;while(a=s(this.addition)||s(this.entity))c.push(a);if(c.length>0)return new e.Expression(c)},property:function(){var a;if(a=s(/^(\*?-?[-a-z_0-9]+)\s*:/))return a[1]}}}};if(d.mode==="browser"||d.mode==="rhino")d.Parser.importer=function(a,b,c,d){a.charAt(0)!=="/"&&b.length>0&&(a=b[0]+a),n({href:a,title:a,type:d.mime},c,!0)};(function(a){function b(b){return a.functions.hsla(b.h,b.s,b.l,b.a)}function c(b){if(b instanceof a.Dimension)return parseFloat(b.unit=="%"?b.value/100:b.value);if(typeof b=="number")return b;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function d(a){return Math.min(1,Math.max(0,a))}a.functions={rgb:function(a,b,c){return this.rgba(a,b,c,1)},rgba:function(b,d,e,f){var g=[b,d,e].map(function(a){return c(a)}),f=c(f);return new a.Color(g,f)},hsl:function(a,b,c){return this.hsla(a,b,c,1)},hsla:function(a,b,d,e){function h(a){return a=a<0?a+1:a>1?a-1:a,a*6<1?g+(f-g)*a*6:a*2<1?f:a*3<2?g+(f-g)*(2/3-a)*6:g}a=c(a)%360/360,b=c(b),d=c(d),e=c(e);var f=d<=.5?d*(b+1):d+b-d*b,g=d*2-f;return this.rgba(h(a+1/3)*255,h(a)*255,h(a-1/3)*255,e)},hue:function(b){return new a.Dimension(Math.round(b.toHSL().h))},saturation:function(b){return new a.Dimension(Math.round(b.toHSL().s*100),"%")},lightness:function(b){return new a.Dimension(Math.round(b.toHSL().l*100),"%")},alpha:function(b){return new a.Dimension(b.toHSL().a)},saturate:function(a,c){var e=a.toHSL();return e.s+=c.value/100,e.s=d(e.s),b(e)},desaturate:function(a,c){var e=a.toHSL();return e.s-=c.value/100,e.s=d(e.s),b(e)},lighten:function(a,c){var e=a.toHSL();return e.l+=c.value/100,e.l=d(e.l),b(e)},darken:function(a,c){var e=a.toHSL();return e.l-=c.value/100,e.l=d(e.l),b(e)},fadein:function(a,c){var e=a.toHSL();return e.a+=c.value/100,e.a=d(e.a),b(e)},fadeout:function(a,c){var e=a.toHSL();return e.a-=c.value/100,e.a=d(e.a),b(e)},fade:function(a,c){var e=a.toHSL();return e.a=c.value/100,e.a=d(e.a),b(e)},spin:function(a,c){var d=a.toHSL(),e=(d.h+c.value)%360;return d.h=e<0?360+e:e,b(d)},mix:function(b,c,d){var e=d.value/100,f=e*2-1,g=b.toHSL().a-c.toHSL().a,h=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,i=1-h,j=[b.rgb[0]*h+c.rgb[0]*i,b.rgb[1]*h+c.rgb[1]*i,b.rgb[2]*h+c.rgb[2]*i],k=b.alpha*e+c.alpha*(1-e);return new a.Color(j,k)},greyscale:function(b){return this.desaturate(b,new a.Dimension(100))},e:function(b){return new a.Anonymous(b instanceof a.JavaScript?b.evaluated:b)},escape:function(b){return new a.Anonymous(encodeURI(b.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},"%":function(b){var c=Array.prototype.slice.call(arguments,1),d=b.value;for(var e=0;e<c.length;e++)d=d.replace(/%[sda]/i,function(a){var b=a.match(/s/i)?c[e].value:c[e].toCSS();return a.match(/[A-Z]$/)?encodeURIComponent(b):b});return d=d.replace(/%%/g,"%"),new a.Quoted('"'+d+'"',d)},round:function(b){if(b instanceof a.Dimension)return new a.Dimension(Math.round(c(b)),b.unit);if(typeof b=="number")return Math.round(b);throw{error:"RuntimeError",message:"math functions take numbers as parameters"}},argb:function(b){return new a.Anonymous(b.toARGB())}}})(c("./tree")),function(a){a.Alpha=function(a){this.value=a},a.Alpha.prototype={toCSS:function(){return"alpha(opacity="+(this.value.toCSS?this.value.toCSS():this.value)+")"},eval:function(a){return this.value.eval&&(this.value=this.value.eval(a)),this}}}(c("../tree")),function(a){a.Anonymous=function(a){this.value=a.value||a},a.Anonymous.prototype={toCSS:function(){return this.value},eval:function(){return this}}}(c("../tree")),function(a){a.Call=function(a,b,c){this.name=a,this.args=b,this.index=c},a.Call.prototype={eval:function(b){var c=this.args.map(function(a){return a.eval(b)});if(!(this.name in a.functions))return new a.Anonymous(this.name+"("+c.map(function(a){return a.toCSS()}).join(", ")+")");try{return a.functions[this.name].apply(a.functions,c)}catch(d){throw{message:"error evaluating function `"+this.name+"`",index:this.index}}},toCSS:function(a){return this.eval(a).toCSS()}}}(c("../tree")),function(a){a.Color=function(a,b){Array.isArray(a)?this.rgb=a:a.length==6?this.rgb=a.match(/.{2}/g).map(function(a){return parseInt(a,16)}):this.rgb=a.split("").map(function(a){return parseInt(a+a,16)}),this.alpha=typeof b=="number"?b:1},a.Color.prototype={eval:function(){return this},toCSS:function(){return this.alpha<1?"rgba("+this.rgb.map(function(a){return Math.round(a)}).concat(this.alpha).join(", ")+")":"#"+this.rgb.map(function(a){return a=Math.round(a),a=(a>255?255:a<0?0:a).toString(16),a.length===1?"0"+a:a}).join("")},operate:function(b,c){var d=[];c instanceof a.Color||(c=c.toColor());for(var e=0;e<3;e++)d[e]=a.operate(b,this.rgb[e],c.rgb[e]);return new a.Color(d,this.alpha+c.alpha)},toHSL:function(){var a=this.rgb[0]/255,b=this.rgb[1]/255,c=this.rgb[2]/255,d=this.alpha,e=Math.max(a,b,c),f=Math.min(a,b,c),g,h,i=(e+f)/2,j=e-f;if(e===f)g=h=0;else{h=i>.5?j/(2-e-f):j/(e+f);switch(e){case a:g=(b-c)/j+(b<c?6:0);break;case b:g=(c-a)/j+2;break;case c:g=(a-b)/j+4}g/=6}return{h:g*360,s:h,l:i,a:d}},toARGB:function(){var a=[Math.round(this.alpha*255)].concat(this.rgb);return"#"+a.map(function(a){return a=Math.round(a),a=(a>255?255:a<0?0:a).toString(16),a.length===1?"0"+a:a}).join("")}}}(c("../tree")),function(a){a.Comment=function(a,b){this.value=a,this.silent=!!b},a.Comment.prototype={toCSS:function(a){return a.compress?"":this.value},eval:function(){return this}}}(c("../tree")),function(a){a.Dimension=function(a,b){this.value=parseFloat(a),this.unit=b||null},a.Dimension.prototype={eval:function(){return this},toColor:function(){return new a.Color([this.value,this.value,this.value])},toCSS:function(){var a=this.value+this.unit;return a},operate:function(b,c){return new a.Dimension(a.operate(b,this.value,c.value),this.unit||c.unit)}}}(c("../tree")),function(a){a.Directive=function(b,c){this.name=b,Array.isArray(c)?this.ruleset=new a.Ruleset([],c):this.value=c},a.Directive.prototype={toCSS:function(a,b){return this.ruleset?(this.ruleset.root=!0,this.name+(b.compress?"{":" {\n ")+this.ruleset.toCSS(a,b).trim().replace(/\n/g,"\n ")+(b.compress?"}":"\n}\n")):this.name+" "+this.value.toCSS()+";\n"},eval:function(a){return a.frames.unshift(this),this.ruleset=this.ruleset&&this.ruleset.eval(a),a.frames.shift(),this},variable:function(b){return a.Ruleset.prototype.variable.call(this.ruleset,b)},find:function(){return a.Ruleset.prototype.find.apply(this.ruleset,arguments)},rulesets:function(){return a.Ruleset.prototype.rulesets.apply(this.ruleset)}}}(c("../tree")),function(a){a.Element=function(b,c,d){this.combinator=b instanceof a.Combinator?b:new a.Combinator(b),this.value=c?c.trim():"",this.index=d},a.Element.prototype.toCSS=function(a){return this.combinator.toCSS(a||{})+this.value},a.Combinator=function(a){a===" "?this.value=" ":a==="& "?this.value="& ":this.value=a?a.trim():""},a.Combinator.prototype.toCSS=function(a){return{"":""," ":" ","&":"","& ":" ",":":" :","::":"::","+":a.compress?"+":" + ","~":a.compress?"~":" ~ ",">":a.compress?">":" > "}[this.value]}}(c("../tree")),function(a){a.Expression=function(a){this.value=a},a.Expression.prototype={eval:function(b){return this.value.length>1?new a.Expression(this.value.map(function(a){return a.eval(b)})):this.value.length===1?this.value[0].eval(b):this},toCSS:function(a){return this.value.map(function(b){return b.toCSS(a)}).join(" ")}}}(c("../tree")),function(a){a.Import=function(b,c){var d=this;this._path=b,b instanceof a.Quoted?this.path=/\.(le?|c)ss(\?.*)?$/.test(b.value)?b.value:b.value+".less":this.path=b.value.value||b.value,this.css=/css(\?.*)?$/.test(this.path),this.css||c.push(this.path,function(a){if(!a)throw new Error("Error parsing "+d.path);d.root=a})},a.Import.prototype={toCSS:function(){return this.css?"@import "+this._path.toCSS()+";\n":""},eval:function(b){var c;if(this.css)return this;c=new a.Ruleset(null,this.root.rules.slice(0));for(var d=0;d<c.rules.length;d++)c.rules[d]instanceof a.Import&&Array.prototype.splice.apply(c.rules,[d,1].concat(c.rules[d].eval(b)));return c.rules}}}(c("../tree")),function(a){a.JavaScript=function(a,b,c){this.escaped=c,this.expression=a,this.index=b},a.JavaScript.prototype={eval:function(b){var c,d=this,e={},f=this.expression.replace(/@\{([\w-]+)\}/g,function(c,e){return a.jsify((new a.Variable("@"+e,d.index)).eval(b))});try{f=new Function("return ("+f+")")}catch(g){throw{message:"JavaScript evaluation error: `"+f+"`",index:this.index}}for(var h in b.frames[0].variables())e[h.slice(1)]={value:b.frames[0].variables()[h].value,toJS:function(){return this.value.eval(b).toCSS()}};try{c=f.call(e)}catch(g){throw{message:"JavaScript evaluation error: '"+g.name+": "+g.message+"'",index:this.index}}return typeof c=="string"?new a.Quoted('"'+c+'"',c,this.escaped,this.index):Array.isArray(c)?new a.Anonymous(c.join(", ")):new a.Anonymous(c)}}}(c("../tree")),function(a){a.Keyword=function(a){this.value=a},a.Keyword.prototype={eval:function(){return this},toCSS:function(){return this.value}}}(c("../tree")),function(a){a.mixin={},a.mixin.Call=function(b,c,d){this.selector=new a.Selector(b),this.arguments=c,this.index=d},a.mixin.Call.prototype={eval:function(a){var b,c,d=[],e=!1;for(var f=0;f<a.frames.length;f++)if((b=a.frames[f].find(this.selector)).length>0){c=this.arguments&&this.arguments.map(function(b){return b.eval(a)});for(var g=0;g<b.length;g++)if(b[g].match(c,a))try{Array.prototype.push.apply(d,b[g].eval(a,this.arguments).rules),e=!0}catch(h){throw{message:h.message,index:h.index,stack:h.stack,call:this.index}}if(e)return d;throw{message:"No matching definition was found for `"+this.selector.toCSS().trim()+"("+this.arguments.map(function(a){return a.toCSS()}).join(", ")+")`",index:this.index}}throw{message:this.selector.toCSS().trim()+" is undefined",index:this.index}}},a.mixin.Definition=function(b,c,d){this.name=b,this.selectors=[new a.Selector([new a.Element(null,b)])],this.params=c,this.arity=c.length,this.rules=d,this._lookups={},this.required=c.reduce(function(a,b){return!b.name||b.name&&!b.value?a+1:a},0),this.parent=a.Ruleset.prototype,this.frames=[]},a.mixin.Definition.prototype={toCSS:function(){return""},variable:function(a){return this.parent.variable.call(this,a)},variables:function(){return this.parent.variables.call(this)},find:function(){return this.parent.find.apply(this,arguments)},rulesets:function(){return this.parent.rulesets.apply(this)},eval:function(b,c){var d=new a.Ruleset(null,[]),e,f=[];for(var g=0,h;g<this.params.length;g++)if(this.params[g].name)if(h=c&&c[g]||this.params[g].value)d.rules.unshift(new a.Rule(this.params[g].name,h.eval(b)));else throw{message:"wrong number of arguments for "+this.name+" ("+c.length+" for "+this.arity+")"};for(var g=0;g<Math.max(this.params.length,c&&c.length);g++)f.push(c[g]||this.params[g].value);return d.rules.unshift(new a.Rule("@arguments",(new a.Expression(f)).eval(b))),(new a.Ruleset(null,this.rules.slice(0))).eval({frames:[this,d].concat(this.frames,b.frames)})},match:function(a,b){var c=a&&a.length||0,d;if(c<this.required)return!1;if(this.required>0&&c>this.params.length)return!1;d=Math.min(c,this.arity);for(var e=0;e<d;e++)if(!this.params[e].name&&a[e].eval(b).toCSS()!=this.params[e].value.eval(b).toCSS())return!1;return!0}}}(c("../tree")),function(a){a.Operation=function(a,b){this.op=a.trim(),this.operands=b},a.Operation.prototype.eval=function(b){var c=this.operands[0].eval(b),d=this.operands[1].eval(b),e;if(c instanceof a.Dimension&&d instanceof a.Color)if(this.op==="*"||this.op==="+")e=d,d=c,c=e;else throw{name:"OperationError",message:"Can't substract or divide a color from a number"};return c.operate(this.op,d)},a.operate=function(a,b,c){switch(a){case"+":return b+c;case"-":return b-c;case"*":return b*c;case"/":return b/c}}}(c("../tree")),function(a){a.Quoted=function(a,b,c,d){this.escaped=c,this.value=b||"",this.quote=a.charAt(0),this.index=d},a.Quoted.prototype={toCSS:function(){return this.escaped?this.value:this.quote+this.value+this.quote},eval:function(b){var c=this,d=this.value.replace(/`([^`]+)`/g,function(d,e){return(new a.JavaScript(e,c.index,!0)).eval(b).value}).replace(/@\{([\w-]+)\}/g,function(d,e){var f=(new a.Variable("@"+e,c.index)).eval(b);return f.value||f.toCSS()});return new a.Quoted(this.quote+d+this.quote,d,this.escaped,this.index)}}}(c("../tree")),function(a){a.Rule=function(b,c,d,e){this.name=b,this.value=c instanceof a.Value?c:new a.Value([c]),this.important=d?" "+d.trim():"",this.index=e,b.charAt(0)==="@"?this.variable=!0:this.variable=!1},a.Rule.prototype.toCSS=function(a){return this.variable?"":this.name+(a.compress?":":": ")+this.value.toCSS(a)+this.important+";"},a.Rule.prototype.eval=function(b){return new a.Rule(this.name,this.value.eval(b),this.important,this.index)},a.Shorthand=function(a,b){this.a=a,this.b=b},a.Shorthand.prototype={toCSS:function(a){return this.a.toCSS(a)+"/"+this.b.toCSS(a)},eval:function(){return this}}}(c("../tree")),function(a){a.Ruleset=function(a,b){this.selectors=a,this.rules=b,this._lookups={}},a.Ruleset.prototype={eval:function(b){var c=new a.Ruleset(this.selectors,this.rules.slice(0));c.root=this.root,b.frames.unshift(c);if(c.root)for(var d=0;d<c.rules.length;d++)c.rules[d]instanceof a.Import&&Array.prototype.splice.apply(c.rules,[d,1].concat(c.rules[d].eval(b)));for(var d=0;d<c.rules.length;d++)c.rules[d]instanceof a.mixin.Definition&&(c.rules[d].frames=b.frames.slice(0));for(var d=0;d<c.rules.length;d++)c.rules[d]instanceof a.mixin.Call&&Array.prototype.splice.apply(c.rules,[d,1].concat(c.rules[d].eval(b)));for(var d=0,e;d<c.rules.length;d++)e=c.rules[d],e instanceof a.mixin.Definition||(c.rules[d]=e.eval?e.eval(b):e);return b.frames.shift(),c},match:function(a){return!a||a.length===0},variables:function(){return this._variables?this._variables:this._variables=this.rules.reduce(function(b,c){return c instanceof a.Rule&&c.variable===!0&&(b[c.name]=c),b},{})},variable:function(a){return this.variables()[a]},rulesets:function(){return this._rulesets?this._rulesets:this._rulesets=this.rules.filter(function(b){return b instanceof a.Ruleset||b instanceof a.mixin.Definition})},find:function(b,c){c=c||this;var d=[],e,f,g=b.toCSS();return g in this._lookups?this._lookups[g]:(this.rulesets().forEach(function(e){if(e!==c)for(var g=0;g<e.selectors.length;g++)if(f=b.match(e.selectors[g])){b.elements.length>e.selectors[g].elements.length?Array.prototype.push.apply(d,e.find(new a.Selector(b.elements.slice(1)),c)):d.push(e);break}}),this._lookups[g]=d)},toCSS:function(b,c){var d=[],e=[],f=[],g=[],h,i;this.root||(b.length===0?g=this.selectors.map(function(a){return[a]}):this.joinSelectors(g,b,this.selectors));for(var j=0;j<this.rules.length;j++)i=this.rules[j],i.rules||i instanceof a.Directive?f.push(i.toCSS(g,c)):i instanceof a.Comment?i.silent||(this.root?f.push(i.toCSS(c)):e.push(i.toCSS(c))):i.toCSS&&!i.variable?e.push(i.toCSS(c)):i.value&&!i.variable&&e.push(i.value.toString());return f=f.join(""),this.root?d.push(e.join(c.compress?"":"\n")):e.length>0&&(h=g.map(function(a){return a.map(function(a){return a.toCSS(c)}).join("").trim()}).join(c.compress?",":g.length>3?",\n":", "),d.push(h,(c.compress?"{":" {\n ")+e.join(c.compress?"":"\n ")+(c.compress?"}":"\n}\n"))),d.push(f),d.join("")+(c.compress?"\n":"")},joinSelectors:function(a,b,c){for(var d=0;d<c.length;d++)this.joinSelector(a,b,c[d])},joinSelector:function(b,c,d){var e=[],f=[],g=[],h=[],i=!1,j;for(var k=0;k<d.elements.length;k++)j=d.elements[k],j.combinator.value.charAt(0)==="&"&&(i=!0),i?h.push(j):g.push(j);i||(h=g,g=[]),g.length>0&&e.push(new a.Selector(g)),h.length>0&&f.push(new a.Selector(h));for(var l=0;l<c.length;l++)b.push(e.concat(c[l]).concat(f))}}}(c("../tree")),function(a){a.Selector=function(a){this.elements=a,this.elements[0].combinator.value===""&&(this.elements[0].combinator.value=" ")},a.Selector.prototype.match=function(a){var b=this.elements.length,c=a.elements.length,d=Math.min(b,c);if(b<c)return!1;for(var e=0;e<d;e++)if(this.elements[e].value!==a.elements[e].value)return!1
-;return!0},a.Selector.prototype.toCSS=function(a){return this._css?this._css:this._css=this.elements.map(function(b){return typeof b=="string"?" "+b.trim():b.toCSS(a)}).join("")}}(c("../tree")),function(a){a.URL=function(a,b){a.data?this.attrs=a:(d.mode==="browser"&&!/^(?:https?:\/\/|file:\/\/|data:|\/)/.test(a.value)&&b.length>0&&(a.value=b[0]+(a.value.charAt(0)==="/"?a.value.slice(1):a.value)),this.value=a,this.paths=b)},a.URL.prototype={toCSS:function(){return"url("+(this.attrs?"data:"+this.attrs.mime+this.attrs.charset+this.attrs.base64+this.attrs.data:this.value.toCSS())+")"},eval:function(b){return this.attrs?this:new a.URL(this.value.eval(b),this.paths)}}}(c("../tree")),function(a){a.Value=function(a){this.value=a,this.is="value"},a.Value.prototype={eval:function(b){return this.value.length===1?this.value[0].eval(b):new a.Value(this.value.map(function(a){return a.eval(b)}))},toCSS:function(a){return this.value.map(function(b){return b.toCSS(a)}).join(a.compress?",":", ")}}}(c("../tree")),function(a){a.Variable=function(a,b){this.name=a,this.index=b},a.Variable.prototype={eval:function(b){var c,d,e=this.name;e.indexOf("@@")==0&&(e="@"+(new a.Variable(e.slice(1))).eval(b).value);if(c=a.find(b.frames,function(a){if(d=a.variable(e))return d.value.eval(b)}))return c;throw{message:"variable "+e+" is undefined",index:this.index}}}}(c("../tree")),c("./tree").find=function(a,b){for(var c=0,d;c<a.length;c++)if(d=b.call(a,a[c]))return d;return null},c("./tree").jsify=function(a){return Array.isArray(a.value)&&a.value.length>1?"["+a.value.map(function(a){return a.toCSS(!1)}).join(", ")+"]":a.toCSS(!1)};var f=location.protocol==="file:"||location.protocol==="chrome:"||location.protocol==="chrome-extension:"||location.protocol==="resource:";d.env=d.env||(location.hostname=="127.0.0.1"||location.hostname=="0.0.0.0"||location.hostname=="localhost"||location.port.length>0||f?"development":"production"),d.async=!1,d.poll=d.poll||(f?1e3:1500),d.watch=function(){return this.watchMode=!0},d.unwatch=function(){return this.watchMode=!1},d.env==="development"?(d.optimization=0,/!watch/.test(location.hash)&&d.watch(),d.watchTimer=setInterval(function(){d.watchMode&&m(function(a,b,c){a&&p(a.toCSS(),b,c.lastModified)})},d.poll)):d.optimization=3;var g;try{g=typeof a.localStorage=="undefined"?null:a.localStorage}catch(h){g=null}var i=document.getElementsByTagName("link"),j=/^text\/(x-)?less$/;d.sheets=[];for(var k=0;k<i.length;k++)(i[k].rel==="stylesheet/less"||i[k].rel.match(/stylesheet/)&&i[k].type.match(j))&&d.sheets.push(i[k]);d.refresh=function(a){var b,c;b=c=new Date,m(function(a,d,e){e.local?t("loading "+d.href+" from cache."):(t("parsed "+d.href+" successfully."),p(a.toCSS(),d,e.lastModified)),t("css for "+d.href+" generated in "+(new Date-c)+"ms"),e.remaining===0&&t("css generated in "+(new Date-b)+"ms"),c=new Date},a),l()},d.refreshStyles=l,d.refresh(d.env==="development")})(window);
diff --git a/syte/static/less/mixins.less b/syte/static/less/mixins.less
deleted file mode 100644
index 44cc546..0000000
--- a/syte/static/less/mixins.less
+++ /dev/null
@@ -1,250 +0,0 @@
-/* mixins.less
- * CSS Reset and base mixinis for LESS based development.
- * Inspired by bootstrap.less initially created by Mark Dotto
- * https://github.com/markdotto/preboot.less
- **/
-
-// Clearfix for clearing floats
-.clearfix() {
- zoom: 1;
- &:before, &:after {display: table; content: "";}
- &:after {clear: both;}
-}
-
-// Center-align a block level element
-.center-block() {
- display: block;
- margin: 0 auto;
-}
-
-// Sizing Shortcuts
-.size(@width: 5px, @height: 5px) {
- height: @height; width: @width;
-}
-
-.square(@size: 5px) {
- .size(@size, @size);
-}
-
-// Fonts
-.font(@weight: normal, @size: 14px, @lineHeight: 20px) {
- font-size: @size;
- font-weight: @weight;
- line-height: @lineHeight;
-}
-
-.font-sans-serif(@weight: normal, @size: 14px, @lineHeight: 20px) {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- .font(@weight, @size, @lineHeight);
-}
-
-.font-serif(@weight: normal, @size: 14px, @lineHeight: 20px) {
- font-family: "Georgia", Times New Roman, Times, serif;
- .font(@weight, @size, @lineHeight);
-}
-
-.font-monospace(@weight: normal, @size: 12px, @lineHeight: 20px) {
- font-family: "Monaco", Courier New, monospace;
- .font(@weight, @size, @lineHeight);
-}
-
-// Border Radius
-.border-radius(@radius: 5px) {
- -webkit-border-radius: @radius;
- -moz-border-radius: @radius;
- border-radius: @radius;
-}
-
-// Box Shadows
-.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
- -webkit-box-shadow: @shadow;
- -moz-box-shadow: @shadow;
- box-shadow: @shadow;
-}
-
-.reset-box-shadow() {
- -webkit-box-shadow: 0 0 0;
- -moz-box-shadow: 0 0 0;
- box-shadow: 0 0 0;
-}
-
-// Transitions
-.transition(@transition) {
- -webkit-transition: @transition;
- -moz-transition: @transition;
- -o-transition: @transition;
- transition: @transition;
-}
-
-.rotate(@rotation) {
- -webkit-transform: rotate(@rotation);
- -moz-transform: rotate(@rotation);
- -ms-transform: rotate(@rotation);
- -o-transform: rotate(@rotation);
- transform: rotate(@rotation);
-}
-
-
-// Background Clipping
-.background-clip(@clip) {
- -webkit-background-clip: @clip;
- -moz-background-clip: @clip;
- background-clip: @clip;
-}
-
-// CSS3 Content Columns
-.content-columns(@columnCount, @columnGap: 20px) {
- -webkit-column-count: @columnCount;
- -webkit-column-gap: @columnGap;
- -moz-column-count: @columnCount;
- -moz-column-gap: @columnGap;
- column-count: @columnCount;
- column-gap: @columnGap;
-}
-
-// Add a transparency value to a background
-.alpha-background(@color: @white, @alpha: 1) {
- background-color: @color;
- background-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
-}
-
-// Add a transparency value to a border
-.alpha-border(@color: @white, @alpha: 1) {
- border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
- background-clip: padding-box;
-}
-
-// Gradients
-.gradient(@startColor: #555, @endColor: #333) {
- background-color: @endColor;
- background-repeat: repeat-x;
- background-image: -khtml-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); // Konqueror
- background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(top, @startColor, @endColor); // IE10
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome 2+
- background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(top, @startColor, @endColor); // The standard
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down
-}
-
-.horizontal-gradient(@startColor: #555, @endColor: #333) {
- background-color: @endColor;
- background-repeat: repeat-x;
- background-image: -khtml-gradient(linear, left top, right top, from(@startColor), to(@endColor)); // Konqueror
- background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(left, @startColor, @endColor); // IE10
- background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome 2+
- background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(left, @startColor, @endColor); // Le standard
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",@startColor,@endColor)); // IE9 and down
-}
-
-.directional-gradient(@startColor: #555, @endColor: #333, @deg: 45deg) {
- background-color: @endColor;
- background-repeat: repeat-x;
- background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(@deg, @startColor, @endColor); // IE10
- background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(@deg, @startColor, @endColor); // The standard
-}
-
-.vertical-gradient-3(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
- background-color: @endColor;
- background-repeat: no-repeat;
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
- background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
- background-image: -ms-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down, gets no color-stop at all for proper fallback
-}
-
-.reset-ie-gradient() {
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
-}
-
-// Opacity
-.opacity(@opacity: 100) {
- filter: e(%("alpha(opacity=%d)", @opacity));
- -khtml-opacity: @opacity / 100;
- -moz-opacity: @opacity / 100;
- opacity: @opacity / 100;
-}
-
-// Word spacing wrap
-.break-word() {
- white-space: pre-wrap;
- word-wrap: break-word;
-}
-
-// PATTERN ANIMATIONS
-// ------------------
-.fade {
- .transition(opacity .15s linear);
- opacity: 0;
- &.in {
- opacity: 1;
- }
-}
-
-.user-select(@select) {
- -webkit-user-select: @select;
- -khtml-user-select: @select;
- -moz-user-select: @select;
- -o-user-select: @select;
- user-select: @select;
-}
-
-//Arrows
-.arrow-top(@arrow-size: 5px, @arrow-color: #000, @arrow-location: 50%) {
- bottom: 0;
- left: @arrow-location;
- margin-left: -@arrow-size;
- border-left: @arrow-size solid transparent;
- border-right: @arrow-size solid transparent;
- border-top: @arrow-size solid @arrow-color;
- position: absolute;
- width: 0;
- height: 0;
-}
-
-.arrow-right(@arrow-size: 5px, @arrow-color: #000, @arrow-location: 50%) {
- top: @arrow-location;
- left: 0;
- margin-top: -@arrow-size;
- border-top: @arrow-size solid transparent;
- border-bottom: @arrow-size solid transparent;
- border-right: @arrow-size solid @arrow-color;
- position: absolute;
- width: 0;
- height: 0;
-}
-
-.arrow-bottom(@arrow-size: 5px, @arrow-color: #000, @arrow-location: 50%) {
- top: 0;
- left: @arrow-location;
- margin-left: -@arrow-size;
- border-left: @arrow-size solid transparent;
- border-right: @arrow-size solid transparent;
- border-bottom: @arrow-size solid @arrow-color;
- position: absolute;
- width: 0;
- height: 0;
-}
-
-.arrow-left(@arrow-size: 5px, @arrow-color: #000, @arrow-location: 50%) {
- top: @arrow-location;
- right: 0;
- margin-top: -@arrow-size;
- border-top: @arrow-size solid transparent;
- border-bottom: @arrow-size solid transparent;
- border-left: @arrow-size solid @arrow-color;
- position: absolute;
- width: 0;
- height: 0;
-}
-
diff --git a/syte/static/less/modals.less b/syte/static/less/modals.less
deleted file mode 100644
index 522ecfa..0000000
--- a/syte/static/less/modals.less
+++ /dev/null
@@ -1,67 +0,0 @@
-//Modals
-.modal-backdrop {
- position: fixed;
- z-index: 1000;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background: #000;
-
- &.fade, &.fade-large {
- .transition(e('opacity .2s linear'));
- .opacity(0);
- }
-}
-
-.modal-backdrop, .modal-backdrop.fade.in {
- .opacity(50);
-}
-
-.modal {
- position: fixed;
- top: 0;
- left: 240px;
- z-index: 1050;
- overflow: auto;
- width: 400px;
- height: 100%;
- background-color: #fff;
- border-right: 1px solid @text-color;
- .box-shadow(0 0 7px rgba(0,0,0,0.5));
-}
-
-.modal {
- &.fade-large {
- width: 700px;
- .transition(e('left .4s ease-out'));
- left: -1100px;
- }
-
- &.fade {
- .transition(e('left .4s ease-out'));
- left: -700px;
- }
-
- &.fade.in, &.fade-large.in { left: 240px; }
-}
-
-.close {
- float: right;
- font-size: 26px;
- line-height: 30px;
- font-weight: bold;
- color: #000;
- background-color: #fff;
- text-shadow: 0 1px 0 rgba(255,255,255,1);
-
- .opacity(20);
-
- &:hover {
- color: #000;
- text-decoration: none;
- cursor: pointer;
- .opacity(40);
- }
-}
-
diff --git a/syte/static/less/profiles.less b/syte/static/less/profiles.less
deleted file mode 100644
index 65cd33e..0000000
--- a/syte/static/less/profiles.less
+++ /dev/null
@@ -1,354 +0,0 @@
-//Profiles
-.profile {
- background: #E9E9E9 url('/static/imgs/b.png');
-}
-
-.profile-info {
- position: relative;
- padding: 15px;
- background: #fff;
-
- .close { line-height: 20px; }
- .btn {
- position: absolute;
- right: 17px;
- bottom: 20px;
- }
-}
-
-.profile-avatar {
- display: inline-block;
- float: left;
- border-bottom: 0;
-
- img {
- .square(52px);
- border: 2px solid @adjacent-color;
- }
-}
-
-.profile-avatar:hover {
- border-bottom: 0;
-}
-
-.profile-name {
- display: block;
- float: left;
- margin: 0 0 10px 10px;
-
- h2 {
- font-size: 22px;
- line-height: 30px;
-
- & a {
- font-weight: 500;
- color: @text-color;
- border-bottom: 0;
- }
- }
- h3 {
- font-size: 16px;
- line-height: 20px;
-
- & a {
- color: #777;
- border-bottom: 0;
- }
- }
-
- h2 a:hover, h3 a:hover
- { color: @adjacent-color; }
-}
-
-.profile-description {
- clear: left;
- font-size: 13px;
- line-height: 18px;
- font-style: italic;
- color: #777;
- margin: 0;
- padding: 5px 0;
-
- a { border-bottom: 0; }
-}
-
-.profile-location-url {
- clear: left;
- margin: 0;
-
- span {
- display: inline-block;
- font-size: 13px;
- line-height: 18px;
- color: #777;
- }
-
- .divider {
- padding: 0 4px;
- color: #ccc;
- }
-
- a { border-bottom:0; }
-}
-
-.profile-stats {
- margin: 0;
- list-style: none;
- overflow: hidden;
- border-top: 1px solid #C2C2C2;
- border-bottom: 1px solid #C2C2C2;
- background: #fff;
-
- li {
- display: inline;
-
- a, span {
- float: left;
- padding: 7px 15px;
- color: #777;
- font-size: 10px;
- line-height: 16px;
- text-transform: uppercase;
- border-left: 1px solid #C2C2C2;
- border-bottom: 0;
- }
-
- strong {
- display: block;
- color: @text-color;
- font-size: 14px;
- }
-
- a:hover, a:hover strong {
- color: @adjacent-color;
- }
- }
-
- li:first-child span {
- border-left: 0;
- }
-}
-
-.profile-info-footer {
- padding: 10px 15px;
- border-bottom: 1px solid #c2c2c2;
-}
-
-//Profile Icons
-.profile-icons(@bgicon) {
- display: inline-block;
- background: @bgicon;
- margin-left: 10px;
- padding-left: 20px;
-}
-
-.profile-watchers {
- .profile-icons(~"url('/static/imgs/ico-watchers.png') no-repeat");
-}
-
-.profile-forks {
- .profile-icons(~"url('/static/imgs/ico-forks.png') no-repeat");
-}
-
-.profile-comments {
- .profile-icons(~"url('/static/imgs/ico-comments.png') no-repeat");
-}
-
-.profile-likes {
- .profile-icons(~"url('/static/imgs/ico-likes.png') no-repeat");
-}
-
-
-//Twitter Profile
-.profile.twitter {
- overflow:hidden;
-}
-
-.profile-tweets {
- list-style: none;
- margin: 0;
- background: #fff;
-
- li {
- padding: 10px 15px;
- border-bottom: 1px solid #C2C2C2
- }
-}
-
-.tweet-title {
- border-bottom: 0;
- position: relative;
- padding-left: 45px;
-
- img {
- position: absolute;
- left: 0;
- width: 32px;
- height: 32px;
- border: 2px solid @adjacent-color;
- }
-
- span {
- color: #777;
- font-size: 13px;
- padding-left: 3px;
- }
-}
-
-.tweet-title:hover {
- border-bottom: 0;
-}
-
-.tweet-text {
- color: #777;
- margin:0;
- padding: 3px 0;
- font-size: 13px;
- line-height: 18px;
- margin-left: 45px;
-
- a { border-bottom: 0; }
-}
-
-.tweet-date {
- margin: 0;
- font-size: 13px;
- line-height: 18px;
- margin-left: 45px;
- color: #999;
-}
-
-//Github Profile
-.profile-repos {
- list-style: none;
- margin: 0;
- background: #fff;
-
- li {
- padding: 10px 15px;
- border-bottom: 1px solid #C2C2C2
- }
-}
-
-.profile-repo-name {
- border-bottom: 0;
- font-weight: 500;
-}
-.profile-repo-name:hover {
- border-bottom: 0;
-}
-
-.profile-repo-text {
- color: #777;
- margin:0;
- padding: 5px 0;
- font-size: 13px;
- line-height: 18px;
-}
-
-.profile-repo-stats {
- list-style: none;
- margin: 0;
- font-size: 13px;
- line-height: 18px;
-
- li {
- padding: 0;
- border: 0;
- display: inline-block;
-
- //ie7 inline-block hack
- zoom: 1;
- *display: inline;
- }
-
- a {
- border-bottom: 0;
- }
-
- a:hover {
- border-bottom: 0;
- color: @adjacent-color;
- }
-}
-
-//Dribbble & Instagram Profiles
-.profile-shots {
- list-style: none;
- margin: 0;
- padding: 15px 0;
-
- > li {
- float: left;
- width: 300px;
- padding: 10px;
- margin: 0 0px 20px 20px;
- background: #fff;
-
- .box-shadow();
- }
-}
-
-.profile-shot {
- border-bottom: 0;
- display: block;
-
- img {
- width: 300px;
- height: 225px;
- }
-}
-.profile-shot:hover {
- border-bottom: 0;
-}
-
-.profile-shot-title {
- display: block;
- padding: 5px 0;
- font-size: 13px;
- line-height: 18px;
- color: @alternate-text-color;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.profile-shot-stats {
- list-style: none;
- margin: 0;
- font-size: 13px;
- line-height: 18px;
-
- li {
- margin-bottom: 0;
- padding: 0;
- border: 0;
- display: inline-block;
-
- //ie7 inline-block hack
- zoom: 1;
- *display: inline;
- }
- li:first-child a, li:first-child span {
- margin-left: 0;
- }
-
- a {
- border-bottom: 0;
- }
-
- a:hover {
- border-bottom: 0;
- color: @adjacent-color;
- }
-}
-
-.profile-shot-date {
- float: right;
- color: #999;
-}
-
-.instagram .profile-shot img {
- width: 300px;
- height: 300px;
-}
diff --git a/syte/static/less/reset.less b/syte/static/less/reset.less
deleted file mode 100644
index c597da0..0000000
--- a/syte/static/less/reset.less
+++ /dev/null
@@ -1,24 +0,0 @@
-html, body {margin: 0; padding: 0;}
-h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td {margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; font-family: inherit;}
-strong, b {font-weight: bold;}
-em, i {font-style:italic;}
-body {line-height: 1;}
-table {border-collapse: collapse; border-spacing: 0;}
-q:before, q:after, blockquote:before, blockquote:after {content: "";}
-html {overflow-y: scroll; font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;}
-a:focus {outline: thin dotted;}
-article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {display: block;}
-audio, canvas, video {display: inline-block; *display: inline; *zoom: 1;}
-audio:not([controls]) {display: none;}
-sub, sup {font-size: 75%; line-height: 0; position: relative; vertical-align: baseline;}
-sup {top: -0.5em;}
-sub {bottom: -0.25em;}
-img {border: 0; -ms-interpolation-mode: bicubic;}
-button, input, select, textarea {font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle;}
-button, input {line-height: normal; *overflow: visible;}
-button::-moz-focus-inner, input::-moz-focus-inner {border: 0;padding: 0;}
-button, input[type="button"], input[type="reset"], input[type="submit"] {cursor: pointer; -webkit-appearance: button;}
-input[type="search"] {-webkit-appearance: textfield; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box;}
-input[type="search"]::-webkit-search-decoration {-webkit-appearance: none;}
-textarea {overflow: auto; vertical-align: top;}
-
diff --git a/syte/static/less/styles-mobile.less b/syte/static/less/styles-mobile.less
deleted file mode 100644
index 6ff8003..0000000
--- a/syte/static/less/styles-mobile.less
+++ /dev/null
@@ -1,165 +0,0 @@
-@media (max-width: 600px) {
-
- body {
- background: #E9E9E9 url('/static/imgs/b.png');
- overflow-x: hidden;
- }
-
- .mobile-nav {
- display: block;
- position: fixed;
- top: 0;
- height: 45px;
- width: 100%;
- z-index: 3000;
-
- background: #E9E9E9 url('/static/imgs/b.png');
- border-top: 3px solid @adjacent-color;
- .box-shadow();
-
- h3 {
- float: right;
- padding: 10px;
-
- a {
- border-bottom: 0;
- font-weight: bold;
- color: @text-color;
- text-shadow: 0 1px 1px #f9f9f9;
- }
- }
-
- .nav-btn {
- float: left;
- padding: 7px 10px 4px;
- margin: 8px 10px;
- .gradient(#404040, #333);
- .border-radius(4px);
- .box-shadow(0 1px 1px #f9f9f9);
- }
-
- .nav-btn-bar {
- display: block;
- width: 18px;
- height: 2px;
- margin-bottom: 3px;
- background-color: #f9f9f9;
-
- .border-radius(1px);
- .box-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
- }
- }
-
- header.main-header {
- position: absolute;
-
-
- hgroup {
- .picture a { margin: 60px 0 10px 10px; }
- h1 {
- font-size: 18px;
- margin: 0 10px;
- }
- h2 {
- margin: 0 10px 10px 10px;
- }
- }
-
- nav {
- margin: 20px 0;
- }
-
- .fork-me {
- display: none;
- }
- }
-
- .main-section {
- margin: 45px 0 0 0;
- position: relative;
- min-height: 500px;
- left: 0;
- z-index: 2000;
- background-color: #fff;
-
- .box-shadow();
- .transition(e('left .3s ease-out'));
-
- &.nav-opened {
- left: 240px;
- }
- }
-
- .blog-section {
-
- hgroup {
- h2, h1 { .h2; margin: 10px 0 5px 0; }
-
- h3 a {
- position: static;
- margin: 0;
- padding: 5px 0;
- border: 0;
- font-weight: 300;
- }
- }
-
- article {
- width: 95%;
- padding: 10px 10px 30px;
- border-bottom: 1px solid #C2C2C2;
-
- img { max-width: 300px; }
- }
-
- .loading {
- padding: 15px;
- }
- }
-
- .modal-backdrop {
- z-index: 3500;
- }
-
- .modal {
- position: absolute;
- width: 100%;
- height: 1500px;
- z-index: 4000;
- top: 45px;
-
- &.fade-large { width: 100%; }
-
- &.fade.in, &.fade-large.in { left: 0; }
- }
-
- .profile.twitter, .profile.github, .profile.dribbble, .profile.instagram {
- overflow: scroll;
- }
-
- .profile-info .btn {
- position: static;
- margin-top: 5px;
- }
-
- .shots-likes-received, .shots-likes-given { display: none; }
-
- .profile-shots { padding: 10px 0;
-
- > li {
- margin: 0 0 20px 10px;
- width: 280px;
- }
-
- img {
- width: 280px;
- height: 210px;
- }
- }
-
- .instagram .profile-shot img {
- width: 280px;
- height: 280px;
- }
-
-}
diff --git a/syte/static/less/styles.css b/syte/static/less/styles.css
deleted file mode 100644
index 1797222..0000000
--- a/syte/static/less/styles.css
+++ /dev/null
@@ -1,1221 +0,0 @@
-html,
-body {
- margin: 0;
- padding: 0;
-}
-h1,
-h2,
-h3,
-h4,
-h5,
-h6,
-p,
-blockquote,
-pre,
-a,
-abbr,
-acronym,
-address,
-cite,
-code,
-del,
-dfn,
-em,
-img,
-q,
-s,
-samp,
-small,
-strike,
-strong,
-sub,
-sup,
-tt,
-var,
-dd,
-dl,
-dt,
-li,
-ol,
-ul,
-fieldset,
-form,
-label,
-legend,
-button,
-table,
-caption,
-tbody,
-tfoot,
-thead,
-tr,
-th,
-td {
- margin: 0;
- padding: 0;
- border: 0;
- font-weight: normal;
- font-style: normal;
- font-size: 100%;
- font-family: inherit;
-}
-strong,
-b {
- font-weight: bold;
-}
-em,
-i {
- font-style: italic;
-}
-body {
- line-height: 1;
-}
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
-q:before,
-q:after,
-blockquote:before,
-blockquote:after {
- content: "";
-}
-html {
- overflow-y: scroll;
- font-size: 100%;
- -webkit-text-size-adjust: 100%;
- -ms-text-size-adjust: 100%;
-}
-a:focus {
- outline: thin dotted;
-}
-article,
-aside,
-details,
-figcaption,
-figure,
-footer,
-header,
-hgroup,
-nav,
-section {
- display: block;
-}
-audio,
-canvas,
-video {
- display: inline-block;
- *display: inline;
- *zoom: 1;
-}
-audio:not([controls]) {
- display: none;
-}
-sub,
-sup {
- font-size: 75%;
- line-height: 0;
- position: relative;
- vertical-align: baseline;
-}
-sup {
- top: -0.5em;
-}
-sub {
- bottom: -0.25em;
-}
-img {
- border: 0;
- -ms-interpolation-mode: bicubic;
-}
-button,
-input,
-select,
-textarea {
- font-size: 100%;
- margin: 0;
- vertical-align: baseline;
- *vertical-align: middle;
-}
-button,
-input {
- line-height: normal;
- *overflow: visible;
-}
-button::-moz-focus-inner,
-input::-moz-focus-inner {
- border: 0;
- padding: 0;
-}
-button,
-input[type="button"],
-input[type="reset"],
-input[type="submit"] {
- cursor: pointer;
- -webkit-appearance: button;
-}
-input[type="search"] {
- -webkit-appearance: textfield;
- -webkit-box-sizing: content-box;
- -moz-box-sizing: content-box;
- box-sizing: content-box;
-}
-input[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-textarea {
- overflow: auto;
- vertical-align: top;
-}
-/* mixins.less
- * CSS Reset and base mixinis for LESS based development.
- * Inspired by bootstrap.less initially created by Mark Dotto
- * https://github.com/markdotto/preboot.less
- **/
-.fade {
- -webkit-transition: opacity 0.15s linear;
- -moz-transition: opacity 0.15s linear;
- -o-transition: opacity 0.15s linear;
- transition: opacity 0.15s linear;
- opacity: 0;
-}
-.fade.in {
- opacity: 1;
-}
-body {
- font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
- font-size: 15px;
- color: #404040;
-}
-::selection,
-::-moz-selection {
- background: #333366;
- color: #fff;
- text-shadow: none;
-}
-h1,
-.h1 {
- font-size: 30px;
- line-height: 35px;
- font-weight: 500;
-}
-h2,
-.h2 {
- font-size: 24px;
- line-height: 30px;
- font-weight: 500;
-}
-h3,
-.h3 {
- font-size: 18px;
- line-height: 25px;
- font-weight: 500;
-}
-h4,
-.h4 {
- font-size: 16px;
- line-height: 20px;
- font-weight: 500;
-}
-h5,
-.h5 {
- font-size: 16px;
- line-height: 20px;
- font-weight: 500;
-}
-h6,
-.h6 {
- font-size: 14px;
- line-height: 20px;
- font-weight: 500;
-}
-ul {
- margin: 0 0 15px 15px;
-}
-ol {
- margin: 0 0 15px 20px;
-}
-li {
- margin-bottom: 5px;
-}
-li ul,
-li ol {
- margin-bottom: 0;
-}
-dl {
- margin-bottom: 10px;
-}
-dl dt {
- font-weight: bold;
-}
-dl dd {
- margin: 0 0 5px 10px;
-}
-p {
- line-height: 25px;
- margin-top: 20px;
- margin-bottom: 20px;
-}
-a {
- color: #000000;
- text-decoration: none;
- border-bottom: 1px solid #404040;
-}
-a:hover {
- color: #333366;
- border-bottom: 1px solid #333366;
-}
-a.no-border {
- border-bottom: 0;
-}
-blockquote {
- margin-top: 20px 0;
- padding: 0 0 0 20px;
- border-left: 5px solid #333366;
-}
-blockquote p:first-child {
- margin-top: 5px;
-}
-.descr {
- display: block;
- font-size: 12px;
- line-height: 20px;
- color: #7f7e7e;
-}
-.btn {
- display: inline-block;
- padding: 4px 10px 4px;
- font-size: 13px;
- line-height: 18px;
- color: #333;
- text-align: center;
- text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
- vertical-align: middle;
- cursor: pointer;
- background-color: #e6e6e6;
- background-repeat: repeat-x;
- background-image: -khtml-gradient(linear, left top, left bottom, from(#ffffff), to(#e6e6e6));
- background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
- background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #e6e6e6));
- background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
- background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
- background-image: linear-gradient(top, #ffffff, #e6e6e6);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
- border: 1px solid #ccc;
- border-bottom-color: #b3b3b3;
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
- -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
- -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
- box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
-}
-.btn:hover {
- color: #333;
- text-decoration: none;
- background-color: #e6e6e6;
- background-position: 0 -15px;
- border-bottom-color: #b3b3b3;
- -webkit-transition: background-position 0.1s linear;
- -moz-transition: background-position 0.1s linear;
- -o-transition: background-position 0.1s linear;
- transition: background-position 0.1s linear;
-}
-.modal-backdrop {
- position: fixed;
- z-index: 1000;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background: #000;
-}
-.modal-backdrop.fade,
-.modal-backdrop.fade-large {
- -webkit-transition: opacity .2s linear;
- -moz-transition: opacity .2s linear;
- -o-transition: opacity .2s linear;
- transition: opacity .2s linear;
- filter: alpha(opacity=0);
- -khtml-opacity: 0;
- -moz-opacity: 0;
- opacity: 0;
-}
-.modal-backdrop,
-.modal-backdrop.fade.in {
- filter: alpha(opacity=50);
- -khtml-opacity: 0.5;
- -moz-opacity: 0.5;
- opacity: 0.5;
-}
-.modal {
- position: fixed;
- top: 0;
- left: 240px;
- z-index: 1050;
- overflow: auto;
- width: 400px;
- height: 100%;
- background-color: #fff;
- border-right: 1px solid #404040;
- -webkit-box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
- -moz-box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
- box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
-}
-.modal.fade-large {
- width: 700px;
- -webkit-transition: left .4s ease-out;
- -moz-transition: left .4s ease-out;
- -o-transition: left .4s ease-out;
- transition: left .4s ease-out;
- left: -1100px;
-}
-.modal.fade {
- -webkit-transition: left .4s ease-out;
- -moz-transition: left .4s ease-out;
- -o-transition: left .4s ease-out;
- transition: left .4s ease-out;
- left: -700px;
-}
-.modal.fade.in,
-.modal.fade-large.in {
- left: 240px;
-}
-.close {
- float: right;
- font-size: 26px;
- line-height: 30px;
- font-weight: bold;
- color: #000;
- background-color: #fff;
- text-shadow: 0 1px 0 #ffffff;
- filter: alpha(opacity=20);
- -khtml-opacity: 0.2;
- -moz-opacity: 0.2;
- opacity: 0.2;
-}
-.close:hover {
- color: #000;
- text-decoration: none;
- cursor: pointer;
- filter: alpha(opacity=40);
- -khtml-opacity: 0.4;
- -moz-opacity: 0.4;
- opacity: 0.4;
-}
-.profile {
- background: #e9e9e9 url('/static/imgs/b.png');
-}
-.profile-info {
- position: relative;
- padding: 15px;
- background: #fff;
-}
-.profile-info .close {
- line-height: 20px;
-}
-.profile-info .btn {
- position: absolute;
- right: 17px;
- bottom: 20px;
-}
-.profile-avatar {
- display: inline-block;
- float: left;
- border-bottom: 0;
-}
-.profile-avatar img {
- height: 52px;
- width: 52px;
- border: 2px solid #333366;
-}
-.profile-avatar:hover {
- border-bottom: 0;
-}
-.profile-name {
- display: block;
- float: left;
- margin: 0 0 10px 10px;
-}
-.profile-name h2 {
- font-size: 22px;
- line-height: 30px;
-}
-.profile-name h2 a {
- font-weight: 500;
- color: #404040;
- border-bottom: 0;
-}
-.profile-name h3 {
- font-size: 16px;
- line-height: 20px;
-}
-.profile-name h3 a {
- color: #777;
- border-bottom: 0;
-}
-.profile-name h2 a:hover,
-.profile-name h3 a:hover {
- color: #333366;
-}
-.profile-description {
- clear: left;
- font-size: 13px;
- line-height: 18px;
- font-style: italic;
- color: #777;
- margin: 0;
- padding: 5px 0;
-}
-.profile-description a {
- border-bottom: 0;
-}
-.profile-location-url {
- clear: left;
- margin: 0;
-}
-.profile-location-url span {
- display: inline-block;
- font-size: 13px;
- line-height: 18px;
- color: #777;
-}
-.profile-location-url .divider {
- padding: 0 4px;
- color: #ccc;
-}
-.profile-location-url a {
- border-bottom: 0;
-}
-.profile-stats {
- margin: 0;
- list-style: none;
- overflow: hidden;
- border-top: 1px solid #C2C2C2;
- border-bottom: 1px solid #C2C2C2;
- background: #fff;
-}
-.profile-stats li {
- display: inline;
-}
-.profile-stats li a,
-.profile-stats li span {
- float: left;
- padding: 7px 15px;
- color: #777;
- font-size: 10px;
- line-height: 16px;
- text-transform: uppercase;
- border-left: 1px solid #C2C2C2;
- border-bottom: 0;
-}
-.profile-stats li strong {
- display: block;
- color: #404040;
- font-size: 14px;
-}
-.profile-stats li a:hover,
-.profile-stats li a:hover strong {
- color: #333366;
-}
-.profile-stats li:first-child span {
- border-left: 0;
-}
-.profile-info-footer {
- padding: 10px 15px;
- border-bottom: 1px solid #c2c2c2;
-}
-.profile-watchers {
- display: inline-block;
- background: url('/static/imgs/ico-watchers.png') no-repeat;
- margin-left: 10px;
- padding-left: 20px;
-}
-.profile-forks {
- display: inline-block;
- background: url('/static/imgs/ico-forks.png') no-repeat;
- margin-left: 10px;
- padding-left: 20px;
-}
-.profile-comments {
- display: inline-block;
- background: url('/static/imgs/ico-comments.png') no-repeat;
- margin-left: 10px;
- padding-left: 20px;
-}
-.profile-likes {
- display: inline-block;
- background: url('/static/imgs/ico-likes.png') no-repeat;
- margin-left: 10px;
- padding-left: 20px;
-}
-.profile.twitter {
- overflow: hidden;
-}
-.profile-tweets {
- list-style: none;
- margin: 0;
- background: #fff;
-}
-.profile-tweets li {
- padding: 10px 15px;
- border-bottom: 1px solid #c2c2c2;
-}
-.tweet-title {
- border-bottom: 0;
- position: relative;
- padding-left: 45px;
-}
-.tweet-title img {
- position: absolute;
- left: 0;
- width: 32px;
- height: 32px;
- border: 2px solid #333366;
-}
-.tweet-title span {
- color: #777;
- font-size: 13px;
- padding-left: 3px;
-}
-.tweet-title:hover {
- border-bottom: 0;
-}
-.tweet-text {
- color: #777;
- margin: 0;
- padding: 3px 0;
- font-size: 13px;
- line-height: 18px;
- margin-left: 45px;
-}
-.tweet-text a {
- border-bottom: 0;
-}
-.tweet-date {
- margin: 0;
- font-size: 13px;
- line-height: 18px;
- margin-left: 45px;
- color: #999;
-}
-.profile-repos {
- list-style: none;
- margin: 0;
- background: #fff;
-}
-.profile-repos li {
- padding: 10px 15px;
- border-bottom: 1px solid #c2c2c2;
-}
-.profile-repo-name {
- border-bottom: 0;
- font-weight: 500;
-}
-.profile-repo-name:hover {
- border-bottom: 0;
-}
-.profile-repo-text {
- color: #777;
- margin: 0;
- padding: 5px 0;
- font-size: 13px;
- line-height: 18px;
-}
-.profile-repo-stats {
- list-style: none;
- margin: 0;
- font-size: 13px;
- line-height: 18px;
-}
-.profile-repo-stats li {
- padding: 0;
- border: 0;
- display: inline-block;
- zoom: 1;
- *display: inline;
-}
-.profile-repo-stats a {
- border-bottom: 0;
-}
-.profile-repo-stats a:hover {
- border-bottom: 0;
- color: #333366;
-}
-.profile-shots {
- list-style: none;
- margin: 0;
- padding: 15px 0;
-}
-.profile-shots > li {
- float: left;
- width: 300px;
- padding: 10px;
- margin: 0 0px 20px 20px;
- background: #fff;
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
- -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
-}
-.profile-shot {
- border-bottom: 0;
- display: block;
-}
-.profile-shot img {
- width: 300px;
- height: 225px;
-}
-.profile-shot:hover {
- border-bottom: 0;
-}
-.profile-shot-title {
- display: block;
- padding: 5px 0;
- font-size: 13px;
- line-height: 18px;
- color: #4b4b4b;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-.profile-shot-stats {
- list-style: none;
- margin: 0;
- font-size: 13px;
- line-height: 18px;
-}
-.profile-shot-stats li {
- margin-bottom: 0;
- padding: 0;
- border: 0;
- display: inline-block;
- zoom: 1;
- *display: inline;
-}
-.profile-shot-stats li:first-child a,
-.profile-shot-stats li:first-child span {
- margin-left: 0;
-}
-.profile-shot-stats a {
- border-bottom: 0;
-}
-.profile-shot-stats a:hover {
- border-bottom: 0;
- color: #333366;
-}
-.profile-shot-date {
- float: right;
- color: #999;
-}
-.instagram .profile-shot img {
- width: 300px;
- height: 300px;
-}
-code,
-pre {
- padding: 0 3px 2px;
- color: #333;
- font-family: "Monaco", Courier New, monospace;
- font-size: 12px;
- font-weight: normal;
- line-height: 20px;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
-}
-code {
- padding: 2px 4px;
- color: #333366;
- background-color: #f7f7f9;
- border: 1px solid #e1e1e8;
-}
-pre {
- display: block;
- padding: 8px;
- margin: 0 0 9px;
- word-break: break-all;
- word-wrap: break-word;
- white-space: pre;
- white-space: pre-wrap;
- background-color: #f5f5f5;
- border: 1px solid #ccc;
- border: 1px solid rgba(0, 0, 0, 0.15);
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
-}
-pre.prettyprint {
- margin-bottom: 20px;
-}
-pre code {
- padding: 0;
- color: inherit;
- background-color: transparent;
- border: 0;
-}
-.pre-scrollable {
- max-height: 340px;
- overflow-y: scroll;
-}
-blockquote code {
- padding: 0;
- color: inherit;
- background-color: transparent;
- border: 0;
-}
-.com {
- color: #93a1a1;
-}
-.lit {
- color: #195f91;
-}
-.pun,
-.opn,
-.clo {
- color: #93a1a1;
-}
-.fun {
- color: #dc322f;
-}
-.str,
-.atv {
- color: #da3f47;
-}
-.kwd,
-.linenums .tag {
- color: #1e347b;
-}
-.typ,
-.atn,
-.dec,
-.var {
- color: teal;
-}
-.pln {
- color: #48484c;
-}
-.prettyprint {
- padding: 8px;
- background-color: #f7f7f9;
- border: 1px solid #e1e1e8;
-}
-.prettyprint.linenums {
- -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
- -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
- box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
-}
-ol.linenums {
- margin: 0 0 0 33px;
- /* IE indents via margin-left */
-
-}
-ol.linenums li {
- padding-left: 12px;
- color: #bebec5;
- line-height: 18px;
- text-shadow: 0 1px 0 #fff;
-}
-.main-header {
- position: fixed;
- z-index: 1100;
- top: 0;
- left: 0;
- width: 240px;
- height: 100%;
- min-height: 700px;
- float: left;
- border-right: 1px solid #c2c2c2;
- background: #e9e9e9 url('/static/imgs/b.png');
-}
-.main-header hgroup .picture a {
- display: inline-block;
- height: 84px;
- width: 84px;
- margin: 60px 35px 20px 35px;
- border: 3px solid #333366;
- background: #000000 0 url('https://twimg0-a.akamaihd.net/profile_images/1149409097/20101018060848_samrat94_6HR8FZ5V2JQDPU34ENIKCWBL0STAMO91XG7Y.jpg');
- -webkit-box-shadow: 0 1px 1px #f9f9f9, inset 0 0 6px #000000;
- -moz-box-shadow: 0 1px 1px #f9f9f9, inset 0 0 6px #000000;
- box-shadow: 0 1px 1px #f9f9f9, inset 0 0 6px #000000;
-}
-.main-header hgroup h1 {
- font-size: 24px;
- margin: 0 35px;
- text-shadow: 0 1px 1px #f9f9f9;
-}
-.main-header hgroup h2 {
- margin: 10px 35px;
- font-size: 14px;
- font-weight: normal;
- line-height: 25px;
- color: #4b4b4b;
-}
-.main-header nav {
- margin: 65px 0;
-}
-.main-header nav ul {
- border-top: 1px solid #d2d2d2;
- list-style: none;
- margin-left: 0;
-}
-.main-header nav li {
- margin-bottom: 0;
-}
-.main-header nav a,
-.main-header nav a:hover {
- border-bottom: 1px solid #d2d2d2;
-}
-.main-header nav a {
- position: relative;
- padding: 15px 30px;
- color: #404040;
- display: block;
- font-weight: 500;
- text-shadow: 0 1px 1px #f9f9f9;
-}
-.main-header nav a:hover {
- color: #fff;
- background: #333366;
- border-right: 0;
- text-shadow: none;
-}
-.main-header nav .sel {
- border-right: 6px solid #333366;
-}
-.main-header .spinner {
- position: absolute !important;
- right: 30px;
- top: 23px;
-}
-.main-header .fork-me {
- position: absolute;
- left: 30px;
- bottom: 20px;
- font-size: 13px;
- color: #4b4b4b;
- border-bottom: none;
-}
-.main-header .fork-me:hover {
- color: #333366;
-}
-.main-section {
- position: relative;
- overflow: hidden;
- margin-left: 241px;
- padding: 35px;
-}
-.main-section h3.date {
- width: 100%;
- display: block;
- margin-left: -34px;
- padding: 20px 35px 30px 75px;
- border-bottom: 1px solid #C2C2C2;
- border-top: 1px solid #C2C2C2;
- font-size: 16px;
- font-weight: bold;
- background-color: #ffffff;
- background-color: rgba(255, 255, 255, 0.8);
- color: #333366;
-}
-a.button_accent {
- margin: 40px 50px;
- padding: 10px 20px;
- display: inline-block;
- border: 3px solid #333366;
- border-radius: 70px;
- -moz-border-radius: 70px;
- -webkit-border-radius: 70px;
- text-transform: uppercase;
- color: #333366;
- font-size: 17px;
- font-weight: 400;
-}
-a.button_accent:link {
- color: #0e94ec;
-}
-a.button_accent:hover {
- color: #ffffff;
- background-color: #333366;
- outline: 0;
-}
-a.button_accent:active {
- color: #ffffff;
- background-color: #333399;
- outline: 0;
-}
-.blog-section {
- padding: 0;
-}
-.blog-section hgroup h2,
-.blog-section hgroup h1 {
- font-size: 30px;
- line-height: 35px;
- font-weight: 500;
- line-height: 40px;
- margin: 50px 0 25px 0;
-}
-.blog-section hgroup h2 a {
- border-bottom: 0;
- font-weight: 500;
-}
-.blog-section hgroup h3 a {
- display: none;
-}
-.blog-section hgroup h3 a.active {
- position: fixed;
- top: 0;
- bottom: auto;
- margin-top: 0;
-}
-.blog-section article {
- width: 700px;
- overflow: hidden;
- line-height: 25px;
- padding: 5px 35px 50px 34px;
-}
-.blog-section article img {
- padding: 2px;
- border: 1px solid #C2C2C2;
- margin: 0px 15px 5px 0px;
-}
-.blog-section article a.img-link {
- border-bottom: 0;
-}
-.blog-section article a.img-link:hover img {
- border-color: #333366;
-}
-.blog-section footer {
- padding-top: 10px;
-}
-.blog-section footer h4 {
- float: left;
- text-transform: uppercase;
- font-size: 13px;
- line-height: 28px;
- padding: 0px 15px 0px 0;
-}
-.tags {
- list-style: none;
- margin: 0;
-}
-.tags li {
- display: inline-block;
- zoom: 1;
- *display: inline;
-}
-.tags a {
- padding: 3px 10px;
- font-size: 13px;
- text-shadow: 0 1px 1px #F9F9F9;
- background: #E9E9E9;
- border: 1px solid #C2C2C2;
-}
-.tags a:hover {
- background: #333366;
- color: #fff;
- text-shadow: none;
- border: 1px solid #333366;
-}
-.mobile-nav {
- display: none;
-}
-.load-more-button {
- display: inline-block;
- margin: 0 20px 50px 20px;
- padding: 10px 30px;
- background-color: #333366;
- color: #fff;
-}
-.load-more-button:hover {
- border: 1px solid #333366;
- background: #fff;
- color: #333366;
-}
-.load-more-button .spinner {
- left: 140px;
- top: -8px;
-}
-@media (max-width: 767px) {
- header.main-header hgroup .picture a,
- header.main-header nav {
- margin-top: 30px;
- }
- .blog-section article {
- width: 400px;
- }
- .blog-section article img {
- max-width: 400px;
- }
-}
-@media (max-width: 600px) {
- body {
- background: #e9e9e9 url('/static/imgs/b.png');
- overflow-x: hidden;
- }
- .mobile-nav {
- display: block;
- position: fixed;
- top: 0;
- height: 45px;
- width: 100%;
- z-index: 3000;
- background: #e9e9e9 url('/static/imgs/b.png');
- border-top: 3px solid #333366;
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
- -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
- }
- .mobile-nav h3 {
- float: right;
- padding: 10px;
- }
- .mobile-nav h3 a {
- border-bottom: 0;
- font-weight: bold;
- color: #404040;
- text-shadow: 0 1px 1px #f9f9f9;
- }
- .mobile-nav .nav-btn {
- float: left;
- padding: 7px 10px 4px;
- margin: 8px 10px;
- background-color: #333333;
- background-repeat: repeat-x;
- background-image: -khtml-gradient(linear, left top, left bottom, from(#404040), to(#333333));
- background-image: -moz-linear-gradient(top, #404040, #333333);
- background-image: -ms-linear-gradient(top, #404040, #333333);
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #404040), color-stop(100%, #333333));
- background-image: -webkit-linear-gradient(top, #404040, #333333);
- background-image: -o-linear-gradient(top, #404040, #333333);
- background-image: linear-gradient(top, #404040, #333333);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#404040', endColorstr='#333333', GradientType=0);
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
- -webkit-box-shadow: 0 1px 1px #f9f9f9;
- -moz-box-shadow: 0 1px 1px #f9f9f9;
- box-shadow: 0 1px 1px #f9f9f9;
- }
- .mobile-nav .nav-btn-bar {
- display: block;
- width: 18px;
- height: 2px;
- margin-bottom: 3px;
- background-color: #f9f9f9;
- -webkit-border-radius: 1px;
- -moz-border-radius: 1px;
- border-radius: 1px;
- -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
- -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
- }
- header.main-header {
- position: absolute;
- }
- header.main-header hgroup .picture a {
- margin: 60px 0 10px 10px;
- }
- header.main-header hgroup h1 {
- font-size: 18px;
- margin: 0 10px;
- }
- header.main-header hgroup h2 {
- margin: 0 10px 10px 10px;
- }
- header.main-header nav {
- margin: 20px 0;
- }
- header.main-header .fork-me {
- display: none;
- }
- .main-section {
- margin: 45px 0 0 0;
- position: relative;
- min-height: 500px;
- left: 0;
- z-index: 2000;
- background-color: #fff;
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
- -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
- -webkit-transition: left .3s ease-out;
- -moz-transition: left .3s ease-out;
- -o-transition: left .3s ease-out;
- transition: left .3s ease-out;
- }
- .main-section.nav-opened {
- left: 240px;
- }
- .blog-section hgroup h2,
- .blog-section hgroup h1 {
- font-size: 24px;
- line-height: 30px;
- font-weight: 500;
- margin: 10px 0 5px 0;
- }
- .blog-section hgroup h3 a {
- position: static;
- margin: 0;
- padding: 5px 0;
- border: 0;
- font-weight: 300;
- }
- .blog-section article {
- width: 95%;
- padding: 10px 10px 30px;
- border-bottom: 1px solid #C2C2C2;
- }
- .blog-section article img {
- max-width: 300px;
- }
- .blog-section .loading {
- padding: 15px;
- }
- .modal-backdrop {
- z-index: 3500;
- }
- .modal {
- position: absolute;
- width: 100%;
- height: 1500px;
- z-index: 4000;
- top: 45px;
- }
- .modal.fade-large {
- width: 100%;
- }
- .modal.fade.in,
- .modal.fade-large.in {
- left: 0;
- }
- .profile.twitter,
- .profile.github,
- .profile.dribbble,
- .profile.instagram {
- overflow: scroll;
- }
- .profile-info .btn {
- position: static;
- margin-top: 5px;
- }
- .shots-likes-received,
- .shots-likes-given {
- display: none;
- }
- .profile-shots {
- padding: 10px 0;
- }
- .profile-shots > li {
- margin: 0 0 20px 10px;
- width: 280px;
- }
- .profile-shots img {
- width: 280px;
- height: 210px;
- }
- .instagram .profile-shot img {
- width: 280px;
- height: 280px;
- }
-}
diff --git a/syte/static/less/styles.less b/syte/static/less/styles.less
deleted file mode 100644
index 6a999c1..0000000
--- a/syte/static/less/styles.less
+++ /dev/null
@@ -1,253 +0,0 @@
-@import 'reset.less';
-@import 'mixins.less';
-
-@import 'variables.less';
-
-@import 'base.less';
-@import 'buttons.less';
-@import 'modals.less';
-@import 'profiles.less';
-@import 'code.less';
-
-
-// Specific styles
-.main-header {
- position: fixed;
- z-index: 1100;
- top: 0;
- left: 0;
- width: 240px;
- height: 100%;
- min-height: 700px;
- float: left;
- border-right: 1px solid #c2c2c2;
- background: #E9E9E9 url('/static/imgs/b.png');
-
-
- hgroup {
- .picture a {
- display: inline-block;
- .square(84px);
- margin: 60px 35px 20px 35px;
- border: 3px solid @adjacent-color;
- background: #00000 url('https://twimg0-a.akamaihd.net/profile_images/1149409097/20101018060848_samrat94_6HR8FZ5V2JQDPU34ENIKCWBL0STAMO91XG7Y.jpg');
-
- @pic-shadow:0 1px 1px #f9f9f9, inset 0 0 6px #000000;
- .box-shadow(@pic-shadow);
- }
-
- h1 {
- font-size: 24px;
- margin: 0 35px;
- text-shadow: 0 1px 1px #f9f9f9;
- }
- h2 {
- margin: 10px 35px;
- font-size: 14px;
- font-weight: normal;
- line-height: 25px;
- color: @alternate-text-color;
- }
- }
-
- nav {
- margin: 65px 0;
-
- ul { border-top: 1px solid #d2d2d2; list-style: none; margin-left: 0; }
- li { margin-bottom: 0; }
- a, a:hover { border-bottom: 1px solid #d2d2d2; }
- a {
- position: relative;
- padding: 15px 30px;
- color: @text-color;
- display: block;
- font-weight: 500;
- text-shadow: 0 1px 1px #f9f9f9;
- }
- a:hover {
- color: #fff;
- background: @adjacent-color;
- border-right: 0;
- text-shadow: none;
- }
- .sel { border-right: 6px solid @adjacent-color; }
- }
-
- .spinner {
- position: absolute !important;
- right: 30px;
- top: 23px;
- }
-
- .fork-me {
- position: absolute;
- left: 30px;
- bottom: 20px;
- font-size: 13px;
- color: @alternate-text-color;
- border-bottom: none;
- }
- .fork-me:hover {
- color: @adjacent-color;
- }
-}
-
-.main-section {
- position: relative;
- overflow: hidden;
- margin-left: 241px;
- padding: 35px;
-}
-
-.main-section h3.date {
- width: 100%;
- display: block;
- margin-left: -34px;
- padding: 20px 35px 30px 75px;
- border-bottom: 1px solid #C2C2C2;
- border-top: 1px solid #C2C2C2;
- font-size: 16px;
- font-weight: bold;
- .alpha-background(#ffffff, 0.8);
- color: @adjacent-color;
-}
-
-a.button_accent {
- margin:40px 50px;
- padding:10px 20px;
- display:inline-block;
- border:3px solid @adjacent-color;
- border-radius:70px;
- -moz-border-radius:70px;
- -webkit-border-radius:70px;
- text-transform:uppercase;
- color:@adjacent-color;
- font-size:17px;
- font-weight:400;}
-
-a.button_accent:link{color:#0e94ec;}
-a.button_accent:hover{color:#ffffff;
- background-color:@adjacent-color;
- outline:0;}
-a.button_accent:active{
- color:#ffffff;
- background-color:#333399;
- outline:0;}
-
-.blog-section {
- padding: 0;
-
- hgroup {
- h2, h1 { .h1; line-height: 40px; margin: 50px 0 25px 0;}
- h2 a {
- border-bottom: 0;
- font-weight: 500;
- }
- h3 a {
- display: none;
- }
-
- h3 a.active {
- position: fixed;
- top: 0;
- bottom: auto;
- margin-top: 0;
- }
- }
-
- article {
- width: 700px;
- overflow: hidden;
- line-height: 25px;
- padding: 5px 35px 50px 34px;
-
- img {
- padding: 2px;
- border: 1px solid #C2C2C2;
- margin: 0px 15px 5px 0px;
- }
-
- a.img-link {
- border-bottom: 0;
-
- &:hover img { border-color: @adjacent-color; }
- }
- }
-
- footer {
- padding-top: 10px;
-
- h4 {
- float: left;
- text-transform: uppercase;
- font-size: 13px;
- line-height: 28px;
- padding: 0px 15px 0px 0;
- }
- }
-}
-
-.tags {
- list-style: none;
- margin: 0;
-
- li {
- display: inline-block;
-
- //ie7 inline-block hack
- zoom: 1;
- *display: inline;
- }
-
- a {
- padding: 3px 10px;
- font-size: 13px;
- text-shadow: 0 1px 1px #F9F9F9;
- background: #E9E9E9;
- border: 1px solid #C2C2C2;
- }
- a:hover {
- background: @adjacent-color;
- color: #fff;
- text-shadow: none;
- border: 1px solid @adjacent-color;
- }
-}
-
-.mobile-nav {
- display: none;
-}
-
-.load-more-button {
- display: inline-block;
- margin: 0 20px 50px 20px;
- padding: 10px 30px;
- background-color: @adjacent-color;
- color: #fff;
-
- &:hover {
- border: 1px solid @adjacent-color;
- background: #fff;
- color: @adjacent-color;
- }
-
- .spinner {
- left: 140px;
- top: -8px;
- }
-}
-
-@media (max-width: 767px) {
-
- header.main-header {
- hgroup .picture a, nav { margin-top: 30px; }
- }
-
- .blog-section article {
- width: 400px;
-
- img { max-width: 400px; }
- }
-}
-
-@import 'styles-mobile.less';
diff --git a/syte/static/less/variables.css b/syte/static/less/variables.css
deleted file mode 100644
index e69de29..0000000
--- a/syte/static/less/variables.css
+++ /dev/null
diff --git a/syte/static/less/variables.less b/syte/static/less/variables.less
deleted file mode 100644
index 1957a02..0000000
--- a/syte/static/less/variables.less
+++ /dev/null
@@ -1,6 +0,0 @@
-//variables
-@adjacent-color: #333366;
-
-@text-color: #404040;
-@alternate-text-color: #4b4b4b;
-@link-color: #000000;
diff --git a/syte/static/styles.less b/syte/static/styles.less
deleted file mode 100644
index 258af65..0000000
--- a/syte/static/styles.less
+++ /dev/null
@@ -1,252 +0,0 @@
-@import 'reset.less';
-@import 'mixins.less';
-
-@import 'variables.less';
-
-@import 'base.less';
-@import 'buttons.less';
-@import 'modals.less';
-@import 'profiles.less';
-@import 'code.less';
-
-
-// Specific styles
-.main-header {
- position: fixed;
- z-index: 1100;
- top: 0;
- left: 0;
- width: 240px;
- height: 100%;
- min-height: 700px;
- float: left;
- border-right: 1px solid #c2c2c2;
- background: #E9E9E9 url('/static/imgs/b.png');
-
-
- hgroup {
- .picture a {
- display: inline-block;
- .square(84px);
- margin: 60px 35px 20px 35px;
- border: 3px solid @adjacent-color;
- background: #00000 url('/static/imgs/pic.png');
-
- @pic-shadow:0 1px 1px #f9f9f9, inset 0 0 6px #000000;
- .box-shadow(@pic-shadow);
- }
-
- h1 {
- font-size: 24px;
- margin: 0 35px;
- text-shadow: 0 1px 1px #f9f9f9;
- }
- h2 {
- margin: 10px 35px;
- font-size: 14px;
- font-weight: normal;
- line-height: 25px;
- color: @alternate-text-color;
- }
- }
-
- nav {
- margin: 65px 0;
-
- ul { border-top: 1px solid #d2d2d2; list-style: none; margin-left: 0; }
- li { margin-bottom: 0; }
- a, a:hover { border-bottom: 1px solid #d2d2d2; }
- a {
- position: relative;
- padding: 15px 30px;
- color: @text-color;
- display: block;
- font-weight: 500;
- text-shadow: 0 1px 1px #f9f9f9;
- }
- a:hover {
- color: #fff;
- background: @adjacent-color;
- border-right: 0;
- text-shadow: none;
- }
- .sel { border-right: 6px solid @adjacent-color; }
- }
-
- .spinner {
- position: absolute !important;
- right: 30px;
- top: 23px;
- }
-
- .fork-me {
- position: absolute;
- left: 30px;
- bottom: 20px;
- font-size: 13px;
- color: @alternate-text-color;
- border-bottom: none;
- }
- .fork-me:hover {
- color: @adjacent-color;
- }
-}
-
-.main-section {
- position: relative;
- overflow: hidden;
- margin-left: 241px;
- padding: 35px;
-}
-
-.main-section h3.date {
- width: 100%;
- display: block;
- margin-left: -34px;
- padding: 20px 35px 30px 75px;
- border-bottom: 1px solid #C2C2C2;
- border-top: 1px solid #C2C2C2;
- font-size: 16px;
- font-weight: bold;
- .alpha-background(#ffffff, 0.8);
-}
-
-a.button_accent {
- margin:40px 50px;
- padding:10px 20px;
- display:inline-block;
- border:3px solid @adjacent-color;
- border-radius:70px;
- -moz-border-radius:70px;
- -webkit-border-radius:70px;
- text-transform:uppercase;
- color:#000000;
- font-size:17px;
- font-weight:400;}
-
-a.button_accent:link{color:#0e94ec;}
-a.button_accent:hover{color:#ffffff;
- background-color:@adjacent-color;
- outline:0;}
-a.button_accent:active{
- color:#ffffff;
- background-color:#0e94ec;
- outline:0;}
-
-.blog-section {
- padding: 0;
-
- hgroup {
- h2, h1 { .h1; line-height: 40px; margin: 50px 0 25px 0;}
- h2 a {
- border-bottom: 0;
- font-weight: 500;
- }
- h3 a {
- display: none;
- }
-
- h3 a.active {
- position: fixed;
- top: 0;
- bottom: auto;
- margin-top: 0;
- }
- }
-
- article {
- width: 700px;
- overflow: hidden;
- line-height: 25px;
- padding: 5px 35px 50px 34px;
-
- img {
- padding: 2px;
- border: 1px solid #C2C2C2;
- margin: 0px 15px 5px 0px;
- }
-
- a.img-link {
- border-bottom: 0;
-
- &:hover img { border-color: @adjacent-color; }
- }
- }
-
- footer {
- padding-top: 10px;
-
- h4 {
- float: left;
- text-transform: uppercase;
- font-size: 13px;
- line-height: 28px;
- padding: 0px 15px 0px 0;
- }
- }
-}
-
-.tags {
- list-style: none;
- margin: 0;
-
- li {
- display: inline-block;
-
- //ie7 inline-block hack
- zoom: 1;
- *display: inline;
- }
-
- a {
- padding: 3px 10px;
- font-size: 13px;
- text-shadow: 0 1px 1px #F9F9F9;
- background: #E9E9E9;
- border: 1px solid #C2C2C2;
- }
- a:hover {
- background: @adjacent-color;
- color: #fff;
- text-shadow: none;
- border: 1px solid @adjacent-color;
- }
-}
-
-.mobile-nav {
- display: none;
-}
-
-.load-more-button {
- display: inline-block;
- margin: 0 20px 50px 20px;
- padding: 10px 30px;
- background-color: @adjacent-color;
- color: #fff;
-
- &:hover {
- border: 1px solid @adjacent-color;
- background: #fff;
- color: @adjacent-color;
- }
-
- .spinner {
- left: 140px;
- top: -8px;
- }
-}
-
-@media (max-width: 767px) {
-
- header.main-header {
- hgroup .picture a, nav { margin-top: 30px; }
- }
-
- .blog-section article {
- width: 400px;
-
- img { max-width: 400px; }
- }
-}
-
-@import 'styles-mobile.less';
diff --git a/syte/static/templates/500.html b/syte/static/templates/500.html
deleted file mode 100644
index 68cb76d..0000000
--- a/syte/static/templates/500.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{% extends 'base.html' %}
-{% block pagetitle %}500 Oops{% endblock %}
-{% block main_section %}
-<section class="main-section">
- <article>
- <h2>Oops!</h2>
- <p>An error occurred. Please try again later.</p>
- </article>
-</section>
-{% endblock %}
diff --git a/syte/static/templates/blog-post-audio.html b/syte/static/templates/blog-post-audio.html
deleted file mode 100644
index ec3e9e2..0000000
--- a/syte/static/templates/blog-post-audio.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<article id="{{ id }}">
- <hgroup>
- <h2><a href="/post/{{ id }}">{{ artist }} - {{ track_name }}</a></h2>
- <h3><a href="#{{ id }}">{{ formated_date }}</a></h3>
- </hgroup>
- {{{ player }}}
- {{#if caption}}
- {{{ caption }}}
- {{/if}}
- {{#if tags }}
- <footer>
- <h4>Tags</h4>
- <ul class="tags">
- {{#each tags}}
- <li><a href="/tags/{{ this }}">{{ this }}</a></li>
- {{/each}}
- </ul>
- </footer>
- {{/if}}
-</article>
diff --git a/syte/static/templates/blog-post-link.html b/syte/static/templates/blog-post-link.html
deleted file mode 100644
index d1f0b42..0000000
--- a/syte/static/templates/blog-post-link.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<article id="{{ id }}">
- <hgroup>
- <h2><a href="{{url}}">Link: {{title}}</a></h2>
- <h3><a href="#{{ id }}">{{ formated_date }}</a></h3>
- </hgroup>
- {{{ description }}}
- {{#if tags}}
- <footer>
- <h4>Tags</h4>
- <ul class="tags">
- {{#each tags}}
- <li><a href="/tags/{{ this }}">{{ this }}</a></li>
- {{/each}}
- </ul>
- </footer>
- {{/if}}
-</article>
diff --git a/syte/static/templates/blog-post-photo.html b/syte/static/templates/blog-post-photo.html
deleted file mode 100644
index 42e4ff6..0000000
--- a/syte/static/templates/blog-post-photo.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<article id="{{ id }}">
- <hgroup>
- <h2><a href="/post/{{ id }}">Photo</a></h2>
- <h3><a href="#{{ id }}">{{ formated_date }}</a></h3>
- </hgroup>
- {{#each photos}}
- {{#with original_size}}
- <p><img src="{{url}}" /></p>
- {{/with}}
- {{#if caption}}
- {{{ caption }}}
- {{/if}}
- {{/each}}
- {{#if caption}}
- {{{ caption }}}
- {{/if}}
- {{#if tags }}
- <footer>
- <h4>Tags</h4>
- <ul class="tags">
- {{#each tags}}
- <li><a href="/tags/{{ this }}">{{ this }}</a></li>
- {{/each}}
- </ul>
- </footer>
- {{/if}}
-</article>
diff --git a/syte/static/templates/blog-post-quote.html b/syte/static/templates/blog-post-quote.html
deleted file mode 100644
index d15e67e..0000000
--- a/syte/static/templates/blog-post-quote.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<article id="{{ id }}">
- <hgroup>
- <h2><a href="/post/{{ id }}">Quote</a></h2>
- <h3><a href="#{{ id }}">{{ formated_date }}</a></h3>
- </hgroup>
- <blockquote>
- {{text}}
- </blockquote>
- {{#if source}}
- <p>{{{ source }}}</p>
- {{/if}}
- {{#if tags }}
- <footer>
- <h4>Tags</h4>
- <ul class="tags">
- {{#each tags}}
- <li><a href="/tags/{{ this }}">{{ this }}</a></li>
- {{/each}}
- </ul>
- </footer>
- {{/if}}
-</article>
diff --git a/syte/static/templates/blog-post-text.html b/syte/static/templates/blog-post-text.html
deleted file mode 100644
index b9a0cb6..0000000
--- a/syte/static/templates/blog-post-text.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<article id="{{ id }}">
- <hgroup>
- <h2><a href="/post/{{ id }}">{{ title }}&nbsp;</a></h2>
- <h3><a href="#{{ id }}">{{ formated_date }}</a></h3>
- </hgroup>
- {{{ body }}}
- {{#if tags}}
- <footer>
- <h4>Tags</h4>
- <ul class="tags">
- {{#each tags}}
- <li><a href="/tags/{{ this }}">{{ this }}</a></li>
- {{/each}}
- </ul>
- </footer>
- {{/if}}
-</article>
diff --git a/syte/static/templates/blog-post-video.html b/syte/static/templates/blog-post-video.html
deleted file mode 100644
index 1f5dce0..0000000
--- a/syte/static/templates/blog-post-video.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<article id="{{ id }}">
- <hgroup>
- <h2><a href="/post/{{ id }}">Video</a></h2>
- <h3><a href="#{{ id }}">{{ formated_date }}</a></h3>
- </hgroup>
- <p>
- <a href="{{ permalink_url }}" class="no-border"><img src="{{ thumbnail_url }}" /></a>
- </p>
- {{#if tags }}
- <footer>
- <h4>Tags</h4>
- <ul class="tags">
- {{#each tags}}
- <li><a href="/tags/{{ this }}">{{ this }}</a></li>
- {{/each}}
- </ul>
- </footer>
- {{/if}}
-</article>
diff --git a/syte/static/templates/dribbble-view.html b/syte/static/templates/dribbble-view.html
deleted file mode 100644
index 259b1cd..0000000
--- a/syte/static/templates/dribbble-view.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<div class="profile dribbble modal fade-large" id="dribbble-profile">
- {{#with user}}
- <div class="profile-info">
- <button class="close" data-dismiss="modal">×</button>
- <a href="http://dribbble.com/{{ username }}" class="profile-avatar">
- <img src="{{ avatar_url }}" alt="{{name}}" />
- </a>
- <div class="profile-name">
- <h2><a href="http://dribbble.com/{{ username }}">{{ name }}</a></h2>
- <h3><a href="http://dribbble.com/{{ username }}">@{{ username}}</a></h3>
- </div>
- <p class="profile-location-url">
- {{#if location }}
- <span>{{ location }}</span>
- <span class="divider">·</span>
- {{/if}}
- {{#if website_url }}
- <span><a href="{{ website_url }}">{{ website_url }}</a></span>
- {{/if}}
- </p>
- <a href="http://dribbble.com/{{ username }}" class="btn">Follow on Dribbble</a>
- </div>
- <ul class="profile-stats">
- <li><a href="http://dribbble.com/{{ username }}"><strong>{{ shots_count }}</strong> shots</a></li>
- <li><a href="http://dribbble.com/{{ username }}" class="shots-likes-received"><strong>{{ likes_received_count }}</strong> likes received</a></li>
- <li><a href="http://dribbble.com/{{ username }}" class="shots-likes-given"><strong>{{ likes_count }}</strong> likes given</a></li>
- <li><a href="http://dribbble.com/{{ username }}/following"><strong>{{ following_count }}</strong> following</a></li>
- <li><a href="http://dribbble.com/{{ username }}/followers"><strong>{{ followers_count }}</strong> followers</a></li>
- </ul>
- {{/with}}
- <ul class="profile-shots">
- {{#each shots}}
- <li>
- <a href="{{ url }}" class="profile-shot">
- <img src="{{ image_url }}" alt="{{ title }}" />
- </a>
- <span class="profile-shot-title">{{ title }}</span>
- <ul class="profile-shot-stats">
- <li><a href="" class="profile-watchers">{{ views_count }}</a></li>
- <li><a href="" class="profile-comments">{{ comments_count }}</a></li>
- <li><a href="" class="profile-likes">{{ likes_count }}</a></li>
- </ul>
- </li>
- {{/each}}
- </ul>
-</div>
diff --git a/syte/static/templates/github-view.html b/syte/static/templates/github-view.html
index c71ad38..9aa8c72 100644
--- a/syte/static/templates/github-view.html
+++ b/syte/static/templates/github-view.html
@@ -20,9 +20,9 @@
</p>
</div>
<ul class="profile-stats">
- <li><a href="http://github.com/{{ login }}"><strong>{{ public_repo_count }}</strong> repos</a></li>
- <li><a href="http://github.com/{{ login }}/following"><strong>{{ following_count }}</strong> following</a></li>
- <li><a href="http://github.com/{{ login }}/followers"><strong>{{ followers_count }}</strong> followers</a></li>
+ <li><a href="http://github.com/{{ login }}"><strong>{{ public_repos }}</strong> repos</a></li>
+ <li><a href="http://github.com/{{ login }}/following"><strong>{{ following }}</strong> following</a></li>
+ <li><a href="http://github.com/{{ login }}/followers"><strong>{{ followers }}</strong> followers</a></li>
</ul>
<div class="profile-info-footer">
<a href="http://github.com/{{ login }}" class="btn">Follow on Github</a>
@@ -31,14 +31,14 @@
<ul class="profile-repos">
{{#each repositories}}
<li>
- <a href="{{ url }}" class="profile-repo-name">{{ name }}</a>
+ <a href="{{ html_url }}" class="profile-repo-name">{{ name }}</a>
<p class="profile-repo-text">
{{ description }}
</p>
<ul class="profile-repo-stats">
<li>{{ language }}</li>
- <li><a href="{{ url }}/watchers" class="profile-watchers">{{ watchers }}</a></li>
- <li><a href="{{ url }}/network" class="profile-forks">{{ forks }}</a></li>
+ <li><a href="{{ html_url }}/watchers" class="profile-watchers">{{ watchers }}</a></li>
+ <li><a href="{{ html_url }}/network" class="profile-forks">{{ forks }}</a></li>
</ul>
</li>
{{/each}}
diff --git a/syte/static/templates/google-view.html b/syte/static/templates/google-view.html
new file mode 100644
index 0000000..0a2e0be
--- /dev/null
+++ b/syte/static/templates/google-view.html
@@ -0,0 +1,46 @@
+<div class="profile google modal fade" id="google-profile">
+ {{#with user}}
+ <div class="profile-info">
+ <button class="close" data-dismiss="modal">×</button>
+ <a href="{{ url }}" class="profile-avatar">
+ <img src="{{ image.url }}" alt="{{ displayName }}" />
+ </a>
+ <div class="profile-name">
+ <h2><a href="{{ url }}">{{ displayName }}</a></h2>
+ </div>
+ {{#if tagline}}
+ <p class="profile-description">{{{ tagline }}}</p>
+ {{/if}}
+ <p class="profile-location-url">
+ {{#if placesLived }}
+ <span>{{ placesLived.0.value }}</span>
+ <span class="divider">·</span>
+ {{/if}}
+ </p>
+ </div>
+ <ul class="profile-stats">
+ </ul>
+ <div class="profile-info-footer">
+ <a href="{{ url }}" class="btn">Follow on Google+</a>
+ </div>
+ {{/with}}
+ <ul class="profile-tweets">
+ {{#each posts}}
+ <li>
+ <a href="{{ url }}" class="tweet-title">
+ <img src="{{ actor.image.url }}" alt="{{ actor.displayName }}" />
+ <strong>{{ actor.displayName }}</strong>
+ </a>
+ <p class="tweet-text">
+ {{{ title }}}
+ </p>
+ <ul class="profile-repo-stats tweet-date" style="padding-left: 30px; font-size: 12px;">
+ <li>{{ published }}</li>
+ <li><a class="profile-plusoners">{{ plusoners }}</a></li>
+ <li><a class="profile-resharers">{{ resharers }}</a></li>
+ </ul>
+ </li>
+ {{/each}}
+ </ul>
+</div>
+
diff --git a/syte/static/templates/instagram-view-more.html b/syte/static/templates/instagram-view-more.html
deleted file mode 100644
index 78db9fc..0000000
--- a/syte/static/templates/instagram-view-more.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{{#each media}}
-<li>
- <a href="{{ link }}" class="profile-shot">
- {{#with images}}
- {{#with low_resolution }}
- <img src="{{ url }}" alt="Instagram Picture" />
- {{/with}}
- {{/with}}
- </a>
- <span class="profile-shot-title">
- {{#if caption}}
- {{#with caption}}
- {{ text }}
- {{/with}}
- {{else}}
- Untitled
- {{/if}}
- </span>
- <ul class="profile-shot-stats">
- {{#with likes}}<li><span class="profile-likes">{{ count }}</span></li>{{/with}}
- <li class="profile-shot-date">{{ formated_date }}</li>
- </ul>
-</li>
-{{/each}}
-
diff --git a/syte/static/templates/instagram-view.html b/syte/static/templates/instagram-view.html
index 90d49f7..cba2a17 100644
--- a/syte/static/templates/instagram-view.html
+++ b/syte/static/templates/instagram-view.html
@@ -22,6 +22,9 @@
<li><span><strong>{{ followed_by }}</strong> followers</span></li>
{{/with}}
</ul>
+ <div class="profile-info-footer">
+ <a href="{{ url }}" class="btn">Follow on Instagram</a>
+ </div>
{{/with}}
<ul class="profile-shots">
{{#each media}}
@@ -49,10 +52,5 @@
</li>
{{/each}}
</ul>
- {{#if pagination}}
- {{#with pagination}}
- <button class="load-more-button" id="load-more-pics" data-control-next="{{ next_max_id }}">Load more...</button>
- {{/with}}
- {{/if}}
</div>
diff --git a/syte/static/templates/twitter-view.html b/syte/static/templates/twitter-view.html
index efa08aa..3fe7046 100644
--- a/syte/static/templates/twitter-view.html
+++ b/syte/static/templates/twitter-view.html
@@ -9,7 +9,7 @@
<h2><a href="http://twitter.com/#!/{{ screen_name }}">{{ name }}</a></h2>
<h3><a href="http://twitter.com/#!/{{ screen_name }}">@{{ screen_name}}</a></h3>
</div>
- <p class="profile-description">{{{ f_description }}}</p>
+ <p class="profile-description">{{{ description }}}</p>
<p class="profile-location-url">
{{#if location }}
<span>{{ location }}</span>
@@ -40,7 +40,7 @@
</a>
{{/with}}
<p class="tweet-text">
- {{{ f_text }}}
+ {{{ text }}}
</p>
<p class="tweet-date">
{{ formated_date }}
diff --git a/syte/templates/404.html b/syte/templates/404.html
deleted file mode 100644
index d4071bc..0000000
--- a/syte/templates/404.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{% extends 'base.html' %}
-{% block pagetitle %}404 Not Found{% endblock %}
-{% block main_section %}
-<section class="main-section">
- <article>
- <h2>The page you are looking for was not found.</h2>
- <p>Please use the links on the left to navigate to your desired destination.</p>
- </article>
-</section>
-{% endblock %}
diff --git a/syte/templates/analytics.html b/syte/templates/analytics.html
index ba174fc..8194366 100644
--- a/syte/templates/analytics.html
+++ b/syte/templates/analytics.html
@@ -1,11 +1,12 @@
{% if GOOGLE_ANALYTICS %}
<script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{GOOGLE_ANALYTICS}}']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
</script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
- pageTracker._trackPageview();
- } catch(err) {}</script>
-{% endif %} \ No newline at end of file
+{% endif %}
diff --git a/syte/templates/article.html b/syte/templates/article.html
index 756a738..93dded9 100644
--- a/syte/templates/article.html
+++ b/syte/templates/article.html
@@ -1,5 +1,14 @@
+{% import 'translations.html' as translations with context %}
{% extends 'base.html' %}
-{% block title %}{{article.title}} | Samrat Man Singh{% endblock %}
+
+{% block title %}{{article.title}}{% endblock %}
+
+{% block head %}
+ {% if GOOGLE_PLUSONE %}
+ <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
+ {% endif %}
+{% endblock %}
+
{% block main_section %}
<section class="main-section blog-section" id="blog-posts">
<h3 class="date">{{article.locale_date}}</h3>
@@ -8,15 +17,11 @@
<h2><a href="{{SITEURL}}/{{article.url}}">{{article.title}}</a></h2>
{% include "twitter.html" %}
- <a href="http://news.ycombinator.com/submit" class="hn-share-button">Vote on HN</a>
- <!--<script type="text/javascript" src="http://hnapiwrapper.herokuapp.com/static/js/button.js"></script>-->
- {% include "hacker_news.html" %}
+ {% include "google_plusone.html" %}
+ {{ translations.translate(article) }}
</hgroup>
{{article.content}}
- <p>
- If you liked this post, you should <a href="http://twitter.com/samratmansingh">follow me on Twitter.</a>
- </p>
<br/>
<footer>
{% if article.tags %}
diff --git a/syte/templates/base.html b/syte/templates/base.html
index a0d769a..fe42127 100644
--- a/syte/templates/base.html
+++ b/syte/templates/base.html
@@ -1,34 +1,48 @@
<!DOCTYPE html>
<html lang="en">
-{% block head %}
<head>
<meta charset="utf-8" />
- <meta name="description" content="Personal website and blog of Samrat Man Singh. Follow him at @samratmansingh" />
- <meta name="keywords" content="Samrat Man Singh, python, flask, computers, technology, nepal" />
+ <meta name="description" content="{{ SITE_DESCRIPTION }}" />
+ <meta name="keywords" content="{{ SITE_KEYWORDS }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{{SITENAME}}{% endblock %}</title>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
- <link rel="stylesheet" href="{{SITEURL}}/{{ MEDIA_URL }}css/styles.min.css" type="text/css" media="screen, projection">
-
+{% assets filters="cssmin", output="css/styles.min.css", "css/styles.css", "css/pygments.css" %}
+ <link rel="stylesheet" href="{{ ASSET_URL }}">
+{% endassets %}
+
+ <link rel="shortcut icon" type="image/png" href="{{ GRAVATAR }}" />
+ {% block head %}{% endblock %}
</head>
-{% endblock %}
<body>
<header class="main-header">
+ {% include 'github.html' %}
<hgroup>
- <div class="picture">
- <a href="/" rel="home"></a>
+ <div>
+ <img src="{{ GRAVATAR }}" style="margin-left: 34px; margin-top: 30px;">
</div>
- <h1>{{ SITENAME }}</h1>
- <h2>18 year-old from Nepal interested in computers and technology.</h2>
+ <h1><a href="/" id="home-link">{{ SITENAME }}</a></h1>
+ <h2>{{ ABOUT }}</h2>
</hgroup>
<nav>
<ul class="main-nav">
- <li><a href="/" id="home-link">Home</a></li>
- <li><a href="http://twitter.com/#!/samratmansingh" id="twitter-link">Twitter</a></li>
- <li><a href="http://github.com/samrat" id="github-link">Github</a></li>
- <li><a href="http://feeds.feedburner.com/SamratManSingh" id="github-link">Feed</a></li>
- <li><a href="mailto:samratmansingh@gmail.com?subject=Hello" id="contact-link">Contact</a></li>
+ {% if DISPLAY_HOME_ON_MENU %}
+ <li><a href="{{ SITEURL }}/">Home</a></li>
+ {% endif %}
+
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% for current_page in PAGES %}
+ <li><a href="{{ SITEURL }}/{{ current_page.url }}">{{ current_page.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+
+ {% for title, url in SOCIAL %}
+ <li><a href="{{ url }}" id="{{ title }}-link">{{ title }}</a></li>
+ {% endfor %}
+
+ <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" id="feed-link">Feed</a></li>
+ <li><a href="mailto:{{ CONTACT }}?subject=Hello" id="contact-link">Contact</a></li>
</ul>
</nav>
<a href="http://pelican.notmyidea.org" class="fork-me">Powered by Pelican.</a>
@@ -41,19 +55,49 @@
<span class="nav-btn-bar"></span>
<span class="nav-btn-bar"></span>
</span>
- <h3><a href="/">samrat.github.com</a></h3>
+ <h3>
+ <a href="{{ SITEURL }}/" id="mobile-title">{{ SITEURL }}</a>
+ </h3>
</div>
-<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
-<script type="text/javascript">
-/*<![CDATA[*/
-var twitter_integration_enabled = {% if TWITTER_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
- github_integration_enabled = {% if GITHUB_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
- dribbble_integration_enabled = {% if DRIBBBLE_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
- instagram_integration_enabled = {% if INSTAGRAM_INTEGRATION_ENABLED %}true{% else %}false{% endif %};
-/*]]>*/
-</script>
-<script src="{{ SITEURL }}/{{ MEDIA_URL }}js/min/scripts.min.js"></script>
+{% assets filters="rjsmin", output="gen/packed.js", "js/libs/jquery-1.7.2.min.js", "js/libs/jquery.url.js", "js/libs/bootstrap-modal.js", "js/libs/handlebars.js", "js/libs/spin.min.js", "js/libs/moment.min.js", "js/common.js", "js/libs/github.js", "js/libs/google+.js", "js/libs/twitter.js", "js/libs/instagram.js" %}
+ <script src="{{ ASSET_URL }}"></script>
+{% endassets %}
+
+<script>
+ // Function to get the Maximam value in Array
+ Array.max = function( array ) {
+ return Math.max.apply( Math, array );
+ };
+
+ var heights = [];
+ heights.push($('.main-header').height());
+ heights.push($('.main-section').height());
+ heights.push($(window).height());
+
+ var max_height = Array.max(heights);
+ $('.main-header').height(max_height+80);
+
+ $('#mobile-title').text(window.location.hostname);
+
+{% if GITHUB_INTEGRATION_ENABLED %}
+ var github_username = '{{ GITHUB_USERNAME }}';
+{% endif %}
+
+{% if GPLUS_INTEGRATION_ENABLED %}
+ var google_username = '{{ GPLUS_USERNAME }}';
+ var google_accesskey = '{{ GPLUS_API_ACCESS }}';
+{% endif %}
+
+{% if TWITTER_INTEGRATION_ENABLED %}
+ var twitter_username = '{{ TWITTER_USERNAME }}';
+{% endif %}
+
+{% if INSTAGRAM_INTEGRATION_ENABLED %}
+ var instagram_username = '{{ INSTAGRAM_USERNAME }}';
+ var instagram_accesskey = '{{ INSTAGRAM_API_ACCESS }}';
+{% endif %}
+</script>
{% include "analytics.html" %}
</body>
diff --git a/syte/templates/github.html b/syte/templates/github.html
new file mode 100644
index 0000000..87a6b10
--- /dev/null
+++ b/syte/templates/github.html
@@ -0,0 +1,5 @@
+{% if GITHUB_URL %}
+<a href="{{ GITHUB_URL }}">
+<img style="position: absolute; top: 0; left: 128px; border: 0; height: 119px;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
+</a>
+{% endif %}
diff --git a/syte/templates/google_plusone.html b/syte/templates/google_plusone.html
new file mode 100644
index 0000000..f9e36ed
--- /dev/null
+++ b/syte/templates/google_plusone.html
@@ -0,0 +1,3 @@
+{% if GOOGLE_PLUSONE %}
+<g:plusone size="medium"></g:plusone>
+{% endif %}
diff --git a/syte/templates/hacker_news.html b/syte/templates/hacker_news.html
deleted file mode 100644
index b0fef97..0000000
--- a/syte/templates/hacker_news.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<script>
- (function() {
- var hn = document.createElement('script'); hn.type = 'text/javascript';
- hn.async = true; hn.src = 'http://hnbutton.appspot.com/static/hn.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(hn, s);
- })();
-</script>
diff --git a/syte/templates/index.html b/syte/templates/index.html
index 9f42064..365fa72 100644
--- a/syte/templates/index.html
+++ b/syte/templates/index.html
@@ -8,7 +8,7 @@
<h2><a href="{{article.url}}" title="Permalink to {{article.title}}">{{article.title}}</a></h2>
</hgroup>
- {{article.content}}
+ {{article.summary}}
</article>
{% endfor %}
diff --git a/syte/templates/instagram_auth.html b/syte/templates/instagram_auth.html
deleted file mode 100644
index d864641..0000000
--- a/syte/templates/instagram_auth.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{% extends 'base.html' %}
-{% block pagetitle %}Instagram Auth{% endblock %}
-{% block main_section %}
-<section class="main-section">
- <article>
- {% if error %}
- <h2>Unable to get Access Token</h2>
- <p>{{ error }}</p>
- {% else %}
- <h2>Instagram Access Token</h2>
- <p>Go to your syte_settings.py and enter the token under <code>INSTAGRAM_ACCESS_TOKEN</code> and the user id under <code>INSTAGRAM_USER_ID</code>.</p>
- <dl>
- <dt>User Name</dt><dd> {{ user_name }}</dd>
- <dt>User ID</dt><dd>{{ user_id }}</dd>
- <dt>Access Token</dt><dd>{{ token }}</dd>
- </dl>
- {% endif %}
- </article>
-</section>
-{% endblock %}
-
diff --git a/syte/templates/page.html b/syte/templates/page.html
new file mode 100644
index 0000000..d5ae0e0
--- /dev/null
+++ b/syte/templates/page.html
@@ -0,0 +1,11 @@
+{% import 'translations.html' as translations with context %}
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{% endblock %}
+{% block main_section %}
+<section class="main-section">
+ <h1 class="entry-title">{{ page.title }}</h1>
+ {{ translations.translate(page, 'pages') }}
+ <br /><br />
+ {{ page.content }}
+</section>
+{% endblock %}
diff --git a/syte/templates/tag.html b/syte/templates/tag.html
index ae97414..6c9937f 100644
--- a/syte/templates/tag.html
+++ b/syte/templates/tag.html
@@ -1,5 +1,5 @@
{% extends 'base.html' %}
-{% block title %}Posts tagged '{{tag}}' | Samrat Man Singh {% endblock %}
+{% block title %}Posts tagged '{{tag}}' | {{ SITENAME }} {% endblock %}
{% block main_section %}
<section class="main-section blog-section" id="blog-posts">
{% for article in articles[:5] %}
@@ -9,7 +9,7 @@
<h2><a href="{{article.url}}" title="Permalink to {{article.title}}">{{article.title}}</a></h2>
</hgroup>
- {{article.content}}
+ {{article.summary}}
</article>
{% endfor %}
</section>
diff --git a/syte/templates/translations.html b/syte/templates/translations.html
new file mode 100644
index 0000000..2a83aa7
--- /dev/null
+++ b/syte/templates/translations.html
@@ -0,0 +1,16 @@
+<!-- Takes a content (page, article,...) and translate it if possible-->
+{% macro translate(content, sub_destination=None) -%}
+ {% if content.translations %}
+ Also available in:
+ {% for translation in content.translations %}
+ {% if sub_destination %}
+ {% if sub_destination.endswith('/') %}
+ sub_destination = sub_destination[:-1]
+ {% endif %}
+ <a href="{{ SITEURL }}/{{ sub_destination }}/{{ translation.url }}">{{ translation.lang }}</a>
+ {% else %}
+ <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+{%- endmacro %}