Files
gollum/lib/gollum/public/assets/app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js
T
2020-05-15 10:29:38 +02:00

5 lines
133 KiB
JavaScript

function brokenAvatarImage(e){return e.onerror="",e.src='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" class="octicon octicon-person" viewBox="0 0 12 16" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M12 14.002a.998.998 0 0 1-.998.998H1.001A1 1 0 0 1 0 13.999V13c0-2.633 4-4 4-4s.229-.409 0-1c-.841-.62-.944-1.59-1-4 .173-2.413 1.867-3 3-3s2.827.586 3 3c-.056 2.41-.159 3.38-1 4-.229.59 0 1 0 1s4 1.367 4 4v1.002z"/></svg>',!0}function routePath(e){return path=gollumRoutes[e],prefixBaseUrl(path)}function prefixBaseUrl(e){if(baseUrl==undefined)console.log("Gollum error: baseUrl undefined");else{if(e!=undefined)return""==baseUrl?e:("/"==baseUrl.charAt(baseUrl.length-1)?result=baseUrl+e:result=baseUrl+"/"+e,result.replace(/\/{2}/g,"/"));console.log("Could not find route with name: "+name)}}function cleanPath(e){return("/"+e.replace(/\/$/,"")).replace(/\/{2}/g,"/")}function pageName(){return"undefined"==typeof pageFullPath?undefined:(name=pageFullPath.split("/").pop(),name.substring(0,name.lastIndexOf(".")))}function pagePath(){return"undefined"==typeof pageFullPath?undefined:pageFullPath.split("/").slice(0,-1).join("/")}function htmlEscape(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function abspath(e,t){"/"!=t[0]&&(t="/"+t,e&&(t="/"+e+t));var n=t.split("/");return[n.slice(0,-1).join("/"),n.pop()]}function setTextDirection(){$(".markdown-body p, .markdown-body span, .markdown-body pre, .markdown-body table").attr("dir","auto")}function preparePage(){setTextDirection(),"true"==criticMarkup&&($("#wiki-content").addClass("criticmarkup"),$("ins.break").unwrap(),$("span.critic.comment").wrap('<span class="popover" />'),$("span.critic.comment").filter(function(){return""!=$(this).text()}).before("&#8225;"))}function flashNotice(e,t,n,i,r){nested_button_html="",void 0!==n&&void 0!==i&&(r=void 0!==r&&"danger"==r?" btn-danger":"",nested_button_html='<span class="px-2"><button type="button" class="btn btn-sm'+r+'" onclick="'+i+'">'+n+"</button></span>"),html='<p><div id="gollum-flash" class="flash flash-'+e+'"><button class="flash-close js-flash-close" type="button" onclick="parentNode.remove()"><svg class="octicon octicon-x" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48L7.48 8z"/></svg></button>'+t+nested_button_html+"</div></p>",$("#gollum-flash").remove(),$("#wiki-content").before(html),"success"==e&&setTimeout(function(){$("#gollum-flash").fadeOut()},5e3)}!function(e,t){function n(e){return M.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}function i(e){if(!yt[e]){var t=j.body,n=M("<"+e+">").appendTo(t),i=n.css("display");n.remove(),"none"!==i&&""!==i||(pt||(pt=j.createElement("iframe"),pt.frameBorder=pt.width=pt.height=0),t.appendChild(pt),ht&&pt.createElement||(ht=(pt.contentWindow||pt.contentDocument).document,ht.write((M.support.boxModel?"<!doctype html>":"")+"<html><body>"),ht.close()),n=ht.createElement(e),ht.body.appendChild(n),i=M.css(n,"display"),t.removeChild(pt)),yt[e]=i}return yt[e]}function r(e,t){var n={};return M.each(wt.concat.apply([],wt.slice(0,t)),function(){n[this]=e}),n}function o(){mt=t}function a(){return setTimeout(o,0),mt=M.now()}function s(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function l(){try{return new e.XMLHttpRequest}catch(e){}}function u(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var i,r,o,a,s,l,u,c,d=e.dataTypes,f={},p=d.length,h=d[0];for(i=1;i<p;i++){if(1===i)for(r in e.converters)"string"==typeof r&&(f[r.toLowerCase()]=e.converters[r]);if(a=h,"*"===(h=d[i]))h=a;else if("*"!==a&&a!==h){if(s=a+" "+h,!(l=f[s]||f["* "+h])){c=t;for(u in f)if(o=u.split(" "),(o[0]===a||"*"===o[0])&&(c=f[o[1]+" "+h])){u=f[u],!0===u?l=c:!0===c&&(l=u);break}}!l&&!c&&M.error("No conversion from "+s.replace(" "," to ")),!0!==l&&(n=l?l(n):c(u(n)))}}return n}function c(e,n,i){var r,o,a,s,l=e.contents,u=e.dataTypes,c=e.responseFields;for(o in c)o in i&&(n[c[o]]=i[o]);for(;"*"===u[0];)u.shift(),r===t&&(r=e.mimeType||n.getResponseHeader("content-type"));if(r)for(o in l)if(l[o]&&l[o].test(r)){u.unshift(o);break}if(u[0]in i)a=u[0];else{for(o in i){if(!u[0]||e.converters[o+" "+u[0]]){a=o;break}s||(s=o)}a=a||s}if(a)return a!==u[0]&&u.unshift(a),i[a]}function d(e,t,n,i){if(M.isArray(t))M.each(t,function(t,r){n||We.test(e)?i(e,r):d(e+"["+("object"==typeof r?t:"")+"]",r,n,i)});else if(n||"object"!==M.type(t))i(e,t);else for(var r in t)d(e+"["+r+"]",t[r],n,i)}function f(e,n){var i,r,o=M.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);r&&M.extend(!0,e,r)}function p(e,n,i,r,o,a){o=o||n.dataTypes[0],a=a||{},a[o]=!0;for(var s,l=e[o],u=0,c=l?l.length:0,d=e===ot;u<c&&(d||!s);u++)"string"==typeof(s=l[u](n,i,r))&&(!d||a[s]?s=t:(n.dataTypes.unshift(s),s=p(e,n,i,r,s,a)));return(d||!s)&&!a["*"]&&(s=p(e,n,i,r,"*",a)),s}function h(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),M.isFunction(n))for(var i,r,o,a=t.toLowerCase().split(tt),s=0,l=a.length;s<l;s++)i=a[s],o=/^\+/.test(i),o&&(i=i.substr(1)||"*"),r=e[i]=e[i]||[],r[o?"unshift":"push"](n)}}function g(e,t,n){var i="width"===t?e.offsetWidth:e.offsetHeight,r="width"===t?1:0,o=4;if(i>0){if("border"!==n)for(;r<o;r+=2)n||(i-=parseFloat(M.css(e,"padding"+qe[r]))||0),"margin"===n?i+=parseFloat(M.css(e,n+qe[r]))||0:i-=parseFloat(M.css(e,"border"+qe[r]+"Width"))||0;return i+"px"}if(i=Ae(e,t),(i<0||null==i)&&(i=e.style[t]),Oe.test(i))return i;if(i=parseFloat(i)||0,n)for(;r<o;r+=2)i+=parseFloat(M.css(e,"padding"+qe[r]))||0,"padding"!==n&&(i+=parseFloat(M.css(e,"border"+qe[r]+"Width"))||0),"margin"===n&&(i+=parseFloat(M.css(e,n+qe[r]))||0);return i+"px"}function m(e){var t=j.createElement("div");return Se.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function y(e){var t=(e.nodeName||"").toLowerCase();"input"===t?v(e):"script"!==t&&"undefined"!=typeof e.getElementsByTagName&&M.grep(e.getElementsByTagName("input"),v)}function v(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function b(e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll("*"):[]}function w(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),"object"===n?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"===n||"textarea"===n?t.defaultValue=e.defaultValue:"script"===n&&t.text!==e.text&&(t.text=e.text):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(M.expando),t.removeAttribute("_submit_attached"),t.removeAttribute("_change_attached"))}function x(e,t){if(1===t.nodeType&&M.hasData(e)){var n,i,r,o=M._data(e),a=M._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,r=s[n].length;i<r;i++)M.event.add(t,n,s[n][i])}a.data&&(a.data=M.extend({},a.data))}}function k(e){return M.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function T(e){var t=he.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function C(e,t,n){if(t=t||0,M.isFunction(t))return M.grep(e,function(e,i){return!!t.call(e,i,e)===n});if(t.nodeType)return M.grep(e,function(e){return e===t===n});if("string"==typeof t){var i=M.grep(e,function(e){return 1===e.nodeType});if(ce.test(t))return M.filter(t,i,!n);t=M.filter(t,i)}return M.grep(e,function(e){return M.inArray(e,t)>=0===n})}function E(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function N(){return!0}function _(){return!1}function S(e,t,n){var i=t+"defer",r=t+"queue",o=t+"mark",a=M._data(e,i);a&&("queue"===n||!M._data(e,r))&&("mark"===n||!M._data(e,o))&&setTimeout(function(){!M._data(e,r)&&!M._data(e,o)&&(M.removeData(e,i,!0),a.fire())},0)}function A(e){for(var t in e)if(("data"!==t||!M.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function $(e,n,i){if(i===t&&1===e.nodeType){var r="data-"+n.replace(z,"-$1").toLowerCase();if("string"==typeof(i=e.getAttribute(r))){try{i="true"===i||"false"!==i&&("null"===i?null:M.isNumeric(i)?+i:H.test(i)?M.parseJSON(i):i)}catch(e){}M.data(e,n,i)}else i=t}return i}function L(e){var t,n,i=O[e]={};for(e=e.split(/\s+/),t=0,n=e.length;t<n;t++)i[e[t]]=!0;return i}var j=e.document,D=e.navigator,F=e.location,M=function(){function n(){if(!s.isReady){try{j.documentElement.doScroll("left")}catch(e){return void setTimeout(n,1)}s.ready()}}var i,r,o,a,s=function(e,t){return new s.fn.init(e,t,i)},l=e.jQuery,u=e.$,c=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,d=/\S/,f=/^\s+/,p=/\s+$/,h=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,g=/^[\],:{}\s]*$/,m=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,v=/(?:^|:|,)(?:\s*\[)+/g,b=/(webkit)[ \/]([\w.]+)/,w=/(opera)(?:.*version)?[ \/]([\w.]+)/,x=/(msie) ([\w.]+)/,k=/(mozilla)(?:.*? rv:([\w.]+))?/,T=/-([a-z]|[0-9])/gi,C=/^-ms-/,E=function(e,t){return(t+"").toUpperCase()},N=D.userAgent,_=Object.prototype.toString,S=Object.prototype.hasOwnProperty,A=Array.prototype.push,$=Array.prototype.slice,L=String.prototype.trim,F=Array.prototype.indexOf,M={};return s.fn=s.prototype={constructor:s,init:function(e,n,i){var r,o,a,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&j.body)return this.context=j,this[0]=j.body,this.selector=e,this.length=1,this;if("string"==typeof e){if((r="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?c.exec(e):[null,e,null])&&(r[1]||!n)){if(r[1])return n=n instanceof s?n[0]:n,l=n?n.ownerDocument||n:j,a=h.exec(e),a?s.isPlainObject(n)?(e=[j.createElement(a[1])],s.fn.attr.call(e,n,!0)):e=[l.createElement(a[1])]:(a=s.buildFragment([r[1]],[l]),e=(a.cacheable?s.clone(a.fragment):a.fragment).childNodes),s.merge(this,e);if((o=j.getElementById(r[2]))&&o.parentNode){if(o.id!==r[2])return i.find(e);this.length=1,this[0]=o}return this.context=j,this.selector=e,this}return!n||n.jquery?(n||i).find(e):this.constructor(n).find(e)}return s.isFunction(e)?i.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return $.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var i=this.constructor();return s.isArray(e)?A.apply(i,e):s.merge(i,e),i.prevObject=this,i.context=this.context,"find"===t?i.selector=this.selector+(this.selector?" ":"")+n:t&&(i.selector=this.selector+"."+t+"("+n+")"),i},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),o.add(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack($.apply(this,arguments),"slice",$.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:A,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,i,r,o,a,l=arguments[0]||{},u=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},u=2),"object"!=typeof l&&!s.isFunction(l)&&(l={}),c===u&&(l=this,--u);u<c;u++)if(null!=(e=arguments[u]))for(n in e)i=l[n],r=e[n],l!==r&&(d&&r&&(s.isPlainObject(r)||(o=s.isArray(r)))?(o?(o=!1,a=i&&s.isArray(i)?i:[]):a=i&&s.isPlainObject(i)?i:{},l[n]=s.extend(d,a,r)):r!==t&&(l[n]=r));return l},s.extend({noConflict:function(t){return e.$===s&&(e.$=u),t&&e.jQuery===s&&(e.jQuery=l),s},isReady:!1,readyWait:1,holdReady:function(e){e?s.readyWait++:s.ready(!0)},ready:function(e){if(!0===e&&!--s.readyWait||!0!==e&&!s.isReady){if(!j.body)return setTimeout(s.ready,1);if(s.isReady=!0,!0!==e&&--s.readyWait>0)return;o.fireWith(j,[s]),s.fn.trigger&&s(j).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=s.Callbacks("once memory"),"complete"===j.readyState)return setTimeout(s.ready,1);if(j.addEventListener)j.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",s.ready,!1);else if(j.attachEvent){j.attachEvent("onreadystatechange",a),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(e){}j.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):M[_.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!S.call(e,"constructor")&&!S.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}var n;for(n in e);return n===t||S.call(e,n)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw new Error(e)},parseJSON:function(t){return"string"==typeof t&&t?(t=s.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):g.test(t.replace(m,"@").replace(y,"]").replace(v,""))?new Function("return "+t)():void s.error("Invalid JSON: "+t)):null},parseXML:function(n){if("string"!=typeof n||!n)return null;var i,r;try{e.DOMParser?(r=new DOMParser,i=r.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(e){i=t}return(!i||!i.documentElement||i.getElementsByTagName("parsererror").length)&&s.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(t){t&&d.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(T,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,i){var r,o=0,a=e.length,l=a===t||s.isFunction(e);if(i)if(l){for(r in e)if(!1===n.apply(e[r],i))break}else for(;o<a&&!1!==n.apply(e[o++],i););else if(l){for(r in e)if(!1===n.call(e[r],r,e[r]))break}else for(;o<a&&!1!==n.call(e[o],o,e[o++]););return e},trim:L?function(e){return null==e?"":L.call(e)}:function(e){return null==e?"":(e+"").replace(f,"").replace(p,"")},makeArray:function(e,t){var n=t||[];if(null!=e){var i=s.type(e);null==e.length||"string"===i||"function"===i||"regexp"===i||s.isWindow(e)?A.call(n,e):s.merge(n,e)}return n},inArray:function(e,t,n){var i;if(t){if(F)return F.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var i=e.length,r=0;if("number"==typeof n.length)for(var o=n.length;r<o;r++)e[i++]=n[r];else for(;n[r]!==t;)e[i++]=n[r++];return e.length=i,e},grep:function(e,t,n){var i,r=[];n=!!n;for(var o=0,a=e.length;o<a;o++)i=!!t(e[o],o),n!==i&&r.push(e[o]);return r},map:function(e,n,i){var r,o,a=[],l=0,u=e.length;if(e instanceof s||u!==t&&"number"==typeof u&&(u>0&&e[0]&&e[u-1]||0===u||s.isArray(e)))for(;l<u;l++)null!=(r=n(e[l],l,i))&&(a[a.length]=r);else for(o in e)null!=(r=n(e[o],o,i))&&(a[a.length]=r);return a.concat.apply([],a)},guid:1,proxy:function(e,n){if("string"==typeof n){var i=e[n];n=e,e=i}if(!s.isFunction(e))return t;var r=$.call(arguments,2),o=function(){return e.apply(n,r.concat($.call(arguments)))};return o.guid=e.guid=e.guid||o.guid||s.guid++,o},access:function(e,n,i,r,o,a,l){var u,c=null==i,d=0,f=e.length;if(i&&"object"==typeof i){for(d in i)s.access(e,n,d,i[d],1,a,r);o=1}else if(r!==t){if(u=l===t&&s.isFunction(r),c&&(u?(u=n,n=function(e,t,n){return u.call(s(e),n)}):(n.call(e,r),n=null)),n)for(;d<f;d++)n(e[d],i,u?r.call(e[d],d,n(e[d],i)):r,l);o=1}return o?e:c?n.call(e):f?n(e[0],i):a},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=b.exec(e)||w.exec(e)||x.exec(e)||e.indexOf("compatible")<0&&k.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}s.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,i){return i&&i instanceof s&&!(i instanceof e)&&(i=e(i)),s.fn.init.call(this,n,i,t)},e.fn.init.prototype=e.fn;var t=e(j);return e},browser:{}}),s.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){M["[object "+t+"]"]=t.toLowerCase()}),r=s.uaMatch(N),r.browser&&(s.browser[r.browser]=!0,s.browser.version=r.version),s.browser.webkit&&(s.browser.safari=!0),d.test("\xa0")&&(f=/^[\s\xA0]+/,p=/[\s\xA0]+$/),i=s(j),j.addEventListener?a=function(){j.removeEventListener("DOMContentLoaded",a,!1),s.ready()}:j.attachEvent&&(a=function(){"complete"===j.readyState&&(j.detachEvent("onreadystatechange",a),s.ready())}),s}(),O={};M.Callbacks=function(e){e=e?O[e]||L(e):{};var n,i,r,o,a,s,l=[],u=[],c=function(t){var n,i,r,o;for(n=0,i=t.length;n<i;n++)r=t[n],o=M.type(r),"array"===o?c(r):"function"===o&&(!e.unique||!f.has(r))&&l.push(r)},d=function(t,c){for(c=c||[],n=!e.memory||[t,c],i=!0,r=!0,s=o||0,o=0,a=l.length;l&&s<a;s++)if(!1===l[s].apply(t,c)&&e.stopOnFalse){n=!0;break}r=!1,l&&(e.once?!0===n?f.disable():l=[]:u&&u.length&&(n=u.shift(),f.fireWith(n[0],n[1])))},f={add:function(){if(l){var e=l.length;c(arguments),r?a=l.length:n&&!0!==n&&(o=e,d(n[0],n[1]))}return this},remove:function(){if(l)for(var t=arguments,n=0,i=t.length;n<i;n++)for(var o=0;o<l.length&&(t[n]!==l[o]||(r&&o<=a&&(a--,o<=s&&s--),l.splice(o--,1),!e.unique));o++);return this},has:function(e){if(l)for(var t=0,n=l.length;t<n;t++)if(e===l[t])return!0;return!1},empty:function(){return l=[],this},disable:function(){return l=u=n=t,this},disabled:function(){return!l},lock:function(){return u=t,(!n||!0===n)&&f.disable(),this},locked:function(){return!u},fireWith:function(t,i){return u&&(r?e.once||u.push([t,i]):(!e.once||!n)&&d(t,i)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f};var P=[].slice;M.extend({Deferred:function(e){var t,n=M.Callbacks("once memory"),i=M.Callbacks("once memory"),r=M.Callbacks("memory"),o="pending",a={resolve:n,reject:i,notify:r},s={done:n.add,fail:i.add,progress:r.add,state:function(){return o},isResolved:n.fired,isRejected:i.fired,then:function(e,t,n){return l.done(e).fail(t).progress(n),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(e,t,n){return M.Deferred(function(i){M.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){var n,r=t[0],o=t[1];M.isFunction(r)?l[e](function(){n=r.apply(this,arguments),n&&M.isFunction(n.promise)?n.promise().then(i.resolve,i.reject,i.notify):i[o+"With"](this===l?i:this,[n])}):l[e](i[o])})}).promise()},promise:function(e){if(null==e)e=s;else for(var t in s)e[t]=s[t];return e}},l=s.promise({});for(t in a)l[t]=a[t].fire,l[t+"With"]=a[t].fireWith;return l.done(function(){o="resolved"},i.disable,r.lock).fail(function(){o="rejected"},n.disable,r.lock),e&&e.call(l,l),l},when:function(e){function t(e){return function(t){a[e]=arguments.length>1?P.call(arguments,0):t,l.notifyWith(u,a)}}function n(e){return function(t){i[e]=arguments.length>1?P.call(arguments,0):t,--s||l.resolveWith(l,i)}}var i=P.call(arguments,0),r=0,o=i.length,a=Array(o),s=o,l=o<=1&&e&&M.isFunction(e.promise)?e:M.Deferred(),u=l.promise();if(o>1){for(;r<o;r++)i[r]&&i[r].promise&&M.isFunction(i[r].promise)?i[r].promise().then(n(r),l.reject,t(r)):--s;s||l.resolveWith(l,i)}else l!==e&&l.resolveWith(l,o?[e]:[]);return u}}),M.support=function(){var t,n,i,r,o,a,s,l,u,c,d,f=j.createElement("div");j.documentElement;if(f.setAttribute("className","t"),f.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",n=f.getElementsByTagName("*"),i=f.getElementsByTagName("a")[0],!n||!n.length||!i)return{};r=j.createElement("select"),o=r.appendChild(j.createElement("option")),a=f.getElementsByTagName("input")[0],t={leadingWhitespace:3===f.firstChild.nodeType,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:"/a"===i.getAttribute("href"),opacity:/^0.55/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected,getSetAttribute:"t"!==f.className,enctype:!!j.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==j.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},M.boxModel=t.boxModel="CSS1Compat"===j.compatMode,a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,r.disabled=!0,t.optDisabled=!o.disabled;try{delete f.test}catch(e){t.deleteExpando=!1}if(!f.addEventListener&&f.attachEvent&&f.fireEvent&&(f.attachEvent("onclick",function(){t.noCloneEvent=!1}),f.cloneNode(!0).fireEvent("onclick")),a=j.createElement("input"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),f.appendChild(a),s=j.createDocumentFragment(),s.appendChild(f.lastChild),t.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=a.checked,s.removeChild(a),s.appendChild(f),f.attachEvent)for(c in{submit:1,change:1,focusin:1})u="on"+c,d=u in f,d||(f.setAttribute(u,"return;"),d="function"==typeof f[u]),t[c+"Bubbles"]=d;return s.removeChild(f),s=r=o=f=a=null,M(function(){var n,i,r,o,a,s,u,c,p,h,g,m,y=j.getElementsByTagName("body")[0];!y||(u=1,m="padding:0;margin:0;border:",h="position:absolute;top:0;left:0;width:1px;height:1px;",g=m+"0;visibility:hidden;",c="style='"+h+m+"5px solid #000;",p="<div "+c+"display:block;'><div style='"+m+"0;display:block;overflow:hidden;'></div></div><table "+c+"' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",n=j.createElement("div"),n.style.cssText=g+"width:0;height:0;position:static;top:0;margin-top:"+u+"px",y.insertBefore(n,y.firstChild),f=j.createElement("div"),n.appendChild(f),f.innerHTML="<table><tr><td style='"+m+"0;display:none'></td><td>t</td></tr></table>",l=f.getElementsByTagName("td"),d=0===l[0].offsetHeight,l[0].style.display="",l[1].style.display="none",t.reliableHiddenOffsets=d&&0===l[0].offsetHeight,e.getComputedStyle&&(f.innerHTML="",s=j.createElement("div"),s.style.width="0",s.style.marginRight="0",f.style.width="2px",f.appendChild(s),t.reliableMarginRight=0===(parseInt((e.getComputedStyle(s,null)||{marginRight:0}).marginRight,10)||0)),"undefined"!=typeof f.style.zoom&&(f.innerHTML="",f.style.width=f.style.padding="1px",f.style.border=0,f.style.overflow="hidden",f.style.display="inline",f.style.zoom=1,t.inlineBlockNeedsLayout=3===f.offsetWidth,f.style.display="block",f.style.overflow="visible",f.innerHTML="<div style='width:5px;'></div>",t.shrinkWrapBlocks=3!==f.offsetWidth),f.style.cssText=h+g,f.innerHTML=p,i=f.firstChild,r=i.firstChild,o=i.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==r.offsetTop,doesAddBorderForTableAndCells:5===o.offsetTop},r.style.position="fixed",r.style.top="20px",a.fixedPosition=20===r.offsetTop||15===r.offsetTop,r.style.position=r.style.top="",i.style.overflow="hidden",i.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===r.offsetTop,a.doesNotIncludeMarginInBodyOffset=y.offsetTop!==u,e.getComputedStyle&&(f.style.marginTop="1%",t.pixelMargin="1%"!==(e.getComputedStyle(f,null)||{marginTop:0}).marginTop),"undefined"!=typeof n.style.zoom&&(n.style.zoom=1),y.removeChild(n),s=f=n=null,M.extend(t,a))}),t}();var H=/^(?:\{.*\}|\[.*\])$/,z=/([A-Z])/g;M.extend({cache:{},uuid:0,expando:"jQuery"+(M.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?M.cache[e[M.expando]]:e[M.expando])&&!A(e)},data:function(e,n,i,r){if(M.acceptData(e)){var o,a,s,l=M.expando,u="string"==typeof n,c=e.nodeType,d=c?M.cache:e,f=c?e[l]:e[l]&&l,p="events"===n;if((!f||!d[f]||!p&&!r&&!d[f].data)&&u&&i===t)return;return f||(c?e[l]=f=++M.uuid:f=l),d[f]||(d[f]={},c||(d[f].toJSON=M.noop)),("object"!=typeof n&&"function"!=typeof n||(r?d[f]=M.extend(d[f],n):d[f].data=M.extend(d[f].data,n)),o=a=d[f],r||(a.data||(a.data={}),a=a.data),i!==t&&(a[M.camelCase(n)]=i),p&&!a[n])?o.events:(u?null==(s=a[n])&&(s=a[M.camelCase(n)]):s=a,s)}},removeData:function(e,t,n){if(M.acceptData(e)){var i,r,o,a=M.expando,s=e.nodeType,l=s?M.cache:e,u=s?e[a]:a;if(!l[u])return;if(t&&(i=n?l[u]:l[u].data)){M.isArray(t)||(t in i?t=[t]:(t=M.camelCase(t),t=t in i?[t]:t.split(" ")));for(r=0,o=t.length;r<o;r++)delete i[t[r]];if(!(n?A:M.isEmptyObject)(i))return}if(!n&&(delete l[u].data,!A(l[u])))return;M.support.deleteExpando||!l.setInterval?delete l[u]:l[u]=null,s&&(M.support.deleteExpando?delete e[a]:e.removeAttribute?e.removeAttribute(a):e[a]=null)}},_data:function(e,t,n){return M.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=M.noData[e.nodeName.toLowerCase()];if(t)return!0!==t&&e.getAttribute("classid")===t}return!0}}),M.fn.extend({data:function(e,n){var i,r,o,a,s,l=this[0],u=0,c=null;if(e===t){if(this.length&&(c=M.data(l),1===l.nodeType&&!M._data(l,"parsedAttrs"))){for(o=l.attributes,s=o.length;u<s;u++)a=o[u].name,0===a.indexOf("data-")&&(a=M.camelCase(a.substring(5)),$(l,a,c[a]));M._data(l,"parsedAttrs",!0)}return c}return"object"==typeof e?this.each(function(){M.data(this,e)}):(i=e.split(".",2),i[1]=i[1]?"."+i[1]:"",r=i[1]+"!",M.access(this,function(n){if(n===t)return(c=this.triggerHandler("getData"+r,[i[0]]))===t&&l&&(c=M.data(l,e),c=$(l,e,c)),c===t&&i[1]?this.data(i[0]):c;i[1]=n,this.each(function(){var t=M(this);t.triggerHandler("setData"+r,i),M.data(this,e,n),t.triggerHandler("changeData"+r,i)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){M.removeData(this,e)})}}),M.extend({_mark:function(e,t){e&&(t=(t||"fx")+"mark",M._data(e,t,(M._data(e,t)||0)+1))},_unmark:function(e,t,n){if(!0!==e&&(n=t,t=e,e=!1),t){n=n||"fx";var i=n+"mark",r=e?0:(M._data(t,i)||1)-1;r?M._data(t,i,r):(M.removeData(t,i,!0),S(t,n,"mark"))}},queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=M._data(e,t),n&&(!i||M.isArray(n)?i=M._data(e,t,M.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=M.queue(e,t),i=n.shift(),r={};"inprogress"===i&&(i=n.shift()),i&&("fx"===t&&n.unshift("inprogress"),M._data(e,t+".run",r),i.call(e,function(){M.dequeue(e,t)},r)),n.length||(M.removeData(e,t+"queue "+t+".run",!0),S(e,t,"queue"))}}),M.fn.extend({queue:function(e,n){var i=2;return"string"!=typeof e&&(n=e,e="fx",i--),arguments.length<i?M.queue(this[0],e):n===t?this:this.each(function(){var t=M.queue(this,e,n);"fx"===e&&"inprogress"!==t[0]&&M.dequeue(this,e)})},dequeue:function(e){return this.each(function(){M.dequeue(this,e)})},delay:function(e,t){return e=M.fx?M.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){function i(){--l||o.resolveWith(a,[a])}"string"!=typeof e&&(n=e,e=t),e=e||"fx";for(var r,o=M.Deferred(),a=this,s=a.length,l=1,u=e+"defer",c=e+"queue",d=e+"mark";s--;)(r=M.data(a[s],u,t,!0)||(M.data(a[s],c,t,!0)||M.data(a[s],d,t,!0))&&M.data(a[s],u,M.Callbacks("once memory"),!0))&&(l++,r.add(i));return i(),o.promise(n)}});var q,B,R,I=/[\n\t\r]/g,W=/\s+/,X=/\r/g,U=/^(?:button|input)$/i,V=/^(?:button|input|object|select|textarea)$/i,K=/^a(?:rea)?$/i,G=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,J=M.support.getSetAttribute;M.fn.extend({attr:function(e,t){return M.access(this,M.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){M.removeAttr(this,e)})},prop:function(e,t){return M.access(this,M.prop,e,t,arguments.length>1)},removeProp:function(e){return e=M.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(e){}})},addClass:function(e){var t,n,i,r,o,a,s;if(M.isFunction(e))return this.each(function(t){M(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(W),n=0,i=this.length;n<i;n++)if(r=this[n],1===r.nodeType)if(r.className||1!==t.length){for(o=" "+r.className+" ",a=0,s=t.length;a<s;a++)~o.indexOf(" "+t[a]+" ")||(o+=t[a]+" ");r.className=M.trim(o)}else r.className=e;return this},removeClass:function(e){var n,i,r,o,a,s,l;if(M.isFunction(e))return this.each(function(t){M(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||e===t)for(n=(e||"").split(W),i=0,r=this.length;i<r;i++)if(o=this[i],1===o.nodeType&&o.className)if(e){for(a=(" "+o.className+" ").replace(I," "),s=0,l=n.length;s<l;s++)a=a.replace(" "+n[s]+" "," ");o.className=M.trim(a)}else o.className="";return this},toggleClass:function(e,t){var n=typeof e,i="boolean"==typeof t;return M.isFunction(e)?this.each(function(n){M(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var r,o=0,a=M(this),s=t,l=e.split(W);r=l[o++];)s=i?s:!a.hasClass(r),a[s?"addClass":"removeClass"](r);else"undefined"!==n&&"boolean"!==n||(this.className&&M._data(this,"__className__",this.className),this.className=this.className||!1===e?"":M._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(I," ").indexOf(t)>-1)return!0;return!1},val:function(e){var n,i,r,o=this[0];return arguments.length?(r=M.isFunction(e),this.each(function(i){var o,a=M(this);1===this.nodeType&&(o=r?e.call(this,i,a.val()):e,null==o?o="":"number"==typeof o?o+="":M.isArray(o)&&(o=M.map(o,function(e){return null==e?"":e+""})),n=M.valHooks[this.type]||M.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))})):o?(n=M.valHooks[o.type]||M.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&(i=n.get(o,"value"))!==t?i:(i=o.value,"string"==typeof i?i.replace(X,""):null==i?"":i):void 0}}),M.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,i,r,o=e.selectedIndex,a=[],s=e.options,l="select-one"===e.type;if(o<0)return null;for(n=l?o:0,i=l?o+1:s.length;n<i;n++)if(r=s[n],r.selected&&(M.support.optDisabled?!r.disabled:null===r.getAttribute("disabled"))&&(!r.parentNode.disabled||!M.nodeName(r.parentNode,"optgroup"))){if(t=M(r).val(),l)return t;a.push(t)}return l&&!a.length&&s.length?M(s[o]).val():a},set:function(e,t){var n=M.makeArray(t);return M(e).find("option").each(function(){this.selected=M.inArray(M(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,i,r){var o,a,s,l=e.nodeType;if(e&&3!==l&&8!==l&&2!==l)return r&&n in M.attrFn?M(e)[n](i):"undefined"==typeof e.getAttribute?M.prop(e,n,i):((s=1!==l||!M.isXMLDoc(e))&&(n=n.toLowerCase(),a=M.attrHooks[n]||(G.test(n)?B:q)),i!==t?null===i?void M.removeAttr(e,n):a&&"set"in a&&s&&(o=a.set(e,i,n))!==t?o:(e.setAttribute(n,""+i),i):a&&"get"in a&&s&&null!==(o=a.get(e,n))?o:(o=e.getAttribute(n),null===o?t:o))},removeAttr:function(e,t){var n,i,r,o,a,s=0;if(t&&1===e.nodeType)for(i=t.toLowerCase().split(W),o=i.length;s<o;s++)(r=i[s])&&(n=M.propFix[r]||r,a=G.test(r),a||M.attr(e,r,""),e.removeAttribute(J?r:n),a&&n in e&&(e[n]=!1))},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)M.error("type property can't be changed");else if(!M.support.radioValue&&"radio"===t&&M.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return q&&M.nodeName(e,"button")?q.get(e,t):t in e?e.value:null},set:function(e,t,n){if(q&&M.nodeName(e,"button"))return q.set(e,t,n);e.value=t}}},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(e,n,i){var r,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return(1!==a||!M.isXMLDoc(e))&&(n=M.propFix[n]||n,o=M.propHooks[n]),i!==t?o&&"set"in o&&(r=o.set(e,i,n))!==t?r:e[n]=i:o&&"get"in o&&null!==(r=o.get(e,n))?r:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(e.nodeName)||K.test(e.nodeName)&&e.href?0:t}}}}),
M.attrHooks.tabindex=M.propHooks.tabIndex,B={get:function(e,n){var i,r=M.prop(e,n);return!0===r||"boolean"!=typeof r&&(i=e.getAttributeNode(n))&&!1!==i.nodeValue?n.toLowerCase():t},set:function(e,t,n){var i;return!1===t?M.removeAttr(e,n):(i=M.propFix[n]||n,i in e&&(e[i]=!0),e.setAttribute(n,n.toLowerCase())),n}},J||(R={name:!0,id:!0,coords:!0},q=M.valHooks.button={get:function(e,n){var i;return i=e.getAttributeNode(n),i&&(R[n]?""!==i.nodeValue:i.specified)?i.nodeValue:t},set:function(e,t,n){var i=e.getAttributeNode(n);return i||(i=j.createAttribute(n),e.setAttributeNode(i)),i.nodeValue=t+""}},M.attrHooks.tabindex.set=q.set,M.each(["width","height"],function(e,t){M.attrHooks[t]=M.extend(M.attrHooks[t],{set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}})}),M.attrHooks.contenteditable={get:q.get,set:function(e,t,n){""===t&&(t="false"),q.set(e,t,n)}}),M.support.hrefNormalized||M.each(["href","src","width","height"],function(e,n){M.attrHooks[n]=M.extend(M.attrHooks[n],{get:function(e){var i=e.getAttribute(n,2);return null===i?t:i}})}),M.support.style||(M.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=""+t}}),M.support.optSelected||(M.propHooks.selected=M.extend(M.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),M.support.enctype||(M.propFix.enctype="encoding"),M.support.checkOn||M.each(["radio","checkbox"],function(){M.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),M.each(["radio","checkbox"],function(){M.valHooks[this]=M.extend(M.valHooks[this],{set:function(e,t){if(M.isArray(t))return e.checked=M.inArray(M(e).val(),t)>=0}})});var Y=/^(?:textarea|input|select)$/i,Q=/^([^\.]*)?(?:\.(.+))?$/,Z=/(?:^|\s)hover(\.\S+)?\b/,ee=/^key/,te=/^(?:mouse|contextmenu)|click/,ne=/^(?:focusinfocus|focusoutblur)$/,ie=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,re=function(e){var t=ie.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},oe=function(e,t){var n=e.attributes||{};return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||(n.id||{}).value===t[2])&&(!t[3]||t[3].test((n["class"]||{}).value))},ae=function(e){return M.event.special.hover?e:e.replace(Z,"mouseenter$1 mouseleave$1")};M.event={add:function(e,n,i,r,o){var a,s,l,u,c,d,f,p,h,g,m;if(3!==e.nodeType&&8!==e.nodeType&&n&&i&&(a=M._data(e))){for(i.handler&&(h=i,i=h.handler,o=h.selector),i.guid||(i.guid=M.guid++),l=a.events,l||(a.events=l={}),s=a.handle,s||(a.handle=s=function(e){return void 0===M||e&&M.event.triggered===e.type?t:M.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=M.trim(ae(n)).split(" "),u=0;u<n.length;u++)c=Q.exec(n[u])||[],d=c[1],f=(c[2]||"").split(".").sort(),m=M.event.special[d]||{},d=(o?m.delegateType:m.bindType)||d,m=M.event.special[d]||{},p=M.extend({type:d,origType:c[1],data:r,handler:i,guid:i.guid,selector:o,quick:o&&re(o),namespace:f.join(".")},h),g=l[d],g||(g=l[d]=[],g.delegateCount=0,m.setup&&!1!==m.setup.call(e,r,f,s)||(e.addEventListener?e.addEventListener(d,s,!1):e.attachEvent&&e.attachEvent("on"+d,s))),m.add&&(m.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),o?g.splice(g.delegateCount++,0,p):g.push(p),M.event.global[d]=!0;e=null}},global:{},remove:function(e,t,n,i,r){var o,a,s,l,u,c,d,f,p,h,g,m,y=M.hasData(e)&&M._data(e);if(y&&(f=y.events)){for(t=M.trim(ae(t||"")).split(" "),o=0;o<t.length;o++)if(a=Q.exec(t[o])||[],s=l=a[1],u=a[2],s){for(p=M.event.special[s]||{},s=(i?p.delegateType:p.bindType)||s,g=f[s]||[],c=g.length,u=u?new RegExp("(^|\\.)"+u.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=0;d<g.length;d++)m=g[d],(r||l===m.origType)&&(!n||n.guid===m.guid)&&(!u||u.test(m.namespace))&&(!i||i===m.selector||"**"===i&&m.selector)&&(g.splice(d--,1),m.selector&&g.delegateCount--,p.remove&&p.remove.call(e,m));0===g.length&&c!==g.length&&((!p.teardown||!1===p.teardown.call(e,u))&&M.removeEvent(e,s,y.handle),delete f[s])}else for(s in f)M.event.remove(e,s+t[o],n,i,!0);M.isEmptyObject(f)&&(h=y.handle,h&&(h.elem=null),M.removeData(e,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,i,r,o){if(!r||3!==r.nodeType&&8!==r.nodeType){var a,s,l,u,c,d,f,p,h,g,m=n.type||n,y=[];if(ne.test(m+M.event.triggered))return;if(m.indexOf("!")>=0&&(m=m.slice(0,-1),s=!0),m.indexOf(".")>=0&&(y=m.split("."),m=y.shift(),y.sort()),(!r||M.event.customEvent[m])&&!M.event.global[m])return;if(n="object"==typeof n?n[M.expando]?n:new M.Event(m,n):new M.Event(m),n.type=m,n.isTrigger=!0,n.exclusive=s,n.namespace=y.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=m.indexOf(":")<0?"on"+m:"",!r){a=M.cache;for(l in a)a[l].events&&a[l].events[m]&&M.event.trigger(n,i,a[l].handle.elem,!0);return}if(n.result=t,n.target||(n.target=r),i=null!=i?M.makeArray(i):[],i.unshift(n),f=M.event.special[m]||{},f.trigger&&!1===f.trigger.apply(r,i))return;if(h=[[r,f.bindType||m]],!o&&!f.noBubble&&!M.isWindow(r)){for(g=f.delegateType||m,u=ne.test(g+m)?r:r.parentNode,c=null;u;u=u.parentNode)h.push([u,g]),c=u;c&&c===r.ownerDocument&&h.push([c.defaultView||c.parentWindow||e,g])}for(l=0;l<h.length&&!n.isPropagationStopped();l++)u=h[l][0],n.type=h[l][1],p=(M._data(u,"events")||{})[n.type]&&M._data(u,"handle"),p&&p.apply(u,i),(p=d&&u[d])&&M.acceptData(u)&&!1===p.apply(u,i)&&n.preventDefault();return n.type=m,!o&&!n.isDefaultPrevented()&&(!f._default||!1===f._default.apply(r.ownerDocument,i))&&("click"!==m||!M.nodeName(r,"a"))&&M.acceptData(r)&&d&&r[m]&&("focus"!==m&&"blur"!==m||0!==n.target.offsetWidth)&&!M.isWindow(r)&&(c=r[d],c&&(r[d]=null),M.event.triggered=m,r[m](),M.event.triggered=t,c&&(r[d]=c)),n.result}},dispatch:function(n){n=M.event.fix(n||e.event);var i,r,o,a,s,l,u,c,d,f,p=(M._data(this,"events")||{})[n.type]||[],h=p.delegateCount,g=[].slice.call(arguments,0),m=!n.exclusive&&!n.namespace,y=M.event.special[n.type]||{},v=[];if(g[0]=n,n.delegateTarget=this,!y.preDispatch||!1!==y.preDispatch.call(this,n)){if(h&&(!n.button||"click"!==n.type))for(a=M(this),a.context=this.ownerDocument||this,o=n.target;o!=this;o=o.parentNode||this)if(!0!==o.disabled){for(l={},c=[],a[0]=o,i=0;i<h;i++)d=p[i],f=d.selector,l[f]===t&&(l[f]=d.quick?oe(o,d.quick):a.is(f)),l[f]&&c.push(d);c.length&&v.push({elem:o,matches:c})}for(p.length>h&&v.push({elem:this,matches:p.slice(h)}),i=0;i<v.length&&!n.isPropagationStopped();i++)for(u=v[i],n.currentTarget=u.elem,r=0;r<u.matches.length&&!n.isImmediatePropagationStopped();r++)d=u.matches[r],(m||!n.namespace&&!d.namespace||n.namespace_re&&n.namespace_re.test(d.namespace))&&(n.data=d.data,n.handleObj=d,(s=((M.event.special[d.origType]||{}).handle||d.handler).apply(u.elem,g))!==t&&(n.result=s,!1===s&&(n.preventDefault(),n.stopPropagation())));return y.postDispatch&&y.postDispatch.call(this,n),n.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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var i,r,o,a=n.button,s=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||j,r=i.documentElement,o=i.body,e.pageX=n.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?n.toElement:s),!e.which&&a!==t&&(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[M.expando])return e;var n,i,r=e,o=M.event.fixHooks[e.type]||{},a=o.props?this.props.concat(o.props):this.props;for(e=M.Event(r),n=a.length;n;)i=a[--n],e[i]=r[i];return e.target||(e.target=r.srcElement||j),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey===t&&(e.metaKey=e.ctrlKey),o.filter?o.filter(e,r):e},special:{ready:{setup:M.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){M.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,i){var r=M.extend(new M.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?M.event.trigger(r,null,t):M.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},M.event.handle=M.event.dispatch,M.removeEvent=j.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent("on"+t,n)},M.Event=function(e,t){if(!(this instanceof M.Event))return new M.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?N:_):this.type=e,t&&M.extend(this,t),this.timeStamp=e&&e.timeStamp||M.now(),this[M.expando]=!0},M.Event.prototype={preventDefault:function(){this.isDefaultPrevented=N;var e=this.originalEvent;!e||(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=N;var e=this.originalEvent;!e||(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=N,this.stopPropagation()},isDefaultPrevented:_,isPropagationStopped:_,isImmediatePropagationStopped:_},M.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){M.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;o.selector;return r&&(r===i||M.contains(i,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),M.support.submitBubbles||(M.event.special.submit={setup:function(){if(M.nodeName(this,"form"))return!1;M.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,i=M.nodeName(n,"input")||M.nodeName(n,"button")?n.form:t;i&&!i._submit_attached&&(M.event.add(i,"submit._submit",function(e){e._submit_bubble=!0}),i._submit_attached=!0)})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&M.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(M.nodeName(this,"form"))return!1;M.event.remove(this,"._submit")}}),M.support.changeBubbles||(M.event.special.change={setup:function(){if(Y.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(M.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),M.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1,M.event.simulate("change",this,e,!0))})),!1;M.event.add(this,"beforeactivate._change",function(e){var t=e.target;Y.test(t.nodeName)&&!t._change_attached&&(M.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&M.event.simulate("change",this.parentNode,e,!0)}),t._change_attached=!0)})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return M.event.remove(this,"._change"),Y.test(this.nodeName)}}),M.support.focusinBubbles||M.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,i=function(e){M.event.simulate(t,e.target,M.event.fix(e),!0)};M.event.special[t]={setup:function(){0==n++&&j.addEventListener(e,i,!0)},teardown:function(){0==--n&&j.removeEventListener(e,i,!0)}}}),M.fn.extend({on:function(e,n,i,r,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=t);for(s in e)this.on(s,n,i,e[s],o);return this}if(null==i&&null==r?(r=n,i=n=t):null==r&&("string"==typeof n?(r=i,i=t):(r=i,i=n,n=t)),!1===r)r=_;else if(!r)return this;return 1===o&&(a=r,r=function(e){return M().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=M.guid++)),this.each(function(){M.event.add(this,e,r,i,n)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,n,i){if(e&&e.preventDefault&&e.handleObj){var r=e.handleObj;return M(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this}if("object"==typeof e){for(var o in e)this.off(o,n,e[o]);return this}return!1!==n&&"function"!=typeof n||(i=n,n=t),!1===i&&(i=_),this.each(function(){M.event.remove(this,e,i,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return M(this.context).on(e,this.selector,t,n),this},die:function(e,t){return M(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1==arguments.length?this.off(e,"**"):this.off(t,e,n)},trigger:function(e,t){return this.each(function(){M.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return M.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||M.guid++,i=0,r=function(n){var r=(M._data(this,"lastToggle"+e.guid)||0)%i;return M._data(this,"lastToggle"+e.guid,r+1),n.preventDefault(),t[r].apply(this,arguments)||!1};for(r.guid=n;i<t.length;)t[i++].guid=n;return this.click(r)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),M.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(e,t){M.fn[t]=function(e,n){return null==n&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},M.attrFn&&(M.attrFn[t]=!0),ee.test(t)&&(M.event.fixHooks[t]=M.event.keyHooks),te.test(t)&&(M.event.fixHooks[t]=M.event.mouseHooks)}),function(){function e(e,t,n,i,o,a){for(var s=0,l=i.length;s<l;s++){var u=i[s];if(u){var c=!1;for(u=u[e];u;){if(u[r]===n){c=i[u.sizset];break}if(1===u.nodeType)if(a||(u[r]=n,u.sizset=s),"string"!=typeof t){if(u===t){c=!0;break}}else if(f.filter(t,[u]).length>0){c=u;break}u=u[e]}i[s]=c}}}function n(e,t,n,i,o,a){for(var s=0,l=i.length;s<l;s++){var u=i[s];if(u){var c=!1;for(u=u[e];u;){if(u[r]===n){c=i[u.sizset];break}if(1===u.nodeType&&!a&&(u[r]=n,u.sizset=s),u.nodeName.toLowerCase()===t){c=u;break}u=u[e]}i[s]=c}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,r="sizcache"+(Math.random()+"").replace(".",""),o=0,a=Object.prototype.toString,s=!1,l=!0,u=/\\/g,c=/\r\n/g,d=/\W/;[0,0].sort(function(){return l=!1,0});var f=function(e,t,n,r){n=n||[],t=t||j;var o=t;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,l,u,c,d,p,m,y,b=!0,w=f.isXML(t),k=[],T=e;do{if(i.exec(""),(s=i.exec(T))&&(T=s[3],k.push(s[1]),s[2])){c=s[3];break}}while(s);if(k.length>1&&g.exec(e))if(2===k.length&&h.relative[k[0]])l=x(k[0]+k[1],t,r);else for(l=h.relative[k[0]]?[t]:f(k.shift(),t);k.length;)e=k.shift(),h.relative[e]&&(e+=k.shift()),l=x(e,l,r);else if(!r&&k.length>1&&9===t.nodeType&&!w&&h.match.ID.test(k[0])&&!h.match.ID.test(k[k.length-1])&&(d=f.find(k.shift(),t,w),t=d.expr?f.filter(d.expr,d.set)[0]:d.set[0]),t)for(d=r?{expr:k.pop(),set:v(r)}:f.find(k.pop(),1!==k.length||"~"!==k[0]&&"+"!==k[0]||!t.parentNode?t:t.parentNode,w),l=d.expr?f.filter(d.expr,d.set):d.set,k.length>0?u=v(l):b=!1;k.length;)p=k.pop(),m=p,h.relative[p]?m=k.pop():p="",null==m&&(m=t),h.relative[p](u,m,w);else u=k=[];if(u||(u=l),u||f.error(p||e),"[object Array]"===a.call(u))if(b)if(t&&1===t.nodeType)for(y=0;null!=u[y];y++)u[y]&&(!0===u[y]||1===u[y].nodeType&&f.contains(t,u[y]))&&n.push(l[y]);else for(y=0;null!=u[y];y++)u[y]&&1===u[y].nodeType&&n.push(l[y]);else n.push.apply(n,u);else v(u,n);return c&&(f(c,o,n,r),f.uniqueSort(n)),n};f.uniqueSort=function(e){if(b&&(s=l,e.sort(b),s))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},f.matches=function(e,t){return f(e,null,null,t)},f.matchesSelector=function(e,t){return f(t,null,null,[e]).length>0},f.find=function(e,t,n){var i,r,o,a,s,l;if(!e)return[];for(r=0,o=h.order.length;r<o;r++)if(s=h.order[r],(a=h.leftMatch[s].exec(e))&&(l=a[1],a.splice(1,1),"\\"!==l.substr(l.length-1)&&(a[1]=(a[1]||"").replace(u,""),null!=(i=h.find[s](a,t,n))))){e=e.replace(h.match[s],"");break}return i||(i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:i,expr:e}},f.filter=function(e,n,i,r){for(var o,a,s,l,u,c,d,p,g,m=e,y=[],v=n,b=n&&n[0]&&f.isXML(n[0]);e&&n.length;){for(s in h.filter)if(null!=(o=h.leftMatch[s].exec(e))&&o[2]){if(c=h.filter[s],d=o[1],a=!1,o.splice(1,1),"\\"===d.substr(d.length-1))continue;if(v===y&&(y=[]),h.preFilter[s])if(o=h.preFilter[s](o,v,i,y,r,b)){if(!0===o)continue}else a=l=!0;if(o)for(p=0;null!=(u=v[p]);p++)u&&(l=c(u,o,p,v),g=r^l,i&&null!=l?g?a=!0:v[p]=!1:g&&(y.push(u),a=!0));if(l!==t){if(i||(v=y),e=e.replace(h.match[s],""),!a)return[];break}}if(e===m){if(null!=a)break;f.error(e)}m=e}return v},f.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var p=f.getText=function(e){var t,n,i=e.nodeType,r="";if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(c,"");for(e=e.firstChild;e;e=e.nextSibling)r+=p(e)}else if(3===i||4===i)return e.nodeValue}else for(t=0;n=e[t];t++)8!==n.nodeType&&(r+=p(n));return r},h=f.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(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var n="string"==typeof t,i=n&&!d.test(t),r=n&&!i;i&&(t=t.toLowerCase());for(var o,a=0,s=e.length;a<s;a++)if(o=e[a]){for(;(o=o.previousSibling)&&1!==o.nodeType;);e[a]=r||o&&o.nodeName.toLowerCase()===t?o||!1:o===t}r&&f.filter(t,e,!0)},">":function(e,t){var n,i="string"==typeof t,r=0,o=e.length;if(i&&!d.test(t)){for(t=t.toLowerCase();r<o;r++)if(n=e[r]){var a=n.parentNode;e[r]=a.nodeName.toLowerCase()===t&&a}}else{for(;r<o;r++)(n=e[r])&&(e[r]=i?n.parentNode:n.parentNode===t);i&&f.filter(t,e,!0)}},"":function(t,i,r){var a,s=o++,l=e;"string"==typeof i&&!d.test(i)&&(i=i.toLowerCase(),a=i,l=n),l("parentNode",i,s,t,a,r)},"~":function(t,i,r){var a,s=o++,l=e;"string"==typeof i&&!d.test(i)&&(i=i.toLowerCase(),a=i,l=n),l("previousSibling",i,s,t,a,r)}},find:{ID:function(e,t,n){if("undefined"!=typeof t.getElementById&&!n){var i=t.getElementById(e[1]);return i&&i.parentNode?[i]:[]}},NAME:function(e,t){if("undefined"!=typeof t.getElementsByName){for(var n=[],i=t.getElementsByName(e[1]),r=0,o=i.length;r<o;r++)i[r].getAttribute("name")===e[1]&&n.push(i[r]);return 0===n.length?null:n}},TAG:function(e,t){if("undefined"!=typeof t.getElementsByTagName)return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,i,r,o){if(e=" "+e[1].replace(u,"")+" ",o)return e;for(var a,s=0;null!=(a=t[s]);s++)a&&(r^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?n||i.push(a):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(u,"")},TAG:function(e){return e[1].replace(u,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||f.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===e[2]&&"2n"||"odd"===e[2]&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&f.error(e[0]);return e[0]=o++,e},ATTR:function(e,t,n,i,r,o){var a=e[1]=e[1].replace(u,"");return!o&&h.attrMap[a]&&(e[1]=h.attrMap[a]),e[4]=(e[4]||e[5]||"").replace(u,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,r,o){if("not"===e[1]){if(!((i.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var a=f.filter(e[3],t,n,!0^o);return n||r.push.apply(r,a),!1}e[3]=f(e[3],null,null,t)}else if(h.match.POS.test(e[0])||h.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!f(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,i){return t===i.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,i){var r=t[1],o=h.filters[r];if(o)return o(e,n,t,i);if("contains"===r)return(e.textContent||e.innerText||p([e])||"").indexOf(t[3])>=0;if("not"===r){for(var a=t[3],s=0,l=a.length;s<l;s++)if(a[s]===e)return!1;return!0}f.error(r)},CHILD:function(e,t){var n,i,o,a,s,l,u=t[1],c=e;switch(u){case"only":case"first":for(;c=c.previousSibling;)if(1===c.nodeType)return!1;if("first"===u)return!0;c=e;case"last":for(;c=c.nextSibling;)if(1===c.nodeType)return!1;return!0;case"nth":if(n=t[2],i=t[3],1===n&&0===i)return!0;if(o=t[0],(a=e.parentNode)&&(a[r]!==o||!e.nodeIndex)){for(s=0,c=a.firstChild;c;c=c.nextSibling)1===c.nodeType&&(c.nodeIndex=++s);a[r]=o}return l=e.nodeIndex-i,0===n?0===l:l%n==0&&l/n>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],i=f.attr?f.attr(e,n):h.attrHandle[n]?h.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),r=i+"",o=t[2],a=t[4];return null==i?"!="===o:!o&&f.attr?null!=i:"="===o?r===a:"*="===o?r.indexOf(a)>=0:"~="===o?(" "+r+" ").indexOf(a)>=0:a?"!="===o?r!==a:"^="===o?0===r.indexOf(a):"$="===o?r.substr(r.length-a.length)===a:"|="===o&&(r===a||r.substr(0,a.length+1)===a+"-"):r&&!1!==i},POS:function(e,t,n,i){var r=t[2],o=h.setFilters[r];if(o)return o(e,n,t,i)}}},g=h.match.POS,m=function(e,t){return"\\"+(t-0+1)};for(var y in h.match)h.match[y]=new RegExp(h.match[y].source+/(?![^\[]*\])(?![^\(]*\))/.source),h.leftMatch[y]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[y].source.replace(/\\(\d+)/g,m));h.match.globalPOS=g;var v=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(j.documentElement.childNodes,0)[0].nodeType}catch(e){v=function(e,t){var n=0,i=t||[];if("[object Array]"===a.call(e))Array.prototype.push.apply(i,e);else if("number"==typeof e.length)for(var r=e.length;n<r;n++)i.push(e[n]);else for(;e[n];n++)i.push(e[n]);return i}}var b,w;j.documentElement.compareDocumentPosition?b=function(e,t){return e===t?(s=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(b=function(e,t){if(e===t)return s=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,i,r=[],o=[],a=e.parentNode,l=t.parentNode,u=a;if(a===l)return w(e,t);if(!a)return-1;if(!l)return 1;for(;u;)r.unshift(u),u=u.parentNode;for(u=l;u;)o.unshift(u),u=u.parentNode;n=r.length,i=o.length;for(var c=0;c<n&&c<i;c++)if(r[c]!==o[c])return w(r[c],o[c]);return c===n?w(e,o[c],-1):w(r[c],t,1)},w=function(e,t,n){if(e===t)return n;for(var i=e.nextSibling;i;){if(i===t)return-1;i=i.nextSibling}return 1}),function(){var e=j.createElement("div"),n="script"+(new Date).getTime(),i=j.documentElement;e.innerHTML="<a name='"+n+"'/>",i.insertBefore(e,i.firstChild),j.getElementById(n)&&(h.find.ID=function(e,n,i){if("undefined"!=typeof n.getElementById&&!i){var r=n.getElementById(e[1]);return r?r.id===e[1]||"undefined"!=typeof r.getAttributeNode&&r.getAttributeNode("id").nodeValue===e[1]?[r]:t:[]}},h.filter.ID=function(e,t){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),i.removeChild(e),i=e=null}(),function(){var e=j.createElement("div");e.appendChild(j.createComment("")),e.getElementsByTagName("*").length>0&&(h.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var i=[],r=0;n[r];r++)1===n[r].nodeType&&i.push(n[r]);n=i}return n}),e.innerHTML="<a href='#'></a>",e.firstChild&&"undefined"!=typeof e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(h.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),j.querySelectorAll&&function(){var e=f,t=j.createElement("div");if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){f=function(t,n,i,r){if(n=n||j,!r&&!f.isXML(n)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(o&&(1===n.nodeType||9===n.nodeType)){if(o[1])return v(n.getElementsByTagName(t),i);if(o[2]&&h.find.CLASS&&n.getElementsByClassName)return v(n.getElementsByClassName(o[2]),i)}if(9===n.nodeType){if("body"===t&&n.body)return v([n.body],i);if(o&&o[3]){var a=n.getElementById(o[3]);if(!a||!a.parentNode)return v([],i);if(a.id===o[3])return v([a],i)}try{return v(n.querySelectorAll(t),i)}catch(e){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var s=n,l=n.getAttribute("id"),u=l||"__sizzle__",c=n.parentNode,d=/^\s*[+~]/.test(t);l?u=u.replace(/'/g,"\\$&"):n.setAttribute("id",u),d&&c&&(n=n.parentNode);try{if(!d||c)return v(n.querySelectorAll("[id='"+u+"'] "+t),i)}catch(e){}finally{l||s.removeAttribute("id")}}}return e(t,n,i,r)};for(var n in e)f[n]=e[n];t=null}}(),function(){var e=j.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var n=!t.call(j.createElement("div"),"div"),i=!1;try{t.call(j.documentElement,"[test!='']:sizzle")}catch(e){i=!0}f.matchesSelector=function(e,r){if(r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!f.isXML(e))try{if(i||!h.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=t.call(e,r);if(o||!n||e.document&&11!==e.document.nodeType)return o}}catch(e){}return f(r,null,null,[e]).length>0}}}(),function(){var e=j.createElement("div");if(e.innerHTML="<div class='test e'></div><div class='test'></div>",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length){if(e.lastChild.className="e",1===e.getElementsByClassName("e").length)return;h.order.splice(1,0,"CLASS"),h.find.CLASS=function(e,t,n){if("undefined"!=typeof t.getElementsByClassName&&!n)return t.getElementsByClassName(e[1])},e=null}}(),j.documentElement.contains?f.contains=function(e,t){return e!==t&&(!e.contains||e.contains(t))}:j.documentElement.compareDocumentPosition?f.contains=function(e,t){return!!(16&e.compareDocumentPosition(t))}:f.contains=function(){return!1},f.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return!!t&&"HTML"!==t.nodeName};var x=function(e,t,n){for(var i,r=[],o="",a=t.nodeType?[t]:t;i=h.match.PSEUDO.exec(e);)o+=i[0],e=e.replace(h.match.PSEUDO,"");e=h.relative[e]?e+"*":e;for(var s=0,l=a.length;s<l;s++)f(e,a[s],r,n);return f.filter(o,r)};f.attr=M.attr,f.selectors.attrMap={},M.find=f,M.expr=f.selectors,M.expr[":"]=M.expr.filters,M.unique=f.uniqueSort,M.text=f.getText,M.isXMLDoc=f.isXML,M.contains=f.contains}();var se=/Until$/,le=/^(?:parents|prevUntil|prevAll)/,ue=/,/,ce=/^.[^:#\[\.,]*$/,de=Array.prototype.slice,fe=M.expr.match.globalPOS,pe={children:!0,contents:!0,next:!0,prev:!0};M.fn.extend({find:function(e){var t,n,i=this;if("string"!=typeof e)return M(e).filter(function(){for(t=0,n=i.length;t<n;t++)if(M.contains(i[t],this))return!0});var r,o,a,s=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++)if(r=s.length,M.find(e,this[t],s),t>0)for(o=r;o<s.length;o++)for(a=0;a<r;a++)if(s[a]===s[o]){s.splice(o--,1);break}return s},has:function(e){var t=M(e);return this.filter(function(){for(var e=0,n=t.length;e<n;e++)if(M.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(C(this,e,!1),"not",e)},filter:function(e){return this.pushStack(C(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?fe.test(e)?M(e,this.context).index(this[0])>=0:M.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,i,r=[],o=this[0];if(M.isArray(e)){for(var a=1;o&&o.ownerDocument&&o!==t;){for(n=0;n<e.length;n++)M(o).is(e[n])&&r.push({selector:e[n],elem:o,level:a});o=o.parentNode,a++}return r}var s=fe.test(e)||"string"!=typeof e?M(e,t||this.context):0;for(n=0,i=this.length;n<i;n++)for(o=this[n];o;){if(s?s.index(o)>-1:M.find.matchesSelector(o,e)){r.push(o);break}if(!(o=o.parentNode)||!o.ownerDocument||o===t||11===o.nodeType)break}return r=r.length>1?M.unique(r):r,this.pushStack(r,"closest",e)},index:function(e){return e?"string"==typeof e?M.inArray(this[0],M(e)):M.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?M(e,t):M.makeArray(e&&e.nodeType?[e]:e),i=M.merge(this.get(),n);return this.pushStack(E(n[0])||E(i[0])?i:M.unique(i))},andSelf:function(){return this.add(this.prevObject)}}),M.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return M.dir(e,"parentNode")},parentsUntil:function(e,t,n){return M.dir(e,"parentNode",n)},next:function(e){return M.nth(e,2,"nextSibling")},prev:function(e){return M.nth(e,2,"previousSibling")},nextAll:function(e){return M.dir(e,"nextSibling")},prevAll:function(e){return M.dir(e,"previousSibling")},nextUntil:function(e,t,n){return M.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return M.dir(e,"previousSibling",n)},siblings:function(e){return M.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return M.sibling(e.firstChild)},contents:function(e){return M.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:M.makeArray(e.childNodes)}},function(e,t){M.fn[e]=function(n,i){var r=M.map(this,t,n);return se.test(e)||(i=n),i&&"string"==typeof i&&(r=M.filter(i,r)),r=this.length>1&&!pe[e]?M.unique(r):r,(this.length>1||ue.test(i))&&le.test(e)&&(r=r.reverse()),this.pushStack(r,e,de.call(arguments).join(","))}}),M.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?M.find.matchesSelector(t[0],e)?[t[0]]:[]:M.find.matches(e,t)},dir:function(e,n,i){for(var r=[],o=e[n];o&&9!==o.nodeType&&(i===t||1!==o.nodeType||!M(o).is(i));)1===o.nodeType&&r.push(o),o=o[n];return r},nth:function(e,t,n){t=t||1;for(var i=0;e&&(1!==e.nodeType||++i!==t);e=e[n]);return e},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var he="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ge=/ jQuery\d+="(?:\d+|null)"/g,me=/^\s+/,ye=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ve=/<([\w:]+)/,be=/<tbody/i,we=/<|&#?\w+;/,xe=/<(?:script|style)/i,ke=/<(?:script|object|embed|option|style)/i,Te=new RegExp("<(?:"+he+")[\\s/>]","i"),Ce=/checked\s*(?:[^=]|=\s*.checked.)/i,Ee=/\/(java|ecma)script/i,Ne=/^\s*<!(?:\[CDATA\[|\-\-)/,_e={
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,"",""]},Se=T(j);_e.optgroup=_e.option,_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td,M.support.htmlSerialize||(_e._default=[1,"div<div>","</div>"]),M.fn.extend({text:function(e){return M.access(this,function(e){return e===t?M.text(this):this.empty().append((this[0]&&this[0].ownerDocument||j).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(M.isFunction(e))return this.each(function(t){M(this).wrapAll(e.call(this,t))});if(this[0]){var t=M(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return M.isFunction(e)?this.each(function(t){M(this).wrapInner(e.call(this,t))}):this.each(function(){var t=M(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=M.isFunction(e);return this.each(function(n){M(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){M.nodeName(this,"body")||M(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){1===this.nodeType&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=M.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,M.clean(arguments)),e}},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)e&&!M.filter(e,[n]).length||(!t&&1===n.nodeType&&(M.cleanData(n.getElementsByTagName("*")),M.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&M.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return M.clone(this,e,t)})},html:function(e){return M.access(this,function(e){var n=this[0]||{},i=0,r=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(ge,""):null;if("string"==typeof e&&!xe.test(e)&&(M.support.leadingWhitespace||!me.test(e))&&!_e[(ve.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ye,"<$1></$2>");try{for(;i<r;i++)n=this[i]||{},1===n.nodeType&&(M.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(e){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return this[0]&&this[0].parentNode?M.isFunction(e)?this.each(function(t){var n=M(this),i=n.html();n.replaceWith(e.call(this,t,i))}):("string"!=typeof e&&(e=M(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;M(this).remove(),t?M(t).before(e):M(n).append(e)})):this.length?this.pushStack(M(M.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,i){var r,o,a,s,l=e[0],u=[];if(!M.support.checkClone&&3===arguments.length&&"string"==typeof l&&Ce.test(l))return this.each(function(){M(this).domManip(e,n,i,!0)});if(M.isFunction(l))return this.each(function(r){var o=M(this);e[0]=l.call(this,r,n?o.html():t),o.domManip(e,n,i)});if(this[0]){if(s=l&&l.parentNode,r=M.support.parentNode&&s&&11===s.nodeType&&s.childNodes.length===this.length?{fragment:s}:M.buildFragment(e,this,u),a=r.fragment,o=1===a.childNodes.length?a=a.firstChild:a.firstChild,o){n=n&&M.nodeName(o,"tr");for(var c=0,d=this.length,f=d-1;c<d;c++)i.call(n?k(this[c],o):this[c],r.cacheable||d>1&&c<f?M.clone(a,!0,!0):a)}u.length&&M.each(u,function(e,t){t.src?M.ajax({type:"GET",global:!1,url:t.src,async:!1,dataType:"script"}):M.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Ne,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),M.buildFragment=function(e,t,n){var i,r,o,a,s=e[0];return t&&t[0]&&(a=t[0].ownerDocument||t[0]),a.createDocumentFragment||(a=j),1===e.length&&"string"==typeof s&&s.length<512&&a===j&&"<"===s.charAt(0)&&!ke.test(s)&&(M.support.checkClone||!Ce.test(s))&&(M.support.html5Clone||!Te.test(s))&&(r=!0,(o=M.fragments[s])&&1!==o&&(i=o)),i||(i=a.createDocumentFragment(),M.clean(e,a,i,n)),r&&(M.fragments[s]=o?i:1),{fragment:i,cacheable:r}},M.fragments={},M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){M.fn[e]=function(n){var i=[],r=M(n),o=1===this.length&&this[0].parentNode;if(o&&11===o.nodeType&&1===o.childNodes.length&&1===r.length)return r[t](this[0]),this;for(var a=0,s=r.length;a<s;a++){var l=(a>0?this.clone(!0):this).get();M(r[a])[t](l),i=i.concat(l)}return this.pushStack(i,e,r.selector)}}),M.extend({clone:function(e,t,n){var i,r,o,a=M.support.html5Clone||M.isXMLDoc(e)||!Te.test("<"+e.nodeName+">")?e.cloneNode(!0):m(e);if(!(M.support.noCloneEvent&&M.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||M.isXMLDoc(e)))for(w(e,a),i=b(e),r=b(a),o=0;i[o];++o)r[o]&&w(i[o],r[o]);if(t&&(x(e,a),n))for(i=b(e),r=b(a),o=0;i[o];++o)x(i[o],r[o]);return i=r=null,a},clean:function(e,t,n,i){var r,o,a,s=[];t=t||j,"undefined"==typeof t.createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||j);for(var l,u=0;null!=(l=e[u]);u++)if("number"==typeof l&&(l+=""),l){if("string"==typeof l)if(we.test(l)){l=l.replace(ye,"<$1></$2>");var c,d=(ve.exec(l)||["",""])[1].toLowerCase(),f=_e[d]||_e._default,p=f[0],h=t.createElement("div"),g=Se.childNodes;for(t===j?Se.appendChild(h):T(t).appendChild(h),h.innerHTML=f[1]+l+f[2];p--;)h=h.lastChild;if(!M.support.tbody){var m=be.test(l),v="table"!==d||m?"<table>"!==f[1]||m?[]:h.childNodes:h.firstChild&&h.firstChild.childNodes;for(a=v.length-1;a>=0;--a)M.nodeName(v[a],"tbody")&&!v[a].childNodes.length&&v[a].parentNode.removeChild(v[a])}!M.support.leadingWhitespace&&me.test(l)&&h.insertBefore(t.createTextNode(me.exec(l)[0]),h.firstChild),l=h.childNodes,h&&(h.parentNode.removeChild(h),g.length>0&&(c=g[g.length-1])&&c.parentNode&&c.parentNode.removeChild(c))}else l=t.createTextNode(l);var b;if(!M.support.appendChecked)if(l[0]&&"number"==typeof(b=l.length))for(a=0;a<b;a++)y(l[a]);else y(l);l.nodeType?s.push(l):s=M.merge(s,l)}if(n)for(r=function(e){return!e.type||Ee.test(e.type)},u=0;s[u];u++)if(o=s[u],i&&M.nodeName(o,"script")&&(!o.type||Ee.test(o.type)))i.push(o.parentNode?o.parentNode.removeChild(o):o);else{if(1===o.nodeType){var w=M.grep(o.getElementsByTagName("script"),r);s.splice.apply(s,[u+1,0].concat(w))}n.appendChild(o)}return s},cleanData:function(e){for(var t,n,i,r=M.cache,o=M.event.special,a=M.support.deleteExpando,s=0;null!=(i=e[s]);s++)if((!i.nodeName||!M.noData[i.nodeName.toLowerCase()])&&(n=i[M.expando])){if((t=r[n])&&t.events){for(var l in t.events)o[l]?M.event.remove(i,l):M.removeEvent(i,l,t.handle);t.handle&&(t.handle.elem=null)}a?delete i[M.expando]:i.removeAttribute&&i.removeAttribute(M.expando),delete r[n]}}});var Ae,$e,Le,je=/alpha\([^)]*\)/i,De=/opacity=([^)]*)/,Fe=/([A-Z]|^ms)/g,Me=/^[\-+]?(?:\d*\.)?\d+$/i,Oe=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,Pe=/^([\-+])=([\-+.\de]+)/,He=/^margin/,ze={position:"absolute",visibility:"hidden",display:"block"},qe=["Top","Right","Bottom","Left"];M.fn.css=function(e,n){return M.access(this,function(e,n,i){return i!==t?M.style(e,n,i):M.css(e,n)},e,n,arguments.length>1)},M.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ae(e,"opacity");return""===n?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":M.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s=M.camelCase(n),l=e.style,u=M.cssHooks[s];if(n=M.cssProps[s]||s,i===t)return u&&"get"in u&&(o=u.get(e,!1,r))!==t?o:l[n];if("string"===(a=typeof i)&&(o=Pe.exec(i))&&(i=+(o[1]+1)*+o[2]+parseFloat(M.css(e,n)),a="number"),null==i||"number"===a&&isNaN(i))return;if("number"===a&&!M.cssNumber[s]&&(i+="px"),!(u&&"set"in u&&(i=u.set(e,i))===t))try{l[n]=i}catch(e){}}},css:function(e,n,i){var r,o;return n=M.camelCase(n),o=M.cssHooks[n],"cssFloat"===(n=M.cssProps[n]||n)&&(n="float"),o&&"get"in o&&(r=o.get(e,!0,i))!==t?r:Ae?Ae(e,n):void 0},swap:function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];i=n.call(e);for(r in t)e.style[r]=o[r];return i}}),M.curCSS=M.css,j.defaultView&&j.defaultView.getComputedStyle&&($e=function(e,t){var n,i,r,o,a=e.style;return t=t.replace(Fe,"-$1").toLowerCase(),(i=e.ownerDocument.defaultView)&&(r=i.getComputedStyle(e,null))&&""===(n=r.getPropertyValue(t))&&!M.contains(e.ownerDocument.documentElement,e)&&(n=M.style(e,t)),!M.support.pixelMargin&&r&&He.test(t)&&Oe.test(n)&&(o=a.width,a.width=n,n=r.width,a.width=o),n}),j.documentElement.currentStyle&&(Le=function(e,t){var n,i,r,o=e.currentStyle&&e.currentStyle[t],a=e.style;return null==o&&a&&(r=a[t])&&(o=r),Oe.test(o)&&(n=a.left,i=e.runtimeStyle&&e.runtimeStyle.left,i&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=n,i&&(e.runtimeStyle.left=i)),""===o?"auto":o}),Ae=$e||Le,M.each(["height","width"],function(e,t){M.cssHooks[t]={get:function(e,n,i){if(n)return 0!==e.offsetWidth?g(e,t,i):M.swap(e,ze,function(){return g(e,t,i)})},set:function(e,t){return Me.test(t)?t+"px":t}}}),M.support.opacity||(M.cssHooks.opacity={get:function(e,t){return De.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=M.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,t>=1&&""===M.trim(o.replace(je,""))&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=je.test(o)?o.replace(je,r):o+" "+r)}}),M(function(){M.support.reliableMarginRight||(M.cssHooks.marginRight={get:function(e,t){return M.swap(e,{display:"inline-block"},function(){return t?Ae(e,"margin-right"):e.style.marginRight})}})}),M.expr&&M.expr.filters&&(M.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!M.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||M.css(e,"display"))},M.expr.filters.visible=function(e){return!M.expr.filters.hidden(e)}),M.each({margin:"",padding:"",border:"Width"},function(e,t){M.cssHooks[e+t]={expand:function(n){var i,r="string"==typeof n?n.split(" "):[n],o={};for(i=0;i<4;i++)o[e+qe[i]+t]=r[i]||r[i-2]||r[0];return o}}});var Be,Re,Ie=/%20/g,We=/\[\]$/,Xe=/\r?\n/g,Ue=/#.*$/,Ve=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ke=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ge=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Je=/^(?:GET|HEAD)$/,Ye=/^\/\//,Qe=/\?/,Ze=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,et=/^(?:select|textarea)/i,tt=/\s+/,nt=/([?&])_=[^&]*/,it=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,rt=M.fn.load,ot={},at={},st=["*/"]+["*"];try{Be=F.href}catch(e){Be=j.createElement("a"),Be.href="",Be=Be.href}Re=it.exec(Be.toLowerCase())||[],M.fn.extend({load:function(e,n,i){if("string"!=typeof e&&rt)return rt.apply(this,arguments);if(!this.length)return this;var r=e.indexOf(" ");if(r>=0){var o=e.slice(r,e.length);e=e.slice(0,r)}var a="GET";n&&(M.isFunction(n)?(i=n,n=t):"object"==typeof n&&(n=M.param(n,M.ajaxSettings.traditional),a="POST"));var s=this;return M.ajax({url:e,type:a,dataType:"html",data:n,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done(function(e){n=e}),s.html(o?M("<div>").append(n.replace(Ze,"")).find(o):n)),i&&s.each(i,[n,t,e])}}),this},serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?M.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||et.test(this.nodeName)||Ke.test(this.type))}).map(function(e,t){var n=M(this).val();return null==n?null:M.isArray(n)?M.map(n,function(e){return{name:t.name,value:e.replace(Xe,"\r\n")}}):{name:t.name,value:n.replace(Xe,"\r\n")}}).get()}}),M.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){M.fn[t]=function(e){return this.on(t,e)}}),M.each(["get","post"],function(e,n){M[n]=function(e,i,r,o){return M.isFunction(i)&&(o=o||r,r=i,i=t),M.ajax({type:n,url:e,data:i,success:r,dataType:o})}}),M.extend({getScript:function(e,n){return M.get(e,t,n,"script")},getJSON:function(e,t,n){return M.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?f(e,M.ajaxSettings):(t=e,e=M.ajaxSettings),f(e,t),e},ajaxSettings:{url:Be,isLocal:Ge.test(Re[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","*":st},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":M.parseJSON,"text xml":M.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:h(ot),ajaxTransport:h(at),ajax:function(e,n){function i(e,n,i,a){if(2!==T){T=2,l&&clearTimeout(l),s=t,o=a||"",C.readyState=e>0?4:0;var d,p,h,x,k,E=n,N=i?c(g,C,i):t;if(e>=200&&e<300||304===e)if(g.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(M.lastModified[r]=x),(k=C.getResponseHeader("Etag"))&&(M.etag[r]=k)),304===e)E="notmodified",d=!0;else try{p=u(g,N),E="success",d=!0}catch(e){E="parsererror",h=e}else h=E,E&&!e||(E="error",e<0&&(e=0));C.status=e,C.statusText=""+(n||E),d?v.resolveWith(m,[p,E,C]):v.rejectWith(m,[C,E,h]),C.statusCode(w),w=t,f&&y.trigger("ajax"+(d?"Success":"Error"),[C,g,d?p:h]),b.fireWith(m,[C,E]),f&&(y.trigger("ajaxComplete",[C,g]),--M.active||M.event.trigger("ajaxStop"))}}"object"==typeof e&&(n=e,e=t),n=n||{};var r,o,a,s,l,d,f,h,g=M.ajaxSetup({},n),m=g.context||g,y=m!==g&&(m.nodeType||m instanceof M)?M(m):M.event,v=M.Deferred(),b=M.Callbacks("once memory"),w=g.statusCode||{},x={},k={},T=0,C={readyState:0,setRequestHeader:function(e,t){if(!T){var n=e.toLowerCase();e=k[n]=k[n]||e,x[e]=t}return this},getAllResponseHeaders:function(){return 2===T?o:null},getResponseHeader:function(e){var n;if(2===T){if(!a)for(a={};n=Ve.exec(o);)a[n[1].toLowerCase()]=n[2];n=a[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return T||(g.mimeType=e),this},abort:function(e){return e=e||"abort",s&&s.abort(e),i(0,e),this}};if(v.promise(C),C.success=C.done,C.error=C.fail,C.complete=b.add,C.statusCode=function(e){if(e){var t;if(T<2)for(t in e)w[t]=[w[t],e[t]];else t=e[C.status],C.then(t,t)}return this},g.url=((e||g.url)+"").replace(Ue,"").replace(Ye,Re[1]+"//"),g.dataTypes=M.trim(g.dataType||"*").toLowerCase().split(tt),null==g.crossDomain&&(d=it.exec(g.url.toLowerCase()),g.crossDomain=!(!d||d[1]==Re[1]&&d[2]==Re[2]&&(d[3]||("http:"===d[1]?80:443))==(Re[3]||("http:"===Re[1]?80:443)))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=M.param(g.data,g.traditional)),p(ot,g,n,C),2===T)return!1;if(f=g.global,g.type=g.type.toUpperCase(),g.hasContent=!Je.test(g.type),f&&0==M.active++&&M.event.trigger("ajaxStart"),!g.hasContent&&(g.data&&(g.url+=(Qe.test(g.url)?"&":"?")+g.data,delete g.data),r=g.url,!1===g.cache)){var E=M.now(),N=g.url.replace(nt,"$1_="+E);g.url=N+(N===g.url?(Qe.test(g.url)?"&":"?")+"_="+E:"")}(g.data&&g.hasContent&&!1!==g.contentType||n.contentType)&&C.setRequestHeader("Content-Type",g.contentType),g.ifModified&&(r=r||g.url,M.lastModified[r]&&C.setRequestHeader("If-Modified-Since",M.lastModified[r]),M.etag[r]&&C.setRequestHeader("If-None-Match",M.etag[r])),C.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+st+"; q=0.01":""):g.accepts["*"]);for(h in g.headers)C.setRequestHeader(h,g.headers[h]);if(g.beforeSend&&(!1===g.beforeSend.call(m,C,g)||2===T))return C.abort(),!1;for(h in{success:1,error:1,complete:1})C[h](g[h]);if(s=p(at,g,n,C)){C.readyState=1,f&&y.trigger("ajaxSend",[C,g]),g.async&&g.timeout>0&&(l=setTimeout(function(){C.abort("timeout")},g.timeout));try{T=1,s.send(x,i)}catch(e){if(!(T<2))throw e;i(-1,e)}}else i(-1,"No Transport");return C},param:function(e,n){var i=[],r=function(e,t){t=M.isFunction(t)?t():t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=M.ajaxSettings.traditional),M.isArray(e)||e.jquery&&!M.isPlainObject(e))M.each(e,function(){r(this.name,this.value)});else for(var o in e)d(o,e[o],n,r);return i.join("&").replace(Ie,"+")}}),M.extend({active:0,lastModified:{},etag:{}});var lt=M.now(),ut=/(\=)\?(&|$)|\?\?/i;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return M.expando+"_"+lt++}}),M.ajaxPrefilter("json jsonp",function(t,n,i){var r="string"==typeof t.data&&/^application\/x\-www\-form\-urlencoded/.test(t.contentType);if("jsonp"===t.dataTypes[0]||!1!==t.jsonp&&(ut.test(t.url)||r&&ut.test(t.data))){var o,a=t.jsonpCallback=M.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s=e[a],l=t.url,u=t.data,c="$1"+a+"$2";return!1!==t.jsonp&&(l=l.replace(ut,c),t.url===l&&(r&&(u=u.replace(ut,c)),t.data===u&&(l+=(/\?/.test(l)?"&":"?")+t.jsonp+"="+a))),t.url=l,t.data=u,e[a]=function(e){o=[e]},i.always(function(){e[a]=s,o&&M.isFunction(s)&&e[a](o[0])}),t.converters["script json"]=function(){return o||M.error(a+" was not called"),o[0]},t.dataTypes[0]="json","script"}}),M.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return M.globalEval(e),e}}}),M.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),M.ajaxTransport("script",function(e){if(e.crossDomain){var n,i=j.head||j.getElementsByTagName("head")[0]||j.documentElement;return{send:function(r,o){n=j.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,r){(r||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=t,r||o(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var ct,dt=!!e.ActiveXObject&&function(){for(var e in ct)ct[e](0,1)},ft=0;M.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&l()||s()}:l,function(e){M.extend(M.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(M.ajaxSettings.xhr()),M.support.ajax&&M.ajaxTransport(function(n){if(!n.crossDomain||M.support.cors){var i;return{send:function(r,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),!n.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");try{for(s in r)l.setRequestHeader(s,r[s])}catch(e){}l.send(n.hasContent&&n.data||null),i=function(e,r){var s,u,c,d,f;try{if(i&&(r||4===l.readyState))if(i=t,a&&(l.onreadystatechange=M.noop,dt&&delete ct[a]),r)4!==l.readyState&&l.abort();else{s=l.status,c=l.getAllResponseHeaders(),d={},(f=l.responseXML)&&f.documentElement&&(d.xml=f);try{d.text=l.responseText}catch(e){}try{u=l.statusText}catch(e){u=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(e){r||o(-1,e)}d&&o(s,u,d,c)},n.async&&4!==l.readyState?(a=++ft,dt&&(ct||(ct={},M(e).unload(dt)),ct[a]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(0,1)}}}});var pt,ht,gt,mt,yt={},vt=/^(?:toggle|show|hide)$/,bt=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,wt=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];M.fn.extend({show:function(e,t,n){var o,a;if(e||0===e)return this.animate(r("show",3),e,t,n);for(var s=0,l=this.length;s<l;s++)o=this[s],o.style&&(a=o.style.display,!M._data(o,"olddisplay")&&"none"===a&&(a=o.style.display=""),(""===a&&"none"===M.css(o,"display")||!M.contains(o.ownerDocument.documentElement,o))&&M._data(o,"olddisplay",i(o.nodeName)));for(s=0;s<l;s++)o=this[s],o.style&&(""!==(a=o.style.display)&&"none"!==a||(o.style.display=M._data(o,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(r("hide",3),e,t,n);for(var i,o,a=0,s=this.length;a<s;a++)i=this[a],i.style&&"none"!==(o=M.css(i,"display"))&&!M._data(i,"olddisplay")&&M._data(i,"olddisplay",o);for(a=0;a<s;a++)this[a].style&&(this[a].style.display="none");return this},_toggle:M.fn.toggle,toggle:function(e,t,n){var i="boolean"==typeof e;return M.isFunction(e)&&M.isFunction(t)?this._toggle.apply(this,arguments):null==e||i?this.each(function(){var t=i?e:M(this).is(":hidden");M(this)[t?"show":"hide"]()}):this.animate(r("toggle",3),e,t,n),this},fadeTo:function(e,t,n,i){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,r){function o(){!1===a.queue&&M._mark(this);var t,n,r,o,s,l,u,c,d,f,p,h=M.extend({},a),g=1===this.nodeType,m=g&&M(this).is(":hidden");h.animatedProperties={};for(r in e)if(t=M.camelCase(r),r!==t&&(e[t]=e[r],delete e[r]),(s=M.cssHooks[t])&&"expand"in s){l=s.expand(e[t]),delete e[t];for(r in l)r in e||(e[r]=l[r])}for(t in e){if(n=e[t],M.isArray(n)?(h.animatedProperties[t]=n[1],n=e[t]=n[0]):h.animatedProperties[t]=h.specialEasing&&h.specialEasing[t]||h.easing||"swing","hide"===n&&m||"show"===n&&!m)return h.complete.call(this);g&&("height"===t||"width"===t)&&(h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===M.css(this,"display")&&"none"===M.css(this,"float")&&(M.support.inlineBlockNeedsLayout&&"inline"!==i(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}null!=h.overflow&&(this.style.overflow="hidden");for(r in e)o=new M.fx(this,h,r),n=e[r],vt.test(n)?(p=M._data(this,"toggle"+r)||("toggle"===n?m?"show":"hide":0),p?(M._data(this,"toggle"+r,"show"===p?"hide":"show"),o[p]()):o[n]()):(u=bt.exec(n),c=o.cur(),u?(d=parseFloat(u[2]),f=u[3]||(M.cssNumber[r]?"":"px"),"px"!==f&&(M.style(this,r,(d||1)+f),c=(d||1)/o.cur()*c,M.style(this,r,c+f)),u[1]&&(d=("-="===u[1]?-1:1)*d+c),o.custom(c,d,f)):o.custom(c,n,""));return!0}var a=M.speed(t,n,r);return M.isEmptyObject(e)?this.each(a.complete,[!1]):(e=M.extend({},e),!1===a.queue?this.each(o):this.queue(a.queue,o))},stop:function(e,n,i){return"string"!=typeof e&&(i=n,n=e,e=t),n&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){function t(e,t,n){var r=t[n];M.removeData(e,n,!0),r.stop(i)}var n,r=!1,o=M.timers,a=M._data(this);if(i||M._unmark(!0,this),null==e)for(n in a)a[n]&&a[n].stop&&n.indexOf(".run")===n.length-4&&t(this,a,n);else a[n=e+".run"]&&a[n].stop&&t(this,a,n);for(n=o.length;n--;)o[n].elem===this&&(null==e||o[n].queue===e)&&(i?o[n](!0):o[n].saveState(),r=!0,o.splice(n,1));(!i||!r)&&M.dequeue(this,e)})}}),M.each({slideDown:r("show",1),slideUp:r("hide",1),slideToggle:r("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){M.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),M.extend({speed:function(e,t,n){var i=e&&"object"==typeof e?M.extend({},e):{complete:n||!n&&t||M.isFunction(e)&&e,duration:e,easing:n&&t||t&&!M.isFunction(t)&&t};return i.duration=M.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in M.fx.speeds?M.fx.speeds[i.duration]:M.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(e){M.isFunction(i.old)&&i.old.call(this),i.queue?M.dequeue(this,i.queue):!1!==e&&M._unmark(this)},i},easing:{linear:function(e){return e},swing:function(e){return-Math.cos(e*Math.PI)/2+.5}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),M.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(M.fx.step[this.prop]||M.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var e,t=M.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?t&&"auto"!==t?t:0:e},custom:function(e,n,i){function r(e){return o.step(e)}var o=this,s=M.fx;this.startTime=mt||a(),this.end=n,this.now=this.start=e,this.pos=this.state=0,this.unit=i||this.unit||(M.cssNumber[this.prop]?"":"px"),r.queue=this.options.queue,r.elem=this.elem,r.saveState=function(){M._data(o.elem,"fxshow"+o.prop)===t&&(o.options.hide?M._data(o.elem,"fxshow"+o.prop,o.start):o.options.show&&M._data(o.elem,"fxshow"+o.prop,o.end))},r()&&M.timers.push(r)&&!gt&&(gt=setInterval(s.tick,s.interval))},show:function(){var e=M._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||M.style(this.elem,this.prop),this.options.show=!0,e!==t?this.custom(this.cur(),e):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),M(this.elem).show()},hide:function(){this.options.orig[this.prop]=M._data(this.elem,"fxshow"+this.prop)||M.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,i,r=mt||a(),o=!0,s=this.elem,l=this.options;if(e||r>=l.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),l.animatedProperties[this.prop]=!0;for(t in l.animatedProperties)!0!==l.animatedProperties[t]&&(o=!1);if(o){if(null!=l.overflow&&!M.support.shrinkWrapBlocks&&M.each(["","X","Y"],function(e,t){s.style["overflow"+t]=l.overflow[e]}),l.hide&&M(s).hide(),l.hide||l.show)for(t in l.animatedProperties)M.style(s,t,l.orig[t]),M.removeData(s,"fxshow"+t,!0),M.removeData(s,"toggle"+t,!0);(i=l.complete)&&(l.complete=!1,i.call(s))}return!1}return l.duration==Infinity?this.now=r:(n=r-this.startTime,this.state=n/l.duration,this.pos=M.easing[l.animatedProperties[this.prop]](this.state,n,0,1,l.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},M.extend(M.fx,{tick:function(){for(var e,t=M.timers,n=0;n<t.length;n++)!(e=t[n])()&&t[n]===e&&t.splice(n--,1);t.length||M.fx.stop()},interval:13,stop:function(){clearInterval(gt),gt=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){M.style(e.elem,"opacity",e.now)},_default:function(e){e.elem.style&&null!=e.elem.style[e.prop]?e.elem.style[e.prop]=e.now+e.unit:e.elem[e.prop]=e.now}}}),M.each(wt.concat.apply([],wt),function(e,t){t.indexOf("margin")&&(M.fx.step[t]=function(e){M.style(e.elem,t,Math.max(0,e.now)+e.unit)})}),M.expr&&M.expr.filters&&(M.expr.filters.animated=function(e){return M.grep(M.timers,function(t){return e===t.elem}).length});var xt,kt=/^t(?:able|d|h)$/i,Tt=/^(?:body|html)$/i;xt="getBoundingClientRect"in j.documentElement?function(e,t,i,r){try{r=e.getBoundingClientRect()}catch(e){}if(!r||!M.contains(i,e))return r?{top:r.top,left:r.left}:{top:0,left:0};var o=t.body,a=n(t),s=i.clientTop||o.clientTop||0,l=i.clientLeft||o.clientLeft||0,u=a.pageYOffset||M.support.boxModel&&i.scrollTop||o.scrollTop,c=a.pageXOffset||M.support.boxModel&&i.scrollLeft||o.scrollLeft;return{top:r.top+u-s,left:r.left+c-l}}:function(e,t,n){for(var i,r=e.offsetParent,o=t.body,a=t.defaultView,s=a?a.getComputedStyle(e,null):e.currentStyle,l=e.offsetTop,u=e.offsetLeft;(e=e.parentNode)&&e!==o&&e!==n&&(!M.support.fixedPosition||"fixed"!==s.position);)i=a?a.getComputedStyle(e,null):e.currentStyle,l-=e.scrollTop,u-=e.scrollLeft,e===r&&(l+=e.offsetTop,u+=e.offsetLeft,M.support.doesNotAddBorder&&(!M.support.doesAddBorderForTableAndCells||!kt.test(e.nodeName))&&(l+=parseFloat(i.borderTopWidth)||0,u+=parseFloat(i.borderLeftWidth)||0),r,r=e.offsetParent),M.support.subtractsBorderForOverflowNotVisible&&"visible"!==i.overflow&&(l+=parseFloat(i.borderTopWidth)||0,u+=parseFloat(i.borderLeftWidth)||0),s=i;return"relative"!==s.position&&"static"!==s.position||(l+=o.offsetTop,u+=o.offsetLeft),M.support.fixedPosition&&"fixed"===s.position&&(l+=Math.max(n.scrollTop,o.scrollTop),u+=Math.max(n.scrollLeft,o.scrollLeft)),{top:l,left:u}},M.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){M.offset.setOffset(this,e,t)});var n=this[0],i=n&&n.ownerDocument;return i?n===i.body?M.offset.bodyOffset(n):xt(n,i,i.documentElement):null},M.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return M.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(M.css(e,"marginTop"))||0,n+=parseFloat(M.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var i=M.css(e,"position");"static"===i&&(e.style.position="relative");var r,o,a=M(e),s=a.offset(),l=M.css(e,"top"),u=M.css(e,"left"),c=("absolute"===i||"fixed"===i)&&M.inArray("auto",[l,u])>-1,d={},f={};c?(f=a.position(),r=f.top,o=f.left):(r=parseFloat(l)||0,o=parseFloat(u)||0),M.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+r),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):a.css(d)}},M.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),i=Tt.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(M.css(e,"marginTop"))||0,n.left-=parseFloat(M.css(e,"marginLeft"))||0,i.top+=parseFloat(M.css(t[0],"borderTopWidth"))||0,i.left+=parseFloat(M.css(t[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||j.body;e&&!Tt.test(e.nodeName)&&"static"===M.css(e,"position");)e=e.offsetParent;return e})}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var r=/Y/.test(i);M.fn[e]=function(o){return M.access(this,function(e,o,a){var s=n(e);if(a===t)return s?i in s?s[i]:M.support.boxModel&&s.document.documentElement[o]||s.document.body[o]:e[o];s?s.scrollTo(r?M(s).scrollLeft():a,r?a:M(s).scrollTop()):e[o]=a},e,o,arguments.length,null)}}),M.each({Height:"height",Width:"width"},function(e,n){var i="client"+e,r="scroll"+e,o="offset"+e;M.fn["inner"+e]=function(){var e=this[0];return e?e.style?parseFloat(M.css(e,n,"padding")):this[n]():null},M.fn["outer"+e]=function(e){var t=this[0];return t?t.style?parseFloat(M.css(t,n,e?"margin":"border")):this[n]():null},M.fn[n]=function(e){return M.access(this,function(e,n,a){var s,l,u,c;return M.isWindow(e)?(s=e.document,l=s.documentElement[i],M.support.boxModel&&l||s.body&&s.body[i]||l):9===e.nodeType?(s=e.documentElement,s[i]>=s[r]?s[i]:Math.max(e.body[r],s[r],e.body[o],s[o])):a===t?(u=M.css(e,n),c=parseFloat(u),M.isNumeric(c)?c:u):void M(e).css(n,a)},n,e,arguments.length,null)}}),e.jQuery=e.$=M,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return M})}(window),function(){var e;e="undefined"!=typeof module&&"undefined"!=typeof module.exports?require("./pnglib"):window.PNGlib;var t=function(e,t){if("string"!=typeof e||e.length<15)throw"A hash of at least 15 characters is required.";this.defaults={background:[240,240,240,255],margin:.08,size:64,saturation:.7,brightness:.5,format:"png"},this.options="object"==typeof t?t:this.defaults,"number"==typeof arguments[1]&&(this.options.size=arguments[1]),arguments[2]&&(this.options.margin=arguments[2]),this.hash=e,this.background=this.options.background||this.defaults.background,this.size=this.options.size||this.defaults.size,this.format=this.options.format||this.defaults.format,this.margin=this.options.margin!==undefined?this.options.margin:this.defaults.margin;var n=parseInt(this.hash.substr(-7),16)/268435455,i=this.options.saturation||this.defaults.saturation,r=this.options.brightness||this.defaults.brightness;this.foreground=this.options.foreground||this.hsl2rgb(n,i,r)};t.prototype={background:null,foreground:null,hash:null,margin:null,size:null,format:null,image:function(){return this.isSvg()?new n(this.size,this.foreground,this.background):new e(this.size,this.size,256)},render:function(){var e,t,n=this.image(),i=this.size,r=Math.floor(i*this.margin),o=Math.floor((i-2*r)/5),a=Math.floor((i-5*o)/2),s=n.color.apply(n,this.background),l=n.color.apply(n,this.foreground);for(e=0;e<15;e++)t=parseInt(this.hash.charAt(e),16)%2?s:l,e<5?this.rectangle(2*o+a,e*o+a,o,o,t,n):e<10?(this.rectangle(1*o+a,(e-5)*o+a,o,o,t,n),
this.rectangle(3*o+a,(e-5)*o+a,o,o,t,n)):e<15&&(this.rectangle(0*o+a,(e-10)*o+a,o,o,t,n),this.rectangle(4*o+a,(e-10)*o+a,o,o,t,n));return n},rectangle:function(e,t,n,i,r,o){if(this.isSvg())o.rectangles.push({x:e,y:t,w:n,h:i,color:r});else{var a,s;for(a=e;a<e+n;a++)for(s=t;s<t+i;s++)o.buffer[o.index(a,s)]=r}},hsl2rgb:function(e,t,n){return e*=6,t=[n+=t*=n<.5?n:1-n,n-e%1*t*2,n-=t*=2,n,n+e%1*t,n+t],[255*t[~~e%6],255*t[(16|e)%6],255*t[(8|e)%6]]},toString:function(e){return e?this.render().getDump():this.render().getBase64()},isSvg:function(){return this.format.match(/svg/i)}};var n=function(e,t,n){this.size=e,this.foreground=this.color.apply(this,t),this.background=this.color.apply(this,n),this.rectangles=[]};n.prototype={size:null,foreground:null,background:null,rectangles:null,color:function(e,t,n,i){var r=[e,t,n].map(Math.round);return r.push(i>=0&&i<=255?i/255:1),"rgba("+r.join(",")+")"},getDump:function(){var e,t,n,i=this.foreground,r=this.background,o=.005*this.size;for(t="<svg xmlns='http://www.w3.org/2000/svg' width='"+this.size+"' height='"+this.size+"' style='background-color:"+r+";'><g style='fill:"+i+"; stroke:"+i+"; stroke-width:"+o+";'>",e=0;e<this.rectangles.length;e++)n=this.rectangles[e],n.color!=r&&(t+="<rect x='"+n.x+"' y='"+n.y+"' width='"+n.w+"' height='"+n.h+"'/>");return t+="</g></svg>"},getBase64:function(){if("function"==typeof btoa)return btoa(this.getDump());if(Buffer)return new Buffer(this.getDump(),"binary").toString("base64");throw"Cannot generate base64 output"}},"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=t:window.Identicon=t}(),function(e,t,n){function i(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return d[e.which]?d[e.which]:f[e.which]?f[e.which]:String.fromCharCode(e.which).toLowerCase()}function o(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}function a(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function s(e,t){var n,i,r,o=[];for(n=e,"+"===n?n=["+"]:(n=n.replace(/\+{2}/g,"+plus"),n=n.split("+")),r=0;r<n.length;++r)i=n[r],h[i]&&(i=h[i]),t&&"keypress"!=t&&p[i]&&(i=p[i],o.push("shift")),a(i)&&o.push(i);if(n=i,!(r=t)){if(!c){c={};for(var s in d)95<s&&112>s||d.hasOwnProperty(s)&&(c[d[s]]=s)}r=c[n]?"keydown":"keypress"}return"keypress"==r&&o.length&&(r="keydown"),{key:i,modifiers:o,action:r}}function l(e,n){return null!==e&&e!==t&&(e===n||l(e.parentNode,n))}function u(e){function n(e){e=e||{};var t,n=!1;for(t in m)e[t]?n=!0:m[t]=0;n||(b=!1)}function l(e,t,n,i,r,o){var s,l,u=[],c=n.type;if(!h._callbacks[e])return[];for("keyup"==c&&a(e)&&(t=[e]),s=0;s<h._callbacks[e].length;++s)if(l=h._callbacks[e][s],(i||!l.seq||m[l.seq]==l.level)&&c==l.action){var d;(d="keypress"==c&&!n.metaKey&&!n.ctrlKey)||(d=l.modifiers,d=t.sort().join(",")===d.sort().join(",")),d&&(d=i&&l.seq==i&&l.level==o,(!i&&l.combo==r||d)&&h._callbacks[e].splice(s,1),u.push(l))}return u}function c(e,t,n,i){h.stopCallback(t,t.target||t.srcElement,n,i)||!1!==e(t,n)||(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=r(e);t&&("keyup"==e.type&&y===t?y=!1:h.handleKey(t,o(e),e))}function f(e,t,i,o){function a(t){return function(){b=t,++m[e],clearTimeout(g),g=setTimeout(n,1e3)}}function l(t){c(i,t,e),"keyup"!==o&&(y=r(t)),setTimeout(n,10)}for(var u=m[e]=0;u<t.length;++u){var d=u+1===t.length?l:a(o||s(t[u+1]).action);p(t[u],d,o,e,u)}}function p(e,t,n,i,r){h._directMap[e+":"+n]=t,e=e.replace(/\s+/g," ");var o=e.split(" ");1<o.length?f(e,o,t,n):(n=s(e,n),h._callbacks[n.key]=h._callbacks[n.key]||[],l(n.key,n.modifiers,{type:n.action},i,e,r),h._callbacks[n.key][i?"unshift":"push"]({callback:t,modifiers:n.modifiers,action:n.action,seq:i,level:r,combo:e}))}var h=this;if(e=e||t,!(h instanceof u))return new u(e);h.target=e,h._callbacks={},h._directMap={};var g,m={},y=!1,v=!1,b=!1;h._handleKey=function(e,t,i){var r,o=l(e,t,i);t={};var s=0,u=!1;for(r=0;r<o.length;++r)o[r].seq&&(s=Math.max(s,o[r].level));for(r=0;r<o.length;++r)o[r].seq?o[r].level==s&&(u=!0,t[o[r].seq]=1,c(o[r].callback,i,o[r].combo,o[r].seq)):u||c(o[r].callback,i,o[r].combo);o="keypress"==i.type&&v,i.type!=b||a(e)||o||n(t),v=u&&"keydown"==i.type},h._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)p(e[i],t,n)},i(e,"keypress",d),i(e,"keydown",d),i(e,"keyup",d)}if(e){var c,d={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},p={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},h={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"};for(n=1;20>n;++n)d[111+n]="f"+n;for(n=0;9>=n;++n)d[n+96]=n.toString();u.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},u.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},u.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},u.prototype.reset=function(){return this._callbacks={},this._directMap={},this},u.prototype.stopCallback=function(e,t){return!(-1<(" "+t.className+" ").indexOf(" mousetrap ")||l(t,this.target))&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable)},u.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},u.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(d[t]=e[t]);c=null},u.init=function(){var e,n=u(t);for(e in n)"_"!==e.charAt(0)&&(u[e]=function(e){return function(){return n[e].apply(n,arguments)}}(e))},u.init(),e.Mousetrap=u,"undefined"!=typeof module&&module.exports&&(module.exports=u),"function"==typeof define&&define.amd&&define(function(){return u})}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(t){return e[t]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=i(n(1)),l=i(n(3)),u=i(n(4)),c=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.resolveOptions(n),i.listenClick(t),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,l["default"]),a(e,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===o(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,u["default"])(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s["default"]({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return r("action",e)}},{key:"defaultTarget",value:function(e){var t=r("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return r("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),e}();e.exports=c},function(e,t,n){"use strict";var i,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(2),s=(i=a)&&i.__esModule?i:{"default":i},l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s["default"])(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s["default"])(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=l},function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}},function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function i(){r.off(e,i),t.apply(n,arguments)}var r=this;return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,a=i.length;o<a;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},e.exports=t},function(e,t,n){var i=n(5),r=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return f=t,p=n,(d=e).addEventListener(f,p),{destroy:function(){d.removeEventListener(f,p)}};if(i.nodeList(e))return l=e,u=t,c=n,Array.prototype.forEach.call(l,function(e){e.addEventListener(u,c)}),{destroy:function(){Array.prototype.forEach.call(l,function(e){e.removeEventListener(u,c)})}};if(i.string(e))return o=e,a=t,s=n,r(document.body,o,a,s);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,a,s,l,u,c,d,f,p}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function i(e,t,n,i,o){var a=function(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}var r=n(7);e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,o)}))}},function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])});var gollumRoutes=$.parseJSON('{"assets":"/gollum/assets","last_commit_info":"/gollum/last_commit_info","latest_changes":"/gollum/latest_changes","upload_file":"/gollum/upload_file","create":"/gollum/create","delete":"/gollum/delete","edit":"/gollum/edit","overview":"/gollum/overview","history":"/gollum/history","rename":"/gollum/rename","revert":"/gollum/revert","preview":"/gollum/preview","compare":"/gollum/compare","search":"/gollum/search"}');$(document).ready(function(){function e(){var e=new FormData($("#gollum-editor-form").get(0)),t=window.location.pathname.split("/"),n=window.location.hash.substr(1);e.append("page",t[t.length-1]||""),$.ajax({url:routePath("preview"),data:e,type:"POST",processData:!1,contentType:!1,success:function(e){var t=$("#wiki-wrapper",e);$(".tabnav-div#preview-content").html(t),preparePage(),n&&(sectionHeading=$("a#"+n+".anchor")[0])&&sectionHeading.scrollIntoView(),null!=window.MathJax&&window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub,"preview-content"])},error:function(e,t,n){console.log("something went wrong: "+t+n)}})}function t(e){e?(active_div="#preview-content",active_tab="#preview.tabnav-tab"):(active_div="#edit-content",active_tab="#edit.tabnav-tab"),$(".tabnav-tab.selected").removeClass("selected"),$(active_tab).addClass("selected"),$(".tabnav-div").hide(),$(active_div).show()}$("#delete-link").click(function(e){confirm($(this).data("confirm"))&&$.post(routePath("delete")+"/"+pageFullPath,{},function(){window.location="/"}),e.preventDefault()}),$(".delete-file").click(function(e){if(confirm($(this).data("confirm"))){var t=$(this);$.post(routePath("delete")+"/"+$(this).data("file-path"),{},function(){t.closest("li").remove()})}e.preventDefault()}),$.browser.mozilla?$("body").addClass("ff"):$.browser.webkit?$("body").addClass("webkit"):$.browser.msie&&($("body").addClass("ie"),"7.0"==$.browser.version?$("body").addClass("ie7"):"8.0"==$.browser.version&&$("body").addClass("ie8")),$("#minibutton-upload-page").length&&(new ClipboardJS("#ClipboardJSlink"),$("#minibutton-upload-page").parent().removeClass("jaws"),$("#minibutton-upload-page").click(function(e){e.preventDefault(),$.GollumDialog.init({title:"Upload File",fields:[{type:"file",context:"Your uploaded file will be accessible at<br>/"+uploadDest+"/[filename]",action:routePath("upload_file")}],OK:function(){$("#wiki-content").addClass("uploading");var e=new FormData($("#upload").get(0)),t=$("#upload").attr("action");$.ajax({url:t,type:"POST",data:e,processData:!1,contentType:!1,success:function(){$("#wiki-content").removeClass("uploading"),flashNotice("success","Your file was successfully uploaded.")},error:function(e,t,n){$("#wiki-content").removeClass("uploading"),409==e.status?flashNotice("error","The file you tried to upload already exists. Please rename the file and try again."):flashNotice("error","Error uploading file: "+t+" "+n)}})}}),$("#gollum-dialog-action-ok").attr("disabled",!0),$("input:file").on("change",function(){$(this).val()&&(filename=$("input[type=file]").val().split("\\").pop(),upload_path="/"+uploadDest+"/"+filename,clipboard_button='<button class="btn btn-sm mb-2" id="ClipboardJSlink" data-clipboard-text="'+upload_path+'"><svg class="octicon octicon-clippy" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"/></svg></button>',news="Your uploaded file will be accessible at<br>"+clipboard_button+"&nbsp;"+upload_path,$(".context").html(news),$("#gollum-dialog-action-ok").attr("disabled",!1))})})),$("#minibutton-rename-page").length&&($("#minibutton-rename-page").parent().removeClass("jaws"),$("#minibutton-rename-page").click(function(e){e.preventDefault();var t=decodeURI(pagePath()),n=decodeURI(pageName()),i="Renamed page will be under <span class='path'>"+htmlEscape(cleanPath(t))+"</span> unless an absolute path is given.";$.GollumDialog.init({title:"Rename Page",fields:[{id:"name",name:"Rename to",type:"text",defaultValue:n||"",context:i}],OK:function(e){var i="Rename Page";e.name&&(i=e.name);var r=abspath(t,i),o=r[0],a="/"+t==o?"Renamed "+n+" to "+i:"Renamed "+n+" to "+r.join("/"),s=$("form[name=rename]");s.children("input[name=rename]").val(r.join("/")),s.children("input[name=message]").val(a),s.submit()}})})),$("#minibutton-new-page").length&&($("#minibutton-new-page").parent().removeClass("jaws"),$("#minibutton-new-page").click(function(e){e.preventDefault();var t=pagePath();t===undefined&&0!=$("#file-browser").length&&(t=window.location.pathname.replace(routePath("overview"),""));var n="Page will be created under <span class='path'>"+htmlEscape(cleanPath(t))+"</span> unless an absolute path is given.";$.GollumDialog.init({title:"Create New Page",fields:[{id:"name",name:"Page Name",type:"text",defaultValue:"",context:n}],OK:function(e){var n="New Page";e.name&&(n=e.name);for(var i=[],r=abspath(t,n).join("/").split("/"),o=0;o<r.length;o++)i.push(encodeURIComponent(r[o]));window.location=routePath("create")+i.join("/")}})})),$("#wiki-wrapper").hasClass("history")&&($("#wiki-history td.checkbox input").each(function(){$(this).click(function(){nodeSelector.checkNode($(this))}),$(this).is(":checked")&&nodeSelector.checkNode($(this))}),$(".history button.action-compare-revision").length&&$(".history button.action-compare-revision").click(function(){$("#selection-form").submit()})),$("#searchbar a#search-submit").length&&($.GollumPlaceholder.add($("#searchbar #search-query")),$("#searchbar a#search-submit").click(function(e){e.preventDefault(),$("#searchbar #search-form")[0].submit()}),$("#searchbar #search-form").submit(function(){$.GollumPlaceholder.clearAll(),$(this).unbind("submit"),$(this).submit()})),$("#gollum-revert-form").length&&$(".gollum-revert-button").length&&$("a.gollum-revert-button").click(function(e){e.preventDefault(),$("#gollum-revert-form").submit()}),$(".tabnav-tabs").length&&$(".tabnav-tab").click(function(n){n.preventDefault(),$(this).hasClass("selected")||(preview="preview"==$(this).attr("id"),preview&&e(),t(preview))});var n=function(){return $(".tabnav-tab").not(".selected").click(),!1},i=[{name:"saveContents",bindKey:{win:"Ctrl-s",mac:"Command-s"},exec:function(){$("#gollum-editor-submit").trigger("click")}},{name:"togglePreview",bindKey:{win:"ctrl-shift-p",mac:"ctrl-shift-p"},exec:n}];if(($("#wiki-wrapper.edit").length||$("#wiki-wrapper.create").length)&&Mousetrap.bind(["ctrl+shift+p"],n),$("#wiki-wrapper.edit").length&&($("#gollum-editor-submit").click(function(){window.onbeforeunload=null}),$("#gollum-editor-body").one("change",function(){window.onbeforeunload=function(){return"Leaving will discard all edits!"}}),$.GollumEditor({section:window.location.hash.substr(1),commands:i}),$("#gollum-editor-submit").click(function(e){e.preventDefault(),$(this).attr("disabled",!0);var t=new FormData($("#gollum-editor-form").get(0)),n="."+$("#wiki_format option:selected").attr("data-ext"),i=cleanPath(prefixBaseUrl(pagePath()+"/"+pageName()+n)),r=$("#gollum-editor-form").attr("action");$.ajax({url:r,type:"POST",data:t,processData:!1,contentType:!1,success:function(){window.location=i},error:function(e,t,n){412==e.status?($("#gollum-editor-submit").attr("disabled",!1),alert("Someone else has modified this page while you were editing it. Please store your version on disk outside of the browser, reload this page and reapply your modifications.")):alert("Error updating page: "+t+" "+n)}})})),$("#page-history").length&&$("#page-history #pagination").length){var r=2,o=["bg-green-light","bg-red-light"],a=function(){var e=0;$("#selection-form input").each(function(t,n){var i=$(n).val(),r=$('#version-form input[value="'+i+'"]');r.prop("checked",!0),0==t?r.closest("li").removeClass(o[1]).addClass(o[t]):1==t&&r.closest("li").addClass(o[t]),e+=1}),e<1?$(".history button.action-compare-revision").prop("disabled",!0):e<r?($(".history button.action-compare-revision").prop("disabled",!1),$("#version-form input").prop("disabled",!1)):$("#version-form input:not(:checked)").prop("disabled",!0)},s=function(e){$("<input>").attr({type:"hidden",id:$(e).val(),name:"versions[]",value:$(e).val()}).appendTo($("#selection-form")),a()},l=function(e){$("#selection-form #"+$(e).val()).remove(),$(e).closest("li").removeClass(o.join(" ")),a()},u=function(){$("#version-form input").on("change",function(){this.checked?s(this):l(this)})};u(),a();var c=function(e){e.preventDefault(),$(this).hasClass("disabled")||$.ajax({url:$(this).attr("href"),type:"GET",success:function(e){var t=$("#page-history-list",e),n=$("#pagination",e);["#next","#prev"].forEach(function(e){old_btn=$("#pagination "+e),new_btn=n.find(e),old_btn.attr("href",new_btn.attr("href")),new_btn.hasClass("disabled")?old_btn.addClass("disabled"):old_btn.removeClass("disabled")}),$("#page-history-list").replaceWith(t),u(),a()},error:function(e,t,n){console.log("something went wrong: "+t+n)}}),this.blur()};$("#pagination #next, #pagination #prev").each(function(e,t){$(t).on("click",c)})}if($("#last-edit").length&&$("#page-info-toggle").click(function(){$.ajax({url:routePath("last_commit_info"),data:{path:$("#page-info-toggle").data("pagepath")},success:function(e){$("#last-edit").next(".dotted-spinner").toggleClass("hidden"),$("#last-edit-in-progress").html("Last edited by <b>"+e.author+"</b>, "+e.date)}}),$("#last-edit").next(".dotted-spinner").toggleClass("hidden"),$("#page-info-toggle").before('<span id="last-edit-in-progress">&nbsp;Getting commit info...</span>').remove()}),$("#wiki-wrapper.create").length&&($("#gollum-editor-submit").click(function(){window.onbeforeunload=null}),$("#gollum-editor-body").one("change",function(){window.onbeforeunload=function(){return"Leaving will not create a new page!"}}),$.GollumEditor({NewFile:!0,MarkupType:default_markup,commands:i})),$("#search-results").length){$(".toggle-context").each(function(){var e=$(this).parent().next("div.search-context").find("li:hidden");e.length?$(this).click(function(){e.toggle(),$(this).toggle()}):$(this).toggle()});var d=new RegExp(searchTerms.join("|"),"gi");$("div.search-context li span").each(function(){var e=$(this).html().replace(/"/g,"&quot;").replace(/'/g,"&#39;"),t=e.replace(d,function(e){return'<span class="bg-green-light">'+e+"</span>"});$(this).html(t)})}if($(".markdown-body").length&&(preparePage(),(match=new RegExp(/[?&]redirected\_from=([^?]*)/).exec(window.location.href))&&(notice="The page you requested was renamed or moved. You've been successfully redirected to its new location.",flashNotice("success",notice)),Mousetrap.bind(["e"],function(e){return e.preventDefault(),window.location=routePath("edit")+"/"+pageFullPath,!1}),$.markupSupportsEditableSections(pageFormat)&&$("a.anchor").each(function(e,t){if(header=$(t).closest(":header"),header.hasClass("editable")){var n=routePath("edit")+"/"+pageFullPath+$(t).attr("href");$(t).clone().addClass("edit").attr("href",n).appendTo(header)}})),$("#wiki-history").length||$("#page-history").length){var f={format:"svg",background:[255,255,255,255]};$("img.identicon").each(function(e,t){var n=$(t),i=n.data("identicon"),r=new Identicon(i,f).toString();r="data:image/svg+xml;base64,"+r,n.attr("src",r)})}}),function(e){var t={debugOn:!1,markupCreated:!1,markup:"",currentAspect:function(){return window.innerWidth<480?"small-mobile":"fixed"==e("#gollum-dialog-dialog").css("position")?"large-mobile":"desktop"},attachEvents:function(n){e("#gollum-dialog-action-ok").click(function(e){t.eventOK(e,n)}),e("#gollum-dialog-action-cancel").click(t.eventCancel),e('#gollum-dialog-dialog input[type="text"]').keydown(function(e){13==e.keyCode&&t.eventOK(e,n)})},detachEvents:function(){e("#gollum-dialog-action-ok").unbind("click"),e("#gollum-dialog-action-cancel").unbind("click")},createFieldMarkup:function(e){for(var n="<fieldset>",i=0;i<e.length;i++)if("object"==typeof e[i]){switch(n+='<div class="field">',e[i].type){case"text":n+=t.createFieldText(e[i]);break;case"file":n+=t.createFieldFile(e[i])}n+="</div>"}return n+="</fieldset>"},createFieldText:function(e){var t="";return e.name&&(t+="<label",e.id&&(t+=' for="gollum-dialog-dialog-generated-field-'+e.id+'"'),t+=">"+e.name+"</label>"),t+='<input type="text" class="form-control input-sm width-full"',e.id&&(t+=' name="'+e.id+'"',"code"==e.type&&(t+=' class="code"'),e.defaultValue&&(t+=' value="'+e.defaultValue.split('"').join("&quot;")+'"'),t+=' id="gollum-dialog-dialog-generated-field-'+e.id+'">'),e.context&&(t+='<span class="context">'+e.context+"</span>"),t},createFieldFile:function(e){var t="",n=e.id||"upload",i=e.name||"file";return t+='<form method=post enctype="multipart/form-data" action="'+(e.action||routePath("upload_file"))+'" id="'+n+'">',t+='<input type=file name="'+i+'" class="form-control width-full">',t+="</form>",e.context&&(t+='<span class="context">'+e.context+"</span>"),t},createMarkup:function(e,n){return t.markupCreated=!0,'<div id="gollum-dialog-dialog"><div id="gollum-dialog-dialog-inner" class="border rounded-1"><div id="gollum-dialog-dialog-title"><h4>'+e+'</h4></div><div id="gollum-dialog-dialog-body">'+n+'</div><div id="gollum-dialog-dialog-buttons" class="pt-2 float-right"><button name="Cancel" id="gollum-dialog-action-cancel" class="btn">Cancel</button><span class="px-1"></span><button name="OK" id="gollum-dialog-action-ok" class="btn btn-primary">OK</button></div></div></div>'},eventCancel:function(e){e.preventDefault(),n("Cancelled dialog."),t.hide()},eventOK:function(n,i){n.preventDefault();var r=[];e("#gollum-dialog-dialog-body input").each(function(){r[e(this).attr("name")]=e(this).val()}),i&&"function"==typeof i&&i(r),t.hide()},hide:function(){e.browser.msie?(e("#gollum-dialog-dialog").hide().removeClass("active"),e("select").css("visibility","visible")):(e("#gollum-dialog-dialog").animate({opacity:0},{duration:200,complete:function(){e("#gollum-dialog-dialog").removeClass("active"),e("#gollum-dialog-dialog").css("display","none")}}),e(window).unbind("resize",t.resize))},init:function(i){var r="",o="";if(!i||"object"!=typeof i)return void n("Editor Dialog: Cannot init; invalid init object");i.body&&"string"==typeof i.body&&(o="<p>"+i.body+"</p>"),i.fields&&"object"==typeof i.fields&&(o+=t.createFieldMarkup(i.fields)),i.title&&"string"==typeof i.title&&(r=i.title),t.markupCreated&&e("#gollum-dialog-dialog").remove(),t.markup=t.createMarkup(r,o),e("body").append(t.markup),i.OK&&"function"==typeof i.OK&&t.attachEvents(i.OK),t.show()},show:function(){t.markupCreated?(n("Showing dialog"),e.browser.msie?(e("#gollum-dialog.dialog").addClass("active"),t.position(),e("select").css("visibility","hidden")):(e("#gollum-dialog.dialog").css("display","none"),e("#gollum-dialog-dialog").animate({opacity:0},{duration:0,complete:function(){e("#gollum-dialog-dialog").css("display","block"),t.position(),e("#gollum-dialog-dialog").animate({opacity:1},{duration:500}),e(e('#gollum-dialog-dialog input[type="text"]').get(0)).focus()}})),e(window).bind("resize",t.resize)):n("Dialog: No markup to show. Please use init first.")},resize:function(){t.position()},position:function(){if("small-mobile"==t.currentAspect())e("#gollum-dialog-dialog-inner").css("height","100%").css("margin-top","auto");else if("large-mobile"==t.currentAspect())e("#gollum-dialog-dialog-inner").css("height","auto").css("margin-top","auto");else if("desktop"==t.currentAspect()){
var n=e("#gollum-dialog-dialog-inner").height();e("#gollum-dialog-dialog-inner").css("height",n+"px").css("margin-top",-1*parseInt(n/2))}}},n=function(e){t.debugOn&&"undefined"!=typeof console&&console.log(e)};e.GollumDialog=t}(jQuery),function(e){var t={_PLACEHOLDERS:[],_p:function(t){this.fieldObject=t,this.placeholderText=t.val();var n=t.val();t.addClass("ph"),t.blur(function(){""==e(this).val()&&(e(this).val(n),e(this).addClass("ph"))}),t.focus(function(){e(this).removeClass("ph"),e(this).val()==n?e(this).val(""):e(this)[0].select()})},add:function(e){t._PLACEHOLDERS.push(new t._p(e))},clearAll:function(){for(var e=0;e<t._PLACEHOLDERS.length;e++)t._PLACEHOLDERS[e].fieldObject.val()==t._PLACEHOLDERS[e].placeholderText&&t._PLACEHOLDERS[e].fieldObject.val("")},exists:function(){return _PLACEHOLDERS.length}};e.GollumPlaceholder=t}(jQuery),function(e){function t(e){var t=window.ace_editor.getSession();return tokens=t.getTokens(e),section=tokens.filter(function(e){return e.type.startsWith("markup.heading")})[0],header=tokens.filter(function(e){return/^(heading)|(text)$/.test(e.type)})[0],[section,header]}function n(e,t,n){if(!n||!n["find-header-line"])return[];var i=n["find-header-line"](e,t);return null==i?[]:[i[0],i[1]]}function r(e){return e.trim().replace(/[^a-z0-9_\s]/gi," ").replace(/\s\s+/g," ").split(/\s/).join("-").replace(/^-/,"").toLowerCase()}e.markupSupportsEditableSections=function(e){return["markdown","textile","asciidoc","rst"].includes(e)},e.findSection=function(e,o){var a={};for(i=0;i<window.ace_editor.getSession().getLength();i++){var s=null,l=t(i),u=l[0],c=l[1];if(u){if(c)c=c.value,s=i;else{var d=n(i,u.value,o);if(!d.length)continue;c=d[0],s=d[1]}if(c=r(c),(index=a[c])?(c=c+"-"+index.toString(),a[c]=index+1):a[c]=1,c==e)return s}}return null}}(jQuery),function(e){function t(e){var t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,r=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight}function n(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height}function i(e){var i=this;t(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=l(function(){n(i)&&(i.__resizeLast__.width=i.offsetWidth,i.__resizeLast__.height=i.offsetHeight,i.__resizeListeners__.forEach(function(t){t.call(i,e)}))})}function r(){if(!a){var e=(b||"")+".resize-triggers { "+(w||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n),a=!0}}var o=document.attachEvent,a=!1,s=e.fn.resize;if(e.fn.resize=function(e){return this.each(function(){this==window?s.call(jQuery(this),e):addResizeListener(this,e)})},e.fn.removeResize=function(e){return this.each(function(){removeResizeListener(this,e)})},!o){var l=function(){var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)};return function(t){return e(t)}}(),u=function(){var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout;return function(t){return e(t)}}(),c=!1,d="",f="animationstart",p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g="",m=document.createElement("fakeelement");if(m.style.animationName!==undefined&&(c=!0),!1===c)for(var y=0;y<p.length;y++)if(m.style[p[y]+"AnimationName"]!==undefined){g=p[y],g+"Animation",d="-"+g.toLowerCase()+"-",f=h[y],c=!0;break}var v="resizeanim",b="@"+d+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",w=d+"animation: 1ms "+v+"; "}window.addResizeListener=function(e,n){o?e.attachEvent("onresize",n):(e.__resizeTriggers__||("static"==getComputedStyle(e).position&&(e.style.position="relative"),r(),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=document.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),t(e),e.addEventListener("scroll",i,!0),f&&e.__resizeTriggers__.addEventListener(f,function(n){n.animationName==v&&t(e)})),e.__resizeListeners__.push(n))},window.removeResizeListener=function(e,t){o?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",i),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))}}(jQuery);