text: /* **********************************************
       Begin sizzle.js
  ********************************************** *//*!
   * Sizzle CSS Selector Engine
   * Copyright 2012 jQuery Foundation and other contributors
   * Released under the MIT license
   * http://sizzlejs.com/
   */(function(e,t){function tt(e,t,n,r){n=n||[];t=t||m;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=q.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f){n.push(s);return n}}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f){n.push(s);return n}}else{if(i[2]){E.apply(n,S.call(t.getElementsByTagName(e),0));return n}if((f=i[3])&&Y&&t.getElementsByClassName){E.apply(n,S.call(t.getElementsByClassName(f),0));return n}}return dt(e.replace(B,"$1"),t,n,r,a)}function nt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function it(e){return T(function(t){t=+t;return T(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function st(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ot(e,t){var n,r,s,o,u,a,f,l=k[d][e+" "];if(l)return t?0:l.slice(0);u=e;a=[];f=i.preFilter;while(u){if(!n||(r=j.exec(u))){r&&(u=u.slice(r[0].length)||u);a.push(s=[])}n=!1;if(r=F.exec(u)){s.push(n=new v(r.shift()));u=u.slice(n.length);n.type=r[0].replace(B," ")}for(o in i.filter)if((r=$[o].exec(u))&&(!f[o]||(r=f[o](r)))){s.push(n=new v(r.shift()));u=u.slice(n.length);n.type=o;n.matches=r}if(!n)break}return t?u.length:u?tt.error(e):k(e,a).slice(0)}function ut(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=b++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=y+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u)){t.sizset=!0;return t}t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function at(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ft(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i)){o.push(s);f&&t.push(u)}return o}function lt(e,t,n,r,i,s){r&&!r[d]&&(r=lt(r));i&&!i[d]&&(i=lt(i,s));return T(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||pt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?ft(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=ft(g,p);r(f,[],u,a);l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[];l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?x.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else{g=ft(g===o?g.splice(d,g.length):g);i?i(null,o,g,a):E.apply(o,g)}})}function ct(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=ut(function(e){return e===t},u,!0),l=ut(function(e){return x.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[ut(at(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return lt(a>1&&at(h),a>1&&e.slice(0,a-1).join("").replace(B,"$1"),n,a<r&&ct(e.slice(a,r)),r<s&&ct(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return at(h)}function ht(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,g=[],b=0,S="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=y+=N==null?1:Math.E;if(T){c=a!==m&&a;n=o.el}for(;(p=C[S])!=null;S++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}if(T){y=k;n=++o.el}}if(r){(p=!v&&p)&&b--;u&&x.push(p)}}b+=S;if(r&&S!==b){for(d=0;v=t[d];d++)v(x,g,a,f);if(u){if(b>0)while(S--)!x[S]&&!g[S]&&(g[S]=w.call(l));g=ft(g)}E.apply(l,g);T&&!u&&g.length>0&&b+t.length>1&&tt.uniqueSort(l)}if(T){y=k;c=N}return x};o.el=0;return r?T(o):o}function pt(e,t,n){var r=0,i=t.length;for(;r<i;r++)tt(e,t[r],n);return n}function dt(e,t,n,r,s){var o,u,f,l,c,h=ot(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace(V,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=$.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace(V,""),U.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1);e=r.length&&u.join("");if(!e){E.apply(n,S.call(r,0));return n}break}}}a(e,h)(r,t,s,n,U.test(e));return n}function vt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),v=String,m=e.document,g=m.documentElement,y=0,b=0,w=[].pop,E=[].push,S=[].slice,x=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},T=function(e,t){e[d]=t==null||t;return e},N=function(){var e={},t=[];return T(function(n,r){t.push(n)>i.cacheLength&&delete e[t.shift()];return e[n+" "]=r},e)},C=N(),k=N(),L=N(),A="[\\x20\\t\\r\\n\\f]",O="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",M=O.replace("w","w#"),_="([*^$|!~]?=)",D="\\["+A+"*("+O+")"+A+"*(?:"+_+A+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+A+"*\\]",P=":("+O+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+D+")|[^:]|\\\\.)*|.*))\\)|)",H=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)",B=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g"),j=new RegExp("^"+A+"*,"+A+"*"),F=new RegExp("^"+A+"*([\\x20\\t\\r\\n\\f>+~])"+A+"*"),I=new RegExp(P),q=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,R=/^:not/,U=/[\x20\t\r\n\f]*[+~]/,z=/:not\($/,W=/h\d/i,X=/input|select|textarea|button/i,V=/\\(?!\\)/g,$={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),NAME:new RegExp("^\\[name=['\"]?("+O+")['\"]?\\]"),TAG:new RegExp("^("+O.replace("w","w*")+")"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+P),POS:new RegExp(H,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),needsContext:new RegExp("^"+A+"*[>+~]|"+H,"i")},J=function(e){var t=m.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},K=J(function(e){e.appendChild(m.createComment(""));return!e.getElementsByTagName("*").length}),Q=J(function(e){e.innerHTML="<a href='#'></a>";return e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),G=J(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Y=J(function(e){e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!e.getElementsByClassName||!e.getElementsByClassName("e").length)return!1;e.lastChild.className="e";return e.getElementsByClassName("e").length===2}),Z=J(function(e){e.id=d+0;e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>";g.insertBefore(e,g.firstChild);var t=m.getElementsByName&&m.getElementsByName(d).length===2+m.getElementsByName(d+0).length;r=!m.getElementById(d);g.removeChild(e);return t});try{S.call(g.childNodes,0)[0].nodeType}catch(et){S=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}tt.matches=function(e,t){return tt(e,null,null,t)};tt.matchesSelector=function(e,t){return tt(t,null,null,[e]).length>0};s=tt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n};o=tt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1};u=tt.contains=g.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:g.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1};tt.attr=function(e,t){var n,r=o(e);r||(t=t.toLowerCase());if(n=i.attrHandle[t])return n(e);if(r||G)return e.getAttribute(t);n=e.getAttributeNode(t);return n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null};i=tt.selectors={cacheLength:50,createPseudo:T,match:$,attrHandle:Q?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:K?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:Z&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Y&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(V,"");e[3]=(e[4]||e[5]||"").replace(V,"");e[2]==="~="&&(e[3]=" "+e[3]+" ");return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1]==="nth"){e[2]||tt.error(e[0]);e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd"));e[4]=+(e[6]+e[7]||e[2]==="odd")}else e[2]&&tt.error(e[0]);return e},PSEUDO:function(e){var t,n;if($.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4]){if(I.test(t)&&(n=ot(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)){t=t.slice(0,n);e[0]=e[0].slice(0,n)}e[2]=t}return e.slice(0,3)}},filter:{ID:r?function(e){e=e.replace(V,"");return function(t){return t.getAttribute("id")===e}}:function(e){e=e.replace(V,"");return function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){if(e==="*")return function(){return!0};e=e.replace(V,"").toLowerCase();return function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(e){var t=C[d][e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&C(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=tt.attr(r,e);if(s==null)return t==="!=";if(!t)return!0;s+="";return t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}i-=r;return i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||tt.error("unsupported pseudo: "+e);if(r[d])return r(t);if(r.length>1){n=[e,e,"",t];return i.setFilters.hasOwnProperty(e.toLowerCase())?T(function(e,n){var i,s=r(e,t),o=s.length;while(o--){i=x.call(e,s[o]);e[i]=!(n[i]=s[o])}}):function(e){return r(e,0,n)}}return r}},pseudos:{not:T(function(e){var t=[],n=[],r=a(e.replace(B,"$1"));return r[d]?T(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){t[0]=e;r(t,null,s,n);return!n.pop()}}),has:T(function(e){return function(t){return tt(e,t).length>0}}),contains:T(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){e.parentNode&&e.parentNode.selectedIndex;return e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return W.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:nt("radio"),checkbox:nt("checkbox"),file:nt("file"),password:nt("password"),image:nt("image"),submit:rt("submit"),reset:rt("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return X.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:it(function(){return[0]}),last:it(function(e,t){return[t-1]}),eq:it(function(e,t,n){return[n<0?n+t:n]}),even:it(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:it(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:it(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:it(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}};f=g.compareDocumentPosition?function(e,t){if(e===t){l=!0;return 0}return(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t){l=!0;return 0}if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return st(e,t);if(!o)return-1;if(!u)return 1;while(a){i.unshift(a);a=a.parentNode}a=u;while(a){s.unshift(a);a=a.parentNode}n=i.length;r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return st(i[f],s[f]);return f===n?st(e,s[f],-1):st(i[f],t,1)};[0,0].sort(f);h=!l;tt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h;e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};tt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};a=tt.compile=function(e,t){var n,r=[],i=[],s=L[d][e+" "];if(!s){t||(t=ot(e));n=t.length;while(n--){s=ct(t[n]);s[d]?r.push(s):i.push(s)}s=L(e,ht(i,r))}return s};m.querySelectorAll&&function(){var e,t=dt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.oMatchesSelector||g.msMatchesSelector;J(function(e){e.innerHTML="<select><option selected=''></option></select>";e.querySelectorAll("[selected]").length||i.push("\\["+A+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)");e.querySelectorAll(":checked").length||i.push(":checked")});J(function(e){e.innerHTML="<p test=''></p>";e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+A+"*(?:\"\"|'')");e.innerHTML="<input type='hidden'/>";e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")});i=new RegExp(i.join("|"));dt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ot(e);(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c);c="[id='"+c+"'] ";f=a.length;while(f--)a[f]=c+a[f].join("");h=U.test(e)&&r.parentNode||r;p=a.join(",")}if(p)try{E.apply(s,S.call(h.querySelectorAll(p),0));return s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)};if(u){J(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle");s.push("!=",P)}catch(n){}});s=new RegExp(s.join("|"));tt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return tt(n,null,null,[t]).length>0}}}();i.pseudos.nth=i.pseudos.eq;i.filters=vt.prototype=i.pseudos;i.setFilters=new vt;typeof define=="function"&&define.amd?define(function(){return tt}):e.Sizzle=tt})(window);typeof Object.create!="function"&&(Object.create=function(e){function t(){}t.prototype=e;return new t}),!function(e){var t=e.snack={},n=0,r=Object.prototype.toString,i=[].indexOf,s=[].push;t.extend=function(){if(arguments.length==1)return t.extend(t,arguments[0]);var e=arguments[0];for(var n,r=1,i=arguments.length;r<i;r++)for(n in arguments[r])e[n]=arguments[r][n];return e},t.extend({v:"1.2.3",bind:function(e,t,n){n=n||[];return function(){s.apply(n,arguments);return e.apply(t,n)}},punch:function(e,n,r,i){var s=e[n];e[n]=i?function(){s.apply(e,arguments);return r.apply(e,arguments)}:function(){var n=[].slice.call(arguments,0);n.unshift(t.bind(s,e));return r.apply(e,n)}},create:function(e,n){var r=Object.create(e);if(!n)return r;for(var i in n){if(!n.hasOwnProperty(i))continue;if(!e[i]||typeof n[i]!="function"){r[i]=n[i];continue}t.punch(r,i,n[i])}return r},id:function(){return++n},each:function(e,t,n){if(e.length===void 0){for(var r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);return e}for(var i=0,s=e.length;i<s;i++)t.call(n,e[i],i,e);return e},parseJSON:function(t){if(typeof t=="string"){t=t.replace(/^\s+|\s+$/g,"");var n=/^[\],:{}\s]*$/.test(t.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""));if(!n)throw"Invalid JSON";var r=e.JSON;return r&&r.parse?r.parse(t):(new Function("return "+t))()}},isArray:function(e){return e instanceof Array||r.call(e)=="[object Array]"},indexOf:i?function(e,t){return i.call(t,e)}:function(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}})}(window),!function(e,t){var n={},r;e.wrap=function(t,i){typeof t=="string"&&(t=r(t,i)),t.length||(t=[t]);var s=Object.create(n),o=0,u=t.length;for(;o<u;o++)s[o]=t[o];s.length=u,s.id=e.id();return s},e.extend(e.wrap,{define:function(t,r){if(typeof t!="string")for(var i in t)e.wrap.define(i,t[i]);else n[t]=r},defineEngine:function(e){r=e}}),e.wrap.defineEngine(function(e,n){typeof n=="string"&&(n=t.querySelector(n));return(n||t).querySelectorAll(e)})}(snack,document),!function(e,t,n){function r(){try{l.doScroll("left")}catch(e){setTimeout(r,50);return}i("poll")}function i(r){if(r.type!="readystatechange"||n.readyState=="complete")(r.type=="load"?t:n)[o](u+r.type,i,!1),!a&&(a=!0)&&e.each(c,function(e){e.apply(n)})}var s=n.addEventListener?"addEventListener":"attachEvent",o=n.addEventListener?"removeEventListener":"detachEvent",u=n.addEventListener?"":"on",a=!1,f=!0,l=n.documentElement,c=[];e.extend({stopPropagation:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}}),e.listener=function(t,r){t.delegate&&(t.capture=!0,_handler=r,r=function(r){var i=r.target||r.srcElement,s=typeof t.delegate=="string"?e.wrap(t.delegate,t.node):t.delegate(t.node);while(i&&e.indexOf(i,s)==-1)i=i.parentNode;i&&i!==this&&i!==n&&_handler.call(i,r,i)}),t.context&&(r=e.bind(r,t.context));var i={attach:function(){t.node[s](u+t.event,r,t.capture)},detach:function(){t.node[o](u+t.event,r,t.capture)},fire:function(){r.apply(t.node,arguments)}};i.attach();return i},e.ready=function(e){a?e.apply(n):c.push(e)};if(n.createEventObject&&l.doScroll){try{f=!t.frameElement}catch(h){}f&&r()}n[s](u+"DOMContentLoaded",i,!1),n[s](u+"readystatechange",i,!1),t[s](u+"load",i,!1)}(snack,window,document),!function(e){e.publisher=function(t){var n={};t=t||{},e.extend(t,{subscribe:function(t,r,i){var s={fn:r,ctxt:i||{}};n[t]||(n[t]=[]);var o={attach:function(){n[t].push(s)},detach:function(){n[t].splice(e.indexOf(r,n[t]),1)}};o.attach();return o},publish:function(t,r){if(!n[t])return!1;e.each(n[t],function(e){e.fn.apply(e.ctxt,r||[])});return n[t].length}});return t},e.publisher(e)}(snack),!function(e,t,n){function r(){}e.JSONP=function(t,r){var i="jsonp"+e.id(),s=n.createElement("script"),o=!1;e.JSONP[i]=function(t){o=!1,delete e.JSONP[i],r(t)},typeof t.data=="object"&&(t.data=e.toQueryString(t.data));var u={send:function(){o=!0,s.src=t.url+"?"+t.key+"=snack.JSONP."+i+"&"+t.data,n.getElementsByTagName("head")[0].appendChild(s)},cancel:function(){o&&s.parentNode&&s.parentNode.removeChild(s),o=!1,e.JSONP[i]=function(){delete e.JSONP[i]}}};t.now!==!1&&u.send();return u},e.toQueryString=function(t,n){var r=[];e.each(t,function(t,i){n&&(i=n+"["+i+"]");var s;if(e.isArray(t)){var o={};e.each(t,function(e,t){o[t]=e}),s=e.toQueryString(o,i)}else typeof t=="object"?s=e.toQueryString(t,i):s=i+"="+encodeURIComponent(t);t!==null&&r.push(s)});return r.join("&")};var i=function(){var e=function(){return new XMLHttpRequest},t=function(){return new ActiveXObject("MSXML2.XMLHTTP")},n=function(){return new ActiveXObject("Microsoft.XMLHTTP")};try{e();return e}catch(r){try{t();return t}catch(r){n();return n}}}();e.request=function(t,n){if(!(this instanceof e.request))return new e.request(t,n);var r=this;r.options=e.extend({},r.options,t),r.callback=n,r.xhr=new i,r.headers=r.options.headers,r.options.now!==!1&&r.send()},e.request.prototype={options:{exception:r,url:"",data:"",method:"get",now:!0,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:!0,emulation:!0,urlEncoded:!0,encoding:"utf-8"},onStateChange:function(){var e=this,t=e.xhr;if(t.readyState==4&&!!e.running){e.running=!1,e.status=0;try{var n=t.status;e.status=n==1223?204:n}catch(i){}t.onreadystatechange=r;var s=e.status>=200&&e.status<300?[!1,e.xhr.responseText||"",e.xhr.responseXML]:[e.status];e.callback.apply(e,s)}},setHeader:function(e,t){this.headers[e]=t;return this},getHeader:function(e){try{return this.xhr.getResponseHeader(e)}catch(t){return null}},send:function(){var t=this,r=t.options;if(t.running)return t;t.running=!0;var i=r.data||"",s=String(r.url),o=r.method.toLowerCase();typeof i!="string"&&(i=e.toQueryString(i));if(r.emulation&&e.indexOf(o,["get","post"])<0){var u="_method="+o;i=i?u+"&"+i:u,o="post"}if(r.urlEncoded&&e.indexOf(o,["post","put"])>-1){var f=r.encoding?"; charset="+r.encoding:"";t.headers["Content-type"]="application/x-www-form-urlencoded"+f}s||(s=n.location.pathname);var l=s.lastIndexOf("/");l>-1&&(l=s.indexOf("#"))>-1&&(s=s.substr(0,l)),i&&o=="get"&&(s+=(s.indexOf("?")>-1?"&":"?")+i,i=null);var h=t.xhr;h.open(o.toUpperCase(),s,open.async,r.user,r.password),r.user&&"withCredentials"in h&&(h.withCredentials=!0),h.onreadystatechange=e.bind(t.onStateChange,t);for(var p in t.headers)try{h.setRequestHeader(p,t.headers[p])}catch(d){r.exception.apply(t,[p,t.headers[p]])}h.send(i),r.async||t.onStateChange();return t},cancel:function(){var e=this;if(!e.running)return e;e.running=!1;var t=e.xhr;t.abort(),t.onreadystatechange=r,e.xhr=new i;return e}}}(snack,window,document),!function(e,t){function n(t,n,r,i){var s=t.data(r);s&&e.each(s,function(e){e[n].apply(t,i)});return t}function r(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}e.wrap.define({data:function(){var e={};return function(t,n){var r=e[this.id];r||(r=e[this.id]={});return n===void 1?r[t]:r[t]=n}}(),each:function(t,n){return e.each(this,t,n)},addClass:function(e){return this.each(function(t){r(t.className).indexOf(e)>-1||(t.className=r(t.className+" "+e))})},removeClass:function(e){return this.each(function(t){t.className=t.className.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)"),"$1")})},attach:function(t,n,r){var i=t.split("."),s=[];i[1]&&(s=this.data(i[1])||[]),this.each(function(t){var o={node:t,event:i[0]};r&&(o.delegate=r),s.push(e.listener(o,n))}),i[1]&&this.data(i[1],s);return this},detach:function(e){n(this,"detach",e,null,!0),this.data(e,null);return this},fire:function(e,t){return n(this,"fire",e,t)},delegate:function(e,t,n){return this.attach(e,n,t)}})}(snack,document);window.app=function(e,t,n){"use strict";var r=0,i=function(e){var r=n.parseJSON(e),i=null,s=null,o=null,u=t("[data-content]"),a=null;document.title="Resumé for "+r.name;t("#contact")[0].innerHTML=r.contact;for(i in r){o=r[i];s=t("[data-content="+i+"]")[0];if(s)if(!n.isArray(o))s.innerHTML=o;else if(n.isArray(o)){var f="";n.each(o,function(e,n){var r=t("#"+i+"-template")[0].innerHTML.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(r&&typeof e=="string")f+=r.replace("${"+i+"}",e);else if(r&&typeof e=="object"){var s=r;for(var u in e)s=s.replace("${"+u+"}",e[u]);n===o.length-1&&(s=s.replace("<li>",'<li class="last">'));f+=s}});s.innerHTML=f}}for(var l=0;l<u.length;l++){a=u[l];a.innerHTML.match(/\w/)||(a.parentNode.style.display="none")}};return{loadData:function(){var e={method:"get",url:"resume.json"};n.request(e,function(e,t){if(e)return;i(t)})}}}(window,window.Sizzle,window.snack);