/*! jQuery v2.2.0 | (c) jQuery Foundation | jquery.org/license */
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){var n=[],o=e.document,r=n.slice,i=n.concat,a=n.push,s=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d={},p="2.2.0",f=function(e,t){return new f.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,g=/^-ms-/,m=/-([\da-z])/gi,v=function(e,t){return t.toUpperCase()};function y(e){var t=!!e&&"length"in e&&e.length,n=f.type(e);return"function"!==n&&!f.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}f.fn=f.prototype={jquery:p,constructor:f,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=f.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return f.each(this,e)},map:function(e){return this.pushStack(f.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},f.extend=f.fn.extend=function(){var e,t,n,o,r,i,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||f.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(o=e[t])&&(u&&o&&(f.isPlainObject(o)||(r=f.isArray(o)))?(r?(r=!1,i=n&&f.isArray(n)?n:[]):i=n&&f.isPlainObject(n)?n:{},a[t]=f.extend(u,i,o)):void 0!==o&&(a[t]=o));return a},f.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===f.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!f.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){return"object"===f.type(e)&&!e.nodeType&&!f.isWindow(e)&&!(e.constructor&&!c.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=f.trim(e))&&(1===e.indexOf("use strict")?((t=o.createElement("script")).text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(g,"ms-").replace(m,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,o=0;if(y(e))for(n=e.length;n>o&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(y(Object(e))?f.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;n>o;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o=[],r=0,i=e.length,a=!n;i>r;r++)!t(e[r],r)!==a&&o.push(e[r]);return o},map:function(e,t,n){var o,r,a=0,s=[];if(y(e))for(o=e.length;o>a;a++)null!=(r=t(e[a],a,n))&&s.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&s.push(r);return i.apply([],s)},guid:1,proxy:function(e,t){var n,o,i;return"string"==typeof t&&(n=e[t],t=e,e=n),f.isFunction(e)?(o=r.call(arguments,2),i=function(){return e.apply(t||this,o.concat(r.call(arguments)))},i.guid=e.guid=e.guid||f.guid++,i):void 0},now:Date.now,support:d}),"function"==typeof Symbol&&(f.fn[Symbol.iterator]=n[Symbol.iterator]),f.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var w=function(e){var t,n,o,r,i,a,s,l,u,c,d,p,f,h,g,m,v,y,w,b="sizzle"+1*new Date,x=e.document,C=0,T=0,k=ie(),I=ie(),S=ie(),D=function(e,t){return e===t&&(d=!0),0},A=1<<31,E={}.hasOwnProperty,P=[],N=P.pop,L=P.push,R=P.push,_=P.slice,j=function(e,t){for(var n=0,o=e.length;o>n;n++)if(e[n]===t)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",B="\\["+H+"*("+q+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+H+"*\\]",O=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",$=new RegExp(H+"+","g"),F=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),V=new RegExp("^"+H+"*,"+H+"*"),G=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),U=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),W=new RegExp(O),Q=new RegExp("^"+q+"$"),z={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),ne=function(e,t,n){var o="0x"+t-65536;return o!=o||n?t:0>o?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},oe=function(){p()};try{R.apply(P=_.call(x.childNodes),x.childNodes),P[x.childNodes.length].nodeType}catch(e){R={apply:P.length?function(e,t){L.apply(e,_.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function re(e,t,o,r){var i,s,u,c,d,h,v,y,C=t&&t.ownerDocument,T=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return o;if(!r&&((t?t.ownerDocument||t:x)!==f&&p(t),t=t||f,g)){if(11!==T&&(h=Y.exec(e)))if(i=h[1]){if(9===T){if(!(u=t.getElementById(i)))return o;if(u.id===i)return o.push(u),o}else if(C&&(u=C.getElementById(i))&&w(t,u)&&u.id===i)return o.push(u),o}else{if(h[2])return R.apply(o,t.getElementsByTagName(e)),o;if((i=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(o,t.getElementsByClassName(i)),o}if(n.qsa&&!S[e+" "]&&(!m||!m.test(e))){if(1!==T)C=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=b),s=(v=a(e)).length,d=Q.test(c)?"#"+c:"[id='"+c+"']";s--;)v[s]=d+" "+ge(v[s]);y=v.join(","),C=Z.test(e)&&fe(t.parentNode)||t}if(y)try{return R.apply(o,C.querySelectorAll(y)),o}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return l(e.replace(F,"$1"),t,o,r)}function ie(){var e=[];return function t(n,r){return e.push(n+" ")>o.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ae(e){return e[b]=!0,e}function se(e){var t=f.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),r=n.length;r--;)o.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return ae(function(t){return t=+t,ae(function(n,o){for(var r,i=e([],n.length,t),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))})})}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=re.support={},i=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=re.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:x;return a!==f&&9===a.nodeType&&a.documentElement?(h=(f=a).documentElement,g=!i(f),(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=se(function(e){return h.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length}),n.getById?(o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&o.push(n);return o}return i},o.find.CLASS=n.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&g?t.getElementsByClassName(e):void 0},v=[],m=[],(n.qsa=J.test(f.querySelectorAll))&&(se(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+H+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),se(function(e){var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+H+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&se(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",O)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(h.compareDocumentPosition),w=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return d=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===o?e===f||e.ownerDocument===x&&w(x,e)?-1:t===f||t.ownerDocument===x&&w(x,t)?1:c?j(c,e)-j(c,t):0:4&o?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e===f?-1:t===f?1:r?-1:i?1:c?j(c,e)-j(c,t):0;if(r===i)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?ue(a[o],s[o]):a[o]===x?-1:s[o]===x?1:0},f):f},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(U,"='$1']"),n.matchesSelector&&g&&!S[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var o=y.call(e,t);if(o||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){}return re(t,f,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),w(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var r=o.attrHandle[t.toLowerCase()],i=r&&E.call(o.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,o=[],r=0,i=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),d){for(;t=e[i++];)t===e[i]&&(r=o.push(i));for(;r--;)e.splice(o[r],1)}return c=null,e},r=re.getText=function(e){var t,n="",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[o++];)n+=r(t);return n},o=re.selectors={cacheLength:50,createPseudo:ae,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(o){var r=re.attr(o,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,p,f,h,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,w=!1;if(m){if(i){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(w=(f=(u=(c=(d=(p=m)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===C&&u[1])&&u[2],p=f&&m.childNodes[f];p=++f&&p&&p[g]||(w=f=0)||h.pop();)if(1===p.nodeType&&++w&&p===t){c[e]=[C,f,w];break}}else if(y&&(w=f=(u=(c=(d=(p=t)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===C&&u[1]),!1===w)for(;(p=++f&&p&&p[g]||(w=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++w||(y&&((c=(d=p[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[C,w]),p!==t)););return(w-=r)===o||w%o===0&&w/o>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var o,i=r(e,t),a=i.length;a--;)e[o=j(e,i[a])]=!(n[o]=i[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ae(function(e){var t=[],n=[],o=s(e.replace(F,"$1"));return o[b]?ae(function(e,t,n,r){for(var i,a=o(e,null,r,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return re(e,t).length>0}}),contains:ae(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:ae(function(e){return Q.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[0>n?n+t:n]}),even:pe(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var o=0>n?n+t:n;--o>=0;)e.push(o);return e}),gt:pe(function(e,t,n){for(var o=0>n?n+t:n;++o<t;)e.push(o);return e})}},o.pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})o.pseudos[t]=de(t);function he(){}function ge(e){for(var t=0,n=e.length,o="";n>t;t++)o+=e[t].value;return o}function me(e,t,n){var o=t.dir,r=n&&"parentNode"===o,i=T++;return t.first?function(t,n,i){for(;t=t[o];)if(1===t.nodeType||r)return e(t,n,i)}:function(t,n,a){var s,l,u,c=[C,i];if(a){for(;t=t[o];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[o];)if(1===t.nodeType||r){if((s=(l=(u=t[b]||(t[b]={}))[t.uniqueID]||(u[t.uniqueID]={}))[o])&&s[0]===C&&s[1]===i)return c[2]=s[2];if(l[o]=c,c[2]=e(t,n,a))return!0}}}function ve(e){return e.length>1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function ye(e,t,n,o,r){for(var i,a=[],s=0,l=e.length,u=null!=t;l>s;s++)(i=e[s])&&(!n||n(i,o,r))&&(a.push(i),u&&t.push(s));return a}function we(e,t,n,o,r,i){return o&&!o[b]&&(o=we(o)),r&&!r[b]&&(r=we(r,i)),ae(function(i,a,s,l){var u,c,d,p=[],f=[],h=a.length,g=i||function(e,t,n){for(var o=0,r=t.length;r>o;o++)re(e,t[o],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?g:ye(g,p,e,s,l),v=n?r||(i?e:h||o)?[]:a:m;if(n&&n(m,v,s,l),o)for(u=ye(v,f),o(u,[],s,l),c=u.length;c--;)(d=u[c])&&(v[f[c]]=!(m[f[c]]=d));if(i){if(r||e){if(r){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(m[c]=d);r(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=r?j(i,d):p[c])>-1&&(i[u]=!(a[u]=d))}}else v=ye(v===a?v.splice(h,v.length):v),r?r(null,a,v,l):R.apply(a,v)})}function be(e){for(var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=me(function(e){return e===t},s,!0),d=me(function(e){return j(t,e)>-1},s,!0),p=[function(e,n,o){var r=!a&&(o||n!==u)||((t=n).nodeType?c(e,n,o):d(e,n,o));return t=null,r}];i>l;l++)if(n=o.relative[e[l].type])p=[me(ve(p),n)];else{if((n=o.filter[e[l].type].apply(null,e[l].matches))[b]){for(r=++l;i>r&&!o.relative[e[r].type];r++);return we(l>1&&ve(p),l>1&&ge(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(F,"$1"),n,r>l&&be(e.slice(l,r)),i>r&&be(e=e.slice(r)),i>r&&ge(e))}p.push(n)}return ve(p)}function xe(e,t){var n=t.length>0,r=e.length>0,i=function(i,a,s,l,c){var d,h,m,v=0,y="0",w=i&&[],b=[],x=u,T=i||r&&o.find.TAG("*",c),k=C+=null==x?1:Math.random()||.1,I=T.length;for(c&&(u=a===f||a||c);y!==I&&null!=(d=T[y]);y++){if(r&&d){for(h=0,a||d.ownerDocument===f||(p(d),s=!g);m=e[h++];)if(m(d,a||f,s)){l.push(d);break}c&&(C=k)}n&&((d=!m&&d)&&v--,i&&w.push(d))}if(v+=y,n&&y!==v){for(h=0;m=t[h++];)m(w,b,a,s);if(i){if(v>0)for(;y--;)w[y]||b[y]||(b[y]=N.call(l));b=ye(b)}R.apply(l,b),c&&!i&&b.length>0&&v+t.length>1&&re.uniqueSort(l)}return c&&(C=k,u=x),w};return n?ae(i):i}return he.prototype=o.filters=o.pseudos,o.setFilters=new he,a=re.tokenize=function(e,t){var n,r,i,a,s,l,u,c=I[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=o.preFilter;s;){for(a in(!n||(r=V.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=G.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(F," ")}),s=s.slice(n.length)),o.filter)!(r=z[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?re.error(e):I(e,l).slice(0)},s=re.compile=function(e,t){var n,o=[],r=[],i=S[e+" "];if(!i){for(t||(t=a(e)),n=t.length;n--;)(i=be(t[n]))[b]?o.push(i):r.push(i);(i=S(e,xe(r,o))).selector=e}return i},l=re.select=function(e,t,r,i){var l,u,c,d,p,f="function"==typeof e&&e,h=!i&&a(e=f.selector||e);if(r=r||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&n.getById&&9===t.nodeType&&g&&o.relative[u[1].type]){if(!(t=(o.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return r;f&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(l=z.needsContext.test(e)?0:u.length;l--&&(c=u[l],!o.relative[d=c.type]);)if((p=o.find[d])&&(i=p(c.matches[0].replace(te,ne),Z.test(u[0].type)&&fe(t.parentNode)||t))){if(u.splice(l,1),!(e=i.length&&ge(u)))return R.apply(r,i),r;break}}return(f||s(e,h))(i,t,!g,r,!t||Z.test(e)&&fe(t.parentNode)||t),r},n.sortStable=b.split("").sort(D).join("")===b,n.detectDuplicates=!!d,p(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||le(M,function(e,t,n){var o;return n?void 0:!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),re}(e);f.find=w,f.expr=w.selectors,f.expr[":"]=f.expr.pseudos,f.uniqueSort=f.unique=w.uniqueSort,f.text=w.getText,f.isXMLDoc=w.isXML,f.contains=w.contains;var b=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&f(e).is(n))break;o.push(e)}return o},x=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=f.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,k=/^.[^:#\[\.,]*$/;function I(e,t,n){if(f.isFunction(t))return f.grep(e,function(e,o){return!!t.call(e,o,e)!==n});if(t.nodeType)return f.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(k.test(t))return f.filter(t,e,n);t=f.filter(t,e)}return f.grep(e,function(e){return s.call(t,e)>-1!==n})}f.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?f.find.matchesSelector(o,e)?[o]:[]:f.find.matches(e,f.grep(t,function(e){return 1===e.nodeType}))},f.fn.extend({find:function(e){var t,n=this.length,o=[],r=this;if("string"!=typeof e)return this.pushStack(f(e).filter(function(){for(t=0;n>t;t++)if(f.contains(r[t],this))return!0}));for(t=0;n>t;t++)f.find(e,r[t],o);return(o=this.pushStack(n>1?f.unique(o):o)).selector=this.selector?this.selector+" "+e:e,o},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&C.test(e)?f(e):e||[],!1).length}});var S,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=f.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||S,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof f?t[0]:t,f.merge(this,f.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),T.test(r[1])&&f.isPlainObject(t))for(r in t)f.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=o.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):f.isFunction(e)?void 0!==n.ready?n.ready(e):e(f):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),f.makeArray(e,this))};A.prototype=f.fn,S=f(o);var E=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}f.fn.extend({has:function(e){var t=f(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(f.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,o=0,r=this.length,i=[],a=C.test(e)||"string"!=typeof e?f(e,t||this.context):0;r>o;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&f.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?f.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?s.call(f(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(f.uniqueSort(f.merge(this.get(),f(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),f.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b(e,"parentNode")},parentsUntil:function(e,t,n){return b(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return b(e,"nextSibling")},prevAll:function(e){return b(e,"previousSibling")},nextUntil:function(e,t,n){return b(e,"nextSibling",n)},prevUntil:function(e,t,n){return b(e,"previousSibling",n)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return e.contentDocument||f.merge([],e.childNodes)}},function(e,t){f.fn[e]=function(n,o){var r=f.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=f.filter(o,r)),this.length>1&&(P[e]||f.uniqueSort(r),E.test(e)&&r.reverse()),this.pushStack(r)}});var L,R=/\S+/g;function _(){o.removeEventListener("DOMContentLoaded",_),e.removeEventListener("load",_),f.ready()}f.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return f.each(e.match(R)||[],function(e,n){t[n]=!0}),t}(e):f.extend({},e);var t,n,o,r,i=[],a=[],s=-1,l=function(){for(r=e.once,o=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,r&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){f.each(n,function(n,o){f.isFunction(o)?e.unique&&u.has(o)||i.push(o):o&&o.length&&"string"!==f.type(o)&&t(o)})}(arguments),n&&!t&&l()),this},remove:function(){return f.each(arguments,function(e,t){for(var n;(n=f.inArray(t,i,n))>-1;)i.splice(n,1),s>=n&&s--}),this},has:function(e){return e?f.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},f.extend({Deferred:function(e){var t=[["resolve","done",f.Callbacks("once memory"),"resolved"],["reject","fail",f.Callbacks("once memory"),"rejected"],["notify","progress",f.Callbacks("memory")]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return f.Deferred(function(n){f.each(t,function(t,i){var a=f.isFunction(e[t])&&e[t];r[i[1]](function(){var e=a&&a.apply(this,arguments);e&&f.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this===o?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?f.extend(e,o):o}},r={};return o.pipe=o.then,f.each(t,function(e,i){var a=i[2],s=i[3];o[i[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[i[0]]=function(){return r[i[0]+"With"](this===r?o:this,arguments),this},r[i[0]+"With"]=a.fireWith}),o.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,o,i=0,a=r.call(arguments),s=a.length,l=1!==s||e&&f.isFunction(e.promise)?s:0,u=1===l?e:f.Deferred(),c=function(e,n,o){return function(i){n[e]=this,o[e]=arguments.length>1?r.call(arguments):i,o===t?u.notifyWith(n,o):--l||u.resolveWith(n,o)}};if(s>1)for(t=new Array(s),n=new Array(s),o=new Array(s);s>i;i++)a[i]&&f.isFunction(a[i].promise)?a[i].promise().progress(c(i,n,t)).done(c(i,o,a)).fail(u.reject):--l;return l||u.resolveWith(o,a),u.promise()}}),f.fn.ready=function(e){return f.ready.promise().done(e),this},f.extend({isReady:!1,readyWait:1,holdReady:function(e){e?f.readyWait++:f.ready(!0)},ready:function(e){(!0===e?--f.readyWait:f.isReady)||(f.isReady=!0,!0!==e&&--f.readyWait>0||(L.resolveWith(o,[f]),f.fn.triggerHandler&&(f(o).triggerHandler("ready"),f(o).off("ready"))))}}),f.ready.promise=function(t){return L||(L=f.Deferred(),"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?e.setTimeout(f.ready):(o.addEventListener("DOMContentLoaded",_),e.addEventListener("load",_))),L.promise(t)},f.ready.promise();var j=function(e,t,n,o,r,i,a){var s=0,l=e.length,u=null==n;if("object"===f.type(n))for(s in r=!0,n)j(e,t,s,n[s],!0,i,a);else if(void 0!==o&&(r=!0,f.isFunction(o)||(a=!0),u&&(a?(t.call(e,o),t=null):(u=t,t=function(e,t,n){return u.call(f(e),n)})),t))for(;l>s;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):i},M=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function H(){this.expando=f.expando+H.uid++}H.uid=1,H.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!M(e))return{};var t=e[this.expando];return t||(t={},M(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[t]=n;else for(o in t)r[o]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var o;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(o=this.get(e,t))?o:this.get(e,f.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o,r,i=e[this.expando];if(void 0!==i){if(void 0===t)this.register(e);else{f.isArray(t)?o=t.concat(t.map(f.camelCase)):(r=f.camelCase(t),t in i?o=[t,r]:o=(o=r)in i?[o]:o.match(R)||[]),n=o.length;for(;n--;)delete i[o[n]]}(void 0===t||f.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!f.isEmptyObject(t)}};var q=new H,B=new H,O=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$=/[A-Z]/g;function F(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace($,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:O.test(n)?f.parseJSON(n):n)}catch(e){}B.set(e,t,n)}else n=void 0;return n}f.extend({hasData:function(e){return B.hasData(e)||q.hasData(e)},data:function(e,t,n){return B.access(e,t,n)},removeData:function(e,t){B.remove(e,t)},_data:function(e,t,n){return q.access(e,t,n)},_removeData:function(e,t){q.remove(e,t)}}),f.fn.extend({data:function(e,t){var n,o,r,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(r=B.get(i),1===i.nodeType&&!q.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(0===(o=a[n].name).indexOf("data-")&&(o=f.camelCase(o.slice(5)),F(i,o,r[o])));q.set(i,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){B.set(this,e)}):j(this,function(t){var n,o;if(i&&void 0===t){if(void 0!==(n=B.get(i,e)||B.get(i,e.replace($,"-$&").toLowerCase())))return n;if(o=f.camelCase(e),void 0!==(n=B.get(i,o)))return n;if(void 0!==(n=F(i,o,void 0)))return n}else o=f.camelCase(e),this.each(function(){var n=B.get(this,o);B.set(this,o,t),e.indexOf("-")>-1&&void 0!==n&&B.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){B.remove(this,e)})}}),f.extend({queue:function(e,t,n){var o;return e?(t=(t||"fx")+"queue",o=q.get(e,t),n&&(!o||f.isArray(n)?o=q.access(e,t,f.makeArray(n)):o.push(n)),o||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=f.queue(e,t),o=n.length,r=n.shift(),i=f._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){f.dequeue(e,t)},i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:f.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),f.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?f.queue(this[0],e):void 0===t?this:this.each(function(){var n=f.queue(this,e,t);f._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&f.dequeue(this,e)})},dequeue:function(e){return this.each(function(){f.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=f.Deferred(),i=this,a=this.length,s=function(){--o||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=q.get(i[a],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(s));return s(),r.promise(t)}});var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,G=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],W=function(e,t){return e=t||e,"none"===f.css(e,"display")||!f.contains(e.ownerDocument,e)};function Q(e,t,n,o){var r,i=1,a=20,s=o?function(){return o.cur()}:function(){return f.css(e,t,"")},l=s(),u=n&&n[3]||(f.cssNumber[t]?"":"px"),c=(f.cssNumber[t]||"px"!==u&&+l)&&G.exec(f.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=i=i||".5",f.style(e,t,c+u)}while(i!==(i=s()/l)&&1!==i&&--a)}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=u,o.start=c,o.end=r)),r}var z=/^(?:checkbox|radio)$/i,X=/<([\w:-]+)/,K=/^$|\/(?:java|ecma)script/i,J={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Y(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&f.nodeName(e,t)?f.merge([e],n):n}function Z(e,t){for(var n=0,o=e.length;o>n;n++)q.set(e[n],"globalEval",!t||q.get(t[n],"globalEval"))}J.optgroup=J.option,J.tbody=J.tfoot=J.colgroup=J.caption=J.thead,J.th=J.td;var ee=/<|&#?\w+;/;function te(e,t,n,o,r){for(var i,a,s,l,u,c,d=t.createDocumentFragment(),p=[],h=0,g=e.length;g>h;h++)if((i=e[h])||0===i)if("object"===f.type(i))f.merge(p,i.nodeType?[i]:i);else if(ee.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(X.exec(i)||["",""])[1].toLowerCase(),l=J[s]||J._default,a.innerHTML=l[1]+f.htmlPrefilter(i)+l[2],c=l[0];c--;)a=a.lastChild;f.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",h=0;i=p[h++];)if(o&&f.inArray(i,o)>-1)r&&r.push(i);else if(u=f.contains(i.ownerDocument,i),a=Y(d.appendChild(i),"script"),u&&Z(a),n)for(c=0;i=a[c++];)K.test(i.type||"")&&n.push(i);return d}!function(){var e=o.createDocumentFragment().appendChild(o.createElement("div")),t=o.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),d.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var ne=/^key/,oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,re=/^([^.]*)(?:\.(.+)|)/;function ie(){return!0}function ae(){return!1}function se(){try{return o.activeElement}catch(e){}}function le(e,t,n,o,r,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)le(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=ae;else if(!r)return this;return 1===i&&(a=r,r=function(e){return f().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=f.guid++)),e.each(function(){f.event.add(this,t,r,o,n)})}f.event={global:{},add:function(e,t,n,o,r){var i,a,s,l,u,c,d,p,h,g,m,v=q.get(e);if(v)for(n.handler&&(n=(i=n).handler,r=i.selector),n.guid||(n.guid=f.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==f&&f.event.triggered!==t.type?f.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(R)||[""]).length;u--;)h=m=(s=re.exec(t[u])||[])[1],g=(s[2]||"").split(".").sort(),h&&(d=f.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=f.event.special[h]||{},c=f.extend({type:h,origType:m,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&f.expr.match.needsContext.test(r),namespace:g.join(".")},i),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,o,g,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),f.event.global[h]=!0)},remove:function(e,t,n,o,r){var i,a,s,l,u,c,d,p,h,g,m,v=q.hasData(e)&&q.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(R)||[""]).length;u--;)if(h=m=(s=re.exec(t[u])||[])[1],g=(s[2]||"").split(".").sort(),h){for(d=f.event.special[h]||{},p=l[h=(o?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)c=p[i],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,g,v.handle)||f.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)f.event.remove(e,h+t[u],n,o,!0);f.isEmptyObject(l)&&q.remove(e,"handle events")}},dispatch:function(e){e=f.event.fix(e);var t,n,o,i,a,s=[],l=r.call(arguments),u=(q.get(this,"events")||{})[e.type]||[],c=f.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(s=f.event.handlers.call(this,e,u),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.rnamespace||e.rnamespace.test(a.namespace))&&(e.handleObj=a,e.data=a.data,void 0!==(o=((f.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,l))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,o,r,i,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(o=[],n=0;s>n;n++)void 0===o[r=(i=t[n]).selector+" "]&&(o[r]=i.needsContext?f(r,this).index(l)>-1:f.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&a.push({elem:l,handlers:o})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail 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 offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,a=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||o).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[f.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=oe.test(i)?this.mouseHooks:ne.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new f.Event(a),t=r.length;t--;)e[n=r[t]]=a[n];return e.target||(e.target=o),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,a):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==se()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===se()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&f.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return f.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},f.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},f.Event=function(e,t){return this instanceof f.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ie:ae):this.type=e,t&&f.extend(this,t),this.timeStamp=e&&e.timeStamp||f.now(),void(this[f.expando]=!0)):new f.Event(e,t)},f.Event.prototype={constructor:f.Event,isDefaultPrevented:ae,isPropagationStopped:ae,isImmediatePropagationStopped:ae,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ie,e&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ie,e&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ie,e&&e.stopImmediatePropagation(),this.stopPropagation()}},f.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){f.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=e.relatedTarget,r=e.handleObj;return(!o||o!==this&&!f.contains(this,o))&&(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),f.fn.extend({on:function(e,t,n,o){return le(this,e,t,n,o)},one:function(e,t,n,o){return le(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,f(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(!1===t||"function"==typeof t)&&(n=t,t=void 0),!1===n&&(n=ae),this.each(function(){f.event.remove(this,e,n,t)})}});var ue=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ce=/<script|<style|<link/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^true\/(.*)/,fe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function he(e,t){return f.nodeName(e,"table")&&f.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function me(e){var t=pe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ve(e,t){var n,o,r,i,a,s,l,u;if(1===t.nodeType){if(q.hasData(e)&&(i=q.access(e),a=q.set(t,i),u=i.events))for(r in delete a.handle,a.events={},u)for(n=0,o=u[r].length;o>n;n++)f.event.add(t,r,u[r][n]);B.hasData(e)&&(s=B.access(e),l=f.extend({},s),B.set(t,l))}}function ye(e,t){var n=t.nodeName.toLowerCase();"input"===n&&z.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function we(e,t,n,o){t=i.apply([],t);var r,a,s,l,u,c,p=0,h=e.length,g=h-1,m=t[0],v=f.isFunction(m);if(v||h>1&&"string"==typeof m&&!d.checkClone&&de.test(m))return e.each(function(r){var i=e.eq(r);v&&(t[0]=m.call(this,r,i.html())),we(i,t,n,o)});if(h&&(a=(r=te(t,e[0].ownerDocument,!1,e,o)).firstChild,1===r.childNodes.length&&(r=a),a||o)){for(l=(s=f.map(Y(r,"script"),ge)).length;h>p;p++)u=r,p!==g&&(u=f.clone(u,!0,!0),l&&f.merge(s,Y(u,"script"))),n.call(e[p],u,p);if(l)for(c=s[s.length-1].ownerDocument,f.map(s,me),p=0;l>p;p++)u=s[p],K.test(u.type||"")&&!q.access(u,"globalEval")&&f.contains(c,u)&&(u.src?f._evalUrl&&f._evalUrl(u.src):f.globalEval(u.textContent.replace(fe,"")))}return e}function be(e,t,n){for(var o,r=t?f.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||f.cleanData(Y(o)),o.parentNode&&(n&&f.contains(o.ownerDocument,o)&&Z(Y(o,"script")),o.parentNode.removeChild(o));return e}f.extend({htmlPrefilter:function(e){return e.replace(ue,"<$1></$2>")},clone:function(e,t,n){var o,r,i,a,s=e.cloneNode(!0),l=f.contains(e.ownerDocument,e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||f.isXMLDoc(e)))for(a=Y(s),o=0,r=(i=Y(e)).length;r>o;o++)ye(i[o],a[o]);if(t)if(n)for(i=i||Y(e),a=a||Y(s),o=0,r=i.length;r>o;o++)ve(i[o],a[o]);else ve(e,s);return(a=Y(s,"script")).length>0&&Z(a,!l&&Y(e,"script")),s},cleanData:function(e){for(var t,n,o,r=f.event.special,i=0;void 0!==(n=e[i]);i++)if(M(n)){if(t=n[q.expando]){if(t.events)for(o in t.events)r[o]?f.event.remove(n,o):f.removeEvent(n,o,t.handle);n[q.expando]=void 0}n[B.expando]&&(n[B.expando]=void 0)}}}),f.fn.extend({domManip:we,detach:function(e){return be(this,e,!0)},remove:function(e){return be(this,e)},text:function(e){return j(this,function(e){return void 0===e?f.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return we(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||he(this,e).appendChild(e)})},prepend:function(){return we(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=he(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(f.cleanData(Y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return f.clone(this,e,t)})},html:function(e){return j(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ce.test(e)&&!J[(X.exec(e)||["",""])[1].toLowerCase()]){e=f.htmlPrefilter(e);try{for(;o>n;n++)1===(t=this[n]||{}).nodeType&&(f.cleanData(Y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return we(this,arguments,function(t){var n=this.parentNode;f.inArray(this,e)<0&&(f.cleanData(Y(this)),n&&n.replaceChild(t,this))},e)}}),f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){f.fn[e]=function(e){for(var n,o=[],r=f(e),i=r.length-1,s=0;i>=s;s++)n=s===i?this:this.clone(!0),f(r[s])[t](n),a.apply(o,n.get());return this.pushStack(o)}});var xe,Ce={HTML:"block",BODY:"block"};function Te(e,t){var n=f(t.createElement(e)).appendTo(t.body),o=f.css(n[0],"display");return n.detach(),o}function ke(e){var t=o,n=Ce[e];return n||("none"!==(n=Te(e,t))&&n||((t=(xe=(xe||f("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Te(e,t),xe.detach()),Ce[e]=n),n}var Ie=/^margin/,Se=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),De=function(t){var n=t.ownerDocument.defaultView;return n.opener||(n=e),n.getComputedStyle(t)},Ae=function(e,t,n,o){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,o||[]),t)e.style[i]=a[i];return r},Ee=o.documentElement;function Pe(e,t,n){var o,r,i,a,s=e.style;return(n=n||De(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||f.contains(e.ownerDocument,e)||(a=f.style(e,t)),!d.pixelMarginRight()&&Se.test(a)&&Ie.test(t)&&(o=s.width,r=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=o,s.minWidth=r,s.maxWidth=i)),void 0!==a?a+"":a}function Ne(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var t,n,r,i,a=o.createElement("div"),s=o.createElement("div");if(s.style){function l(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Ee.appendChild(a);var o=e.getComputedStyle(s);t="1%"!==o.top,i="2px"===o.marginLeft,n="4px"===o.width,s.style.marginRight="50%",r="4px"===o.marginRight,Ee.removeChild(a)}s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),f.extend(d,{pixelPosition:function(){return l(),t},boxSizingReliable:function(){return null==n&&l(),n},pixelMarginRight:function(){return null==n&&l(),r},reliableMarginLeft:function(){return null==n&&l(),i},reliableMarginRight:function(){var t,n=s.appendChild(o.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Ee.appendChild(a),t=!parseFloat(e.getComputedStyle(n).marginRight),Ee.removeChild(a),s.removeChild(n),t}})}}();var Le=/^(none|table(?!-c[ea]).+)/,Re={position:"absolute",visibility:"hidden",display:"block"},_e={letterSpacing:"0",fontWeight:"400"},je=["Webkit","O","Moz","ms"],Me=o.createElement("div").style;function He(e){if(e in Me)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=je.length;n--;)if((e=je[n]+t)in Me)return e}function qe(e,t,n){var o=G.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function Be(e,t,n,o,r){for(var i=n===(o?"border":"content")?4:"width"===t?1:0,a=0;4>i;i+=2)"margin"===n&&(a+=f.css(e,n+U[i],!0,r)),o?("content"===n&&(a-=f.css(e,"padding"+U[i],!0,r)),"margin"!==n&&(a-=f.css(e,"border"+U[i]+"Width",!0,r))):(a+=f.css(e,"padding"+U[i],!0,r),"padding"!==n&&(a+=f.css(e,"border"+U[i]+"Width",!0,r)));return a}function Oe(t,n,r){var i=!0,a="width"===n?t.offsetWidth:t.offsetHeight,s=De(t),l="border-box"===f.css(t,"boxSizing",!1,s);if(o.msFullscreenElement&&e.top!==e&&t.getClientRects().length&&(a=Math.round(100*t.getBoundingClientRect()[n])),0>=a||null==a){if((0>(a=Pe(t,n,s))||null==a)&&(a=t.style[n]),Se.test(a))return a;i=l&&(d.boxSizingReliable()||a===t.style[n]),a=parseFloat(a)||0}return a+Be(t,n,r||(l?"border":"content"),i,s)+"px"}function $e(e,t){for(var n,o,r,i=[],a=0,s=e.length;s>a;a++)(o=e[a]).style&&(i[a]=q.get(o,"olddisplay"),n=o.style.display,t?(i[a]||"none"!==n||(o.style.display=""),""===o.style.display&&W(o)&&(i[a]=q.access(o,"olddisplay",ke(o.nodeName)))):(r=W(o),"none"===n&&r||q.set(o,"olddisplay",r?n:f.css(o,"display"))));for(a=0;s>a;a++)(o=e[a]).style&&(t&&"none"!==o.style.display&&""!==o.style.display||(o.style.display=t?i[a]||"":"none"));return e}function Fe(e,t,n,o,r){return new Fe.prototype.init(e,t,n,o,r)}f.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Pe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,s=f.camelCase(t),l=e.style;return t=f.cssProps[s]||(f.cssProps[s]=He(s)||s),a=f.cssHooks[t]||f.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:l[t]:("string"===(i=typeof n)&&(r=G.exec(n))&&r[1]&&(n=Q(e,t,r),i="number"),void(null!=n&&n==n&&("number"===i&&(n+=r&&r[3]||(f.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(l[t]=n))))}},css:function(e,t,n,o){var r,i,a,s=f.camelCase(t);return t=f.cssProps[s]||(f.cssProps[s]=He(s)||s),(a=f.cssHooks[t]||f.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Pe(e,t,o)),"normal"===r&&t in _e&&(r=_e[t]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),f.each(["height","width"],function(e,t){f.cssHooks[t]={get:function(e,n,o){return n?Le.test(f.css(e,"display"))&&0===e.offsetWidth?Ae(e,Re,function(){return Oe(e,t,o)}):Oe(e,t,o):void 0},set:function(e,n,o){var r,i=o&&De(e),a=o&&Be(e,t,o,"border-box"===f.css(e,"boxSizing",!1,i),i);return a&&(r=G.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=f.css(e,t)),qe(0,n,a)}}}),f.cssHooks.marginLeft=Ne(d.reliableMarginLeft,function(e,t){return t?(parseFloat(Pe(e,"marginLeft"))||e.getBoundingClientRect().left-Ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),f.cssHooks.marginRight=Ne(d.reliableMarginRight,function(e,t){return t?Ae(e,{display:"inline-block"},Pe,[e,"marginRight"]):void 0}),f.each({margin:"",padding:"",border:"Width"},function(e,t){f.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"==typeof n?n.split(" "):[n];4>o;o++)r[e+U[o]+t]=i[o]||i[o-2]||i[0];return r}},Ie.test(e)||(f.cssHooks[e+t].set=qe)}),f.fn.extend({css:function(e,t){return j(this,function(e,t,n){var o,r,i={},a=0;if(f.isArray(t)){for(o=De(e),r=t.length;r>a;a++)i[t[a]]=f.css(e,t[a],!1,o);return i}return void 0!==n?f.style(e,t,n):f.css(e,t)},e,t,arguments.length>1)},show:function(){return $e(this,!0)},hide:function(){return $e(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){W(this)?f(this).show():f(this).hide()})}}),f.Tween=Fe,Fe.prototype={constructor:Fe,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||f.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(f.cssNumber[n]?"":"px")},cur:function(){var e=Fe.propHooks[this.prop];return e&&e.get?e.get(this):Fe.propHooks._default.get(this)},run:function(e){var t,n=Fe.propHooks[this.prop];return this.options.duration?this.pos=t=f.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Fe.propHooks._default.set(this),this}},Fe.prototype.init.prototype=Fe.prototype,Fe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=f.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){f.fx.step[e.prop]?f.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[f.cssProps[e.prop]]&&!f.cssHooks[e.prop]?e.elem[e.prop]=e.now:f.style(e.elem,e.prop,e.now+e.unit)}}},Fe.propHooks.scrollTop=Fe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},f.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},f.fx=Fe.prototype.init,f.fx.step={};var Ve,Ge,Ue=/^(?:toggle|show|hide)$/,We=/queueHooks$/;function Qe(){return e.setTimeout(function(){Ve=void 0}),Ve=f.now()}function ze(e,t){var n,o=0,r={height:e};for(t=t?1:0;4>o;o+=2-t)r["margin"+(n=U[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function Xe(e,t,n){for(var o,r=(Ke.tweeners[t]||[]).concat(Ke.tweeners["*"]),i=0,a=r.length;a>i;i++)if(o=r[i].call(n,t,e))return o}function Ke(e,t,n){var o,r,i=0,a=Ke.prefilters.length,s=f.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Ve||Qe(),n=Math.max(0,u.startTime+u.duration-t),o=1-(n/u.duration||0),i=0,a=u.tweens.length;a>i;i++)u.tweens[i].run(o);return s.notifyWith(e,[u,o,n]),1>o&&a?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:f.extend({},t),opts:f.extend(!0,{specialEasing:{},easing:f.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ve||Qe(),duration:n.duration,tweens:[],createTween:function(t,n){var o=f.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(o),o},stop:function(t){var n=0,o=t?u.tweens.length:0;if(r)return this;for(r=!0;o>n;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,o,r,i,a;for(n in e)if(r=t[o=f.camelCase(n)],i=e[n],f.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),(a=f.cssHooks[o])&&"expand"in a)for(n in i=a.expand(i),delete e[o],i)n in e||(e[n]=i[n],t[n]=r);else t[o]=r}(c,u.opts.specialEasing);a>i;i++)if(o=Ke.prefilters[i].call(u,e,c,u.opts))return f.isFunction(o.stop)&&(f._queueHooks(u.elem,u.opts.queue).stop=f.proxy(o.stop,o)),o;return f.map(c,Xe,u),f.isFunction(u.opts.start)&&u.opts.start.call(e,u),f.fx.timer(f.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}f.Animation=f.extend(Ke,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Q(n.elem,e,G.exec(t),n),n}]},tweener:function(e,t){f.isFunction(e)?(t=e,e=["*"]):e=e.match(R);for(var n,o=0,r=e.length;r>o;o++)n=e[o],Ke.tweeners[n]=Ke.tweeners[n]||[],Ke.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,r,i,a,s,l,u,c=this,d={},p=e.style,h=e.nodeType&&W(e),g=q.get(e,"fxshow");for(o in n.queue||(null==(s=f._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,f.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(u=f.css(e,"display"))?q.get(e,"olddisplay")||ke(e.nodeName):u)&&"none"===f.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),t)if(r=t[o],Ue.exec(r)){if(delete t[o],i=i||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!g||void 0===g[o])continue;h=!0}d[o]=g&&g[o]||f.style(e,o)}else u=void 0;if(f.isEmptyObject(d))"inline"===("none"===u?ke(e.nodeName):u)&&(p.display=u);else for(o in g?"hidden"in g&&(h=g.hidden):g=q.access(e,"fxshow",{}),i&&(g.hidden=!h),h?f(e).show():c.done(function(){f(e).hide()}),c.done(function(){var t;for(t in q.remove(e,"fxshow"),d)f.style(e,t,d[t])}),d)a=Xe(h?g[o]:0,o,c),o in g||(g[o]=a.start,h&&(a.end=a.start,a.start="width"===o||"height"===o?1:0))}],prefilter:function(e,t){t?Ke.prefilters.unshift(e):Ke.prefilters.push(e)}}),f.speed=function(e,t,n){var o=e&&"object"==typeof e?f.extend({},e):{complete:n||!n&&t||f.isFunction(e)&&e,duration:e,easing:n&&t||t&&!f.isFunction(t)&&t};return o.duration=f.fx.off?0:"number"==typeof o.duration?o.duration:o.duration in f.fx.speeds?f.fx.speeds[o.duration]:f.fx.speeds._default,(null==o.queue||!0===o.queue)&&(o.queue="fx"),o.old=o.complete,o.complete=function(){f.isFunction(o.old)&&o.old.call(this),o.queue&&f.dequeue(this,o.queue)},o},f.fn.extend({fadeTo:function(e,t,n,o){return this.filter(W).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var r=f.isEmptyObject(e),i=f.speed(t,n,o),a=function(){var t=Ke(this,f.extend({},e),i);(r||q.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",i=f.timers,a=q.get(this);if(r)a[r]&&a[r].stop&&o(a[r]);else for(r in a)a[r]&&a[r].stop&&We.test(r)&&o(a[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));(t||!n)&&f.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=q.get(this),o=n[e+"queue"],r=n[e+"queueHooks"],i=f.timers,a=o?o.length:0;for(n.finish=!0,f.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;a>t;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),f.each(["toggle","show","hide"],function(e,t){var n=f.fn[t];f.fn[t]=function(e,o,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ze(t,!0),e,o,r)}}),f.each({slideDown:ze("show"),slideUp:ze("hide"),slideToggle:ze("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){f.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),f.timers=[],f.fx.tick=function(){var e,t=0,n=f.timers;for(Ve=f.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||f.fx.stop(),Ve=void 0},f.fx.timer=function(e){f.timers.push(e),e()?f.fx.start():f.timers.pop()},f.fx.interval=13,f.fx.start=function(){Ge||(Ge=e.setInterval(f.fx.tick,f.fx.interval))},f.fx.stop=function(){e.clearInterval(Ge),Ge=null},f.fx.speeds={slow:600,fast:200,_default:400},f.fn.delay=function(t,n){return t=f.fx&&f.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,o){var r=e.setTimeout(n,t);o.stop=function(){e.clearTimeout(r)}})},function(){var e=o.createElement("input"),t=o.createElement("select"),n=t.appendChild(o.createElement("option"));e.type="checkbox",d.checkOn=""!==e.value,d.optSelected=n.selected,t.disabled=!0,d.optDisabled=!n.disabled,(e=o.createElement("input")).value="t",e.type="radio",d.radioValue="t"===e.value}();var Je,Ye=f.expr.attrHandle;f.fn.extend({attr:function(e,t){return j(this,f.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){f.removeAttr(this,e)})}}),f.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?f.prop(e,t,n):(1===i&&f.isXMLDoc(e)||(t=t.toLowerCase(),r=f.attrHooks[t]||(f.expr.match.bool.test(t)?Je:void 0)),void 0!==n?null===n?void f.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:null==(o=f.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&f.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o,r=0,i=t&&t.match(R);if(i&&1===e.nodeType)for(;n=i[r++];)o=f.propFix[n]||n,f.expr.match.bool.test(n)&&(e[o]=!1),e.removeAttribute(n)}}),Je={set:function(e,t,n){return!1===t?f.removeAttr(e,n):e.setAttribute(n,n),n}},f.each(f.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Ye[t]||f.find.attr;Ye[t]=function(e,t,o){var r,i;return o||(i=Ye[t],Ye[t]=r,r=null!=n(e,t,o)?t.toLowerCase():null,Ye[t]=i),r}});var Ze=/^(?:input|select|textarea|button)$/i,et=/^(?:a|area)$/i;f.fn.extend({prop:function(e,t){return j(this,f.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[f.propFix[e]||e]})}}),f.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&f.isXMLDoc(e)||(t=f.propFix[t]||t,r=f.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=f.find.attr(e,"tabindex");return t?parseInt(t,10):Ze.test(e.nodeName)||et.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(f.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),f.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){f.propFix[this.toLowerCase()]=this});var tt=/[\t\r\n\f]/g;function nt(e){return e.getAttribute&&e.getAttribute("class")||""}f.fn.extend({addClass:function(e){var t,n,o,r,i,a,s,l=0;if(f.isFunction(e))return this.each(function(t){f(this).addClass(e.call(this,t,nt(this)))});if("string"==typeof e&&e)for(t=e.match(R)||[];n=this[l++];)if(r=nt(n),o=1===n.nodeType&&(" "+r+" ").replace(tt," ")){for(a=0;i=t[a++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");r!==(s=f.trim(o))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,o,r,i,a,s,l=0;if(f.isFunction(e))return this.each(function(t){f(this).removeClass(e.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(R)||[];n=this[l++];)if(r=nt(n),o=1===n.nodeType&&(" "+r+" ").replace(tt," ")){for(a=0;i=t[a++];)for(;o.indexOf(" "+i+" ")>-1;)o=o.replace(" "+i+" "," ");r!==(s=f.trim(o))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):f.isFunction(e)?this.each(function(n){f(this).toggleClass(e.call(this,n,nt(this),t),t)}):this.each(function(){var t,o,r,i;if("string"===n)for(o=0,r=f(this),i=e.match(R)||[];t=i[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(void 0===e||"boolean"===n)&&((t=nt(this))&&q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+nt(n)+" ").replace(tt," ").indexOf(t)>-1)return!0;return!1}});var ot=/\r/g;f.fn.extend({val:function(e){var t,n,o,r=this[0];return arguments.length?(o=f.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=o?e.call(this,n,f(this).val()):e)?r="":"number"==typeof r?r+="":f.isArray(r)&&(r=f.map(r,function(e){return null==e?"":e+""})),(t=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=f.valHooks[r.type]||f.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(ot,""):null==n?"":n:void 0}}),f.extend({valHooks:{option:{get:function(e){return f.trim(e.value)}},select:{get:function(e){for(var t,n,o=e.options,r=e.selectedIndex,i="select-one"===e.type||0>r,a=i?null:[],s=i?r+1:o.length,l=0>r?s:i?r:0;s>l;l++)if(((n=o[l]).selected||l===r)&&(d.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!f.nodeName(n.parentNode,"optgroup"))){if(t=f(n).val(),i)return t;a.push(t)}return a},set:function(e,t){for(var n,o,r=e.options,i=f.makeArray(t),a=r.length;a--;)((o=r[a]).selected=f.inArray(f.valHooks.option.get(o),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]={set:function(e,t){return f.isArray(t)?e.checked=f.inArray(f(e).val(),t)>-1:void 0}},d.checkOn||(f.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var rt=/^(?:focusinfocus|focusoutblur)$/;f.extend(f.event,{trigger:function(t,n,r,i){var a,s,l,u,d,p,h,g=[r||o],m=c.call(t,"type")?t.type:t,v=c.call(t,"namespace")?t.namespace.split("."):[];if(s=l=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!rt.test(m+f.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),d=m.indexOf(":")<0&&"on"+m,(t=t[f.expando]?t:new f.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:f.makeArray(n,[t]),h=f.event.special[m]||{},i||!h.trigger||!1!==h.trigger.apply(r,n))){if(!i&&!h.noBubble&&!f.isWindow(r)){for(u=h.delegateType||m,rt.test(u+m)||(s=s.parentNode);s;s=s.parentNode)g.push(s),l=s;l===(r.ownerDocument||o)&&g.push(l.defaultView||l.parentWindow||e)}for(a=0;(s=g[a++])&&!t.isPropagationStopped();)t.type=a>1?u:h.bindType||m,(p=(q.get(s,"events")||{})[t.type]&&q.get(s,"handle"))&&p.apply(s,n),(p=d&&s[d])&&p.apply&&M(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(g.pop(),n)||!M(r)||d&&f.isFunction(r[m])&&!f.isWindow(r)&&((l=r[d])&&(r[d]=null),f.event.triggered=m,r[m](),f.event.triggered=void 0,l&&(r[d]=l)),t.result}},simulate:function(e,t,n){var o=f.extend(new f.Event,n,{type:e,isSimulated:!0});f.event.trigger(o,null,t),o.isDefaultPrevented()&&n.preventDefault()}}),f.fn.extend({trigger:function(e,t){return this.each(function(){f.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?f.event.trigger(e,t,n,!0):void 0}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){f.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),f.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),d.focusin="onfocusin"in e,d.focusin||f.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){f.event.simulate(t,e.target,f.event.fix(e))};f.event.special[t]={setup:function(){var o=this.ownerDocument||this,r=q.access(o,t);r||o.addEventListener(e,n,!0),q.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this,r=q.access(o,t)-1;r?q.access(o,t,r):(o.removeEventListener(e,n,!0),q.remove(o,t))}}});var it=e.location,at=f.now(),st=/\?/;f.parseJSON=function(e){return JSON.parse(e+"")},f.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return(!n||n.getElementsByTagName("parsererror").length)&&f.error("Invalid XML: "+t),n};var lt=/#.*$/,ut=/([?&])_=[^&]*/,ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,dt=/^(?:GET|HEAD)$/,pt=/^\/\//,ft={},ht={},gt="*/".concat("*"),mt=o.createElement("a");function vt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match(R)||[];if(f.isFunction(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function yt(e,t,n,o){var r={},i=e===ht;function a(s){var l;return r[s]=!0,f.each(e[s]||[],function(e,s){var u=s(t,n,o);return"string"!=typeof u||i||r[u]?i?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function wt(e,t){var n,o,r=f.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&f.extend(!0,e,o),e}mt.href=it.href,f.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:it.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(it.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?wt(wt(e,f.ajaxSettings),t):wt(f.ajaxSettings,e)},ajaxPrefilter:vt(ft),ajaxTransport:vt(ht),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,a,s,l,u,c,d,p=f.ajaxSetup({},n),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?f(h):f.event,m=f.Deferred(),v=f.Callbacks("once memory"),y=p.statusCode||{},w={},b={},x=0,C="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!s)for(s={};t=ct.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,w[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)y[t]=[y[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||C;return r&&r.abort(t),k(0,t),this}};if(m.promise(T).complete=v.add,T.success=T.done,T.error=T.fail,p.url=((t||p.url||it.href)+"").replace(lt,"").replace(pt,it.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=f.trim(p.dataType||"*").toLowerCase().match(R)||[""],null==p.crossDomain){u=o.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=mt.protocol+"//"+mt.host!=u.protocol+"//"+u.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=f.param(p.data,p.traditional)),yt(ft,p,n,T),2===x)return T;for(d in(c=f.event&&p.global)&&0===f.active++&&f.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!dt.test(p.type),i=p.url,p.hasContent||(p.data&&(i=p.url+=(st.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=ut.test(i)?i.replace(ut,"$1_="+at++):i+(st.test(i)?"&":"?")+"_="+at++)),p.ifModified&&(f.lastModified[i]&&T.setRequestHeader("If-Modified-Since",f.lastModified[i]),f.etag[i]&&T.setRequestHeader("If-None-Match",f.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&T.setRequestHeader("Content-Type",p.contentType),T.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+gt+"; q=0.01":""):p.accepts["*"]),p.headers)T.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,T,p)||2===x))return T.abort();for(d in C="abort",{success:1,error:1,complete:1})T[d](p[d]);if(r=yt(ht,p,n,T)){if(T.readyState=1,c&&g.trigger("ajaxSend",[T,p]),2===x)return T;p.async&&p.timeout>0&&(l=e.setTimeout(function(){T.abort("timeout")},p.timeout));try{x=1,r.send(w,k)}catch(e){if(!(2>x))throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,o,s){var u,d,w,b,C,k=n;2!==x&&(x=2,l&&e.clearTimeout(l),r=void 0,a=s||"",T.readyState=t>0?4:0,u=t>=200&&300>t||304===t,o&&(b=function(e,t,n){for(var o,r,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}a||(a=r)}i=i||a}return i?(i!==l[0]&&l.unshift(i),n[i]):void 0}(p,T,o)),b=function(e,t,n,o){var r,i,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=c.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=u[l+" "+i]||u["* "+i]))for(r in u)if((s=r.split(" "))[1]===i&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(p,b,T,u),u?(p.ifModified&&((C=T.getResponseHeader("Last-Modified"))&&(f.lastModified[i]=C),(C=T.getResponseHeader("etag"))&&(f.etag[i]=C)),204===t||"HEAD"===p.type?k="nocontent":304===t?k="notmodified":(k=b.state,d=b.data,u=!(w=b.error))):(w=k,(t||!k)&&(k="error",0>t&&(t=0))),T.status=t,T.statusText=(n||k)+"",u?m.resolveWith(h,[d,k,T]):m.rejectWith(h,[T,k,w]),T.statusCode(y),y=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[T,p,u?d:w]),v.fireWith(h,[T,k]),c&&(g.trigger("ajaxComplete",[T,p]),--f.active||f.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return f.get(e,t,n,"json")},getScript:function(e,t){return f.get(e,void 0,t,"script")}}),f.each(["get","post"],function(e,t){f[t]=function(e,n,o,r){return f.isFunction(n)&&(r=r||o,o=n,n=void 0),f.ajax(f.extend({url:e,type:t,dataType:r,data:n,success:o},f.isPlainObject(e)&&e))}}),f._evalUrl=function(e){return f.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},f.fn.extend({wrapAll:function(e){var t;return f.isFunction(e)?this.each(function(t){f(this).wrapAll(e.call(this,t))}):(this[0]&&(t=f(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return f.isFunction(e)?this.each(function(t){f(this).wrapInner(e.call(this,t))}):this.each(function(){var t=f(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=f.isFunction(e);return this.each(function(n){f(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()}}),f.expr.filters.hidden=function(e){return!f.expr.filters.visible(e)},f.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var bt=/%20/g,xt=/\[\]$/,Ct=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function It(e,t,n,o){var r;if(f.isArray(t))f.each(t,function(t,r){n||xt.test(e)?o(e,r):It(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,o)});else if(n||"object"!==f.type(t))o(e,t);else for(r in t)It(e+"["+r+"]",t[r],n,o)}f.param=function(e,t){var n,o=[],r=function(e,t){t=f.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=f.ajaxSettings&&f.ajaxSettings.traditional),f.isArray(e)||e.jquery&&!f.isPlainObject(e))f.each(e,function(){r(this.name,this.value)});else for(n in e)It(n,e[n],t,r);return o.join("&").replace(bt,"+")},f.fn.extend({serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=f.prop(this,"elements");return e?f.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!f(this).is(":disabled")&&kt.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!z.test(e))}).map(function(e,t){var n=f(this).val();return null==n?null:f.isArray(n)?f.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}}),f.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var St={0:200,1223:204},Dt=f.ajaxSettings.xhr();d.cors=!!Dt&&"withCredentials"in Dt,d.ajax=Dt=!!Dt,f.ajaxTransport(function(t){var n,o;return d.cors||Dt&&!t.crossDomain?{send:function(r,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);n=function(e){return function(){n&&(n=o=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(St[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),o=s.onerror=n("error"),void 0!==s.onabort?s.onabort=o:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&o()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}:void 0}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return f.globalEval(e),e}}}),f.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),f.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=f("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),o.head.appendChild(t[0])},abort:function(){n&&n()}}});var At=[],Et=/(=)\?(?=&|$)|\?\?/;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=At.pop()||f.expando+"_"+at++;return this[e]=!0,e}}),f.ajaxPrefilter("json jsonp",function(t,n,o){var r,i,a,s=!1!==t.jsonp&&(Et.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Et.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=f.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Et,"$1"+r):!1!==t.jsonp&&(t.url+=(st.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||f.error(r+" was not called"),a[0]},t.dataTypes[0]="json",i=e[r],e[r]=function(){a=arguments},o.always(function(){void 0===i?f(e).removeProp(r):e[r]=i,t[r]&&(t.jsonpCallback=n.jsonpCallback,At.push(r)),a&&f.isFunction(i)&&i(a[0]),a=i=void 0}),"script"):void 0}),d.createHTMLDocument=function(){var e=o.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),f.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||(d.createHTMLDocument?o.implementation.createHTMLDocument(""):o);var r=T.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=te([e],t,i),i&&i.length&&f(i).remove(),f.merge([],r.childNodes))};var Pt=f.fn.load;function Nt(e){return f.isWindow(e)?e:9===e.nodeType&&e.defaultView}f.fn.load=function(e,t,n){if("string"!=typeof e&&Pt)return Pt.apply(this,arguments);var o,r,i,a=this,s=e.indexOf(" ");return s>-1&&(o=f.trim(e.slice(s)),e=e.slice(0,s)),f.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&f.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(o?f("<div>").append(f.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(a,i||[e.responseText,t,e])})}),this},f.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){f.fn[t]=function(e){return this.on(t,e)}}),f.expr.filters.animated=function(e){return f.grep(f.timers,function(t){return e===t.elem}).length},f.offset={setOffset:function(e,t,n){var o,r,i,a,s,l,u=f.css(e,"position"),c=f(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),i=f.css(e,"top"),l=f.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+l).indexOf("auto")>-1?(a=(o=c.position()).top,r=o.left):(a=parseFloat(i)||0,r=parseFloat(l)||0),f.isFunction(t)&&(t=t.call(e,n,f.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):c.css(d)}},f.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){f.offset.setOffset(this,e,t)});var t,n,o=this[0],r={top:0,left:0},i=o&&o.ownerDocument;return i?(t=i.documentElement,f.contains(t,o)?(r=o.getBoundingClientRect(),n=Nt(i),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):void 0},position:function(){if(this[0]){var e,t,n=this[0],o={top:0,left:0};return"fixed"===f.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),f.nodeName(e[0],"html")||(o=e.offset()),o.top+=f.css(e[0],"borderTopWidth",!0)-e.scrollTop(),o.left+=f.css(e[0],"borderLeftWidth",!0)-e.scrollLeft()),{top:t.top-o.top-f.css(n,"marginTop",!0),left:t.left-o.left-f.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===f.css(e,"position");)e=e.offsetParent;return e||Ee})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;f.fn[e]=function(o){return j(this,function(e,o,r){var i=Nt(e);return void 0===r?i?i[t]:e[o]:void(i?i.scrollTo(n?i.pageXOffset:r,n?r:i.pageYOffset):e[o]=r)},e,o,arguments.length)}}),f.each(["top","left"],function(e,t){f.cssHooks[t]=Ne(d.pixelPosition,function(e,n){return n?(n=Pe(e,t),Se.test(n)?f(e).position()[t]+"px":n):void 0})}),f.each({Height:"height",Width:"width"},function(e,t){f.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){f.fn[o]=function(o,r){var i=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return j(this,function(t,n,o){var r;return f.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?f.css(t,n,a):f.style(t,n,o,a)},t,i?o:void 0,i,null)}})}),f.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),f.fn.andSelf=f.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return f});var Lt=e.jQuery,Rt=e.$;return f.noConflict=function(t){return e.$===f&&(e.$=Rt),t&&e.jQuery===f&&(e.jQuery=Lt),f},t||(e.jQuery=e.$=f),f}),function(e){function t(t,n,o,r){var i={data:r||0===r||!1===r?r:n?n.data:{},_wrap:n?n._wrap:null,tmpl:null,parent:n||null,nodes:[],calls:l,nest:u,wrap:c,html:d,update:p};return t&&e.extend(i,t,{nodes:[],parent:n}),o&&(i.tmpl=o,i._ctnt=i._ctnt||i.tmpl(e,i),i.key=++b,(C.length?y:v)[b]=i),i}function n(t,r,i){var a,l=i?e.map(i,function(e){return"string"==typeof e?t.key?e.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+g+'="'+t.key+'" $2'):e:n(e,t,e._ctnt)}):t;return r?l:((l=l.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,n,r,i){s(a=e(r).get()),n&&(a=o(n).concat(a)),i&&(a=a.concat(o(i)))}),a||o(l))}function o(t){var n=document.createElement("div");return n.innerHTML=t,e.makeArray(n.childNodes)}function r(t){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+e.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,n,o,r,i,s,l){var u,c,d,p=e.tmpl.tag[o];if(!p)throw"Unknown template tag: "+o;return u=p._default||[],s&&!/\w$/.test(i)&&(i+=s,s=""),i?(i=a(i),l=l?","+a(l)+")":s?")":"",c=s?i.indexOf(".")>-1?i+a(s):"("+i+").call($item"+l:i,d=s?c:"(typeof("+i+")==='function'?("+i+").call($item):("+i+"))"):d=c=u.$1||"null",r=a(r),"');"+p[n?"close":"open"].split("$notnull_1").join(i?"typeof("+i+")!=='undefined' && ("+i+")!=null":"true").split("$1a").join(d).split("$1").join(c).split("$2").join(r||u.$2||"")+"__.push('"})+"');}return __;")}function i(t,o){t._wrap=n(t,!0,e.isArray(o)?o:[m.test(o)?o:e(o).html()]).join("")}function a(e){return e?e.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function s(n){function o(n){function o(e){a=l[e+=s]=l[e]||t(a,v[a.parent.key+s]||a.parent)}var r,i,a,u,c=n;if(u=n.getAttribute(g)){for(;c.parentNode&&1===(c=c.parentNode).nodeType&&!(r=c.getAttribute(g)););r!==u&&(c=c.parentNode?11===c.nodeType?0:c.getAttribute(g)||0:0,(a=v[u])||((a=t(a=y[u],v[c]||y[c])).key=++b,v[b]=a),x&&o(u)),n.removeAttribute(g)}else x&&(a=e.data(n,"tmplItem"))&&(o(a.key),v[a.key]=a,c=(c=e.data(n.parentNode,"tmplItem"))?c.key:0);if(a){for(i=a;i&&i.key!=c;)i.nodes.push(n),i=i.parent;delete a._ctnt,delete a._wrap,e.data(n,"tmplItem",a)}}for(var r,i,a,s="_"+x,l={},u=0,c=n.length;u<c;u++)if(1===(r=n[u]).nodeType){for(a=(i=r.getElementsByTagName("*")).length-1;a>=0;a--)o(i[a]);o(r)}}function l(e,t,n,o){if(!e)return C.pop();C.push({_:e,tmpl:t,item:this,data:n,options:o})}function u(t,n,o){return e.tmpl(e.template(t),n,o,this)}function c(t,n){var o=t.options||{};return o.wrapped=n,e.tmpl(e.template(t.tmpl),t.data,o,t.item)}function d(t,n){var o=this._wrap;return e.map(e(e.isArray(o)?o.join(""):o).filter(t||"*"),function(e){return n?e.innerText||e.textContent:e.outerHTML||function(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e)})}function p(){var t=this.nodes;e.tmpl(null,null,null,this).insertBefore(t[0]),e(t).hide(),e(t).remove()}var f,h=e.fn.domManip,g="_tmplitem",m=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,v={},y={},w={key:0,data:{}},b=0,x=0,C=[];e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,n){e.fn[t]=function(o){var r,i,a,s,l=[],u=e(o),c=1===this.length&&this[0].parentNode;if(f=v||{},c&&11===c.nodeType&&1===c.childNodes.length&&1===u.length)u[n](this[0]),l=this;else{for(i=0,a=u.length;i<a;i++)x=i,r=(i>0?this.clone(!0):this).get(),e(u[i])[n](r),l=l.concat(r);x=0,l=this.pushStack(l,t,u.selector)}return s=f,f=null,e.tmpl.complete(s),l}}),e.fn.extend({tmpl:function(t,n,o){return e.tmpl(this[0],t,n,o)},tmplItem:function(){return e.tmplItem(this[0])},template:function(t){return e.template(t,this[0])},domManip:function(t,n,o){if(t[0]&&e.isArray(t[0])){for(var r,i=e.makeArray(arguments),a=t[0],s=a.length,l=0;l<s&&!(r=e.data(a[l++],"tmplItem")););r&&x&&(i[2]=function(t){e.tmpl.afterManip(this,t,o)}),h.apply(this,i)}else h.apply(this,arguments);return x=0,f||e.tmpl.complete(v),this}}),e.extend({tmpl:function(o,r,a,s){var l,u=!s;if(u)s=w,o=e.template[o]||e.template(null,o),y={};else if(!o)return o=s.tmpl,v[s.key]=s,s.nodes=[],s.wrapped&&i(s,s.wrapped),e(n(s,null,s.tmpl(e,s)));return o?("function"==typeof r&&(r=r.call(s||{})),a&&a.wrapped&&i(a,a.wrapped),l=e.isArray(r)?e.map(r,function(e){return e?t(a,s,o,e):null}):[t(a,s,o,r)],u?e(n(s,null,l)):l):[]},tmplItem:function(t){var n;for(t instanceof e&&(t=t[0]);t&&1===t.nodeType&&!(n=e.data(t,"tmplItem"))&&(t=t.parentNode););return n||w},template:function(t,n){return n?("string"==typeof n?n=r(n):n instanceof e&&(n=n[0]||{}),n.nodeType&&(n=e.data(n,"tmpl")||e.data(n,"tmpl",r(n.innerHTML))),"string"==typeof t?e.template[t]=n:n):t?"string"!=typeof t?e.template(null,t):e.template[t]||e.template(null,m.test(t)?t:e(t)):null},encode:function(e){return(""+e).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}}),e.extend(e.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){v={}},afterManip:function(t,n,o){var r=11===n.nodeType?e.makeArray(n.childNodes):1===n.nodeType?[n]:[];o.call(t,n),s(r),x++}})}(jQuery);var ajaxQueue=$({}),currentRequest=null;vagaro={},function(e){vagaro.ajax=function(){this.datamodel={},this.datamodel.url="",this.datamodel.data="",this.datamodel.callback="",this.datamodel.Token="",this.datamodel.Error,this.datamodel.async=!0,this.datamodel.ErrorMessage="An Error Has Occurred",this.datamodel.GroupToken="",this.datamodel.IsNewVagaroAPI=!1,this.datamodel.Proxy=!1,this.datamodel.RouteParameter={},this.datamodel.QueryStringParameter={},this.datamodel.merchantId="",this.datamodel.userId="",this.Post=function(){if("undefined"==typeof keepAlive&&e("#IsWaitforKeepALive").length>0&&void 0!==e("#IsWaitforKeepALive").val()&&"true"===e("#IsWaitforKeepALive").val().toLowerCase()){var t=e(this),n=this.datamodel.url,o=this.datamodel.data,r=this.datamodel.callback,i=this.datamodel.Token,a=this.datamodel.Error,s=this.datamodel.async,l=this.datamodel.ErrorMessage,u=this.datamodel.GroupToken,c=this.datamodel.Proxy,d=this.datamodel.RouteParameter={},p=this.datamodel.QueryStringParameter={},f=this.datamodel.merchantId="",h=this.datamodel.userId="";setTimeout(function(){t[0].datamodel.url=n,t[0].datamodel.data=o,t[0].datamodel.callback=r,t[0].datamodel.Token=i,t[0].datamodel.Error=a,t[0].datamodel.async=s,t[0].datamodel.ErrorMessage=l,t[0].datamodel.GroupToken=u,t[0].datamodel.Proxy=c,t[0].datamodel.RouteParameter=d,t[0].datamodel.QueryStringParameter=p,t[0].datamodel.merchantId=f,t[0].datamodel.userId=h,t[0].Post()},500)}else{var g=this.datamodel;g.async="undefined"!=typeof isWidget&&null!=isWidget&&"true"===isWidget.toString().toLowerCase()&&"undefined"!=typeof businessID&&null!=businessID&&(156973===parseInt(businessID)||383713===parseInt(businessID)||377983===parseInt(businessID)||430616===parseInt(businessID)||400713===parseInt(businessID))||g.async;var m={};1==g.Proxy?(m.Data=""+JSON.stringify(g.data),m.Token=g.Token,m.IsPublic=g.IsPublic,m.RouteParameter=g.RouteParameter,m.QueryStringParameter=g.QueryStringParameter):1==g.IsNewVagaroAPI?m=g.data:(m.Data=""+JSON.stringify(g.data),m.Token=g.Token);var v=this.datamodel.GroupToken;e.ajax({url:1==g.Proxy?this.seturl(2):this.seturl(1),type:"POST",contentType:"application/json; charset=utf-8",xhr:function(){return 1==g.IsNewVagaroAPI&&null!=window.childWindow&&g.Token.indexOf("http")>-1&&g.Token.indexOf("api")>-1?new window.childWindow.XMLHttpRequest:new window.XMLHttpRequest},beforeSend:function(t){try{"function"==typeof EncH&&0==g.IsNewVagaroAPI&&t.setRequestHeader("H",EncH())}catch(e){}if(0==g.IsNewVagaroAPI){if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("K",getek());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("K",window.parent.getek())}catch(e){}if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("I",getei());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("I",window.parent.getei())}catch(e){}if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("Val",EncIV());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("Val",window.parent.EncIV())}catch(e){}}if("undefined"!=typeof keepAlive&&t.setRequestHeader("keepAlive",keepAlive),1==e("#hdnToken1").length&&void 0!==e("#hdnToken1").val()&&t.setRequestHeader("token1",e("#hdnToken1").val()),1==e("#hdnToken2").length&&void 0!==e("#hdnToken2").val()&&t.setRequestHeader("token2",e("#hdnToken2").val()),1==e("#hdnToken0").length&&void 0!==e("#hdnToken0").val()&&t.setRequestHeader("token0",e("#hdnToken0").val()),void 0!==v&&null!=v&&""!=v?t.setRequestHeader("grouptoken",v):"undefined"!=typeof groupID&&t.setRequestHeader("grouptoken",groupID),"undefined"!=typeof myAccountUserGroupID&&t.setRequestHeader("usergrouptoken",myAccountUserGroupID),1==e("#hdnCheckInApp").length&&void 0!==e("#hdnCheckInApp").val()&&t.setRequestHeader("checkinApp",e("#hdnCheckInApp").val()),1==e("#hdnIsBrandedApp").length&&void 0!==e("#hdnIsBrandedApp").val()&&t.setRequestHeader("brandedApp",e("#hdnIsBrandedApp").val()),1==g.IsNewVagaroAPI&&g.Token.indexOf("http")>-1&&g.Token.indexOf("api")>-1&&(1==e("#hdnCalendarVersion").length&&void 0!==e("#hdnCalendarVersion").val()?(t.setRequestHeader("Version",e("#hdnCalendarVersion").val()),t.setRequestHeader("Device","website"),t.setRequestHeader("DeviceID","calendar")):1==e("#hdnVersionDetail").length&&void 0!==e("#hdnVersionDetail").val()&&(t.setRequestHeader("Version",e("#hdnVersionDetail").val()),t.setRequestHeader("Device","website"),t.setRequestHeader("DeviceID","masterpage")),("undefined"!=typeof PublicBusinessID&&"undefined"!=typeof UserID||"undefined"!=typeof businessID&&"undefined"!=typeof UserID||"undefined"!=typeof BusinessID&&"undefined"!=typeof UserID||"undefined"!=typeof SecuBusinessID&&"undefined"!=typeof SecuUserID)&&getheader(t)),"undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue);else try{void 0!==window.parent._common&&void 0!==window.parent._common.IsCookieLessWidget&&window.parent._common.IsCookieLessWidget()&&"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue)}catch(e){}try{"undefined"!=typeof _freeCardReader&&void 0!==_freeCardReader.userdata&&null!=_freeCardReader.userdata&&void 0!==_freeCardReader.userdata.BusinessId&&t.setRequestHeader("businessId",_freeCardReader.userdata.BusinessId),"undefined"!=typeof _freeCardReader&&void 0!==_freeCardReader.userdata&&null!=_freeCardReader.userdata&&void 0!==_freeCardReader.userdata.UserId&&t.setRequestHeader("loggedInUserId",_freeCardReader.userdata.UserId)}catch(e){}try{void 0!==g.merchantId&&null!=g.merchantId&&""!=g.merchantId&&t.setRequestHeader("merchantId",g.merchantId),void 0!==g.userId&&null!=g.userId&&""!=g.userId&&t.setRequestHeader("userId",g.userId)}catch(e){}try{"undefined"!=vm&&"undefined"!=vm.V2VTransferCoreApiHeader&&"undefined"!=vm.V2VTransferCoreApiHeader._vdpb_id&&t.setRequestHeader("_vdpb_id",vm.V2VTransferCoreApiHeader._vdpb_id),"undefined"!=vm&&"undefined"!=vm.V2VTransferCoreApiHeader&&"undefined"!=vm.V2VTransferCoreApiHeader._vdpu_id&&t.setRequestHeader("_vdpu_id",vm.V2VTransferCoreApiHeader._vdpu_id)}catch(e){}},async:g.async,data:JSON.stringify(m),dataType:"json"}).done(function(e){if(1==g.IsNewVagaroAPI)(t=void 0!==e&&null!=e&&void 0!==e.CustomCode&&null!=e.CustomCode&&(g.Token.indexOf("http")>-1&&g.Token.indexOf("api")>-1||g.Token.indexOf("myaccount")>-1))&&1032==e.CustomCode?window.location.href="/ScheduleMaintenance.aspx":t&&1036==e.CustomCode?window.location.reload():t&&1034==e.CustomCode?"function"==typeof ShowHideFailedMessageCommon?ShowHideFailedMessageCommon(e.Message):vagaro.alert({message:e.Message,title:"Invalid!"}):g.callback(e);else if(1==g.Proxy){var t;(t=void 0!==e&&null!=e&&void 0!==e.responseCode&&null!=e.responseCode&&(g.Token.indexOf("http")>-1&&g.Token.indexOf("api")>-1||g.Token.indexOf("myaccount")>-1))&&1032==e.responseCode?window.location.href="/ScheduleMaintenance.aspx":t&&1036==e.responseCode?window.location.reload():t&&1034==e.responseCode?"function"==typeof ShowHideFailedMessageCommon?ShowHideFailedMessageCommon(e.message):vagaro.alert({message:e.message,title:"Invalid!"}):g.callback(e)}else g.callback(e.d)}).fail(function(e){try{if(403===e.status)return void location.reload(!0)}catch(e){}if(void 0!==e&&null!=e&&999==e.status)return vagaro.reloadDetailPage(e.status,g.Token),void ShowLoader(!1);if(void 0===e||null==e||0!=e.status||"undefined"==typeof vgAppicationType||1!=vgAppicationType){if(""!=g.ErrorMessage){var t="",n="undefined"!=typeof isWidget&&null!=isWidget&&"true"===isWidget.toString().toLowerCase()&&"undefined"!=typeof businessID&&null!=businessID&&(156973===parseInt(businessID)||383713===parseInt(businessID)||377983===parseInt(businessID)||430616===parseInt(businessID)||400713===parseInt(businessID));try{t=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase().match(/com.vagaro.iospro/i),ShowLoader(!1)}catch(e){}!t&&!n&&"websiteapi/homepage/getupcomingappintmentdata"!=g.Token&&"websiteapi/homepage/getallpetdetails"!=g.Token&&"websiteapi/homepage/getupcominglivestreamclasses"!=g.Token&&g.Token.toLowerCase().indexOf("addloginamplitude")<0&&"addbusiness/signupbusinessailog"!=g.Token&&vagaro.alert({message:g.ErrorMessage+g.Token,title:"Oops!"})}void 0!==g.Error&&g.Error(e)}})}},this.PostQue=function(){if("undefined"==typeof keepAlive&&e("#IsWaitforKeepALive").length>0&&void 0!==e("#IsWaitforKeepALive").val()&&"true"===e("#IsWaitforKeepALive").val().toLowerCase()){var t=e(this),n=this.datamodel.url,o=this.datamodel.data,r=this.datamodel.callback,i=this.datamodel.Token,a=this.datamodel.Error,s=this.datamodel.async,l=this.datamodel.ErrorMessage;setTimeout(function(){t[0].datamodel.url=n,t[0].datamodel.data=o,t[0].datamodel.callback=r,t[0].datamodel.Token=i,t[0].datamodel.Error=a,t[0].datamodel.async=s,t[0].datamodel.ErrorMessage=l,t[0].PostQue()},500)}else{var u=this.datamodel,c={};1==u.IsNewVagaroAPI?c=u.data:(c.Data=""+JSON.stringify(u.data),c.Token=u.Token),this.que({url:this.seturl(1),type:"POST",contentType:"application/json; charset=utf-8",beforeSend:function(t){try{"function"==typeof EncH&&t.setRequestHeader("H",EncH())}catch(e){}if(0==u.IsNewVagaroAPI&&(t.setRequestHeader("K",getek()),t.setRequestHeader("I",getei()),t.setRequestHeader("Val",EncIV())),"undefined"!=typeof keepAlive&&t.setRequestHeader("keepAlive",keepAlive),1==e("#hdnToken1").length&&void 0!==e("#hdnToken1").val()&&t.setRequestHeader("token1",e("#hdnToken1").val()),1==e("#hdnToken2").length&&void 0!==e("#hdnToken2").val()&&t.setRequestHeader("token2",e("#hdnToken2").val()),1==e("#hdnToken0").length&&void 0!==e("#hdnToken0").val()&&t.setRequestHeader("token0",e("#hdnToken0").val()),1==e("#hdnCheckInApp").length&&void 0!==e("#hdnCheckInApp").val()&&t.setRequestHeader("checkinApp",e("#hdnCheckInApp").val()),"undefined"!=typeof groupID&&t.setRequestHeader("grouptoken",groupID),"undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue);else try{void 0!==window.parent._common&&void 0!==window.parent._common.IsCookieLessWidget&&window.parent._common.IsCookieLessWidget()&&"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue)}catch(e){}},data:JSON.stringify(c),dataType:"json",success:function(e){1==u.IsNewVagaroAPI?u.callback(e):u.callback(e.d)},error:function(e){try{if(403===e.status)return void location.reload(!0)}catch(e){}if(void 0!==e&&null!=e&&999==e.status)return vagaro.reloadDetailPage(e.status,u.Token),void ShowLoader(!1);if("abort"!=e.statusText){if(""!=u.ErrorMessage){try{ShowLoader(!1)}catch(e){}u.Token.toLowerCase().indexOf("addloginamplitude")<0&&vagaro.alert({message:u.ErrorMessage+u.Token,title:"Oops!"})}void 0!==u.Error&&u.Error(e)}}})}},this.que=function(t){var n=t.complete;ajaxQueue.clearQueue(),currentRequest&&currentRequest.abort(),ajaxQueue.queue(function(o){t.complete=function(){n&&n.apply(this,arguments),o()},currentRequest=e.ajax(t)})},this.Get=function(){e.ajax({url:this.seturl(this.datamodel.url),type:"GET",data:JSON.stringify(this.datamodel.data),dataType:"json"}).done(function(e){this.datamodel.callback(e)}).fail(function(e){this.datamodel.ErrorMessage.length>0&&(ShowLoader(!1),vagaro.alert({message:Model.ErrorMessage,title:"Oops!"})),"undefined"!=this.datamodel.Error&&this.datamodel.Error(e)})},this.GetDirectV2=function(){var t=this,n=t.datamodel.url;if(t.datamodel.RouteParameter&&"object"==typeof t.datamodel.RouteParameter&&Object.keys(t.datamodel.RouteParameter).length>0)for(var o in t.datamodel.RouteParameter)if(t.datamodel.RouteParameter.hasOwnProperty(o)){var r=t.datamodel.RouteParameter[o];null!=r&&""!==r&&(n+=(n.endsWith("/")?"":"/")+encodeURIComponent(r))}if(t.datamodel.QueryStringParameter&&"object"==typeof t.datamodel.QueryStringParameter&&Object.keys(t.datamodel.QueryStringParameter).length>0){var i=e.param(t.datamodel.QueryStringParameter);n+=(n.includes("?")?"&":"?")+i}var a={};t.datamodel.merchantId&&(a.MerchantId=t.datamodel.merchantId),t.datamodel.userId&&(a.UserId=t.datamodel.userId),void 0!==t.datamodel.ErrorMessage&&(a.IsErrorMsgReq=""!==t.datamodel.ErrorMessage?"true":"false"),e.ajax({url:n,type:"GET",headers:a,dataType:"json"}).done(function(e){"function"==typeof t.datamodel.callback&&t.datamodel.callback(e)}).fail(function(e){t.datamodel.ErrorMessage&&t.datamodel.ErrorMessage.length>0&&(ShowLoader(!1),vagaro.alert({message:t.datamodel.ErrorMessage,title:"Oops!"})),"function"==typeof t.datamodel.Error&&t.datamodel.Error(e)})},this.seturl=function(e){var t=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/";if(t.indexOf("webcache.googleusercontent.com")>-1&&"vagaro.com"==DomainName&&(t="https://www.vagaro.com/"),1==e){var n="";if("undefined"!=typeof regionId&&""!=regionId&&(n=regionId+"/"),1==this.datamodel.IsNewVagaroAPI)this.datamodel.Token.indexOf("http")>-1&&this.datamodel.Token.indexOf("api")>-1?t=this.datamodel.Token:("undefined"!=typeof vagaroSiteBuilder&&null!=vagaroSiteBuilder&&void 0!==vagaroSiteBuilder.BaseURLOfWebSiteBuilderAPI&&t.indexOf(vagaroSiteBuilder.BaseURLOfWebSiteBuilderAPI)>-1&&(t=vagaroSiteBuilder.BaseURLOfVagaroAPI),t=t+n+this.datamodel.Token);else try{t=void 0!==this.datamodel.Token&&null!=this.datamodel.Token&&""!=this.datamodel.Token?t+n+"WebServices/MySampleService.asmx/PageMethodsProxyJson?token="+this.datamodel.Token:t+n+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}catch(e){t=t+n+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}}else if(2==e){n="";"undefined"!=typeof regionId&&""!=regionId&&(n=regionId+"/"),t=t+n+"api/proxy"}else try{t=void 0!==this.datamodel.Token&&null!=this.datamodel.Token&&""!=this.datamodel.Token?t+n+"WebServices/MySampleService.asmx/PageMethodsProxyJson?token="+this.datamodel.Token:t+n+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}catch(e){t=t+n+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}return t}},vagaro.alert=function(e){"undefined"!=typeof bootbox?bootbox.alert(e):ShowPopupAlert(e.message,1,null)},vagaro.alertsmall=function(e){"undefined"!=typeof bootbox?bootbox.alertsmall(e):ShowPopupAlert(e.message,1,null)},vagaro.alertmidium=function(e,t){"undefined"!=typeof bootbox?bootbox.alert({className:"vagaro-midium-popup",message:e,title:"Alert",callback:"function"==typeof t?t:null}):ShowPopupAlert(e.message,1,null)},vagaro.popup=function(e){"undefined"!=typeof bootbox?bootbox.dialog(e):ShowPopupAlert(e.message,4,null)},vagaro.confirm=function(e){"undefined"!=typeof bootbox&&bootbox.confirm(e)},vagaro.confirmsmall=function(e){"undefined"!=typeof bootbox&&bootbox.confirm(e,e.success.label,e.success.label)},vagaro.prompt=function(){"undefined"!=typeof bootbox&&bootbox.prompt(options)},vagaro.reloadDetailPage=function(e,t){999===e&&["SaveSettingHistory","GetServiceProviderDetails","GetServicesDetails","GetShoppingCartInventory","GetShoppingCartProductType","GetShoppingCartBrand","GetShoppingCartPopupData","GetShoppingCartPopupDataNew","AddToCart","MembershipAddToCart","GiftCertificateAddToCart","ServiceAddToCart","ClassAddToCart","UpdateCartItem","UpdateMutipleCartItem","GetNextAvailableDateWorkShop","RemoveCartItem","ValidateShoppingCartData","GetCartCount","GetEventCartDetail","GetGiftcertificateCategory","GetReturnPolicy","GetAppointmentCancellationPolicy","BindSalonServiceComboForGC","GetGiftCertificateExpMonth","GetGiftCertificateImgByCategory","GetShopDetailStyle","LikeStyle","GetStyleImagesCommaSeparated","GetBookRequestButtonText","GetDealDataWithServicesByPromotionID","ShareSPorStyle","GetCustomerNameByEmailId","GetAvailableDates","SendEmailtoSP","ShowFavorites","GetAvailableMultiAppointments","GetUserCCDetailsByOnlyUserID","GetStatesByCountryID","GetStatesByMultipleCountryID","CheckUserExistsByUserId","GetValidatePromotionsDetails","GetAvailableDatesForEvents","GetEventDetailAndAvailableDates","CheckUserExistanceInEvent","GetEventDetailForReschedule","GetEventDetailForRescheduleForWorkShop","GetClassCancellationPolicy","GetMembershipAndPackageByBusinessId","GetOnlineCheckoutTipSetting","GetOnlineBookingTabDetail","GetGCPackageAndPointForOnlineCheckout","RemoveCehckOutItem","ValidatePromocodeAndGetDetails","GetOnlineInvoiceBusinessUserDetailsByInvoiceId","GetAllPetDetails","GetMyAppintmentData","GetMyProducts","GetMyAccountFavoriteBusinesses","GetBusinessPoints","GetCustomerPoints","GetUserCompleteAppointmentsForReviews","GetGiftCertificateDetails","GetBusinessMembershipNew","GetMyAccountInvoices","GetFamilyAndFriendsDetailsByUserID"].indexOf(t)>-1&&location.reload(!0)},vagaro.ajaxCall=function(e,t,n,o,r,i,a,s){var l=new vagaro.ajax;l.datamodel.Token=e,l.datamodel.data=t,l.datamodel.callback=n,l.datamodel.Error=o,void 0!==i&&1==i&&(l.datamodel.IsNewVagaroAPI=i),void 0!==s&&1==s&&(l.datamodel.ErrorMessage=""),r?l.PostQue():l.Post()},vagaro.ajaxCallV2=function(e,t,n,o,r,i,a,s,l,u){var c=new vagaro.ajax;c.datamodel.Token=e,c.datamodel.data=t,c.datamodel.callback=r,c.datamodel.Error=i,c.datamodel.Proxy=!0,c.datamodel.IsPublic=!1,void 0!==u&&(c.datamodel.IsPublic=u),void 0!==n&&null!=n&&(c.datamodel.RouteParameter=n),void 0!==o&&null!=o&&(c.datamodel.QueryStringParameter=o),void 0!==s&&1==s&&(c.datamodel.ErrorMessage=""),void 0!==l&&void 0!==l.MerchantId&&null!==l.MerchantId&&""!==l.MerchantId&&(c.datamodel.merchantId=l.MerchantId),void 0!==l&&void 0!==l.UserId&&null!==l.UserId&&""!==l.UserId&&(c.datamodel.userId=l.UserId),a?c.PostQue():c.Post()},vagaro.ajaxCallV2Direct=function(e,t,n,o,r,i,a,s){var l=new vagaro.ajax;"undefined"==VagaroCorePublicAPIURLV2||isNullOrUndefineOrBlank(VagaroCorePublicAPIURLV2)?(VagaroCorePublicAPIURLV2="https://api.vagaro.com/US02/api/v2/public/",l.datamodel.Token=VagaroCorePublicAPIURLV2+e):l.datamodel.Token=VagaroCorePublicAPIURLV2+e,l.datamodel.IsNewVagaroAPI=!0,l.datamodel.Proxy=!1,void 0!==n&&null!=n&&(l.datamodel.RouteParameter=n),void 0!==o&&null!=o&&(l.datamodel.QueryStringParameter=o),void 0!==a&&1==a&&(l.datamodel.ErrorMessage=""),void 0!==s&&void 0!==s.MerchantId&&null!==s.MerchantId&&""!==s.MerchantId&&(l.datamodel.merchantId=s.MerchantId),void 0!==s&&void 0!==s.UserId&&null!==s.UserId&&""!==s.UserId&&(l.datamodel.userId=s.UserId),l.datamodel.data=t,"undefined"!=typeof isAsync&&null!=isAsync&&(l.datamodel.async=isAsync),l.datamodel.Error=i,l.datamodel.callback=r,l.datamodel.url=l.datamodel.Token,l.GetDirectV2()},vagaro.VagaroCoreApiResponseCode={Success:1e3,Error:1001,UnderMaintanance:1032,QuotaExceeded:1038},vagaro.VagaroCoreApiStatusCode={OK:200,Created:201,BadRequest:400}}(jQuery);var isNullOrUndefineOrBlank=e=>void 0===e||null==e||""==e||null==e;function onKeyPressBlockNumbers(e){var t=window.event?window.event.keyCode:e.which;if(46!=t&&(32==t||39==t||46==t||8==t||9==t||189==t||0==t))return t;var n=String.fromCharCode(t),o=/\d/;return window.event?event.returnValue=o.test(n):o.test(n)}function resize_bg(){$(".replaced").css({left:"160px"}),$("#fullbackground-wrapper").css("display","block"),$(".model").css("padding-left","0px!important");var e=$(window).width(),t=$(window).height(),n=$(".replaced").width()/$(".replaced").height(),o=e,r=Math.round(o/n);if(r<t){r=t,o=Math.round(r*n);var i=Math.round((o-e)/2);$(".replaced").css("left","-"+i+"px")}$(".replaced").width(o),$(".replaced").height(r)}function onOnlineiFrameLoad(){loader(!1)}function ajaxCallV2DirectAsync(e,t,n,o,r=!1,i={}){return new Promise((a,s)=>{try{vagaro.ajaxCallV2Direct(e,t,n,o,e=>a(e),e=>s(e),r,i)}catch(e){s(e)}})}!function(e){e.fn.applyupdown=function(t,n){t?(this.parent().find(".arrow-up-down").find(".uparrow").bind(n,function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var n=e(this).parent().siblings("input:text"),o=0;null!=n.attr("max")&&(o=n.attr("max"));var r=parseFloat(n.val());(0==o||r<o)&&n.val(r+1).change()}}),this.parent().find(".arrow-up-down").find(".downarrow").bind(n,function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var n=e(this).parent().siblings("input:text");null!=n.attr("min")&&(max=n.attr("min"));var o=parseFloat(n.val());(0==max||o>max)&&n.val(o-1).change()}})):(this.parent().siblings(".arrow-up-down").find(".uparrow").bind("click",function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var n=e(this).parent().siblings(".upDownArow").find("input:text"),o=0;null!=n.attr("max")&&(o=n.attr("max"));var r=parseFloat(n.val());(0==o||r<o)&&n.val(r+1).change()}}),this.parent().siblings(".arrow-up-down").find(".downarrow").bind("click",function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var n=e(this).parent().siblings(".upDownArow").find("input:text");null!=n.attr("min")&&(max=n.attr("min"));var o=parseFloat(n.val());(0==max||o>max)&&n.val(o-1).change()}})),this.bind("keyup",function(t){var n=0,o=0,r=e(this);if(38==t.keyCode){null!=r.attr("max")&&(n=r.attr("max"));var i=parseFloat(r.val());(0==n||i<n)&&r.val(i+1).change()}else if(40==t.keyCode){null!=r.attr("min")&&(n=r.attr("min"));i=parseFloat(r.val());(0==n||i>n)&&r.val(i-1).change()}else{null!=r.attr("max")&&(n=parseFloat(r.attr("max"))),null!=r.attr("min")&&(o=parseFloat(r.attr("min")));i=parseFloat(r.val());0!=n&&i>n?r.val(n).change():0!=o&&i<o&&r.val(o).change()}});var o=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";return this.bind(o,function(t){var n=0,r=e(this),i=e(this).attr("disabled");if(void 0===i||!1===i){if("mousewheel"==o){if(t.originalEvent.wheelDelta/120>0){null!=r.attr("max")&&(n=r.attr("max"));var a=parseFloat(r.val());(0==n||a<n)&&r.val(a+1).change()}else if(t.originalEvent.wheelDelta/120<0){null!=r.attr("min")&&(n=r.attr("min"));a=parseFloat(r.val());(0==n||a>n)&&r.val(a-1).change()}}else if(t.originalEvent.detail>0){null!=r.attr("max")&&(n=r.attr("max"));a=parseFloat(r.val());(0==n||a<n)&&r.val(a+1).change()}else if(t.originalEvent.detail<0){null!=r.attr("min")&&(n=r.attr("min"));a=parseFloat(r.val());(0==n||a>n)&&r.val(a-1).change()}t.preventDefault(),t.stopPropagation()}}),this}}(jQuery),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),jQuery,vagaro.commonUtils={},vagaro.commonUtils.isNullOrUndefined=function(e){return void 0===e||null==e},vagaro.commonUtils.isFunction=function(e){return"function"==typeof e},vagaro.commonUtils.CheckPhonenoCount=function(e,t){var n=e;return null!=n&&null!=n&&""!=n?"4"==t?9==n.length?0+e:10==n.length?e:null:e:1},radGridWrapper=function(e){var t=this;return t.gridEvents={onRowMouseOver:null,onRowMouseOut:null,onRowDropped:null,onRowClick:null,onGridCreated:null},t.clientId=e,t.getGrid=function(){return $find(t.clientId)},t.getDataItems=function(){return t.getMasterTableView().get_dataItems()},t.getDataItem=function(e){return t.getMasterTableView().get_dataItems()[e]},t.getHTMLElement=function(e){return t.getMasterTableView().get_dataItems()[e].get_element()},t.addCssClassToRow=function(e,n){var o=t.getHTMLElement(e);$(o).addClass(n)},t.removeCssClassToRow=function(e,n){var o=t.getHTMLElement(e);$(o).removeClass(n)},t.getDataKeyValue=function(e,n){return t.getDataItem(e).getDataKeyValue(n)},t.getDataKeyValueFromRow=function(e,t){return e.getDataKeyValue(t)},t.getMasterTableView=function(){return t.getGrid().get_masterTableView()},t.dataBind=function(e){var n=t.getMasterTableView();n.set_dataSource(e),n.dataBind()},t.getSelectedItems=function(){return t.getMasterTableView().get_selectedItems()},t.selectItemByIndex=function(e){t.getMasterTableView().selectItem(e)},t.getItemIndex=function(e){return parseInt(e.get_itemIndexHierarchical())},t.getCellValueByKey=function(e,n){return t.getMasterTableView().getCellByColumnUniqueName(e,n)},t.getCell=function(e,n){var o=t.getMasterTableView(),r=o.get_dataItems()[e];return o.getCellByColumnUniqueName(r,n)},t.destroy=function(){t.clientId=null,t.gridEvents.onGridCreated=null,t.gridEvents.onRowClick=null,t.gridEvents.onRowDropped=null,t.gridEvents.onRowMouseOut=null,t.gridEvents.onRowMouseOver=null},t.onRowMouseOver=function(e,n){vagaro.commonUtils.isFunction(t.gridEvents.onRowMouseOver)&&t.gridEvents.onRowMouseOver(e,n)},t.onRowMouseOut=function(e,n){vagaro.commonUtils.isFunction(t.gridEvents.onRowMouseOut)&&t.gridEvents.onRowMouseOut(e,n)},t.onRowDropped=function(e,n){vagaro.commonUtils.isFunction(t.gridEvents.onRowDropped)&&t.gridEvents.onRowDropped(e,n)},t.onRowClick=function(e,n){vagaro.commonUtils.isFunction(t.gridEvents.onRowClick)&&t.gridEvents.onRowClick(e,n)},t.onGridCreated=function(e,n){vagaro.commonUtils.isFunction(t.gridEvents.onGridCreated)&&t.gridEvents.onGridCreated(e,n)},t.getAllBoundKeyValues=function(){return t.getGrid()._clientKeyValues},t.updateKeyValue=function(e,n,o){var r=t.getAllBoundKeyValues();vagaro.commonUtils.isNullOrUndefined(r)||0==r.length||(r[e][n]=o)},t.showHideItem=function(e,n){var o=t.getMasterTableView();n?o.showItem(e):o.hideItem(e)},t.showHideItems=function(e,n){if(!vagaro.commonUtils.isNullOrUndefined(e)&&0!=e.length)for(var o=t.getMasterTableView(),r=0;r<e.length;r++){var i=e[r];n?o.showItem(i):o.hideItem(i)}},t},function(e){_CustomTooltip={Msg:{FlagshipDisabledMsg:"Cannot edit fields synced from a flagship location."}},e(document).on("mouseenter",".custom-tooltip",function(t){var n=e(this),o=e(this).attr("data-tooltip");void 0!==e(this).data("angular-tooltip")&&null!=e(this).data("angular-tooltip")&&(o=e(this).data("angular-tooltip"));var r=e('<div class="v-tooltip-content tooltip top mllocation-tooltip-content" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner">'+o+"</div></div>");e(this).after(r),e(".v-tooltip-content").position({of:n,at:"center top",my:"center bottom",collision:"flipfit"}),e(".custom-tooltip-left").next(".v-tooltip-content").find(".tooltip-arrow").position({of:n,at:"center top",my:"center bottom",collision:"flipfit"})}),e(document).on("mouseleave",".custom-tooltip",function(t){e(".v-tooltip-content").remove()})}(jQuery),"undefined"==typeof _businesstypecategory&&(_businesstypecategory={model:{VagaroCoreApiUrl:"",ProximityCookieName:"proximitystate_v4",VagaroCorePublicAPIURLV2:""},ApiURLEnum:{GetAllBusinessType:"businessseo/getallbusinesstype",GetBusinessTypeCities:"businessseo/getbusinesstypecities"}});var bussinessTypesByCategoryname=[],bussinessTypeIdsByCategoryname=[],_businessTypeDescription="";_businesstypecategory.LoadingPanelID="#divManageBusinessTypeProgress",_businesstypecategory.pageIndex=1,_businesstypecategory.pageSize=15,_businesstypecategory.iCountryID=1;var CountryNames=["United States","United States","United Kingdom","Canada","Australia"],countryNameMapping={1:"United States of America",2:"United Kingdom",3:"Canada",4:"Australia"};function compare(e){return function(t,n){return console.log(e),-1}}_businesstypecategory.ShowLoadingPanel=function(e){$(_businesstypecategory.LoadingPanelID).toggle(e)},_businesstypecategory.StringisNullOrUndefineOrBlank=function(e){return void 0===e||null==e||""==e||null==e},_businesstypecategory.ajax=function(e,t,n,o,r,i){var a=new vagaro.ajax;void 0!==i&&null!=i&&0==i?(a.datamodel.Token=e,a.datamodel.IsNewVagaroAPI=i):(("undefined"!=typeof UserID&&""==$("#hdnUserId").val()||"undefined"==typeof UserID&&""==$("#hdnUserId").val())&&(UserID="0"),a.datamodel.Token=_businesstypecategory.model.VagaroCorePublicAPIURLV2+e,a.datamodel.IsNewVagaroAPI=!0),a.datamodel.data=t,void 0!==r&&null!=r&&(a.datamodel.async=r),a.datamodel.Error=o,a.datamodel.callback=n,a.Post()},window.funBack=function(){$("#AdvanceBusineeTypeCatFilter").show(),$("#AdvanceBusineeTypeSeeMore").hide()},_businesstypecategory.GetBusinessTypeCategory=function(){_businesstypecategory.ajax(_businesstypecategory.ApiURLEnum.GetAllBusinessType,{},_businesstypecategory.GetBusinessTypeCategory_Succes,_businesstypecategory.GetBusinessTypeCategory_Failure,!0,!0)},_businesstypecategory.GetBusinessTypeCategory_Succes=function(e){$("#AdvanceBusineeTypeCatFilter").html(""),$("#AdvanceBusineeTypeCatFilter").show(),$("#AdvanceBusineeTypeCityFilter").hide(),!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime)&&window.history.pushState(null,"Test1","/listings");var t=[];if(null!=e&&e.ResponseCode==vagaro.VagaroCoreApiResponseCode.Success&&null!=e.Data&&""!=e.Data){if(null!=e.Data&&""!=e.Data){e=e.Data,t=e;var n=[],o=[...new Set(t.map(e=>e.Category))],r="Other";(o=jQuery.grep(o,function(e){return e!=r})).push("Other");r="Fitness";(o=jQuery.grep(o,function(e){return e!=r})).splice(2,0,"Fitness");var i=[];o.forEach(e=>i.push(t.filter(t=>t.Category==e)));for(var a=0;a<o.length;a++){var s={};s.type=o[a],s.categories=i[a].filter(e=>e.Category==o[a]);for(var l=0;l<s.categories.length;l++)s.categories[l].hrefListings=window.location.href+"/"+s.categories[l].BusinessType.toLowerCase().replace(/\s+/g,"-");n.push(s)}var u=[],c=[],d=e.length;for(a=0;a<d;a++)u[e[a].Category]||(u[e[a].Category]=!0,c.push(e[a].Category));$("#AdvanceBusineeTypeCatFilter").append('<div class="BusinessTitle"> <h2 class="text-primary">Business Types</h2></div>'),$("#tmplBusinessTypesListing").tmpl(n).appendTo("#AdvanceBusineeTypeCatFilter")}}else _businesstypecategory.GetBusinessTypeCategory_Failure(e);_businesstypecategory.ShowLoadingPanel(!1)},_businesstypecategory.GetBusinessTypeCategory_Failure=function(e){_businesstypecategory.ShowLoadingPanel(!1),bootbox.alert("Something went wrong, please try again.")},window.funBack=function(){$("#AdvanceBusineeTypeCatFilter").show(),$("#AdvanceBusineeTypeSeeMore").hide()},BusinessTypeLinks=function(e,t,n,o,r){BasePage="BusinessTypeCategory";var i="";"undefined"!=typeof promotionalURL&&null!=promotionalURL&&promotionalURL.length>0&&(i="/"+promotionalURL);var a="",s="",l="";a=t.toLowerCase().replace(" ","-").trim()+"--",s=t.toLowerCase().trim().replace(/\s+/g,"-"),_businesstypecategory.City=t;var u={};null!=o&&void 0!==o&&""!=o&&(2==r?l=o.toLowerCase().replace(" ","-").trim()+"--gb":3==r||4==r?l=(u=n.toLowerCase().split("-").reverse())[0]+"--"+u[1]:(l=n.toLowerCase().trim(),_businesstypecategory.State=n));var c=window.location.href;if(void 0!==c&&c.length>0){var d=c.substring(c.indexOf("listings")).split("/");2==d.length&&(e=d[1])}return a=RemoveAccents(GetPlainTextForLocationSearch(a)),s=RemoveAccents(GetPlainTextForLocationSearch(s)),(window.location.href.match("/$")?"../":"/")+"listings"+i+"".concat("/",e.toLowerCase().trim().split(/[,]+/).slice()[0].replace(/\s+/g,"-"),"/",s,"--",l)},_businesstypecategory.GetBusinessTypeCities=function(e,t){var n={BusinessType:e.replaceAll("-"," "),SearchType:t};_businesstypecategory.ajax(_businesstypecategory.ApiURLEnum.GetBusinessTypeCities,n,_businesstypecategory.GetBusinessTypeCities_Success,_businesstypecategory.GetBusinessTypeCities_Failure,!0,!0)},_businesstypecategory.GetBusinessTypeCities_Success=function(e){$("#divCityList").html(""),$("#businessTypeDesc").html("");var t=$("#hdnSelectedBusinessType").val();_businesstypecategory.SetBusinessTypeCookie(t.replace(/\w+/g,function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()}));var n=getCookie(_businesstypecategory.model.ProximityCookieName),o=e.Data.citiesdescription.SEOPageTitle.replace("<<business type>>",e.Data.citiesdescription.FacilityValue),r=e.Data.citiesdescription.SEOPageDescription.replace("<<business type>>",e.Data.citiesdescription.FacilityValue);document.title=o,$("meta[name=description]").remove(),$("head").append('<meta name="description" content="'+r+'">'),void 0===n&&null!=n&&null!=n.businesstypes&&(t=n.businesstypes);var i=$("#hdnSelectedBusinessType").val().replace(/\w+/g,function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()});if($("#businessTypeCityTitle").html("Top "+i.replaceAll("-"," ")+" Locations"),$("#businessTypeDesc").html("<p>"+e.Data.citiesdescription.BusinessTypeDescription.replace("Here's","</p><p>Here's")+"</p>"),null!=e&&e.ResponseCode==vagaro.VagaroCoreApiResponseCode.Success&&null!=e.Data&&""!=e.Data){const t=e.Data.lstCities;if($("#AdvanceBusineeTypeCatFilter").hide(),$("#AdvanceBusineeTypeCityFilter").show(),void 0!==t&&null!=t&&t.length>0){var a=[],s=[],l=e.Data.lstCities.length;for(f=0;f<l;f++)a[t[f].CountryID]||(a[t[f].CountryID]=!0,s.push(t[f].CountryID));var u=[];u=e.Data.lstCities;var c=[],d=[...new Set(u.map(e=>e.CountryID))],p=[];d.forEach(e=>p.push(u.filter(t=>CountryNames[t.CountryID]==CountryNames[e])));for(var f=0;f<d.length;f++){var h={};h.type=countryNameMapping[d[f]],h.categories=p[f].filter(e=>e.CountryID==d[f]);for(var g=0;g<h.categories.length;g++)h.categories[g].CountryName=countryNameMapping[h.categories[g].CountryID],h.categories[g].hrefListings=".."+BusinessTypeLinks(e.Data.citiesdescription.FacilityValue,h.categories[g].City,h.categories[g].StateCode,h.categories[g].StateName,h.categories[g].CountryID);c.push(h)}$("#tmplBusinessTypesListing").tmpl(c).appendTo("#AdvanceBusineeTypeCityFilter"),$(window).scrollTop(0),_businesstypecategory.ShowLoadingPanel(!1)}}else _businesstypecategory.GetBusinessTypeCities_Failure(e);_businesstypecategory.ShowLoadingPanel(!1)},_businesstypecategory.GetBusinessTypeCities_Failure=function(e){_businesstypecategory.ShowLoadingPanel(!1),bootbox.alert("Something went wrong, please try again.")},_businesstypecategory.onBusinessTypeClick=function(e){event.stopPropagation(),event.preventDefault();var t=e.replace(/\w+/g,function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()});$("#BtCategory").text("Top "+t.replaceAll("-"," ")+"  Locations"),$("#hdnSelectedBusinessType").val(e),!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime)?window.history.replaceState("","Test2","/listings/"+e.toLowerCase().replace(/\s+/g,"-")):window.history.pushState("","Test2","/listings/"+e.toLowerCase().replace(/\s+/g,"-")),t=t.replaceAll("-"," "),_businesstypecategory.ShowLoadingPanel(!0),_businesstypecategory.GetBusinessTypeCities(t,1)},_businesstypecategory.SetBusinessTypeCookie=function(e){var t=EmptyProximityValue(),n=getCookie(_businesstypecategory.model.ProximityCookieName);void 0===n?(t.businesstypes=e,setCookie(_businesstypecategory.model.ProximityCookieName,t)):(n.businesstypes=e,setCookie(_businesstypecategory.model.ProximityCookieName,n))},_businesstypecategory.PageLoad=function(){event.stopPropagation(),event.preventDefault();var e=window.location.href;if(BasePage="BusinessTypeCategory",void 0!==e&&e.length>0){var t=e.substring(e.indexOf("listings")).split("/");if(2==t.length&&null!=t[1]&&""!=t[1]){$("#hdnSelectedBusinessType").val(t[1]),_businesstypecategory.SetBusinessTypeCookie(t[1].replace(/\w+/g,function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()}));var n=getCookie(_businesstypecategory.model.ProximityCookieName);n.businesstypes=$("#hdnSelectedBusinessType").val();var o=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime);void 0!==n&&null!=n&&null!=n.businesstypes&&""!=n.businesstypes?(o&&window.history.replaceState(null,"","/listings"),_businesstypecategory.onBusinessTypeClick(n.businesstypes.replace(/\w+/g,function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()}))):_businesstypecategory.onBusinessTypeClick(t[1].replace("-"," ").replace(/\w+/g,function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()}))}else _businesstypecategory.ShowLoadingPanel(!0),_businesstypecategory.GetBusinessTypeCategory()}lazyloadImages()};